aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base/QXmppRosterIq.cpp7
-rw-r--r--src/base/QXmppRosterIq.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/base/QXmppRosterIq.cpp b/src/base/QXmppRosterIq.cpp
index 0b2e1716..6480d0c1 100644
--- a/src/base/QXmppRosterIq.cpp
+++ b/src/base/QXmppRosterIq.cpp
@@ -74,6 +74,13 @@ void QXmppRosterIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
writer->writeEndElement();
}
+/// Constructs a new roster entry.
+
+QXmppRosterIq::Item::Item()
+ : m_type(NotSet)
+{
+}
+
/// Returns the bareJid of the roster entry.
///
/// \return bareJid as a QString
diff --git a/src/base/QXmppRosterIq.h b/src/base/QXmppRosterIq.h
index 9680a176..b43ecd44 100644
--- a/src/base/QXmppRosterIq.h
+++ b/src/base/QXmppRosterIq.h
@@ -58,6 +58,7 @@ public:
NotSet = 8 ///< the subscription state was not specified
};
+ Item();
QString bareJid() const;
QSet<QString> groups() const;
QString name() const;