QXmppMamIq.h
/*
* Copyright (C) 2008-2019 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 "QXmppIq.h"
#include "QXmppDataForm.h"
#include "QXmppResultSet.h"
class QXmppMamQueryIq : public QXmppIq
{
public:
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);
void toXmlElementFromChild(QXmlStreamWriter *writer) const;
private:
QXmppDataForm m_form;
QXmppResultSetQuery m_resultSetQuery;
QString m_node;
QString m_queryId;
};
class QXmppMamResultIq : public QXmppIq
{
public:
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);
void toXmlElementFromChild(QXmlStreamWriter *writer) const;
private:
QXmppResultSetReply m_resultSetReply;
bool m_complete;
};
#endif
QXmppMamQueryIq::form
QXmppDataForm form() const
Returns the form that specifies the query.
Definition: QXmppMamIq.cpp:34
QXmppMamResultIq
The QXmppMamQueryIq class represents the result IQ for XEP-0313: Message Archive Management.
Definition: QXmppMamIq.h:62
QXmppMamQueryIq::queryId
QString queryId() const
Returns the queryid that will be included in the results.
Definition: QXmppMamIq.cpp:76
QXmppMamResultIq::setResultSetReply
void setResultSetReply(const QXmppResultSetReply &resultSetReply)
Sets the result set reply for result set management.
Definition: QXmppMamIq.cpp:144
QXmppMamQueryIq::setResultSetQuery
void setResultSetQuery(const QXmppResultSetQuery &resultSetQuery)
Definition: QXmppMamIq.cpp:56
QXmppDataForm
The QXmppDataForm class represents a data form as defined by XEP-0004: Data Forms.
Definition: QXmppDataForm.h:40
QXmppMamQueryIq::setQueryId
void setQueryId(const QString &id)
Definition: QXmppMamIq.cpp:84
QXmppMamResultIq::resultSetReply
QXmppResultSetReply resultSetReply() const
Returns the result set reply for result set management.
Definition: QXmppMamIq.cpp:138
QXmppResultSetQuery
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:34
QXmppMamResultIq::complete
bool complete() const
Definition: QXmppMamIq.cpp:151
QXmppResultSetReply
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:68
QXmppMamQueryIq
The QXmppMamQueryIq class represents the query IQ for XEP-0313: Message Archive Management.
Definition: QXmppMamIq.h:33
QXmppMamQueryIq::setForm
void setForm(const QXmppDataForm &form)
Definition: QXmppMamIq.cpp:42
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:42
QXmppMamQueryIq::setNode
void setNode(const QString &node)
Definition: QXmppMamIq.cpp:70
QXmppMamResultIq::setComplete
void setComplete(bool complete)
Definition: QXmppMamIq.cpp:158
QXmppMamQueryIq::resultSetQuery
QXmppResultSetQuery resultSetQuery() const
Returns the result set query for result set management.
Definition: QXmppMamIq.cpp:48
QXmppMamQueryIq::node
QString node() const
Returns the node to query.
Definition: QXmppMamIq.cpp:62