Diffstat (limited to 'noncore/net/opietooth/manager/btserviceitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/btserviceitem.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/btserviceitem.cpp b/noncore/net/opietooth/manager/btserviceitem.cpp new file mode 100644 index 0000000..db71c3c --- a/dev/null +++ b/noncore/net/opietooth/manager/btserviceitem.cpp | |||
@@ -0,0 +1,23 @@ | |||
1 | |||
2 | #include <qobject.h> | ||
3 | #include "btserviceitem.h" | ||
4 | |||
5 | using namespace OpieTooth; | ||
6 | |||
7 | BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv ) | ||
8 | : BTListItem( item ) { | ||
9 | m_service = serv; | ||
10 | setText(0, QObject::tr(serv.serviceName() ) ); | ||
11 | } | ||
12 | BTServiceItem::~BTServiceItem() { | ||
13 | |||
14 | } | ||
15 | QString BTServiceItem::type() const { | ||
16 | return QString::fromLatin1("Service"); | ||
17 | } | ||
18 | int BTServiceItem::typeId() const { | ||
19 | return Service; | ||
20 | } | ||
21 | Services BTServiceItem::services() const { | ||
22 | return m_service; | ||
23 | } | ||