The MonitoringDeviceStatusReport class encapsulates the device status report from 'analyzer' application (it's the report sent by analyzer without requesting)
More...
#include <MonitoringDeviceStatusReport.h>
The MonitoringDeviceStatusReport class encapsulates the device status report from 'analyzer' application (it's the report sent by analyzer without requesting)
| MonitoringDeviceStatusReport::MonitoringDeviceStatusReport |
( |
| ) |
|
| MonitoringDeviceStatusReport::~MonitoringDeviceStatusReport |
( |
| ) |
|
| bool MonitoringDeviceStatusReport::FillFromAnalyzerData |
( |
const QString & |
data | ) |
|
Fill - parses data from analyzer.
- Parameters
-
| data | - raw data sent by 'analyzer' application |
- Returns
- true if parsing data was successfull, false otherwise
GetGeneralStatus returns general status of devices (the highest importance of all reported problems)
- Returns
- MonitoringDeviceStatusUnknown : no data, unknown status MonitoringDeviceStatusOK : no device is encountering any problem MonitoringDeviceStatusWarning : there is at least one device with warning, no errors MonitoringDeviceStatusError : there is at least one device with error
IndividualDeviceStatusChanged - appends/removes/updates single device status into/from individual devices statuses vector.
- Parameters
-
| status | - device status struct |
| QStringList MonitoringDeviceStatusReport::PrepareErrorMessages |
( |
bool |
includeWarnings, |
|
|
bool |
includeAlreadyShowed |
|
) |
| |
PrepareErrorMessages returns list of error messages, one message for each device encountering a problem.
- Parameters
-
| includeWarnings | - if warnings should be included in list (if false, only errors are included) |
| includeAlreadyShowed | - if device problems already reported should be included |
- Returns
- list of error messages to show
The documentation for this class was generated from the following files: