QXmpp Version: 1.14.1
Loading...
Searching...
No Matches
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 "QXmppConstants_p.h"
9#include "QXmppStanza.h"
10
11#include <QDateTime>
12
17class QXMPP_EXPORT QXmppResultSetQuery
18{
19public:
20 QXmppResultSetQuery();
21
22 int max() const;
23 void setMax(int max);
24
25 int index() const;
26 void setIndex(int index);
27
28 QString before() const;
29 void setBefore(const QString &before);
30
31 QString after() const;
32 void setAfter(const QString &after);
33
34 bool isNull() const;
35
37 void parse(const QDomElement &element);
38 void toXml(QXmlStreamWriter *writer) const;
40
41private:
42 int m_index;
43 int m_max;
44 QString m_after;
45 QString m_before;
46};
47
52class QXMPP_EXPORT QXmppResultSetReply
53{
54public:
55 QXmppResultSetReply();
56
57 QString first() const;
58 void setFirst(const QString &first);