16 #ifndef ADDON_CLIENT_HPP_INCLUDED
17 #define ADDON_CLIENT_HPP_INCLUDED
20 #include <boost/noncopyable.hpp>
Dialog that tracks network transmissions.
bool download_addon(config &archive_cfg, const std::string &id, const std::string &title, bool increase_downloads=true)
Downloads the specified add-on from the server.
network_asio::connection * conn_
bool update_last_error(config &response_cfg)
addons_client(CVideo &v, const std::string &address)
Constructor.
bool install_addon(config &archive_cfg, const addon_info &info)
Installs the specified add-on using an archive received from the server.
gui2::tnetwork_transmission * stat_
void send_request(const config &request, config &response)
Sends a request to the add-ons server.
const std::string & get_last_server_error() const
Returns the last error message sent by the server, or an empty string.
void check_connected() const
Makes sure the add-ons server connection is working.
A class that represents a TCP/IP connection.
void connect()
Try to establish a connection to the add-ons server.
Add-ons (campaignd) client class.
GLuint GLuint64EXT address
void wait_for_transfer_done(const std::string &status_message, bool track_upload=false)
Waits for a network transfer, displaying a status window.
bool upload_addon(const std::string &id, std::string &response_message, config &cfg)
Requests the specified add-on to be uploaded.
A config object defines a single node in a WML file, with access to child nodes.
bool delete_remote_addon(const std::string &id, std::string &response_message)
Requests the specified add-on to be removed from the server.
bool request_distribution_terms(std::string &terms)
Request the add-ons server distribution terms message.
GLsizei const GLcharARB ** string
bool request_addons_list(config &cfg)
Request the add-ons list from the server.
void send_simple_request(const std::string &request_string, config &response)
Sends a simple request message to the add-ons server.