The MonitoringBusinessLogic class processes data from 'analyzer' application about current state of devices and provides information to show.
More...
#include <MonitoringBusinessLogic.h>
The MonitoringBusinessLogic class processes data from 'analyzer' application about current state of devices and provides information to show.
| INTERNAL MonitoringBusinessLogic::MonitoringBusinessLogic |
( |
| ) |
|
| MonitoringBusinessLogic::~MonitoringBusinessLogic |
( |
| ) |
|
|
virtual |
GetDeviceStatusReport.
- Parameters
-
| generalDeviceStatus | - [output paramater] - general device status (the highest importance of all reported problems)
- 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
|
| errorMessages | - [output paramater] - list of error messages, one message for each device encountering a problem |
- Returns
- bool - success (true) or failure (false)
| QString MonitoringBusinessLogic::PrepareMonitoringOverviewMessage |
( |
| ) |
|
PrepareMonitoringOverviewMessage returns formated overview of devices encountering a problem.
- Returns
- formated message to show
| bool MonitoringBusinessLogic::ProcessMonitoringDataFromAnalyzer |
( |
const QString & |
data | ) |
|
ProcessMonitoringDataFromAnalyzer parses data from 'analyzer' application.
- Parameters
-
| data | - data from 'analyzer' application to parse |
- Returns
- bool - success (true) or failure (false)
ProcessSingleDeviceMonitoringData processes received status from single device, this way device can send it's status to monitoring without usage of analyzer application mechanism.
- Parameters
-
| deviceStatus | - received device status |
- Returns
- bool - success (true) or failure (false)
The documentation for this class was generated from the following files: