gphoto2pp
A C++ Wrapper for libgphoto2
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
helper_camera_wrapper.hpp
Go to the documentation of this file.
1 
25 #ifndef HELPERCAMERAWRAPPER_HPP
26 #define HELPERCAMERAWRAPPER_HPP
27 
30 
31 #include <string>
32 #include <vector>
33 
34 namespace gphoto2pp
35 {
36  // Forward Declarations
37  class CameraWrapper;
38  class CameraFileWrapper;
39 
40  namespace helper
41  {
49  void capturePreview(CameraWrapper& cameraWrapper, std::string const & outputFilename);
50 
58  void capturePreview(CameraWrapper& cameraWrapper, std::ostream& outputStream);
59 
69  void capture(CameraWrapper& cameraWrapper, CameraFileWrapper& cameraFile, bool autoDeleteFileFromSrc = false, CameraCaptureTypeWrapper const & captureType = CameraCaptureTypeWrapper::Image, CameraFileTypeWrapper const & fileType = CameraFileTypeWrapper::Normal);
70 
80  void capture(CameraWrapper& cameraWrapper, std::string const & outputFilename, bool autoDeleteFileFromSrc = false, CameraCaptureTypeWrapper const & captureType = CameraCaptureTypeWrapper::Image, CameraFileTypeWrapper const & fileType = CameraFileTypeWrapper::Normal);
81 
91  void capture(CameraWrapper& cameraWrapper, std::ostream& outputStream, bool autoDeleteFileFromSrc = false, CameraCaptureTypeWrapper const & captureType = CameraCaptureTypeWrapper::Image, CameraFileTypeWrapper const & fileType = CameraFileTypeWrapper::Normal);
92 
99  std::vector<std::string> getAllFolders(CameraWrapper& cameraWrapper);
100 
107  std::vector<std::string> getAllFiles(CameraWrapper& cameraWrapper);
108 
114  void setCanonCapture(CameraWrapper& cameraWrapper, bool capture);
115  }
116 }
117 
118 #endif // HELPERCAMERAWRAPPER_HPP