15 #ifndef ADDON_INFO_HPP_INCLUDED
16 #define ADDON_INFO_HPP_INCLUDED
27 typedef std::map<std::string, addon_info>
addons_list;
65 : id(), title(), description(), icon()
66 , version(), author(), size(), downloads()
67 , uploads(), type(), locales()
77 : id(), title(), description(), icon()
78 , version(), author(), size(), downloads()
79 , uploads(), type(), locales()
93 this->title = o.
title;
108 this->order = o.
order;
ADDON_TYPE
Values used for add-on classification; UI-only at the moment, in the future it could be used for dire...
addon_info & operator=(const addon_info &o)
addon_info(const config &cfg)
void write_minimal(config &cfg) const
Write only minimal WML used for state tracking (_info.cfg) files.
std::string make_addon_title(const std::string &id)
Replaces underscores to dress up file or dirnames as add-on titles.
std::string display_title() const
Get a title or automatic title for display.
std::map< std::string, addon_info > addons_list
std::string display_icon() const
Get an icon path fixed for display (e.g.
void read(const config &cfg)
std::vector< std::string > locales
std::string display_type() const
Get an add-on type identifier for display in the user's language.
std::string size_display_string(double size)
Get a human-readable representation of the specified byte count.
Represents version numbers.
void write(config &cfg) const
std::vector< std::string > depends
A config object defines a single node in a WML file, with access to child nodes.
Interfaces for manipulating version numbers of engine, add-ons, etc.
GLsizei const GLcharARB ** string
std::set< std::string > resolve_dependencies(const addons_list &addons) const
Resolve an add-on's dependency tree in a recursive fashion.
void read_addons_list(const config &cfg, addons_list &dest)
Parse the specified add-ons list WML into an actual addons_list object.