|
| Addon (const XMLNode &xml) |
| Initialises the object from an XML node.
|
|
void | deleteInvalidIconFile () |
| Deletes the icon file of this addon, and marks it to be re-downloaded (next time AddonsManager::downloadIcons() is called.
|
|
void | writeXML (std::ofstream *out_stram) |
| Writes information about an installed addon (it is only called for installed addons).
|
|
void | copyInstallData (const Addon &addon) |
| Copies the installation data (like description, revision, icon) from the downloaded online list to this entry.
|
|
const core::stringw & | getName () const |
| Returns the name of the addon.
|
|
const std::string & | getMinIncludeVer () const |
| Returns the minimum version the addon was included with.
|
|
const std::string & | getMaxIncludeVer () const |
| Returns the maximum version the addon was included with.
|
|
const float | getRating () const |
| Returns the rating of an addon.
|
|
void | setRating (const float rating) const |
| Sets the rating of an addon.
|
|
const std::string & | getType () const |
| Returns the type of the addon.
|
|
const std::string & | getZipFileName () const |
| Returns the filename of the zip file with the addon.
|
|
const std::string & | getIconURL () const |
| Returns the name of the icon of this addon.
|
|
const std::string & | getIconBasename () const |
| Returns the name of the icon (i.e.
|
|
const core::stringw & | getDescription () const |
| Returns the name of the addon.
|
|
StkTime::TimeType | getDate () const |
| Returns the date (in seconds since epoch) when the addon was uploaded.
|
|
std::string | getDateAsString () const |
| Returns a user readable date as a string.
|
|
bool | isInstalled () const |
| Returns if the addon is installed.
|
|
int | getInstalledRevision () const |
| Returns the installed revision number of an addon.
|
|
int | getRevision () const |
| Returns the latest revision number of this addon.
|
|
const std::string & | getId () const |
| Returns the ID of this addon.
|
|
const core::stringw & | getDesigner () const |
| Returns the designer of the addon.
|
|
bool | getStillExists () const |
| Returns if this addon still exists on the server.
|
|
void | setStillExists () |
| Marks that this addon still exists on the server.
|
|
bool | needsUpdate () const |
| True if this addon needs to be updated.
|
|
bool | iconNeedsUpdate () const |
| Returns true if the (cached) icon needs to be updated.
|
|
void | setInstalled (bool state) |
| Marks this addon to be installed.
|
|
bool | iconReady () const |
| Returns true if the icon of this addon was downloaded and is ready to be displayed.
|
|
void | setIconReady () |
| Marks that the icon for this addon can be displayed.
|
|
int | getSize () const |
| Returns the size of the compressed package.
|
|
std::string | getTypeDirectory () const |
| Returns the directory in which this type of addons is stored (in a separate subdirectory).
|
|
bool | testIncluded (const std::string &min_ver, const std::string &max_ver) |
| Returns if the current version is between min and max versions.
|
|
bool | testStatus (AddonStatus n) const |
| Returns if a certain status flag is set.
|
|
std::string | getDataDir () const |
| Returns the directory in which this addon is installed.
|
|
bool | filterByWords (const core::stringw words) const |
| Filter the add-on with a list of words.
|
|
bool | operator< (const Addon &a) const |
| Compares two addons according to the sort order currently defined.
|
|
const std::string & | getDirName () const |
|
|
core::stringw | m_name |
| The name to be displayed.
|
|
std::string | m_id |
| Internal id for this addon, which is the name in lower case.
|
|
std::string | m_dir_name |
| The directory name (i.d.
|
|
core::stringw | m_designer |
| The name of the designer of the addon.
|
|
int | m_revision |
| The (highest) revision number available online.
|
|
int | m_installed_revision |
| The currently installed revision.
|
|
int | m_icon_revision |
| The version of the icon that was downloaded.
|
|
int | m_status |
| The status flags of this addon.
|
|
bool | m_still_exists |
| True if this addon still exists on the server, i.e.
|
|
StkTime::TimeType | m_date |
| Date when the addon was added.
|
|
core::stringw | m_description |
| A description of this addon.
|
|
std::string | m_icon_url |
| The URL of the icon (relative to the server)
|
|
std::string | m_icon_basename |
| Name of the icon to use.
|
|
bool | m_icon_ready |
| True if the icon is cached/loaded and can be displayed.
|
|
std::string | m_zip_file |
| The name of the zip file on the addon server.
|
|
bool | m_installed |
| True if the addon is installed.
|
|
int | m_size |
| Compressed size of the addon package.
|
|
float | m_rating |
| Rating for thsi addon package.
|
|
std::string | m_min_include_ver |
| Minimum version addon is included with.
|
|
std::string | m_max_include_ver |
| Maximum version addon is included with.
|
|
std::string | m_type |
| Type, must be 'kart' or 'track'.
|
|