diff options
| author | Dominik Holland <dominik.holland@qt.io> | 2022-10-25 16:23:31 +0200 |
|---|---|---|
| committer | Dominik Holland <dominik.holland@qt.io> | 2022-12-07 11:28:38 +0100 |
| commit | 5f8e923455d27ab910e468567a00a8e1eb8db42a (patch) | |
| tree | f4b425dc7049fd7b8cd66f889424911617a8b5b8 /src/interfaceframework/qifserviceinterface.h | |
| parent | bbdf723ace753ccda30745ff8186a5156c42712a (diff) | |
Add a new QIfConfiguration class
This class provides a way to store and update settings for
ServiceObjects, Features and the SimulationEngine.
The configurationId of an Object decides to which configuration
group it belongs.
Default values for Configurations are loaded from a ini file
and can be overridden using environment variables.
This first commit adds the API for storing service settings.
Those service settings are passed to the matching ServiceObjects.
This can be used for backend specific settings e.g. a server
url for the autogenerated remote objects backends.
Fixes: QTBUG-99078
Task-number: QTBUG-99079
Task-number: QTBUG-99081
Change-Id: I814335af1944b87921ecde7873f035d71d183721
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/interfaceframework/qifserviceinterface.h')
| -rw-r--r-- | src/interfaceframework/qifserviceinterface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaceframework/qifserviceinterface.h b/src/interfaceframework/qifserviceinterface.h index 8b78522b..d372af65 100644 --- a/src/interfaceframework/qifserviceinterface.h +++ b/src/interfaceframework/qifserviceinterface.h @@ -35,6 +35,9 @@ public: virtual QStringList interfaces() const = 0; virtual QIfFeatureInterface *interfaceInstance(const QString &interfaceName) const = 0; + virtual QString configurationId() const; + virtual void updateServiceSettings(const QVariantMap &settings); + template <class T> T interfaceInstance(const QString &interfaceName) const { T inst = qif_interface_cast<T>(interfaceInstance(interfaceName)); return inst; |
