summaryrefslogtreecommitdiff
authorkorovkin <korovkin>2006-03-19 14:45:26 (UTC)
committer korovkin <korovkin>2006-03-19 14:45:26 (UTC)
commitd17df3ff1677779bfc23cfb08d27c83b03a3dfb4 (patch) (side-by-side diff)
tree1a21e4d7c52f20716a193a1ccf5edd0bc034d934
parentadbd8bde1b0b24e5ea7047dea7228451964ac23a (diff)
downloadopie-d17df3ff1677779bfc23cfb08d27c83b03a3dfb4.zip
opie-d17df3ff1677779bfc23cfb08d27c83b03a3dfb4.tar.gz
opie-d17df3ff1677779bfc23cfb08d27c83b03a3dfb4.tar.bz2
Added port number.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btserviceitem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/btserviceitem.cpp b/noncore/net/opietooth/manager/btserviceitem.cpp
index fb5f21e..8e6459d 100644
--- a/noncore/net/opietooth/manager/btserviceitem.cpp
+++ b/noncore/net/opietooth/manager/btserviceitem.cpp
@@ -1,25 +1,28 @@
#include "btserviceitem.h"
using namespace OpieTooth;
BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv )
: BTListItem( item ) {
+ int port = serv.protocolDescriptorList().last().port();
m_service = serv;
setText(0, QObject::tr(serv.serviceName() ) );
+ if (port > 0)
+ setText(1, QString::number(port) );
}
BTServiceItem::~BTServiceItem() {
}
QString BTServiceItem::type() const {
return QString::fromLatin1("service");
}
int BTServiceItem::typeId() const {
return Service;
}
Services BTServiceItem::services() const {
return m_service;
}
int BTServiceItem::serviceId() const {
return m_service.recHandle();
};