Diffstat (limited to 'noncore/net/opietooth/manager/btconnectionitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btconnectionitem.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/btconnectionitem.cpp b/noncore/net/opietooth/manager/btconnectionitem.cpp new file mode 100644 index 0000000..6fb9c11 --- a/dev/null +++ b/noncore/net/opietooth/manager/btconnectionitem.cpp | |||
@@ -0,0 +1,23 @@ | |||
1 | #include <connection.h> | ||
2 | #include "btconnectionitem.h" | ||
3 | |||
4 | using namespace OpieTooth; | ||
5 | |||
6 | BTConnectionItem::BTConnectionItem( QListView* parent, const ConnectionState& con ) | ||
7 | : BTListItem( parent ){ | ||
8 | m_con = con; | ||
9 | setText(0, m_con.mac() ); | ||
10 | } | ||
11 | BTConnectionItem::~BTConnectionItem() { | ||
12 | |||
13 | } | ||
14 | QString BTConnectionItem::type() const { | ||
15 | return QString::fromLatin1("connection"); | ||
16 | } | ||
17 | int BTConnectionItem::typeId() const { | ||
18 | return Connection; | ||
19 | } | ||
20 | ConnectionState BTConnectionItem::connection() const { | ||
21 | return m_con; | ||
22 | } | ||
23 | |||