author | benmeyer <benmeyer> | 2003-04-08 23:53:34 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2003-04-08 23:53:34 (UTC) |
commit | 17ba7a490ca74c491cfb11df52b44ef7826d1297 (patch) (side-by-side diff) | |
tree | c5c7defdacd6b4f231baf97380ad69192c3dbde1 /noncore/settings/networksettings/wlan/wlanimp.cpp | |
parent | 89100a32b43b7eda68aaa19bc275a0fb7ce36e30 (diff) | |
download | opie-17ba7a490ca74c491cfb11df52b44ef7826d1297.zip opie-17ba7a490ca74c491cfb11df52b44ef7826d1297.tar.gz opie-17ba7a490ca74c491cfb11df52b44ef7826d1297.tar.bz2 |
kde updates
Diffstat (limited to 'noncore/settings/networksettings/wlan/wlanimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp.cpp | 14 |
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 @@ -4,27 +4,30 @@ #include <qfile.h> #include <qdir.h> #include <qtextstream.h> #include <qmessagebox.h> #include <qlineedit.h> #include <qlabel.h> #include <qspinbox.h> #include <qradiobutton.h> #include <qcheckbox.h> #include <qtabwidget.h> #include <qcombobox.h> -/* system() */ -//#include <stdlib.h> -#include <opie/oprocess.h> +#ifdef QTE_VERSION + #include <opie/oprocess.h> +#else + #define OProcess KProcess + #include <kprocess.h> +#endif #define WIRELESS_OPTS "/etc/pcmcia/wireless.opts" /** * Constructor, read in the wireless.opts file for parsing later. */ WLANImp::WLANImp( QWidget* parent, const char* name, Interface *i, bool modal, WFlags fl):WLAN(parent, name, modal, fl), currentProfile("*") { interfaceSetup = new InterfaceSetupImp(tabWidget, "InterfaceSetupImp", i); tabWidget->insertTab(interfaceSetup, "TCP/IP"); // Read in the config file. QString wlanFile = WIRELESS_OPTS; @@ -217,26 +220,25 @@ void WLANImp::accept(){ if(essAny->isChecked() && essSpecificLineEdit->text().isEmpty()){ QMessageBox::information(this, "Error", "Please enter a ESS-ID.", QMessageBox::Ok); return; } // Ok settings are good here, save changeAndSaveSettingFile(); // Try to save the interfaces settings. if(!interfaceSetup->saveChanges()) return; - OProcess insert(QString("sh")); + OProcess insert; + insert << "sh"; insert << "-c"; insert << "cardctl eject && cardctl insert"; if (!insert.start(OProcess::DontCare, OProcess::NoCommunication) ) { qWarning("could not start cardctl"); } // Close out the dialog QDialog::accept(); } -// wlanimp.cpp - |