The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
manager_ui.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2008 by David White <dave@whitevine.net>
3  2008 - 2015 by Ignacio Riquelme Morelle <shadowm2006@gmail.com>
4  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 #pragma once
17 
18 #include <string>
19 #include <vector>
20 
21 /**
22  * Shows the add-ons server connection dialog, for access to the various management front-ends.
23  *
24  * @return @a true when one or more add-ons have been successfully installed or
25  * removed, thus requiring a local WML cache refresh. @a false otherwise.
26  */
27 bool manage_addons();
28 
29 /**
30  * Conducts an ad-hoc add-ons server connection to download an add-on with a particular id and all
31  * it's dependencies. Launches gui dialogs when issues arise.
32  *
33  * @param addon_ids The ids of the target add-on.
34  *
35  * @return @a true when we successfully installed the target (possibly the user chose to ignore failures)
36  */
37 bool ad_hoc_addon_fetch_session(const std::vector<std::string>& addon_ids);
bool manage_addons()
Shows the add-ons server connection dialog, for access to the various management front-ends.
Definition: manager_ui.cpp:228
bool ad_hoc_addon_fetch_session(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 ...
Definition: manager_ui.cpp:255