WebAPI.h 617 B

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