Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

configwindow.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2002-2004 Michael 'Mickey' Lauer.  All rights reserved.
00003 **
00004 ** This file is part of Wellenreiter II.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 **********************************************************************/
00015 
00016 #ifndef WELLENREITERCONFIGWINDOW_H
00017 #define WELLENREITERCONFIGWINDOW_H
00018 
00019 #include "configbase.h"
00020 #include "gps.h"
00021 
00022 /* QT */
00023 #include <qmap.h>
00024 #include <qcombobox.h>
00025 #include <qstring.h>
00026 
00027 const int DEVTYPE_SELECT = 0;
00028 const int DEVTYPE_CISCO = 1;
00029 const int DEVTYPE_WLAN_NG = 2;
00030 const int DEVTYPE_HOSTAP = 3;
00031 const int DEVTYPE_ORINOCO = 4;
00032 const int DEVTYPE_MANUAL = 5;
00033 const int DEVTYPE_FILE = 6;
00034 
00035 class WellenreiterConfigWindow;
00036 
00037 class WellenreiterConfigWindow : public WellenreiterConfigBase
00038 {
00039   Q_OBJECT
00040 
00041   public:
00042     WellenreiterConfigWindow( QWidget * parent = 0, const char * name = "WellenreiterConfigWindow", WFlags f = 0 );
00043     ~WellenreiterConfigWindow();
00044 
00045     int driverType() const;
00046     const QString soundOnNetwork() const { return "";/*netSound->currentText();*/ };
00047     const QString soundOnBeacon() const { return "";/*beaconSound->currentText();*/ };
00048     static WellenreiterConfigWindow* instance() { return _instance; };
00049 
00050     int hoppingInterval() const;
00051     bool usePrismHeader() const;
00052     bool isChannelChecked( int ) const;
00053 
00054     bool useGPS() const;
00055     const QString gpsHost() const;
00056     int gpsPort() const;
00057 
00058     void save();
00059     void load();
00060 
00061     int hexViewBuffer() const;
00062 
00063   public slots:
00064     void changedDeviceType(int);
00065     void changedNetworkAction(int t);
00066     void changedClientAction(int t);
00067     void changedStationAction(int t);
00068     void getCaptureFileNameClicked();
00069     void performAutodetection();
00070     void channelAllClicked(int);
00071     void performAction( const QString&, const QString&, const QString&, bool, int, int /* , const GpsLocation& */ );
00072 
00073   protected slots:
00074     void synchronizeActionsAndScripts();
00075     virtual void accept();
00076 
00077   protected:
00078     QMap<QString, int> _devicetype;
00079     static WellenreiterConfigWindow* _instance;
00080     int _guess;
00081 
00082 };
00083 
00084 #endif

Generated on Sat Nov 5 16:17:45 2005 for OPIE by  doxygen 1.4.2