Diffstat (limited to 'noncore/net/opietooth/manager/btdeviceitem.cpp') (more/less context) (ignore 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 @@ + +#include "btdeviceitem.h" + +using namespace OpieTooth; + + +BTDeviceItem::BTDeviceItem( QListView* parent, const RemoteDevice& dev ) + : BTListItem( parent ) { + + setText( 0, dev.name() ); + m_device = dev; +}; +BTDeviceItem::~BTDeviceItem() { +// nothing I'm aware of +} +RemoteDevice BTDeviceItem::remoteDevice() const { + return m_device; +} +QString BTDeviceItem::mac()const { + return m_device.mac(); +} +QString BTDeviceItem::name() const { + return m_device.name(); +} +QString BTDeviceItem::type() const { + return QString::fromLatin1("device"); +} +int BTDeviceItem::typeId() const { + return Device; +} |