X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbacklogmanager.h;h=95c87a041ff3fc75a869c100c2317fd2009ad21b;hp=de42741c7261dc95c10a91d067fa81a45bef3722;hb=2a00e8f57d66d9913a10c30408b89676a74010a1;hpb=de1619ce11bf386490cdb38bc1be134a391eeaae diff --git a/src/common/backlogmanager.h b/src/common/backlogmanager.h index de42741c..95c87a04 100644 --- a/src/common/backlogmanager.h +++ b/src/common/backlogmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * 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 * @@ -25,6 +25,7 @@ #include "types.h" class BacklogManager : public SyncableObject { + SYNCABLE_OBJECT Q_OBJECT public: @@ -32,12 +33,15 @@ public: inline virtual const QMetaObject *syncMetaObject() const { return &staticMetaObject; } public slots: - virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1); - inline virtual void receiveBacklog(BufferId, MsgId, MsgId, int, QVariantList) {}; + virtual QVariantList requestBacklog(BufferId bufferId, MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0); + inline virtual void receiveBacklog(BufferId, MsgId, MsgId, int, int, QVariantList) {}; -signals: - void backlogRequested(BufferId, MsgId, MsgId, int); + virtual QVariantList requestBacklogAll(MsgId first = -1, MsgId last = -1, int limit = -1, int additional = 0); + inline virtual void receiveBacklogAll(MsgId, MsgId, int, int, QVariantList) {}; +signals: + void backlogRequested(BufferId, MsgId, MsgId, int, int); + void backlogAllRequested(MsgId, MsgId, int, int); }; #endif // BACKLOGMANAGER_H