X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorebacklogmanager.h;h=f31486818488c86ec4a4faf185b1a272b3de366a;hp=1ed64b605d49bcb88633453c0c4dc267f25a335a;hb=b9169a652a6854b3fa85aee8f833cb9e18a8d510;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c diff --git a/src/core/corebacklogmanager.h b/src/core/corebacklogmanager.h index 1ed64b60..f3148681 100644 --- a/src/core/corebacklogmanager.h +++ b/src/core/corebacklogmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2018 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 COREBACKLOGMANAGER_H @@ -25,20 +25,27 @@ class CoreSession; -class CoreBacklogManager : public BacklogManager { - Q_OBJECT +class CoreBacklogManager : public BacklogManager +{ + SYNCABLE_OBJECT + Q_OBJECT public: - CoreBacklogManager(CoreSession *coreSession = 0); + CoreBacklogManager(CoreSession *coreSession = 0); - CoreSession *coreSession() { return _coreSession; } + CoreSession *coreSession() { return _coreSession; } public slots: - virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0); - virtual QVariantList requestBacklogAll(MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0); + virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0); + QVariantList requestBacklogFiltered(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, + int additional = 0, int type = -1, int flags = -1) override; + virtual QVariantList requestBacklogAll(MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0); + QVariantList requestBacklogAllFiltered(MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0, + int type = -1, int flags = -1) override; private: - CoreSession *_coreSession; + CoreSession *_coreSession; }; + #endif // COREBACKLOGMANAGER_H