diff options
Diffstat (limited to 'video-ps3eye/module.cpp')
-rw-r--r-- | video-ps3eye/module.cpp | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/video-ps3eye/module.cpp b/video-ps3eye/module.cpp index b04c6acb..ac6d8807 100644 --- a/video-ps3eye/module.cpp +++ b/video-ps3eye/module.cpp @@ -1,5 +1,5 @@ #include "module.hpp" - +#if 0 #include <libusb.h> int device_count() @@ -48,3 +48,34 @@ bool check_device_exists() return ret; } +static const QString camera_name = QStringLiteral("PS3 Eye open driver"); + +namespace video::impl { + +std::vector<QString> ps3eye_camera_::camera_names() const +{ + if (check_device_exists()) + return { camera_name }; + else + return {}; +} +std::unique_ptr<camera> ps3eye_camera_::make_camera(const QString& name) +{ + if (name == camera_name && check_device_exists()) + return std::make_unique<ps3eye_camera>(); + else + return {}; +} +bool ps3eye_camera_::show_dialog(const QString& camera_name) +{ + // TODO + return false; +} +bool ps3eye_camera_::can_show_dialog(const QString& camera_name) +{ + return false; +} + +} // ns video::impl + +#endif |