aboutsummaryrefslogtreecommitdiff
path: root/examples/example_7_archiveHandling/xmppClient.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-07-22 12:07:27 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-07-22 12:07:27 +0200
commite44e943c6605ad7dc612ef4622845e37fe585709 (patch)
tree8e48a9ee984d168d0f972721f1e7ed97f390686b /examples/example_7_archiveHandling/xmppClient.h
parent10a3962269971b60a21b50e6615c61d890b4f5f3 (diff)
downloadqxmpp-e44e943c6605ad7dc612ef4622845e37fe585709.tar.gz
archives: demonstrate result set pagination
Diffstat (limited to 'examples/example_7_archiveHandling/xmppClient.h')
-rw-r--r--examples/example_7_archiveHandling/xmppClient.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/examples/example_7_archiveHandling/xmppClient.h b/examples/example_7_archiveHandling/xmppClient.h
index 1c12e2e9..9299c4f8 100644
--- a/examples/example_7_archiveHandling/xmppClient.h
+++ b/examples/example_7_archiveHandling/xmppClient.h
@@ -25,26 +25,42 @@
#ifndef XMPPCLIENT_H
#define XMPPCLIENT_H
+#include <QDateTime>
+
#include "QXmppClient.h"
class QXmppArchiveChat;
class QXmppArchiveManager;
+class QXmppResultSetReply;
class xmppClient : public QXmppClient
{
Q_OBJECT
public:
+ enum PageDirection {
+ PageForwards = 0,
+ PageBackwards
+ };
+
xmppClient(QObject *parent = 0);
~xmppClient();
+ void setPageDirection(PageDirection direction);
+ void setPageSize(int size);
+
public slots:
void clientConnected();
- void archiveListReceived(const QList<QXmppArchiveChat> &chats);
- void archiveChatReceived(const QXmppArchiveChat &chat);
+ void archiveListReceived(const QList<QXmppArchiveChat> &chats, const QXmppResultSetReply &rsmReply);
+ void archiveChatReceived(const QXmppArchiveChat &chat, const QXmppResultSetReply &rsmReply);
private:
QXmppArchiveManager *archiveManager;
+ int m_collectionCount;
+ QDateTime m_startDate;
+ QDateTime m_endDate;
+ PageDirection m_pageDirection;
+ int m_pageSize;
};
#endif // XMPPCLIENT_H