From 2f255d6f898fba9a0f550982c61dfa045ca8f40c Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 23 Aug 2010 09:08:25 +0000 Subject: improve archive IQ code documentation --- src/QXmppArchiveIq.cpp | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'src/QXmppArchiveIq.cpp') diff --git a/src/QXmppArchiveIq.cpp b/src/QXmppArchiveIq.cpp index d2bd238e..8aaf8410 100644 --- a/src/QXmppArchiveIq.cpp +++ b/src/QXmppArchiveIq.cpp @@ -139,41 +139,69 @@ QList QXmppArchiveListIq::chats() const return m_chats; } +/// Returns the maximum number of results. +/// + int QXmppArchiveListIq::max() const { return m_max; } +/// Sets the maximum number of results. +/// +/// \param max + void QXmppArchiveListIq::setMax(int max) { m_max = max; } +/// Returns the JID which archived conversations must match. +/// + QString QXmppArchiveListIq::with() const { return m_with; } +/// Sets the JID which archived conversations must match. +/// +/// \param with + void QXmppArchiveListIq::setWith(const QString &with) { m_with = with; } +/// Returns the start date/time for the archived conversations. +/// + QDateTime QXmppArchiveListIq::start() const { return m_start; } +/// Sets the start date/time for the archived conversations. +/// +/// \param start + void QXmppArchiveListIq::setStart(const QDateTime &start) { m_start = start; } +/// Returns the end date/time for the archived conversations. +/// + QDateTime QXmppArchiveListIq::end() const { return m_end; } +/// Sets the end date/time for the archived conversations. +/// +/// \param end + void QXmppArchiveListIq::setEnd(const QDateTime &end) { m_end = end; @@ -255,31 +283,52 @@ QXmppArchiveRetrieveIq::QXmppArchiveRetrieveIq() { } +/// Returns the maximum number of results. +/// + int QXmppArchiveRetrieveIq::max() const { return m_max; } +/// Sets the maximum number of results. +/// +/// \param max + void QXmppArchiveRetrieveIq::setMax(int max) { m_max = max; } +/// Returns the start date/time for the archived conversations. +/// + QDateTime QXmppArchiveRetrieveIq::start() const { return m_start; } +/// Sets the start date/time for the archived conversations. +/// +/// \param start + void QXmppArchiveRetrieveIq::setStart(const QDateTime &start) { m_start = start; } +/// Returns the JID which archived conversations must match. +/// + QString QXmppArchiveRetrieveIq::with() const { return m_with; } +/// Sets the JID which archived conversations must match. +/// +/// \param with + void QXmppArchiveRetrieveIq::setWith(const QString &with) { m_with = with; -- cgit v1.2.3