QXmpp Version: 1.10.0
QXmppResultSet.h
1// SPDX-FileCopyrightText: 2012 Oliver Goffart <ogoffart@woboq.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPRESULTSET_H
6#define QXMPPRESULTSET_H
7
8#include "QXmppStanza.h"
9
10#include <QDateTime>
11
14
15class QXMPP_EXPORT QXmppResultSetQuery
16{
17public:
19
20 int max() const;
21 void setMax(int max);
22
23 int index() const;
24 void setIndex(int index);
25
26 QString before() const;
27 void setBefore(const QString &before);
28
29 QString after() const;
30 void setAfter(const QString &after);
31
32 bool isNull() const;
33
35 void parse(const QDomElement &element);
36 void toXml(QXmlStreamWriter *writer) const;
38
39private:
40 int m_index;
41 int m_max;
42 QString m_after;
43 QString m_before;
44};
45
48
49class QXMPP_EXPORT QXmppResultSetReply
50{
51public:
53
54 QString first() const;
55 void setFirst(const QString &first);
56
57 QString last() const;
58 void setLast(const QString &last);
59
60 int count() const;
61 void setCount(int count);
62
63 int index() const;
64 void setIndex(int index);
65
66 bool isNull() const;
67
69 void parse(const QDomElement &element);
70 void toXml(QXmlStreamWriter *writer) const;
72
73private:
74 int m_count;
75 int m_index;
76 QString m_first;
77 QString m_last;
78};
79
80#endif // QXMPPRESULTSET_H
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:16
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:50