X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=cc3803bc398356de369c12cf146629214d3b36cf;hb=d5f5ce565bf61a020029f52c16fd3ea4f494d23e;hp=53dc7864a028d72c35df5ee2dc658d39740407a8;hpb=7aa691713f4185fe142f54e14d6b623ee706f77a;p=quassel.git diff --git a/src/client/client.h b/src/client/client.h index 53dc7864..cc3803bc 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -127,6 +127,9 @@ public: static void userInput(const BufferInfo &bufferInfo, const QString &message); static void setBufferLastSeenMsg(BufferId id, const MsgId &msgId); // this is synced to core and other clients + static void setMarkerLine(BufferId id, const MsgId &msgId); // this is synced to core and other clients + static MsgId markerLine(BufferId id); + static void removeBuffer(BufferId id); static void renameBuffer(BufferId bufferId, const QString &newName); static void mergeBuffersPermanently(BufferId bufferId1, BufferId bufferId2); @@ -170,6 +173,13 @@ signals: void logUpdated(const QString &msg); + //! Emitted when a buffer has been marked as read + /** This is currently triggered by setting lastSeenMsg, either local or remote, + * or by bringing the window to front. + * \param id The buffer that has been marked as read + */ + void bufferMarkedAsRead(BufferId id); + public slots: void disconnectFromCore(); @@ -177,6 +187,8 @@ public slots: void bufferRenamed(BufferId bufferId, const QString &newName); void buffersPermanentlyMerged(BufferId bufferId1, BufferId bufferId2); + void markBufferAsRead(BufferId id); + private slots: void setSyncedToCore(); void setDisconnectedFromCore(); @@ -192,7 +204,6 @@ private slots: void coreNetworkRemoved(NetworkId); void requestInitialBacklog(); - void createDefaultBufferView(); void sendBufferedUserInput();