5#ifndef QXMPPARCHIVEIQ_H
6#define QXMPPARCHIVEIQ_H
9#include "QXmppResultSet.h"
16class QXMPP_EXPORT QXmppArchiveMessage
19 QXmppArchiveMessage();
24 QDateTime
date()
const;
39class QXMPP_EXPORT QXmppArchiveChat
44 QList<QXmppArchiveMessage>
messages()
const;
47 QDateTime
start()
const;
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;
116 QString
with()
const;
119 QDateTime
start()
const;
122 QDateTime
end()
const;
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;
160 QDateTime
start()
const;
163 QDateTime
end()
const;
167 static bool isArchiveRemoveIq(
const QDomElement &element);
170 void parseElementFromChild(
const QDomElement &element)
override;
171 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
184class QXMPP_EXPORT QXmppArchiveRetrieveIq :
public QXmppIq
187 QXmppArchiveRetrieveIq();
189 QDateTime
start()
const;
192 QString
with()
const;
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
QXmppResultSetReply resultSetReply() const
Definition QXmppArchiveIq.cpp:205
void setResultSetReply(const QXmppResultSetReply &rsm)
Definition QXmppArchiveIq.cpp:215
QXmppArchiveChat chat() const
Returns the chat conversation carried by this IQ.
Definition QXmppArchiveIq.cpp:189
void setChat(const QXmppArchiveChat &chat)
Sets the chat conversation carried by this IQ.
Definition QXmppArchiveIq.cpp:195
The QXmppArchiveChat class represents an archived conversation as defined by XEP-0136: Message Archiv...
Definition QXmppArchiveIq.h:40
void setVersion(int version)
Sets the conversation's version.
Definition QXmppArchiveIq.cpp:171
int version() const
Returns the conversation's version.
Definition QXmppArchiveIq.cpp:165
QString subject() const
Returns the conversation's subject.
Definition QXmppArchiveIq.cpp:141
QString thread() const
Returns the conversation's thread.
Definition QXmppArchiveIq.cpp:153
void setThread(const QString &thread)
Sets the conversation's thread.
Definition QXmppArchiveIq.cpp:159
void setStart(const QDateTime &start)
Sets the start of this conversation.
Definition QXmppArchiveIq.cpp:135
QList< QXmppArchiveMessage > messages() const
Returns the conversation's messages.
Definition QXmppArchiveIq.cpp:117
QDateTime start() const
Returns the start of this conversation.
Definition QXmppArchiveIq.cpp:129
void setWith(const QString &with)
Sets the JID of the remote party.
Definition QXmppArchiveIq.cpp:183
QString with() const
Returns the JID of the remote party.
Definition QXmppArchiveIq.cpp:177
void setSubject(const QString &subject)
Sets the conversation's subject.
Definition QXmppArchiveIq.cpp:147
void setMessages(const QList< QXmppArchiveMessage > &messages)
Sets the conversation's messages.
Definition QXmppArchiveIq.cpp:123
QDateTime end() const
Returns the end date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:283
void setResultSetReply(const QXmppResultSetReply &rsm)
Definition QXmppArchiveIq.cpp:329
QDateTime start() const
Returns the start date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:271
QXmppResultSetQuery resultSetQuery() const
Definition QXmppArchiveIq.cpp:299
QList< QXmppArchiveChat > chats() const
Returns the list of chat conversations.
Definition QXmppArchiveIq.cpp:247
void setStart(const QDateTime &start)
Sets the start date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:277
QXmppResultSetReply resultSetReply() const
Definition QXmppArchiveIq.cpp:319
void setResultSetQuery(const QXmppResultSetQuery &rsm)
Definition QXmppArchiveIq.cpp:309
QXmppArchiveListIq()
Constructs a QXmppArchiveListIq.
Definition QXmppArchiveIq.cpp:241
QString with() const
Returns the JID which archived conversations must match.
Definition QXmppArchiveIq.cpp:259
void setChats(const QList< QXmppArchiveChat > &chats)
Sets the list of chat conversations.
Definition QXmppArchiveIq.cpp:253
void setEnd(const QDateTime &end)
Sets the end date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:289
void setWith(const QString &with)
Sets the JID which archived conversations must match.
Definition QXmppArchiveIq.cpp:265
bool isReceived() const
Returns true if the archived message was received, false if it was sent.
Definition QXmppArchiveIq.cpp:47
void setBody(const QString &body)
Sets the archived message's body.
Definition QXmppArchiveIq.cpp:29
QString body() const
Returns the archived message's body.
Definition QXmppArchiveIq.cpp:23
void setDate(const QDateTime &date)
Sets the archived message's date.
Definition QXmppArchiveIq.cpp:41
void setReceived(bool isReceived)
Set to true if the archived message was received, false if it was sent.
Definition QXmppArchiveIq.cpp:53
QDateTime date() const
Returns the archived message's date.
Definition QXmppArchiveIq.cpp:35
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
QString with() const
Returns the JID which archived conversations must match.
Definition QXmppArchiveIq.cpp:401
QDateTime start() const
Returns the start date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:413
void setEnd(const QDateTime &end)
Sets the end date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:431
QDateTime end() const
Returns the end date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:425
void setWith(const QString &with)
Sets the JID which archived conversations must match.
Definition QXmppArchiveIq.cpp:407
void setStart(const QDateTime &start)
Sets the start date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:419
void setWith(const QString &with)
Sets the JID which archived conversations must match.
Definition QXmppArchiveIq.cpp:491
QString with() const
Returns the JID which archived conversations must match.
Definition QXmppArchiveIq.cpp:485
QDateTime start() const
Returns the start date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:473
void setStart(const QDateTime &start)
Sets the start date/time for the archived conversations.
Definition QXmppArchiveIq.cpp:479
QXmppResultSetQuery resultSetQuery() const
Definition QXmppArchiveIq.cpp:501
void setResultSetQuery(const QXmppResultSetQuery &rsm)
Definition QXmppArchiveIq.cpp:511
QXmppIq(QXmppIq::Type type=QXmppIq::Get)
Definition QXmppIq.cpp:34
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