added core and client handlers for buffer removal
[quassel.git] / src / core / coresession.h
index 51c14a7..545bf9c 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "message.h"
 
+class BufferSyncer;
 class Identity;
 class NetworkConnection;
 class Network;
@@ -100,6 +101,12 @@ public slots:
    */
   void removeNetwork(NetworkId network);
 
+  //! Remove a buffer and it's backlog permanently
+  /** \param bufferId The id of the buffer to be removed.
+   *  emits bufferRemoved(bufferId) on success.
+   */
+  void removeBufferRequested(BufferId bufferId);
+    
 signals:
   void initialized();
 
@@ -130,6 +137,7 @@ signals:
 
   void networkCreated(NetworkId);
   void networkRemoved(NetworkId);
+  void bufferRemoved(BufferId);
 
 private slots:
   void recvStatusMsgFromServer(QString msg);
@@ -146,6 +154,8 @@ private slots:
    */
   void updateBufferInfo(UserId user, const BufferInfo &bufferInfo);
 
+  void storeBufferLastSeen(BufferId buffer, const QDateTime &lastSeen);
+
   void scriptRequest(QString script);
 
 private:
@@ -160,6 +170,8 @@ private:
   QHash<NetworkId, Network *> _networksToRemove;
   QHash<IdentityId, Identity *> _identities;
 
+  BufferSyncer *_bufferSyncer;
+
   QScriptEngine *scriptEngine;
 
 };