summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/wlan/wlanimp.cpp
authorbenmeyer <benmeyer>2002-10-25 19:34:32 (UTC)
committer benmeyer <benmeyer>2002-10-25 19:34:32 (UTC)
commitf16dd7fc272f3f8354dc696fcc881dfe74755a21 (patch) (unidiff)
treeedaab125b322744d8684e6aee4d2c5955b68689b /noncore/net/networksetup/wlan/wlanimp.cpp
parent77347ba522a5913ff17561e6fd2c15981d42e86b (diff)
downloadopie-f16dd7fc272f3f8354dc696fcc881dfe74755a21.zip
opie-f16dd7fc272f3f8354dc696fcc881dfe74755a21.tar.gz
opie-f16dd7fc272f3f8354dc696fcc881dfe74755a21.tar.bz2
Moved Interfaces into a library
Diffstat (limited to 'noncore/net/networksetup/wlan/wlanimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/wlanimp.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/noncore/net/networksetup/wlan/wlanimp.cpp b/noncore/net/networksetup/wlan/wlanimp.cpp
index 45952b9..7c902e0 100644
--- a/noncore/net/networksetup/wlan/wlanimp.cpp
+++ b/noncore/net/networksetup/wlan/wlanimp.cpp
@@ -12,16 +12,24 @@
12#include <qmessagebox.h> 12#include <qmessagebox.h>
13#include <qlineedit.h> 13#include <qlineedit.h>
14#include <qspinbox.h> 14#include <qspinbox.h>
15#include <qradiobutton.h> 15#include <qradiobutton.h>
16#include <qcheckbox.h> 16#include <qcheckbox.h>
17#include <qregexp.h> 17#include <qregexp.h>
18#include <qpe/config.h>
19#include <qtabwidget.h>
20#include "interfacesetupimp.h"
18 21
19WLANImp::WLANImp( QWidget* parent, const char* name, bool modal, WFlags fl):WLAN(parent, name, modal, fl){ 22WLANImp::WLANImp( QWidget* parent, const char* name, Interface *i, bool modal, WFlags fl):WLAN(parent, name, modal, fl){
20 config = new Config("wireless"); 23 config = new Config("wireless");
24 interfaceSetup = new InterfaceSetupImp(tabWidget, "InterfaceSetupImp", i);//, Qt::WDestructiveClose);
25 //configure->setProfile(currentProfile);
26 tabWidget->insertTab(interfaceSetup, "TCP/IP");
27
21 readConfig(); 28 readConfig();
29
22} 30}
23 31
24WLANImp::~WLANImp( ){ 32WLANImp::~WLANImp( ){
25 delete config; 33 delete config;
26} 34}
27 35
@@ -106,14 +114,16 @@ bool WLANImp::writeConfig()
106} 114}
107 115
108/** 116/**
109 */ 117 */
110void WLANImp::accept() 118void WLANImp::accept()
111{ 119{
112 if ( writeConfig() ) 120 if ( writeConfig() ){
121 interfaceSetup->saveChanges();
113 QDialog::accept(); 122 QDialog::accept();
123 }
114} 124}
115 125
116bool WLANImp::writeWirelessOpts( QString scheme ) 126bool WLANImp::writeWirelessOpts( QString scheme )
117{ 127{
118 qWarning( "WLANImp::writeWirelessOpts entered." ); 128 qWarning( "WLANImp::writeWirelessOpts entered." );
119 QString prev = "/etc/pcmcia/wireless.opts"; 129 QString prev = "/etc/pcmcia/wireless.opts";