X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;h=1561673183b46e984bc7bdaf280a280a8a10fd9b;hp=b8f5c23211c1641af959461d1d6ab861357e3b56;hb=5ff4265bbd3a682a6d6542480760eaf4a2b85d77;hpb=b040ef84cdc254a0b1f083db3151f2724e45d210 diff --git a/src/core/storage.h b/src/core/storage.h index b8f5c232..15616731 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -349,6 +349,24 @@ public slots: */ virtual QHash bufferLastSeenMsgIds(UserId user) = 0; + //! Update the MarkerLineMsgId for a Buffer + /** This Method is used to make the marker line position of a Buffer persistent + * \note This method is threadsafe. + * + * \param user The Owner of that Buffer + * \param bufferId The buffer id + * \param MsgId The Message id where the marker line should be placed + */ + virtual void setBufferMarkerLineMsg(UserId user, const BufferId &bufferId, const MsgId &msgId) = 0; + + //! Get a Hash of all marker line message ids + /** This Method is called when the Quassel Core is started to restore the MarkerLineMsgIds + * \note This method is threadsafe. + * + * \param user The Owner of the buffers + */ + virtual QHash bufferMarkerLineMsgIds(UserId user) = 0; + /* Message handling */