|qmake:||QT += interfaceframework|
|QIfProxyServiceObject(const QHash<QString, QIfFeatureInterface *> &interfaceMap)|
|virtual QIfFeatureInterface *||interfaceInstance(const QString &interface) const override|
|virtual QStringList||interfaces() const override|
In constrast to the QIfServiceObject which is created for you by the QIfServiceManager for every backend plugin, the QIfProxyServiceObject can be instantiated by the user and then manually set to the feature class.
There are two ways to construct a QIfProxyServiceObject. The first takes a QIfServiceInterface pointer as input and can be used to load a backend which is derived from QIfServiceInterface and supposed to be loaded as a plugin, but is part of the same library and can be loaded directly instead. e.g. within a autotest.
See also QIfAbstractFeature.
Member Function Documentation
QIfProxyServiceObject::QIfProxyServiceObject(const QHash<QString, QIfFeatureInterface *> &interfaceMap)
Creates a new QIfProxyServiceObject for the given interfaceMap.
This can be used to directly connect a feature class to the backend implementing the QIfFeatureInterface.
Creates a new QIfProxyServiceObject for the given interface.
This can be used to load a backend which is derived from QIfServiceInterface and supposed to be loaded as a plugin, but is part of the same library and can be loaded directly instead. e.g. within a autotest
[override virtual] QIfFeatureInterface *QIfProxyServiceObject::interfaceInstance(const QString &interface) const
[override virtual] QStringList QIfProxyServiceObject::interfaces() const
Reimplements: QIfServiceInterface::interfaces() const.
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.