aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppResultSet.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-21 18:04:02 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-21 18:04:02 +0200
commit255c1aabcd8d4e881f06ac55eadfc20274936df0 (patch)
treeebfa868b619610566ae335d713df9c4487ecc355 /src/base/QXmppResultSet.cpp
parent9935bb73743760a8cb3526f9c608f03c733c6191 (diff)
downloadqxmpp-255c1aabcd8d4e881f06ac55eadfc20274936df0.tar.gz
documentation fixes
Diffstat (limited to 'src/base/QXmppResultSet.cpp')
-rw-r--r--src/base/QXmppResultSet.cpp12
1 files changed, 12 insertions, 0 deletions
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();