1 /***************************************************************************
2 interface_wireless_wirelessextensions.h - description
4 begin : Mon Aug 19 2002
5 copyright : (C) 2002 by Stefan Winter
6 email : mail@stefan-winter.de
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
18 #ifndef INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H
19 #define INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H
21 #include "config-wifi.h"
24 #include <QAbstractTableModel>
27 #include <arts/iomanager.h>
28 #include <arts/dispatcher.h>
31 #include "interface_wireless.h"
40 class Interface_wireless_wirelessextensions
:public Interface_wireless
43 Interface_wireless_wirelessextensions ( );
44 NetworkParameterDataModel
*get_available_networks ( );
47 void setActiveDevice ( QString device
);
48 long toggleFreqChannel ( long input
);
50 public slots
:bool poll_device_info ( );
52 private slots
:void parseScanData ( K3ProcIO
* iwlist
);
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
];
68 #endif /* INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H */