author | zecke <zecke> | 2002-07-08 18:46:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-08 18:46:40 (UTC) |
commit | 7d82c654e6a1df83f70b2d81aa05a1175799b66b (patch) (side-by-side diff) | |
tree | 079e87ac4dcd96c304a4e8eb7f928194fffe63f1 /noncore/net/opietooth/manager/btlistitem.cpp | |
parent | 35d0ca5cc59b82af7b7ddb343ec092c3171b11ef (diff) | |
download | opie-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) (show 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 @@ -5,20 +5,14 @@ namespace OpieTooth { BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { - m_name = ""; - m_mac =""; - m_type =""; } BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { - m_name = ""; - m_mac =""; - m_type =""; } // name, and then mac and then servicetype - BTListItem::BTListItem( QListView * parent, QString name , QString mac, QString type ) + BTListItem::BTListItem( QListView * parent, const QString &name , const QString& mac, const QString& type ) : QListViewItem( parent, name ){ m_name = name; @@ -27,7 +21,7 @@ namespace OpieTooth { } - BTListItem::BTListItem( QListViewItem * parent , QString name, QString mac, QString type ) + BTListItem::BTListItem( QListViewItem * parent , const QString& name, const QString& mac, const QString& type ) : QListViewItem( parent, name ){ m_name = name; @@ -36,27 +30,27 @@ namespace OpieTooth { } - void BTListItem::setMac( QString mac ) { + void BTListItem::setMac( const QString& mac ) { m_mac = mac; } - QString BTListItem::mac() { + QString BTListItem::mac() const { return m_mac; } - void BTListItem::setName( QString name ) { + void BTListItem::setName( const QString& name ) { m_name = name; } - QString BTListItem::name() { + QString BTListItem::name() const { return m_name; } - void BTListItem::setType( QString type ) { + void BTListItem::setType( const QString& type ) { m_type = type; } - QString BTListItem::type() { + QString BTListItem::type() const { return m_type; } |