Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::DTO::SongInfo Class Reference

#include <songinfo.h>

Public Member Functions

 SongInfo (bool isAutomated)
 
 SongInfo (const SongInfo &other)
 
void replaceData (SongInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QString name () const
 Gets or sets the name.
 
void setName (QString newName)
 Gets or sets the name.
 
bool nameNull () const
 
void setNameNull ()
 
QString path () const
 Gets or sets the path.
 
void setPath (QString newPath)
 Gets or sets the path.
 
bool pathNull () const
 
void setPathNull ()
 
QString metadataLanguage () const
 Gets or sets the metadata language.
 
void setMetadataLanguage (QString newMetadataLanguage)
 Gets or sets the metadata language.
 
bool metadataLanguageNull () const
 
void setMetadataLanguageNull ()
 
QString metadataCountryCode () const
 Gets or sets the metadata country code.
 
void setMetadataCountryCode (QString newMetadataCountryCode)
 Gets or sets the metadata country code.
 
bool metadataCountryCodeNull () const
 
void setMetadataCountryCodeNull ()
 
QJsonObject providerIds () const
 Gets or sets the provider ids.
 
void setProviderIds (QJsonObject newProviderIds)
 Gets or sets the provider ids.
 
bool providerIdsNull () const
 
void setProviderIdsNull ()
 
std::optional< qint32 > year () const
 Gets or sets the year.
 
void setYear (std::optional< qint32 > newYear)
 Gets or sets the year.
 
bool yearNull () const
 
void setYearNull ()
 
std::optional< qint32 > indexNumber () const
 
void setIndexNumber (std::optional< qint32 > newIndexNumber)
 
bool indexNumberNull () const
 
void setIndexNumberNull ()
 
std::optional< qint32 > parentIndexNumber () const
 
void setParentIndexNumber (std::optional< qint32 > newParentIndexNumber)
 
bool parentIndexNumberNull () const
 
void setParentIndexNumberNull ()
 
QDateTime premiereDate () const
 
void setPremiereDate (QDateTime newPremiereDate)
 
bool premiereDateNull () const
 
void setPremiereDateNull ()
 
bool isAutomated () const
 
void setIsAutomated (bool newIsAutomated)
 
QStringList albumArtists () const
 
void setAlbumArtists (QStringList newAlbumArtists)
 
bool albumArtistsNull () const
 
void setAlbumArtistsNull ()
 
QString album () const
 
void setAlbum (QString newAlbum)
 
bool albumNull () const
 
void setAlbumNull ()
 
QStringList artists () const
 
void setArtists (QStringList newArtists)
 
bool artistsNull () const
 
void setArtistsNull ()
 

Static Public Member Functions

static SongInfo fromJson (QJsonObject source)
 

Protected Attributes

QString m_name
 
QString m_path
 
QString m_metadataLanguage
 
QString m_metadataCountryCode
 
QJsonObject m_providerIds
 
std::optional< qint32 > m_year = std::nullopt
 
std::optional< qint32 > m_indexNumber = std::nullopt
 
std::optional< qint32 > m_parentIndexNumber = std::nullopt
 
QDateTime m_premiereDate
 
bool m_isAutomated
 
QStringList m_albumArtists
 
QString m_album
 
QStringList m_artists
 

Constructor & Destructor Documentation

◆ SongInfo() [1/2]

Jellyfin::DTO::SongInfo::SongInfo ( bool isAutomated)

◆ SongInfo() [2/2]

Jellyfin::DTO::SongInfo::SongInfo ( const SongInfo & other)

Member Function Documentation

◆ album()

QString Jellyfin::DTO::SongInfo::album ( ) const

◆ albumArtists()

QStringList Jellyfin::DTO::SongInfo::albumArtists ( ) const

◆ albumArtistsNull()

bool Jellyfin::DTO::SongInfo::albumArtistsNull ( ) const

◆ albumNull()

bool Jellyfin::DTO::SongInfo::albumNull ( ) const

◆ artists()

QStringList Jellyfin::DTO::SongInfo::artists ( ) const

◆ artistsNull()

bool Jellyfin::DTO::SongInfo::artistsNull ( ) const

◆ fromJson()

SongInfo Jellyfin::DTO::SongInfo::fromJson ( QJsonObject source)
static

◆ indexNumber()

std::optional< qint32 > Jellyfin::DTO::SongInfo::indexNumber ( ) const

◆ indexNumberNull()

bool Jellyfin::DTO::SongInfo::indexNumberNull ( ) const

◆ isAutomated()

bool Jellyfin::DTO::SongInfo::isAutomated ( ) const

◆ metadataCountryCode()

QString Jellyfin::DTO::SongInfo::metadataCountryCode ( ) const

Gets or sets the metadata country code.

◆ metadataCountryCodeNull()

bool Jellyfin::DTO::SongInfo::metadataCountryCodeNull ( ) const

◆ metadataLanguage()

QString Jellyfin::DTO::SongInfo::metadataLanguage ( ) const

Gets or sets the metadata language.

◆ metadataLanguageNull()

bool Jellyfin::DTO::SongInfo::metadataLanguageNull ( ) const

◆ name()

QString Jellyfin::DTO::SongInfo::name ( ) const

Gets or sets the name.

◆ nameNull()

bool Jellyfin::DTO::SongInfo::nameNull ( ) const

◆ parentIndexNumber()

std::optional< qint32 > Jellyfin::DTO::SongInfo::parentIndexNumber ( ) const

◆ parentIndexNumberNull()

bool Jellyfin::DTO::SongInfo::parentIndexNumberNull ( ) const

◆ path()

QString Jellyfin::DTO::SongInfo::path ( ) const

Gets or sets the path.

◆ pathNull()

bool Jellyfin::DTO::SongInfo::pathNull ( ) const

◆ premiereDate()

QDateTime Jellyfin::DTO::SongInfo::premiereDate ( ) const

◆ premiereDateNull()

bool Jellyfin::DTO::SongInfo::premiereDateNull ( ) const

◆ providerIds()

QJsonObject Jellyfin::DTO::SongInfo::providerIds ( ) const

Gets or sets the provider ids.

◆ providerIdsNull()

bool Jellyfin::DTO::SongInfo::providerIdsNull ( ) const

◆ replaceData()

void Jellyfin::DTO::SongInfo::replaceData ( SongInfo & other)

Replaces the data being hold by this class with that of the other.

◆ setAlbum()

void Jellyfin::DTO::SongInfo::setAlbum ( QString newAlbum)

◆ setAlbumArtists()

void Jellyfin::DTO::SongInfo::setAlbumArtists ( QStringList newAlbumArtists)

◆ setAlbumArtistsNull()

void Jellyfin::DTO::SongInfo::setAlbumArtistsNull ( )

◆ setAlbumNull()

void Jellyfin::DTO::SongInfo::setAlbumNull ( )

◆ setArtists()

void Jellyfin::DTO::SongInfo::setArtists ( QStringList newArtists)

◆ setArtistsNull()

void Jellyfin::DTO::SongInfo::setArtistsNull ( )

◆ setFromJson()

void Jellyfin::DTO::SongInfo::setFromJson ( QJsonObject source)

◆ setIndexNumber()

void Jellyfin::DTO::SongInfo::setIndexNumber ( std::optional< qint32 > newIndexNumber)

◆ setIndexNumberNull()

void Jellyfin::DTO::SongInfo::setIndexNumberNull ( )

◆ setIsAutomated()

void Jellyfin::DTO::SongInfo::setIsAutomated ( bool newIsAutomated)

◆ setMetadataCountryCode()

void Jellyfin::DTO::SongInfo::setMetadataCountryCode ( QString newMetadataCountryCode)

Gets or sets the metadata country code.

◆ setMetadataCountryCodeNull()

void Jellyfin::DTO::SongInfo::setMetadataCountryCodeNull ( )

◆ setMetadataLanguage()

void Jellyfin::DTO::SongInfo::setMetadataLanguage ( QString newMetadataLanguage)

Gets or sets the metadata language.

◆ setMetadataLanguageNull()

void Jellyfin::DTO::SongInfo::setMetadataLanguageNull ( )

◆ setName()

void Jellyfin::DTO::SongInfo::setName ( QString newName)

Gets or sets the name.

◆ setNameNull()

void Jellyfin::DTO::SongInfo::setNameNull ( )

◆ setParentIndexNumber()

void Jellyfin::DTO::SongInfo::setParentIndexNumber ( std::optional< qint32 > newParentIndexNumber)

◆ setParentIndexNumberNull()

void Jellyfin::DTO::SongInfo::setParentIndexNumberNull ( )

◆ setPath()

void Jellyfin::DTO::SongInfo::setPath ( QString newPath)

Gets or sets the path.

◆ setPathNull()

void Jellyfin::DTO::SongInfo::setPathNull ( )

◆ setPremiereDate()

void Jellyfin::DTO::SongInfo::setPremiereDate ( QDateTime newPremiereDate)

◆ setPremiereDateNull()

void Jellyfin::DTO::SongInfo::setPremiereDateNull ( )

◆ setProviderIds()

void Jellyfin::DTO::SongInfo::setProviderIds ( QJsonObject newProviderIds)

Gets or sets the provider ids.

◆ setProviderIdsNull()

void Jellyfin::DTO::SongInfo::setProviderIdsNull ( )

◆ setYear()

void Jellyfin::DTO::SongInfo::setYear ( std::optional< qint32 > newYear)

Gets or sets the year.

◆ setYearNull()

void Jellyfin::DTO::SongInfo::setYearNull ( )

◆ toJson()

QJsonObject Jellyfin::DTO::SongInfo::toJson ( ) const

◆ year()

std::optional< qint32 > Jellyfin::DTO::SongInfo::year ( ) const

Gets or sets the year.

◆ yearNull()

bool Jellyfin::DTO::SongInfo::yearNull ( ) const

Member Data Documentation

◆ m_album

QString Jellyfin::DTO::SongInfo::m_album
protected

◆ m_albumArtists

QStringList Jellyfin::DTO::SongInfo::m_albumArtists
protected

◆ m_artists

QStringList Jellyfin::DTO::SongInfo::m_artists
protected

◆ m_indexNumber

std::optional<qint32> Jellyfin::DTO::SongInfo::m_indexNumber = std::nullopt
protected

◆ m_isAutomated

bool Jellyfin::DTO::SongInfo::m_isAutomated
protected

◆ m_metadataCountryCode

QString Jellyfin::DTO::SongInfo::m_metadataCountryCode
protected

◆ m_metadataLanguage

QString Jellyfin::DTO::SongInfo::m_metadataLanguage
protected

◆ m_name

QString Jellyfin::DTO::SongInfo::m_name
protected

◆ m_parentIndexNumber

std::optional<qint32> Jellyfin::DTO::SongInfo::m_parentIndexNumber = std::nullopt
protected

◆ m_path

QString Jellyfin::DTO::SongInfo::m_path
protected

◆ m_premiereDate

QDateTime Jellyfin::DTO::SongInfo::m_premiereDate
protected

◆ m_providerIds

QJsonObject Jellyfin::DTO::SongInfo::m_providerIds
protected

◆ m_year

std::optional<qint32> Jellyfin::DTO::SongInfo::m_year = std::nullopt
protected

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