16#ifndef QGSSENSORGUIREGISTRY_H
17#define QGSSENSORGUIREGISTRY_H
47 , mVisibleName( visibleName )
55 QString
type()
const {
return mType; }
102 QString mVisibleName;
126 , mIcon( creationIcon )
127 , mWidgetFunc( pfWidget )
128 , mCreateFunc( pfCreateFunc )
245 QMap<QString, QString> sensorTypes() const;
253 void sensorAdded( const QString &type, const QString &name );
260 QMap<QString, QgsSensorAbstractGuiMetadata *> mMetadata;
An abstract base class for sensor classes.
static QIcon getThemeIcon(const QString &name, const QColor &fillColor=QColor(), const QColor &strokeColor=QColor())
Helper to get a theme icon.
Registry of available sensor GUI behavior.
QgsSensorGuiRegistry(const QgsSensorGuiRegistry &rh)=delete
QgsSensorGuiRegistry & operator=(const QgsSensorGuiRegistry &rh)=delete
std::function< QgsAbstractSensorWidget *(QgsAbstractSensor *sensor)> QgsSensorWidgetFunc
Sensor configuration widget creation function.
std::function< QgsAbstractSensor *(QObject *parent)> QgsSensorCreateFunc
Sensor creation function.