aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppArchiveIq.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-09-29 09:12:47 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-09-29 09:12:47 +0000
commitbe06c3bcb0748ee719ca6e50dd768b5685c541ca (patch)
tree2c232af8b2e22d578ecc03955433302fde150539 /src/QXmppArchiveIq.h
parentf1c671f6f6ef0ecf0b96dab21f03d423037fb636 (diff)
downloadqxmpp-be06c3bcb0748ee719ca6e50dd768b5685c541ca.tar.gz
Improve XEP-0136 support to enable archive deletion.
Diffstat (limited to 'src/QXmppArchiveIq.h')
-rw-r--r--src/QXmppArchiveIq.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/QXmppArchiveIq.h b/src/QXmppArchiveIq.h
index 426beca3..c0784891 100644
--- a/src/QXmppArchiveIq.h
+++ b/src/QXmppArchiveIq.h
@@ -162,6 +162,38 @@ private:
QList<QXmppArchiveChat> m_chats;
};
+/// \brief Represents an archive remove IQ as defined by XEP-0136: Message Archiving.
+///
+/// \ingroup Stanzas
+
+class QXmppArchiveRemoveIq : public QXmppIq
+{
+public:
+ QString with() const;
+ void setWith( const QString &with );
+
+ QDateTime start() const;
+ void setStart(const QDateTime &start );
+
+ QDateTime end() const;
+ void setEnd(const QDateTime &end );
+
+ /// \cond
+ static bool isArchiveRemoveIq(const QDomElement &element);
+ /// \endcond
+
+protected:
+ /// \cond
+ void parseElementFromChild(const QDomElement &element);
+ void toXmlElementFromChild(QXmlStreamWriter *writer) const;
+ /// \endcond
+
+private:
+ QString m_with;
+ QDateTime m_start;
+ QDateTime m_end;
+};
+
/// \brief Represents an archive retrieve IQ as defined by XEP-0136: Message Archiving.
///
/// \ingroup Stanzas