libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::Voice Class Reference

Holder for voice metadata. More...

#include <Voice.h>

Public Member Functions

bool deleteVoice ()
QStringList files () const
 List of files owned by this voice (depends on its type), relative to its directory.
QString getAuthor () const
QString getDescription () const
QDir getDir () const
QString getGender () const
QString getLang () const
QString getLangCode () const
QString getLicense () const
QString getModelFile () const
 Local file name of the Piper onnx model (empty for other types).
QString getName () const
QString getType () const
bool isPiper () const
bool isValid () const
Voice & operator= (const Voice &other)=default
Voice & operator= (Voice &&other)=default
 Voice ()=default
 Voice (const Voice &other)=default
 Voice (QDir dir)
 Voice (Voice &&other)=default
 ~Voice ()=default

Static Public Member Functions

static QStringList marbleFiles ()
 Mandatory files of a "Voice of Marble" ogg sample pack.

Detailed Description

Holder for voice metadata.

Constructor & Destructor Documentation

◆ Voice() [1/4]

osmscout::Voice::Voice ( )
default

References Voice().

Referenced by operator=(), operator=(), Voice(), Voice(), and Voice().

◆ Voice() [2/4]

osmscout::Voice::Voice ( QDir dir)
explicit

◆ ~Voice()

osmscout::Voice::~Voice ( )
default

◆ Voice() [3/4]

osmscout::Voice::Voice ( const Voice & other)
default

References Voice().

◆ Voice() [4/4]

osmscout::Voice::Voice ( Voice && other)
default

References Voice().

Member Function Documentation

◆ deleteVoice()

bool osmscout::Voice::deleteVoice ( )

◆ files()

QStringList osmscout::Voice::files ( ) const

List of files owned by this voice (depends on its type), relative to its directory.

Used for validation and removal.

References isPiper(), and marbleFiles().

Referenced by deleteVoice().

◆ getAuthor()

QString osmscout::Voice::getAuthor ( ) const
inline

◆ getDescription()

QString osmscout::Voice::getDescription ( ) const
inline

◆ getDir()

QDir osmscout::Voice::getDir ( ) const
inline

◆ getGender()

QString osmscout::Voice::getGender ( ) const
inline

◆ getLang()

QString osmscout::Voice::getLang ( ) const
inline

◆ getLangCode()

QString osmscout::Voice::getLangCode ( ) const
inline

◆ getLicense()

QString osmscout::Voice::getLicense ( ) const
inline

◆ getModelFile()

QString osmscout::Voice::getModelFile ( ) const
inline

Local file name of the Piper onnx model (empty for other types).

◆ getName()

QString osmscout::Voice::getName ( ) const
inline

◆ getType()

QString osmscout::Voice::getType ( ) const
inline

◆ isPiper()

bool osmscout::Voice::isPiper ( ) const
inline

References osmscout::VoiceTypePiper.

Referenced by files().

◆ isValid()

bool osmscout::Voice::isValid ( ) const
inline

◆ marbleFiles()

QStringList osmscout::Voice::marbleFiles ( )
static

Mandatory files of a "Voice of Marble" ogg sample pack.

Referenced by files(), and osmscout::VoiceDownloadJob::start().

◆ operator=() [1/2]

Voice & osmscout::Voice::operator= ( const Voice & other)
default

References Voice().

◆ operator=() [2/2]

Voice & osmscout::Voice::operator= ( Voice && other)
default

References Voice().


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