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 | |||
@@ -34,3 +34,5 @@ class MScanListView: public OListView | |||
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 | ||
@@ -44,2 +46,73 @@ class MScanListView: public OListView | |||
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 |