summaryrefslogtreecommitdiff
path: root/noncore/applets/wirelessapplet/wireless.h
authormickeyl <mickeyl>2002-08-04 19:06:53 (UTC)
committer mickeyl <mickeyl>2002-08-04 19:06:53 (UTC)
commitc2d27f3bc4fdf7407337a50c92dcb04ab4ce3525 (patch) (side-by-side diff)
tree3913529e3ce4ba338e030e922fe094470211e5b5 /noncore/applets/wirelessapplet/wireless.h
parent55019d84057f9c2bd2b2483da2c128a0a927e003 (diff)
downloadopie-c2d27f3bc4fdf7407337a50c92dcb04ab4ce3525.zip
opie-c2d27f3bc4fdf7407337a50c92dcb04ab4ce3525.tar.gz
opie-c2d27f3bc4fdf7407337a50c92dcb04ab4ce3525.tar.bz2
wireless monitoring applet added to opie-cvs
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__
+