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 | |||
@@ -3,3 +3,3 @@ | |||
3 | 3 | ||
4 | namespace OpieTooth { | 4 | using namespace OpieTooth; |
5 | 5 | ||
@@ -11,51 +11 @@ namespace OpieTooth { | |||
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 | }; | ||