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