Diffstat (limited to 'noncore/net/opiestumbler/stumbler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opiestumbler/stumbler.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/net/opiestumbler/stumbler.h b/noncore/net/opiestumbler/stumbler.h new file mode 100644 index 0000000..de50d25 --- a/dev/null +++ b/noncore/net/opiestumbler/stumbler.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef STUMBLER_H | ||
2 | #define STUMBLER_H | ||
3 | |||
4 | #include <opie2/ostation.h> | ||
5 | |||
6 | #include <qobject.h> | ||
7 | |||
8 | class QString; | ||
9 | class QTimer; | ||
10 | namespace Opie { | ||
11 | namespace Net { | ||
12 | class OWirelessNetworkInterface; | ||
13 | } | ||
14 | } | ||
15 | |||
16 | class Stumbler: public QObject { | ||
17 | Q_OBJECT | ||
18 | |||
19 | public: | ||
20 | Stumbler(const QString &iface, QObject *parent = 0, const char *name = 0); | ||
21 | void start(); | ||
22 | void stop(); | ||
23 | void setInterval(int msec); | ||
24 | void setIface(const QString &iface); | ||
25 | Opie::Net::OStationList * stations(); | ||
26 | signals: | ||
27 | void newdata(); | ||
28 | protected slots: | ||
29 | void slotRefresh(); | ||
30 | protected: | ||
31 | int m_interval; | ||
32 | QString m_wifaceName; | ||
33 | QTimer *m_timer; | ||
34 | Opie::Net::OWirelessNetworkInterface *m_wiface; | ||
35 | Opie::Net::OStationList *m_stationList; | ||
36 | }; | ||
37 | |||
38 | #endif | ||