5#ifndef QXMPPARCHIVEIQ_H
6#define QXMPPARCHIVEIQ_H
9#include "QXmppResultSet.h"
22 void setBody(
const QString &body);
24 QDateTime date()
const;
25 void setDate(
const QDateTime &date);
27 bool isReceived()
const;
28 void setReceived(
bool isReceived);
44 QList<QXmppArchiveMessage> messages()
const;
45 void setMessages(
const QList<QXmppArchiveMessage> &messages);
47 QDateTime start()
const;
48 void setStart(
const QDateTime &start);
50 QString subject()
const;
51 void setSubject(
const QString &subject);
53 QString thread()
const;
54 void setThread(
const QString &thread);
57 void setVersion(
int version);
60 void setWith(
const QString &with);
63 void parse(
const QDomElement &element);
68 QList<QXmppArchiveMessage> m_messages;
92 static bool isArchiveChatIq(
const QDomElement &element);
95 void parseElementFromChild(
const QDomElement &element)
override;
96 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
113 QList<QXmppArchiveChat> chats()
const;
114 void setChats(
const QList<QXmppArchiveChat> &chats);
116 QString with()
const;
117 void setWith(
const QString &with);
119 QDateTime start()
const;
120 void setStart(
const QDateTime &start);
122 QDateTime end()
const;
123 void setEnd(
const QDateTime &end);
132 static bool isArchiveListIq(
const QDomElement &element);
137 void parseElementFromChild(
const QDomElement &element)
override;
138 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
145 QList<QXmppArchiveChat> m_chats;
157 QString with()
const;
158 void setWith(
const QString &with);
160 QDateTime start()
const;
161 void setStart(
const QDateTime &start);
163 QDateTime end()
const;
164 void setEnd(
const QDateTime &end);
167 static bool isArchiveRemoveIq(
const QDomElement &element);
170 void parseElementFromChild(
const QDomElement &element)
override;
171 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
189 QDateTime start()
const;
190 void setStart(
const QDateTime &start);
192 QString with()
const;
193 void setWith(
const QString &with);
199 static bool isArchiveRetrieveIq(
const QDomElement &element);
202 void parseElementFromChild(
const QDomElement &element)
override;
203 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
220 static bool isArchivePrefIq(
const QDomElement &element);
223 void parseElementFromChild(
const QDomElement &element)
override;
224 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
Represents an archive chat as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:83
The QXmppArchiveChat class represents an archived conversation as defined by XEP-0136: Message Archiv...
Definition: QXmppArchiveIq.h:40
Represents an archive list as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:109
The QXmppArchiveMessage class represents an archived message as defined by XEP-0136: Message Archivin...
Definition: QXmppArchiveIq.h:17
Represents an archive preference IQ as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:217
Represents an archive remove IQ as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:155
Represents an archive retrieve IQ as defined by XEP-0136: Message Archiving.
Definition: QXmppArchiveIq.h:185
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23
The QXmppResultSetQuery class represents a set element in a query as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:16
The QXmppResultSetReply class represents a set element in a reply as defined by XEP-0059: Result Set ...
Definition: QXmppResultSet.h:50