+
+ if (isBuffering()) {
+ bool lastPart = !_requester->buffer(bufferId, msglist);
+ updateProgress(_requester->totalBuffers() - _requester->buffersWaiting(), _requester->totalBuffers());
+ if (lastPart) {
+ dispatchMessages(_requester->bufferedMessages(), true);
+ _requester->flushBuffer();
+ }
+ }
+ else {
+ dispatchMessages(msglist);
+ }
+}
+
+
+void ClientBacklogManager::receiveBacklogAll(MsgId first, MsgId last, int limit, int additional, QVariantList msgs)
+{
+ Q_UNUSED(first) Q_UNUSED(last) Q_UNUSED(limit) Q_UNUSED(additional)
+
+ MessageList msglist;
+ foreach(QVariant v, msgs) {
+ Message msg = v.value<Message>();
+ msg.setFlags(msg.flags() | Message::Backlog);
+ msglist << msg;
+ }
+