diff options
| author | Dominik Holland <dominik.holland@qt.io> | 2024-05-15 18:10:25 +0200 |
|---|---|---|
| committer | Dominik Holland <dominik.holland@qt.io> | 2024-05-24 12:46:57 +0000 |
| commit | 82eade0ecd30a8df1441de92dfe50514315d3a9a (patch) | |
| tree | 2f3a6bdcea069b893eb6870f5debe463a8bddea6 /src/interfaceframework/qifconfiguration.h | |
| parent | 3eed50fe5cb74c9f02bb6a8547b30e8b26ea2022 (diff) | |
Add support to temporarily disable backend updates
Fixes: QTBUG-125492
Change-Id: I958e3018e61be068ead16999ee183cf319e4f381
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/interfaceframework/qifconfiguration.h')
| -rw-r--r-- | src/interfaceframework/qifconfiguration.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/interfaceframework/qifconfiguration.h b/src/interfaceframework/qifconfiguration.h index 212c7358..29b94be4 100644 --- a/src/interfaceframework/qifconfiguration.h +++ b/src/interfaceframework/qifconfiguration.h @@ -32,6 +32,7 @@ class Q_QTINTERFACEFRAMEWORK_EXPORT QIfConfiguration : public QObject, public QQ Q_PROPERTY(QIfAbstractFeature::DiscoveryMode discoveryMode READ discoveryMode WRITE setDiscoveryMode NOTIFY discoveryModeChanged FINAL) Q_PROPERTY(QStringList preferredBackends READ preferredBackends WRITE setPreferredBackends NOTIFY preferredBackendsChanged FINAL) Q_PROPERTY(QIfServiceObject *serviceObject READ serviceObject WRITE setServiceObject NOTIFY serviceObjectChanged FINAL) + Q_PROPERTY(bool backendUpdatesEnabled READ backendUpdatesEnabled WRITE setBackendUpdatesEnabled NOTIFY backendUpdatesEnabledChanged REVISION(6, 8) FINAL) public: explicit QIfConfiguration(const QString &name = QString(), QObject *parent = nullptr); @@ -46,7 +47,7 @@ public: QIfAbstractFeature::DiscoveryMode discoveryMode() const; QStringList preferredBackends() const; QIfServiceObject *serviceObject() const; - + bool backendUpdatesEnabled() const; public Q_SLOTS: void setIgnoreOverrideWarnings(bool ignoreOverrideWarnings); @@ -57,6 +58,7 @@ public Q_SLOTS: bool setDiscoveryMode(QIfAbstractFeature::DiscoveryMode discoveryMode); bool setPreferredBackends(const QStringList &preferredBackends); bool setServiceObject(QIfServiceObject *serviceObject); + Q_REVISION(6, 8) bool setBackendUpdatesEnabled(bool backendUpdatesEnabled); Q_REVISION(6, 8) bool startAutoDiscovery(); Q_SIGNALS: @@ -69,6 +71,7 @@ Q_SIGNALS: void preferredBackendsChanged(const QStringList &preferredBackends); void serviceObjectChanged(const QIfServiceObject *serviceObject); void ignoreOverrideWarningsChanged(bool ignoreOverrideWarnings); + Q_REVISION(6, 8) void backendUpdatesEnabledChanged(bool backendUpdatesEnabled); public: //static methods static bool exists(const QString &group); @@ -97,6 +100,10 @@ public: //static methods static bool setServiceObject(const QString &group, QIfServiceObject *serviceObject); static bool isServiceObjectSet(const QString &group); + static bool backendUpdatesEnabled(const QString &group); + static bool setBackendUpdatesEnabled(const QString &group, bool backendUpdatesEnabled); + static bool isBackendUpdatesEnabledSet(const QString &group); + static bool startAutoDiscovery(const QString &group); protected: |
