X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorebacklogmanager.h;h=4dd04ec741511ccc14cff6a665bee0f68bb23742;hp=a86f4c0ba78dcd0f6dc2f02da36c81a30aa325a6;hb=HEAD;hpb=6de2be92eff20e0c3d2e4a6350315b23061f675e diff --git a/src/core/corebacklogmanager.h b/src/core/corebacklogmanager.h index a86f4c0b..4dd04ec7 100644 --- a/src/core/corebacklogmanager.h +++ b/src/core/corebacklogmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COREBACKLOGMANAGER_H -#define COREBACKLOGMANAGER_H +#pragma once #include "backlogmanager.h" @@ -27,25 +26,23 @@ 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: 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 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; + 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