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 | |||
@@ -32,8 +32,8 @@ 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 ); |
@@ -43,10 +43,10 @@ public: | |||
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 | ||
@@ -63,39 +63,40 @@ 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; |
@@ -103,5 +104,5 @@ private: | |||
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; |