QXmpp Version: 1.5.6
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
30class 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(),
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
47Q_SIGNALS:
50 void archiveListReceived(const QList<QXmppArchiveChat> &, const QXmppResultSetReply &rsm = QXmppResultSetReply());
51
55};
56
57#endif
The QXmppArchiveChat class represents an archived conversation as defined by XEP-0136: Message Archiv...
Definition QXmppArchiveIq.h:40
The QXmppArchiveManager class makes it possible to access message archives as defined by XEP-0136: Me...
Definition QXmppArchiveManager.h:31
void archiveListReceived(const QList< QXmppArchiveChat > &, const QXmppResultSetReply &rsm=QXmppResultSetReply())
void archiveChatReceived(const QXmppArchiveChat &, const QXmppResultSetReply &rsm=QXmppResultSetReply())
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:33
virtual QStringList discoveryFeatures() const
Definition QXmppClientExtension.cpp:22
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition QXmppResultSet.h:16
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition QXmppResultSet.h:50