/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include #include #include #include #include // a minimal blocking https GET for the services the editor fetches its aids from (orthophoto, terrain model) namespace editor_http { // true to give the transfer up using stop_check = std::function; // one instance per worker thread class client { public: client(); ~client(); client(client const &) = delete; client &operator=(client const &) = delete; bool get(std::string const &Url, std::vector &Out, std::string &Error, stop_check const &Stop); private: struct platform; std::unique_ptr m_platform; }; // whether this build can fetch anything bool available(); } // namespace editor_http