![]() |
IDS peak genericC++ v1.13.0
|
Allows to observe a firmware update process. More...
#include <peak/device/peak_firmware_update_progress_observer.hpp>
Public Types | |
| using | UpdateStartedCallback |
| using | UpdateStartedCallbackHandle = UpdateStartedCallback* |
| using | UpdateStepStartedCallback |
| using | UpdateStepStartedCallbackHandle = UpdateStepStartedCallback* |
| using | UpdateStepProgressChangedCallback |
| using | UpdateStepProgressChangedCallbackHandle = UpdateStepProgressChangedCallback* |
| using | UpdateStepFinishedCallback = std::function<void(FirmwareUpdateStep updateStep)> |
| using | UpdateStepFinishedCallbackHandle = UpdateStepFinishedCallback* |
| using | UpdateFinishedCallback = std::function<void(void)> |
| using | UpdateFinishedCallbackHandle = UpdateFinishedCallback* |
| using | UpdateFailedCallback = std::function<void(const std::string& errorDescription)> |
| using | UpdateFailedCallbackHandle = UpdateFailedCallback* |
Friends | |
| class | FirmwareUpdater |
Allows to observe a firmware update process.
Observe a firmware update process by registering several callbacks. These callbacks get called when the observer is passed to the FirmwareUpdater::UpdateDevice() function. The callbacks inform about changes of the status of the firmware update process.
| using peak::core::FirmwareUpdateProgressObserver::UpdateFailedCallback = std::function<void(const std::string& errorDescription)> |
The type of update failed callbacks.
| using peak::core::FirmwareUpdateProgressObserver::UpdateFailedCallbackHandle = UpdateFailedCallback* |
The type of update failed callback handles.
| using peak::core::FirmwareUpdateProgressObserver::UpdateFinishedCallback = std::function<void(void)> |
The type of update finished callbacks.
| using peak::core::FirmwareUpdateProgressObserver::UpdateFinishedCallbackHandle = UpdateFinishedCallback* |
The type of update finished callback handles.
The type of update started callbacks.
| using peak::core::FirmwareUpdateProgressObserver::UpdateStartedCallbackHandle = UpdateStartedCallback* |
The type of update started callback handles.
| using peak::core::FirmwareUpdateProgressObserver::UpdateStepFinishedCallback = std::function<void(FirmwareUpdateStep updateStep)> |
The type of update step finished callbacks.
| using peak::core::FirmwareUpdateProgressObserver::UpdateStepFinishedCallbackHandle = UpdateStepFinishedCallback* |
The type of update step finished callback handles.
The type of update step progress changed callbacks.
| using peak::core::FirmwareUpdateProgressObserver::UpdateStepProgressChangedCallbackHandle = UpdateStepProgressChangedCallback* |
The type of update step progress changed callback handles.
The type of update step started callbacks.
| using peak::core::FirmwareUpdateProgressObserver::UpdateStepStartedCallbackHandle = UpdateStepStartedCallback* |
The type of update step started callback handles.
|
inline |
|
inline |
|
delete |
|
delete |
|
delete |
|
delete |
|
inline |
Registers a callback for signaling a failed update.
| [in] | callback | The callback to call if a update has failed. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Registers a callback for signaling a finished update.
| [in] | callback | The callback to call if a update is finished. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Registers a callback for signaling a started update.
| [in] | callback | The callback to call if a update is started. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Registers a callback for signaling a finished update step.
| [in] | callback | The callback to call if a update step is finished. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Registers a callback for signaling progress in an update step.
| [in] | callback | The callback to call if progress is made in a update step. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Registers a callback for signaling a started update step.
| [in] | callback | The callback to call if a update step is started. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters an update failed callback.
This function unregisters an update failed callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters an update finished callback.
This function unregisters an update finished callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters an update started callback.
This function unregisters an update started callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters an update step finished callback.
This function unregisters an update step finished callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters an update step progress changed callback.
This function unregisters an update step progress changed callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Unregisters an update step started callback.
This function unregisters an update step started callback by taking its handle.
| [in] | callbackHandle | The handle of the callback to unregister. |
| InternalErrorException | An internal error has occurred. |
|
friend |