summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btdeviceitem.cpp
authorzecke <zecke>2002-07-12 17:18:12 (UTC)
committer zecke <zecke>2002-07-12 17:18:12 (UTC)
commitd0401e1888a9a1af6be3a737484afca699642d15 (patch) (unidiff)
treee72f54007424a2f8717584933c9a1040184feb81 /noncore/net/opietooth/manager/btdeviceitem.cpp
parent89dce758480cc90502ad14b6c4cf80774e6c1845 (diff)
downloadopie-d0401e1888a9a1af6be3a737484afca699642d15.zip
opie-d0401e1888a9a1af6be3a737484afca699642d15.tar.gz
opie-d0401e1888a9a1af6be3a737484afca699642d15.tar.bz2
The files
Diffstat (limited to 'noncore/net/opietooth/manager/btdeviceitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btdeviceitem.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/btdeviceitem.cpp b/noncore/net/opietooth/manager/btdeviceitem.cpp
new file mode 100644
index 0000000..fb1b1c1
--- a/dev/null
+++ b/noncore/net/opietooth/manager/btdeviceitem.cpp
@@ -0,0 +1,30 @@
1
2#include "btdeviceitem.h"
3
4using namespace OpieTooth;
5
6
7BTDeviceItem::BTDeviceItem( QListView* parent, const RemoteDevice& dev )
8 : BTListItem( parent ) {
9
10 setText( 0, dev.name() );
11 m_device = dev;
12};
13BTDeviceItem::~BTDeviceItem() {
14// nothing I'm aware of
15}
16RemoteDevice BTDeviceItem::remoteDevice() const {
17 return m_device;
18}
19QString BTDeviceItem::mac()const {
20 return m_device.mac();
21}
22QString BTDeviceItem::name() const {
23 return m_device.name();
24}
25QString BTDeviceItem::type() const {
26 return QString::fromLatin1("device");
27}
28int BTDeviceItem::typeId() const {
29 return Device;
30}