summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/bluetooth/bluetooth_NN.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/bluetooth/bluetooth_NN.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
index 2e5e1d2..4d6a3c1 100644
--- a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
+++ b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
@@ -5,77 +5,62 @@
5 5
6class ABluetoothBNEP; 6class ABluetoothBNEP;
7 7
8class BluetoothBNEPNetNode : public ANetNode { 8class BluetoothBNEPNetNode : public ANetNode {
9 9
10 Q_OBJECT 10 Q_OBJECT
11 11
12public: 12public:
13 13
14 BluetoothBNEPNetNode(); 14 BluetoothBNEPNetNode();
15 virtual ~BluetoothBNEPNetNode(); 15 virtual ~BluetoothBNEPNetNode();
16 16
17 virtual QString genNic( long );
18 virtual long instanceCount( void )
19 { return InstanceCount; }
17 virtual const QString pixmapName() 20 virtual const QString pixmapName()
18 { return "Devices/bluetooth"; } 21 { return "Devices/bluetooth"; }
19 22
20 virtual const QString nodeDescription() ; 23 virtual const QString nodeDescription() ;
21
22 virtual ANetNodeInstance * createInstance( void ); 24 virtual ANetNodeInstance * createInstance( void );
23
24 virtual const char ** needs( void );
25 virtual const char * provides( void ); 25 virtual const char * provides( void );
26 26 virtual const char ** needs( void );
27 virtual bool generateProperFilesFor( ANetNodeInstance * NNI );
28 virtual bool hasDataFor( const QString & S );
29 virtual bool generateDeviceDataForCommonFile(
30 SystemFile & , long DevNr );
31
32 virtual long instanceCount( void )
33 { return InstanceCount; }
34 virtual QString genNic( long );
35 27
36private: 28private:
37 29
38 virtual void setSpecificAttribute( QString & Attr, QString & Value ); 30 virtual void setSpecificAttribute( QString & Attr, QString & Value );
39 virtual void saveSpecificAttribute( QTextStream & TS ); 31 virtual void saveSpecificAttribute( QTextStream & TS );
40 32
41 // number of interfaces for this device 33 // number of interfaces for this device
42 long InstanceCount; 34 long InstanceCount;
43 35
44}; 36};
45 37
46class BluetoothRFCOMMNetNode : public ANetNode { 38class BluetoothRFCOMMNetNode : public ANetNode {
47 39
48 Q_OBJECT 40 Q_OBJECT
49 41
50public: 42public:
51 43
52 BluetoothRFCOMMNetNode(); 44 BluetoothRFCOMMNetNode();
53 virtual ~BluetoothRFCOMMNetNode(); 45 virtual ~BluetoothRFCOMMNetNode();
54 46
55 virtual const QString pixmapName() 47 virtual const QString pixmapName()
56 { return "Devices/bluetooth"; } 48 { return "Devices/bluetooth"; }
57 49
58 virtual const QString nodeDescription() ; 50 virtual const QString nodeDescription() ;
59
60 virtual ANetNodeInstance * createInstance( void ); 51 virtual ANetNodeInstance * createInstance( void );
61
62 virtual const char ** needs( void ); 52 virtual const char ** needs( void );
63 virtual const char * provides( void ); 53 virtual const char * provides( void );
64 54
65 virtual bool generateProperFilesFor( ANetNodeInstance * NNI );
66 virtual bool hasDataFor( const QString & S );
67 virtual bool generateDeviceDataForCommonFile(
68 SystemFile & , long );
69
70private: 55private:
71 56
72 virtual void setSpecificAttribute( QString & Attr, QString & Value ); 57 virtual void setSpecificAttribute( QString & Attr, QString & Value );
73 virtual void saveSpecificAttribute( QTextStream & TS ); 58 virtual void saveSpecificAttribute( QTextStream & TS );
74}; 59};
75 60
76extern "C" 61extern "C"
77{ 62{
78 void create_plugin( QList<ANetNode> & PNN ); 63 void create_plugin( QList<ANetNode> & PNN );
79}; 64};
80 65
81#endif 66#endif