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 @@ + +#include <qobject.h> +#include "btserviceitem.h" + +using namespace OpieTooth; + +BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv ) + : BTListItem( item ) { + m_service = serv; + setText(0, QObject::tr(serv.serviceName() ) ); +} +BTServiceItem::~BTServiceItem() { + +} +QString BTServiceItem::type() const { + return QString::fromLatin1("Service"); +} +int BTServiceItem::typeId() const { + return Service; +} +Services BTServiceItem::services() const { + return m_service; +} |