aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppServiceInfo.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-29 14:30:44 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-29 14:30:44 +0000
commitf88c369a352750426ef3eeb67130777e8af80176 (patch)
treee32d758aab93d6ff6f2744d6b1be6a45e95a515a /src/QXmppServiceInfo.cpp
parent0ac6b4861af8dce74bd04695086f4abe8ae3df87 (diff)
downloadqxmpp-f88c369a352750426ef3eeb67130777e8af80176.tar.gz
add code comments
Diffstat (limited to 'src/QXmppServiceInfo.cpp')
-rw-r--r--src/QXmppServiceInfo.cpp30
1 files changed, 26 insertions, 4 deletions
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 <resolv.h>
#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;