Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lancard_NN.h

Go to the documentation of this file.
00001 #ifndef LANCARD_NETNODE_H
00002 #define LANCARD_NETNODE_H
00003 
00004 #include <qstringlist.h>
00005 #include "netnode.h"
00006 
00007 class ALanCard;
00008 
00009 class LanCardNetNode : public ANetNode{
00010 
00011     Q_OBJECT
00012 
00013 public:
00014 
00015     LanCardNetNode();
00016     virtual ~LanCardNetNode();
00017 
00018     virtual const QString pixmapName() 
00019       { return "Devices/card"; }
00020 
00021     virtual QString genNic( long );
00022     virtual long instanceCount( void )
00023       { return InstanceCount; }
00024 
00025     virtual const QString nodeDescription() ;
00026     virtual ANetNodeInstance * createInstance( void );
00027     virtual const char ** needs( void );
00028     virtual const char ** provides( void );
00029 
00030     QStringList & addressesOfNIC( void )
00031       { return NICMACAddresses; }
00032 
00033 private:
00034 
00035       virtual void setSpecificAttribute( QString & Attr, QString & Value );
00036       virtual void saveSpecificAttribute( QTextStream & TS );
00037 
00038       // number of interfaces for this device
00039       long InstanceCount;
00040 
00041       QStringList    NICMACAddresses;
00042 
00043 };
00044 
00045 extern "C"
00046 {
00047   void create_plugin( QList<ANetNode> & PNN );
00048 };
00049 
00050 #endif

Generated on Sat Nov 5 16:17:53 2005 for OPIE by  doxygen 1.4.2