QGIS API Documentation 3.41.0-Master (af5edcb665c)
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

Definition at line 91 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 98 of file qgssensorregistry.h.

Member Function Documentation

◆ createFunction()

QgsSensorCreateFunc QgsSensorMetadata::createFunction ( ) const
inline

Returns the classes' sensor creation function.

Definition at line 107 of file qgssensorregistry.h.

◆ createSensor()

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

Creates a sensor of this class.

Implements QgsSensorAbstractMetadata.

Definition at line 109 of file qgssensorregistry.h.

Member Data Documentation

◆ mCreateFunc

QgsSensorCreateFunc QgsSensorMetadata::mCreateFunc = nullptr
protected

Definition at line 112 of file qgssensorregistry.h.


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