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