Diffstat (limited to 'noncore/net/opiestumbler/opiestumbler.h') (more/less context) (ignore 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 @@ | |||
1 | #ifndef OPIESTUMBLER_H | ||
2 | #define OPIESTUMBLER_H | ||
3 | |||
4 | #include <qmainwindow.h> | ||
5 | #include <qlist.h> | ||
6 | |||
7 | #include "stumblerstation.h" | ||
8 | |||
9 | class QString; | ||
10 | class QPopupMenu; | ||
11 | class Stumbler; | ||
12 | class QCopChannel; | ||
13 | class QListView; | ||
14 | class QListViewItem; | ||
15 | |||
16 | namespace Opie{ | ||
17 | namespace Net { | ||
18 | class OMacAddress; | ||
19 | class OStation; | ||
20 | class OManufacturerDB; | ||
21 | } | ||
22 | |||
23 | namespace Core { | ||
24 | class OProcess; | ||
25 | } | ||
26 | } | ||
27 | |||
28 | |||
29 | class OpieStumbler: public QMainWindow { | ||
30 | Q_OBJECT | ||
31 | public: | ||
32 | |||
33 | enum CurrentColumns { CURSSID, CURCHAN, CURSIGNAL, CURENC }; | ||
34 | enum HistoryColumns { HISSSID, HISCHAN, HISSIGNAL, HISENC, HISVENDOR }; | ||
35 | OpieStumbler(QWidget *parent = 0, const char *name = 0, WFlags f = 0); | ||
36 | static QString appName() { return QString::fromLatin1("opiestumbler"); } | ||
37 | static QString appCaption(); | ||
38 | void displayStations(); | ||
39 | QString manufacturer(const QString &mac, bool extended = FALSE ); | ||
40 | protected slots: | ||
41 | void slotConfigure(); | ||
42 | void slotStartScanning(); | ||
43 | void slotStopScanning(); | ||
44 | void slotUpdateStations(); | ||
45 | void slotMessageReceived( const QCString &, const QByteArray & ); | ||
46 | void slotCurrentMousePressed(int button, QListViewItem *item, const QPoint &point, int c); | ||
47 | void slotHistoryMousePressed(int button, QListViewItem *item, const QPoint &point, int c); | ||
48 | void slotShowDetails(); | ||
49 | void slotLoadManufacturers(); | ||
50 | void slotJoinNetwork(); | ||
51 | void slotAssociated(); | ||
52 | void slotCheckDHCP(); | ||
53 | protected: | ||
54 | void loadConfig(); | ||
55 | QListView *m_listCurrent; | ||
56 | QListView *m_listHistory; | ||
57 | QString m_interface; | ||
58 | Stumbler *m_stumbler; | ||
59 | QCopChannel *m_channel; | ||
60 | QList <Opie::Net::OStation> *m_stationsCurrent; | ||
61 | QList <StumblerStation> m_stationsHistory; | ||
62 | QPopupMenu *m_popupCurrent; | ||
63 | QPopupMenu *m_popupHistory; | ||
64 | Opie::Net::OManufacturerDB *m_db; | ||
65 | QString m_mac; | ||
66 | Opie::Core::OProcess *m_proc; | ||
67 | |||
68 | }; | ||
69 | |||
70 | #endif /* OPIESTUMBLER_H */ | ||