Diffstat (limited to 'noncore/settings/networksettings2/lancard/lancard_NN.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/lancard/lancard_NN.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/lancard/lancard_NN.cpp b/noncore/settings/networksettings2/lancard/lancard_NN.cpp new file mode 100644 index 0000000..a45496d --- a/dev/null +++ b/noncore/settings/networksettings2/lancard/lancard_NN.cpp @@ -0,0 +1,60 @@ +#include "lancard_NN.h" +#include "lancard_NNI.h" + +static const char * LanCardNeeds[] = + { 0 }; + +/** + * Constructor, find all of the possible interfaces + */ +LanCardNetNode::LanCardNetNode() : ANetNode() { +} + +/** + * Delete any interfaces that we own. + */ +LanCardNetNode::~LanCardNetNode(){ +} + +const QString LanCardNetNode::nodeDescription(){ + return tr("\ +<p>Sets up a wired regular LAN card.</p>\ +<p>Use this to set up 10/100/1000 MBit LAN cards.</p>\ +" +); +} + +ANetNodeInstance * LanCardNetNode::createInstance( void ) { + return new ALanCard( this ); +} + + +const char ** LanCardNetNode::needs( void ) { + return LanCardNeeds; +} + +const char * LanCardNetNode::provides( void ) { + return "device"; +} + +bool LanCardNetNode::generateProperFilesFor( + ANetNodeInstance * ) { + return 1; +} + +bool LanCardNetNode::hasDataFor( const QString & ) { + return 0; +} + +bool LanCardNetNode::generateDataForCommonFile( + SystemFile & , + long , + ANetNodeInstance * ) { + return 1; +} + +extern "C" { +void create_plugin( QList<ANetNode> & PNN ) { + PNN.append( new LanCardNetNode() ); +} +} |