summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp
Unidiff
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.cpp13
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
@@ -40,35 +40,42 @@ const char ** BluetoothBNEPNetNode::needs( void ) {
40 return BluetoothBNEPNeeds; 40 return BluetoothBNEPNeeds;
41} 41}
42 42
43const char * BluetoothBNEPNetNode::provides( void ) { 43const char * BluetoothBNEPNetNode::provides( void ) {
44 return "device"; 44 return "device";
45} 45}
46 46
47bool BluetoothBNEPNetNode::generateProperFilesFor( 47bool BluetoothBNEPNetNode::generateProperFilesFor(
48 ANetNodeInstance * ) { 48 ANetNodeInstance * ) {
49 return 1; 49 return 1;
50} 50}
51 51
52bool BluetoothBNEPNetNode::hasDataFor( const QString & ) { 52bool BluetoothBNEPNetNode::hasDataFor( const QString & S, bool DS ) {
53 return 0; 53 return DS && S == "interfaces";
54} 54}
55 55
56bool BluetoothBNEPNetNode::generateDataForCommonFile( 56bool BluetoothBNEPNetNode::generateDataForCommonFile(
57 SystemFile & , 57 SystemFile & ,
58 long , 58 long ,
59 ANetNodeInstance * ) { 59 ANetNodeInstance * ) {
60 return 1; 60 return 1;
61} 61}
62 62
63bool 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
69static const char * BluetoothRFCOMMNeeds[] = 76static const char * BluetoothRFCOMMNeeds[] =
70 { 0 77 { 0
71 }; 78 };
72 79
73BluetoothRFCOMMNetNode::BluetoothRFCOMMNetNode() : ANetNode() { 80BluetoothRFCOMMNetNode::BluetoothRFCOMMNetNode() : ANetNode() {
74} 81}
@@ -92,25 +99,25 @@ const char ** BluetoothRFCOMMNetNode::needs( void ) {
92 return BluetoothRFCOMMNeeds; 99 return BluetoothRFCOMMNeeds;
93} 100}
94 101
95const char * BluetoothRFCOMMNetNode::provides( void ) { 102const char * BluetoothRFCOMMNetNode::provides( void ) {
96 return "line"; 103 return "line";
97} 104}
98 105
99bool BluetoothRFCOMMNetNode::generateProperFilesFor( 106bool BluetoothRFCOMMNetNode::generateProperFilesFor(
100 ANetNodeInstance * ) { 107 ANetNodeInstance * ) {
101 return 0; 108 return 0;
102} 109}
103 110
104bool BluetoothRFCOMMNetNode::hasDataFor( const QString & ) { 111bool BluetoothRFCOMMNetNode::hasDataFor( const QString &, bool ) {
105 return 0; 112 return 0;
106} 113}
107 114
108bool BluetoothRFCOMMNetNode::generateDataForCommonFile( 115bool BluetoothRFCOMMNetNode::generateDataForCommonFile(
109 SystemFile & , 116 SystemFile & ,
110 long, 117 long,
111 ANetNodeInstance * ) { 118 ANetNodeInstance * ) {
112 return 0; 119 return 0;
113} 120}
114 121
115extern "C" { 122extern "C" {
116void create_plugin( QList<ANetNode> & PNN ) { 123void create_plugin( QList<ANetNode> & PNN ) {