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