QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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 91 of file qgssensorregistry.h.
|
inline |
Constructor for QgsSensorMetadata with the specified class type.
Definition at line 98 of file qgssensorregistry.h.
|
inline |
Returns the classes' sensor creation function.
Definition at line 107 of file qgssensorregistry.h.
|
inlineoverridevirtual |
Creates a sensor of this class.
Implements QgsSensorAbstractMetadata.
Definition at line 109 of file qgssensorregistry.h.
|
protected |
Definition at line 112 of file qgssensorregistry.h.