Diffstat (limited to 'noncore/net/opietooth/manager/btconnectionitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btconnectionitem.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/btconnectionitem.cpp b/noncore/net/opietooth/manager/btconnectionitem.cpp index b57d1b3..c565c47 100644 --- a/noncore/net/opietooth/manager/btconnectionitem.cpp +++ b/noncore/net/opietooth/manager/btconnectionitem.cpp | |||
@@ -1,24 +1,42 @@ | |||
1 | #include <connection.h> | 1 | #include <connection.h> |
2 | #include "btconnectionitem.h" | 2 | #include "btconnectionitem.h" |
3 | 3 | ||
4 | using namespace OpieTooth; | 4 | using namespace OpieTooth; |
5 | 5 | ||
6 | BTConnectionItem::BTConnectionItem( QListView* parent, const ConnectionState& con ) | 6 | BTConnectionItem::BTConnectionItem( QListView* parent, const ConnectionState& con ) |
7 | : BTListItem( parent ){ | 7 | : BTListItem( parent ){ |
8 | m_con = con; | 8 | m_con = con; |
9 | setText(0, m_con.mac() ); | 9 | setText(0, m_con.mac() ); |
10 | setText(1, m_con.connectionMode() ); | 10 | setText(1, m_con.connectionMode() ); |
11 | } | 11 | } |
12 | BTConnectionItem::~BTConnectionItem() { | 12 | BTConnectionItem::~BTConnectionItem() { |
13 | 13 | ||
14 | } | 14 | } |
15 | QString BTConnectionItem::type() const { | 15 | QString BTConnectionItem::type() const { |
16 | return QString::fromLatin1("connection"); | 16 | return QString::fromLatin1("connection"); |
17 | } | 17 | } |
18 | int BTConnectionItem::typeId() const { | 18 | int BTConnectionItem::typeId() const { |
19 | return Connection; | 19 | return Connection; |
20 | } | 20 | } |
21 | ConnectionState BTConnectionItem::connection() const { | 21 | ConnectionState BTConnectionItem::connection() const { |
22 | return m_con; | 22 | return m_con; |
23 | } | 23 | } |
24 | 24 | ||
25 | void BTConnectionItem::setName( QString name ) { | ||
26 | m_name = name; | ||
27 | setText( 0, m_name ); | ||
28 | } | ||
29 | |||
30 | QString BTConnectionItem::name() { | ||
31 | return m_name; | ||
32 | } | ||
33 | |||
34 | |||
35 | void BTConnectionItem::setSignalStrength( QString strength ) { | ||
36 | m_signalStrength = strength; | ||
37 | setText( 2, m_signalStrength ); | ||
38 | } | ||
39 | |||
40 | QString BTConnectionItem::signalStrength() { | ||
41 | return m_signalStrength; | ||
42 | } | ||