summaryrefslogtreecommitdiffstats
path: root/src/interfaceframework/qifconfiguration.h
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2024-05-14 11:40:43 +0200
committerDominik Holland <dominik.holland@qt.io>2024-05-22 15:30:41 +0200
commit08a72e2f653df9840a4d664afb8cac623296cb94 (patch)
tree43cde8bb9d2ecc74415eca0d1110ef1a971c5880 /src/interfaceframework/qifconfiguration.h
parent2c134de7c2f8761d2d6cd74b4fe11fd1ff650545 (diff)
QIfConfiguration: Add a function to trigger the auto discovery
We already allow to change the discovery mode, preferredBackends and the ServiceObject itself. Allowing to start the auto discovery as well makes it possible to control the complete backend selection of multiple features using the QIfConfiguration. Change-Id: Iffc475b6bfcd1e027d4a744d94ce6137165924e1 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/interfaceframework/qifconfiguration.h')
-rw-r--r--src/interfaceframework/qifconfiguration.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaceframework/qifconfiguration.h b/src/interfaceframework/qifconfiguration.h
index ec9a4bc3..212c7358 100644
--- a/src/interfaceframework/qifconfiguration.h
+++ b/src/interfaceframework/qifconfiguration.h
@@ -47,6 +47,7 @@ public:
QStringList preferredBackends() const;
QIfServiceObject *serviceObject() const;
+
public Q_SLOTS:
void setIgnoreOverrideWarnings(bool ignoreOverrideWarnings);
bool setName(const QString &name);
@@ -56,6 +57,7 @@ public Q_SLOTS:
bool setDiscoveryMode(QIfAbstractFeature::DiscoveryMode discoveryMode);
bool setPreferredBackends(const QStringList &preferredBackends);
bool setServiceObject(QIfServiceObject *serviceObject);
+ Q_REVISION(6, 8) bool startAutoDiscovery();
Q_SIGNALS:
void isValidChanged(bool isValid);
@@ -95,6 +97,8 @@ public: //static methods
static bool setServiceObject(const QString &group, QIfServiceObject *serviceObject);
static bool isServiceObjectSet(const QString &group);
+ static bool startAutoDiscovery(const QString &group);
+
protected:
QIfConfiguration(QIfConfigurationPrivate &dd, QObject *parent);