Diffstat (limited to 'noncore/net/wellenreiter/gui/scanlist.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.h | 75 |
1 files changed, 74 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlist.h b/noncore/net/wellenreiter/gui/scanlist.h index f06f251..66c701b 100644 --- a/noncore/net/wellenreiter/gui/scanlist.h +++ b/noncore/net/wellenreiter/gui/scanlist.h | |||
@@ -29,18 +29,91 @@ class MScanListView: public OListView | |||
29 | 29 | ||
30 | public: | 30 | public: |
31 | MScanListView( QWidget* parent = 0, const char* name = 0 ); | 31 | MScanListView( QWidget* parent = 0, const char* name = 0 ); |
32 | virtual ~MScanListView(); | 32 | virtual ~MScanListView(); |
33 | 33 | ||
34 | void setManufacturerDB( ManufacturerDB* manufacturerdb ); | 34 | void setManufacturerDB( ManufacturerDB* manufacturerdb ); |
35 | void dump( QTextStream& t ) const; | 35 | |
36 | virtual void serializeTo( QDataStream& s ) const; | ||
37 | virtual void serializeFrom( QDataStream& s ); | ||
36 | 38 | ||
37 | public slots: | 39 | public slots: |
38 | void addNewItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal ); | 40 | void addNewItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal ); |
39 | 41 | ||
40 | private: | 42 | private: |
41 | ManufacturerDB* _manufacturerdb; | 43 | ManufacturerDB* _manufacturerdb; |
42 | 44 | ||
43 | }; | 45 | }; |
44 | 46 | ||
47 | //****************************** MScanListItem **************************************************************** | ||
48 | |||
49 | class MScanListItem: public OListViewItem | ||
50 | { | ||
51 | public: | ||
52 | MScanListItem::MScanListItem( QListView* parent, | ||
53 | QString type, | ||
54 | QString essid, | ||
55 | QString macaddr, | ||
56 | bool wep, | ||
57 | int channel, | ||
58 | int signal ); | ||
59 | |||
60 | MScanListItem::MScanListItem( QListViewItem* parent, | ||
61 | QString type, | ||
62 | QString essid, | ||
63 | QString macaddr, | ||
64 | bool wep, | ||
65 | int channel, | ||
66 | int signal ); | ||
67 | |||
68 | |||
69 | protected: | ||
70 | virtual void decorateItem( QString type, QString essid, QString macaddr, bool wep, int channel, int signal ); | ||
71 | |||
72 | public: | ||
73 | QString type; | ||
74 | |||
75 | public: | ||
76 | //const QString& type() { return _type; }; | ||
77 | const QString& essid() { return _essid; }; | ||
78 | const QString& macaddr() { return _macaddr; }; | ||
79 | bool wep() { return _wep; }; | ||
80 | int channel() { return _channel; }; | ||
81 | int signal() { return _signal; }; | ||
82 | int beacons() { return _beacons; }; | ||
83 | |||
84 | void setSignal( int signal ) { /* TODO */ }; | ||
85 | void receivedBeacon(); | ||
86 | |||
87 | void setManufacturer( const QString& manufacturer ); | ||
88 | |||
89 | virtual void serializeTo( QDataStream& s ) const; | ||
90 | virtual void serializeFrom( QDataStream& s ); | ||
91 | |||
92 | private: | ||
93 | QString _type; | ||
94 | QString _essid; | ||
95 | QString _macaddr; | ||
96 | bool _wep; | ||
97 | int _channel; | ||
98 | int _signal; | ||
99 | int _beacons; | ||
100 | |||
101 | }; | ||
102 | |||
103 | //****************************** MScanListViewFactory **************************************************************** | ||
104 | |||
105 | /* | ||
106 | |||
107 | class MScanListViewFactory : public OListViewFactory | ||
108 | { | ||
109 | public: | ||
110 | virtual QListView* listViewFactory(); | ||
111 | virtual QListViewItem* listViewItemFactory( QListView* lv ); | ||
112 | virtual QListViewItem* listViewItemFactory( QListViewItem* lvi ); | ||
113 | virtual void setColumnText( int depth, QListViewItem* lvi, int column, const QString& text ); | ||
114 | virtual void setCustomData( int depth, QListViewItem* lvi, const QString& text ); | ||
115 | } | ||
116 | */ | ||
117 | |||
45 | #endif | 118 | #endif |
46 | 119 | ||