Diffstat (limited to 'noncore/settings/networksettings/wlan/infoimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/wlan/infoimp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/settings/networksettings/wlan/infoimp.cpp b/noncore/settings/networksettings/wlan/infoimp.cpp index c558f5e..273bed8 100644 --- a/noncore/settings/networksettings/wlan/infoimp.cpp +++ b/noncore/settings/networksettings/wlan/infoimp.cpp | |||
@@ -1,27 +1,32 @@ | |||
1 | #include "infoimp.h" | 1 | #include "infoimp.h" |
2 | #include "wextensions.h" | 2 | #include "wextensions.h" |
3 | 3 | ||
4 | /* OPIE */ | ||
5 | #include <opie2/odebug.h> | ||
6 | using namespace Opie::Core; | ||
7 | |||
8 | /* QT */ | ||
4 | #include <qtimer.h> | 9 | #include <qtimer.h> |
5 | #include <qprogressbar.h> | 10 | #include <qprogressbar.h> |
6 | #include <qlabel.h> | 11 | #include <qlabel.h> |
7 | 12 | ||
8 | /** | 13 | /** |
9 | * Constructor. If wireless extensions are enabled on device name then | 14 | * Constructor. If wireless extensions are enabled on device name then |
10 | * start a timer that every second will update the information. | 15 | * start a timer that every second will update the information. |
11 | */ | 16 | */ |
12 | WlanInfoImp::WlanInfoImp( QWidget* parent, const char* name, WFlags fl): WlanInfo(parent, name, fl){ | 17 | WlanInfoImp::WlanInfoImp( QWidget* parent, const char* name, WFlags fl): WlanInfo(parent, name, fl){ |
13 | WExtensions *wExtensions = new WExtensions(name); | 18 | WExtensions *wExtensions = new WExtensions(name); |
14 | if(!wExtensions->doesHaveWirelessExtensions()){ | 19 | if(!wExtensions->doesHaveWirelessExtensions()){ |
15 | delete wExtensions; | 20 | delete wExtensions; |
16 | odebug << "WlanInfoImp::No wireless extension" << oendl; | 21 | odebug << "WlanInfoImp::No wireless extension" << oendl; |
17 | return; | 22 | return; |
18 | } | 23 | } |
19 | delete wExtensions; | 24 | delete wExtensions; |
20 | timer = new QTimer( this ); | 25 | timer = new QTimer( this ); |
21 | connect( timer, SIGNAL(timeout()), this, SLOT(update())); | 26 | connect( timer, SIGNAL(timeout()), this, SLOT(update())); |
22 | timer->start( 1000, false ); | 27 | timer->start( 1000, false ); |
23 | } | 28 | } |
24 | 29 | ||
25 | /** | 30 | /** |
26 | * Updates the information about the wireless device. | 31 | * Updates the information about the wireless device. |
27 | */ | 32 | */ |