X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=083bf8cf051e296ee5e124bdc7bee2939446a5ab;hp=e991da30eac60ef4916d304d79a3b2cc73019de9;hb=335e1e55ee8df69b37b1b4d839950ced9ac08cc4;hpb=de1619ce11bf386490cdb38bc1be134a391eeaae diff --git a/src/core/core.h b/src/core/core.h index e991da30..083bf8cf 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -232,13 +232,14 @@ class Core : public QObject { return instance()->storage->requestMsgs(user, bufferId, first, last, limit); } - //! Request all unread messages for all buffers - /** \param first Return messages with MsgId >= first + //! Request a certain number of messages across all buffers + /** \param first if != -1 return only messages with a MsgId >= first + * \param last if != -1 return only messages with a MsgId < last * \param limit Max amount of messages * \return The requested list of messages */ - static inline QList requestAllNewMsgs(UserId user, int first, int limit = -1) { - return instance()->storage->requestAllNewMsgs(user, first, limit); + static inline QList requestAllMsgs(UserId user, MsgId first = -1, MsgId last = -1, int limit = -1) { + return instance()->storage->requestAllMsgs(user, first, last, limit); } //! Request a list of all buffers known to a user.