QXmpp  Version:1.0.0
Signals | Public Member Functions | List of all members
QXmppMamManager Class Reference

The QXmppMamManager class makes it possible to access message archives as defined by XEP-0313: Message Archive Management. More...

#include <QXmppMamManager.h>

Inheritance diagram for QXmppMamManager:
Inheritance graph
[legend]
Collaboration diagram for QXmppMamManager:
Collaboration graph
[legend]

Signals

void archivedMessageReceived (const QString &queryId, const QXmppMessage &message)
 This signal is emitted when an archived message is received.
 
void resultsRecieved (const QString &queryId, const QXmppResultSetReply &resultSetReply, bool complete)
 This signal is emitted when all results for a request have been received.
 
- Signals inherited from QXmppLoggable
void setGauge (const QString &gauge, double value)
 Sets the given gauge to value.
 
void logMessage (QXmppLogger::MessageType type, const QString &msg)
 This signal is emitted to send logging messages.
 
void updateCounter (const QString &counter, qint64 amount=1)
 Updates the given counter by amount.
 

Public Member Functions

QString retrieveArchivedMessages (const QString &to=QString(), const QString &node=QString(), const QString &jid=QString(), const QDateTime &start=QDateTime(), const QDateTime &end=QDateTime(), const QXmppResultSetQuery &resultSetQuery=QXmppResultSetQuery())
 
- Public Member Functions inherited from QXmppClientExtension
 QXmppClientExtension ()
 
virtual ~QXmppClientExtension ()
 
virtual QStringList discoveryFeatures () const
 
virtual QList< QXmppDiscoveryIq::Identity > discoveryIdentities () const
 
virtual bool handleStanza (const QDomElement &stanza)=0
 You need to implement this method to process incoming XMPP stanzas. More...
 
- Public Member Functions inherited from QXmppLoggable
 QXmppLoggable (QObject *parent=0)
 

Additional Inherited Members

- Protected Member Functions inherited from QXmppClientExtension
QXmppClientclient ()
 
virtual void setClient (QXmppClient *client)
 
- Protected Member Functions inherited from QXmppLoggable
void debug (const QString &message)
 
void info (const QString &message)
 
void warning (const QString &message)
 
void logReceived (const QString &message)
 
void logSent (const QString &message)
 

Detailed Description

The QXmppMamManager class makes it possible to access message archives as defined by XEP-0313: Message Archive Management.

To make use of this manager, you need to instantiate it and load it into the QXmppClient instance as follows:

Member Function Documentation

◆ retrieveArchivedMessages()

QString QXmppMamManager::retrieveArchivedMessages ( const QString &  to = QString(),
const QString &  node = QString(),
const QString &  jid = QString(),
const QDateTime &  start = QDateTime(),
const QDateTime &  end = QDateTime(),
const QXmppResultSetQuery resultSetQuery = QXmppResultSetQuery() 
)

Retrieves archived messages. For each received message, the archiveMessageReceived() signal is emitted. Once all messages are received, the resultsRecieved() signal is emitted. It returns a result set that can be used to page through the results. The number of results may be limited by the server.

Parameters
toOptional entity that should be queried. Leave this empty to query the local archive.
nodeOptional node that should be queried. This is used when querying a pubsub node.
jidOptional JID to filter the results.
startOptional start time to filter the results.
endOptional end time to filter the results.
resultSetQueryOptional Result Set Management query. This can be used to limit the number of results and to page through the archive.
Returns
query id of the request. This can be used to associate the corresponding resultsRecieved signal.

The documentation for this class was generated from the following files:
QXmppClientExtension::client
QXmppClient * client()
Definition: QXmppClientExtension.cpp:70
QXmppClient::addExtension
bool addExtension(QXmppClientExtension *extension)
Definition: QXmppClient.cpp:180
QXmppMamManager
The QXmppMamManager class makes it possible to access message archives as defined by XEP-0313: Messag...
Definition: QXmppMamManager.h:47