emit disconnected();
emit coreConnectionStateChanged(false);
+ backlogManager()->reset();
messageProcessor()->reset();
// Clear internal data. Hopefully nothing relies on it at this point.
FixedBacklogRequester backlogRequester(this);
backlogRequester.requestBacklog();
}
+
+void ClientBacklogManager::reset() {
+ _buffer = true;
+ _messageBuffer.clear();
+ _buffersWaiting.clear();
+}
virtual QVariantList requestBacklog(BufferId bufferId, int lastMsgs = -1, int offset = -1);
void requestInitialBacklog();
+ void reset();
+
private:
bool _buffer;
QList<Message> _messageBuffer;