WebAPI.h 692 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef API_WEBAPI_H
  2. #define API_WEBAPI_H
  3. #include "Util/RecorderMutex.h"
  4. #include <HttpPostData.h>
  5. #include <HttpServer.h>
  6. #include <ctpl_stl.h>
  7. #include <string>
  8. #include <vector>
  9. namespace Http {
  10. class HttpClient;
  11. } // namespace Http
  12. namespace CameraRecorder {
  13. namespace API {
  14. class WebAPI
  15. {
  16. public:
  17. WebAPI();
  18. ~WebAPI();
  19. static Http::HttpServer::HttpReply ProcessQuery(ctpl::thread_pool* pThreadPool, Http::HttpClient* pHttpClient, Util::RecorderMutexPointer pRecorderMutex, const std::string& path, const std::string& ffmpeg, const std::string& uri, const std::vector<Http::HttpPostData>& postData);
  20. };
  21. } // namespace API
  22. } // namespace DomoticaServer
  23. #endif // API_WEBAPI_H