X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=19d6541f3fbb1091c82d718e70d967becdf4e9ab;hb=38090a4af09e05763abf43bf95cd7d4696381a09;hp=2255f56a03d389a2389893beffb4a776153bdf42;hpb=ef1ee865c342a16daab514a99110f56150ea95e7;p=quassel.git diff --git a/src/core/core.h b/src/core/core.h index 2255f56a..19d6541f 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -179,7 +179,7 @@ class Core : public QObject { * \param offset Do not return (but DO count) messages with MsgId >= offset, if offset >= 0 * \return The requested list of messages */ - static QList requestMsgs(BufferInfo buffer, int lastmsgs = -1, int offset = -1); + static QList requestMsgs(UserId user, BufferId buffer, int lastmsgs = -1, int offset = -1); //! Request messages stored in a given buffer since a certain point in time. /** \note This method is threadsafe. @@ -189,7 +189,7 @@ class Core : public QObject { * \param offset Do not return messages with MsgId >= offset, if offset >= 0 * \return The requested list of messages */ - static QList requestMsgs(BufferInfo buffer, QDateTime since, int offset = -1); + static QList requestMsgs(UserId user, BufferId buffer, QDateTime since, int offset = -1); //! Request a range of messages stored in a given buffer. /** \note This method is threadsafe. @@ -199,7 +199,7 @@ class Core : public QObject { * \param last Return messages with first <= MsgId <= last * \return The requested list of messages */ - static QList requestMsgRange(BufferInfo buffer, int first, int last); + static QList requestMsgRange(UserId user, BufferId buffer, int first, int last); //! Request a list of all buffers known to a user since a certain point in time. /** This method is used to get a list of all buffers we have stored a backlog from. @@ -239,17 +239,17 @@ class Core : public QObject { * * \param user The Owner of that Buffer * \param bufferId The buffer id - * \param seenDate Time the Buffer has been visited the last time + * \param MsgId The Message id of the message that has been just seen */ - static void setBufferLastSeen(UserId user, const BufferId &bufferId, const QDateTime &seenDate); + static void setBufferLastSeenMsg(UserId user, const BufferId &bufferId, const MsgId &msgId); - //! Get a Hash of all last seen dates. - /** This Method is called when the Quassel Core is started to restore the lastSeenDates + //! Get a Hash of all last seen message ids + /** This Method is called when the Quassel Core is started to restore the lastSeenMsgIds * \note This method is threadsafe. * * \param user The Owner of the buffers */ - static QHash bufferLastSeenDates(UserId user); + static QHash bufferLastSeenMsgIds(UserId user); public slots: //! Make storage data persistent