00001 #ifndef STUMBLER_H 00002 #define STUMBLER_H 00003 00004 #include <opie2/ostation.h> 00005 00006 #include <qobject.h> 00007 00008 class QString; 00009 class QTimer; 00010 namespace Opie { 00011 namespace Net { 00012 class OWirelessNetworkInterface; 00013 } 00014 } 00015 00016 class Stumbler: public QObject { 00017 Q_OBJECT 00018 00019 public: 00020 Stumbler(const QString &iface, QObject *parent = 0, const char *name = 0); 00021 void start(); 00022 void stop(); 00023 void setInterval(int msec); 00024 void setIface(const QString &iface); 00025 Opie::Net::OStationList * stations(); 00026 signals: 00027 void newdata(); 00028 protected slots: 00029 void slotRefresh(); 00030 protected: 00031 int m_interval; 00032 QString m_wifaceName; 00033 QTimer *m_timer; 00034 Opie::Net::OWirelessNetworkInterface *m_wiface; 00035 Opie::Net::OStationList *m_stationList; 00036 }; 00037 00038 #endif
1.4.2