aboutsummaryrefslogtreecommitdiff
path: root/example/example_7_archiveHandling/xmppClient.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 10:09:12 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 10:09:12 +0000
commitcc1f2420a04a190b350f455e29224b354a19e118 (patch)
tree5331909f4bea65aca806a1ff01ebf389e99a2419 /example/example_7_archiveHandling/xmppClient.cpp
parentec09e22b712cc1daf0428bfca75372469de7dbea (diff)
downloadqxmpp-cc1f2420a04a190b350f455e29224b354a19e118.tar.gz
cleanup archive handling API
Diffstat (limited to 'example/example_7_archiveHandling/xmppClient.cpp')
-rw-r--r--example/example_7_archiveHandling/xmppClient.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/example_7_archiveHandling/xmppClient.cpp b/example/example_7_archiveHandling/xmppClient.cpp
index 1ddc44ba..c2b3c0f2 100644
--- a/example/example_7_archiveHandling/xmppClient.cpp
+++ b/example/example_7_archiveHandling/xmppClient.cpp
@@ -62,15 +62,15 @@ void xmppClient::archiveListReceived(const QList<QXmppArchiveChat> &chats)
{
std::cout << "example_7_archiveHandling:: LIST RECEIVED" << std::endl;
foreach (const QXmppArchiveChat &chat, chats)
- getArchiveManager().retrieveCollection(chat.with, chat.start);
+ getArchiveManager().retrieveCollection(chat.with(), chat.start());
}
void xmppClient::archiveChatReceived(const QXmppArchiveChat &chat)
{
std::cout << "example_7_archiveHandling:: CHAT RECEIVED" << std::endl;
- foreach (const QXmppArchiveMessage &msg, chat.messages)
+ foreach (const QXmppArchiveMessage &msg, chat.messages())
{
- std::cout << "example_7_archiveHandling::" << msg.body.toStdString() << std::endl;
+ std::cout << "example_7_archiveHandling::" << msg.body().toStdString() << std::endl;
}
}