ClassFlowTakeImage.h 891 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. 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, string &aktparamgraph);
  20. bool doFlow(string time);
  21. string getHTMLSingleStep(string host);
  22. time_t getTimeImageTaken(void);
  23. 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