summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan/wlanmodule.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanmodule.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanmodule.cpp11
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,23 +1,26 @@
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 */
21WLANModule::WLANModule() 24WLANModule::WLANModule()
22 : Module(), 25 : Module(),
23 wlanconfigWiget(0) 26 wlanconfigWiget(0)
@@ -169,13 +172,13 @@ void WLANModule::receive(const QCString &param, const QByteArray &arg)
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" ) ){
@@ -187,13 +190,13 @@ void WLANModule::receive(const QCString &param, const QByteArray &arg)
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 }