72 virtual const char*
what() const noexcept {
bool remove_local_addon(const std::string &addon)
Removes the specified add-on, deleting its full directory structure.
config get_addon_pbl_info(const std::string &addon_name, bool do_validate)
Gets the publish information for an add-on.
bool have_addon_in_vcs_tree(const std::string &addon_name)
Returns whether the specified add-on appears to be managed by a VCS or not.
void set_addon_pbl_info(const std::string &addon_name, const class config &cfg)
Sets the publish information for an add-on.
void unarchive_addon(const class config &cfg, std::function< void(unsigned)> progress_callback={})
Unarchives an add-on from campaignd's retrieved config object.
void purge_addon(const config &removelist)
Removes the listed files from the addon.
void get_addon_install_info(const std::string &addon_name, class config &cfg)
Gets the installation info (_info.cfg) for an add-on.
void write_addon_install_info(const std::string &addon_name, const class config &cfg)
Writes the installation info (_info.cfg) for an add-on to disk.
std::map< std::string, std::string > installed_addons_and_versions()
Retrieves the ids and versions of all installed add-ons.
bool have_addon_pbl_info(const std::string &addon_name)
Returns whether a .pbl file is present for the specified add-on or not.
std::vector< std::string > available_addons()
Returns a list of local add-ons that can be published.
std::vector< std::string > installed_addons()
Retrieves the names of all installed add-ons.
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.
void refresh_addon_version_info_cache()
Refreshes the per-session cache of add-on's version information structs.
version_info get_addon_version_info(const std::string &addon)
Returns a particular installed add-on's version information.
bool is_addon_installed(const std::string &addon_name)
Check whether the specified add-on is currently installed.
void archive_addon(const std::string &addon_name, class config &cfg)
Archives an add-on into a config object for campaignd transactions.
A config object defines a single node in a WML file, with access to child nodes.
Represents version numbers.
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
Exception thrown when the WML parser fails to read a .pbl file.
const std::string path
Path to the faulty .pbl file.
virtual ~invalid_pbl_exception() noexcept
Destructor.
virtual const char * what() const noexcept
Returns a pointer to the (constant) error description.
invalid_pbl_exception(const std::string &pbl_path, const std::string &msg)
Constructor.
const std::string message
Error message to display.