19 #include "addon/manager.hpp"
23 #define LOG_AC LOG_STREAM(info, log_addons_client)
27 const std::string&
id = addon.
id;
39 t.remote_version = *addon.
versions.begin();
47 t.installed_version = pbl[
"version"].str();
56 t.remote_version = *addon.
versions.begin();
62 }
else if(
t.remote_version ==
t.installed_version) {
64 }
else if(
t.remote_version >
t.installed_version) {
config get_addon_pbl_info(const std::string &addon_name, bool do_validate)
Gets the publish information for an add-on.
bool have_addon_in_vcs_tree(const std::string &addon_name)
Returns whether the specified add-on appears to be managed by a VCS or not.
bool have_addon_pbl_info(const std::string &addon_name)
Returns whether a .pbl file is present for the specified add-on or not.
version_info get_addon_version_info(const std::string &addon)
Returns a particular installed add-on's version information.
bool is_addon_installed(const std::string &addon_name)
Check whether the specified add-on is currently installed.
A config object defines a single node in a WML file, with access to child nodes.
bool has_attribute(config_key_type key) const
Definitions for the interface to Wesnoth Markup Language (WML).
Standard logging facilities (interface).
addon_tracking_info get_addon_tracking_info(const addon_info &addon)
Get information about an add-on comparing its local state with the add-ons server entry.
static lg::log_domain log_addons_client("addons-client")
@ ADDON_INSTALLED_OUTDATED
Version in the server is older than local installation.
@ ADDON_NONE
Add-on is not installed.
@ ADDON_INSTALLED_UPGRADABLE
Version in the server is newer than local installation.
@ ADDON_INSTALLED
Version in the server matches local installation.
@ ADDON_INSTALLED_LOCAL_ONLY
No version in the server.
version_info current_version
std::set< version_info, std::greater< version_info > > versions
Stores additional status information about add-ons.