OtaUpdaterClient Class Reference

Interacts with ota updater service.

#include <otaupdaterClient.h>

Inheritance diagram for OtaUpdaterClient:

Public Member Functions

 OtaUpdaterClient (std::string &ip, int dport, int sport)
 
void getStatus (dpyOtaupdater::status_handler_function handler)
 
void getStatus_S (dpyOtaupdater::status_handler_function handler)
 
void getStatus_U ()
 
void sync (dpyOtaupdater::result_handler_function handler)
 
void getUpdates (dpyOtaupdater::updateslist_handler_function handler)
 
void getVersion (dpyOtaupdater::versionlist_handler_function handler, std::vector< std::string > packages={""})
 
void getRemoteVersions (dpyOtaupdater::remoteversionlist_handler_function handler, std::vector< std::string > packages={})
 
void upgrade (dpyOtaupdater::result_handler_function handler, std::vector< std::string > packages={""})
 
void install (dpyOtaupdater::result_handler_function handler, std::vector< std::string > packages={""})
 
void uninstall (dpyOtaupdater::result_handler_function handler, std::vector< std::string > packages={""})
 
void rollback (dpyOtaupdater::result_handler_function handler)
 
void discard (dpyOtaupdater::result_handler_function handler)
 
void ack (dpyOtaupdater::result_handler_function handler)
 
void addChannel (dpyOtaupdater::result_handler_function handler, std::string name, dpyOtaupdater::Channel channel)
 
void delChannel (dpyOtaupdater::result_handler_function handler, std::string name)
 
void getChannels (dpyOtaupdater::channels_handler_function handler, std::string name="")
 
void getOperationPercentage (dpyOtaupdater::operation_percentage_handler_function handler)
 
void getOperationPercentage_S (dpyOtaupdater::operation_percentage_handler_function handler)
 
void getOperationPercentage_U ()
 
- Public Member Functions inherited from DpyMwClient
 DpyMwClient (std::string &ip, int dport, int sport)
 
void start ()
 
void stop ()
 
void subscribe (int messageType, boost::any handler)
 
void unsubscribe (int messageType)
 
bool isAlive ()
 
void monitorServiceAvailability_S (const f_hearbeat_handler &handler)
 
void monitorServiceAvailability_U ()
 

Additional Inherited Members

- Protected Member Functions inherited from DpyMwClient
void sendRequest (int requestType, int responseType, std::string content, boost::any handler, int ms_timeout=2000)
 
- Protected Attributes inherited from DpyMwClient
map_proto_register_client m_register_map
 
std::mutex m_map_mutex