author | zecke <zecke> | 2002-07-12 17:14:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-12 17:14:58 (UTC) |
commit | 89dce758480cc90502ad14b6c4cf80774e6c1845 (patch) (unidiff) | |
tree | 2ff4e635c8aa86385dfd896084f5cd419efd0840 /noncore/net/opietooth/manager/btlistitem.h | |
parent | 716211b5e06bb25145cfbcf62a11a7c52c79dde5 (diff) | |
download | opie-89dce758480cc90502ad14b6c4cf80774e6c1845.zip opie-89dce758480cc90502ad14b6c4cf80774e6c1845.tar.gz opie-89dce758480cc90502ad14b6c4cf80774e6c1845.tar.bz2 |
- Connection -> ConnectionState
- Factory adjustments
- Factory function
- Refactoring the QListViewItem derived class
BTListItem
|
- BTDeviceItem for RemoteDevices
|
- BTServiceItem for Services
|
- BTConnectionItem for ConnectionState
- misc bug fixes
Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btlistitem.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/noncore/net/opietooth/manager/btlistitem.h b/noncore/net/opietooth/manager/btlistitem.h index d7ce03b..6b529d1 100644 --- a/noncore/net/opietooth/manager/btlistitem.h +++ b/noncore/net/opietooth/manager/btlistitem.h | |||
@@ -6,27 +6,12 @@ | |||
6 | namespace OpieTooth { | 6 | namespace OpieTooth { |
7 | 7 | ||
8 | class BTListItem : public QListViewItem { | 8 | class BTListItem : public QListViewItem { |
9 | |||
10 | public: | 9 | public: |
10 | enum Types { Device =0, Service, Connection }; | ||
11 | BTListItem( QListView * parent ); | 11 | BTListItem( QListView * parent ); |
12 | BTListItem( QListViewItem * parent ); | 12 | BTListItem( QListViewItem * parent ); |
13 | 13 | virtual QString type() const = 0; | |
14 | // name, and then mac and then servicetype | 14 | virtual int typeId() const = 0; |
15 | BTListItem( QListView * , const QString&, const QString&, const QString& ); | ||
16 | BTListItem( QListViewItem * parent , const QString&, const QString& , const QString& ); | ||
17 | ~BTListItem(); | ||
18 | |||
19 | void setMac( const QString& ); | ||
20 | QString mac()const; | ||
21 | void setName( const QString& ); | ||
22 | QString name()const; | ||
23 | void setType( const QString& ); | ||
24 | QString type()const; | ||
25 | private: | ||
26 | QString m_name; | ||
27 | QString m_mac; | ||
28 | QString m_type; | ||
29 | |||
30 | }; | 15 | }; |
31 | }; | 16 | }; |
32 | 17 | ||