diff options
| author | Dominik Holland <dominik.holland@qt.io> | 2022-12-22 14:53:11 +0100 |
|---|---|---|
| committer | Dominik Holland <dominik.holland@qt.io> | 2023-01-17 17:28:46 +0100 |
| commit | f3ed2d50f70228dbe1e0f25ac4fe17a6afe19798 (patch) | |
| tree | dc05efb4a78626d50b3514d9e90b02bdc0e21a3e /src/interfaceframework/qifservicemanager.cpp | |
| parent | 3a743411290fc0eeae2b3c011da5fb2213f9ea4a (diff) | |
Add documentation for the new features
Pick-to: 6.5
Change-Id: I8db93d48211394f6861fa6c2ba9f19525c9a59c7
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'src/interfaceframework/qifservicemanager.cpp')
| -rw-r--r-- | src/interfaceframework/qifservicemanager.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/interfaceframework/qifservicemanager.cpp b/src/interfaceframework/qifservicemanager.cpp index 5374f9a8..db713a7b 100644 --- a/src/interfaceframework/qifservicemanager.cpp +++ b/src/interfaceframework/qifservicemanager.cpp @@ -564,7 +564,7 @@ QIfServiceManager *QIfServiceManager::create(QQmlEngine *, QJSEngine *) } /*! - \qmlmethod list<ServiceObject> ServiceManager::findServiceByInterface(interface, searchFlags) + \qmlmethod list<ServiceObject> ServiceManager::findServiceByInterface(interface, searchFlags, preferredBackends) Returns a list of backends implementing the specified \a interface. @@ -577,12 +577,22 @@ QIfServiceManager *QIfServiceManager::create(QQmlEngine *, QJSEngine *) Include simulation backends in the search result. See also \l {QIfServiceManager::}{SimulationBackend} \value IncludeAll Include both production and simulation backends in the search result. + + The \a preferredBackends argument is used to select a backend when multiple backends implement + the specified interface. + The wildcards are applied in order to the found backends. If the wildcard matches some backends + those backends will be loaded, otherwise the next wildcard is used. */ /*! Returns a list of backends implementing the specified \a interface. The \a searchFlags argument can be used to control which type of backends are included in the search result. + + The \a preferredBackends argument is used to select a backend when multiple backends implement + the specified interface. + The wildcards are applied in order to the found backends. If the wildcard matches some backends + those backends will be loaded, otherwise the next wildcard is used. */ QList<QIfServiceObject *> QIfServiceManager::findServiceByInterface(const QString &interface, SearchFlags searchFlags, const QStringList &preferredBackends) { |
