summaryrefslogtreecommitdiff
path: root/noncore/net/opiestumbler/stumbler.h
Side-by-side diff
Diffstat (limited to 'noncore/net/opiestumbler/stumbler.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opiestumbler/stumbler.h38
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 @@
+#ifndef STUMBLER_H
+#define STUMBLER_H
+
+#include <opie2/ostation.h>
+
+#include <qobject.h>
+
+class QString;
+class QTimer;
+namespace Opie {
+ namespace Net {
+ class OWirelessNetworkInterface;
+ }
+}
+
+class Stumbler: public QObject {
+ Q_OBJECT
+
+public:
+ Stumbler(const QString &iface, QObject *parent = 0, const char *name = 0);
+ void start();
+ void stop();
+ void setInterval(int msec);
+ void setIface(const QString &iface);
+ Opie::Net::OStationList * stations();
+signals:
+ void newdata();
+protected slots:
+ void slotRefresh();
+protected:
+ int m_interval;
+ QString m_wifaceName;
+ QTimer *m_timer;
+ Opie::Net::OWirelessNetworkInterface *m_wiface;
+ Opie::Net::OStationList *m_stationList;
+};
+
+#endif