/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2018 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 CLIENTBACKLOGMANAGER_H
-#define CLIENTBACKLOGMANAGER_H
+#pragma once
+
+#include "client-export.h"
#include "backlogmanager.h"
#include "message.h"
class BacklogRequester;
-class ClientBacklogManager : public BacklogManager
+class CLIENT_EXPORT ClientBacklogManager : public BacklogManager
{
- SYNCABLE_OBJECT
- Q_OBJECT
+ Q_OBJECT
public:
- ClientBacklogManager(QObject *parent = 0);
+ ClientBacklogManager(QObject *parent = nullptr);
// helper for the backlogRequester, as it isn't a QObject and can't emit itself
inline void emitMessagesRequested(const QString &msg) const { emit messagesRequested(msg); }
void reset();
public slots:
- virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0);
- virtual void receiveBacklog(BufferId bufferId, MsgId first, MsgId last, int limit, int additional, QVariantList msgs);
- virtual void receiveBacklogAll(MsgId first, MsgId last, int limit, int additional, QVariantList msgs);
+ QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0) override;
+ void receiveBacklog(BufferId bufferId, MsgId first, MsgId last, int limit, int additional, QVariantList msgs) override;
+ void receiveBacklogAll(MsgId first, MsgId last, int limit, int additional, QVariantList msgs) override;
void requestInitialBacklog();
{
checkForBacklog(BufferIdList() << bufferId);
}
-
-
-#endif // CLIENTBACKLOGMANAGER_H