diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /wifi/interface_wireless_wirelessextensions.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/interface_wireless_wirelessextensions.h')
-rw-r--r-- | wifi/interface_wireless_wirelessextensions.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/wifi/interface_wireless_wirelessextensions.h b/wifi/interface_wireless_wirelessextensions.h new file mode 100644 index 00000000..96d91566 --- /dev/null +++ b/wifi/interface_wireless_wirelessextensions.h @@ -0,0 +1,66 @@ +/*************************************************************************** + interface_wireless_wirelessextensions.h - description + ------------------- + begin : Mon Aug 19 2002 + copyright : (C) 2002 by Stefan Winter + email : mail@stefan-winter.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H +#define INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H + +#include "config.h" + +#include <qstring.h> +#include <qtable.h> + +#ifndef WITHOUT_ARTS +#include <arts/iomanager.h> +#include <arts/dispatcher.h> +#endif + +#include "interface_wireless.h" + +class QTable; +class KProcIO; + +extern "C" +{ +#include <iwlib.h> +} + +class Interface_wireless_wirelessextensions:public Interface_wireless +{ +Q_OBJECT public: + Interface_wireless_wirelessextensions (QStringList * ignoreInterfaces); + QTable* get_available_networks (); + +public: + void setActiveDevice( QString device ); + +public slots: + bool poll_device_info (); + +private: + bool isSocketOpen(); + void setNoActiveDevice( ); + QStringList available_wifi_devices(); + bool autodetect_device(); + + QString print_scanning_token (struct iw_event *event); + int get_info (int skfd, const QString& interface, struct wireless_info& info); + QTable* networks; +private slots: + void parseScanData ( KProcIO * iwlist ); +}; + +#endif /* INTERFACE_WIRELESS_WIRELESSEXTENSIONS_H */ |