/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel IRC Team *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
void reset();
public slots:
- virtual void receiveBacklog(BufferId bufferId, MsgId first, MsgId last, int limit, QVariantList msgs);
+ 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);
+
void requestInitialBacklog();
+ void checkForBacklog(BufferId bufferId);
+ void checkForBacklog(const QList<BufferId> &bufferIds);
+
signals:
void messagesReceived(BufferId bufferId, int count) const;
void messagesRequested(const QString &) const;
void messagesProcessed(const QString &) const;
+ void updateProgress(int, int);
+
private:
bool isBuffering();
void stopBuffering();
void dispatchMessages(const MessageList &messages, bool sort = false);
BacklogRequester *_requester;
+ QSet<BufferId> _backlogReceived;
};
#endif // CLIENTBACKLOGMANAGER_H