virtual ~FGHTTPClient();
void makeRequest(const simgear::HTTP::Request_ptr& req);
+
+ simgear::HTTP::Client* client() { return _http.get(); }
+ simgear::HTTP::Client const* client() const { return _http.get(); }
virtual void init();
+ virtual void postinit();
virtual void shutdown();
- virtual void update(double dt);
-
+ virtual void update(double);
+
+ bool isDefaultCatalogInstalled() const;
+ void addDefaultCatalog();
+
+ std::string getDefaultCatalogId() const;
+ std::string getDefaultCatalogUrl() const;
private:
+ class FGDelegate;
+
+ bool _inited;
std::auto_ptr<simgear::HTTP::Client> _http;
+ std::auto_ptr<FGDelegate> _packageDelegate;
};
#endif // FG_HTTP_CLIENT_HXX