16 #ifndef ADDON_MANAGER_HPP_INCLUDED
17 #define ADDON_MANAGER_HPP_INCLUDED
std::vector< std::string > available_addons()
Returns a list of local add-ons that can be published.
invalid_pbl_exception(const std::string &pbl_path, const std::string &msg)
Constructor.
void refresh_addon_version_info_cache()
Refreshes the per-session cache of add-on's version information structs.
const std::string path
Path to the faulty .pbl file.
void get_addon_pbl_info(const std::string &addon_name, class config &cfg)
Gets the publish information for an add-on.
void set_addon_pbl_info(const std::string &addon_name, const class config &cfg)
Sets the publish information for an add-on.
bool have_addon_in_vcs_tree(const std::string &addon_name)
Returns true if the specified add-ons appear to be managed by a 'supported' VCS.
bool have_addon_install_info(const std::string &addon_name)
Returns true if there is a local installation info (_info.cfg) file for the add-on.
Exception thrown when the WML parser fails to read a .pbl file.
bool have_addon_pbl_info(const std::string &addon_name)
Returns true if there's a local .pbl file stored for the specified add-on.
bool remove_local_addon(const std::string &addon)
void archive_addon(const std::string &addon_name, class config &cfg)
Archives an add-on into a config object for campaignd transactions.
GLsizei const char ** path
const std::string message
Error message to display.
bool is_addon_installed(const std::string &addon_name)
Check whether the specified add-on is currently installed.
void unarchive_addon(const class config &cfg)
Unarchives an add-on from campaignd's retrieved config object.
version_info get_addon_version_info(const std::string &addon)
Returns a particular installed add-on's version information.
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
Represents version numbers.
GLsizei GLenum GLuint GLuint GLsizei char * message
void get_addon_install_info(const std::string &addon_name, class config &cfg)
Gets the installation info (_info.cfg) for an add-on.
A config object defines a single node in a WML file, with access to child nodes.
std::vector< std::string > installed_addons()
Retrieves the names of all installed add-ons.
GLsizei const GLcharARB ** string