QXmppMamIq.h
/*
* Copyright (C) 2008-2021 The QXmpp developers
*
* Author:
* Niels Ole Salscheider
*
* Source:
* https://github.com/qxmpp-project/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*/
#ifndef QXMPPMAMIQ_H
#define QXMPPMAMIQ_H
#include "QXmppDataForm.h"
#include "QXmppIq.h"
#include "QXmppResultSet.h"
#include <QSharedDataPointer>
class QXmppMamQueryIqPrivate;
class QXmppMamResultIqPrivate;
class QXmppMamQueryIq : public QXmppIq
{
public:
QXmppMamQueryIq();
QXmppMamQueryIq(const QXmppMamQueryIq &);
~QXmppMamQueryIq();
QXmppMamQueryIq &operator=(const 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 QXmppMamResultIq : public QXmppIq
{
public:
QXmppMamResultIq();
QXmppMamResultIq(const QXmppMamResultIq &);
~QXmppMamResultIq();
QXmppMamResultIq &operator=(const 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
The QXmppDataForm class represents a data form as defined by XEP-0004: Data Forms.
Definition: QXmppDataForm.h:49
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:42
QXmppMamQueryIq
The QXmppMamQueryIq class represents the query IQ for XEP-0313: Message Archive Management.
Definition: QXmppMamIq.h:45
QXmppMamQueryIq::setResultSetQuery
void setResultSetQuery(const QXmppResultSetQuery &resultSetQuery)
Definition: QXmppMamIq.cpp:74
QXmppMamQueryIq::queryId
QString queryId() const
Returns the queryid that will be included in the results.
Definition: QXmppMamIq.cpp:94
QXmppMamQueryIq::setForm
void setForm(const QXmppDataForm &form)
Definition: QXmppMamIq.cpp:60
QXmppMamQueryIq::setQueryId
void setQueryId(const QString &id)
Definition: QXmppMamIq.cpp:102
QXmppMamQueryIq::resultSetQuery
QXmppResultSetQuery resultSetQuery() const
Returns the result set query for result set management.
Definition: QXmppMamIq.cpp:66
QXmppMamQueryIq::node
QString node() const
Returns the node to query.
Definition: QXmppMamIq.cpp:80
QXmppMamQueryIq::setNode
void setNode(const QString &node)
Definition: QXmppMamIq.cpp:88
QXmppMamQueryIq::form
QXmppDataForm form() const
Returns the form that specifies the query.
Definition: QXmppMamIq.cpp:52
QXmppMamResultIq
The QXmppMamQueryIq class represents the result IQ for XEP-0313: Message Archive Management.
Definition: QXmppMamIq.h:81
QXmppMamResultIq::complete
bool complete() const
Definition: QXmppMamIq.cpp:183
QXmppMamResultIq::setComplete
void setComplete(bool complete)
Definition: QXmppMamIq.cpp:190
QXmppMamResultIq::setResultSetReply
void setResultSetReply(const QXmppResultSetReply &resultSetReply)
Sets the result set reply for result set management.
Definition: QXmppMamIq.cpp:176
QXmppMamResultIq::resultSetReply
QXmppResultSetReply resultSetReply() const
Returns the result set reply for result set management.
Definition: QXmppMamIq.cpp:170
QXmppResultSetQuery
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:35
QXmppResultSetReply
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:69