Diffstat (limited to 'noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp index 91be153..47272c4 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp +++ b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp | |||
@@ -28,93 +28,100 @@ const QString BluetoothBNEPNetNode::nodeDescription(){ | |||
28 | return tr("\ | 28 | return tr("\ |
29 | <p>Sets up a bluetooth link using the bluetooth Network profile.</p>\ | 29 | <p>Sets up a bluetooth link using the bluetooth Network profile.</p>\ |
30 | <p>Use this to connect two computing devices.</p>\ | 30 | <p>Use this to connect two computing devices.</p>\ |
31 | " | 31 | " |
32 | ); | 32 | ); |
33 | } | 33 | } |
34 | 34 | ||
35 | ANetNodeInstance * BluetoothBNEPNetNode::createInstance( void ) { | 35 | ANetNodeInstance * BluetoothBNEPNetNode::createInstance( void ) { |
36 | return new ABluetoothBNEP( this ); | 36 | return new ABluetoothBNEP( this ); |
37 | } | 37 | } |
38 | 38 | ||
39 | const char ** BluetoothBNEPNetNode::needs( void ) { | 39 | const char ** BluetoothBNEPNetNode::needs( void ) { |
40 | return BluetoothBNEPNeeds; | 40 | return BluetoothBNEPNeeds; |
41 | } | 41 | } |
42 | 42 | ||
43 | const char * BluetoothBNEPNetNode::provides( void ) { | 43 | const char * BluetoothBNEPNetNode::provides( void ) { |
44 | return "device"; | 44 | return "device"; |
45 | } | 45 | } |
46 | 46 | ||
47 | bool BluetoothBNEPNetNode::generateProperFilesFor( | 47 | bool BluetoothBNEPNetNode::generateProperFilesFor( |
48 | ANetNodeInstance * ) { | 48 | ANetNodeInstance * ) { |
49 | return 1; | 49 | return 1; |
50 | } | 50 | } |
51 | 51 | ||
52 | bool BluetoothBNEPNetNode::hasDataFor( const QString & ) { | 52 | bool BluetoothBNEPNetNode::hasDataFor( const QString & S, bool DS ) { |
53 | return 0; | 53 | return DS && S == "interfaces"; |
54 | } | 54 | } |
55 | 55 | ||
56 | bool BluetoothBNEPNetNode::generateDataForCommonFile( | 56 | bool BluetoothBNEPNetNode::generateDataForCommonFile( |
57 | SystemFile & , | 57 | SystemFile & , |
58 | long , | 58 | long , |
59 | ANetNodeInstance * ) { | 59 | ANetNodeInstance * ) { |
60 | return 1; | 60 | return 1; |
61 | } | 61 | } |
62 | 62 | ||
63 | bool BluetoothBNEPNetNode::generateDeviceDataForCommonFile( | ||
64 | SystemFile & , | ||
65 | long , | ||
66 | ANetNodeInstance * ) { | ||
67 | return 1; | ||
68 | } | ||
69 | |||
63 | // | 70 | // |
64 | // | 71 | // |
65 | // BLUETOOTH PAN/NAP node | 72 | // BLUETOOTH PAN/NAP node |
66 | // | 73 | // |
67 | // | 74 | // |
68 | 75 | ||
69 | static const char * BluetoothRFCOMMNeeds[] = | 76 | static const char * BluetoothRFCOMMNeeds[] = |
70 | { 0 | 77 | { 0 |
71 | }; | 78 | }; |
72 | 79 | ||
73 | BluetoothRFCOMMNetNode::BluetoothRFCOMMNetNode() : ANetNode() { | 80 | BluetoothRFCOMMNetNode::BluetoothRFCOMMNetNode() : ANetNode() { |
74 | } | 81 | } |
75 | 82 | ||
76 | BluetoothRFCOMMNetNode::~BluetoothRFCOMMNetNode(){ | 83 | BluetoothRFCOMMNetNode::~BluetoothRFCOMMNetNode(){ |
77 | } | 84 | } |
78 | 85 | ||
79 | const QString BluetoothRFCOMMNetNode::nodeDescription(){ | 86 | const QString BluetoothRFCOMMNetNode::nodeDescription(){ |
80 | return tr("\ | 87 | return tr("\ |
81 | <p>Sets up a bluetooth link using the bluetooth serial profile.</p>\ | 88 | <p>Sets up a bluetooth link using the bluetooth serial profile.</p>\ |
82 | <p>Use this to connect to a GSM.</p>\ | 89 | <p>Use this to connect to a GSM.</p>\ |
83 | " | 90 | " |
84 | ); | 91 | ); |
85 | } | 92 | } |
86 | 93 | ||
87 | ANetNodeInstance * BluetoothRFCOMMNetNode::createInstance( void ) { | 94 | ANetNodeInstance * BluetoothRFCOMMNetNode::createInstance( void ) { |
88 | return new ABluetoothRFCOMM( this ); | 95 | return new ABluetoothRFCOMM( this ); |
89 | } | 96 | } |
90 | 97 | ||
91 | const char ** BluetoothRFCOMMNetNode::needs( void ) { | 98 | const char ** BluetoothRFCOMMNetNode::needs( void ) { |
92 | return BluetoothRFCOMMNeeds; | 99 | return BluetoothRFCOMMNeeds; |
93 | } | 100 | } |
94 | 101 | ||
95 | const char * BluetoothRFCOMMNetNode::provides( void ) { | 102 | const char * BluetoothRFCOMMNetNode::provides( void ) { |
96 | return "line"; | 103 | return "line"; |
97 | } | 104 | } |
98 | 105 | ||
99 | bool BluetoothRFCOMMNetNode::generateProperFilesFor( | 106 | bool BluetoothRFCOMMNetNode::generateProperFilesFor( |
100 | ANetNodeInstance * ) { | 107 | ANetNodeInstance * ) { |
101 | return 0; | 108 | return 0; |
102 | } | 109 | } |
103 | 110 | ||
104 | bool BluetoothRFCOMMNetNode::hasDataFor( const QString & ) { | 111 | bool BluetoothRFCOMMNetNode::hasDataFor( const QString &, bool ) { |
105 | return 0; | 112 | return 0; |
106 | } | 113 | } |
107 | 114 | ||
108 | bool BluetoothRFCOMMNetNode::generateDataForCommonFile( | 115 | bool BluetoothRFCOMMNetNode::generateDataForCommonFile( |
109 | SystemFile & , | 116 | SystemFile & , |
110 | long, | 117 | long, |
111 | ANetNodeInstance * ) { | 118 | ANetNodeInstance * ) { |
112 | return 0; | 119 | return 0; |
113 | } | 120 | } |
114 | 121 | ||
115 | extern "C" { | 122 | extern "C" { |
116 | void create_plugin( QList<ANetNode> & PNN ) { | 123 | void create_plugin( QList<ANetNode> & PNN ) { |
117 | PNN.append( new BluetoothBNEPNetNode() ); | 124 | PNN.append( new BluetoothBNEPNetNode() ); |
118 | PNN.append( new BluetoothRFCOMMNetNode() ); | 125 | PNN.append( new BluetoothRFCOMMNetNode() ); |
119 | } | 126 | } |
120 | } | 127 | } |