From 7a5272dc29c6efdaa99f97a627e6d9b695ae32f6 Mon Sep 17 00:00:00 2001 From: pkoroau pkoroau Date: Thu, 20 Dec 2012 12:18:57 +0100 Subject: fdo#38837: Timers must end eventually [Writer idle timer] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I36c6c56d7277b9b3853b846c86c1f4dd47ebdb08 Signed-off-by: Luboš Luňák --- sw/inc/IDocumentTimerAccess.hxx | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'sw/inc/IDocumentTimerAccess.hxx') diff --git a/sw/inc/IDocumentTimerAccess.hxx b/sw/inc/IDocumentTimerAccess.hxx index 84e3cd4e1a86..b2229f9a90e3 100644 --- a/sw/inc/IDocumentTimerAccess.hxx +++ b/sw/inc/IDocumentTimerAccess.hxx @@ -20,31 +20,41 @@ #ifndef IDOCUMENTTIMERACCESS_HXX_INCLUDED #define IDOCUMENTTIMERACCESS_HXX_INCLUDED - /** Get information about the current document state + /** Manipulate background jobs of the document. It starts with a mode of + 'started' and a block count of 0. */ class IDocumentTimerAccess { public: /** - Set modus to start, i.e. start timer if block count == 0 + Set modus to 'start'. */ virtual void StartIdling() = 0; /** - Set modus to stopped, i.e. stop timer if running + Set mode to 'stopped'. */ virtual void StopIdling() = 0; /** - Increment block count, stop timer if running + Increment block count. */ virtual void BlockIdling() = 0; /** - Decrement block count, start timer if block count == 0 AND modus == start + Decrement block count. */ virtual void UnblockIdling() = 0; + /** + Do these jobs asynchronously: do grammar checking, + do layout, and update fields. + They will be delayed until mode is start AND block count == 0. + The implementation might delay them further, for example + it might wait until the application is idle. + */ + virtual void StartBackgroundJobs() = 0; + protected: virtual ~IDocumentTimerAccess() {}; }; -- cgit