X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorebacklogmanager.h;h=7f25df3edd31085149143ce3d4a5d699aef91920;hb=145a52eb79fed146731f85c23b60f0609e40e785;hp=9d1a8128206b17a73f6a13f8d115669883a4ac53;hpb=f6b9eeda207d42c99fc3e9085631722cf2ec83dc;p=quassel.git diff --git a/src/core/corebacklogmanager.h b/src/core/corebacklogmanager.h index 9d1a8128..7f25df3e 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-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,31 +15,34 @@ * 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 -#define COREBACKLOGMANAGER_H +#pragma once #include "backlogmanager.h" class CoreSession; -class CoreBacklogManager : public BacklogManager { - SYNCABLE_OBJECT - Q_OBJECT +class CoreBacklogManager : public BacklogManager +{ + Q_OBJECT public: - CoreBacklogManager(CoreSession *coreSession = 0); + CoreBacklogManager(CoreSession* coreSession = nullptr); - 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); + QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0) override; + QVariantList requestBacklogFiltered( + BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0, int type = -1, int flags = -1) override; + QVariantList requestBacklogForward( + BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int type = -1, int flags = -1) override; + QVariantList requestBacklogAll(MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0) override; + 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