X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fbacklogsettings.h;h=76f51adcb20b3d4e93f00df9d778104bd00bdbaf;hb=HEAD;hp=aee0376dd5561f8ce1d6bb9cf4c54eb017d8d3a6;hpb=02966c1d1a668b2382de899008e6fefb42da4bbb;p=quassel.git diff --git a/src/client/backlogsettings.h b/src/client/backlogsettings.h index aee0376d..fb1d2b44 100644 --- a/src/client/backlogsettings.h +++ b/src/client/backlogsettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2020 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -62,4 +62,21 @@ public: void setPerBufferUnreadBacklogLimit(int limit); int perBufferUnreadBacklogAdditional() const; void setPerBufferUnreadBacklogAdditional(int additional); + + /** + * Get the initial amount of backlog fetched across all buffers for legacy cores that do not + * support Quassel::Feature::BufferActivitySync + * + * @seealso Quassel::Feature::BufferActivitySync + * @return The amount of backlog to fetch per buffer + */ + int asNeededLegacyBacklogAmount() const; + /** + * Set the initial amount of backlog fetched across all buffers for legacy cores that do not + * support Quassel::Feature::BufferActivitySync + * + * @seealso BacklogSettings::asNeededLegacyBacklogAmount() + * @param amount The amount of backlog to fetch per buffer + */ + void setAsNeededLegacyBacklogAmount(int amount); };