WebAPI.h 577 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef API_WEBAPI_H
  2. #define API_WEBAPI_H
  3. #include <HttpPostData.h>
  4. #include <ctpl_stl.h>
  5. #include <string>
  6. #include <vector>
  7. namespace Http {
  8. class HttpClient;
  9. } // namespace Http
  10. namespace CameraRecorder {
  11. namespace API {
  12. class WebAPI
  13. {
  14. public:
  15. WebAPI();
  16. ~WebAPI();
  17. static std::string 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);
  18. };
  19. } // namespace API
  20. } // namespace DomoticaServer
  21. #endif // API_WEBAPI_H