ClassFlowTakeImage.h 841 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #ifndef CLASSFFLOWTAKEIMAGE_H
  3. #define CLASSFFLOWTAKEIMAGE_H
  4. #include "ClassFlowImage.h"
  5. #include "ClassControllCamera.h"
  6. #include "../../include/defines.h"
  7. #include <string>
  8. class ClassFlowTakeImage : public ClassFlowImage
  9. {
  10. protected:
  11. time_t TimeImageTaken;
  12. string namerawimage;
  13. bool takePictureWithFlash(int flash_duration);
  14. void SetInitialParameter(void);
  15. public:
  16. CImageBasis *rawImage;
  17. ClassFlowTakeImage(std::vector<ClassFlow *> *lfc);
  18. bool ReadParameter(FILE *pfile, string &aktparamgraph);
  19. bool doFlow(string time);
  20. string getHTMLSingleStep(string host);
  21. time_t getTimeImageTaken(void);
  22. string name() { return "ClassFlowTakeImage"; };
  23. esp_err_t SendRawJPG(httpd_req_t *req, bool previewCapture);
  24. ~ClassFlowTakeImage(void);
  25. };
  26. #endif // CLASSFFLOWTAKEIMAGE_H