summaryrefslogtreecommitdiff
path: root/noncore/applets/wirelessapplet/wireless.h
Unidiff
Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/wirelessapplet/wireless.h33
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
@@ -31,10 +31,10 @@ class MGraph;
31class WirelessControl : public QFrame 31class WirelessControl : public QFrame
32{ 32{
33 Q_OBJECT 33 Q_OBJECT
34public: 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
@@ -42,12 +42,12 @@ public:
42 QLabel* statusLabel; 42 QLabel* statusLabel;
43 QLabel* updateLabel; 43 QLabel* updateLabel;
44 44
45public 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
50private: 50 private:
51 WirelessApplet* applet; 51 WirelessApplet* applet;
52 52
53 int displayStyle; 53 int displayStyle;
@@ -62,47 +62,48 @@ private:
62class WirelessApplet : public QWidget 62class WirelessApplet : public QWidget
63{ 63{
64 Q_OBJECT 64 Q_OBJECT
65public: 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
76private: 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
86private: 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
94private: 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;