From f88c369a352750426ef3eeb67130777e8af80176 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Sun, 29 Aug 2010 14:30:44 +0000 Subject: add code comments --- src/QXmppServiceInfo.cpp | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'src/QXmppServiceInfo.cpp') diff --git a/src/QXmppServiceInfo.cpp b/src/QXmppServiceInfo.cpp index 3125709b..cae8ff64 100644 --- a/src/QXmppServiceInfo.cpp +++ b/src/QXmppServiceInfo.cpp @@ -37,21 +37,43 @@ #include #endif -QString QXmppServiceInfo::hostName() const +/// Constructs an empty service info object. +/// + +QXmppServiceInfo::QXmppServiceInfo() + : host_port(0) { - return host_name; } -quint16 QXmppServiceInfo::port() const +/// Returns host name for this service. +/// + +QString QXmppServiceInfo::hostName() const { - return host_port; + return host_name; } +/// Sets the host name for this service. +/// +/// \param hostName + void QXmppServiceInfo::setHostName(const QString &hostName) { host_name = hostName; } +/// Returns the port for this service. +/// + +quint16 QXmppServiceInfo::port() const +{ + return host_port; +} + +/// Sets the port for this service. +/// +/// \param port + void QXmppServiceInfo::setPort(quint16 port) { host_port = port; -- cgit v1.2.3