X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fsqlitestorage.h;h=e42feb4b6cd84998b401aa0ce5ea6b0306eb3501;hb=424eddc71def51d22ec9f19d6a57c06af0d25295;hp=6cfba17a1a88e79cc569d1b5fd0571e5c997c488;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce;p=quassel.git diff --git a/src/core/sqlitestorage.h b/src/core/sqlitestorage.h index 6cfba17a..e42feb4b 100644 --- a/src/core/sqlitestorage.h +++ b/src/core/sqlitestorage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef SQLITESTORAGE_H @@ -96,6 +96,18 @@ public slots: virtual QHash bufferLastSeenMsgIds(UserId user); virtual void setBufferMarkerLineMsg(UserId user, const BufferId &bufferId, const MsgId &msgId); virtual QHash bufferMarkerLineMsgIds(UserId user); + /** + * Sets the last known valid message ID for the given buffer. + * + * This limits LastSeenMsgIds from being set to message IDs in the future, improving performance + * when searching for messages in the backlog. + * + * @see SqliteStorage::setBufferLastSeenMsg() + * + * @param bufferId[in] ID of the Buffer + * @param msgId[in] ID of latest message for this buffer + */ + virtual void setBufferLastMsg(const BufferId &bufferId, const MsgId &msgId); /* Message handling */ virtual bool logMessage(Message &msg);