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.cpp | |
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.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btlistitem.cpp | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/noncore/net/opietooth/manager/btlistitem.cpp b/noncore/net/opietooth/manager/btlistitem.cpp index 82e7c00..36816f8 100644 --- a/noncore/net/opietooth/manager/btlistitem.cpp +++ b/noncore/net/opietooth/manager/btlistitem.cpp | |||
@@ -1,7 +1,7 @@ | |||
1 | 1 | ||
2 | #include "btlistitem.h" | 2 | #include "btlistitem.h" |
3 | 3 | ||
4 | namespace OpieTooth { | 4 | using namespace OpieTooth; |
5 | 5 | ||
6 | 6 | ||
7 | BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { | 7 | BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { |
@@ -9,53 +9,3 @@ namespace OpieTooth { | |||
9 | 9 | ||
10 | BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { | 10 | BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { |
11 | } | 11 | } |
12 | |||
13 | |||
14 | // name, and then mac and then servicetype | ||
15 | BTListItem::BTListItem( QListView * parent, const QString &name , const QString& mac, const QString& type ) | ||
16 | : QListViewItem( parent, name ){ | ||
17 | |||
18 | m_name = name; | ||
19 | m_mac = mac; | ||
20 | m_type = type; | ||
21 | |||
22 | } | ||
23 | |||
24 | BTListItem::BTListItem( QListViewItem * parent , const QString& name, const QString& mac, const QString& type ) | ||
25 | : QListViewItem( parent, name ){ | ||
26 | |||
27 | m_name = name; | ||
28 | m_mac = mac; | ||
29 | m_type = type; | ||
30 | } | ||
31 | |||
32 | |||
33 | void BTListItem::setMac( const QString& mac ) { | ||
34 | m_mac = mac; | ||
35 | } | ||
36 | |||
37 | QString BTListItem::mac() const { | ||
38 | return m_mac; | ||
39 | } | ||
40 | |||
41 | void BTListItem::setName( const QString& name ) { | ||
42 | m_name = name; | ||
43 | } | ||
44 | |||
45 | QString BTListItem::name() const { | ||
46 | return m_name; | ||
47 | } | ||
48 | |||
49 | void BTListItem::setType( const QString& type ) { | ||
50 | m_type = type; | ||
51 | } | ||
52 | |||
53 | QString BTListItem::type() const { | ||
54 | return m_type; | ||
55 | } | ||
56 | |||
57 | |||
58 | BTListItem::~BTListItem() { | ||
59 | } | ||
60 | |||
61 | }; | ||