Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/wirelessapplet/wireless.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.h b/noncore/applets/wirelessapplet/wireless.h index 45c519d..51a3fab 100644 --- a/noncore/applets/wirelessapplet/wireless.h +++ b/noncore/applets/wirelessapplet/wireless.h | |||
@@ -36,60 +36,78 @@ public: | |||
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 | 49 | ||
49 | private: | 50 | private: |
50 | WirelessApplet* applet; | 51 | WirelessApplet* applet; |
51 | 52 | ||
52 | int displayStyle; | 53 | int displayStyle; |
53 | int updateFrequency; | 54 | int updateFrequency; |
54 | 55 | ||
56 | bool rocESSID; | ||
57 | bool rocFREQ; | ||
58 | bool rocAP; | ||
59 | bool rocMODE; | ||
55 | }; | 60 | }; |
56 | 61 | ||
57 | class WirelessApplet : public QWidget | 62 | class WirelessApplet : public QWidget |
58 | { | 63 | { |
59 | Q_OBJECT | 64 | Q_OBJECT |
60 | public: | 65 | public: |
61 | WirelessApplet( QWidget *parent = 0, const char *name=0 ); | 66 | WirelessApplet( QWidget *parent = 0, const char *name=0 ); |
62 | ~WirelessApplet(); | 67 | ~WirelessApplet(); |
63 | WirelessControl* status; | 68 | WirelessControl* status; |
64 | 69 | ||
65 | virtual void timerEvent( QTimerEvent* ); | 70 | virtual void timerEvent( QTimerEvent* ); |
66 | void updateDelayChange( int delay ); | 71 | void updateDelayChange( int delay ); |
67 | void displayStyleChange( int style ); | 72 | void displayStyleChange( int style ); |
73 | |||
74 | void updateDHCPConfig( bool, bool, bool, bool ); | ||
68 | 75 | ||
69 | private: | 76 | private: |
70 | void mousePressEvent( QMouseEvent * ); | 77 | void mousePressEvent( QMouseEvent * ); |
71 | void paintEvent( QPaintEvent* ); | 78 | void paintEvent( QPaintEvent* ); |
72 | void checkInterface(); | 79 | void checkInterface(); |
80 | void renewDHCP(); | ||
73 | 81 | ||
74 | bool mustRepaint(); | 82 | bool mustRepaint(); |
75 | void updatePopupWindow(); | 83 | void updatePopupWindow(); |
76 | const char** getQualityPixmap(); | 84 | const char** getQualityPixmap(); |
77 | 85 | ||
78 | private: | 86 | private: |
79 | QPixmap snapshotPixmap; | 87 | QPixmap snapshotPixmap; |
80 | int visualStyle; | 88 | int visualStyle; |
81 | int timer; | 89 | int timer; |
82 | 90 | ||
83 | MWirelessNetwork* network; | 91 | MWirelessNetwork* network; |
84 | MNetworkInterface* interface; | 92 | MNetworkInterface* interface; |
85 | 93 | ||
86 | private: | 94 | private: |
87 | const char** oldpixmap; | 95 | const char** oldpixmap; |
88 | MWirelessNetworkInterface* oldiface; | 96 | MWirelessNetworkInterface* oldiface; |
89 | int oldqualityH; | 97 | int oldqualityH; |
90 | int oldsignalH; | 98 | int oldsignalH; |
91 | int oldnoiseH; | 99 | int oldnoiseH; |
100 | |||
101 | QString oldESSID; | ||
102 | QString oldAP; | ||
103 | QString oldMODE; | ||
104 | double oldFREQ; | ||
105 | |||
106 | bool rocESSID; | ||
107 | bool rocFREQ; | ||
108 | bool rocAP; | ||
109 | bool rocMODE; | ||
92 | }; | 110 | }; |
93 | 111 | ||
94 | #endif // __WIRELESS_APPLET_H__ | 112 | #endif // __WIRELESS_APPLET_H__ |
95 | 113 | ||