author | skyhusker <skyhusker> | 2005-04-20 10:25:20 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-04-20 10:25:20 (UTC) |
commit | e439d0e6eaa6704a8b1b89ea32aa8a0520738a04 (patch) (side-by-side diff) | |
tree | 18c8b1eba5e1836f757765e4204d638500aa79f2 /noncore/net/opiestumbler/opiestumbler.h | |
parent | f6b9c85c09692f298ffa5ee95e1f171a9e158502 (diff) | |
download | opie-e439d0e6eaa6704a8b1b89ea32aa8a0520738a04.zip opie-e439d0e6eaa6704a8b1b89ea32aa8a0520738a04.tar.gz opie-e439d0e6eaa6704a8b1b89ea32aa8a0520738a04.tar.bz2 |
First commit of OpieStumbler, an application which performs wireless networks scanning using Wireless Extensions
Diffstat (limited to 'noncore/net/opiestumbler/opiestumbler.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opiestumbler/opiestumbler.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/noncore/net/opiestumbler/opiestumbler.h b/noncore/net/opiestumbler/opiestumbler.h new file mode 100644 index 0000000..3f45a78 --- a/dev/null +++ b/noncore/net/opiestumbler/opiestumbler.h @@ -0,0 +1,70 @@ +#ifndef OPIESTUMBLER_H +#define OPIESTUMBLER_H + +#include <qmainwindow.h> +#include <qlist.h> + +#include "stumblerstation.h" + +class QString; +class QPopupMenu; +class Stumbler; +class QCopChannel; +class QListView; +class QListViewItem; + +namespace Opie{ + namespace Net { + class OMacAddress; + class OStation; + class OManufacturerDB; + } + + namespace Core { + class OProcess; + } +} + + +class OpieStumbler: public QMainWindow { + Q_OBJECT +public: + + enum CurrentColumns { CURSSID, CURCHAN, CURSIGNAL, CURENC }; + enum HistoryColumns { HISSSID, HISCHAN, HISSIGNAL, HISENC, HISVENDOR }; + OpieStumbler(QWidget *parent = 0, const char *name = 0, WFlags f = 0); + static QString appName() { return QString::fromLatin1("opiestumbler"); } + static QString appCaption(); + void displayStations(); + QString manufacturer(const QString &mac, bool extended = FALSE ); +protected slots: + void slotConfigure(); + void slotStartScanning(); + void slotStopScanning(); + void slotUpdateStations(); + void slotMessageReceived( const QCString &, const QByteArray & ); + void slotCurrentMousePressed(int button, QListViewItem *item, const QPoint &point, int c); + void slotHistoryMousePressed(int button, QListViewItem *item, const QPoint &point, int c); + void slotShowDetails(); + void slotLoadManufacturers(); + void slotJoinNetwork(); + void slotAssociated(); + void slotCheckDHCP(); +protected: + void loadConfig(); + QListView *m_listCurrent; + QListView *m_listHistory; + QString m_interface; + Stumbler *m_stumbler; + QCopChannel *m_channel; + QList <Opie::Net::OStation> *m_stationsCurrent; + QList <StumblerStation> m_stationsHistory; + QPopupMenu *m_popupCurrent; + QPopupMenu *m_popupHistory; + Opie::Net::OManufacturerDB *m_db; + QString m_mac; + Opie::Core::OProcess *m_proc; + +}; + +#endif /* OPIESTUMBLER_H */ |