diff options
Diffstat (limited to 'examples/example_7_archiveHandling/xmppClient.h')
| -rw-r--r-- | examples/example_7_archiveHandling/xmppClient.h | 20 |
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 |
