author | harlekin <harlekin> | 2002-06-23 20:55:21 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-23 20:55:21 (UTC) |
commit | 6fd150b4f49cab215eb65730242a7498ea990017 (patch) (unidiff) | |
tree | 21bb54a14416773a4115e0302c8a6eea955e9cdc /noncore/net/opietooth/manager/btlistitem.cpp | |
parent | a4a53967e152ba595d315b2491bb78070c446ee2 (diff) | |
download | opie-6fd150b4f49cab215eb65730242a7498ea990017.zip opie-6fd150b4f49cab215eb65730242a7498ea990017.tar.gz opie-6fd150b4f49cab215eb65730242a7498ea990017.tar.bz2 |
switched to BTListItem instead of setText atventures
Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btlistitem.cpp | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/noncore/net/opietooth/manager/btlistitem.cpp b/noncore/net/opietooth/manager/btlistitem.cpp index 19d1057..ce5b141 100644 --- a/noncore/net/opietooth/manager/btlistitem.cpp +++ b/noncore/net/opietooth/manager/btlistitem.cpp | |||
@@ -5,28 +5,62 @@ namespace OpieTooth { | |||
5 | 5 | ||
6 | 6 | ||
7 | BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { | 7 | BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { |
8 | 8 | m_name = ""; | |
9 | m_mac =""; | ||
10 | m_type =""; | ||
9 | } | 11 | } |
10 | 12 | ||
11 | BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { | 13 | BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { |
12 | 14 | m_name = ""; | |
15 | m_mac =""; | ||
16 | m_type =""; | ||
13 | } | 17 | } |
14 | 18 | ||
15 | 19 | ||
16 | // name, and then mac and then servicetype | 20 | // name, and then mac and then servicetype |
17 | BTListItem::BTListItem( QListView * parent, QString name , QString mac, QString type ) | 21 | BTListItem::BTListItem( QListView * parent, QString name , QString mac, QString type ) |
18 | : QListViewItem( parent, name ){ | 22 | : QListViewItem( parent, name ){ |
19 | setText(4, mac); | 23 | |
20 | setText(5, type); | 24 | m_name = name; |
25 | m_mac = mac; | ||
26 | m_type = type; | ||
21 | 27 | ||
22 | } | 28 | } |
23 | 29 | ||
24 | BTListItem::BTListItem( QListViewItem * parent , QString name, QString mac, QString type ) | 30 | BTListItem::BTListItem( QListViewItem * parent , QString name, QString mac, QString type ) |
25 | : QListViewItem( parent, name ){ | 31 | : QListViewItem( parent, name ){ |
26 | setText(4, mac); | 32 | |
27 | setText(5, type); | 33 | m_name = name; |
34 | m_mac = mac; | ||
35 | m_type = type; | ||
36 | } | ||
37 | |||
38 | |||
39 | void BTListItem::setMac( QString mac ) { | ||
40 | m_mac = mac; | ||
41 | } | ||
42 | |||
43 | QString BTListItem::mac() { | ||
44 | return m_mac; | ||
28 | } | 45 | } |
29 | 46 | ||
47 | void BTListItem::setName( QString name ) { | ||
48 | m_name = name; | ||
49 | } | ||
50 | |||
51 | QString BTListItem::name() { | ||
52 | return m_name; | ||
53 | } | ||
54 | |||
55 | void BTListItem::setType( QString type ) { | ||
56 | m_type = type; | ||
57 | } | ||
58 | |||
59 | QString BTListItem::type() { | ||
60 | return m_type; | ||
61 | } | ||
62 | |||
63 | |||
30 | BTListItem::~BTListItem() { | 64 | BTListItem::~BTListItem() { |
31 | } | 65 | } |
32 | 66 | ||