00001 #ifndef BLUETOOTH_NETNODE_H 00002 #define BLUETOOTH_NETNODE_H 00003 00004 #include "netnode.h" 00005 00006 class ABluetoothBNEP; 00007 00008 class BluetoothBNEPNetNode : public ANetNode { 00009 00010 Q_OBJECT 00011 00012 public: 00013 00014 BluetoothBNEPNetNode(); 00015 virtual ~BluetoothBNEPNetNode(); 00016 00017 virtual QString genNic( long ); 00018 virtual long instanceCount( void ) 00019 { return InstanceCount; } 00020 virtual const QString pixmapName() 00021 { return "Devices/bluetooth"; } 00022 00023 virtual const QString nodeDescription() ; 00024 virtual ANetNodeInstance * createInstance( void ); 00025 virtual const char ** provides( void ); 00026 virtual const char ** needs( void ); 00027 00028 private: 00029 00030 virtual void setSpecificAttribute( QString & Attr, QString & Value ); 00031 virtual void saveSpecificAttribute( QTextStream & TS ); 00032 00033 // number of interfaces for this device 00034 long InstanceCount; 00035 00036 }; 00037 00038 class BluetoothRFCOMMNetNode : public ANetNode { 00039 00040 Q_OBJECT 00041 00042 public: 00043 00044 BluetoothRFCOMMNetNode(); 00045 virtual ~BluetoothRFCOMMNetNode(); 00046 00047 virtual const QString pixmapName() 00048 { return "Devices/bluetooth"; } 00049 00050 virtual const QString nodeDescription() ; 00051 virtual ANetNodeInstance * createInstance( void ); 00052 virtual const char ** needs( void ); 00053 virtual const char * provides( void ); 00054 00055 private: 00056 00057 virtual void setSpecificAttribute( QString & Attr, QString & Value ); 00058 virtual void saveSpecificAttribute( QTextStream & TS ); 00059 }; 00060 00061 extern "C" 00062 { 00063 void create_plugin( QList<ANetNode> & PNN ); 00064 }; 00065 00066 #endif
1.4.2