summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/wlan
authorbenmeyer <benmeyer>2002-10-25 15:41:48 (UTC)
committer benmeyer <benmeyer>2002-10-25 15:41:48 (UTC)
commitd0d87d596d64cc1d5ef6322896c68883e4dfb5d0 (patch) (side-by-side diff)
tree44fb7b0871c1d069cc470d0f38a05af187a98819 /noncore/settings/networksettings/wlan
parent9086a63d5c27531c2014bade180b1cfd01663e2b (diff)
downloadopie-d0d87d596d64cc1d5ef6322896c68883e4dfb5d0.zip
opie-d0d87d596d64cc1d5ef6322896c68883e4dfb5d0.tar.gz
opie-d0d87d596d64cc1d5ef6322896c68883e4dfb5d0.tar.bz2
Automaticly update the wlaninfo
Diffstat (limited to 'noncore/settings/networksettings/wlan') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/wlan/info.ui108
-rw-r--r--noncore/settings/networksettings/wlan/wlan.pro4
-rw-r--r--noncore/settings/networksettings/wlan/wlanmodule.cpp18
3 files changed, 37 insertions, 93 deletions
diff --git a/noncore/settings/networksettings/wlan/info.ui b/noncore/settings/networksettings/wlan/info.ui
index 52d3a43..1e3e8b5 100644
--- a/noncore/settings/networksettings/wlan/info.ui
+++ b/noncore/settings/networksettings/wlan/info.ui
@@ -13,4 +13,4 @@
<y>0</y>
- <width>279</width>
- <height>292</height>
+ <width>242</width>
+ <height>316</height>
</rect>
@@ -19,3 +19,3 @@
<name>caption</name>
- <string>WLAN Information</string>
+ <string>Interface Information</string>
</property>
@@ -185,3 +185,3 @@
</widget>
- <spacer row="5" column="1" >
+ <spacer row="9" column="1" >
<property>
@@ -206,45 +206,3 @@
</spacer>
- </grid>
- </widget>
- <widget>
- <class>QWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>tab</cstring>
- </property>
- <attribute>
- <name>title</name>
- <string>Statistics</string>
- </attribute>
- <grid>
- <property stdset="1">
- <name>margin</name>
- <number>11</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <spacer row="4" column="1" >
- <property>
- <name>name</name>
- <cstring>Spacer2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Vertical</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget row="0" column="1" >
+ <widget row="5" column="1" >
<class>QProgressBar</class>
@@ -255,3 +213,3 @@
</widget>
- <widget row="1" column="1" >
+ <widget row="6" column="1" >
<class>QProgressBar</class>
@@ -262,3 +220,3 @@
</widget>
- <widget row="2" column="1" >
+ <widget row="7" column="1" >
<class>QProgressBar</class>
@@ -269,3 +227,3 @@
</widget>
- <widget row="0" column="0" >
+ <widget row="8" column="1" >
<class>QLabel</class>
@@ -273,10 +231,21 @@
<name>name</name>
- <cstring>TextLabel1_2</cstring>
+ <cstring>rateLabel</cstring>
</property>
<property stdset="1">
- <name>text</name>
- <string>Signal</string>
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>Panel</enum>
+ </property>
+ <property stdset="1">
+ <name>frameShadow</name>
+ <enum>Sunken</enum>
</property>
</widget>
- <widget row="1" column="0" >
+ <widget row="8" column="0" >
<class>QLabel</class>
@@ -284,3 +253,3 @@
<name>name</name>
- <cstring>TextLabel2_2</cstring>
+ <cstring>TextLabel4_2</cstring>
</property>
@@ -288,6 +257,6 @@
<name>text</name>
- <string>Noise</string>
+ <string>Rate</string>
</property>
</widget>
- <widget row="2" column="0" >
+ <widget row="7" column="0" >
<class>QLabel</class>
@@ -302,3 +271,3 @@
</widget>
- <widget row="3" column="0" >
+ <widget row="6" column="0" >
<class>QLabel</class>
@@ -306,3 +275,3 @@
<name>name</name>
- <cstring>TextLabel4_2</cstring>
+ <cstring>TextLabel2_2</cstring>
</property>
@@ -310,6 +279,6 @@
<name>text</name>
- <string>Rate</string>
+ <string>Noise</string>
</property>
</widget>
- <widget row="3" column="1" >
+ <widget row="5" column="0" >
<class>QLabel</class>
@@ -317,18 +286,7 @@
<name>name</name>
- <cstring>rateLabel</cstring>
- </property>
- <property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>1</vsizetype>
- </sizepolicy>
- </property>
- <property stdset="1">
- <name>frameShape</name>
- <enum>Panel</enum>
+ <cstring>TextLabel1_2</cstring>
</property>
<property stdset="1">
- <name>frameShadow</name>
- <enum>Sunken</enum>
+ <name>text</name>
+ <string>Signal</string>
</property>
diff --git a/noncore/settings/networksettings/wlan/wlan.pro b/noncore/settings/networksettings/wlan/wlan.pro
index 432a096..f28feb2 100644
--- a/noncore/settings/networksettings/wlan/wlan.pro
+++ b/noncore/settings/networksettings/wlan/wlan.pro
@@ -4,4 +4,4 @@ CONFIG += qt warn_on release
DESTDIR = $(OPIEDIR)/plugins/networksetup
-HEADERS = wlanimp.h wlanmodule.h wextensions.h
-SOURCES = wlanimp.cpp wlanmodule.cpp wextensions.cpp
+HEADERS = wlanimp.h infoimp.h wlanmodule.h wextensions.h
+SOURCES = wlanimp.cpp infoimp.cpp wlanmodule.cpp wextensions.cpp
INCLUDEPATH += $(OPIEDIR)/include ../
diff --git a/noncore/settings/networksettings/wlan/wlanmodule.cpp b/noncore/settings/networksettings/wlan/wlanmodule.cpp
index bf2589e..3993ca0 100644
--- a/noncore/settings/networksettings/wlan/wlanmodule.cpp
+++ b/noncore/settings/networksettings/wlan/wlanmodule.cpp
@@ -2,3 +2,3 @@
#include "wlanimp.h"
-#include "info.h"
+#include "infoimp.h"
#include "wextensions.h"
@@ -74,18 +74,4 @@ QWidget *WLANModule::information(Interface *i, QTabWidget **tabWidget){
- WlanInfo *info = new WlanInfo(0, "wireless info", Qt::WDestructiveClose);
+ WlanInfoImp *info = new WlanInfoImp(0, i->getInterfaceName(), Qt::WDestructiveClose);
(*tabWidget) = info->tabWidget;
-
- info->essidLabel->setText(we.essid());
- info->apLabel->setText(we.ap());
- info->stationLabel->setText(we.station());
- info->modeLabel->setText(we.mode());
- info->freqLabel->setText(QString("%1 GHz").arg(we.frequency()));
- int signal = 0;
- int noise = 0;
- int quality = 0;
- we.stats(signal, noise, quality);
- info->signalProgressBar->setProgress(signal);
- info->noiseProgressBar->setProgress(noise);
- info->qualityProgressBar->setProgress(quality);
- info->rateLabel->setText(QString("%1 Mb/s").arg(we.rate()));
return info;