Virtual class for gauge plugin of BPS Workplace.
More...
#include <bpsgaugeplugin.h>
List of all members.
Detailed Description
Virtual class for gauge plugin of BPS Workplace.
Place the dynamic library in the plugins/bpsgauge folder.
Member Function Documentation
| virtual bool BpsGaugePlugin::check |
( |
BpsDatastore * |
aDatastore | ) |
const [pure virtual] |
Check if plugin is available for usage, e.g.
it is licensed.
- Parameters:
-
| aDatastore | The datastore to use. |
- Returns:
- True when gauge plugin is available, false when not.
Create the config widget and return a pointer to it.
The widget is owned by the caller.
- Parameters:
-
| aDatastore | The datastore to use. |
| aParent | The parent widget. |
- Returns:
- Pointer to the new widget, or 0 if gauge plugin is not available for use (see check).
| virtual BpsGauge* BpsGaugePlugin::createGauge |
( |
BpsDatastore * |
aDatastore, |
|
|
QObject * |
aParent = 0 |
|
) |
| const [pure virtual] |
Create a gauge object and return a pointer to it.
- Parameters:
-
| aDatastore | The datastore to use. |
| aParent | The parent object. |
- Returns:
- Pointer to the new object, or 0 if gauge plugin is not available for use, the settings parameters are invalid, or the gauge can not be opened.
| virtual QString BpsGaugePlugin::gaugeId |
( |
| ) |
const [pure virtual] |
- Returns:
- The gauge ID, for example "nwkthien".
| virtual QString BpsGaugePlugin::gaugeName |
( |
| ) |
const [pure virtual] |
- Returns:
- The gauge name in current language, for example "NWK Thien"
| virtual BpsGauge::Unit BpsGaugePlugin::gaugeUnit |
( |
| ) |
const [pure virtual] |
- Returns:
- Unit of the values returned.
Find the available gauge plugin with the given ID.
- Parameters:
-
| aDatastore | The datastore to use. |
| aId | The gauge ID, for example "mtsics" or "bit650". |
- Returns:
- The plugin, or 0 if no gauge plugin with this id was found or it is not available for use.
Get list of all gauge plugins available for usage.
- Parameters:
-
| aDatastore | The datastore to use. |
- Returns:
- List of available gauge plugins.
The documentation for this class was generated from the following file: