7 #ifndef __LIBCAMERA_CAMERA_MANAGER_H__
8 #define __LIBCAMERA_CAMERA_MANAGER_H__
12 #include <sys/types.h>
21 class EventDispatcher;
34 std::vector<std::shared_ptr<Camera>>
cameras()
const;
35 std::shared_ptr<Camera>
get(
const std::string &name);
36 std::shared_ptr<Camera>
get(dev_t devnum);
38 void addCamera(std::shared_ptr<Camera> camera,
39 const std::vector<dev_t> &devnums);
42 static const std::string &
version() {
return version_; }
51 static const std::string version_;
55 std::unique_ptr<Private> p_;
Provide access and manage all cameras in the system.
Definition: camera_manager.h:24
std::vector< std::shared_ptr< Camera > > cameras() const
Retrieve all available cameras.
Definition: camera_manager.cpp:320
static const std::string & version()
Retrieve the libcamera version string.
Definition: camera_manager.h:42
int start()
Start the camera manager.
Definition: camera_manager.cpp:281
void removeCamera(std::shared_ptr< Camera > camera)
Remove a camera from the camera manager.
Definition: camera_manager.cpp:438
void addCamera(std::shared_ptr< Camera > camera, const std::vector< dev_t > &devnums)
Add a camera to the camera manager.
Definition: camera_manager.cpp:419
Signal< std::shared_ptr< Camera > > cameraAdded
Notify of a new camera added to the system.
Definition: camera_manager.h:47
Signal< std::shared_ptr< Camera > > cameraRemoved
Notify of a new camera removed from the system.
Definition: camera_manager.h:48
std::shared_ptr< Camera > get(const std::string &name)
Get a camera based on name.
Definition: camera_manager.cpp:338
void stop()
Stop the camera manager.
Definition: camera_manager.cpp:303
EventDispatcher * eventDispatcher()
Retrieve the event dispatcher.
Definition: camera_manager.cpp:482
void setEventDispatcher(std::unique_ptr< EventDispatcher > dispatcher)
Set the event dispatcher.
Definition: camera_manager.cpp:466
Interface to manage the libcamera events and timers.
Definition: event_dispatcher.h:18
Base object to support automatic signal disconnection.
Definition: object.h:25
Generic signal and slot communication mechanism.
Definition: signal.h:39
Base object to support automatic signal disconnection.
Signal & slot implementation.