does not need DQT3_SUPPORT
[kdenetwork.git] / wifi / interface_wireless_wirelessextensions.h
blob7731b340aafdcdc87492c1e5f69e8583a518500d
1 /***************************************************************************
2 interface_wireless_wirelessextensions.h - description
3 -------------------
4 begin : Mon Aug 19 2002
5 copyright : (C) 2002 by Stefan Winter
6 email : mail@stefan-winter.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H
19 #define INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H
21 #include "config-wifi.h"
23 #include <QString>
24 #include <QAbstractTableModel>
26 #ifndef WITHOUT_ARTS
27 #include <arts/iomanager.h>
28 #include <arts/dispatcher.h>
29 #endif
31 #include "interface_wireless.h"
33 class K3ProcIO;
35 extern "C"
37 #include <iwlib.h>
40 class Interface_wireless_wirelessextensions:public Interface_wireless
42 Q_OBJECT public:
43 Interface_wireless_wirelessextensions ( );
44 NetworkParameterDataModel *get_available_networks ( );
46 public:
47 void setActiveDevice ( QString device );
48 long toggleFreqChannel ( long input );
50 public slots:bool poll_device_info ( );
52 private slots:void parseScanData ( K3ProcIO * iwlist );
54 private:
55 bool isSocketOpen ( );
56 void setNoActiveDevice ( );
57 QStringList available_wifi_devices ( );
58 bool autodetect_device ( );
60 QString print_scanning_token ( struct iw_event *event );
61 int get_info ( int skfd, const QString & interface, struct wireless_info &info );
62 bool staticInfoAlreadyRead;
63 long freqList[IW_MAX_FREQUENCIES];
64 long channelList[IW_MAX_FREQUENCIES];
65 int cellcount;
68 #endif /* INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H */