summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/btserviceitem.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/btserviceitem.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btserviceitem.cpp23
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
5using namespace OpieTooth;
6
7BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv )
8 : BTListItem( item ) {
9 m_service = serv;
10 setText(0, QObject::tr(serv.serviceName() ) );
11}
12BTServiceItem::~BTServiceItem() {
13
14}
15QString BTServiceItem::type() const {
16 return QString::fromLatin1("Service");
17}
18int BTServiceItem::typeId() const {
19 return Service;
20}
21Services BTServiceItem::services() const {
22 return m_service;
23}