Diffstat (limited to 'noncore/applets/wirelessapplet/wireless.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/wirelessapplet/wireless.cpp | 55 |
1 files changed, 34 insertions, 21 deletions
diff --git a/noncore/applets/wirelessapplet/wireless.cpp b/noncore/applets/wirelessapplet/wireless.cpp index 763aab8..cbaf5d6 100644 --- a/noncore/applets/wirelessapplet/wireless.cpp +++ b/noncore/applets/wirelessapplet/wireless.cpp | |||
@@ -1,5 +1,3 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Michael 'Mickey' Lauer | 2 | ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer <mickey@vanille.de> |
3 | ** <mickey@tm.informatik.uni-frankfurt.de> | ||
4 | ** http://www.Vanille.de | ||
5 | ** | 3 | ** |
@@ -16,4 +14,15 @@ | |||
16 | #include "wireless.h" | 14 | #include "wireless.h" |
15 | #include "networkinfo.h" | ||
16 | #include "mgraph.h" | ||
17 | #include "advancedconfig.h" | ||
18 | #include "connect0.xpm" | ||
19 | #include "connect1.xpm" | ||
20 | #include "connect2.xpm" | ||
21 | #include "connect3.xpm" | ||
22 | #include "connect4.xpm" | ||
23 | #include "connect5.xpm" | ||
24 | #include "nowireless.xpm" | ||
17 | 25 | ||
18 | #include <qapplication.h> | 26 | /* OPIE */ |
27 | #include <opie2/otaskbarapplet.h> | ||
19 | #include <qpe/qpeapplication.h> | 28 | #include <qpe/qpeapplication.h> |
@@ -21,2 +30,3 @@ | |||
21 | 30 | ||
31 | /* QT */ | ||
22 | #include <qpoint.h> | 32 | #include <qpoint.h> |
@@ -35,2 +45,3 @@ | |||
35 | 45 | ||
46 | /* STD */ | ||
36 | #include <sys/types.h> | 47 | #include <sys/types.h> |
@@ -38,15 +49,2 @@ | |||
38 | 49 | ||
39 | #include "networkinfo.h" | ||
40 | #include "mgraph.h" | ||
41 | |||
42 | #include "advancedconfig.h" | ||
43 | |||
44 | #include "connect0.xpm" | ||
45 | #include "connect1.xpm" | ||
46 | #include "connect2.xpm" | ||
47 | #include "connect3.xpm" | ||
48 | #include "connect4.xpm" | ||
49 | #include "connect5.xpm" | ||
50 | #include "nowireless.xpm" | ||
51 | |||
52 | #define STYLE_BARS 0 | 50 | #define STYLE_BARS 0 |
@@ -228,2 +226,3 @@ void WirelessApplet::checkInterface() | |||
228 | #endif | 226 | #endif |
227 | |||
229 | } | 228 | } |
@@ -316,4 +315,3 @@ void WirelessApplet::displayStyleChange( int style ) | |||
316 | WirelessApplet::~WirelessApplet() | 315 | WirelessApplet::~WirelessApplet() |
317 | { | 316 | {} |
318 | } | ||
319 | 317 | ||
@@ -331,3 +329,4 @@ void WirelessApplet::timerEvent( QTimerEvent* ) | |||
331 | return; | 329 | return; |
332 | } else | 330 | } |
331 | else | ||
333 | if ( mustRepaint() ) | 332 | if ( mustRepaint() ) |
@@ -340,3 +339,4 @@ void WirelessApplet::timerEvent( QTimerEvent* ) | |||
340 | updatePopupWindow(); | 339 | updatePopupWindow(); |
341 | } else checkInterface(); | 340 | } |
341 | else checkInterface(); | ||
342 | } | 342 | } |
@@ -539 +539,14 @@ void WirelessApplet::paintEvent( QPaintEvent* ) | |||
539 | } | 539 | } |
540 | |||
541 | |||
542 | int WirelessApplet::position() | ||
543 | { | ||
544 | return 6; | ||
545 | } | ||
546 | |||
547 | |||
548 | Q_EXPORT_INTERFACE() | ||
549 | { | ||
550 | Q_CREATE_INSTANCE( OTaskbarAppletWrapper<WirelessApplet> ); | ||
551 | } | ||
552 | |||