#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
Public include file for BpsDecimal class.
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
A class for decimal arithmetics.
Definition: bpsdecimal.h:87
Gauge interface.
Definition: bpsgauge.h:19
Unit
Value unit.
Definition: bpsgauge.h:27
QMap< QString, QString > config() const
void readValueError(const QString &aMessage)
Signal emitted as failure result of a requestReadValue() for all other reasons except timeout.
virtual void requestReadValue(int aTimeout=0)=0
Request the reading of status and value.
void readValueOk(int aStatus, const BpsDecimal &aValue)
Signal emitted as success result of a requestReadValue() call.
virtual Unit unit() const =0
Unit of the values returned.
void setConfig(const QMap< QString, QString > &aConfig)
Set the configuration.
void error(const QString &aMessage)
Combined failure signal from readValueTimeout() and readValueError().
virtual int resolution() const =0
Resolution of the values returned.
BpsGauge(QObject *aParent=0)
virtual ~BpsGauge()
Virtual default destructor.
void readValueTimeout(const QString &aMessage)
Signal emitted as failure result of a requestReadValue() call when nothing was received withing the s...