/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2019 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
Q_OBJECT
public:
- ClientBacklogManager(QObject *parent = nullptr);
+ 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); }
+ inline void emitMessagesRequested(const QString& msg) const { emit messagesRequested(msg); }
void reset();
void requestInitialBacklog();
void checkForBacklog(BufferId bufferId);
- void checkForBacklog(const BufferIdList &bufferIds);
+ void checkForBacklog(const BufferIdList& bufferIds);
signals:
void messagesReceived(BufferId bufferId, int count) const;
- void messagesRequested(const QString &) const;
- void messagesProcessed(const QString &) const;
+ void messagesRequested(const QString&) const;
+ void messagesProcessed(const QString&) const;
void updateProgress(int, int);
private:
bool isBuffering();
- BufferIdList filterNewBufferIds(const BufferIdList &bufferIds);
+ BufferIdList filterNewBufferIds(const BufferIdList& bufferIds);
- void dispatchMessages(const MessageList &messages, bool sort = false);
+ void dispatchMessages(const MessageList& messages, bool sort = false);
- BacklogRequester *_requester;
- bool _initBacklogRequested;
+ BacklogRequester* _requester{nullptr};
+ bool _initBacklogRequested{false};
QSet<BufferId> _buffersRequested;
};
-
// inlines
inline void ClientBacklogManager::checkForBacklog(BufferId bufferId)
{