summaryrefslogtreecommitdiff
path: root/noncore/applets/wirelessapplet/wireless.h
Side-by-side diff
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 @@
+/**********************************************************************
+** Copyright (C) 2002 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
+** All rights reserved.
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+**********************************************************************/
+
+#ifndef __WIRELESS_APPLET_H__
+#define __WIRELESS_APPLET_H__
+
+#include <qwidget.h>
+#include <qframe.h>
+#include <qpixmap.h>
+
+class MNetwork;
+class MWirelessNetwork;
+class MNetworkInterface;
+class MWirelessNetworkInterface;
+class Y;
+class QLabel;
+class WirelessApplet;
+class MGraph;
+
+class WirelessControl : public QFrame
+{
+ Q_OBJECT
+public:
+ WirelessControl( WirelessApplet* icon, QWidget *parent=0, const char *name=0 );
+ void show( bool );
+
+ MGraph* mgraph;
+ QLabel* statusLabel;
+ QLabel* updateLabel;
+
+public slots:
+ void updateDelayChange( int );
+
+private:
+ WirelessApplet* applet;
+};
+
+class WirelessApplet : public QWidget
+{
+ Q_OBJECT
+public:
+ WirelessApplet( QWidget *parent = 0, const char *name=0 );
+ ~WirelessApplet();
+ WirelessControl* status;
+
+ virtual void timerEvent( QTimerEvent* );
+ void updateDelayChange( int delay );
+
+public slots:
+ void styleChange( int );
+
+private:
+ void mousePressEvent( QMouseEvent * );
+ void paintEvent( QPaintEvent* );
+ void checkInterface();
+
+ bool mustRepaint();
+ void updatePopupWindow();
+ const char** getQualityPixmap();
+
+private:
+ QPixmap snapshotPixmap;
+ int visualStyle;
+ int timer;
+
+ MWirelessNetwork* network;
+ MNetworkInterface* interface;
+
+private:
+ const char** oldpixmap;
+ MWirelessNetworkInterface* oldiface;
+ int oldqualityH;
+ int oldsignalH;
+ int oldnoiseH;
+};
+
+#endif // __WIRELESS_APPLET_H__
+