X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorebacklogmanager.h;h=356660bd97075209a9b8515a1aa239c250ffe31b;hp=260f99f85bbe8a416dddb9cf8e8fde5d3aaee2e7;hb=6eefdfc697067d184a589fc8a231b16316c09106;hpb=26b9300ccab24e526a9f43bef95a2a70f59161df diff --git a/src/core/corebacklogmanager.h b/src/core/corebacklogmanager.h index 260f99f8..356660bd 100644 --- a/src/core/corebacklogmanager.h +++ b/src/core/corebacklogmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * 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,31 +15,32 @@ * 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 { - Q_OBJECT +class CoreBacklogManager : public BacklogManager +{ + Q_OBJECT public: - CoreBacklogManager(CoreSession *coreSession = 0); + CoreBacklogManager(CoreSession *coreSession = nullptr); - inline virtual const QMetaObject *syncMetaObject() const { return &BacklogManager::staticMetaObject; } - - CoreSession *coreSession() { return _coreSession; } + CoreSession *coreSession() { return _coreSession; } public slots: - virtual QVariantList requestBacklog(BufferId bufferId, int limit = -1, int offset = -1); + 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