QIviServiceInterface Class
Interface class for services. More...
Header: | #include <QIviServiceInterface> |
qmake: | QT += ivicore |
Inherited By: |
Public Functions
virtual | ~QIviServiceInterface() |
virtual QIviFeatureInterface * | interfaceInstance(const QString &interface) const = 0 |
virtual QStringList | interfaces() const = 0 |
Related Non-Members
T | qivi_interface_cast(QObject *backend) |
Detailed Description
The QIviServiceInterface class defines the interface of services registered with QIviServiceManager.
Commonly, service objects inherit the concrete class QIviServiceObject instead of using QIviServiceInterface directly.
See also QIviServiceObject.
Member Function Documentation
[virtual]
QIviServiceInterface::~QIviServiceInterface()
Destructs the QIviServiceInterface instance.
[pure virtual]
QIviFeatureInterface *QIviServiceInterface::interfaceInstance(const QString &interface) const
Returns an object implementing the service interface requested through interface.
[pure virtual]
QStringList QIviServiceInterface::interfaces() const
Returns a list of service interface names supported by the service object instance.
Related Non-Members
template <typename T> T qivi_interface_cast(QObject *backend)
Casts the given backend to the interface type T.
When implementing a QtIvi Feature this function should be used, as it shows a meaningful error message when the cast fails.
See also qobject_cast.
© 2020 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.