QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Signals | Public Member Functions | List of all members
QgsAbstractSensorWidget Class Referenceabstract

Base class for widgets which allow control over the properties of sensors. More...

#include <qgssensorwidget.h>

Inheritance diagram for QgsAbstractSensorWidget:
Inheritance graph
[legend]

Signals

void changed ()
 Emitted whenever configuration changes happened on this sensor configuration. More...
 

Public Member Functions

 QgsAbstractSensorWidget (QWidget *parent=nullptr)
 Constructor for QgsAbstractSensorWidget. More...
 
virtual QgsAbstractSensorcreateSensor ()=0
 Creates a new sensor matching the settings defined in the widget. More...
 
virtual bool setSensor (QgsAbstractSensor *sensor)=0
 Sets the widget settings to match a given sensor. More...
 
virtual bool updateSensor (QgsAbstractSensor *sensor)=0
 Updates an existing sensor to match the settings defined in the widget. More...
 

Detailed Description

Base class for widgets which allow control over the properties of sensors.

Since
QGIS 3.32

Definition at line 36 of file qgssensorwidget.h.

Constructor & Destructor Documentation

◆ QgsAbstractSensorWidget()

QgsAbstractSensorWidget::QgsAbstractSensorWidget ( QWidget *  parent = nullptr)

Constructor for QgsAbstractSensorWidget.

Parameters
parentparent widget

Definition at line 26 of file qgssensorwidget.cpp.

Member Function Documentation

◆ changed

void QgsAbstractSensorWidget::changed ( )
signal

Emitted whenever configuration changes happened on this sensor configuration.

◆ createSensor()

virtual QgsAbstractSensor * QgsAbstractSensorWidget::createSensor ( )
pure virtual

Creates a new sensor matching the settings defined in the widget.

◆ setSensor()

virtual bool QgsAbstractSensorWidget::setSensor ( QgsAbstractSensor sensor)
pure virtual

Sets the widget settings to match a given sensor.

If true is returned, sensor was an acceptable type and the widget has been updated to match the sensor's properties.

If false is returned, then the widget could not be successfully updated to show the properties of sensor.

◆ updateSensor()

virtual bool QgsAbstractSensorWidget::updateSensor ( QgsAbstractSensor sensor)
pure virtual

Updates an existing sensor to match the settings defined in the widget.

If true is returned, the sensor was successfully updated.

If false is returned, then the widget could not successfully update the sensor.


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