aboutsummaryrefslogtreecommitdiff
path: root/src/core/kcoreconfigskeleton.h
diff options
context:
space:
mode:
authorBenjamin Port <benjamin.port@enioka.com>2020-02-12 10:51:32 +0100
committerBenjamin Port <benjamin.port@enioka.com>2020-02-12 11:26:16 +0100
commit059a4feee45b91d819d7675fe5b3cc220f29c6ee (patch)
treef3de15d8c020d6c05e5ca5e128a405e38bf64a43 /src/core/kcoreconfigskeleton.h
parent1def4714cb919ed73cec840ecd7a583de0a7712b (diff)
downloadkconfig-059a4feee45b91d819d7675fe5b3cc220f29c6ee.tar.gz
kconfig-059a4feee45b91d819d7675fe5b3cc220f29c6ee.tar.bz2
Add setNotifyFunction to KPropertySkeletonItem
Summary: This function will be called when the property value change Reviewers: ervin, meven, crossi Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D27342
Diffstat (limited to 'src/core/kcoreconfigskeleton.h')
-rw-r--r--src/core/kcoreconfigskeleton.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/kcoreconfigskeleton.h b/src/core/kcoreconfigskeleton.h
index a6f58ebe..7abc4052 100644
--- a/src/core/kcoreconfigskeleton.h
+++ b/src/core/kcoreconfigskeleton.h
@@ -294,6 +294,12 @@ public:
void setDefault() override;
/** @copydoc KConfigSkeletonItem::swapDefault() */
void swapDefault() override;
+
+ /**
+ * Set a notify function, it will be invoked when the value of the property changes.
+ * @since 5.68
+ */
+ void setNotifyFunction(const std::function<void ()> &impl);
};