Fitting the SyncableObjects to the new Style
[quassel.git] / src / core / corebuffersyncer.h
index 0c3a8c0..f567735 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -26,6 +26,7 @@
 class CoreSession;
 
 class CoreBufferSyncer : public BufferSyncer {
+  SYNCABLE_OBJECT
   Q_OBJECT
 
 public:
@@ -43,12 +44,20 @@ public slots:
   virtual inline void requestMergeBuffersPermanently(BufferId buffer1, BufferId buffer2) { mergeBuffersPermanently(buffer1, buffer2); }
   virtual void mergeBuffersPermanently(BufferId buffer1, BufferId buffer2);
 
+  virtual void requestPurgeBufferIds();
+
   void storeDirtyIds();
 
+protected:
+  virtual void customEvent(QEvent *event);
+
 private:
   CoreSession *_coreSession;
+  bool _purgeBuffers;
 
   QSet<BufferId> dirtyBuffers;
+
+  void purgeBufferIds();
 };
 
 #endif //COREBUFFERSYNCER_H