QIfProxyServiceObject Class

QIfProxyServiceObject is a helper class to connect a Feature to already instantiated QIfServiceInterface classes. More...

Header: #include <QIfProxyServiceObject>
qmake: QT += interfaceframework
Inherits: QIfServiceObject

Public Functions

QIfProxyServiceObject(QIfServiceInterface *interface)
QIfProxyServiceObject(const QHash<QString, QIfFeatureInterface *> &interfaceMap)

Reimplemented Public Functions

virtual QIfFeatureInterface *interfaceInstance(const QString &interface) const override
virtual QStringList interfaces() const override

Detailed Description

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.

The second constructor takes a QHash<QString, QIfFeatureInterface*> and can be used to directly connect a feature class to the backend implementing the QIfFeatureInterface.

See also QIfAbstractFeature.

Member Function Documentation

[explicit] QIfProxyServiceObject::QIfProxyServiceObject(QIfServiceInterface *interface)

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

[explicit] 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.

[override virtual] QIfFeatureInterface *QIfProxyServiceObject::interfaceInstance(const QString &interface) const

Reimplements: QIfServiceInterface::interfaceInstance(const QString &interfaceName) const.

[override virtual] QStringList QIfProxyServiceObject::interfaces() const

Reimplements: QIfServiceInterface::interfaces() const.

© 2024 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.