4 #ifndef BPSGAUGEPLUGIN_H
5 #define BPSGAUGEPLUGIN_H
14 class BpsGaugeEditWidget;
87 #define BpsGaugePlugin_IID "com.ibk-software.BPS2.BpsGaugePlugin/1.0"
Public include file for BpsGauge class.
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
BPS datastore class.
Definition: bpsdatastore.h:61
Gauge interface.
Definition: bpsgauge.h:19
Unit
Value unit.
Definition: bpsgauge.h:27
Virtual class for gauge plugin of BPS Workplace.
Definition: bpsgaugeplugin.h:22
virtual QString gaugeName() const =0
static QList< BpsGaugePlugin * > plugins(BpsDatastore *aDatastore)
Get list of all gauge plugins available for usage.
virtual BpsGauge::Unit gaugeUnit() const =0
#define BpsGaugePlugin_IID
IID of the plugin.
Definition: bpsgaugeplugin.h:87
static BpsGaugePlugin * plugin(BpsDatastore *aDatastore, const QString &aId)
Find the available gauge plugin with the given ID.
virtual QString gaugeId() const =0
virtual ~BpsGaugePlugin()
Virtual destructor.
Definition: bpsgaugeplugin.h:27
virtual BpsGauge * createGauge(BpsDatastore *aDatastore, QObject *aParent=nullptr) const =0
Create a gauge object and return a pointer to it.
virtual BpsConfigWidget * createConfigWidget(BpsDatastore *aDatastore, QWidget *aParent=nullptr) const =0
Create the config widget and return a pointer to it.
virtual bool check(BpsDatastore *aDatastore) const =0
Check if plugin is available for usage, e.g.
Query and edit settings.
Definition: bpssettings.h:17