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.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.h b/noncore/applets/wirelessapplet/wireless.h
new file mode 100644
index 0000000..d45ac68
--- a/dev/null
+++ b/noncore/applets/wirelessapplet/wireless.h
@@ -0,0 +1,89 @@
1/**********************************************************************
2** Copyright (C) 2002 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
3** All rights reserved.
4**
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
7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file.
9**
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.
12**
13**********************************************************************/
14
15#ifndef __WIRELESS_APPLET_H__
16#define __WIRELESS_APPLET_H__
17
18#include <qwidget.h>
19#include <qframe.h>
20#include <qpixmap.h>
21
22class MNetwork;
23class MWirelessNetwork;
24class MNetworkInterface;
25class MWirelessNetworkInterface;
26class Y;
27class QLabel;
28class WirelessApplet;
29class MGraph;
30
31class WirelessControl : public QFrame
32{
33 Q_OBJECT
34public:
35 WirelessControl( WirelessApplet* icon, QWidget *parent=0, const char *name=0 );
36 void show( bool );
37
38 MGraph* mgraph;
39 QLabel* statusLabel;
40 QLabel* updateLabel;
41
42public slots:
43 void updateDelayChange( int );
44
45private:
46 WirelessApplet* applet;
47};
48
49class WirelessApplet : public QWidget
50{
51 Q_OBJECT
52public:
53 WirelessApplet( QWidget *parent = 0, const char *name=0 );
54 ~WirelessApplet();
55 WirelessControl* status;
56
57 virtual void timerEvent( QTimerEvent* );
58 void updateDelayChange( int delay );
59
60public slots:
61 void styleChange( int );
62
63private:
64 void mousePressEvent( QMouseEvent * );
65 void paintEvent( QPaintEvent* );
66 void checkInterface();
67
68 bool mustRepaint();
69 void updatePopupWindow();
70 const char** getQualityPixmap();
71
72private:
73 QPixmap snapshotPixmap;
74 int visualStyle;
75 int timer;
76
77 MWirelessNetwork* network;
78 MNetworkInterface* interface;
79
80private:
81 const char** oldpixmap;
82 MWirelessNetworkInterface* oldiface;
83 int oldqualityH;
84 int oldsignalH;
85 int oldnoiseH;
86};
87
88#endif // __WIRELESS_APPLET_H__
89