author | mickeyl <mickeyl> | 2004-02-23 13:37:46 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-02-23 13:37:46 (UTC) |
commit | 1f362cd77a2b39eae2abca6da28efa5118d2c347 (patch) (unidiff) | |
tree | ddc796d7505b2ec0f20e9b74154316d3f818d16c /noncore/applets/wirelessapplet/wireless.h | |
parent | 12ce268e3f75e4f07699b8e0c368f2112e651f7f (diff) | |
download | opie-1f362cd77a2b39eae2abca6da28efa5118d2c347.zip opie-1f362cd77a2b39eae2abca6da28efa5118d2c347.tar.gz opie-1f362cd77a2b39eae2abca6da28efa5118d2c347.tar.bz2 |
start with the long awaited wireless applet overhaul
Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/wirelessapplet/wireless.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.h b/noncore/applets/wirelessapplet/wireless.h index 51a3fab..644be26 100644 --- a/noncore/applets/wirelessapplet/wireless.h +++ b/noncore/applets/wirelessapplet/wireless.h | |||
@@ -28,29 +28,29 @@ class QLabel; | |||
28 | class WirelessApplet; | 28 | class WirelessApplet; |
29 | class MGraph; | 29 | class MGraph; |
30 | 30 | ||
31 | class WirelessControl : public QFrame | 31 | class WirelessControl : public QFrame |
32 | { | 32 | { |
33 | Q_OBJECT | 33 | Q_OBJECT |
34 | public: | 34 | public: |
35 | WirelessControl( WirelessApplet* icon, QWidget *parent=0, const char *name=0 ); | 35 | WirelessControl( WirelessApplet* icon, QWidget *parent=0, const char *name=0 ); |
36 | void show( bool ); | 36 | void show( bool ); |
37 | 37 | ||
38 | void readConfig(); | 38 | void readConfig(); |
39 | void writeConfigEntry( const char* entry, int val ); | 39 | void writeConfigEntry( const char* entry, int val ); |
40 | 40 | ||
41 | MGraph* mgraph; | 41 | MGraph* mgraph; |
42 | QLabel* statusLabel; | 42 | QLabel* statusLabel; |
43 | QLabel* updateLabel; | 43 | QLabel* updateLabel; |
44 | 44 | ||
45 | public slots: | 45 | public slots: |
46 | void updateDelayChange( int ); | 46 | void updateDelayChange( int ); |
47 | void displayStyleChange( int ); | 47 | void displayStyleChange( int ); |
48 | void advancedConfigClicked(); | 48 | void advancedConfigClicked(); |
49 | 49 | ||
50 | private: | 50 | private: |
51 | WirelessApplet* applet; | 51 | WirelessApplet* applet; |
52 | 52 | ||
53 | int displayStyle; | 53 | int displayStyle; |
54 | int updateFrequency; | 54 | int updateFrequency; |
55 | 55 | ||
56 | bool rocESSID; | 56 | bool rocESSID; |
@@ -59,53 +59,54 @@ private: | |||
59 | bool rocMODE; | 59 | bool rocMODE; |
60 | }; | 60 | }; |
61 | 61 | ||
62 | class WirelessApplet : public QWidget | 62 | class WirelessApplet : public QWidget |
63 | { | 63 | { |
64 | Q_OBJECT | 64 | Q_OBJECT |
65 | public: | 65 | public: |
66 | WirelessApplet( QWidget *parent = 0, const char *name=0 ); | 66 | WirelessApplet( QWidget *parent = 0, const char *name=0 ); |
67 | ~WirelessApplet(); | 67 | ~WirelessApplet(); |
68 | static int position(); | ||
68 | WirelessControl* status; | 69 | WirelessControl* status; |
69 | 70 | ||
70 | virtual void timerEvent( QTimerEvent* ); | 71 | virtual void timerEvent( QTimerEvent* ); |
71 | void updateDelayChange( int delay ); | 72 | void updateDelayChange( int delay ); |
72 | void displayStyleChange( int style ); | 73 | void displayStyleChange( int style ); |
73 | 74 | ||
74 | void updateDHCPConfig( bool, bool, bool, bool ); | 75 | void updateDHCPConfig( bool, bool, bool, bool ); |
75 | 76 | ||
76 | private: | 77 | private: |
77 | void mousePressEvent( QMouseEvent * ); | 78 | void mousePressEvent( QMouseEvent * ); |
78 | void paintEvent( QPaintEvent* ); | 79 | void paintEvent( QPaintEvent* ); |
79 | void checkInterface(); | 80 | void checkInterface(); |
80 | void renewDHCP(); | 81 | void renewDHCP(); |
81 | 82 | ||
82 | bool mustRepaint(); | 83 | bool mustRepaint(); |
83 | void updatePopupWindow(); | 84 | void updatePopupWindow(); |
84 | const char** getQualityPixmap(); | 85 | const char** getQualityPixmap(); |
85 | 86 | ||
86 | private: | 87 | private: |
87 | QPixmap snapshotPixmap; | 88 | QPixmap snapshotPixmap; |
88 | int visualStyle; | 89 | int visualStyle; |
89 | int timer; | 90 | int timer; |
90 | 91 | ||
91 | MWirelessNetwork* network; | 92 | MWirelessNetwork* network; |
92 | MNetworkInterface* interface; | 93 | MNetworkInterface* interface; |
93 | 94 | ||
94 | private: | 95 | private: |
95 | const char** oldpixmap; | 96 | const char** oldpixmap; |
96 | MWirelessNetworkInterface* oldiface; | 97 | MWirelessNetworkInterface* oldiface; |
97 | int oldqualityH; | 98 | int oldqualityH; |
98 | int oldsignalH; | 99 | int oldsignalH; |
99 | int oldnoiseH; | 100 | int oldnoiseH; |
100 | 101 | ||
101 | QString oldESSID; | 102 | QString oldESSID; |
102 | QString oldAP; | 103 | QString oldAP; |
103 | QString oldMODE; | 104 | QString oldMODE; |
104 | double oldFREQ; | 105 | double oldFREQ; |
105 | 106 | ||
106 | bool rocESSID; | 107 | bool rocESSID; |
107 | bool rocFREQ; | 108 | bool rocFREQ; |
108 | bool rocAP; | 109 | bool rocAP; |
109 | bool rocMODE; | 110 | bool rocMODE; |
110 | }; | 111 | }; |
111 | 112 | ||