dpyOtaupdater Namespace Reference
Deepsy Otaupdater namespace that includes the different enums, structs or method signatures that should be used.
Classes | |
struct | Channel |
Typedefs | |
typedef boost::function< void(const bool &available)> | service_availability_handler |
Prototype of the handler function used to monitor service availability. More... | |
typedef boost::function< void(boost::system::error_code error_code, int status, int rfsstatus)> | status_handler_function |
Handler for status function callback. More... | |
typedef boost::function< void(boost::system::error_code error_code, std::vector< std::pair< std::string, std::string >> &updatesList)> | updateslist_handler_function |
Handler for getUpdates function callback. More... | |
typedef boost::function< void(boost::system::error_code error_code, std::map< std::string, std::pair< std::string, std::string >> &versionList)> | versionlist_handler_function |
Handler for getVersions function callback. More... | |
typedef boost::function< void(boost::system::error_code error_code)> | result_handler_function |
Handler for command function callback. More... | |
typedef boost::function< void(boost::system::error_code error_code, std::vector< std::pair< std::string, Channel >> &channelList)> | channels_handler_function |
Handler for getchannels function callback. More... | |
typedef boost::function< void(boost::system::error_code error_code, std::vector< std::pair< std::string, std::string >> &updatesList)> | remoteversionlist_handler_function |
Handler for GetRemoteVersions function callback. More... | |
typedef boost::function< void(boost::system::error_code error_code, int operation, int percentage)> | operation_percentage_handler_function |
Handler for operation percentage function callback. More... | |
Enumerations | |
enum | ServiceStatus { INIT = 0, SYNCHRONIZING = 1, IDLE = 2, RECOVERING = 3, OPERATING = 4, COMPLETE_RFS = 5, END = 6 } |
enum | AltRFSStatus { OK = 0, ERROR = 1, IN_PROCESS = 2, UPGRADED = 3, BACKUP = 4 } |
enum | OperationType { NO_OPERATING = 0, INSTALLING = 1, UPGRADING = 2, REMOVING = 3, DOWNLOADING = 4 } |
Typedef Documentation
typedef boost::function<void(boost::system::error_code error_code, std::vector<std::pair<std::string, Channel>> &channelList)> channels_handler_function |
This type of function is called when the getchannels callback is done.
- Parameters
-
error_code error code (if any) channelList vector with the updates list
typedef boost::function<void(boost::system::error_code error_code, int operation, int percentage)> operation_percentage_handler_function |
This type of function is called when the operation percentage callback is done.
- Parameters
-
error_code error code (if any) operation enum of the current operation percentage 0-100 value that indicates the operation percentage
typedef boost::function<void(boost::system::error_code error_code, std::vector<std::pair<std::string, std::string>> &updatesList)> remoteversionlist_handler_function |
- Parameters
-
error_code error code (if any) updatesList vector with the packages version list
typedef boost::function<void(boost::system::error_code error_code)> result_handler_function |
This type of function is called when a command (start,stop,add,del) callback is done.
- Parameters
-
error_code error code (if any)
typedef boost::function<void(const bool &available)> service_availability_handler |
- Parameters
-
available true if the service is available, false otherwise
typedef boost::function<void(boost::system::error_code error_code, int status, int rfsstatus)> status_handler_function |
This type of function is called when the status callback is done.
- Parameters
-
error_code error code (if any) status with the service status status with the alternative RFS status
typedef boost::function<void(boost::system::error_code error_code, std::vector<std::pair<std::string, std::string>> &updatesList)> updateslist_handler_function |
- Parameters
-
error_code error code (if any) versionList vector with the packages version list
typedef boost::function<void(boost::system::error_code error_code, std::map<std::string, std::pair<std::string, std::string>> &versionList)> versionlist_handler_function |
- Parameters
-
error_code error code (if any) versionList vector with the packages version list
Enumeration Type Documentation
enum AltRFSStatus |
enum OperationType |
enum ServiceStatus |