aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-10 06:15:03 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-10 06:15:03 +0000
commit759d8e415e541b0aac7a2ef7df909a770f58e851 (patch)
tree9866d0b73a7ef083674d58be650abf4453806f89 /source
parent4befe1e8d17981a3ec8805fabd0512f5f0007bbc (diff)
downloadqxmpp-759d8e415e541b0aac7a2ef7df909a770f58e851.tar.gz
add code documentation for QXmppArchiveManager
Diffstat (limited to 'source')
-rw-r--r--source/QXmppArchiveManager.cpp17
-rw-r--r--source/QXmppArchiveManager.h1
2 files changed, 17 insertions, 1 deletions
diff --git a/source/QXmppArchiveManager.cpp b/source/QXmppArchiveManager.cpp
index d15af80a..e89357b9 100644
--- a/source/QXmppArchiveManager.cpp
+++ b/source/QXmppArchiveManager.cpp
@@ -59,6 +59,14 @@ void QXmppArchiveManager::archivePrefIqReceived(const QXmppArchivePrefIq &prefIq
Q_UNUSED(prefIq);
}
+/// Retrieves the list of available collections. Once the results are
+/// received, the archiveChatReceived() signal will be emitted.
+///
+/// \param jid Optional JID if you only want conversations with a specific JID.
+/// \param start Optional start time.
+/// \param end Optional end time.
+/// \param max Optional maximum.
+///
void QXmppArchiveManager::listCollections(const QString &jid, const QDateTime &start, const QDateTime &end, int max)
{
QXmppArchiveListIq packet;
@@ -69,6 +77,13 @@ void QXmppArchiveManager::listCollections(const QString &jid, const QDateTime &s
m_stream->sendPacket(packet);
}
+/// Retrieves the specified collection. Once the results are received,
+/// the archiveChatReceived() will be emitted.
+///
+/// \param jid The JID of the collection
+/// \param start The start time of the collection.
+/// \param max Optional maximum number of messages to retrieve.
+///
void QXmppArchiveManager::retrieveCollection(const QString &jid, const QDateTime &start, int max)
{
QXmppArchiveRetrieveIq packet;
@@ -78,8 +93,10 @@ void QXmppArchiveManager::retrieveCollection(const QString &jid, const QDateTime
m_stream->sendPacket(packet);
}
+#if 0
void QXmppArchiveManager::getPreferences()
{
QXmppArchivePrefIq packet;
m_stream->sendPacket(packet);
}
+#endif
diff --git a/source/QXmppArchiveManager.h b/source/QXmppArchiveManager.h
index 0acbf83a..dda13d0f 100644
--- a/source/QXmppArchiveManager.h
+++ b/source/QXmppArchiveManager.h
@@ -46,7 +46,6 @@ public:
QXmppArchiveManager(QXmppStream* stream, QObject *parent = 0);
void listCollections(const QString &jid, const QDateTime &start = QDateTime(), const QDateTime &end = QDateTime(), int max = 0);
void retrieveCollection(const QString &jid, const QDateTime &start, int max = 0);
- void getPreferences();
signals:
void archiveListReceived(const QList<QXmppArchiveChat>&);