Skip to content

Commit

Permalink
Add onNextRefresh() interface of IOrganizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Sep 26, 2023
1 parent 19637ab commit 726bd25
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/imoinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,17 @@ class QDLLEXPORT IOrganizer : public QObject
virtual bool
onUserInterfaceInitialized(std::function<void(QMainWindow*)> 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<void()> const& func,
bool immediateIfPossible = true) = 0;

/**
* @brief Add a new callback to be called when a new profile is created.
*
Expand Down

0 comments on commit 726bd25

Please sign in to comment.