16#ifndef QGSSENSORGUIREGISTRY_H
17#define QGSSENSORGUIREGISTRY_H
48 , mVisibleName( visibleName )
56 QString
type()
const {
return mType; }
124 , mIcon( creationIcon )
125 , mWidgetFunc( pfWidget )
126 , mCreateFunc( pfCreateFunc )
246 QMap<QString, QString> sensorTypes() const;
254 void sensorAdded( const QString &type, const QString &name );
262 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.