X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=cc3803bc398356de369c12cf146629214d3b36cf;hp=e401f463b4866a87e43833fa406b5903cadce86c;hb=f9c4ee168a794add5261a7f1b6abb518f5987f8c;hpb=541013790cdbd0c32d81debf8f42ac6b5183a4aa diff --git a/src/client/client.h b/src/client/client.h index e401f463..cc3803bc 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -127,7 +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 setBufferMarkerLine(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); @@ -171,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(); @@ -178,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(); @@ -193,7 +204,6 @@ private slots: void coreNetworkRemoved(NetworkId); void requestInitialBacklog(); - void createDefaultBufferView(); void sendBufferedUserInput();