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

#include <playerstateinfo.h>

Public Member Functions

 PlayerStateInfo (bool canSeek, bool isPaused, bool isMuted, PlayMethod playMethod, RepeatMode repeatMode)
 
 PlayerStateInfo (const PlayerStateInfo &other)
 
void replaceData (PlayerStateInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
std::optional< qint64 > positionTicks () const
 Gets or sets the now playing position ticks.
 
void setPositionTicks (std::optional< qint64 > newPositionTicks)
 Gets or sets the now playing position ticks.
 
bool positionTicksNull () const
 
void setPositionTicksNull ()
 
bool canSeek () const
 Gets or sets a value indicating whether this instance can seek.
 
void setCanSeek (bool newCanSeek)
 Gets or sets a value indicating whether this instance can seek.
 
bool isPaused () const
 Gets or sets a value indicating whether this instance is paused.
 
void setIsPaused (bool newIsPaused)
 Gets or sets a value indicating whether this instance is paused.
 
bool isMuted () const
 Gets or sets a value indicating whether this instance is muted.
 
void setIsMuted (bool newIsMuted)
 Gets or sets a value indicating whether this instance is muted.
 
std::optional< qint32 > volumeLevel () const
 Gets or sets the volume level.
 
void setVolumeLevel (std::optional< qint32 > newVolumeLevel)
 Gets or sets the volume level.
 
bool volumeLevelNull () const
 
void setVolumeLevelNull ()
 
std::optional< qint32 > audioStreamIndex () const
 Gets or sets the index of the now playing audio stream.
 
void setAudioStreamIndex (std::optional< qint32 > newAudioStreamIndex)
 Gets or sets the index of the now playing audio stream.
 
bool audioStreamIndexNull () const
 
void setAudioStreamIndexNull ()
 
std::optional< qint32 > subtitleStreamIndex () const
 Gets or sets the index of the now playing subtitle stream.
 
void setSubtitleStreamIndex (std::optional< qint32 > newSubtitleStreamIndex)
 Gets or sets the index of the now playing subtitle stream.
 
bool subtitleStreamIndexNull () const
 
void setSubtitleStreamIndexNull ()
 
QString mediaSourceId () const
 Gets or sets the now playing media version identifier.
 
void setMediaSourceId (QString newMediaSourceId)
 Gets or sets the now playing media version identifier.
 
bool mediaSourceIdNull () const
 
void setMediaSourceIdNull ()
 
PlayMethod playMethod () const
 
void setPlayMethod (PlayMethod newPlayMethod)
 
RepeatMode repeatMode () const
 
void setRepeatMode (RepeatMode newRepeatMode)
 

Static Public Member Functions

static PlayerStateInfo fromJson (QJsonObject source)
 

Protected Attributes

std::optional< qint64 > m_positionTicks = std::nullopt
 
bool m_canSeek
 
bool m_isPaused
 
bool m_isMuted
 
std::optional< qint32 > m_volumeLevel = std::nullopt
 
std::optional< qint32 > m_audioStreamIndex = std::nullopt
 
std::optional< qint32 > m_subtitleStreamIndex = std::nullopt
 
QString m_mediaSourceId
 
PlayMethod m_playMethod
 
RepeatMode m_repeatMode
 

Constructor & Destructor Documentation

◆ PlayerStateInfo() [1/2]

Jellyfin::DTO::PlayerStateInfo::PlayerStateInfo ( bool canSeek,
bool isPaused,
bool isMuted,
PlayMethod playMethod,
RepeatMode repeatMode )

◆ PlayerStateInfo() [2/2]

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

Member Function Documentation

◆ audioStreamIndex()

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

Gets or sets the index of the now playing audio stream.

◆ audioStreamIndexNull()

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

◆ canSeek()

bool Jellyfin::DTO::PlayerStateInfo::canSeek ( ) const

Gets or sets a value indicating whether this instance can seek.

◆ fromJson()

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

◆ isMuted()

bool Jellyfin::DTO::PlayerStateInfo::isMuted ( ) const

Gets or sets a value indicating whether this instance is muted.

◆ isPaused()

bool Jellyfin::DTO::PlayerStateInfo::isPaused ( ) const

Gets or sets a value indicating whether this instance is paused.

◆ mediaSourceId()

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

Gets or sets the now playing media version identifier.

◆ mediaSourceIdNull()

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

◆ playMethod()

PlayMethod Jellyfin::DTO::PlayerStateInfo::playMethod ( ) const

◆ positionTicks()

std::optional< qint64 > Jellyfin::DTO::PlayerStateInfo::positionTicks ( ) const

Gets or sets the now playing position ticks.

◆ positionTicksNull()

bool Jellyfin::DTO::PlayerStateInfo::positionTicksNull ( ) const

◆ repeatMode()

RepeatMode Jellyfin::DTO::PlayerStateInfo::repeatMode ( ) const

◆ replaceData()

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

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

◆ setAudioStreamIndex()

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

Gets or sets the index of the now playing audio stream.

◆ setAudioStreamIndexNull()

void Jellyfin::DTO::PlayerStateInfo::setAudioStreamIndexNull ( )

◆ setCanSeek()

void Jellyfin::DTO::PlayerStateInfo::setCanSeek ( bool newCanSeek)

Gets or sets a value indicating whether this instance can seek.

◆ setFromJson()

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

◆ setIsMuted()

void Jellyfin::DTO::PlayerStateInfo::setIsMuted ( bool newIsMuted)

Gets or sets a value indicating whether this instance is muted.

◆ setIsPaused()

void Jellyfin::DTO::PlayerStateInfo::setIsPaused ( bool newIsPaused)

Gets or sets a value indicating whether this instance is paused.

◆ setMediaSourceId()

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

Gets or sets the now playing media version identifier.

◆ setMediaSourceIdNull()

void Jellyfin::DTO::PlayerStateInfo::setMediaSourceIdNull ( )

◆ setPlayMethod()

void Jellyfin::DTO::PlayerStateInfo::setPlayMethod ( PlayMethod newPlayMethod)

◆ setPositionTicks()

void Jellyfin::DTO::PlayerStateInfo::setPositionTicks ( std::optional< qint64 > newPositionTicks)

Gets or sets the now playing position ticks.

◆ setPositionTicksNull()

void Jellyfin::DTO::PlayerStateInfo::setPositionTicksNull ( )

◆ setRepeatMode()

void Jellyfin::DTO::PlayerStateInfo::setRepeatMode ( RepeatMode newRepeatMode)

◆ setSubtitleStreamIndex()

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

Gets or sets the index of the now playing subtitle stream.

◆ setSubtitleStreamIndexNull()

void Jellyfin::DTO::PlayerStateInfo::setSubtitleStreamIndexNull ( )

◆ setVolumeLevel()

void Jellyfin::DTO::PlayerStateInfo::setVolumeLevel ( std::optional< qint32 > newVolumeLevel)

Gets or sets the volume level.

◆ setVolumeLevelNull()

void Jellyfin::DTO::PlayerStateInfo::setVolumeLevelNull ( )

◆ subtitleStreamIndex()

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

Gets or sets the index of the now playing subtitle stream.

◆ subtitleStreamIndexNull()

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

◆ toJson()

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

◆ volumeLevel()

std::optional< qint32 > Jellyfin::DTO::PlayerStateInfo::volumeLevel ( ) const

Gets or sets the volume level.

◆ volumeLevelNull()

bool Jellyfin::DTO::PlayerStateInfo::volumeLevelNull ( ) const

Member Data Documentation

◆ m_audioStreamIndex

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

◆ m_canSeek

bool Jellyfin::DTO::PlayerStateInfo::m_canSeek
protected

◆ m_isMuted

bool Jellyfin::DTO::PlayerStateInfo::m_isMuted
protected

◆ m_isPaused

bool Jellyfin::DTO::PlayerStateInfo::m_isPaused
protected

◆ m_mediaSourceId

QString Jellyfin::DTO::PlayerStateInfo::m_mediaSourceId
protected

◆ m_playMethod

PlayMethod Jellyfin::DTO::PlayerStateInfo::m_playMethod
protected

◆ m_positionTicks

std::optional<qint64> Jellyfin::DTO::PlayerStateInfo::m_positionTicks = std::nullopt
protected

◆ m_repeatMode

RepeatMode Jellyfin::DTO::PlayerStateInfo::m_repeatMode
protected

◆ m_subtitleStreamIndex

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

◆ m_volumeLevel

std::optional<qint32> Jellyfin::DTO::PlayerStateInfo::m_volumeLevel = std::nullopt
protected

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