summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btlistitem.cpp
authorzecke <zecke>2002-07-08 18:46:40 (UTC)
committer zecke <zecke>2002-07-08 18:46:40 (UTC)
commit7d82c654e6a1df83f70b2d81aa05a1175799b66b (patch) (unidiff)
tree079e87ac4dcd96c304a4e8eb7f928194fffe63f1 /noncore/net/opietooth/manager/btlistitem.cpp
parent35d0ca5cc59b82af7b7ddb343ec092c3171b11ef (diff)
downloadopie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.zip
opie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.tar.gz
opie-7d82c654e6a1df83f70b2d81aa05a1175799b66b.tar.bz2
API clean ups
Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btlistitem.cpp22
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
@@ -5,20 +5,14 @@ namespace OpieTooth {
5 5
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
24 m_name = name; 18 m_name = name;
@@ -27,7 +21,7 @@ namespace OpieTooth {
27 21
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
33 m_name = name; 27 m_name = name;
@@ -36,27 +30,27 @@ namespace OpieTooth {
36 } 30 }
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 }
62 56