Diffstat (limited to 'noncore/net/opietooth/manager/btdeviceitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btdeviceitem.cpp | 30 |
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 | |||
4 | using namespace OpieTooth; | ||
5 | |||
6 | |||
7 | BTDeviceItem::BTDeviceItem( QListView* parent, const RemoteDevice& dev ) | ||
8 | : BTListItem( parent ) { | ||
9 | |||
10 | setText( 0, dev.name() ); | ||
11 | m_device = dev; | ||
12 | }; | ||
13 | BTDeviceItem::~BTDeviceItem() { | ||
14 | // nothing I'm aware of | ||
15 | } | ||
16 | RemoteDevice BTDeviceItem::remoteDevice() const { | ||
17 | return m_device; | ||
18 | } | ||
19 | QString BTDeviceItem::mac()const { | ||
20 | return m_device.mac(); | ||
21 | } | ||
22 | QString BTDeviceItem::name() const { | ||
23 | return m_device.name(); | ||
24 | } | ||
25 | QString BTDeviceItem::type() const { | ||
26 | return QString::fromLatin1("device"); | ||
27 | } | ||
28 | int BTDeviceItem::typeId() const { | ||
29 | return Device; | ||
30 | } | ||