summaryrefslogtreecommitdiff
path: root/noncore/applets/wirelessapplet
Unidiff
Diffstat (limited to 'noncore/applets/wirelessapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/wirelessapplet/advancedconfig.cpp1
-rw-r--r--noncore/applets/wirelessapplet/wireless.cpp5
2 files changed, 0 insertions, 6 deletions
diff --git a/noncore/applets/wirelessapplet/advancedconfig.cpp b/noncore/applets/wirelessapplet/advancedconfig.cpp
index 97b008d..aba0fee 100644
--- a/noncore/applets/wirelessapplet/advancedconfig.cpp
+++ b/noncore/applets/wirelessapplet/advancedconfig.cpp
@@ -1,43 +1,42 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2002 Michael 'Mickey' Lauer 2** Copyright (C) 2002 Michael 'Mickey' Lauer
3** <mickey@tm.informatik.uni-frankfurt.de> 3** <mickey@tm.informatik.uni-frankfurt.de>
4** http://www.Vanille.de 4** http://www.Vanille.de
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14**********************************************************************/ 14**********************************************************************/
15 15
16#include "advancedconfig.h" 16#include "advancedconfig.h"
17 17
18#include <qpe/config.h> 18#include <qpe/config.h>
19#include <qwidget.h>
20#include <qcheckbox.h> 19#include <qcheckbox.h>
21 20
22AdvancedConfig::AdvancedConfig( QWidget* parent, const char* name, bool modal, WFlags fl ) 21AdvancedConfig::AdvancedConfig( QWidget* parent, const char* name, bool modal, WFlags fl )
23 : AdvancedConfigBase( parent, name, modal, fl ) 22 : AdvancedConfigBase( parent, name, modal, fl )
24{ 23{
25 Config cfg( "qpe" ); 24 Config cfg( "qpe" );
26 cfg.setGroup( "Wireless" ); 25 cfg.setGroup( "Wireless" );
27 26
28 bool rocESSID = cfg.readBoolEntry( "renew_dhcp_on_essid_change", false ); 27 bool rocESSID = cfg.readBoolEntry( "renew_dhcp_on_essid_change", false );
29 bool rocFREQ = cfg.readBoolEntry( "renew_dhcp_on_freq_change", false ); 28 bool rocFREQ = cfg.readBoolEntry( "renew_dhcp_on_freq_change", false );
30 bool rocAP = cfg.readBoolEntry( "renew_dhcp_on_ap_change", false ); 29 bool rocAP = cfg.readBoolEntry( "renew_dhcp_on_ap_change", false );
31 bool rocMODE = cfg.readBoolEntry( "renew_dhcp_on_mode_change", false ); 30 bool rocMODE = cfg.readBoolEntry( "renew_dhcp_on_mode_change", false );
32 31
33 cbESSID->setChecked( rocESSID ); 32 cbESSID->setChecked( rocESSID );
34 cbFrequency->setChecked( rocFREQ ); 33 cbFrequency->setChecked( rocFREQ );
35 cbAccessPoint->setChecked( rocAP ); 34 cbAccessPoint->setChecked( rocAP );
36 cbMODE->setChecked( rocMODE ); 35 cbMODE->setChecked( rocMODE );
37} 36}
38 37
39AdvancedConfig::~AdvancedConfig() 38AdvancedConfig::~AdvancedConfig()
40{ 39{
41} 40}
42 41
43void AdvancedConfig::accept() 42void AdvancedConfig::accept()
diff --git a/noncore/applets/wirelessapplet/wireless.cpp b/noncore/applets/wirelessapplet/wireless.cpp
index cee789c..9ce6618 100644
--- a/noncore/applets/wirelessapplet/wireless.cpp
+++ b/noncore/applets/wirelessapplet/wireless.cpp
@@ -4,63 +4,58 @@
4** This file may be distributed and/or modified under the terms of the 4** This file may be distributed and/or modified under the terms of the
5** GNU General Public License version 2 as published by the Free Software 5** GNU General Public License version 2 as published by the Free Software
6** Foundation and appearing in the file LICENSE.GPL included in the 6** Foundation and appearing in the file LICENSE.GPL included in the
7** packaging of this file. 7** packaging of this file.
8** 8**
9** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 9** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 10** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11** 11**
12**********************************************************************/ 12**********************************************************************/
13 13
14#include "wireless.h" 14#include "wireless.h"
15#include "mgraph.h" 15#include "mgraph.h"
16#include "advancedconfig.h" 16#include "advancedconfig.h"
17#include "connect0.xpm" 17#include "connect0.xpm"
18#include "connect1.xpm" 18#include "connect1.xpm"
19#include "connect2.xpm" 19#include "connect2.xpm"
20#include "connect3.xpm" 20#include "connect3.xpm"
21#include "connect4.xpm" 21#include "connect4.xpm"
22#include "connect5.xpm" 22#include "connect5.xpm"
23#include "nowireless.xpm" 23#include "nowireless.xpm"
24 24
25/* OPIE */ 25/* OPIE */
26#include <opie2/onetwork.h> 26#include <opie2/onetwork.h>
27#include <opie2/otaskbarapplet.h> 27#include <opie2/otaskbarapplet.h>
28#include <qpe/qpeapplication.h>
29#include <qpe/config.h> 28#include <qpe/config.h>
30 29
31/* QT */ 30/* QT */
32#include <qpoint.h>
33#include <qradiobutton.h> 31#include <qradiobutton.h>
34#include <qpushbutton.h> 32#include <qpushbutton.h>
35#include <qpainter.h> 33#include <qpainter.h>
36#include <qlabel.h> 34#include <qlabel.h>
37#include <qslider.h> 35#include <qslider.h>
38#include <qbuttongroup.h> 36#include <qbuttongroup.h>
39#include <qlayout.h> 37#include <qlayout.h>
40#include <qframe.h>
41#include <qpixmap.h>
42#include <qstring.h>
43#include <qfile.h> 38#include <qfile.h>
44#include <qtextstream.h> 39#include <qtextstream.h>
45 40
46/* STD */ 41/* STD */
47#include <sys/types.h> 42#include <sys/types.h>
48#include <signal.h> 43#include <signal.h>
49 44
50#define STYLE_BARS 0 45#define STYLE_BARS 0
51#define STYLE_ANTENNA 1 46#define STYLE_ANTENNA 1
52 47
53//#define MDEBUG 48//#define MDEBUG
54#undef MDEBUG 49#undef MDEBUG
55 50
56WirelessControl::WirelessControl( WirelessApplet *applet, QWidget *parent, const char *name ) 51WirelessControl::WirelessControl( WirelessApplet *applet, QWidget *parent, const char *name )
57 : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet ) 52 : QFrame( parent, name, WStyle_StaysOnTop | WType_Popup ), applet( applet )
58{ 53{
59 54
60 readConfig(); 55 readConfig();
61 writeConfigEntry( "UpdateFrequency", updateFrequency ); 56 writeConfigEntry( "UpdateFrequency", updateFrequency );
62 writeConfigEntry( "DisplayStyle", displayStyle ); 57 writeConfigEntry( "DisplayStyle", displayStyle );
63 58
64 setFrameStyle( QFrame::PopupPanel | QFrame::Raised ); 59 setFrameStyle( QFrame::PopupPanel | QFrame::Raised );
65 QGridLayout *grid = new QGridLayout( this, 3, 2, 6, 2, "top layout" ); 60 QGridLayout *grid = new QGridLayout( this, 3, 2, 6, 2, "top layout" );
66 61