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

#include <lyricdto.h>

Public Member Functions

 LyricDto (QSharedPointer< LyricMetadata > metadata, QList< LyricLine > lyrics)
 LyricDto (const LyricDto &other)
void replaceData (LyricDto &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QSharedPointer< LyricMetadatametadata () const
void setMetadata (QSharedPointer< LyricMetadata > newMetadata)
QList< LyricLinelyrics () const
 Gets or sets a collection of individual lyric lines.
void setLyrics (QList< LyricLine > newLyrics)
 Gets or sets a collection of individual lyric lines.

Static Public Member Functions

static LyricDto fromJson (QJsonObject source)

Protected Attributes

QSharedPointer< LyricMetadatam_metadata = QSharedPointer<LyricMetadata>()
QList< LyricLinem_lyrics

Constructor & Destructor Documentation

◆ LyricDto() [1/2]

Jellyfin::DTO::LyricDto::LyricDto ( QSharedPointer< LyricMetadata > metadata,
QList< LyricLine > lyrics )

◆ LyricDto() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ lyrics()

QList< LyricLine > Jellyfin::DTO::LyricDto::lyrics ( ) const

Gets or sets a collection of individual lyric lines.

◆ metadata()

QSharedPointer< LyricMetadata > Jellyfin::DTO::LyricDto::metadata ( ) const

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setLyrics()

void Jellyfin::DTO::LyricDto::setLyrics ( QList< LyricLine > newLyrics)

Gets or sets a collection of individual lyric lines.

◆ setMetadata()

void Jellyfin::DTO::LyricDto::setMetadata ( QSharedPointer< LyricMetadata > newMetadata)

◆ toJson()

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

Member Data Documentation

◆ m_lyrics

QList<LyricLine> Jellyfin::DTO::LyricDto::m_lyrics
protected

◆ m_metadata

QSharedPointer<LyricMetadata> Jellyfin::DTO::LyricDto::m_metadata = QSharedPointer<LyricMetadata>()
protected

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