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

#include <playrequest.h>

Public Member Functions

 PlayRequest (PlayCommand playCommand, QString controllingUserId)
 
 PlayRequest (const PlayRequest &other)
 
void replaceData (PlayRequest &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
QStringList itemIds () const
 Gets or sets the item ids.
 
void setItemIds (QStringList newItemIds)
 Gets or sets the item ids.
 
bool itemIdsNull () const
 
void setItemIdsNull ()
 
std::optional< qint64 > startPositionTicks () const
 Gets or sets the start position ticks that the first item should be played at.
 
void setStartPositionTicks (std::optional< qint64 > newStartPositionTicks)
 Gets or sets the start position ticks that the first item should be played at.
 
bool startPositionTicksNull () const
 
void setStartPositionTicksNull ()
 
PlayCommand playCommand () const
 
void setPlayCommand (PlayCommand newPlayCommand)
 
QString controllingUserId () const
 Gets or sets the controlling user identifier.
 
void setControllingUserId (QString newControllingUserId)
 Gets or sets the controlling user identifier.
 
std::optional< qint32 > subtitleStreamIndex () const
 
void setSubtitleStreamIndex (std::optional< qint32 > newSubtitleStreamIndex)
 
bool subtitleStreamIndexNull () const
 
void setSubtitleStreamIndexNull ()
 
std::optional< qint32 > audioStreamIndex () const
 
void setAudioStreamIndex (std::optional< qint32 > newAudioStreamIndex)
 
bool audioStreamIndexNull () const
 
void setAudioStreamIndexNull ()
 
QString mediaSourceId () const
 
void setMediaSourceId (QString newMediaSourceId)
 
bool mediaSourceIdNull () const
 
void setMediaSourceIdNull ()
 
std::optional< qint32 > startIndex () const
 
void setStartIndex (std::optional< qint32 > newStartIndex)
 
bool startIndexNull () const
 
void setStartIndexNull ()
 

Static Public Member Functions

static PlayRequest fromJson (QJsonObject source)
 

Protected Attributes

QStringList m_itemIds
 
std::optional< qint64 > m_startPositionTicks = std::nullopt
 
PlayCommand m_playCommand
 
QString m_controllingUserId
 
std::optional< qint32 > m_subtitleStreamIndex = std::nullopt
 
std::optional< qint32 > m_audioStreamIndex = std::nullopt
 
QString m_mediaSourceId
 
std::optional< qint32 > m_startIndex = std::nullopt
 

Constructor & Destructor Documentation

◆ PlayRequest() [1/2]

Jellyfin::DTO::PlayRequest::PlayRequest ( PlayCommand playCommand,
QString controllingUserId )

◆ PlayRequest() [2/2]

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

Member Function Documentation

◆ audioStreamIndex()

std::optional< qint32 > Jellyfin::DTO::PlayRequest::audioStreamIndex ( ) const

◆ audioStreamIndexNull()

bool Jellyfin::DTO::PlayRequest::audioStreamIndexNull ( ) const

◆ controllingUserId()

QString Jellyfin::DTO::PlayRequest::controllingUserId ( ) const

Gets or sets the controlling user identifier.

◆ fromJson()

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

◆ itemIds()

QStringList Jellyfin::DTO::PlayRequest::itemIds ( ) const

Gets or sets the item ids.

◆ itemIdsNull()

bool Jellyfin::DTO::PlayRequest::itemIdsNull ( ) const

◆ mediaSourceId()

QString Jellyfin::DTO::PlayRequest::mediaSourceId ( ) const

◆ mediaSourceIdNull()

bool Jellyfin::DTO::PlayRequest::mediaSourceIdNull ( ) const

◆ playCommand()

PlayCommand Jellyfin::DTO::PlayRequest::playCommand ( ) const

◆ replaceData()

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

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

◆ setAudioStreamIndex()

void Jellyfin::DTO::PlayRequest::setAudioStreamIndex ( std::optional< qint32 > newAudioStreamIndex)

◆ setAudioStreamIndexNull()

void Jellyfin::DTO::PlayRequest::setAudioStreamIndexNull ( )

◆ setControllingUserId()

void Jellyfin::DTO::PlayRequest::setControllingUserId ( QString newControllingUserId)

Gets or sets the controlling user identifier.

◆ setFromJson()

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

◆ setItemIds()

void Jellyfin::DTO::PlayRequest::setItemIds ( QStringList newItemIds)

Gets or sets the item ids.

◆ setItemIdsNull()

void Jellyfin::DTO::PlayRequest::setItemIdsNull ( )

◆ setMediaSourceId()

void Jellyfin::DTO::PlayRequest::setMediaSourceId ( QString newMediaSourceId)

◆ setMediaSourceIdNull()

void Jellyfin::DTO::PlayRequest::setMediaSourceIdNull ( )

◆ setPlayCommand()

void Jellyfin::DTO::PlayRequest::setPlayCommand ( PlayCommand newPlayCommand)

◆ setStartIndex()

void Jellyfin::DTO::PlayRequest::setStartIndex ( std::optional< qint32 > newStartIndex)

◆ setStartIndexNull()

void Jellyfin::DTO::PlayRequest::setStartIndexNull ( )

◆ setStartPositionTicks()

void Jellyfin::DTO::PlayRequest::setStartPositionTicks ( std::optional< qint64 > newStartPositionTicks)

Gets or sets the start position ticks that the first item should be played at.

◆ setStartPositionTicksNull()

void Jellyfin::DTO::PlayRequest::setStartPositionTicksNull ( )

◆ setSubtitleStreamIndex()

void Jellyfin::DTO::PlayRequest::setSubtitleStreamIndex ( std::optional< qint32 > newSubtitleStreamIndex)

◆ setSubtitleStreamIndexNull()

void Jellyfin::DTO::PlayRequest::setSubtitleStreamIndexNull ( )

◆ startIndex()

std::optional< qint32 > Jellyfin::DTO::PlayRequest::startIndex ( ) const

◆ startIndexNull()

bool Jellyfin::DTO::PlayRequest::startIndexNull ( ) const

◆ startPositionTicks()

std::optional< qint64 > Jellyfin::DTO::PlayRequest::startPositionTicks ( ) const

Gets or sets the start position ticks that the first item should be played at.

◆ startPositionTicksNull()

bool Jellyfin::DTO::PlayRequest::startPositionTicksNull ( ) const

◆ subtitleStreamIndex()

std::optional< qint32 > Jellyfin::DTO::PlayRequest::subtitleStreamIndex ( ) const

◆ subtitleStreamIndexNull()

bool Jellyfin::DTO::PlayRequest::subtitleStreamIndexNull ( ) const

◆ toJson()

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

Member Data Documentation

◆ m_audioStreamIndex

std::optional<qint32> Jellyfin::DTO::PlayRequest::m_audioStreamIndex = std::nullopt
protected

◆ m_controllingUserId

QString Jellyfin::DTO::PlayRequest::m_controllingUserId
protected

◆ m_itemIds

QStringList Jellyfin::DTO::PlayRequest::m_itemIds
protected

◆ m_mediaSourceId

QString Jellyfin::DTO::PlayRequest::m_mediaSourceId
protected

◆ m_playCommand

PlayCommand Jellyfin::DTO::PlayRequest::m_playCommand
protected

◆ m_startIndex

std::optional<qint32> Jellyfin::DTO::PlayRequest::m_startIndex = std::nullopt
protected

◆ m_startPositionTicks

std::optional<qint64> Jellyfin::DTO::PlayRequest::m_startPositionTicks = std::nullopt
protected

◆ m_subtitleStreamIndex

std::optional<qint32> Jellyfin::DTO::PlayRequest::m_subtitleStreamIndex = std::nullopt
protected

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