From 255c1aabcd8d4e881f06ac55eadfc20274936df0 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Sat, 21 Jul 2012 18:04:02 +0200 Subject: documentation fixes --- src/base/QXmppResultSet.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/base/QXmppResultSet.cpp') diff --git a/src/base/QXmppResultSet.cpp b/src/base/QXmppResultSet.cpp index 25b1e9b6..7013a956 100644 --- a/src/base/QXmppResultSet.cpp +++ b/src/base/QXmppResultSet.cpp @@ -109,6 +109,8 @@ void QXmppResultSetQuery::setAfter(const QString& after) m_after=after; } +/// Returns true if no result set information is present. + bool QXmppResultSetQuery::isNull() const { return m_max == -1 && m_index == -1 && m_after.isNull() && m_before.isNull(); @@ -196,16 +198,26 @@ void QXmppResultSetReply::setCount(int count) m_count = count; } +/// Returns the index for the first result in the set. +/// +/// This is used for retrieving pages out of order. + int QXmppResultSetReply::index() const { return m_index; } +/// Sets the index for the first result in the set. +/// +/// This is used for retrieving pages out of order. + void QXmppResultSetReply::setIndex(int index) { m_index = index; } +/// Returns true if no result set information is present. + bool QXmppResultSetReply::isNull() const { return m_count == -1 && m_index == -1 && m_first.isNull() && m_last.isNull(); -- cgit v1.2.3