Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btlistitem.cpp | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/noncore/net/opietooth/manager/btlistitem.cpp b/noncore/net/opietooth/manager/btlistitem.cpp index 19d1057..ce5b141 100644 --- a/noncore/net/opietooth/manager/btlistitem.cpp +++ b/noncore/net/opietooth/manager/btlistitem.cpp @@ -7,3 +7,5 @@ namespace OpieTooth { BTListItem::BTListItem( QListView * parent ) : QListViewItem( parent ) { - + m_name = ""; + m_mac =""; + m_type =""; } @@ -11,3 +13,5 @@ namespace OpieTooth { BTListItem::BTListItem( QListViewItem * parent ) : QListViewItem( parent ) { - + m_name = ""; + m_mac =""; + m_type =""; } @@ -18,4 +22,6 @@ namespace OpieTooth { : QListViewItem( parent, name ){ - setText(4, mac); - setText(5, type); + + m_name = name; + m_mac = mac; + m_type = type; @@ -25,6 +31,34 @@ namespace OpieTooth { : QListViewItem( parent, name ){ - setText(4, mac); - setText(5, type); + + m_name = name; + m_mac = mac; + m_type = type; + } + + + void BTListItem::setMac( QString mac ) { + m_mac = mac; + } + + QString BTListItem::mac() { + return m_mac; } + void BTListItem::setName( QString name ) { + m_name = name; + } + + QString BTListItem::name() { + return m_name; + } + + void BTListItem::setType( QString type ) { + m_type = type; + } + + QString BTListItem::type() { + return m_type; + } + + BTListItem::~BTListItem() { |