diff options
Diffstat (limited to 'src/base/QXmppResultSet.cpp')
| -rw-r--r-- | src/base/QXmppResultSet.cpp | 12 |
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(); |
