Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::firmware_update_manager Class Reference

#include <fw-update-helper.h>

Inheritance diagram for rs2::firmware_update_manager:
Inheritance graph

Public Member Functions

 firmware_update_manager (std::shared_ptr< notifications_model > not_model, device_model &model, device dev, context ctx, std::vector< uint8_t > fw, bool is_signed)
const device_modelget_device_model () const
std::shared_ptr< notifications_modelget_protected_notification_model ()
- Public Member Functions inherited from rs2::process_manager
void check_error (std::string &error)
bool done () const
void fail (std::string error)
bool failed () const
const std::stringget_log () const
int get_progress () const
void log (std::string line)
 process_manager (std::string name)
void reset ()
void start (invoker invoke)
bool started () const
virtual ~process_manager ()=default

Private Member Functions

bool check_for (std::function< bool()> action, std::function< void()> cleanup, std::chrono::system_clock::duration delta)
void process_flow (std::function< void()> cleanup, invoker invoke) override

Private Attributes

context _ctx
device _dev
std::vector< uint8_t_fw
bool _is_signed
std::weak_ptr< notifications_model_not_model

Additional Inherited Members

- Protected Attributes inherited from rs2::process_manager
bool _done = false
bool _failed = false
std::string _last_error
std::string _log
std::mutex _log_lock
std::string _process_name
int _progress = 0
bool _started = false

Detailed Description

Definition at line 20 of file fw-update-helper.h.

Constructor & Destructor Documentation

rs2::firmware_update_manager::firmware_update_manager ( std::shared_ptr< notifications_model not_model,
device_model model,
device  dev,
context  ctx,
std::vector< uint8_t fw,
bool  is_signed 

Definition at line 23 of file fw-update-helper.h.

Member Function Documentation

bool rs2::firmware_update_manager::check_for ( std::function< bool()>  action,
std::function< void()>  cleanup,
std::chrono::system_clock::duration  delta 

Definition at line 134 of file fw-update-helper.cpp.

const device_model& rs2::firmware_update_manager::get_device_model ( ) const

Definition at line 27 of file fw-update-helper.h.

std::shared_ptr<notifications_model> rs2::firmware_update_manager::get_protected_notification_model ( )

Definition at line 28 of file fw-update-helper.h.

void rs2::firmware_update_manager::process_flow ( std::function< void()>  cleanup,
invoker  invoke 

Implements rs2::process_manager.

Definition at line 175 of file fw-update-helper.cpp.

Member Data Documentation

context rs2::firmware_update_manager::_ctx

Definition at line 39 of file fw-update-helper.h.

device rs2::firmware_update_manager::_dev

Definition at line 38 of file fw-update-helper.h.

std::vector<uint8_t> rs2::firmware_update_manager::_fw

Definition at line 40 of file fw-update-helper.h.

bool rs2::firmware_update_manager::_is_signed

Definition at line 41 of file fw-update-helper.h.

device_model& rs2::firmware_update_manager::_model

Definition at line 42 of file fw-update-helper.h.

std::weak_ptr<notifications_model> rs2::firmware_update_manager::_not_model

Definition at line 37 of file fw-update-helper.h.

The documentation for this class was generated from the following files:

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40