summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan/wlanimp.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/wlanimp.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/noncore/settings/networksettings/wlan/wlanimp.cpp b/noncore/settings/networksettings/wlan/wlanimp.cpp
index 3797e22..57266bb 100644
--- a/noncore/settings/networksettings/wlan/wlanimp.cpp
+++ b/noncore/settings/networksettings/wlan/wlanimp.cpp
@@ -10,15 +10,18 @@
10#include <qspinbox.h> 10#include <qspinbox.h>
11#include <qradiobutton.h> 11#include <qradiobutton.h>
12#include <qcheckbox.h> 12#include <qcheckbox.h>
13#include <qtabwidget.h> 13#include <qtabwidget.h>
14#include <qcombobox.h> 14#include <qcombobox.h>
15 15
16/* system() */ 16#ifdef QTE_VERSION
17//#include <stdlib.h> 17 #include <opie/oprocess.h>
18#include <opie/oprocess.h> 18#else
19 #define OProcess KProcess
20 #include <kprocess.h>
21#endif
19 22
20#define WIRELESS_OPTS "/etc/pcmcia/wireless.opts" 23#define WIRELESS_OPTS "/etc/pcmcia/wireless.opts"
21 24
22/** 25/**
23 * Constructor, read in the wireless.opts file for parsing later. 26 * Constructor, read in the wireless.opts file for parsing later.
24 */ 27 */
@@ -223,20 +226,19 @@ void WLANImp::accept(){
223 changeAndSaveSettingFile(); 226 changeAndSaveSettingFile();
224 227
225 // Try to save the interfaces settings. 228 // Try to save the interfaces settings.
226 if(!interfaceSetup->saveChanges()) 229 if(!interfaceSetup->saveChanges())
227 return; 230 return;
228 231
229 OProcess insert(QString("sh")); 232 OProcess insert;
233 insert << "sh";
230 insert << "-c"; 234 insert << "-c";
231 insert << "cardctl eject && cardctl insert"; 235 insert << "cardctl eject && cardctl insert";
232 236
233 if (!insert.start(OProcess::DontCare, OProcess::NoCommunication) ) { 237 if (!insert.start(OProcess::DontCare, OProcess::NoCommunication) ) {
234 qWarning("could not start cardctl"); 238 qWarning("could not start cardctl");
235 } 239 }
236 240
237 // Close out the dialog 241 // Close out the dialog
238 QDialog::accept(); 242 QDialog::accept();
239} 243}
240 244
241// wlanimp.cpp
242