Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onProfileSettingChanged #159

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/imoinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,19 @@ class QDLLEXPORT IOrganizer : public QObject
virtual bool
onProfileChanged(std::function<void(IProfile*, IProfile*)> const& func) = 0;

/**
* @brief Add a new callback to be called when a profile setting is changed.
*
* Parameters of the callback:
* - The changed profile, cannot be null.
* - Name of the setting.
* - Old value
* - New value
*/
virtual bool onProfileSettingChanged(
std::function<void(IProfile*, const QString& key, const QVariant&,
const QVariant&)> const& func) = 0;

/**
* @brief Add a new callback to be called when a plugin setting is changed.
*
Expand Down
Loading