ClassFlowTakeImage.h 908 B

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