summaryrefslogtreecommitdiff
path: root/noncore/applets/wirelessapplet/wireless.h
Unidiff
Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/wirelessapplet/wireless.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.h b/noncore/applets/wirelessapplet/wireless.h
index 644be26..27f8c90 100644
--- a/noncore/applets/wirelessapplet/wireless.h
+++ b/noncore/applets/wirelessapplet/wireless.h
@@ -1,49 +1,46 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2002 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> 2** Copyright (C) 2002 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
3** All rights reserved. 3** All rights reserved.
4** 4**
5** This file may be distributed and/or modified under the terms of the 5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software 6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the 7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file. 8** packaging of this file.
9** 9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12** 12**
13**********************************************************************/ 13**********************************************************************/
14 14
15#ifndef __WIRELESS_APPLET_H__ 15#ifndef __WIRELESS_APPLET_H__
16#define __WIRELESS_APPLET_H__ 16#define __WIRELESS_APPLET_H__
17 17
18#include <qwidget.h> 18#include <qwidget.h>
19#include <qframe.h> 19#include <qframe.h>
20#include <qpixmap.h> 20#include <qpixmap.h>
21 21
22class MNetwork; 22class OWirelessNetworkInterface;
23class MWirelessNetwork;
24class MNetworkInterface;
25class MWirelessNetworkInterface;
26class Y; 23class Y;
27class QLabel; 24class QLabel;
28class WirelessApplet; 25class WirelessApplet;
29class MGraph; 26class MGraph;
30 27
31class WirelessControl : public QFrame 28class WirelessControl : public QFrame
32{ 29{
33 Q_OBJECT 30 Q_OBJECT
34 public: 31 public:
35 WirelessControl( WirelessApplet* icon, QWidget *parent=0, const char *name=0 ); 32 WirelessControl( WirelessApplet* icon, QWidget *parent=0, const char *name=0 );
36 void show( bool ); 33 void show( bool );
37 34
38 void readConfig(); 35 void readConfig();
39 void writeConfigEntry( const char* entry, int val ); 36 void writeConfigEntry( const char* entry, int val );
40 37
41 MGraph* mgraph; 38 MGraph* mgraph;
42 QLabel* statusLabel; 39 QLabel* statusLabel;
43 QLabel* updateLabel; 40 QLabel* updateLabel;
44 41
45 public slots: 42 public slots:
46 void updateDelayChange( int ); 43 void updateDelayChange( int );
47 void displayStyleChange( int ); 44 void displayStyleChange( int );
48 void advancedConfigClicked(); 45 void advancedConfigClicked();
49 46
@@ -68,47 +65,46 @@ class WirelessApplet : public QWidget
68 static int position(); 65 static int position();
69 WirelessControl* status; 66 WirelessControl* status;
70 67
71 virtual void timerEvent( QTimerEvent* ); 68 virtual void timerEvent( QTimerEvent* );
72 void updateDelayChange( int delay ); 69 void updateDelayChange( int delay );
73 void displayStyleChange( int style ); 70 void displayStyleChange( int style );
74 71
75 void updateDHCPConfig( bool, bool, bool, bool ); 72 void updateDHCPConfig( bool, bool, bool, bool );
76 73
77 private: 74 private:
78 void mousePressEvent( QMouseEvent * ); 75 void mousePressEvent( QMouseEvent * );
79 void paintEvent( QPaintEvent* ); 76 void paintEvent( QPaintEvent* );
80 void checkInterface(); 77 void checkInterface();
81 void renewDHCP(); 78 void renewDHCP();
82 79
83 bool mustRepaint(); 80 bool mustRepaint();
84 void updatePopupWindow(); 81 void updatePopupWindow();
85 const char** getQualityPixmap(); 82 const char** getQualityPixmap();
86 83
87 private: 84 private:
88 QPixmap snapshotPixmap; 85 QPixmap snapshotPixmap;
89 int visualStyle; 86 int visualStyle;
90 int timer; 87 int timer;
91 88
92 MWirelessNetwork* network; 89 OWirelessNetworkInterface* interface;
93 MNetworkInterface* interface;
94 90
95 private: 91 private:
96 const char** oldpixmap; 92 const char** oldpixmap;
97 MWirelessNetworkInterface* oldiface; 93 OWirelessNetworkInterface* oldiface;
98 int oldqualityH; 94 int oldqualityH;
99 int oldsignalH; 95 int oldsignalH;
100 int oldnoiseH; 96 int oldnoiseH;
101 97
102 QString oldESSID; 98 QString oldESSID;
103 QString oldAP; 99 QString oldAP;
104 QString oldMODE; 100 QString oldMODE;
105 double oldFREQ; 101 double oldFREQ;
106 102
107 bool rocESSID; 103 bool rocESSID;
108 bool rocFREQ; 104 bool rocFREQ;
109 bool rocAP; 105 bool rocAP;
110 bool rocMODE; 106 bool rocMODE;
111}; 107};
112 108
113#endif // __WIRELESS_APPLET_H__ 109#endif // __WIRELESS_APPLET_H__
114 110