| 
    QGIS API Documentation 3.99.0-Master (f78f5286a64)
    
   | 
 
Convenience metadata class that uses static functions to handle sensor GUI behavior. More...
#include <qgssensorguiregistry.h>

Public Member Functions | |
| QgsSensorGuiMetadata (const QString &type, const QString &visibleName, const QIcon &creationIcon, const QgsSensorWidgetFunc &pfWidget=nullptr, const QgsSensorCreateFunc &pfCreateFunc=nullptr) | |
| Constructor for QgsSensorGuiMetadata with the specified class type and creationIcon, and function pointers for the configuration widget creation function.   | |
| QgsAbstractSensor * | createSensor (QObject *parent) override | 
| Creates an instance of the corresponding sensor type.   | |
| QgsAbstractSensorWidget * | createSensorWidget (QgsAbstractSensor *sensor) override | 
| Creates a configuration widget for an sensor of this type.   | |
| QIcon | creationIcon () const override | 
| Returns an icon representing creation of the sensor type.   | |
| QgsSensorCreateFunc | sensorCreationFunction () const | 
| Returns the classes' sensor creation function.   | |
| void | setSensorCreationFunction (const QgsSensorCreateFunc &function) | 
| Sets the classes' sensor creation function.   | |
| void | setWidgetFunction (const QgsSensorWidgetFunc &function) | 
| Sets the classes' sensor configuration widget creation function.   | |
| QgsSensorWidgetFunc | widgetFunction () const | 
| Returns the classes' configuration widget creation function.   | |
  Public Member Functions inherited from QgsSensorAbstractGuiMetadata | |
| QgsSensorAbstractGuiMetadata (const QString &type, const QString &visibleName) | |
| Constructor for QgsSensorAbstractGuiMetadata with the specified class type.   | |
| virtual | ~QgsSensorAbstractGuiMetadata ()=default | 
| QString | type () const | 
| Returns the unique type code for the sensor class.   | |
| QString | visibleName () const | 
| Returns a translated, user visible name identifying the corresponding sensor.   | |
Protected Attributes | |
| QgsSensorCreateFunc | mCreateFunc = nullptr | 
| QIcon | mIcon | 
| QgsSensorWidgetFunc | mWidgetFunc = nullptr | 
Convenience metadata class that uses static functions to handle sensor GUI behavior.
Definition at line 115 of file qgssensorguiregistry.h.
      
  | 
  inline | 
Constructor for QgsSensorGuiMetadata with the specified class type and creationIcon, and function pointers for the configuration widget creation function.
visibleName should be set to a translated, user visible name identifying the corresponding sensor.
Definition at line 124 of file qgssensorguiregistry.h.
      
  | 
  inlineoverridevirtual | 
Creates an instance of the corresponding sensor type.
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 157 of file qgssensorguiregistry.h.
      
  | 
  inlineoverridevirtual | 
Creates a configuration widget for an sensor of this type.
Can return nullptr if no configuration GUI is required. 
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 156 of file qgssensorguiregistry.h.
      
  | 
  inlineoverridevirtual | 
Returns an icon representing creation of the sensor type.
Reimplemented from QgsSensorAbstractGuiMetadata.
Definition at line 155 of file qgssensorguiregistry.h.
      
  | 
  inline | 
Returns the classes' sensor creation function.
Definition at line 147 of file qgssensorguiregistry.h.
      
  | 
  inline | 
Sets the classes' sensor creation function.
Definition at line 153 of file qgssensorguiregistry.h.
      
  | 
  inline | 
Sets the classes' sensor configuration widget creation function.
Definition at line 141 of file qgssensorguiregistry.h.
      
  | 
  inline | 
Returns the classes' configuration widget creation function.
Definition at line 135 of file qgssensorguiregistry.h.
      
  | 
  protected | 
Definition at line 162 of file qgssensorguiregistry.h.
      
  | 
  protected | 
Definition at line 160 of file qgssensorguiregistry.h.
      
  | 
  protected | 
Definition at line 161 of file qgssensorguiregistry.h.