QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
QgsSensorMetadata Class Reference

Convenience metadata class that uses static functions to create sensors and their configuration widgets. More...

#include <qgssensorregistry.h>

Inheritance diagram for QgsSensorMetadata:
Inheritance graph
[legend]

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.
 
QgsAbstractSensorcreateSensor (QObject *parent) override
 Creates a sensor of this class.
 

Protected Attributes

QgsSensorCreateFunc mCreateFunc = nullptr
 

Detailed Description

Convenience metadata class that uses static functions to create sensors and their configuration widgets.

Note
not available in Python bindings
Since
QGIS 3.0

Definition at line 92 of file qgssensorregistry.h.

Constructor & Destructor Documentation

◆ QgsSensorMetadata()

QgsSensorMetadata::QgsSensorMetadata ( const QString &  type,
const QString &  visibleName,
const QgsSensorCreateFunc pfCreate 
)
inline

Constructor for QgsSensorMetadata with the specified class type.

Definition at line 99 of file qgssensorregistry.h.

Member Function Documentation

◆ createFunction()

QgsSensorCreateFunc QgsSensorMetadata::createFunction ( ) const
inline

Returns the classes' sensor creation function.

Definition at line 108 of file qgssensorregistry.h.

◆ createSensor()

QgsAbstractSensor * QgsSensorMetadata::createSensor ( QObject *  parent)
inlineoverridevirtual

Creates a sensor of this class.

Implements QgsSensorAbstractMetadata.

Definition at line 110 of file qgssensorregistry.h.

Member Data Documentation

◆ mCreateFunc

QgsSensorCreateFunc QgsSensorMetadata::mCreateFunc = nullptr
protected

Definition at line 113 of file qgssensorregistry.h.


The documentation for this class was generated from the following file: