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