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

#include <lyricline.h>

Public Member Functions

 LyricLine (QString text)
 LyricLine (const LyricLine &other)
void replaceData (LyricLine &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString text () const
 Gets the text of this lyric line.
void setText (QString newText)
 Gets the text of this lyric line.
std::optional< qint64 > start () const
 Gets the start time in ticks.
void setStart (std::optional< qint64 > newStart)
 Gets the start time in ticks.
bool startNull () const
void setStartNull ()

Static Public Member Functions

static LyricLine fromJson (QJsonObject source)

Protected Attributes

QString m_text
std::optional< qint64 > m_start = std::nullopt

Constructor & Destructor Documentation

◆ LyricLine() [1/2]

Jellyfin::DTO::LyricLine::LyricLine ( QString text)

◆ LyricLine() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setStart()

void Jellyfin::DTO::LyricLine::setStart ( std::optional< qint64 > newStart)

Gets the start time in ticks.

◆ setStartNull()

void Jellyfin::DTO::LyricLine::setStartNull ( )

◆ setText()

void Jellyfin::DTO::LyricLine::setText ( QString newText)

Gets the text of this lyric line.

◆ start()

std::optional< qint64 > Jellyfin::DTO::LyricLine::start ( ) const

Gets the start time in ticks.

◆ startNull()

bool Jellyfin::DTO::LyricLine::startNull ( ) const

◆ text()

QString Jellyfin::DTO::LyricLine::text ( ) const

Gets the text of this lyric line.

◆ toJson()

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

Member Data Documentation

◆ m_start

std::optional<qint64> Jellyfin::DTO::LyricLine::m_start = std::nullopt
protected

◆ m_text

QString Jellyfin::DTO::LyricLine::m_text
protected

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