summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btlistitem.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btlistitem.cpp60
1 files changed, 5 insertions, 55 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,61 +1,11 @@
1 1
2#include "btlistitem.h" 2#include "btlistitem.h"
3 3
4namespace OpieTooth { 4using namespace OpieTooth;
5 5
6 6
7 BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { 7BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) {
8 } 8}
9 9
10 BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { 10BTListItem::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};