QXmpp Version: 1.4.0
Loading...
Searching...
No Matches
QXmppResultSet.h
1/*
2 * Copyright (C) 2008-2021 The QXmpp developers
3 *
4 * Author:
5 * Olivier Goffart
6 *
7 * Source:
8 * https://github.com/qxmpp-project/qxmpp
9 *
10 * This file is a part of QXmpp library.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 */
23
24#ifndef QXMPPRESULTSET_H
25#define QXMPPRESULTSET_H
26
27#include "QXmppStanza.h"
28
29#include <QDateTime>
30
33
34class QXMPP_EXPORT QXmppResultSetQuery
35{
36public:
38
39 int max() const;
40 void setMax(int max);
41
42 int index() const;
43 void setIndex(int index);
44
45 QString before() const;
46 void setBefore(const QString &before);
47
48 QString after() const;
49 void setAfter(const QString &after);
50
51 bool isNull() const;
52
54 void parse(const QDomElement &element);
55 void toXml(QXmlStreamWriter *writer) const;
57
58private:
59 int m_index;
60 int m_max;
61 QString m_after;
62 QString m_before;
63};
64
67
68class QXMPP_EXPORT QXmppResultSetReply
69{
70public:
72
73 QString first() const;
74 void setFirst(const QString &first);
75
76 QString last() const;
77 void setLast(const QString &last);
78
79 int count() const;
80 void setCount(int count);
81
82 int index() const;
83 void setIndex(int index);
84
85 bool isNull() const;
86
88 void parse(const QDomElement &element);
89 void toXml(QXmlStreamWriter *writer) const;
91
92private:
93 int m_count;
94 int m_index;
95 QString m_first;
96 QString m_last;
97};
98
99#endif // QXMPPRESULTSET_H
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:35
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:69