QXmpp: QXmppArchiveManager.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppArchiveManager.h
1// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPARCHIVEMANAGER_H
6#define QXMPPARCHIVEMANAGER_H
7
8#include "QXmppArchiveIq.h"
9#include "QXmppClientExtension.h"
10#include "QXmppResultSet.h"
11
12#include <QDateTime>
13
29
30 class QXMPP_EXPORT QXmppArchiveManager : public QXmppClientExtension
31{
32 Q_OBJECT
33
34public:
35 void listCollections(const QString &jid, const QDateTime &start = QDateTime(), const QDateTime &end = QDateTime(),
36 const QXmppResultSetQuery &rsm = QXmppResultSetQuery());
37 void listCollections(const QString &jid, const QDateTime &start, const QDateTime &end, int max);
38 void removeCollections(const QString &jid, const QDateTime &start = QDateTime(), const QDateTime &end = QDateTime());
39 void retrieveCollection(const QString &jid, const QDateTime &start, const QXmppResultSetQuery &rsm = QXmppResultSetQuery());
40 void retrieveCollection(const QString &jid, const QDateTime &start, int max);
41
43 QStringList discoveryFeatures() const override;
44 bool handleStanza(const QDomElement &element) override;
46
49 Q_SIGNAL void archiveListReceived(const QList<QXmppArchiveChat> &, const QXmppResultSetReply &rsm = QXmppResultSetReply());
50
53 Q_SIGNAL void archiveChatReceived(const QXmppArchiveChat &, const QXmppResultSetReply &rsm = QXmppResultSetReply());
54};
55
56#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