summaryrefslogtreecommitdiffstats
path: root/src/interfaceframework/qifconfiguration.h
Commit message (Collapse)AuthorAgeFilesLines
* Add support for asynchronous backend loadingDominik Holland2024-06-141-0/+8
| | | | | | | | | | | | | | Backend plugins can now be loaded inside a separate thread. For this usecase a new QIfServiceObjectHandle class is introduced which is returned using a new findServiceHandleByInterface function. The handles can be loaded asynchronously using a new loadServiceObject() function. Documentation will be added in a followup commit. Pick-to: 6.8 Change-Id: I70b39f3288187a839196182e8c2c78b9d89bab18 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Add support to temporarily disable backend updatesDominik Holland2024-05-241-1/+8
| | | | | | Fixes: QTBUG-125492 Change-Id: I958e3018e61be068ead16999ee183cf319e4f381 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* QIfConfiguration: Add a function to trigger the auto discoveryDominik Holland2024-05-221-0/+4
| | | | | | | | | | 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>
* Mark properties exposed to QML as FINAL to prevent shadowingDominik Holland2023-07-181-9/+9
| | | | | | Pick-to: 6.6 Change-Id: Ief99e708d61dcb49c63fd089fb7a1b81ab6a849a Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* QIfConfiguration: Add a way to set a QIfServiceObjectDominik Holland2022-12-071-0/+8
| | | | | | | | | | | | This can be used to change all the ServiceObject of all Features which belong to a QIfConfiguration by a single call. This is useful for usecases where the auto discovery system cannot be used. Change-Id: Ic2480e5dfc08414afcc28638554d9604ecb2059b Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* QIfConfiguration: Show override warnings in QMLDominik Holland2022-12-071-0/+4
| | | | | | | Also add a ignoreOverrideWarnings property to disable those warnings. Change-Id: I2c37082fa7f49d0b394da404ebf3caf1cf9547a2 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Improve the auto discovery systemDominik Holland2022-12-071-0/+8
| | | | | | | | | | | | | | | | | | | | The auto discovery system works fine when only a single production or a single simulation backend were found. In case multiple backends were found the first backend was used, which was not always the desired backend. The QIfServiceManager can now also use an additional list of preferred backends. This list can contain wildcards and tries to find a single matching backend. A new preferredBackends property is also added to QIfAbstractFeature and QIfAbstractFeatureListModel. Task-number: QTBUG-99081 Task-number: QTBUG-99082 Change-Id: Ic5834c826f157d9b457dea769ef88c29ab90f617 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* QIfConfiguration: Add Feature related propertiesDominik Holland2022-12-071-0/+9
| | | | | | | | | | This adds a way to change the auto discovery mode of all features belonging to a QIfConfiguration. Task-number: QTBUG-99078 Task-number: QTBUG-99081 Change-Id: Ie73f1cb778c89c6cb371463b7dee36d55f47c477 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* QIfConfiguration: Add simulation related propertiesDominik Holland2022-12-071-0/+16
| | | | | | | | | | | This moves the parsing of QTIF_SIMULATION_OVERRIDE and QTIF_SIMULATION_DATA_OVERRIDE to the new configuration class and makes sure the values can also be updated with the new class and from QML. Task-number: QTBUG-99081 Change-Id: Icfd5624c8e808675940fbf2c29fe45c448f1a465 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Add a new QIfConfiguration classDominik Holland2022-12-071-0/+66
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>