summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/configwindow.cpp
Unidiff
Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp
index 515d9b2..6ea6f02 100644
--- a/noncore/net/wellenreiter/gui/configwindow.cpp
+++ b/noncore/net/wellenreiter/gui/configwindow.cpp
@@ -1,46 +1,46 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved. 2** Copyright (C) 2002 Michael 'Mickey' Lauer. All rights reserved.
3** 3**
4** This file is part of Opie Environment. 4** This file is part of Opie Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14**********************************************************************/ 14**********************************************************************/
15 15
16#include "configwindow.h" 16#include "configwindow.h"
17#include <qmap.h> 17#include <qmap.h>
18#include <qcombobox.h> 18#include <qcombobox.h>
19#include <qspinbox.h> 19#include <qspinbox.h>
20 20
21WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f ) 21WellenreiterConfigWindow::WellenreiterConfigWindow( QWidget * parent, const char * name, WFlags f )
22 :WellenreiterConfigBase( parent, name, f ) 22 :WellenreiterConfigBase( parent, name, true, f )
23{ 23{
24 _devicetype[ "cisco" ] = 1; 24 _devicetype[ "cisco" ] = 1;
25 _devicetype[ "wlan-ng" ] = 2; 25 _devicetype[ "wlan-ng" ] = 2;
26 _devicetype[ "hostap" ] = 3; 26 _devicetype[ "hostap" ] = 3;
27 _devicetype[ "orinoco" ] = 4; 27 _devicetype[ "orinoco" ] = 4;
28 _devicetype[ "<manual>" ] = 5; 28 _devicetype[ "<manual>" ] = 5;
29}; 29};
30 30
31int WellenreiterConfigWindow::daemonDeviceType() 31int WellenreiterConfigWindow::daemonDeviceType()
32{ 32{
33 QString name = deviceType->currentText(); 33 QString name = deviceType->currentText();
34 if ( _devicetype.contains( name ) ) 34 if ( _devicetype.contains( name ) )
35 { 35 {
36 return _devicetype[name]; 36 return _devicetype[name];
37 } 37 }
38 else 38 else
39 { 39 {
40 return 0; 40 return 0;
41 } 41 }
42}; 42};
43 43
44int WellenreiterConfigWindow::daemonHopInterval() 44int WellenreiterConfigWindow::daemonHopInterval()
45{ 45{
46 return hopInterval->cleanText().toInt(); 46 return hopInterval->cleanText().toInt();