The Battle for Wesnoth  1.13.4+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 <[email protected]>
3  2008 - 2015 by Ignacio Riquelme Morelle <[email protected]>
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 #ifndef ADDON_MANAGER_UI_HPP_INCLUDED
17 #define ADDON_MANAGER_UI_HPP_INCLUDED
18 
19 #include <string>
20 #include <vector>
21 
22 class display;
23 class CVideo;
24 
25 /**
26  * Shows the add-ons server connection dialog, for access to the various management front-ends.
27  *
28  * @param v Target for UI rendering.
29  *
30  * @return @a true when one or more add-ons have been successfully installed or
31  * removed, thus requiring a local WML cache refresh. @a false otherwise.
32  */
33 bool manage_addons(CVideo& v);
34 
35 /**
36  * Conducts an ad-hoc add-ons server connection to download an add-on with a particular id and all
37  * it's dependencies. Launches gui dialogs when issues arise.
38  *
39  * @param v Target for UI rendering.
40  * @param addon_ids The ids of the target add-on.
41  *
42  * @return @a true when we successfully installed the target (possibly the user chose to ignore failures)
43  */
44 bool ad_hoc_addon_fetch_session(CVideo& v, const std::vector<std::string>& addon_ids);
45 
46 #endif
Definition: video.hpp:58
const GLdouble * v
Definition: glew.h:1359
bool manage_addons(CVideo &v)
Shows the add-ons server connection dialog, for access to the various management front-ends.
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 ...