summaryrefslogtreecommitdiff
path: root/noncore/net/networksetup/wlan/infoimp.cpp
authorsimon <simon>2003-01-03 21:24:40 (UTC)
committer simon <simon>2003-01-03 21:24:40 (UTC)
commite483d88ee4158ba13d8c28b020d0e93b62e86d85 (patch) (side-by-side diff)
tree2c4ac27cf05428ad58257869c90a9ce51c4e43d3 /noncore/net/networksetup/wlan/infoimp.cpp
parent91395e6cd4d104b05f962ae8833767bbbd094163 (diff)
downloadopie-e483d88ee4158ba13d8c28b020d0e93b62e86d85.zip
opie-e483d88ee4158ba13d8c28b020d0e93b62e86d85.tar.gz
opie-e483d88ee4158ba13d8c28b020d0e93b62e86d85.tar.bz2
- these have been renamed to networksettings
Diffstat (limited to 'noncore/net/networksetup/wlan/infoimp.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/networksetup/wlan/infoimp.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/noncore/net/networksetup/wlan/infoimp.cpp b/noncore/net/networksetup/wlan/infoimp.cpp
deleted file mode 100644
index bd56678..0000000
--- a/noncore/net/networksetup/wlan/infoimp.cpp
+++ b/dev/null
@@ -1,56 +0,0 @@
-#include "infoimp.h"
-#include "wextensions.h"
-
-#include <qtimer.h>
-#include <qprogressbar.h>
-#include <qlabel.h>
-
-/**
- * Constructor. If wireless extensions are enabled on device name then
- * start a timer that every second will update the information.
- */
-WlanInfoImp::WlanInfoImp( QWidget* parent, const char* name, WFlags fl): WlanInfo(parent, name, fl){
- WExtensions *wExtensions = new WExtensions(name);
- if(!wExtensions->doesHaveWirelessExtensions()){
- delete wExtensions;
- qDebug("WlanInfoImp::No wireless extension");
- return;
- }
- delete wExtensions;
- timer = new QTimer( this );
- connect( timer, SIGNAL(timeout()), this, SLOT(update()));
- timer->start( 1000, false );
-}
-
-/**
- * Updates the information about the wireless device.
- */
-void WlanInfoImp::update(){
- WExtensions *wExtensions = new WExtensions(this->name());
- if(!wExtensions->doesHaveWirelessExtensions()){
- qDebug("No extension");
- delete wExtensions;
- timer->stop();
- return;
- }
- essidLabel->setText(wExtensions->essid());
- apLabel->setText(wExtensions->ap());
- stationLabel->setText(wExtensions->station());
- modeLabel->setText(wExtensions->mode());
- channelLabel->setText(QString("%1").arg(wExtensions->channel()));
- int signal = 0;
- int noise = 0;
- int quality = 0;
- wExtensions->stats(signal, noise, quality);
- if(signalProgressBar->progress() != signal)
- signalProgressBar->setProgress(signal);
- if(noiseProgressBar->progress() != noise)
- noiseProgressBar->setProgress(noise);
- if(qualityProgressBar->progress() != quality)
- qualityProgressBar->setProgress(quality);
- rateLabel->setText(QString("%1 Mb/s").arg(wExtensions->rate()));
- delete wExtensions;
-}
-
-// infoimp.cpp
-