QXmppArchiveManager.h
/*
* Copyright (C) 2008-2014 The QXmpp developers
*
* Author:
* Jeremy Lainé
*
* 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 QXMPPARCHIVEMANAGER_H
#define QXMPPARCHIVEMANAGER_H
#include <QDateTime>
#include "QXmppClientExtension.h"
#include "QXmppResultSet.h"
class QXmppArchiveChat;
class QXmppArchiveChatIq;
class QXmppArchiveListIq;
class QXmppArchivePrefIq;
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;
bool handleStanza(const QDomElement &element);
signals:
void archiveListReceived(const QList<QXmppArchiveChat>&, const QXmppResultSetReply &rsm = QXmppResultSetReply());
void archiveChatReceived(const QXmppArchiveChat&, const QXmppResultSetReply &rsm = QXmppResultSetReply());
};
#endif
QXmppArchiveManager
The QXmppArchiveManager class makes it possible to access message archives as defined by XEP-0136: Me...
Definition: QXmppArchiveManager.h:53
QXmppClientExtension::discoveryFeatures
virtual QStringList discoveryFeatures() const
Definition: QXmppClientExtension.cpp:54
QXmppResultSetQuery
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:34
QXmppArchiveListIq
Represents an archive list as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:127
QXmppArchiveChatIq
Represents an archive chat as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:101
QXmppArchivePrefIq
Represents an archive preference IQ as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:235
QXmppArchiveChat
The QXmppArchiveChat class represents an archived conversation as defined by XEP-0136: Message Archiv...
Definition: QXmppArchiveIq.h:58
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)=0
You need to implement this method to process incoming XMPP stanzas.
QXmppResultSetReply
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:68
QXmppClientExtension
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:47