Zebra Bioptic Color Camera SDK For Linux  1.0.0-17
All Classes Functions Variables Enumerations Enumerator
zebra_camera_manager_client.h
1 #ifndef ZEBRA_CAMERA_MANAGER_CLIENT_H_
2 #define ZEBRA_CAMERA_MANAGER_CLIENT_H_
3 
4 #include <memory>
5 
6 #include "assets.h"
7 #include "firmware_download_event_args.h"
8 #include "device_manager_types.h"
9 #include "zebra_camera_manager_types.h"
10 #include "zebra_camera_client.h"
11 
12 namespace zebra {
13 namespace camera_sdk {
14 
18 struct Version
19 {
21  const uint16_t major;
23  const uint16_t minor;
25  const uint16_t patch;
27  const uint16_t build;
28 };
29 
30 class ZebraCameraClient;
31 
36 {
37 public:
38  virtual ~FirmwareDownloadEventListener() {}
39  virtual void EventReceived(FirmwareDownloadEventsArgs) = 0;
40 };
41 
46 {
47 public:
49  virtual ~ZebraCameraManagerClient();
50 
54  // virtual Version GetVersion() = 0;
55 
62  virtual std::shared_ptr<ZebraCameraClient> CreateZebraCamera(zebra::DeviceInfo camera_info) = 0;
63 
70  virtual std::shared_ptr<ZebraCameraClient> Reboot(
71  std::shared_ptr<ZebraCameraClient> camera_client, uint16_t timeout = 20) = 0;
72 
78  virtual void DownloadFirmware(std::shared_ptr<ZebraCameraClient> camera_client, std::string filepath) = 0;
79 
86  virtual std::shared_ptr<ZebraCameraClient> InstallFirmware(
87  std::shared_ptr<ZebraCameraClient> camera_client, uint16_t timeout = 20) = 0;
88 
93  virtual void CancelFirmwareDownload(std::shared_ptr<ZebraCameraClient> camera_client) = 0;
94 
95 
100  virtual void AddFirmwareDownloadEventListener(FirmwareDownloadEventListener& firmware_download_event_listener) = 0;
101 
102  /*
103  * Remove the specified firmware download event listener.
104  * @param firmware_download_event_listener Reference to the listener object to remove.
105  */
106  virtual void RemoveFirmwareDownloadEventListener(FirmwareDownloadEventListener& firmware_download_event_listener) = 0;
107 
113  virtual std::string RetrieveConfiguration(std::shared_ptr<ZebraCameraClient> camera_client) = 0;
114 
121  std::shared_ptr<ZebraCameraClient> camera_client, std::string configuration_file_path) = 0;
122 
129  virtual void LoadConfiguration(
130  std::shared_ptr<ZebraCameraClient> camera_client, std::string configuration, bool persist=true) = 0;
131 
139  std::shared_ptr<ZebraCameraClient> camera_client, std::string configuration_file_path, bool persist=true) = 0;
140 
141 };
142 
147 extern std::unique_ptr<ZebraCameraManagerClient> CreateZebraCameraManagerClient();
148 
149 } /* namespace camera_sdk */
150 } /* namespace zebra */
151 
152 #endif /* ZEBRA_CAMERA_MANAGER_CLIENT_H_ */
zebra::camera_sdk::Version::major
const uint16_t major
Definition: zebra_camera_manager_client.h:21
zebra::camera_sdk::ZebraCameraClient
Definition: zebra_camera_client.h:15
zebra::camera_sdk::Version::patch
const uint16_t patch
Definition: zebra_camera_manager_client.h:25
zebra::camera_sdk::ZebraCameraManagerClient::CancelFirmwareDownload
virtual void CancelFirmwareDownload(std::shared_ptr< ZebraCameraClient > camera_client)=0
zebra::camera_sdk::Version
Definition: zebra_camera_manager_client.h:19
zebra::camera_sdk::FirmwareDownloadEventsArgs
Definition: firmware_download_event_args.h:17
zebra::camera_sdk::ZebraCameraManagerClient::AddFirmwareDownloadEventListener
virtual void AddFirmwareDownloadEventListener(FirmwareDownloadEventListener &firmware_download_event_listener)=0
zebra::camera_sdk::ZebraCameraManagerClient::LoadConfigurationFromFile
virtual void LoadConfigurationFromFile(std::shared_ptr< ZebraCameraClient > camera_client, std::string configuration_file_path, bool persist=true)=0
zebra::camera_sdk::ZebraCameraManagerClient::LoadConfiguration
virtual void LoadConfiguration(std::shared_ptr< ZebraCameraClient > camera_client, std::string configuration, bool persist=true)=0
zebra::camera_sdk::Version::build
const uint16_t build
Definition: zebra_camera_manager_client.h:27
zebra::camera_sdk::ZebraCameraManagerClient::InstallFirmware
virtual std::shared_ptr< ZebraCameraClient > InstallFirmware(std::shared_ptr< ZebraCameraClient > camera_client, uint16_t timeout=20)=0
zebra::camera_sdk::FirmwareDownloadEventListener
Definition: zebra_camera_manager_client.h:36
zebra::camera_sdk::ZebraCameraManagerClient
Definition: zebra_camera_manager_client.h:46
zebra::camera_sdk::ZebraCameraManagerClient::Reboot
virtual std::shared_ptr< ZebraCameraClient > Reboot(std::shared_ptr< ZebraCameraClient > camera_client, uint16_t timeout=20)=0
zebra::camera_sdk::Version::minor
const uint16_t minor
Definition: zebra_camera_manager_client.h:23
zebra::camera_sdk::ZebraCameraManagerClient::RetrieveConfigurationToFile
virtual void RetrieveConfigurationToFile(std::shared_ptr< ZebraCameraClient > camera_client, std::string configuration_file_path)=0
zebra::camera_sdk::ZebraCameraManagerClient::DownloadFirmware
virtual void DownloadFirmware(std::shared_ptr< ZebraCameraClient > camera_client, std::string filepath)=0
zebra::camera_sdk::ZebraCameraManagerClient::CreateZebraCamera
virtual std::shared_ptr< ZebraCameraClient > CreateZebraCamera(zebra::DeviceInfo camera_info)=0
zebra::camera_sdk::ZebraCameraManagerClient::RetrieveConfiguration
virtual std::string RetrieveConfiguration(std::shared_ptr< ZebraCameraClient > camera_client)=0
zebra::DeviceInfo
Definition: device_manager_types.h:15