The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
manager_ui.hpp File Reference
#include <string>
#include <vector>
Include dependency graph for manager_ui.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool manage_addons (CVideo &v)
 Shows the add-ons server connection dialog, for access to the various management front-ends. More...
 
bool ad_hoc_addon_fetch_session (CVideo &v, const std::vector< std::string > &addon_ids)
 Conducts an ad-hoc add-ons server connection to download an add-on with a particular id and all it's dependencies. More...
 

Function Documentation

bool ad_hoc_addon_fetch_session ( CVideo v,
const std::vector< std::string > &  addon_ids 
)

Conducts an ad-hoc add-ons server connection to download an add-on with a particular id and all it's dependencies.

Launches gui dialogs when issues arise.

Parameters
vTarget for UI rendering.
addon_idsThe ids of the target add-on.
Returns
true when we successfully installed the target (possibly the user chose to ignore failures)

Definition at line 1225 of file manager_ui.cpp.

References _(), preferences::campaign_server(), addons_client::connect(), ERR_CFG, ERR_FS, ERR_NET, LOG_AC, game::error::message, invalid_pbl_exception::message, invalid_pbl_exception::path, twml_exception::show(), gui2::show_error_message(), vgettext(), and game::error::what().

Referenced by mp::handle_addon_requirements_gui().

bool manage_addons ( CVideo v)

Shows the add-ons server connection dialog, for access to the various management front-ends.

Parameters
vTarget for UI rendering.
Returns
true when one or more add-ons have been successfully installed or removed, thus requiring a local WML cache refresh. false otherwise.

Definition at line 1198 of file manager_ui.cpp.

References preferences::campaign_server(), gui2::tdialog::get_retval(), installed_addons(), gui2::twindow::OK, and gui2::tdialog::show().

Referenced by do_gameloop().