libnick 2025.1.0
A cross-platform base for native Nickvision applications.
|
A model for the information about an application. More...
#include <appinfo.h>
Public Member Functions | |
AppInfo ()=default | |
Constructs an AppInfo. | |
AppInfo (const std::string &id, const std::string &name, const std::string &englishShortName) | |
Constructs an AppInfo. | |
const std::string & | getId () const |
Gets the application id. | |
void | setId (const std::string &id) |
Sets the application id. | |
const std::string & | getName () const |
Gets the application name. | |
void | setName (const std::string &name) |
Sets the application name. | |
const std::string & | getShortName () const |
Gets the application short name. | |
void | setShortName (const std::string &shortName) |
Sets the application short name. | |
const std::string & | getEnglishShortName () const |
Gets the application English short name. | |
void | setEnglishShortName (const std::string &englishShortName) |
Sets the application English short name. | |
const std::string & | getDescription () const |
Gets the application description. | |
void | setDescription (const std::string &description) |
Sets the application description. | |
const Update::Version & | getVersion () const |
Gets the application version. | |
void | setVersion (const Update::Version &version) |
Sets the application version. | |
const std::string & | getChangelog () const |
Gets the application changelog. | |
void | setChangelog (const std::string &changelog) |
Sets the application changelog. | |
const std::string & | getHtmlChangelog () const |
Gets the application changelog in HTML form. | |
const std::string & | getSourceRepo () const |
Gets the application source repo url. | |
bool | setSourceRepo (const std::string &sourceRepo) |
Sets the application source repo url. | |
const std::string & | getIssueTracker () const |
Gets the application issue tracker url. | |
bool | setIssueTracker (const std::string &issueTracker) |
Sets the application issue tracker url. | |
const std::string & | getSupportUrl () const |
Gets the application support url. | |
bool | setSupportUrl (const std::string &supportUrl) |
Sets the application support url. | |
const std::string & | getHtmlDocsStore () const |
Gets the application html docs store url. | |
void | setHtmlDocsStore (const std::string &htmlDocsStore) |
Sets the application html docs store url. | |
std::unordered_map< std::string, std::string > & | getExtraLinks () |
Gets the extra links for the application. | |
const std::unordered_map< std::string, std::string > & | getExtraLinks () const |
Gets the extra links for the application. | |
std::unordered_map< std::string, std::string > & | getDevelopers () |
Gets the application developers. | |
const std::unordered_map< std::string, std::string > & | getDevelopers () const |
Gets the application developers. | |
std::unordered_map< std::string, std::string > & | getDesigners () |
Gets the application designers. | |
const std::unordered_map< std::string, std::string > & | getDesigners () const |
Gets the application designers. | |
std::unordered_map< std::string, std::string > & | getArtists () |
Gets the application artists. | |
const std::unordered_map< std::string, std::string > & | getArtists () const |
Gets the application artists. | |
const std::string & | getTranslatorCredits () const |
Gets the application translator credits. | |
void | setTranslatorCredits (const std::string &translatorCredits) |
Sets the application translator credits. | |
std::vector< std::string > | getTranslatorNames () const |
Gets the list of translator names. | |
Static Public Member Functions | |
static std::vector< std::string > | convertUrlMapToVector (const std::unordered_map< std::string, std::string > &urls) |
Converts a map of URLs to a vector. | |
A model for the information about an application.
|
default |
Constructs an AppInfo.
Nickvision::App::AppInfo::AppInfo | ( | const std::string & | id, |
const std::string & | name, | ||
const std::string & | englishShortName ) |
Constructs an AppInfo.
id | The application id |
name | The application name |
englishShortName | The application short name in English |
|
static |
Converts a map of URLs to a vector.
urls | The map of URLs |
std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getArtists | ( | ) |
Gets the application artists.
const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getArtists | ( | ) | const |
Gets the application artists.
const std::string & Nickvision::App::AppInfo::getChangelog | ( | ) | const |
Gets the application changelog.
const std::string & Nickvision::App::AppInfo::getDescription | ( | ) | const |
Gets the application description.
std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDesigners | ( | ) |
Gets the application designers.
const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDesigners | ( | ) | const |
Gets the application designers.
std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDevelopers | ( | ) |
Gets the application developers.
const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDevelopers | ( | ) | const |
Gets the application developers.
const std::string & Nickvision::App::AppInfo::getEnglishShortName | ( | ) | const |
Gets the application English short name.
std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getExtraLinks | ( | ) |
Gets the extra links for the application.
const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getExtraLinks | ( | ) | const |
Gets the extra links for the application.
const std::string & Nickvision::App::AppInfo::getHtmlChangelog | ( | ) | const |
Gets the application changelog in HTML form.
const std::string & Nickvision::App::AppInfo::getHtmlDocsStore | ( | ) | const |
Gets the application html docs store url.
const std::string & Nickvision::App::AppInfo::getId | ( | ) | const |
Gets the application id.
const std::string & Nickvision::App::AppInfo::getIssueTracker | ( | ) | const |
Gets the application issue tracker url.
const std::string & Nickvision::App::AppInfo::getName | ( | ) | const |
Gets the application name.
const std::string & Nickvision::App::AppInfo::getShortName | ( | ) | const |
Gets the application short name.
const std::string & Nickvision::App::AppInfo::getSourceRepo | ( | ) | const |
Gets the application source repo url.
const std::string & Nickvision::App::AppInfo::getSupportUrl | ( | ) | const |
Gets the application support url.
const std::string & Nickvision::App::AppInfo::getTranslatorCredits | ( | ) | const |
Gets the application translator credits.
std::vector< std::string > Nickvision::App::AppInfo::getTranslatorNames | ( | ) | const |
Gets the list of translator names.
const Update::Version & Nickvision::App::AppInfo::getVersion | ( | ) | const |
Gets the application version.
void Nickvision::App::AppInfo::setChangelog | ( | const std::string & | changelog | ) |
Sets the application changelog.
changelog | The application changelog |
void Nickvision::App::AppInfo::setDescription | ( | const std::string & | description | ) |
Sets the application description.
description | The application description |
void Nickvision::App::AppInfo::setEnglishShortName | ( | const std::string & | englishShortName | ) |
Sets the application English short name.
englishShortName | The application English short name |
void Nickvision::App::AppInfo::setHtmlDocsStore | ( | const std::string & | htmlDocsStore | ) |
Sets the application html docs store url.
htmlDocsStore | The application html docs store url |
void Nickvision::App::AppInfo::setId | ( | const std::string & | id | ) |
Sets the application id.
id | The application id |
bool Nickvision::App::AppInfo::setIssueTracker | ( | const std::string & | issueTracker | ) |
Sets the application issue tracker url.
issueTracker | The application issue tracker url |
void Nickvision::App::AppInfo::setName | ( | const std::string & | name | ) |
Sets the application name.
name | The application name |
void Nickvision::App::AppInfo::setShortName | ( | const std::string & | shortName | ) |
Sets the application short name.
shortName | The application short name |
bool Nickvision::App::AppInfo::setSourceRepo | ( | const std::string & | sourceRepo | ) |
Sets the application source repo url.
sourceRepo | The application source repo url |
bool Nickvision::App::AppInfo::setSupportUrl | ( | const std::string & | supportUrl | ) |
Sets the application support url.
supportUrl | The application support url |
void Nickvision::App::AppInfo::setTranslatorCredits | ( | const std::string & | translatorCredits | ) |
Sets the application translator credits.
translatorCredits | The application translator credits |
void Nickvision::App::AppInfo::setVersion | ( | const Update::Version & | version | ) |
Sets the application version.
version | The application version |