The Battle for Wesnoth  1.13.4+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 "font.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
Include dependency graph for state.cpp:

Go to the source code of this file.

Macros

#define LOG_AC   LOG_STREAM(info, log_addons_client)
 

Functions

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

Variables

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

Macro Definition Documentation

#define LOG_AC   LOG_STREAM(info, log_addons_client)

Definition at line 24 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.

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

Definition at line 26 of file state.cpp.

References ADDON_INSTALLED, 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_tracking_info::remote_version, addon_tracking_info::state, and addon_info::version.

Referenced by gui2::taddon_list::pre_show().

Variable Documentation

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