From 726bd2577f6ab4fe8ebf043ec8170a4a1951e22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Tue, 26 Sep 2023 21:34:43 +0200 Subject: [PATCH] Add onNextRefresh() interface of IOrganizer. --- src/imoinfo.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/imoinfo.h b/src/imoinfo.h index b75e01c8..e216dff3 100644 --- a/src/imoinfo.h +++ b/src/imoinfo.h @@ -431,6 +431,17 @@ class QDLLEXPORT IOrganizer : public QObject virtual bool onUserInterfaceInitialized(std::function const& func) = 0; + /** + * @brief Add a new callback to be called when the next refresh finishes (or + * immediately if possible). + * + * @param func Callback. + * @param immediateIfPossible If true and no refresh is in progress, the callback will + * be called immediately. + */ + virtual bool onNextRefresh(std::function const& func, + bool immediateIfPossible = true) = 0; + /** * @brief Add a new callback to be called when a new profile is created. *