X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorebuffersyncer.h;h=f567735a23088eef08be51679b321e0d448a4f30;hp=0c3a8c04cdd070f818256f8149834cfb534b1e4c;hb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc;hpb=3c2914faeb01f3bc32e29f40179ae88040fbcf59 diff --git a/src/core/corebuffersyncer.h b/src/core/corebuffersyncer.h index 0c3a8c04..f567735a 100644 --- a/src/core/corebuffersyncer.h +++ b/src/core/corebuffersyncer.h @@ -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 dirtyBuffers; + + void purgeBufferIds(); }; #endif //COREBUFFERSYNCER_H