Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index 04e3457..515d9b2 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp @@ -11,13 +11,37 @@ ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** **********************************************************************/ #include "configwindow.h" +#include <qmap.h> +#include <qcombobox.h> +#include <qspinbox.h> WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) :WellenreiterConfigBase( parent, name, f ) { + _devicetype[ "cisco" ] = 1; + _devicetype[ "wlan-ng" ] = 2; + _devicetype[ "hostap" ] = 3; + _devicetype[ "orinoco" ] = 4; + _devicetype[ "<manual>" ] = 5; +}; +int WellenreiterConfigWindow::daemonDeviceType() +{ + QString name = deviceType->currentText(); + if ( _devicetype.contains( name ) ) + { + return _devicetype[name]; + } + else + { + return 0; + } }; +int WellenreiterConfigWindow::daemonHopInterval() +{ + return hopInterval->cleanText().toInt(); +} |