QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsSensorAbstractMetadata Class Referenceabstract

Stores metadata about a sensor class. More...

#include <qgssensorregistry.h>

Inheritance diagram for QgsSensorAbstractMetadata:
Inheritance graph
[legend]

Public Member Functions

 QgsSensorAbstractMetadata (const QString &type, const QString &visibleName)
 Constructor for QgsSensorAbstractMetadata with the specified class type.
 
virtual ~QgsSensorAbstractMetadata ()=default
 
virtual QgsAbstractSensorcreateSensor (QObject *parent)=0
 Creates a sensor of this class.
 
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.
 

Detailed Description

Stores metadata about a sensor class.

Note
In C++ you can use QgsSensorAbstractMetadata convenience class.
Since
QGIS 3.32

Definition at line 31 of file qgssensorregistry.h.

Constructor & Destructor Documentation

◆ QgsSensorAbstractMetadata()

QgsSensorAbstractMetadata::QgsSensorAbstractMetadata ( const QString &  type,
const QString &  visibleName 
)
inline

Constructor for QgsSensorAbstractMetadata with the specified class type.

Definition at line 38 of file qgssensorregistry.h.

◆ ~QgsSensorAbstractMetadata()

virtual QgsSensorAbstractMetadata::~QgsSensorAbstractMetadata ( )
virtualdefault

Member Function Documentation

◆ createSensor()

virtual QgsAbstractSensor * QgsSensorAbstractMetadata::createSensor ( QObject *  parent)
pure virtual

Creates a sensor of this class.

Implemented in QgsSensorMetadata.

◆ type()

QString QgsSensorAbstractMetadata::type ( ) const
inline

Returns the unique type code for the sensor class.

Definition at line 48 of file qgssensorregistry.h.

◆ visibleName()

QString QgsSensorAbstractMetadata::visibleName ( ) const
inline

Returns a translated, user visible name for the sensor class.

Definition at line 53 of file qgssensorregistry.h.


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