summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btlistitem.cpp
authorharlekin <harlekin>2002-06-23 20:55:21 (UTC)
committer harlekin <harlekin>2002-06-23 20:55:21 (UTC)
commit6fd150b4f49cab215eb65730242a7498ea990017 (patch) (side-by-side diff)
tree21bb54a14416773a4115e0302c8a6eea955e9cdc /noncore/net/opietooth/manager/btlistitem.cpp
parenta4a53967e152ba595d315b2491bb78070c446ee2 (diff)
downloadopie-6fd150b4f49cab215eb65730242a7498ea990017.zip
opie-6fd150b4f49cab215eb65730242a7498ea990017.tar.gz
opie-6fd150b4f49cab215eb65730242a7498ea990017.tar.bz2
switched to BTListItem instead of setText atventures
Diffstat (limited to 'noncore/net/opietooth/manager/btlistitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btlistitem.cpp46
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
@@ -5,28 +5,62 @@ 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 )
: QListViewItem( parent, name ){
- setText(4, mac);
- setText(5, type);
+
+ m_name = name;
+ m_mac = mac;
+ m_type = type;
}
BTListItem::BTListItem( QListViewItem * parent , QString name, QString mac, QString type )
: 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() {
}