OtaUpdater Class Reference
Allows to interact with a ota updater service.
#include <otaupdaterApi.h>
Public Member Functions | |
OtaUpdater (std::string ip="127.0.0.1") | |
bool | isAlive () |
void | monitorServiceAvailability_S (dpyOtaupdater::service_availability_handler handler) |
void | monitorServiceAvailability_U () |
void | asyncGetUpdates (dpyOtaupdater::updateslist_handler_function handler) |
void | asyncGetStatus (dpyOtaupdater::status_handler_function handler) |
void | getStatus_S (dpyOtaupdater::status_handler_function handler) |
void | getStatus_U () |
void | asyncRepoSync (dpyOtaupdater::result_handler_function handler) |
void | asyncUpgrade (dpyOtaupdater::result_handler_function handler, std::vector< std::string > packages={""}) |
void | asyncInstall (dpyOtaupdater::result_handler_function handler, std::vector< std::string > packages={""}) |
void | asyncUninstall (dpyOtaupdater::result_handler_function handler, std::vector< std::string > packages={""}) |
void | asyncGetVersions (dpyOtaupdater::versionlist_handler_function handler, std::vector< std::string > packages={""}) |
void | asyncGetRemoteVersions (dpyOtaupdater::remoteversionlist_handler_function handler, std::vector< std::string > packages={}) |
void | asyncRollback (dpyOtaupdater::result_handler_function handler) |
void | asyncDiscard (dpyOtaupdater::result_handler_function handler) |
void | asyncAck (dpyOtaupdater::result_handler_function) |
void | asyncAddChannel (dpyOtaupdater::result_handler_function handler, std::string name, dpyOtaupdater::Channel channel) |
void | asyncDelChannel (dpyOtaupdater::result_handler_function handler, std::string name) |
void | asyncGetChannels (dpyOtaupdater::channels_handler_function handler) |
void | asyncGetOperationPercentage (dpyOtaupdater::operation_percentage_handler_function handler) |
void | getOperationPercentage_S (dpyOtaupdater::operation_percentage_handler_function handler) |
void | getOperationPercentage_U () |
Member Function Documentation
bool isAlive | ( | ) |
TESTING : define this flag to fake/mock DPY API methods to be able to unit test classes which use DPY APIs.