author | ar <ar> | 2004-02-21 18:32:37 (UTC) |
---|---|---|
committer | ar <ar> | 2004-02-21 18:32:37 (UTC) |
commit | 536f271b1e6a1d1886e96a28524a3503c4c38c4e (patch) (unidiff) | |
tree | 63b3c0ce472a89a0f9731195fececc701bf4ca67 /noncore/settings/networksettings/wlan | |
parent | db2afda83e495bff9fc19fa14a30072f1cd4c67a (diff) | |
download | opie-536f271b1e6a1d1886e96a28524a3503c4c38c4e.zip opie-536f271b1e6a1d1886e96a28524a3503c4c38c4e.tar.gz opie-536f271b1e6a1d1886e96a28524a3503c4c38c4e.tar.bz2 |
improve support for BigScreen
Diffstat (limited to 'noncore/settings/networksettings/wlan') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanmodule.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanmodule.cpp b/noncore/settings/networksettings/wlan/wlanmodule.cpp index 07bf73f..74d7f8e 100644 --- a/noncore/settings/networksettings/wlan/wlanmodule.cpp +++ b/noncore/settings/networksettings/wlan/wlanmodule.cpp | |||
@@ -1,29 +1,32 @@ | |||
1 | |||
1 | #include "wlanmodule.h" | 2 | #include "wlanmodule.h" |
2 | #include "wlanimp2.h" | 3 | #include "wlanimp2.h" |
3 | #include "infoimp.h" | 4 | #include "infoimp.h" |
4 | #include "wextensions.h" | 5 | #include "wextensions.h" |
5 | #include "interfaceinformationimp.h" | 6 | #include "interfaceinformationimp.h" |
6 | 7 | ||
8 | /* OPIE */ | ||
9 | #include <qpe/qpeapplication.h> | ||
10 | |||
11 | /* QT */ | ||
7 | #include <qcheckbox.h> | 12 | #include <qcheckbox.h> |
8 | #include <qcombobox.h> | 13 | #include <qcombobox.h> |
9 | #include <qlabel.h> | 14 | #include <qlabel.h> |
10 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
11 | #include <qprogressbar.h> | 16 | #include <qprogressbar.h> |
12 | #include <qspinbox.h> | 17 | #include <qspinbox.h> |
13 | #include <qtabwidget.h> | 18 | #include <qtabwidget.h> |
14 | 19 | ||
15 | 20 | ||
16 | |||
17 | |||
18 | /** | 21 | /** |
19 | * Constructor, find all of the possible interfaces | 22 | * Constructor, find all of the possible interfaces |
20 | */ | 23 | */ |
21 | WLANModule::WLANModule() | 24 | WLANModule::WLANModule() |
22 | : Module(), | 25 | : Module(), |
23 | wlanconfigWiget(0) | 26 | wlanconfigWiget(0) |
24 | { | 27 | { |
25 | } | 28 | } |
26 | 29 | ||
27 | /** | 30 | /** |
28 | * Delete any interfaces that we own. | 31 | * Delete any interfaces that we own. |
29 | */ | 32 | */ |
@@ -163,43 +166,43 @@ void WLANModule::receive(const QCString ¶m, const QByteArray &arg) | |||
163 | } | 166 | } |
164 | } | 167 | } |
165 | 168 | ||
166 | if (ifa == 0){ | 169 | if (ifa == 0){ |
167 | qDebug("WLANModule Did not find %s",interface.latin1()); | 170 | qDebug("WLANModule Did not find %s",interface.latin1()); |
168 | qDebug("skipping"); | 171 | qDebug("skipping"); |
169 | count = 0; | 172 | count = 0; |
170 | } | 173 | } |
171 | 174 | ||
172 | if (count == 2){ | 175 | if (count == 2){ |
173 | // those should call the interface directly | 176 | // those should call the interface directly |
174 | QWidget *info = getInfo( ifa ); | 177 | QWidget *info = getInfo( ifa ); |
175 | info->showMaximized(); | 178 | QPEApplication::showWidget( info ); |
176 | 179 | ||
177 | if ( action.contains("start" ) ){ | 180 | if ( action.contains("start" ) ){ |
178 | ifa->start(); | 181 | ifa->start(); |
179 | } else if ( action.contains("restart" ) ){ | 182 | } else if ( action.contains("restart" ) ){ |
180 | ifa->restart(); | 183 | ifa->restart(); |
181 | } else if ( action.contains("stop" ) ){ | 184 | } else if ( action.contains("stop" ) ){ |
182 | ifa->stop(); | 185 | ifa->stop(); |
183 | }else if ( action.contains("refresh" ) ){ | 186 | }else if ( action.contains("refresh" ) ){ |
184 | ifa->refresh(); | 187 | ifa->refresh(); |
185 | } | 188 | } |
186 | }else if (count == 3){ | 189 | }else if (count == 3){ |
187 | QString value; | 190 | QString value; |
188 | if (!wlanconfigWiget){ | 191 | if (!wlanconfigWiget){ |
189 | //FIXME: what if it got closed meanwhile? | 192 | //FIXME: what if it got closed meanwhile? |
190 | wlanconfigWiget = (WLANImp*) configure(ifa); | 193 | wlanconfigWiget = (WLANImp*) configure(ifa); |
191 | toShow = (QDialog*) wlanconfigWiget; | 194 | toShow = (QDialog*) wlanconfigWiget; |
192 | } | 195 | } |
193 | wlanconfigWiget->showMaximized(); | 196 | QPEApplication::showWidget( wlanconfigWiget ); |
194 | stream >> value; | 197 | stream >> value; |
195 | qDebug("WLANModule (build 4) is setting %s of %s to %s", action.latin1(), interface.latin1(), value.latin1() ); | 198 | qDebug("WLANModule (build 4) is setting %s of %s to %s", action.latin1(), interface.latin1(), value.latin1() ); |
196 | if (value.isEmpty()){ | 199 | if (value.isEmpty()){ |
197 | qDebug("value is empty!!!\nreturning"); | 200 | qDebug("value is empty!!!\nreturning"); |
198 | return; | 201 | return; |
199 | } | 202 | } |
200 | if ( action.contains("ESSID") ){ | 203 | if ( action.contains("ESSID") ){ |
201 | QComboBox *combo = wlanconfigWiget->essid; | 204 | QComboBox *combo = wlanconfigWiget->essid; |
202 | bool found = false; | 205 | bool found = false; |
203 | for ( int i = 0; i < combo->count(); i++) | 206 | for ( int i = 0; i < combo->count(); i++) |
204 | if ( combo->text( i ) == value ){ | 207 | if ( combo->text( i ) == value ){ |
205 | combo->setCurrentItem( i ); | 208 | combo->setCurrentItem( i ); |