QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Convenience metadata class that uses static functions to create sensors and their configuration widgets. More...
#include <qgssensorregistry.h>
Public Member Functions | |
QgsSensorMetadata (const QString &type, const QString &visibleName, const QgsSensorCreateFunc &pfCreate) | |
Constructor for QgsSensorMetadata with the specified class type. | |
QgsSensorCreateFunc | createFunction () const |
Returns the classes' sensor creation function. | |
QgsAbstractSensor * | createSensor (QObject *parent) override |
Creates a sensor of this class. | |
Public Member Functions inherited from QgsSensorAbstractMetadata | |
QgsSensorAbstractMetadata (const QString &type, const QString &visibleName) | |
Constructor for QgsSensorAbstractMetadata with the specified class type. | |
virtual | ~QgsSensorAbstractMetadata ()=default |
QString | type () const |
Returns the unique type code for the sensor class. | |
QString | visibleName () const |
Returns a translated, user visible name for the sensor class. | |
Protected Attributes | |
QgsSensorCreateFunc | mCreateFunc = nullptr |
Convenience metadata class that uses static functions to create sensors and their configuration widgets.
Definition at line 92 of file qgssensorregistry.h.
|
inline |
Constructor for QgsSensorMetadata with the specified class type.
Definition at line 99 of file qgssensorregistry.h.
|
inline |
Returns the classes' sensor creation function.
Definition at line 108 of file qgssensorregistry.h.
|
inlineoverridevirtual |
Creates a sensor of this class.
Implements QgsSensorAbstractMetadata.
Definition at line 110 of file qgssensorregistry.h.
|
protected |
Definition at line 113 of file qgssensorregistry.h.