Loading...
Searching...
No Matches
QXmppMamIq.h
// SPDX-FileCopyrightText: 2016 Niels Ole Salscheider <niels_ole@salscheider-online.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPMAMIQ_H
#define QXMPPMAMIQ_H
#include "QXmppDataForm.h"
#include "QXmppIq.h"
#include "QXmppResultSet.h"
#include <QSharedDataPointer>
class QXmppMamQueryIqPrivate;
class QXmppMamResultIqPrivate;
class QXMPP_EXPORT QXmppMamQueryIq : public QXmppIq
{
public:
QXmppMamQueryIq();
QXmppMamQueryIq(const QXmppMamQueryIq &);
QXmppMamQueryIq(QXmppMamQueryIq &&);
~QXmppMamQueryIq() override;
QXmppMamQueryIq &operator=(const QXmppMamQueryIq &);
QXmppMamQueryIq &operator=(QXmppMamQueryIq &&);
QXmppDataForm form() const;
void setForm(const QXmppDataForm &form);
QXmppResultSetQuery resultSetQuery() const;
void setResultSetQuery(const QXmppResultSetQuery &resultSetQuery);
QString node() const;
void setNode(const QString &node);
QString queryId() const;
void setQueryId(const QString &id);
static bool isMamQueryIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
QSharedDataPointer<QXmppMamQueryIqPrivate> d;
};
class QXMPP_EXPORT QXmppMamResultIq : public QXmppIq
{
public:
QXmppMamResultIq();
QXmppMamResultIq(const QXmppMamResultIq &);
QXmppMamResultIq(QXmppMamResultIq &&);
~QXmppMamResultIq() override;
QXmppMamResultIq &operator=(const QXmppMamResultIq &);
QXmppMamResultIq &operator=(QXmppMamResultIq &&);
QXmppResultSetReply resultSetReply() const;
void setResultSetReply(const QXmppResultSetReply &resultSetReply);
bool complete() const;
void setComplete(bool complete);
static bool isMamResultIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
QSharedDataPointer<QXmppMamResultIqPrivate> d;
};
#endif
QXmppDataForm
Definition QXmppDataForm.h:27
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
QXmppIq::operator=
QXmppIq & operator=(const QXmppIq &other)
Assigns other to this IQ.
QXmppMamQueryIq
Definition QXmppMamIq.h:18
QXmppMamQueryIq::QXmppMamQueryIq
QXmppMamQueryIq(QXmppMamQueryIq &&)
Default move constructor.
QXmppMamQueryIq::QXmppMamQueryIq
QXmppMamQueryIq(const QXmppMamQueryIq &)
Default copy constructor.
QXmppMamQueryIq::operator=
QXmppMamQueryIq & operator=(const QXmppMamQueryIq &)
Default assignemnt operator.
QXmppMamQueryIq::operator=
QXmppMamQueryIq & operator=(QXmppMamQueryIq &&)
Default move-assignemnt operator.
QXmppResultSetQuery
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition QXmppResultSet.h:16
QXmppResultSetReply
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition QXmppResultSet.h:50