#include "addon/manager_ui.hpp"
#include "addon/info.hpp"
#include "addon/manager.hpp"
#include "addon/state.hpp"
#include "dialogs.hpp"
#include "filesystem.hpp"
#include "formatter.hpp"
#include "formula/string_utils.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "gui/dialogs/addon/list.hpp"
#include "gui/dialogs/addon/description.hpp"
#include "gui/dialogs/addon/filter_options.hpp"
#include "gui/dialogs/addon/uninstall_list.hpp"
#include "gui/dialogs/addon/connect.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/dialogs/simple_item_selector.hpp"
#include "gui/dialogs/transient_message.hpp"
#include "gui/widgets/window.hpp"
#include "gui/widgets/settings.hpp"
#include "help/help_button.hpp"
#include "image.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "wml_separators.hpp"
#include "wml_exception.hpp"
#include <boost/scoped_ptr.hpp>
#include "addon/client.hpp"
Go to the source code of this file.
Macros | |
#define | ERR_CFG LOG_STREAM(err, log_config) |
#define | ERR_NET LOG_STREAM(err, log_network) |
#define | ERR_FS LOG_STREAM(err, log_filesystem) |
#define | ERR_AC LOG_STREAM(err , log_addons_client) |
#define | WRN_AC LOG_STREAM(warn, log_addons_client) |
#define | LOG_AC LOG_STREAM(info, log_addons_client) |
#define | DBG_AC LOG_STREAM(debug, log_addons_client) |
Enumerations | |
enum | OUTCOME |
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... | |
Variables | |
static lg::log_domain | log_config ("config") |
static lg::log_domain | log_network ("network") |
static lg::log_domain | log_filesystem ("filesystem") |
static lg::log_domain | log_addons_client ("addons-client") |
#define DBG_AC LOG_STREAM(debug, log_addons_client) |
Definition at line 62 of file manager_ui.cpp.
#define ERR_AC LOG_STREAM(err , log_addons_client) |
Definition at line 59 of file manager_ui.cpp.
#define ERR_CFG LOG_STREAM(err, log_config) |
Definition at line 53 of file manager_ui.cpp.
Referenced by ad_hoc_addon_fetch_session().
#define ERR_FS LOG_STREAM(err, log_filesystem) |
Definition at line 57 of file manager_ui.cpp.
Referenced by ad_hoc_addon_fetch_session().
#define ERR_NET LOG_STREAM(err, log_network) |
Definition at line 55 of file manager_ui.cpp.
Referenced by ad_hoc_addon_fetch_session().
#define LOG_AC LOG_STREAM(info, log_addons_client) |
Definition at line 61 of file manager_ui.cpp.
Referenced by ad_hoc_addon_fetch_session().
#define WRN_AC LOG_STREAM(warn, log_addons_client) |
Definition at line 60 of file manager_ui.cpp.
enum OUTCOME |
Definition at line 138 of file manager_ui.cpp.
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.
v | Target for UI rendering. |
addon_ids | The ids of the target add-on. |
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.
v | Target for UI rendering. |
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().
|
static |
|
static |
|
static |
|
static |