libnick 2025.9.1
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::App::AppInfo Class Reference

A model for the information about an application. More...

#include <appinfo.h>

Public Member Functions

 AppInfo () noexcept=default
 Constructs an AppInfo.
 
 AppInfo (const AppInfo &) noexcept=default
 
 AppInfo (AppInfo &&) noexcept=default
 
 AppInfo (const std::string &id, const std::string &name, const std::string &englishShortName) noexcept
 Constructs an AppInfo.
 
const std::string & getId () const noexcept
 Gets the application id.
 
void setId (const std::string &id) noexcept
 Sets the application id.
 
const std::string & getName () const noexcept
 Gets the application name.
 
void setName (const std::string &name) noexcept
 Sets the application name.
 
const std::string & getShortName () const noexcept
 Gets the application short name.
 
void setShortName (const std::string &shortName) noexcept
 Sets the application short name.
 
const std::string & getEnglishShortName () const noexcept
 Gets the application English short name.
 
void setEnglishShortName (const std::string &englishShortName) noexcept
 Sets the application English short name.
 
const std::string & getDescription () const noexcept
 Gets the application description.
 
void setDescription (const std::string &description) noexcept
 Sets the application description.
 
const Update::VersiongetVersion () const noexcept
 Gets the application version.
 
void setVersion (const Update::Version &version) noexcept
 Sets the application version.
 
const std::string & getChangelog () const noexcept
 Gets the application changelog.
 
void setChangelog (const std::string &changelog) noexcept
 Sets the application changelog.
 
const std::string & getHtmlChangelog () const noexcept
 Gets the application changelog in HTML form.
 
const std::string & getSourceRepo () const noexcept
 Gets the application source repo url.
 
bool setSourceRepo (const std::string &sourceRepo) noexcept
 Sets the application source repo url.
 
const std::string & getIssueTracker () const noexcept
 Gets the application issue tracker url.
 
bool setIssueTracker (const std::string &issueTracker) noexcept
 Sets the application issue tracker url.
 
const std::string & getSupportUrl () const noexcept
 Gets the application support url.
 
bool setSupportUrl (const std::string &supportUrl) noexcept
 Sets the application support url.
 
const std::string & getHtmlDocsStore () const noexcept
 Gets the application html docs store url.
 
void setHtmlDocsStore (const std::string &htmlDocsStore) noexcept
 Sets the application html docs store url.
 
std::unordered_map< std::string, std::string > & getExtraLinks () noexcept
 Gets the extra links for the application.
 
const std::unordered_map< std::string, std::string > & getExtraLinks () const noexcept
 Gets the extra links for the application.
 
std::unordered_map< std::string, std::string > & getDevelopers () noexcept
 Gets the application developers.
 
const std::unordered_map< std::string, std::string > & getDevelopers () const noexcept
 Gets the application developers.
 
std::unordered_map< std::string, std::string > & getDesigners () noexcept
 Gets the application designers.
 
const std::unordered_map< std::string, std::string > & getDesigners () const noexcept
 Gets the application designers.
 
std::unordered_map< std::string, std::string > & getArtists () noexcept
 Gets the application artists.
 
const std::unordered_map< std::string, std::string > & getArtists () const noexcept
 Gets the application artists.
 
const std::string & getTranslatorCredits () const noexcept
 Gets the application translator credits.
 
void setTranslatorCredits (const std::string &translatorCredits) noexcept
 Sets the application translator credits.
 
std::vector< std::string > getTranslatorNames () const noexcept
 Gets the list of translator names.
 
AppInfooperator= (const AppInfo &) noexcept=default
 
AppInfooperator= (AppInfo &&) noexcept=default
 

Detailed Description

A model for the information about an application.

Constructor & Destructor Documentation

◆ AppInfo() [1/4]

Nickvision::App::AppInfo::AppInfo ( )
defaultnoexcept

Constructs an AppInfo.

◆ AppInfo() [2/4]

Nickvision::App::AppInfo::AppInfo ( const AppInfo & )
defaultnoexcept

◆ AppInfo() [3/4]

Nickvision::App::AppInfo::AppInfo ( AppInfo && )
defaultnoexcept

◆ AppInfo() [4/4]

Nickvision::App::AppInfo::AppInfo ( const std::string & id,
const std::string & name,
const std::string & englishShortName )
noexcept

Constructs an AppInfo.

Parameters
idThe application id
nameThe application name
englishShortNameThe application short name in English

Member Function Documentation

◆ getArtists() [1/2]

const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getArtists ( ) const
noexcept

Gets the application artists.

Returns
The application artists

◆ getArtists() [2/2]

std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getArtists ( )
noexcept

Gets the application artists.

Returns
The application artists

◆ getChangelog()

const std::string & Nickvision::App::AppInfo::getChangelog ( ) const
noexcept

Gets the application changelog.

Returns
The application changelog

◆ getDescription()

const std::string & Nickvision::App::AppInfo::getDescription ( ) const
noexcept

Gets the application description.

Returns
The application description

◆ getDesigners() [1/2]

const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDesigners ( ) const
noexcept

Gets the application designers.

Returns
The application designers

◆ getDesigners() [2/2]

std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDesigners ( )
noexcept

Gets the application designers.

Returns
The application designers

◆ getDevelopers() [1/2]

const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDevelopers ( ) const
noexcept

Gets the application developers.

Returns
The application developers

◆ getDevelopers() [2/2]

std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getDevelopers ( )
noexcept

Gets the application developers.

Returns
The application developers

◆ getEnglishShortName()

const std::string & Nickvision::App::AppInfo::getEnglishShortName ( ) const
noexcept

Gets the application English short name.

Returns
The application English short name

◆ getExtraLinks() [1/2]

const std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getExtraLinks ( ) const
noexcept

Gets the extra links for the application.

Returns
The extra links for the application

◆ getExtraLinks() [2/2]

std::unordered_map< std::string, std::string > & Nickvision::App::AppInfo::getExtraLinks ( )
noexcept

Gets the extra links for the application.

Returns
The extra links for the application

◆ getHtmlChangelog()

const std::string & Nickvision::App::AppInfo::getHtmlChangelog ( ) const
noexcept

Gets the application changelog in HTML form.

Returns
The application changelog in HTML

◆ getHtmlDocsStore()

const std::string & Nickvision::App::AppInfo::getHtmlDocsStore ( ) const
noexcept

Gets the application html docs store url.

Returns
The application html docs store url

◆ getId()

const std::string & Nickvision::App::AppInfo::getId ( ) const
noexcept

Gets the application id.

Returns
The application id

◆ getIssueTracker()

const std::string & Nickvision::App::AppInfo::getIssueTracker ( ) const
noexcept

Gets the application issue tracker url.

Returns
The application issue tracker url

◆ getName()

const std::string & Nickvision::App::AppInfo::getName ( ) const
noexcept

Gets the application name.

Returns
The application name

◆ getShortName()

const std::string & Nickvision::App::AppInfo::getShortName ( ) const
noexcept

Gets the application short name.

Returns
The application short name

◆ getSourceRepo()

const std::string & Nickvision::App::AppInfo::getSourceRepo ( ) const
noexcept

Gets the application source repo url.

Returns
The application source repo url

◆ getSupportUrl()

const std::string & Nickvision::App::AppInfo::getSupportUrl ( ) const
noexcept

Gets the application support url.

Returns
The application support url

◆ getTranslatorCredits()

const std::string & Nickvision::App::AppInfo::getTranslatorCredits ( ) const
noexcept

Gets the application translator credits.

Returns
The application translator credits

◆ getTranslatorNames()

std::vector< std::string > Nickvision::App::AppInfo::getTranslatorNames ( ) const
noexcept

Gets the list of translator names.

Returns
The application translator credits

◆ getVersion()

const Update::Version & Nickvision::App::AppInfo::getVersion ( ) const
noexcept

Gets the application version.

Returns
The application version

◆ operator=() [1/2]

AppInfo & Nickvision::App::AppInfo::operator= ( AppInfo && )
defaultnoexcept

◆ operator=() [2/2]

AppInfo & Nickvision::App::AppInfo::operator= ( const AppInfo & )
defaultnoexcept

◆ setChangelog()

void Nickvision::App::AppInfo::setChangelog ( const std::string & changelog)
noexcept

Sets the application changelog.

Parameters
changelogThe application changelog

◆ setDescription()

void Nickvision::App::AppInfo::setDescription ( const std::string & description)
noexcept

Sets the application description.

Parameters
descriptionThe application description

◆ setEnglishShortName()

void Nickvision::App::AppInfo::setEnglishShortName ( const std::string & englishShortName)
noexcept

Sets the application English short name.

Parameters
englishShortNameThe application English short name

◆ setHtmlDocsStore()

void Nickvision::App::AppInfo::setHtmlDocsStore ( const std::string & htmlDocsStore)
noexcept

Sets the application html docs store url.

Parameters
htmlDocsStoreThe application html docs store url

◆ setId()

void Nickvision::App::AppInfo::setId ( const std::string & id)
noexcept

Sets the application id.

Parameters
idThe application id

◆ setIssueTracker()

bool Nickvision::App::AppInfo::setIssueTracker ( const std::string & issueTracker)
noexcept

Sets the application issue tracker url.

Parameters
issueTrackerThe application issue tracker url
Returns
True if the new issue tracker was set, else false
A false return value means that the issueTracker param was not a valid formatted URL

◆ setName()

void Nickvision::App::AppInfo::setName ( const std::string & name)
noexcept

Sets the application name.

Parameters
nameThe application name

◆ setShortName()

void Nickvision::App::AppInfo::setShortName ( const std::string & shortName)
noexcept

Sets the application short name.

Parameters
shortNameThe application short name

◆ setSourceRepo()

bool Nickvision::App::AppInfo::setSourceRepo ( const std::string & sourceRepo)
noexcept

Sets the application source repo url.

Parameters
sourceRepoThe application source repo url
Returns
True if the new source repo was set, else false
A false return value means that the sourceRepo param was not a valid formatted URL

◆ setSupportUrl()

bool Nickvision::App::AppInfo::setSupportUrl ( const std::string & supportUrl)
noexcept

Sets the application support url.

Parameters
supportUrlThe application support url
Returns
True if the new support url was set, else false
A false return value means that the supportUrl param was not a valid formatted URL

◆ setTranslatorCredits()

void Nickvision::App::AppInfo::setTranslatorCredits ( const std::string & translatorCredits)
noexcept

Sets the application translator credits.

Parameters
translatorCreditsThe application translator credits

◆ setVersion()

void Nickvision::App::AppInfo::setVersion ( const Update::Version & version)
noexcept

Sets the application version.

Parameters
versionThe application version

The documentation for this class was generated from the following file: