X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorebacklogmanager.h;h=195190e2f473d858ce0e14d160a8579ff68fa41b;hp=85378f3be69a0059a7b882ddfae88f887e52077f;hb=b134e777b822b929a78455fd92146bf7443e9aa1;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce diff --git a/src/core/corebacklogmanager.h b/src/core/corebacklogmanager.h index 85378f3b..195190e2 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,11 +15,10 @@ * 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" @@ -27,21 +26,21 @@ class CoreSession; class CoreBacklogManager : public BacklogManager { - SYNCABLE_OBJECT - Q_OBJECT + 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 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