Loading...
Searching...
No Matches
QXmppArchiveManager.h
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPARCHIVEMANAGER_H
#define QXMPPARCHIVEMANAGER_H
#include "QXmppArchiveIq.h"
#include "QXmppClientExtension.h"
#include "QXmppResultSet.h"
#include <QDateTime>
class QXMPP_EXPORT QXmppArchiveManager : public QXmppClientExtension
{
Q_OBJECT
public:
void listCollections(const QString &jid, const QDateTime &start = QDateTime(), const QDateTime &end = QDateTime(),
const QXmppResultSetQuery &rsm = QXmppResultSetQuery());
void listCollections(const QString &jid, const QDateTime &start, const QDateTime &end, int max);
void removeCollections(const QString &jid, const QDateTime &start = QDateTime(), const QDateTime &end = QDateTime());
void retrieveCollection(const QString &jid, const QDateTime &start, const QXmppResultSetQuery &rsm = QXmppResultSetQuery());
void retrieveCollection(const QString &jid, const QDateTime &start, int max);
QStringList discoveryFeatures() const override;
bool handleStanza(const QDomElement &element) override;
Q_SIGNAL void archiveListReceived(const QList<QXmppArchiveChat> &, const QXmppResultSetReply &rsm = QXmppResultSetReply());
Q_SIGNAL void archiveChatReceived(const QXmppArchiveChat &, const QXmppResultSetReply &rsm = QXmppResultSetReply());
};
#endif
QXmppArchiveChat
The QXmppArchiveChat class represents an archived conversation as defined by XEP-0136: Message Archiv...
Definition QXmppArchiveIq.h:42
QXmppArchiveManager
The QXmppArchiveManager class makes it possible to access message archives as defined by XEP-0136: Me...
Definition QXmppArchiveManager.h:31
QXmppArchiveManager::archiveChatReceived
Q_SIGNAL void archiveChatReceived(const QXmppArchiveChat &, const QXmppResultSetReply &rsm=QXmppResultSetReply())
QXmppArchiveManager::removeCollections
void removeCollections(const QString &jid, const QDateTime &start=QDateTime(), const QDateTime &end=QDateTime())
Definition QXmppArchiveManager.cpp:93
QXmppArchiveManager::retrieveCollection
void retrieveCollection(const QString &jid, const QDateTime &start, const QXmppResultSetQuery &rsm=QXmppResultSetQuery())
Definition QXmppArchiveManager.cpp:111
QXmppArchiveManager::listCollections
void listCollections(const QString &jid, const QDateTime &start=QDateTime(), const QDateTime &end=QDateTime(), const QXmppResultSetQuery &rsm=QXmppResultSetQuery())
Definition QXmppArchiveManager.cpp:58
QXmppArchiveManager::archiveListReceived
Q_SIGNAL void archiveListReceived(const QList< QXmppArchiveChat > &, const QXmppResultSetReply &rsm=QXmppResultSetReply())
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
QXmppClientExtension::QXmppClientExtension
QXmppClientExtension()
Definition QXmppClientExtension.cpp:12
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition client/compat/removed_api.cpp:44
QXmppResultSetQuery
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition QXmppResultSet.h:18
QXmppResultSetReply
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition QXmppResultSet.h:53