RICOH Camera USB SDK for C++  1.1.0
RICOH Camera USB SDK for C++
camera_event_listener.hpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Ricoh Company, Ltd. All Rights Reserved.
2 #ifndef RICOH_CAMERA_SDK_CAMERA_EVENT_LISTENER_HPP_
3 #define RICOH_CAMERA_SDK_CAMERA_EVENT_LISTENER_HPP_
4 
5 #include <memory>
6 
8 
9 namespace Ricoh {
10 namespace CameraController {
11 
12 class CameraDevice;
13 class CameraImage;
14 class Capture;
15 enum class DeviceInterface;
16 
21 public:
22  CameraEventListener(const CameraEventListener& rhs) = delete;
23  virtual ~CameraEventListener() = default;
24 
25  CameraEventListener& operator=(const CameraEventListener& rhs) = delete;
26 
35  virtual void imageAdded(const std::shared_ptr<const CameraDevice>& sender,
36  const std::shared_ptr<const CameraImage>& image) {}
37 
44  virtual void imageStored(const std::shared_ptr<const CameraDevice>& sender,
45  const std::shared_ptr<const CameraImage>& image) {}
46 
53  virtual void captureComplete(const std::shared_ptr<const CameraDevice>& sender,
54  const std::shared_ptr<const Capture>& capture) {}
55 
64  virtual void deviceDisconnected(const std::shared_ptr<const CameraDevice>& sender,
65  DeviceInterface inf) {}
66 
74  virtual void liveViewFrameUpdated(const std::shared_ptr<const CameraDevice>& sender,
75  const std::shared_ptr<const unsigned char>& liveViewFrame,
76  uint64_t frameSize) {}
77 
84  virtual void captureSettingsChanged(
85  const std::shared_ptr<const CameraDevice>& sender,
86  const std::vector<std::shared_ptr<const CaptureSetting>>& newSettings) {}
87 
88  protected:
89  CameraEventListener() = default;
90 };
91 
92 } // namespace CameraController
93 } // namespace Ricoh
94 
95 #endif // RICOH_CAMERA_SDK_CAMERA_EVENT_LISTENER_HPP_
96 
Definition: camera_device.hpp:13
#define RCSDK_API
Definition: export.hpp:17
The class of Event listener receiving notification from the camera device.
Definition: camera_event_listener.hpp:20
virtual void liveViewFrameUpdated(const std::shared_ptr< const CameraDevice > &sender, const std::shared_ptr< const unsigned char > &liveViewFrame, uint64_t frameSize)
Invoked when a liveview image data was send.
Definition: camera_event_listener.hpp:74
virtual void captureComplete(const std::shared_ptr< const CameraDevice > &sender, const std::shared_ptr< const Capture > &capture)
Invoked when a capture that has been started by this SDK was completed.
Definition: camera_event_listener.hpp:53
virtual void imageStored(const std::shared_ptr< const CameraDevice > &sender, const std::shared_ptr< const CameraImage > &image)
Invoked when a image was stored to a storage of the camera device.
Definition: camera_event_listener.hpp:44
virtual void captureSettingsChanged(const std::shared_ptr< const CameraDevice > &sender, const std::vector< std::shared_ptr< const CaptureSetting >> &newSettings)
Invoked when a capture setting was changed without being used setCaptureSettings method directly...
Definition: camera_event_listener.hpp:84
virtual void deviceDisconnected(const std::shared_ptr< const CameraDevice > &sender, DeviceInterface inf)
Invoked when the connection was broken unexpectedly.
Definition: camera_event_listener.hpp:64
DeviceInterface
The type of a interface for connection.
Definition: camera_device.hpp:27
virtual void imageAdded(const std::shared_ptr< const CameraDevice > &sender, const std::shared_ptr< const CameraImage > &image)
Invoked when a image was added to the camera device.
Definition: camera_event_listener.hpp:35