Base module
DiagnosticManager
Registry and manager for diagnostic providers.
DiagnosticManager
#include <icy/diagnosticmanager.h>Inherits:
string, IDiagnostic >
Registry and manager for diagnostic providers.
Public Attributes
| Return | Name | Description |
|---|---|---|
NullSignal | DiagnosticsComplete |
DiagnosticsComplete
NullSignal DiagnosticsCompletePublic Methods
| Return | Name | Description |
|---|---|---|
DiagnosticManager | ||
bool | addDiagnostic | Adds a diagnostic, taking ownership. |
bool | freeDiagnostic | Removes and deletes the diagnostic registered under name. |
IDiagnostic * | getDiagnostic const | Returns the diagnostic or nullptr. |
void | resetAll | |
void | checkAll | |
bool | allComplete const | |
void | onDiagnosticStateChange |
DiagnosticManager
DiagnosticManager()addDiagnostic
bool addDiagnostic(std::unique_ptr< IDiagnostic > test)Adds a diagnostic, taking ownership.
freeDiagnostic
bool freeDiagnostic(const std::string & name)Removes and deletes the diagnostic registered under name.
getDiagnostic
const
IDiagnostic * getDiagnostic(const std::string & name) constReturns the diagnostic or nullptr.
resetAll
void resetAll()checkAll
void checkAll()allComplete
const
bool allComplete() constonDiagnosticStateChange
void onDiagnosticStateChange(void *, DiagnosticState & state, constDiagnosticState &)