aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppServiceInfo.cpp
diff options
context:
space:
mode:
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;