/***************************************************************************
- * Copyright (C) 2005-2016 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 *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef COREBACKLOGMANAGER_H
-#define COREBACKLOGMANAGER_H
+#pragma once
#include "backlogmanager.h"
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 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