The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions | Variables
state.cpp File Reference
#include "addon/state.hpp"
#include "config.hpp"
#include "addon/manager.hpp"
#include "log.hpp"
Include dependency graph for state.cpp:

Go to the source code of this file.


#define LOG_AC   LOG_STREAM(info, log_addons_client)


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. More...


static lg::log_domain log_addons_client ("addons-client")

Macro Definition Documentation

#define LOG_AC   LOG_STREAM(info, log_addons_client)

Definition at line 22 of file state.cpp.

Function Documentation

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.

The add-on doesn't need to be locally installed; this is part of the retrieved information.

addonThe add-ons server entry information.
The local tracking status information.

Definition at line 24 of file state.cpp.

References ADDON_INSTALLED, ADDON_INSTALLED_LOCAL_ONLY, ADDON_INSTALLED_OUTDATED, ADDON_INSTALLED_UPGRADABLE, ADDON_NONE, addon_tracking_info::can_publish, get_addon_pbl_info(), get_addon_version_info(), config::has_attribute(), have_addon_in_vcs_tree(), have_addon_pbl_info(), addon_info::id, addon_tracking_info::in_version_control, addon_tracking_info::installed_version, is_addon_installed(), addon_info::local_only, addon_tracking_info::remote_version, addon_tracking_info::state, t, and addon_info::version.

Referenced by gui2::addon_list::get_remote_addon_id(), gui2::dialogs::addon_manager::load_addon_list(), and gui2::addon_list::set_addons().

Variable Documentation

lg::log_domain log_addons_client("addons-client")