QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
QXmppMamIq.h
1// SPDX-FileCopyrightText: 2016 Niels Ole Salscheider <niels_ole@salscheider-online.de>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPMAMIQ_H
6#define QXMPPMAMIQ_H
7
8#include "QXmppDataForm.h"
9#include "QXmppIq.h"
10#include "QXmppResultSet.h"
11
12#include <QSharedDataPointer>
13
14class QXmppMamQueryIqPrivate;
15class QXmppMamResultIqPrivate;
16
17class QXMPP_EXPORT QXmppMamQueryIq : public QXmppIq
18{
19public:
24
27
28 QXmppDataForm form() const;
29 void setForm(const QXmppDataForm &form);
30 QXmppResultSetQuery resultSetQuery() const;
31 void setResultSetQuery(const QXmppResultSetQuery &resultSetQuery);
32 QString node() const;
33 void setNode(const QString &node);
34 QString queryId() const;
35 void setQueryId(const QString &id);
36
38 static bool isMamQueryIq(const QDomElement &element);
39
40protected:
41 void parseElementFromChild(const QDomElement &element) override;
42 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
44
45private:
46 QSharedDataPointer<QXmppMamQueryIqPrivate> d;
47};
48
49class QXMPP_EXPORT QXmppMamResultIq : public QXmppIq
50{
51public:
52 QXmppMamResultIq();
53 QXmppMamResultIq(const QXmppMamResultIq &);
54 QXmppMamResultIq(QXmppMamResultIq &&);
55 ~QXmppMamResultIq();
56
57 QXmppMamResultIq &operator=(const QXmppMamResultIq &);
58 QXmppMamResultIq &operator=(QXmppMamResultIq &&);
59
60 QXmppResultSetReply resultSetReply() const;
61 void setResultSetReply(const QXmppResultSetReply &resultSetReply);
62 bool complete() const;
63 void setComplete(bool complete);
64
66 static bool isMamResultIq(const QDomElement &element);
67
68protected:
69 void parseElementFromChild(const QDomElement &element) override;
70 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
72
73private:
74 QSharedDataPointer<QXmppMamResultIqPrivate> d;
75};
76
77#endif
Definition QXmppDataForm.h:27
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
QXmppIq & operator=(const QXmppIq &other)
Assigns other to this IQ.
Definition QXmppMamIq.h:18
QXmppMamQueryIq(QXmppMamQueryIq &&)
Default move constructor.
QXmppMamQueryIq(const QXmppMamQueryIq &)
Default copy constructor.
QXmppMamQueryIq & operator=(const QXmppMamQueryIq &)
Default assignemnt operator.
QXmppMamQueryIq & operator=(QXmppMamQueryIq &&)
Default move-assignemnt operator.
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