Properly flushing buffers after all backlog was received.
[quassel.git] / src / client / backlogrequester.h
index c7c3afe..e813c6c 100644 (file)
@@ -48,12 +48,14 @@ public:
 
   inline int buffersWaiting() const { return _buffersWaiting.count(); }
   inline int totalBuffers() const { return _totalBuffers; }
-  //! returns false if it was the last missing backlogpart
-  bool buffer(BufferId bufferId, const MessageList &messages);
-  
+
+  bool buffer(BufferId bufferId, const MessageList &messages); //! returns false if it was the last missing backlogpart
+
   virtual void requestBacklog(const BufferIdList &bufferIds) = 0;
   virtual inline void requestInitialBacklog() { requestBacklog(allBufferIds()); }
 
+  virtual void flushBuffer();
+
 protected:
   BufferIdList allBufferIds() const;
   inline void setWaitingBuffers(const QList<BufferId> &buffers) { setWaitingBuffers(buffers.toSet()); }