QXmpp  Version:1.0.0
QXmppMamManager.h
1 /*
2  * Copyright (C) 2008-2019 The QXmpp developers
3  *
4  * Author:
5  * Niels Ole Salscheider
6  *
7  * Source:
8  * https://github.com/qxmpp-project/qxmpp
9  *
10  * This file is a part of QXmpp library.
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  */
23 
24 #ifndef QXMPPMAMMANAGER_H
25 #define QXMPPMAMMANAGER_H
26 
27 #include <QDateTime>
28 
29 #include "QXmppClientExtension.h"
30 #include "QXmppResultSet.h"
31 
32 class QXmppMessage;
33 
46 
47 class QXMPP_EXPORT QXmppMamManager : public QXmppClientExtension
48 {
49  Q_OBJECT
50 
51 public:
52  QString retrieveArchivedMessages(const QString &to = QString(),
53  const QString &node = QString(),
54  const QString &jid = QString(),
55  const QDateTime &start = QDateTime(),
56  const QDateTime &end = QDateTime(),
57  const QXmppResultSetQuery &resultSetQuery = QXmppResultSetQuery());
58 
60  QStringList discoveryFeatures() const;
61  bool handleStanza(const QDomElement &element);
63 
64 signals:
66  void archivedMessageReceived(const QString &queryId,
67  const QXmppMessage &message);
68 
70  void resultsRecieved(const QString &queryId,
71  const QXmppResultSetReply &resultSetReply,
72  bool complete);
73 };
74 
75 #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
QXmppResultSetQuery
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:34
QXmppMamManager
The QXmppMamManager class makes it possible to access message archives as defined by XEP-0313: Messag...
Definition: QXmppMamManager.h:47
QXmppResultSetReply
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:68
QXmppClientExtension::handleStanza
virtual bool handleStanza(const QDomElement &stanza)=0
You need to implement this method to process incoming XMPP stanzas.
QXmppMessage
The QXmppMessage class represents an XMPP message.
Definition: QXmppMessage.h:38