#include "config.hpp"#include "version.hpp"#include "addon/validation.hpp"#include <set>

Go to the source code of this file.
Classes | |
| struct | addon_info |
Typedefs | |
| typedef std::map< std::string, addon_info > | addons_list |
Functions | |
| void | read_addons_list (const config &cfg, addons_list &dest) |
| Parse the specified add-ons list WML into an actual addons_list object. | |
| std::string | size_display_string (double size) |
| Get a human-readable representation of the specified byte count. | |
| std::string | make_addon_title (const std::string &id) |
| Replaces underscores to dress up file or dirnames as add-on titles. | |
| typedef std::map<std::string, addon_info> addons_list |
| std::string make_addon_title | ( | const std::string & | id | ) |
Replaces underscores to dress up file or dirnames as add-on titles.
Definition at line 209 of file info.cpp.
Referenced by addons_client::delete_remote_addon(), addon_info::display_title(), gui2::taddon_uninstall_list::pre_show(), and addons_client::upload_addon().

| void read_addons_list | ( | const config & | cfg, | |
| addons_list & | dest | |||
| ) |
Parse the specified add-ons list WML into an actual addons_list object.
| cfg | Add-ons list WML, currently a [campaigns] node from a server response. | |
| dest | Target addons_list object. It will be cleared first. |
Definition at line 184 of file info.cpp.
References config::child_range(), and ERR_AC.

| std::string size_display_string | ( | double | size | ) |
Get a human-readable representation of the specified byte count.
The result includes the size unit, which is the largest byte multiply that makes sense. (e.g. 1 MiB for 1048576 bytes.)
Definition at line 200 of file info.cpp.
References _, and utils::si_string().
Referenced by gui2::taddon_description::taddon_description().


| Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:27 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |