18 files changed, 228 insertions, 183 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui index ddb5ddd..498f50b 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui +++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPGUI.ui | |||
@@ -2,130 +2,170 @@ | |||
2 | <class>BluetoothBNEPGUI</class> | 2 | <class>BluetoothBNEPGUI</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QWidget</class> | 4 | <class>QWidget</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>BluetoothBNEP_FRM</cstring> | 7 | <cstring>BluetoothBNEP_FRM</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>283</width> | 14 | <width>278</width> |
15 | <height>199</height> | 15 | <height>339</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Bluetooth-bnep</string> | 20 | <string>Bluetooth-bnep</string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutSpacing</name> | 26 | <name>layoutSpacing</name> |
27 | </property> | 27 | </property> |
28 | <vbox> | 28 | <vbox> |
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>margin</name> | 30 | <name>margin</name> |
31 | <number>2</number> | 31 | <number>0</number> |
32 | </property> | 32 | </property> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>spacing</name> | 34 | <name>spacing</name> |
35 | <number>2</number> | 35 | <number>0</number> |
36 | </property> | 36 | </property> |
37 | <widget> | 37 | <widget> |
38 | <class>QLayoutWidget</class> | 38 | <class>QCheckBox</class> |
39 | <property stdset="1"> | 39 | <property stdset="1"> |
40 | <name>name</name> | 40 | <name>name</name> |
41 | <cstring>Layout4</cstring> | 41 | <cstring>AnyPAN_CB</cstring> |
42 | </property> | 42 | </property> |
43 | <hbox> | ||
44 | <property stdset="1"> | ||
45 | <name>margin</name> | ||
46 | <number>0</number> | ||
47 | </property> | ||
48 | <property stdset="1"> | ||
49 | <name>spacing</name> | ||
50 | <number>6</number> | ||
51 | </property> | ||
52 | <widget> | ||
53 | <class>QLabel</class> | ||
54 | <property stdset="1"> | ||
55 | <name>name</name> | ||
56 | <cstring>TextLabel4</cstring> | ||
57 | </property> | ||
58 | <property stdset="1"> | ||
59 | <name>text</name> | ||
60 | <string>Name</string> | ||
61 | </property> | ||
62 | </widget> | ||
63 | <widget> | ||
64 | <class>QLineEdit</class> | ||
65 | <property stdset="1"> | ||
66 | <name>name</name> | ||
67 | <cstring>Name_LE</cstring> | ||
68 | </property> | ||
69 | </widget> | ||
70 | </hbox> | ||
71 | </widget> | ||
72 | <widget> | ||
73 | <class>QLabel</class> | ||
74 | <property stdset="1"> | 43 | <property stdset="1"> |
75 | <name>name</name> | 44 | <name>text</name> |
76 | <cstring>TextLabel3</cstring> | 45 | <string>Any available PAN device</string> |
77 | </property> | 46 | </property> |
78 | <property stdset="1"> | 47 | <property stdset="1"> |
79 | <name>text</name> | 48 | <name>checked</name> |
80 | <string>Description</string> | 49 | <bool>true</bool> |
81 | </property> | 50 | </property> |
82 | </widget> | 51 | </widget> |
83 | <widget> | 52 | <widget> |
84 | <class>QMultiLineEdit</class> | 53 | <class>QGroupBox</class> |
85 | <property stdset="1"> | 54 | <property stdset="1"> |
86 | <name>name</name> | 55 | <name>name</name> |
87 | <cstring>Description_LE</cstring> | 56 | <cstring>GroupBox1</cstring> |
88 | </property> | 57 | </property> |
89 | </widget> | ||
90 | <widget> | ||
91 | <class>QLayoutWidget</class> | ||
92 | <property stdset="1"> | 58 | <property stdset="1"> |
93 | <name>name</name> | 59 | <name>enabled</name> |
94 | <cstring>Layout5</cstring> | 60 | <bool>false</bool> |
61 | </property> | ||
62 | <property stdset="1"> | ||
63 | <name>title</name> | ||
64 | <string>Select Card</string> | ||
65 | </property> | ||
66 | <property> | ||
67 | <name>layoutMargin</name> | ||
95 | </property> | 68 | </property> |
96 | <hbox> | 69 | <vbox> |
97 | <property stdset="1"> | 70 | <property stdset="1"> |
98 | <name>margin</name> | 71 | <name>margin</name> |
99 | <number>0</number> | 72 | <number>5</number> |
100 | </property> | 73 | </property> |
101 | <property stdset="1"> | 74 | <property stdset="1"> |
102 | <name>spacing</name> | 75 | <name>spacing</name> |
103 | <number>6</number> | 76 | <number>6</number> |
104 | </property> | 77 | </property> |
105 | <widget> | 78 | <widget> |
106 | <class>QCheckBox</class> | 79 | <class>QListView</class> |
80 | <column> | ||
81 | <property> | ||
82 | <name>text</name> | ||
83 | <string>BDAddress</string> | ||
84 | </property> | ||
85 | <property> | ||
86 | <name>clickable</name> | ||
87 | <bool>true</bool> | ||
88 | </property> | ||
89 | <property> | ||
90 | <name>resizeable</name> | ||
91 | <bool>true</bool> | ||
92 | </property> | ||
93 | </column> | ||
107 | <property stdset="1"> | 94 | <property stdset="1"> |
108 | <name>name</name> | 95 | <name>name</name> |
109 | <cstring>Automatic_CB</cstring> | 96 | <cstring>BTPANServers_LV</cstring> |
110 | </property> | 97 | </property> |
111 | <property stdset="1"> | 98 | <property stdset="1"> |
112 | <name>text</name> | 99 | <name>allColumnsShowFocus</name> |
113 | <string>Start automatically</string> | 100 | <bool>true</bool> |
114 | </property> | 101 | </property> |
115 | </widget> | 102 | </widget> |
116 | <widget> | 103 | <widget> |
117 | <class>QCheckBox</class> | 104 | <class>QLayoutWidget</class> |
118 | <property stdset="1"> | 105 | <property stdset="1"> |
119 | <name>name</name> | 106 | <name>name</name> |
120 | <cstring>Confirm_CB</cstring> | 107 | <cstring>Layout2</cstring> |
121 | </property> | ||
122 | <property stdset="1"> | ||
123 | <name>text</name> | ||
124 | <string>Confirm before start</string> | ||
125 | </property> | 108 | </property> |
109 | <hbox> | ||
110 | <property stdset="1"> | ||
111 | <name>margin</name> | ||
112 | <number>0</number> | ||
113 | </property> | ||
114 | <property stdset="1"> | ||
115 | <name>spacing</name> | ||
116 | <number>6</number> | ||
117 | </property> | ||
118 | <spacer> | ||
119 | <property> | ||
120 | <name>name</name> | ||
121 | <cstring>Spacer1</cstring> | ||
122 | </property> | ||
123 | <property stdset="1"> | ||
124 | <name>orientation</name> | ||
125 | <enum>Horizontal</enum> | ||
126 | </property> | ||
127 | <property stdset="1"> | ||
128 | <name>sizeType</name> | ||
129 | <enum>Expanding</enum> | ||
130 | </property> | ||
131 | <property> | ||
132 | <name>sizeHint</name> | ||
133 | <size> | ||
134 | <width>20</width> | ||
135 | <height>20</height> | ||
136 | </size> | ||
137 | </property> | ||
138 | </spacer> | ||
139 | <widget> | ||
140 | <class>QPushButton</class> | ||
141 | <property stdset="1"> | ||
142 | <name>name</name> | ||
143 | <cstring>BTManager_BUT</cstring> | ||
144 | </property> | ||
145 | <property stdset="1"> | ||
146 | <name>text</name> | ||
147 | <string>Rescan</string> | ||
148 | </property> | ||
149 | </widget> | ||
150 | </hbox> | ||
126 | </widget> | 151 | </widget> |
127 | </hbox> | 152 | </vbox> |
128 | </widget> | 153 | </widget> |
129 | </vbox> | 154 | </vbox> |
130 | </widget> | 155 | </widget> |
156 | <connections> | ||
157 | <connection> | ||
158 | <sender>BTManager_BUT</sender> | ||
159 | <signal>clicked()</signal> | ||
160 | <receiver>BluetoothBNEP_FRM</receiver> | ||
161 | <slot>SLOT_StartBTMgr()</slot> | ||
162 | </connection> | ||
163 | <connection> | ||
164 | <sender>AnyPAN_CB</sender> | ||
165 | <signal>toggled(bool)</signal> | ||
166 | <receiver>GroupBox1</receiver> | ||
167 | <slot>setDisabled(bool)</slot> | ||
168 | </connection> | ||
169 | <slot access="public">SLOT_StartBTMgr()</slot> | ||
170 | </connections> | ||
131 | </UI> | 171 | </UI> |
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp index a27f1a7..9a3156b 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp +++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.cpp | |||
@@ -1,18 +1,26 @@ | |||
1 | #include <qtopia/qcopenvelope_qws.h> | ||
2 | |||
1 | #include <GUIUtils.h> | 3 | #include <GUIUtils.h> |
2 | #include "bluetoothBNEPedit.h" | 4 | #include "bluetoothBNEPedit.h" |
3 | 5 | ||
4 | 6 | ||
5 | BluetoothBNEPEdit::BluetoothBNEPEdit( QWidget * Parent ) : BluetoothBNEPGUI( Parent ){ | 7 | BluetoothBNEPEdit::BluetoothBNEPEdit( QWidget * Parent ) : BluetoothBNEPGUI( Parent ){ |
6 | 8 | ||
7 | } | 9 | } |
8 | 10 | ||
9 | QString BluetoothBNEPEdit::acceptable( void ) { | 11 | QString BluetoothBNEPEdit::acceptable( void ) { |
10 | return QString(); | 12 | return QString(); |
11 | } | 13 | } |
12 | 14 | ||
13 | bool BluetoothBNEPEdit::commit( BluetoothBNEPData & Data ) { | 15 | bool BluetoothBNEPEdit::commit( BluetoothBNEPData & ) { |
14 | return 0; | 16 | return 0; |
15 | } | 17 | } |
16 | 18 | ||
17 | void BluetoothBNEPEdit::showData( BluetoothBNEPData & Data ) { | 19 | void BluetoothBNEPEdit::showData( BluetoothBNEPData & ) { |
20 | } | ||
21 | |||
22 | void BluetoothBNEPEdit::SLOT_StartBTMgr( void ) { | ||
23 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | ||
24 | e << QString( "bluetooth-manager" ); | ||
25 | |||
18 | } | 26 | } |
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h index d546f1e..82d23ad 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h +++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPedit.h | |||
@@ -1,13 +1,17 @@ | |||
1 | #include "bluetoothBNEPdata.h" | 1 | #include "bluetoothBNEPdata.h" |
2 | #include "bluetoothBNEPGUI.h" | 2 | #include "bluetoothBNEPGUI.h" |
3 | 3 | ||
4 | class BluetoothBNEPEdit : public BluetoothBNEPGUI { | 4 | class BluetoothBNEPEdit : public BluetoothBNEPGUI { |
5 | 5 | ||
6 | public : | 6 | public : |
7 | 7 | ||
8 | BluetoothBNEPEdit( QWidget * parent ); | 8 | BluetoothBNEPEdit( QWidget * parent ); |
9 | 9 | ||
10 | QString acceptable( void ); | 10 | QString acceptable( void ); |
11 | bool commit( BluetoothBNEPData & Data ); | 11 | bool commit( BluetoothBNEPData & Data ); |
12 | void showData( BluetoothBNEPData & Data ); | 12 | void showData( BluetoothBNEPData & Data ); |
13 | |||
14 | public slots : | ||
15 | |||
16 | void SLOT_StartBTMgr( void ); | ||
13 | }; | 17 | }; |
diff --git a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp index 1d0a0f7..b59b4f0 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp +++ b/noncore/settings/networksettings2/bluetooth/bluetooth_NN.cpp | |||
@@ -39,35 +39,43 @@ ANetNodeInstance * BluetoothBNEPNetNode::createInstance( void ) { | |||
39 | } | 39 | } |
40 | 40 | ||
41 | const char ** BluetoothBNEPNetNode::needs( void ) { | 41 | const char ** BluetoothBNEPNetNode::needs( void ) { |
42 | return BluetoothBNEPNeeds; | 42 | return BluetoothBNEPNeeds; |
43 | } | 43 | } |
44 | 44 | ||
45 | const char * BluetoothBNEPNetNode::provides( void ) { | 45 | const char * BluetoothBNEPNetNode::provides( void ) { |
46 | return "device"; | 46 | return "device"; |
47 | } | 47 | } |
48 | 48 | ||
49 | bool BluetoothBNEPNetNode::generateProperFilesFor( | 49 | bool BluetoothBNEPNetNode::generateProperFilesFor( |
50 | ANetNodeInstance * ) { | 50 | ANetNodeInstance * ) { |
51 | return 1; | 51 | return 0; |
52 | } | 52 | } |
53 | 53 | ||
54 | bool BluetoothBNEPNetNode::hasDataFor( const QString & S ) { | 54 | bool BluetoothBNEPNetNode::hasDataFor( const QString & S ) { |
55 | return S == "interfaces"; | 55 | return S == "interfaces"; |
56 | } | 56 | } |
57 | 57 | ||
58 | bool BluetoothBNEPNetNode::generateDeviceDataForCommonFile( | 58 | bool BluetoothBNEPNetNode::generateDeviceDataForCommonFile( |
59 | SystemFile & , | 59 | SystemFile & S , |
60 | long ) { | 60 | long DevNr) { |
61 | return 1; | 61 | QString NIC = genNic( DevNr ); |
62 | |||
63 | if( S.name() == "interfaces" ) { | ||
64 | // generate mapping stanza for this interface | ||
65 | S << "# check if " << NIC << " can be brought UP" << endl; | ||
66 | S << "mapping " << NIC << endl; | ||
67 | S << " script networksettings2-request" << endl << endl; | ||
68 | } | ||
69 | return 0; | ||
62 | } | 70 | } |
63 | 71 | ||
64 | QString BluetoothBNEPNetNode::genNic( long nr ) { | 72 | QString BluetoothBNEPNetNode::genNic( long nr ) { |
65 | QString S; | 73 | QString S; |
66 | return S.sprintf( "bnep%ld", nr ); | 74 | return S.sprintf( "bnep%ld", nr ); |
67 | } | 75 | } |
68 | 76 | ||
69 | 77 | ||
70 | void BluetoothBNEPNetNode::setSpecificAttribute( QString & A, QString & V ) { | 78 | void BluetoothBNEPNetNode::setSpecificAttribute( QString & A, QString & V ) { |
71 | if( A == "interfacecount" ) { | 79 | if( A == "interfacecount" ) { |
72 | InstanceCount = V.toLong(); | 80 | InstanceCount = V.toLong(); |
73 | } | 81 | } |
diff --git a/noncore/settings/networksettings2/cable/cable_NN.cpp b/noncore/settings/networksettings2/cable/cable_NN.cpp index e95b4f6..b8c690b 100644 --- a/noncore/settings/networksettings2/cable/cable_NN.cpp +++ b/noncore/settings/networksettings2/cable/cable_NN.cpp | |||
@@ -29,31 +29,31 @@ ANetNodeInstance * CableNetNode::createInstance( void ) { | |||
29 | } | 29 | } |
30 | 30 | ||
31 | const char ** CableNetNode::needs( void ) { | 31 | const char ** CableNetNode::needs( void ) { |
32 | return CableNeeds; | 32 | return CableNeeds; |
33 | } | 33 | } |
34 | 34 | ||
35 | const char * CableNetNode::provides( void ) { | 35 | const char * CableNetNode::provides( void ) { |
36 | return "line"; | 36 | return "line"; |
37 | } | 37 | } |
38 | 38 | ||
39 | bool CableNetNode::generateProperFilesFor( | 39 | bool CableNetNode::generateProperFilesFor( |
40 | ANetNodeInstance * ) { | 40 | ANetNodeInstance * ) { |
41 | return 1; | 41 | return 0; |
42 | } | 42 | } |
43 | 43 | ||
44 | bool CableNetNode::generateDeviceDataForCommonFile( | 44 | bool CableNetNode::generateDeviceDataForCommonFile( |
45 | SystemFile & , | 45 | SystemFile & , |
46 | long ) { | 46 | long ) { |
47 | return 1; | 47 | return 0; |
48 | } | 48 | } |
49 | 49 | ||
50 | void CableNetNode::setSpecificAttribute( QString & , QString & ) { | 50 | void CableNetNode::setSpecificAttribute( QString & , QString & ) { |
51 | } | 51 | } |
52 | 52 | ||
53 | void CableNetNode::saveSpecificAttribute( QTextStream & ) { | 53 | void CableNetNode::saveSpecificAttribute( QTextStream & ) { |
54 | } | 54 | } |
55 | 55 | ||
56 | extern "C" { | 56 | extern "C" { |
57 | void create_plugin( QList<ANetNode> & PNN ) { | 57 | void create_plugin( QList<ANetNode> & PNN ) { |
58 | PNN.append( new CableNetNode() ); | 58 | PNN.append( new CableNetNode() ); |
59 | } | 59 | } |
diff --git a/noncore/settings/networksettings2/irda/irda_NN.cpp b/noncore/settings/networksettings2/irda/irda_NN.cpp index f2fda5c..49bc06e 100644 --- a/noncore/settings/networksettings2/irda/irda_NN.cpp +++ b/noncore/settings/networksettings2/irda/irda_NN.cpp | |||
@@ -29,31 +29,31 @@ ANetNodeInstance * IRDANetNode::createInstance( void ) { | |||
29 | } | 29 | } |
30 | 30 | ||
31 | const char ** IRDANetNode::needs( void ) { | 31 | const char ** IRDANetNode::needs( void ) { |
32 | return IRDANeeds; | 32 | return IRDANeeds; |
33 | } | 33 | } |
34 | 34 | ||
35 | const char * IRDANetNode::provides( void ) { | 35 | const char * IRDANetNode::provides( void ) { |
36 | return "line"; | 36 | return "line"; |
37 | } | 37 | } |
38 | 38 | ||
39 | bool IRDANetNode::generateProperFilesFor( | 39 | bool IRDANetNode::generateProperFilesFor( |
40 | ANetNodeInstance * ) { | 40 | ANetNodeInstance * ) { |
41 | return 1; | 41 | return 0; |
42 | } | 42 | } |
43 | 43 | ||
44 | bool IRDANetNode::generateDeviceDataForCommonFile( | 44 | bool IRDANetNode::generateDeviceDataForCommonFile( |
45 | SystemFile & , | 45 | SystemFile & , |
46 | long ) { | 46 | long ) { |
47 | return 1; | 47 | return 0; |
48 | } | 48 | } |
49 | 49 | ||
50 | void IRDANetNode::setSpecificAttribute( QString & , QString & ) { | 50 | void IRDANetNode::setSpecificAttribute( QString & , QString & ) { |
51 | } | 51 | } |
52 | 52 | ||
53 | void IRDANetNode::saveSpecificAttribute( QTextStream & ) { | 53 | void IRDANetNode::saveSpecificAttribute( QTextStream & ) { |
54 | } | 54 | } |
55 | 55 | ||
56 | extern "C" { | 56 | extern "C" { |
57 | void create_plugin( QList<ANetNode> & PNN ) { | 57 | void create_plugin( QList<ANetNode> & PNN ) { |
58 | PNN.append( new IRDANetNode() ); | 58 | PNN.append( new IRDANetNode() ); |
59 | } | 59 | } |
diff --git a/noncore/settings/networksettings2/lancard/lancard_NN.cpp b/noncore/settings/networksettings2/lancard/lancard_NN.cpp index a4afab1..05cd06d 100644 --- a/noncore/settings/networksettings2/lancard/lancard_NN.cpp +++ b/noncore/settings/networksettings2/lancard/lancard_NN.cpp | |||
@@ -31,25 +31,25 @@ ANetNodeInstance * LanCardNetNode::createInstance( void ) { | |||
31 | 31 | ||
32 | 32 | ||
33 | const char ** LanCardNetNode::needs( void ) { | 33 | const char ** LanCardNetNode::needs( void ) { |
34 | return LanCardNeeds; | 34 | return LanCardNeeds; |
35 | } | 35 | } |
36 | 36 | ||
37 | const char * LanCardNetNode::provides( void ) { | 37 | const char * LanCardNetNode::provides( void ) { |
38 | return "device"; | 38 | return "device"; |
39 | } | 39 | } |
40 | 40 | ||
41 | bool LanCardNetNode::generateProperFilesFor( | 41 | bool LanCardNetNode::generateProperFilesFor( |
42 | ANetNodeInstance * ) { | 42 | ANetNodeInstance * ) { |
43 | return 1; | 43 | return 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | bool LanCardNetNode::hasDataFor( const QString & S ) { | 46 | bool LanCardNetNode::hasDataFor( const QString & S ) { |
47 | return S == "interfaces"; | 47 | return S == "interfaces"; |
48 | } | 48 | } |
49 | 49 | ||
50 | bool LanCardNetNode::generateDeviceDataForCommonFile( | 50 | bool LanCardNetNode::generateDeviceDataForCommonFile( |
51 | SystemFile & S , | 51 | SystemFile & S , |
52 | long DevNr ) { | 52 | long DevNr ) { |
53 | QString NIC = genNic( DevNr ); | 53 | QString NIC = genNic( DevNr ); |
54 | 54 | ||
55 | if( S.name() == "interfaces" ) { | 55 | if( S.name() == "interfaces" ) { |
diff --git a/noncore/settings/networksettings2/modem/modem_NN.cpp b/noncore/settings/networksettings2/modem/modem_NN.cpp index 9d70d7a..18aa480 100644 --- a/noncore/settings/networksettings2/modem/modem_NN.cpp +++ b/noncore/settings/networksettings2/modem/modem_NN.cpp | |||
@@ -30,31 +30,31 @@ ANetNodeInstance * ModemNetNode::createInstance( void ) { | |||
30 | } | 30 | } |
31 | 31 | ||
32 | const char ** ModemNetNode::needs( void ) { | 32 | const char ** ModemNetNode::needs( void ) { |
33 | return ModemNeeds; | 33 | return ModemNeeds; |
34 | } | 34 | } |
35 | 35 | ||
36 | const char * ModemNetNode::provides( void ) { | 36 | const char * ModemNetNode::provides( void ) { |
37 | return "line"; | 37 | return "line"; |
38 | } | 38 | } |
39 | 39 | ||
40 | bool ModemNetNode::generateProperFilesFor( | 40 | bool ModemNetNode::generateProperFilesFor( |
41 | ANetNodeInstance * ) { | 41 | ANetNodeInstance * ) { |
42 | return 1; | 42 | return 0; |
43 | } | 43 | } |
44 | 44 | ||
45 | bool ModemNetNode::generateDeviceDataForCommonFile( | 45 | bool ModemNetNode::generateDeviceDataForCommonFile( |
46 | SystemFile & , | 46 | SystemFile & , |
47 | long ) { | 47 | long ) { |
48 | return 1; | 48 | return 0; |
49 | } | 49 | } |
50 | 50 | ||
51 | void ModemNetNode::setSpecificAttribute( QString & , QString & ) { | 51 | void ModemNetNode::setSpecificAttribute( QString & , QString & ) { |
52 | } | 52 | } |
53 | 53 | ||
54 | void ModemNetNode::saveSpecificAttribute( QTextStream & ) { | 54 | void ModemNetNode::saveSpecificAttribute( QTextStream & ) { |
55 | } | 55 | } |
56 | 56 | ||
57 | extern "C" { | 57 | extern "C" { |
58 | void create_plugin( QList<ANetNode> & PNN ) { | 58 | void create_plugin( QList<ANetNode> & PNN ) { |
59 | PNN.append( new ModemNetNode() ); | 59 | PNN.append( new ModemNetNode() ); |
60 | } | 60 | } |
diff --git a/noncore/settings/networksettings2/network/network_NN.cpp b/noncore/settings/networksettings2/network/network_NN.cpp index b5989df..b4313c4 100644 --- a/noncore/settings/networksettings2/network/network_NN.cpp +++ b/noncore/settings/networksettings2/network/network_NN.cpp | |||
@@ -31,31 +31,31 @@ ANetNodeInstance * NetworkNetNode::createInstance( void ) { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | const char ** NetworkNetNode::needs( void ) { | 33 | const char ** NetworkNetNode::needs( void ) { |
34 | return NetworkNeeds; | 34 | return NetworkNeeds; |
35 | } | 35 | } |
36 | 36 | ||
37 | const char * NetworkNetNode::provides( void ) { | 37 | const char * NetworkNetNode::provides( void ) { |
38 | return "connection"; | 38 | return "connection"; |
39 | } | 39 | } |
40 | 40 | ||
41 | bool NetworkNetNode::generateProperFilesFor( | 41 | bool NetworkNetNode::generateProperFilesFor( |
42 | ANetNodeInstance * ) { | 42 | ANetNodeInstance * ) { |
43 | return 1; | 43 | return 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | bool NetworkNetNode::generateDeviceDataForCommonFile( | 46 | bool NetworkNetNode::generateDeviceDataForCommonFile( |
47 | SystemFile & , | 47 | SystemFile & , |
48 | long ) { | 48 | long ) { |
49 | return 1; | 49 | return 0; |
50 | } | 50 | } |
51 | 51 | ||
52 | void NetworkNetNode::setSpecificAttribute( QString & , QString & ) { | 52 | void NetworkNetNode::setSpecificAttribute( QString & , QString & ) { |
53 | } | 53 | } |
54 | 54 | ||
55 | void NetworkNetNode::saveSpecificAttribute( QTextStream & ) { | 55 | void NetworkNetNode::saveSpecificAttribute( QTextStream & ) { |
56 | } | 56 | } |
57 | 57 | ||
58 | extern "C" { | 58 | extern "C" { |
59 | void create_plugin( QList<ANetNode> & PNN ) { | 59 | void create_plugin( QList<ANetNode> & PNN ) { |
60 | PNN.append( new NetworkNetNode() ); | 60 | PNN.append( new NetworkNetNode() ); |
61 | } | 61 | } |
diff --git a/noncore/settings/networksettings2/networksettings.pro b/noncore/settings/networksettings2/networksettings.pro index 34b9cde..ff147b1 100644 --- a/noncore/settings/networksettings2/networksettings.pro +++ b/noncore/settings/networksettings2/networksettings.pro | |||
@@ -2,20 +2,20 @@ | |||
2 | CONFIG = qt warn_on debug | 2 | CONFIG = qt warn_on debug |
3 | #CONFIG = qt warn_on release | 3 | #CONFIG = qt warn_on release |
4 | HEADERS = networksettings.h \ | 4 | HEADERS = networksettings.h \ |
5 | activateprofile.h \ | 5 | activateprofile.h \ |
6 | editconnection.h | 6 | editconnection.h |
7 | SOURCES = main.cpp \ | 7 | SOURCES = main.cpp \ |
8 | networksettings.cpp \ | 8 | networksettings.cpp \ |
9 | nsdata.cpp \ | 9 | nsdata.cpp \ |
10 | activateprofile.cpp \ | 10 | activateprofile.cpp \ |
11 | editconnection.cpp | 11 | editconnection.cpp |
12 | INCLUDEPATH += $(OPIEDIR)/include networksettings2/ | 12 | INCLUDEPATH += $(OPIEDIR)/include networksettings2/ |
13 | DEPENDPATH += $(OPIEDIR)/include networksettings2/ | 13 | DEPENDPATH += $(OPIEDIR)/include networksettings2/ |
14 | LIBS += -lqpe -L$(OPIEDIR)/plugins/networksettings2 -lnetworksettings2 -lopie | 14 | LIBS += -lqpe -L$(OPIEDIR)/plugins/networksettings2 -lnetworksettings2 -lopiecore2 |
15 | INTERFACES = networksettingsGUI.ui \ | 15 | INTERFACES = networksettingsGUI.ui \ |
16 | editconnectionGUI.ui \ | 16 | editconnectionGUI.ui \ |
17 | activateprofileGUI.ui | 17 | activateprofileGUI.ui |
18 | TARGET = $(OPIEDIR)/bin/networksettings2 | 18 | TARGET = $(OPIEDIR)/bin/networksettings2 |
19 | 19 | ||
20 | 20 | ||
21 | include ( $(OPIEDIR)/include.pro ) | 21 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/settings/networksettings2/networksettings2/networksettings2.pro b/noncore/settings/networksettings2/networksettings2/networksettings2.pro index c9945ff..11b5f84 100644 --- a/noncore/settings/networksettings2/networksettings2/networksettings2.pro +++ b/noncore/settings/networksettings2/networksettings2/networksettings2.pro | |||
@@ -9,18 +9,18 @@ HEADERS = netnode.h \ | |||
9 | GUIUtils.h \ | 9 | GUIUtils.h \ |
10 | asconnection.h \ | 10 | asconnection.h \ |
11 | asfullsetup.h \ | 11 | asfullsetup.h \ |
12 | systemfile.h \ | 12 | systemfile.h \ |
13 | asdevice.h | 13 | asdevice.h |
14 | SOURCES = netnode.cpp \ | 14 | SOURCES = netnode.cpp \ |
15 | GUIUtils.cpp \ | 15 | GUIUtils.cpp \ |
16 | system.cpp \ | 16 | system.cpp \ |
17 | systemfile.cpp \ | 17 | systemfile.cpp \ |
18 | resources.cpp | 18 | resources.cpp |
19 | INCLUDEPATH+= $(OPIEDIR)/include ../networksettings2 | 19 | INCLUDEPATH+= $(OPIEDIR)/include ../networksettings2 |
20 | DEPENDPATH+= $(OPIEDIR)/include | 20 | DEPENDPATH+= $(OPIEDIR)/include |
21 | LIBS += -lqpe -lopie | 21 | LIBS += -lqpe -lopiecore2 |
22 | INTERFACES= | 22 | INTERFACES= |
23 | TARGET = networksettings2 | 23 | TARGET = networksettings2 |
24 | VERSION = 1.0.0 | 24 | VERSION = 1.0.0 |
25 | 25 | ||
26 | include ( $(OPIEDIR)/include.pro ) | 26 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/settings/networksettings2/nsdata.cpp b/noncore/settings/networksettings2/nsdata.cpp index 64b83f7..bb37f10 100644 --- a/noncore/settings/networksettings2/nsdata.cpp +++ b/noncore/settings/networksettings2/nsdata.cpp | |||
@@ -293,25 +293,25 @@ QString NetworkSettingsData::generateSettings( bool ForceReq ) { | |||
293 | // generate files proper to each netnodeinstance | 293 | // generate files proper to each netnodeinstance |
294 | // | 294 | // |
295 | { Name2Instance_t & NNIs = NSResources->netNodeInstances(); | 295 | { Name2Instance_t & NNIs = NSResources->netNodeInstances(); |
296 | 296 | ||
297 | for( QDictIterator<ANetNodeInstance> NNIIt(NNIs); | 297 | for( QDictIterator<ANetNodeInstance> NNIIt(NNIs); |
298 | NNIIt.current(); | 298 | NNIIt.current(); |
299 | ++NNIIt | 299 | ++NNIIt |
300 | ){ | 300 | ){ |
301 | // for all nodes find those that are modified | 301 | // for all nodes find those that are modified |
302 | NNI = NNIIt.current(); | 302 | NNI = NNIIt.current(); |
303 | 303 | ||
304 | if( ForceIt || NNI->isModified() ) { | 304 | if( ForceIt || NNI->isModified() ) { |
305 | if( ! NNI->nodeClass()->generateProperFilesFor( NNI ) ) { | 305 | if( NNI->nodeClass()->generateProperFilesFor( NNI ) ) { |
306 | // problem generating | 306 | // problem generating |
307 | S = qApp->translate( "NetworkSettings", | 307 | S = qApp->translate( "NetworkSettings", |
308 | "<p>Cannot generate files proper to \"%1\"</p>" ). | 308 | "<p>Cannot generate files proper to \"%1\"</p>" ). |
309 | arg(NNI->nodeClass()->name()) ; | 309 | arg(NNI->nodeClass()->name()) ; |
310 | return S; | 310 | return S; |
311 | } | 311 | } |
312 | } | 312 | } |
313 | } | 313 | } |
314 | } | 314 | } |
315 | 315 | ||
316 | // | 316 | // |
317 | // generate all system files | 317 | // generate all system files |
@@ -485,34 +485,34 @@ bool NetworkSettingsData::regenerate( void ) { | |||
485 | QString NetworkSettingsData::generateSystemFileNode( | 485 | QString NetworkSettingsData::generateSystemFileNode( |
486 | SystemFile &SF, | 486 | SystemFile &SF, |
487 | AsDevice * CurDev, | 487 | AsDevice * CurDev, |
488 | ANetNodeInstance * DevNNI, | 488 | ANetNodeInstance * DevNNI, |
489 | long DevInstNr ) { | 489 | long DevInstNr ) { |
490 | 490 | ||
491 | QString S=""; | 491 | QString S=""; |
492 | ANetNode * CurDevNN = DevNNI->nodeClass(); | 492 | ANetNode * CurDevNN = DevNNI->nodeClass(); |
493 | Name2Connection_t & M = NSResources->connections(); | 493 | Name2Connection_t & M = NSResources->connections(); |
494 | 494 | ||
495 | if( SF.preDeviceSection( CurDevNN ) ) { | 495 | if( SF.preDeviceSection( CurDevNN ) ) { |
496 | S = qApp->translate( "NetworkSettings", | 496 | S = qApp->translate( "NetworkSettings", |
497 | "<p>Error in preDeviceSection for file \"%1\" and nodetype \"%2\"</p>" ). | 497 | "<p>Error in \"Pre-Device Part\" for file \"%1\" and nodetype \"%2\"</p>" ). |
498 | arg( SF.name() ). | 498 | arg( SF.name() ). |
499 | arg( CurDevNN->name() ); | 499 | arg( CurDevNN->name() ); |
500 | return S; | 500 | return S; |
501 | } | 501 | } |
502 | 502 | ||
503 | if( CurDevNN->hasDataFor( SF.name() ) ) { | 503 | if( CurDevNN->hasDataFor( SF.name() ) ) { |
504 | if( CurDevNN->generateDeviceDataForCommonFile( SF, DevInstNr ) ) { | 504 | if( CurDevNN->generateDeviceDataForCommonFile( SF, DevInstNr ) ) { |
505 | S = qApp->translate( "NetworkSettings", | 505 | S = qApp->translate( "NetworkSettings", |
506 | "<p>Error in node Device part for file \"%1\" and node \"%2\"</p>" ). | 506 | "<p>Error in \"Device Part\" for file \"%1\" and node \"%2\"</p>" ). |
507 | arg( SF.name() ). | 507 | arg( SF.name() ). |
508 | arg( CurDevNN->name() ); | 508 | arg( CurDevNN->name() ); |
509 | return S; | 509 | return S; |
510 | } | 510 | } |
511 | } | 511 | } |
512 | 512 | ||
513 | // now generate profile specific data for all | 513 | // now generate profile specific data for all |
514 | // connections working on a device of the current | 514 | // connections working on a device of the current |
515 | // netnode type | 515 | // netnode type |
516 | for( QDictIterator<NodeCollection> ncit(M); | 516 | for( QDictIterator<NodeCollection> ncit(M); |
517 | ncit.current(); | 517 | ncit.current(); |
518 | ++ncit ) { | 518 | ++ncit ) { |
@@ -528,55 +528,55 @@ QString NetworkSettingsData::generateSystemFileNode( | |||
528 | continue; | 528 | continue; |
529 | } | 529 | } |
530 | } else { | 530 | } else { |
531 | if( Dev ) { | 531 | if( Dev ) { |
532 | // other | 532 | // other |
533 | continue; | 533 | continue; |
534 | } | 534 | } |
535 | } | 535 | } |
536 | 536 | ||
537 | // generate 'entry' | 537 | // generate 'entry' |
538 | if( SF.preNodeSection( DevNNI, DevInstNr ) ) { | 538 | if( SF.preNodeSection( DevNNI, DevInstNr ) ) { |
539 | S = qApp->translate( "NetworkSettings", | 539 | S = qApp->translate( "NetworkSettings", |
540 | "<p>Error in preNodeSection for file \"%1\" and node \"%2\"</p>" ). | 540 | "<p>Error in \"Pre-Node Part\" for file \"%1\" and node \"%2\"</p>" ). |
541 | arg( SF.name() ). | 541 | arg( SF.name() ). |
542 | arg( CurDevNN->name() ); | 542 | arg( CurDevNN->name() ); |
543 | return S; | 543 | return S; |
544 | } | 544 | } |
545 | 545 | ||
546 | // ask all nodes in connection | 546 | // ask all nodes in connection |
547 | for( QListIterator<ANetNodeInstance> cncit(*NC); | 547 | for( QListIterator<ANetNodeInstance> cncit(*NC); |
548 | cncit.current(); | 548 | cncit.current(); |
549 | ++cncit ) { | 549 | ++cncit ) { |
550 | ANetNodeInstance * NNI = cncit.current(); | 550 | ANetNodeInstance * NNI = cncit.current(); |
551 | 551 | ||
552 | if( NNI->hasDataFor( SF.name() ) ) { | 552 | if( NNI->hasDataFor( SF.name() ) ) { |
553 | if( NNI->generateDataForCommonFile(SF,DevInstNr) ) { | 553 | if( NNI->generateDataForCommonFile(SF,DevInstNr) ) { |
554 | S = qApp->translate( "NetworkSettings", | 554 | S = qApp->translate( "NetworkSettings", |
555 | "<p>Error in node part for file \"%1\" and node \"%2\"</p>" ). | 555 | "<p>Error in \"Node Part\" for file \"%1\" and node \"%2\"</p>" ). |
556 | arg( SF.name() ). | 556 | arg( SF.name() ). |
557 | arg( NNI->nodeClass()->name() ); | 557 | arg( NNI->nodeClass()->name() ); |
558 | return S; | 558 | return S; |
559 | } | 559 | } |
560 | } | 560 | } |
561 | } | 561 | } |
562 | 562 | ||
563 | if( SF.postNodeSection( DevNNI, DevInstNr ) ) { | 563 | if( SF.postNodeSection( DevNNI, DevInstNr ) ) { |
564 | S = qApp->translate( "NetworkSettings", | 564 | S = qApp->translate( "NetworkSettings", |
565 | "<p>Error in postNodeSection for file \"%1\" and node \"%2\"</p>" ). | 565 | "<p>Error in \"Post-Node Part\" for file \"%1\" and node \"%2\"</p>" ). |
566 | arg( SF.name() ). | 566 | arg( SF.name() ). |
567 | arg( CurDevNN->name() ); | 567 | arg( CurDevNN->name() ); |
568 | return S; | 568 | return S; |
569 | } | 569 | } |
570 | SF << endl; | 570 | SF << endl; |
571 | } | 571 | } |
572 | 572 | ||
573 | if( SF.postDeviceSection( CurDevNN ) ) { | 573 | if( SF.postDeviceSection( CurDevNN ) ) { |
574 | S = qApp->translate( "NetworkSettings", | 574 | S = qApp->translate( "NetworkSettings", |
575 | "<p>Error in postDeviceSection for file \"%1\" and node \"%2\"</p>" ). | 575 | "<p>Error in \"Post-Device Part\" for file \"%1\" and node \"%2\"</p>" ). |
576 | arg( SF.name() ). | 576 | arg( SF.name() ). |
577 | arg( CurDevNN->name() ); | 577 | arg( CurDevNN->name() ); |
578 | return S; | 578 | return S; |
579 | } | 579 | } |
580 | 580 | ||
581 | return S; | 581 | return S; |
582 | } | 582 | } |
diff --git a/noncore/settings/networksettings2/ppp/ppp_NN.cpp b/noncore/settings/networksettings2/ppp/ppp_NN.cpp index 208c7c2..b7edf87 100644 --- a/noncore/settings/networksettings2/ppp/ppp_NN.cpp +++ b/noncore/settings/networksettings2/ppp/ppp_NN.cpp | |||
@@ -32,31 +32,31 @@ ANetNodeInstance * PPPNetNode::createInstance( void ) { | |||
32 | } | 32 | } |
33 | 33 | ||
34 | const char ** PPPNetNode::needs( void ) { | 34 | const char ** PPPNetNode::needs( void ) { |
35 | return PPPNeeds; | 35 | return PPPNeeds; |
36 | } | 36 | } |
37 | 37 | ||
38 | const char * PPPNetNode::provides( void ) { | 38 | const char * PPPNetNode::provides( void ) { |
39 | return "connection"; | 39 | return "connection"; |
40 | } | 40 | } |
41 | 41 | ||
42 | bool PPPNetNode::generateProperFilesFor( | 42 | bool PPPNetNode::generateProperFilesFor( |
43 | ANetNodeInstance * ) { | 43 | ANetNodeInstance * ) { |
44 | return 1; | 44 | return 0; |
45 | } | 45 | } |
46 | 46 | ||
47 | bool PPPNetNode::generateDeviceDataForCommonFile( | 47 | bool PPPNetNode::generateDeviceDataForCommonFile( |
48 | SystemFile & , | 48 | SystemFile & , |
49 | long ) { | 49 | long ) { |
50 | return 1; | 50 | return 0; |
51 | } | 51 | } |
52 | 52 | ||
53 | QString PPPNetNode::genNic( long NicNr ) { | 53 | QString PPPNetNode::genNic( long NicNr ) { |
54 | QString S; | 54 | QString S; |
55 | return S.sprintf( "ppp%ld", NicNr ); | 55 | return S.sprintf( "ppp%ld", NicNr ); |
56 | } | 56 | } |
57 | 57 | ||
58 | void PPPNetNode::setSpecificAttribute( QString & , QString & ) { | 58 | void PPPNetNode::setSpecificAttribute( QString & , QString & ) { |
59 | } | 59 | } |
60 | 60 | ||
61 | void PPPNetNode::saveSpecificAttribute( QTextStream & ) { | 61 | void PPPNetNode::saveSpecificAttribute( QTextStream & ) { |
62 | } | 62 | } |
diff --git a/noncore/settings/networksettings2/profile/profile_NN.cpp b/noncore/settings/networksettings2/profile/profile_NN.cpp index d06b7ef..59c34a3 100644 --- a/noncore/settings/networksettings2/profile/profile_NN.cpp +++ b/noncore/settings/networksettings2/profile/profile_NN.cpp | |||
@@ -31,31 +31,31 @@ ANetNodeInstance * ProfileNetNode::createInstance( void ) { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | const char ** ProfileNetNode::needs( void ) { | 33 | const char ** ProfileNetNode::needs( void ) { |
34 | return ProfileNeeds; | 34 | return ProfileNeeds; |
35 | } | 35 | } |
36 | 36 | ||
37 | const char * ProfileNetNode::provides( void ) { | 37 | const char * ProfileNetNode::provides( void ) { |
38 | return "fullsetup"; | 38 | return "fullsetup"; |
39 | } | 39 | } |
40 | 40 | ||
41 | bool ProfileNetNode::generateProperFilesFor( | 41 | bool ProfileNetNode::generateProperFilesFor( |
42 | ANetNodeInstance * ) { | 42 | ANetNodeInstance * ) { |
43 | return 1; | 43 | return 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | bool ProfileNetNode::generateDeviceDataForCommonFile( | 46 | bool ProfileNetNode::generateDeviceDataForCommonFile( |
47 | SystemFile & , | 47 | SystemFile & , |
48 | long ) { | 48 | long ) { |
49 | return 1; | 49 | return 0; |
50 | } | 50 | } |
51 | 51 | ||
52 | void ProfileNetNode::setSpecificAttribute( QString & , QString & ) { | 52 | void ProfileNetNode::setSpecificAttribute( QString & , QString & ) { |
53 | } | 53 | } |
54 | 54 | ||
55 | void ProfileNetNode::saveSpecificAttribute( QTextStream & ) { | 55 | void ProfileNetNode::saveSpecificAttribute( QTextStream & ) { |
56 | } | 56 | } |
57 | 57 | ||
58 | extern "C" { | 58 | extern "C" { |
59 | void create_plugin( QList<ANetNode> & PNN ) { | 59 | void create_plugin( QList<ANetNode> & PNN ) { |
60 | PNN.append( new ProfileNetNode() ); | 60 | PNN.append( new ProfileNetNode() ); |
61 | } | 61 | } |
diff --git a/noncore/settings/networksettings2/usb/usb_NN.cpp b/noncore/settings/networksettings2/usb/usb_NN.cpp index 9101490..c10a09c 100644 --- a/noncore/settings/networksettings2/usb/usb_NN.cpp +++ b/noncore/settings/networksettings2/usb/usb_NN.cpp | |||
@@ -30,25 +30,25 @@ ANetNodeInstance * USBNetNode::createInstance( void ) { | |||
30 | } | 30 | } |
31 | 31 | ||
32 | const char ** USBNetNode::needs( void ) { | 32 | const char ** USBNetNode::needs( void ) { |
33 | return USBNeeds; | 33 | return USBNeeds; |
34 | } | 34 | } |
35 | 35 | ||
36 | const char * USBNetNode::provides( void ) { | 36 | const char * USBNetNode::provides( void ) { |
37 | return "device"; | 37 | return "device"; |
38 | } | 38 | } |
39 | 39 | ||
40 | bool USBNetNode::generateProperFilesFor( | 40 | bool USBNetNode::generateProperFilesFor( |
41 | ANetNodeInstance * ) { | 41 | ANetNodeInstance * ) { |
42 | return 1; | 42 | return 0; |
43 | } | 43 | } |
44 | 44 | ||
45 | bool USBNetNode::hasDataFor( const QString & S ) { | 45 | bool USBNetNode::hasDataFor( const QString & S ) { |
46 | return (S== "interfaces"); | 46 | return (S== "interfaces"); |
47 | } | 47 | } |
48 | 48 | ||
49 | bool USBNetNode::generateDeviceDataForCommonFile( | 49 | bool USBNetNode::generateDeviceDataForCommonFile( |
50 | SystemFile & S , | 50 | SystemFile & S , |
51 | long DevNr ) { | 51 | long DevNr ) { |
52 | QString NIC = genNic( DevNr ); | 52 | QString NIC = genNic( DevNr ); |
53 | 53 | ||
54 | if( S.name() == "interfaces" ) { | 54 | if( S.name() == "interfaces" ) { |
diff --git a/noncore/settings/networksettings2/vpn/vpn_NN.cpp b/noncore/settings/networksettings2/vpn/vpn_NN.cpp index bfc30f9..6c7b308 100644 --- a/noncore/settings/networksettings2/vpn/vpn_NN.cpp +++ b/noncore/settings/networksettings2/vpn/vpn_NN.cpp | |||
@@ -31,31 +31,31 @@ ANetNodeInstance * VPNNetNode::createInstance( void ) { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | const char ** VPNNetNode::needs( void ) { | 33 | const char ** VPNNetNode::needs( void ) { |
34 | return VPNNeeds; | 34 | return VPNNeeds; |
35 | } | 35 | } |
36 | 36 | ||
37 | const char * VPNNetNode::provides( void ) { | 37 | const char * VPNNetNode::provides( void ) { |
38 | return "connection"; | 38 | return "connection"; |
39 | } | 39 | } |
40 | 40 | ||
41 | bool VPNNetNode::generateProperFilesFor( | 41 | bool VPNNetNode::generateProperFilesFor( |
42 | ANetNodeInstance * ) { | 42 | ANetNodeInstance * ) { |
43 | return 1; | 43 | return 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | bool VPNNetNode::generateDeviceDataForCommonFile( | 46 | bool VPNNetNode::generateDeviceDataForCommonFile( |
47 | SystemFile & , | 47 | SystemFile & , |
48 | long ) { | 48 | long ) { |
49 | return 1; | 49 | return 0; |
50 | } | 50 | } |
51 | 51 | ||
52 | void VPNNetNode::setSpecificAttribute( QString & , QString & ) { | 52 | void VPNNetNode::setSpecificAttribute( QString & , QString & ) { |
53 | } | 53 | } |
54 | 54 | ||
55 | void VPNNetNode::saveSpecificAttribute( QTextStream & ) { | 55 | void VPNNetNode::saveSpecificAttribute( QTextStream & ) { |
56 | } | 56 | } |
57 | 57 | ||
58 | extern "C" { | 58 | extern "C" { |
59 | void create_plugin( QList<ANetNode> & PNN ) { | 59 | void create_plugin( QList<ANetNode> & PNN ) { |
60 | PNN.append( new VPNNetNode() ); | 60 | PNN.append( new VPNNetNode() ); |
61 | } | 61 | } |
diff --git a/noncore/settings/networksettings2/wlan/wlanGUI.ui b/noncore/settings/networksettings2/wlan/wlanGUI.ui index 23d6f86..9614369 100644 --- a/noncore/settings/networksettings2/wlan/wlanGUI.ui +++ b/noncore/settings/networksettings2/wlan/wlanGUI.ui | |||
@@ -2,25 +2,25 @@ | |||
2 | <class>WLanGUI</class> | 2 | <class>WLanGUI</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QWidget</class> | 4 | <class>QWidget</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>WLanGUI</cstring> | 7 | <cstring>WLanGUI</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>196</width> | 14 | <width>192</width> |
15 | <height>329</height> | 15 | <height>329</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>caption</name> | 19 | <name>caption</name> |
20 | <string>Form1</string> | 20 | <string>Form1</string> |
21 | </property> | 21 | </property> |
22 | <property> | 22 | <property> |
23 | <name>layoutMargin</name> | 23 | <name>layoutMargin</name> |
24 | </property> | 24 | </property> |
25 | <property> | 25 | <property> |
26 | <name>layoutSpacing</name> | 26 | <name>layoutSpacing</name> |
@@ -29,25 +29,25 @@ | |||
29 | <property stdset="1"> | 29 | <property stdset="1"> |
30 | <name>margin</name> | 30 | <name>margin</name> |
31 | <number>0</number> | 31 | <number>0</number> |
32 | </property> | 32 | </property> |
33 | <property stdset="1"> | 33 | <property stdset="1"> |
34 | <name>spacing</name> | 34 | <name>spacing</name> |
35 | <number>0</number> | 35 | <number>0</number> |
36 | </property> | 36 | </property> |
37 | <widget> | 37 | <widget> |
38 | <class>QTabWidget</class> | 38 | <class>QTabWidget</class> |
39 | <property stdset="1"> | 39 | <property stdset="1"> |
40 | <name>name</name> | 40 | <name>name</name> |
41 | <cstring>tabWidget</cstring> | 41 | <cstring>WLan_TAB</cstring> |
42 | </property> | 42 | </property> |
43 | <property stdset="1"> | 43 | <property stdset="1"> |
44 | <name>enabled</name> | 44 | <name>enabled</name> |
45 | <bool>true</bool> | 45 | <bool>true</bool> |
46 | </property> | 46 | </property> |
47 | <property> | 47 | <property> |
48 | <name>layoutMargin</name> | 48 | <name>layoutMargin</name> |
49 | </property> | 49 | </property> |
50 | <property> | 50 | <property> |
51 | <name>layoutSpacing</name> | 51 | <name>layoutSpacing</name> |
52 | </property> | 52 | </property> |
53 | <widget> | 53 | <widget> |
@@ -110,25 +110,25 @@ | |||
110 | </property> | 110 | </property> |
111 | </widget> | 111 | </widget> |
112 | <widget row="1" column="1" > | 112 | <widget row="1" column="1" > |
113 | <class>QComboBox</class> | 113 | <class>QComboBox</class> |
114 | <item> | 114 | <item> |
115 | <property> | 115 | <property> |
116 | <name>text</name> | 116 | <name>text</name> |
117 | <string>any</string> | 117 | <string>any</string> |
118 | </property> | 118 | </property> |
119 | </item> | 119 | </item> |
120 | <property stdset="1"> | 120 | <property stdset="1"> |
121 | <name>name</name> | 121 | <name>name</name> |
122 | <cstring>essid</cstring> | 122 | <cstring>ESSID_CB</cstring> |
123 | </property> | 123 | </property> |
124 | <property stdset="1"> | 124 | <property stdset="1"> |
125 | <name>sizePolicy</name> | 125 | <name>sizePolicy</name> |
126 | <sizepolicy> | 126 | <sizepolicy> |
127 | <hsizetype>7</hsizetype> | 127 | <hsizetype>7</hsizetype> |
128 | <vsizetype>0</vsizetype> | 128 | <vsizetype>0</vsizetype> |
129 | </sizepolicy> | 129 | </sizepolicy> |
130 | </property> | 130 | </property> |
131 | <property stdset="1"> | 131 | <property stdset="1"> |
132 | <name>editable</name> | 132 | <name>editable</name> |
133 | <bool>true</bool> | 133 | <bool>true</bool> |
134 | </property> | 134 | </property> |
@@ -190,25 +190,25 @@ | |||
190 | <name>text</name> | 190 | <name>text</name> |
191 | <string>Managed</string> | 191 | <string>Managed</string> |
192 | </property> | 192 | </property> |
193 | </item> | 193 | </item> |
194 | <item> | 194 | <item> |
195 | <property> | 195 | <property> |
196 | <name>text</name> | 196 | <name>text</name> |
197 | <string>Ad-Hoc</string> | 197 | <string>Ad-Hoc</string> |
198 | </property> | 198 | </property> |
199 | </item> | 199 | </item> |
200 | <property stdset="1"> | 200 | <property stdset="1"> |
201 | <name>name</name> | 201 | <name>name</name> |
202 | <cstring>mode</cstring> | 202 | <cstring>Mode_CB</cstring> |
203 | </property> | 203 | </property> |
204 | <property stdset="1"> | 204 | <property stdset="1"> |
205 | <name>enabled</name> | 205 | <name>enabled</name> |
206 | <bool>true</bool> | 206 | <bool>true</bool> |
207 | </property> | 207 | </property> |
208 | <property stdset="1"> | 208 | <property stdset="1"> |
209 | <name>sizePolicy</name> | 209 | <name>sizePolicy</name> |
210 | <sizepolicy> | 210 | <sizepolicy> |
211 | <hsizetype>1</hsizetype> | 211 | <hsizetype>1</hsizetype> |
212 | <vsizetype>0</vsizetype> | 212 | <vsizetype>0</vsizetype> |
213 | </sizepolicy> | 213 | </sizepolicy> |
214 | </property> | 214 | </property> |
@@ -231,25 +231,25 @@ | |||
231 | <property stdset="1"> | 231 | <property stdset="1"> |
232 | <name>margin</name> | 232 | <name>margin</name> |
233 | <number>1</number> | 233 | <number>1</number> |
234 | </property> | 234 | </property> |
235 | <property stdset="1"> | 235 | <property stdset="1"> |
236 | <name>spacing</name> | 236 | <name>spacing</name> |
237 | <number>2</number> | 237 | <number>2</number> |
238 | </property> | 238 | </property> |
239 | <widget row="0" column="0" rowspan="1" colspan="3" > | 239 | <widget row="0" column="0" rowspan="1" colspan="3" > |
240 | <class>QCheckBox</class> | 240 | <class>QCheckBox</class> |
241 | <property stdset="1"> | 241 | <property stdset="1"> |
242 | <name>name</name> | 242 | <name>name</name> |
243 | <cstring>specifyAp</cstring> | 243 | <cstring>SpecifyAP_CB</cstring> |
244 | </property> | 244 | </property> |
245 | <property stdset="1"> | 245 | <property stdset="1"> |
246 | <name>text</name> | 246 | <name>text</name> |
247 | <string>Specify &Access Point</string> | 247 | <string>Specify &Access Point</string> |
248 | </property> | 248 | </property> |
249 | </widget> | 249 | </widget> |
250 | <widget row="1" column="1" > | 250 | <widget row="1" column="1" > |
251 | <class>QLabel</class> | 251 | <class>QLabel</class> |
252 | <property stdset="1"> | 252 | <property stdset="1"> |
253 | <name>name</name> | 253 | <name>name</name> |
254 | <cstring>macLabel</cstring> | 254 | <cstring>macLabel</cstring> |
255 | </property> | 255 | </property> |
@@ -264,25 +264,25 @@ | |||
264 | <vsizetype>1</vsizetype> | 264 | <vsizetype>1</vsizetype> |
265 | </sizepolicy> | 265 | </sizepolicy> |
266 | </property> | 266 | </property> |
267 | <property stdset="1"> | 267 | <property stdset="1"> |
268 | <name>text</name> | 268 | <name>text</name> |
269 | <string>MAC</string> | 269 | <string>MAC</string> |
270 | </property> | 270 | </property> |
271 | </widget> | 271 | </widget> |
272 | <widget row="1" column="2" > | 272 | <widget row="1" column="2" > |
273 | <class>QLineEdit</class> | 273 | <class>QLineEdit</class> |
274 | <property stdset="1"> | 274 | <property stdset="1"> |
275 | <name>name</name> | 275 | <name>name</name> |
276 | <cstring>macEdit</cstring> | 276 | <cstring>APMac_LE</cstring> |
277 | </property> | 277 | </property> |
278 | <property stdset="1"> | 278 | <property stdset="1"> |
279 | <name>enabled</name> | 279 | <name>enabled</name> |
280 | <bool>false</bool> | 280 | <bool>false</bool> |
281 | </property> | 281 | </property> |
282 | <property stdset="1"> | 282 | <property stdset="1"> |
283 | <name>sizePolicy</name> | 283 | <name>sizePolicy</name> |
284 | <sizepolicy> | 284 | <sizepolicy> |
285 | <hsizetype>7</hsizetype> | 285 | <hsizetype>7</hsizetype> |
286 | <vsizetype>1</vsizetype> | 286 | <vsizetype>1</vsizetype> |
287 | </sizepolicy> | 287 | </sizepolicy> |
288 | </property> | 288 | </property> |
@@ -323,36 +323,36 @@ | |||
323 | <property stdset="1"> | 323 | <property stdset="1"> |
324 | <name>margin</name> | 324 | <name>margin</name> |
325 | <number>1</number> | 325 | <number>1</number> |
326 | </property> | 326 | </property> |
327 | <property stdset="1"> | 327 | <property stdset="1"> |
328 | <name>spacing</name> | 328 | <name>spacing</name> |
329 | <number>6</number> | 329 | <number>6</number> |
330 | </property> | 330 | </property> |
331 | <widget> | 331 | <widget> |
332 | <class>QCheckBox</class> | 332 | <class>QCheckBox</class> |
333 | <property stdset="1"> | 333 | <property stdset="1"> |
334 | <name>name</name> | 334 | <name>name</name> |
335 | <cstring>specifyChan</cstring> | 335 | <cstring>SpecifyChannel_CB</cstring> |
336 | </property> | 336 | </property> |
337 | <property stdset="1"> | 337 | <property stdset="1"> |
338 | <name>text</name> | 338 | <name>text</name> |
339 | <string>Specific &Channel</string> | 339 | <string>Specific &Channel</string> |
340 | </property> | 340 | </property> |
341 | </widget> | 341 | </widget> |
342 | <widget> | 342 | <widget> |
343 | <class>QSpinBox</class> | 343 | <class>QSpinBox</class> |
344 | <property stdset="1"> | 344 | <property stdset="1"> |
345 | <name>name</name> | 345 | <name>name</name> |
346 | <cstring>networkChannel</cstring> | 346 | <cstring>ChannelNr_SB</cstring> |
347 | </property> | 347 | </property> |
348 | <property stdset="1"> | 348 | <property stdset="1"> |
349 | <name>enabled</name> | 349 | <name>enabled</name> |
350 | <bool>false</bool> | 350 | <bool>false</bool> |
351 | </property> | 351 | </property> |
352 | <property stdset="1"> | 352 | <property stdset="1"> |
353 | <name>maxValue</name> | 353 | <name>maxValue</name> |
354 | <number>15</number> | 354 | <number>15</number> |
355 | </property> | 355 | </property> |
356 | <property stdset="1"> | 356 | <property stdset="1"> |
357 | <name>minValue</name> | 357 | <name>minValue</name> |
358 | <number>1</number> | 358 | <number>1</number> |
@@ -391,35 +391,35 @@ | |||
391 | <class>QWidget</class> | 391 | <class>QWidget</class> |
392 | <property stdset="1"> | 392 | <property stdset="1"> |
393 | <name>name</name> | 393 | <name>name</name> |
394 | <cstring>WepPage</cstring> | 394 | <cstring>WepPage</cstring> |
395 | </property> | 395 | </property> |
396 | <attribute> | 396 | <attribute> |
397 | <name>title</name> | 397 | <name>title</name> |
398 | <string>Encryption</string> | 398 | <string>Encryption</string> |
399 | </attribute> | 399 | </attribute> |
400 | <vbox> | 400 | <vbox> |
401 | <property stdset="1"> | 401 | <property stdset="1"> |
402 | <name>margin</name> | 402 | <name>margin</name> |
403 | <number>0</number> | 403 | <number>2</number> |
404 | </property> | 404 | </property> |
405 | <property stdset="1"> | 405 | <property stdset="1"> |
406 | <name>spacing</name> | 406 | <name>spacing</name> |
407 | <number>2</number> | 407 | <number>2</number> |
408 | </property> | 408 | </property> |
409 | <widget> | 409 | <widget> |
410 | <class>QCheckBox</class> | 410 | <class>QCheckBox</class> |
411 | <property stdset="1"> | 411 | <property stdset="1"> |
412 | <name>name</name> | 412 | <name>name</name> |
413 | <cstring>wepEnabled</cstring> | 413 | <cstring>EnableWEB_CB</cstring> |
414 | </property> | 414 | </property> |
415 | <property stdset="1"> | 415 | <property stdset="1"> |
416 | <name>text</name> | 416 | <name>text</name> |
417 | <string>&Enable Encryption</string> | 417 | <string>&Enable Encryption</string> |
418 | </property> | 418 | </property> |
419 | </widget> | 419 | </widget> |
420 | <widget> | 420 | <widget> |
421 | <class>QButtonGroup</class> | 421 | <class>QButtonGroup</class> |
422 | <property stdset="1"> | 422 | <property stdset="1"> |
423 | <name>name</name> | 423 | <name>name</name> |
424 | <cstring>KeyButtonGroup</cstring> | 424 | <cstring>KeyButtonGroup</cstring> |
425 | </property> | 425 | </property> |
@@ -441,163 +441,116 @@ | |||
441 | <property stdset="1"> | 441 | <property stdset="1"> |
442 | <name>margin</name> | 442 | <name>margin</name> |
443 | <number>2</number> | 443 | <number>2</number> |
444 | </property> | 444 | </property> |
445 | <property stdset="1"> | 445 | <property stdset="1"> |
446 | <name>spacing</name> | 446 | <name>spacing</name> |
447 | <number>2</number> | 447 | <number>2</number> |
448 | </property> | 448 | </property> |
449 | <widget row="0" column="0" > | 449 | <widget row="0" column="0" > |
450 | <class>QRadioButton</class> | 450 | <class>QRadioButton</class> |
451 | <property stdset="1"> | 451 | <property stdset="1"> |
452 | <name>name</name> | 452 | <name>name</name> |
453 | <cstring>keyRadio0</cstring> | 453 | <cstring>Key1_RB</cstring> |
454 | </property> | 454 | </property> |
455 | <property stdset="1"> | 455 | <property stdset="1"> |
456 | <name>text</name> | 456 | <name>text</name> |
457 | <string>Key &1</string> | 457 | <string>Key &1</string> |
458 | </property> | 458 | </property> |
459 | <property stdset="1"> | 459 | <property stdset="1"> |
460 | <name>checked</name> | 460 | <name>checked</name> |
461 | <bool>true</bool> | 461 | <bool>true</bool> |
462 | </property> | 462 | </property> |
463 | </widget> | 463 | </widget> |
464 | <widget row="3" column="0" > | 464 | <widget row="3" column="0" > |
465 | <class>QRadioButton</class> | 465 | <class>QRadioButton</class> |
466 | <property stdset="1"> | 466 | <property stdset="1"> |
467 | <name>name</name> | 467 | <name>name</name> |
468 | <cstring>keyRadio3</cstring> | 468 | <cstring>Key4_RB</cstring> |
469 | </property> | 469 | </property> |
470 | <property stdset="1"> | 470 | <property stdset="1"> |
471 | <name>text</name> | 471 | <name>text</name> |
472 | <string>Key &4</string> | 472 | <string>Key &4</string> |
473 | </property> | 473 | </property> |
474 | </widget> | 474 | </widget> |
475 | <widget row="0" column="1" > | 475 | <widget row="0" column="1" > |
476 | <class>QLineEdit</class> | 476 | <class>QLineEdit</class> |
477 | <property stdset="1"> | 477 | <property stdset="1"> |
478 | <name>name</name> | 478 | <name>name</name> |
479 | <cstring>LineEdit6</cstring> | 479 | <cstring>Key1_LE</cstring> |
480 | </property> | ||
481 | <property stdset="1"> | ||
482 | <name>frame</name> | ||
483 | <bool>true</bool> | ||
480 | </property> | 484 | </property> |
481 | </widget> | 485 | </widget> |
482 | <widget row="1" column="0" > | 486 | <widget row="1" column="0" > |
483 | <class>QRadioButton</class> | 487 | <class>QRadioButton</class> |
484 | <property stdset="1"> | 488 | <property stdset="1"> |
485 | <name>name</name> | 489 | <name>name</name> |
486 | <cstring>keyRadio1</cstring> | 490 | <cstring>Key2_RB</cstring> |
487 | </property> | 491 | </property> |
488 | <property stdset="1"> | 492 | <property stdset="1"> |
489 | <name>text</name> | 493 | <name>text</name> |
490 | <string>Key &2</string> | 494 | <string>Key &2</string> |
491 | </property> | 495 | </property> |
492 | </widget> | 496 | </widget> |
493 | <widget row="2" column="0" > | 497 | <widget row="2" column="0" > |
494 | <class>QRadioButton</class> | 498 | <class>QRadioButton</class> |
495 | <property stdset="1"> | 499 | <property stdset="1"> |
496 | <name>name</name> | 500 | <name>name</name> |
497 | <cstring>keyRadio2</cstring> | 501 | <cstring>Key3_RB</cstring> |
498 | </property> | 502 | </property> |
499 | <property stdset="1"> | 503 | <property stdset="1"> |
500 | <name>text</name> | 504 | <name>text</name> |
501 | <string>Key &3</string> | 505 | <string>Key &3</string> |
502 | </property> | 506 | </property> |
503 | </widget> | 507 | </widget> |
504 | <widget row="1" column="1" > | 508 | <widget row="1" column="1" > |
505 | <class>QLineEdit</class> | 509 | <class>QLineEdit</class> |
506 | <property stdset="1"> | 510 | <property stdset="1"> |
507 | <name>name</name> | 511 | <name>name</name> |
508 | <cstring>LineEdit6_2</cstring> | 512 | <cstring>Key2_LE</cstring> |
509 | </property> | 513 | </property> |
510 | </widget> | 514 | </widget> |
511 | <widget row="3" column="1" > | 515 | <widget row="3" column="1" > |
512 | <class>QLineEdit</class> | 516 | <class>QLineEdit</class> |
513 | <property stdset="1"> | 517 | <property stdset="1"> |
514 | <name>name</name> | 518 | <name>name</name> |
515 | <cstring>LineEdit6_4</cstring> | 519 | <cstring>Key4_LE</cstring> |
516 | </property> | 520 | </property> |
517 | </widget> | 521 | </widget> |
518 | <widget row="2" column="1" > | 522 | <widget row="2" column="1" > |
519 | <class>QLineEdit</class> | 523 | <class>QLineEdit</class> |
520 | <property stdset="1"> | 524 | <property stdset="1"> |
521 | <name>name</name> | 525 | <name>name</name> |
522 | <cstring>LineEdit6_3</cstring> | 526 | <cstring>Key3_LE</cstring> |
523 | </property> | 527 | </property> |
524 | </widget> | 528 | </widget> |
525 | </grid> | 529 | </grid> |
526 | </widget> | 530 | </widget> |
527 | <widget> | 531 | <widget> |
528 | <class>QButtonGroup</class> | 532 | <class>QCheckBox</class> |
529 | <property stdset="1"> | 533 | <property stdset="1"> |
530 | <name>name</name> | 534 | <name>name</name> |
531 | <cstring>NonEncButtonGroup</cstring> | 535 | <cstring>CheckBox4</cstring> |
532 | </property> | 536 | </property> |
533 | <property stdset="1"> | 537 | <property stdset="1"> |
534 | <name>enabled</name> | 538 | <name>enabled</name> |
535 | <bool>false</bool> | 539 | <bool>false</bool> |
536 | </property> | 540 | </property> |
537 | <property stdset="1"> | 541 | <property stdset="1"> |
538 | <name>title</name> | 542 | <name>text</name> |
539 | <string>Non-encrypted Packets</string> | 543 | <string>Accept Non-Encrypted packets</string> |
540 | </property> | ||
541 | <property stdset="1"> | ||
542 | <name>radioButtonExclusive</name> | ||
543 | <bool>true</bool> | ||
544 | </property> | ||
545 | <property> | ||
546 | <name>layoutMargin</name> | ||
547 | </property> | 544 | </property> |
548 | <grid> | ||
549 | <property stdset="1"> | ||
550 | <name>margin</name> | ||
551 | <number>2</number> | ||
552 | </property> | ||
553 | <property stdset="1"> | ||
554 | <name>spacing</name> | ||
555 | <number>6</number> | ||
556 | </property> | ||
557 | <widget row="0" column="0" > | ||
558 | <class>QRadioButton</class> | ||
559 | <property stdset="1"> | ||
560 | <name>name</name> | ||
561 | <cstring>acceptNonEnc</cstring> | ||
562 | </property> | ||
563 | <property stdset="1"> | ||
564 | <name>text</name> | ||
565 | <string>&Accept</string> | ||
566 | </property> | ||
567 | <property stdset="1"> | ||
568 | <name>checked</name> | ||
569 | <bool>true</bool> | ||
570 | </property> | ||
571 | <property stdset="1"> | ||
572 | <name>buttonGroupId</name> | ||
573 | <number>0</number> | ||
574 | </property> | ||
575 | </widget> | ||
576 | <widget row="0" column="1" > | ||
577 | <class>QRadioButton</class> | ||
578 | <property stdset="1"> | ||
579 | <name>name</name> | ||
580 | <cstring>rejectNonEnc</cstring> | ||
581 | </property> | ||
582 | <property stdset="1"> | ||
583 | <name>text</name> | ||
584 | <string>&Reject</string> | ||
585 | </property> | ||
586 | <property stdset="1"> | ||
587 | <name>buttonGroupId</name> | ||
588 | <number>1</number> | ||
589 | </property> | ||
590 | </widget> | ||
591 | </grid> | ||
592 | </widget> | 545 | </widget> |
593 | <spacer> | 546 | <spacer> |
594 | <property> | 547 | <property> |
595 | <name>name</name> | 548 | <name>name</name> |
596 | <cstring>Spacer30</cstring> | 549 | <cstring>Spacer30</cstring> |
597 | </property> | 550 | </property> |
598 | <property stdset="1"> | 551 | <property stdset="1"> |
599 | <name>orientation</name> | 552 | <name>orientation</name> |
600 | <enum>Vertical</enum> | 553 | <enum>Vertical</enum> |
601 | </property> | 554 | </property> |
602 | <property stdset="1"> | 555 | <property stdset="1"> |
603 | <name>sizeType</name> | 556 | <name>sizeType</name> |
@@ -664,25 +617,29 @@ | |||
664 | <widget row="3" column="1" > | 617 | <widget row="3" column="1" > |
665 | <class>QLabel</class> | 618 | <class>QLabel</class> |
666 | <property stdset="1"> | 619 | <property stdset="1"> |
667 | <name>name</name> | 620 | <name>name</name> |
668 | <cstring>Channel_LBL</cstring> | 621 | <cstring>Channel_LBL</cstring> |
669 | </property> | 622 | </property> |
670 | <property stdset="1"> | 623 | <property stdset="1"> |
671 | <name>frameShape</name> | 624 | <name>frameShape</name> |
672 | <enum>Panel</enum> | 625 | <enum>Panel</enum> |
673 | </property> | 626 | </property> |
674 | <property stdset="1"> | 627 | <property stdset="1"> |
675 | <name>frameShadow</name> | 628 | <name>frameShadow</name> |
676 | <enum>Sunken</enum> | 629 | <enum>Plain</enum> |
630 | </property> | ||
631 | <property stdset="1"> | ||
632 | <name>indent</name> | ||
633 | <number>0</number> | ||
677 | </property> | 634 | </property> |
678 | </widget> | 635 | </widget> |
679 | <widget row="3" column="0" > | 636 | <widget row="3" column="0" > |
680 | <class>QLabel</class> | 637 | <class>QLabel</class> |
681 | <property stdset="1"> | 638 | <property stdset="1"> |
682 | <name>name</name> | 639 | <name>name</name> |
683 | <cstring>TextLabel4_3</cstring> | 640 | <cstring>TextLabel4_3</cstring> |
684 | </property> | 641 | </property> |
685 | <property stdset="1"> | 642 | <property stdset="1"> |
686 | <name>text</name> | 643 | <name>text</name> |
687 | <string>Channel</string> | 644 | <string>Channel</string> |
688 | </property> | 645 | </property> |
@@ -723,47 +680,55 @@ | |||
723 | <widget row="0" column="1" > | 680 | <widget row="0" column="1" > |
724 | <class>QLabel</class> | 681 | <class>QLabel</class> |
725 | <property stdset="1"> | 682 | <property stdset="1"> |
726 | <name>name</name> | 683 | <name>name</name> |
727 | <cstring>Station_LBL</cstring> | 684 | <cstring>Station_LBL</cstring> |
728 | </property> | 685 | </property> |
729 | <property stdset="1"> | 686 | <property stdset="1"> |
730 | <name>frameShape</name> | 687 | <name>frameShape</name> |
731 | <enum>Panel</enum> | 688 | <enum>Panel</enum> |
732 | </property> | 689 | </property> |
733 | <property stdset="1"> | 690 | <property stdset="1"> |
734 | <name>frameShadow</name> | 691 | <name>frameShadow</name> |
735 | <enum>Sunken</enum> | 692 | <enum>Plain</enum> |
693 | </property> | ||
694 | <property stdset="1"> | ||
695 | <name>indent</name> | ||
696 | <number>0</number> | ||
736 | </property> | 697 | </property> |
737 | </widget> | 698 | </widget> |
738 | <widget row="5" column="1" > | 699 | <widget row="5" column="1" > |
739 | <class>QLabel</class> | 700 | <class>QLabel</class> |
740 | <property stdset="1"> | 701 | <property stdset="1"> |
741 | <name>name</name> | 702 | <name>name</name> |
742 | <cstring>Rate_LBL</cstring> | 703 | <cstring>Rate_LBL</cstring> |
743 | </property> | 704 | </property> |
744 | <property stdset="1"> | 705 | <property stdset="1"> |
745 | <name>sizePolicy</name> | 706 | <name>sizePolicy</name> |
746 | <sizepolicy> | 707 | <sizepolicy> |
747 | <hsizetype>7</hsizetype> | 708 | <hsizetype>7</hsizetype> |
748 | <vsizetype>1</vsizetype> | 709 | <vsizetype>1</vsizetype> |
749 | </sizepolicy> | 710 | </sizepolicy> |
750 | </property> | 711 | </property> |
751 | <property stdset="1"> | 712 | <property stdset="1"> |
752 | <name>frameShape</name> | 713 | <name>frameShape</name> |
753 | <enum>Panel</enum> | 714 | <enum>Panel</enum> |
754 | </property> | 715 | </property> |
755 | <property stdset="1"> | 716 | <property stdset="1"> |
756 | <name>frameShadow</name> | 717 | <name>frameShadow</name> |
757 | <enum>Sunken</enum> | 718 | <enum>Plain</enum> |
719 | </property> | ||
720 | <property stdset="1"> | ||
721 | <name>indent</name> | ||
722 | <number>0</number> | ||
758 | </property> | 723 | </property> |
759 | </widget> | 724 | </widget> |
760 | <widget row="5" column="0" > | 725 | <widget row="5" column="0" > |
761 | <class>QLabel</class> | 726 | <class>QLabel</class> |
762 | <property stdset="1"> | 727 | <property stdset="1"> |
763 | <name>name</name> | 728 | <name>name</name> |
764 | <cstring>TextLabel4_2_2</cstring> | 729 | <cstring>TextLabel4_2_2</cstring> |
765 | </property> | 730 | </property> |
766 | <property stdset="1"> | 731 | <property stdset="1"> |
767 | <name>text</name> | 732 | <name>text</name> |
768 | <string>Rate</string> | 733 | <string>Rate</string> |
769 | </property> | 734 | </property> |
@@ -771,55 +736,67 @@ | |||
771 | <widget row="4" column="1" > | 736 | <widget row="4" column="1" > |
772 | <class>QLabel</class> | 737 | <class>QLabel</class> |
773 | <property stdset="1"> | 738 | <property stdset="1"> |
774 | <name>name</name> | 739 | <name>name</name> |
775 | <cstring>AP_LBL</cstring> | 740 | <cstring>AP_LBL</cstring> |
776 | </property> | 741 | </property> |
777 | <property stdset="1"> | 742 | <property stdset="1"> |
778 | <name>frameShape</name> | 743 | <name>frameShape</name> |
779 | <enum>Panel</enum> | 744 | <enum>Panel</enum> |
780 | </property> | 745 | </property> |
781 | <property stdset="1"> | 746 | <property stdset="1"> |
782 | <name>frameShadow</name> | 747 | <name>frameShadow</name> |
783 | <enum>Sunken</enum> | 748 | <enum>Plain</enum> |
749 | </property> | ||
750 | <property stdset="1"> | ||
751 | <name>indent</name> | ||
752 | <number>0</number> | ||
784 | </property> | 753 | </property> |
785 | </widget> | 754 | </widget> |
786 | <widget row="1" column="1" > | 755 | <widget row="1" column="1" > |
787 | <class>QLabel</class> | 756 | <class>QLabel</class> |
788 | <property stdset="1"> | 757 | <property stdset="1"> |
789 | <name>name</name> | 758 | <name>name</name> |
790 | <cstring>essidLabel_3</cstring> | 759 | <cstring>ESSID_LBL</cstring> |
791 | </property> | 760 | </property> |
792 | <property stdset="1"> | 761 | <property stdset="1"> |
793 | <name>frameShape</name> | 762 | <name>frameShape</name> |
794 | <enum>Panel</enum> | 763 | <enum>Panel</enum> |
795 | </property> | 764 | </property> |
796 | <property stdset="1"> | 765 | <property stdset="1"> |
797 | <name>frameShadow</name> | 766 | <name>frameShadow</name> |
798 | <enum>Sunken</enum> | 767 | <enum>Plain</enum> |
768 | </property> | ||
769 | <property stdset="1"> | ||
770 | <name>indent</name> | ||
771 | <number>0</number> | ||
799 | </property> | 772 | </property> |
800 | </widget> | 773 | </widget> |
801 | <widget row="2" column="1" > | 774 | <widget row="2" column="1" > |
802 | <class>QLabel</class> | 775 | <class>QLabel</class> |
803 | <property stdset="1"> | 776 | <property stdset="1"> |
804 | <name>name</name> | 777 | <name>name</name> |
805 | <cstring>modeLabel_3</cstring> | 778 | <cstring>Mode_LBL</cstring> |
806 | </property> | 779 | </property> |
807 | <property stdset="1"> | 780 | <property stdset="1"> |
808 | <name>frameShape</name> | 781 | <name>frameShape</name> |
809 | <enum>Panel</enum> | 782 | <enum>Panel</enum> |
810 | </property> | 783 | </property> |
811 | <property stdset="1"> | 784 | <property stdset="1"> |
812 | <name>frameShadow</name> | 785 | <name>frameShadow</name> |
813 | <enum>Sunken</enum> | 786 | <enum>Plain</enum> |
787 | </property> | ||
788 | <property stdset="1"> | ||
789 | <name>indent</name> | ||
790 | <number>0</number> | ||
814 | </property> | 791 | </property> |
815 | </widget> | 792 | </widget> |
816 | </grid> | 793 | </grid> |
817 | </widget> | 794 | </widget> |
818 | <widget> | 795 | <widget> |
819 | <class>QGroupBox</class> | 796 | <class>QGroupBox</class> |
820 | <property stdset="1"> | 797 | <property stdset="1"> |
821 | <name>name</name> | 798 | <name>name</name> |
822 | <cstring>GroupBox1</cstring> | 799 | <cstring>GroupBox1</cstring> |
823 | </property> | 800 | </property> |
824 | <property stdset="1"> | 801 | <property stdset="1"> |
825 | <name>title</name> | 802 | <name>title</name> |
@@ -914,24 +891,32 @@ | |||
914 | <width>16</width> | 891 | <width>16</width> |
915 | <height>20</height> | 892 | <height>20</height> |
916 | </size> | 893 | </size> |
917 | </property> | 894 | </property> |
918 | </spacer> | 895 | </spacer> |
919 | <widget row="0" column="2" > | 896 | <widget row="0" column="2" > |
920 | <class>QProgressBar</class> | 897 | <class>QProgressBar</class> |
921 | <property stdset="1"> | 898 | <property stdset="1"> |
922 | <name>name</name> | 899 | <name>name</name> |
923 | <cstring>Signal_PB</cstring> | 900 | <cstring>Signal_PB</cstring> |
924 | </property> | 901 | </property> |
925 | <property stdset="1"> | 902 | <property stdset="1"> |
903 | <name>frameShadow</name> | ||
904 | <enum>Plain</enum> | ||
905 | </property> | ||
906 | <property stdset="1"> | ||
907 | <name>lineWidth</name> | ||
908 | <number>1</number> | ||
909 | </property> | ||
910 | <property stdset="1"> | ||
926 | <name>progress</name> | 911 | <name>progress</name> |
927 | <number>0</number> | 912 | <number>0</number> |
928 | </property> | 913 | </property> |
929 | </widget> | 914 | </widget> |
930 | </grid> | 915 | </grid> |
931 | </widget> | 916 | </widget> |
932 | <spacer> | 917 | <spacer> |
933 | <property> | 918 | <property> |
934 | <name>name</name> | 919 | <name>name</name> |
935 | <cstring>Spacer11</cstring> | 920 | <cstring>Spacer11</cstring> |
936 | </property> | 921 | </property> |
937 | <property stdset="1"> | 922 | <property stdset="1"> |
@@ -948,43 +933,43 @@ | |||
948 | <width>20</width> | 933 | <width>20</width> |
949 | <height>20</height> | 934 | <height>20</height> |
950 | </size> | 935 | </size> |
951 | </property> | 936 | </property> |
952 | </spacer> | 937 | </spacer> |
953 | </vbox> | 938 | </vbox> |
954 | </widget> | 939 | </widget> |
955 | </widget> | 940 | </widget> |
956 | </vbox> | 941 | </vbox> |
957 | </widget> | 942 | </widget> |
958 | <connections> | 943 | <connections> |
959 | <connection> | 944 | <connection> |
960 | <sender>wepEnabled</sender> | 945 | <sender>EnableWEB_CB</sender> |
961 | <signal>toggled(bool)</signal> | 946 | <signal>toggled(bool)</signal> |
962 | <receiver>KeyButtonGroup</receiver> | 947 | <receiver>KeyButtonGroup</receiver> |
963 | <slot>setEnabled(bool)</slot> | 948 | <slot>setEnabled(bool)</slot> |
964 | </connection> | 949 | </connection> |
965 | <connection> | 950 | <connection> |
966 | <sender>wepEnabled</sender> | 951 | <sender>SpecifyAP_CB</sender> |
967 | <signal>toggled(bool)</signal> | 952 | <signal>toggled(bool)</signal> |
968 | <receiver>NonEncButtonGroup</receiver> | 953 | <receiver>APMac_LE</receiver> |
969 | <slot>setEnabled(bool)</slot> | 954 | <slot>setEnabled(bool)</slot> |
970 | </connection> | 955 | </connection> |
971 | <connection> | 956 | <connection> |
972 | <sender>specifyAp</sender> | 957 | <sender>SpecifyAP_CB</sender> |
973 | <signal>toggled(bool)</signal> | 958 | <signal>toggled(bool)</signal> |
974 | <receiver>macEdit</receiver> | 959 | <receiver>macLabel</receiver> |
975 | <slot>setEnabled(bool)</slot> | 960 | <slot>setEnabled(bool)</slot> |
976 | </connection> | 961 | </connection> |
977 | <connection> | 962 | <connection> |
978 | <sender>specifyAp</sender> | 963 | <sender>SpecifyChannel_CB</sender> |
979 | <signal>toggled(bool)</signal> | 964 | <signal>toggled(bool)</signal> |
980 | <receiver>macLabel</receiver> | 965 | <receiver>ChannelNr_SB</receiver> |
981 | <slot>setEnabled(bool)</slot> | 966 | <slot>setEnabled(bool)</slot> |
982 | </connection> | 967 | </connection> |
983 | <connection> | 968 | <connection> |
984 | <sender>specifyChan</sender> | 969 | <sender>EnableWEB_CB</sender> |
985 | <signal>toggled(bool)</signal> | 970 | <signal>toggled(bool)</signal> |
986 | <receiver>networkChannel</receiver> | 971 | <receiver>CheckBox4</receiver> |
987 | <slot>setEnabled(bool)</slot> | 972 | <slot>setEnabled(bool)</slot> |
988 | </connection> | 973 | </connection> |
989 | </connections> | 974 | </connections> |
990 | </UI> | 975 | </UI> |
diff --git a/noncore/settings/networksettings2/wlan/wlan_NN.cpp b/noncore/settings/networksettings2/wlan/wlan_NN.cpp index 7a2c1a7..ce8a734 100644 --- a/noncore/settings/networksettings2/wlan/wlan_NN.cpp +++ b/noncore/settings/networksettings2/wlan/wlan_NN.cpp | |||
@@ -31,25 +31,25 @@ ANetNodeInstance * WLanNetNode::createInstance( void ) { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | const char ** WLanNetNode::needs( void ) { | 33 | const char ** WLanNetNode::needs( void ) { |
34 | return WLanNeeds; | 34 | return WLanNeeds; |
35 | } | 35 | } |
36 | 36 | ||
37 | const char * WLanNetNode::provides( void ) { | 37 | const char * WLanNetNode::provides( void ) { |
38 | return "device"; | 38 | return "device"; |
39 | } | 39 | } |
40 | 40 | ||
41 | bool WLanNetNode::generateProperFilesFor( | 41 | bool WLanNetNode::generateProperFilesFor( |
42 | ANetNodeInstance * ) { | 42 | ANetNodeInstance * ) { |
43 | return 1; | 43 | return 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | bool WLanNetNode::hasDataFor( const QString & S ) { | 46 | bool WLanNetNode::hasDataFor( const QString & S ) { |
47 | return S == "interfaces"; | 47 | return S == "interfaces"; |
48 | } | 48 | } |
49 | 49 | ||
50 | bool WLanNetNode::generateDeviceDataForCommonFile( | 50 | bool WLanNetNode::generateDeviceDataForCommonFile( |
51 | SystemFile & S, | 51 | SystemFile & S, |
52 | long DevNr ) { | 52 | long DevNr ) { |
53 | QString NIC = genNic( DevNr ); | 53 | QString NIC = genNic( DevNr ); |
54 | 54 | ||
55 | if( S.name() == "interfaces" ) { | 55 | if( S.name() == "interfaces" ) { |