QXmppMamManager.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 QXMPPMAMMANAGER_H
#define QXMPPMAMMANAGER_H
#include "QXmppClientExtension.h"
#include "QXmppResultSet.h"
#include <QDateTime>
class QXmppMessage;
class QXMPP_EXPORT QXmppMamManager : public QXmppClientExtension
{
Q_OBJECT
public:
QString retrieveArchivedMessages(const QString &to = QString(),
const QString &node = QString(),
const QString &jid = QString(),
const QDateTime &start = QDateTime(),
const QDateTime &end = QDateTime(),
const QXmppResultSetQuery &resultSetQuery = QXmppResultSetQuery());
QStringList discoveryFeatures() const override;
bool handleStanza(const QDomElement &element) override;
Q_SIGNALS:
void archivedMessageReceived(const QString &queryId,
const QXmppMessage &message);
void resultsRecieved(const QString &queryId,
const QXmppResultSetReply &resultSetReply,
bool complete);
};
#endif
QXmppClientExtension
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:47
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition: QXmppClientExtension.cpp:54
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)=0
You need to implement this method to process incoming XMPP stanzas.
QXmppMamManager
The QXmppMamManager class makes it possible to access message archives as defined by XEP-0313: Messag...
Definition: QXmppMamManager.h:51
QXmppMamManager::resultsRecieved
void resultsRecieved(const QString &queryId, const QXmppResultSetReply &resultSetReply, bool complete)
This signal is emitted when all results for a request have been received.
QXmppMamManager::archivedMessageReceived
void archivedMessageReceived(const QString &queryId, const QXmppMessage &message)
This signal is emitted when an archived message is received.
QXmppMessage
The QXmppMessage class represents an XMPP message.
Definition: QXmppMessage.h:46
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