Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
|
#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 |
Jellyfin::DTO::PlayerStateInfo::PlayerStateInfo | ( | bool | canSeek, |
bool | isPaused, | ||
bool | isMuted, | ||
PlayMethod | playMethod, | ||
RepeatMode | repeatMode ) |
Jellyfin::DTO::PlayerStateInfo::PlayerStateInfo | ( | const PlayerStateInfo & | other | ) |
std::optional< qint32 > Jellyfin::DTO::PlayerStateInfo::audioStreamIndex | ( | ) | const |
Gets or sets the index of the now playing audio stream.
bool Jellyfin::DTO::PlayerStateInfo::audioStreamIndexNull | ( | ) | const |
bool Jellyfin::DTO::PlayerStateInfo::canSeek | ( | ) | const |
Gets or sets a value indicating whether this instance can seek.
|
static |
bool Jellyfin::DTO::PlayerStateInfo::isMuted | ( | ) | const |
Gets or sets a value indicating whether this instance is muted.
bool Jellyfin::DTO::PlayerStateInfo::isPaused | ( | ) | const |
Gets or sets a value indicating whether this instance is paused.
QString Jellyfin::DTO::PlayerStateInfo::mediaSourceId | ( | ) | const |
Gets or sets the now playing media version identifier.
bool Jellyfin::DTO::PlayerStateInfo::mediaSourceIdNull | ( | ) | const |
PlayMethod Jellyfin::DTO::PlayerStateInfo::playMethod | ( | ) | const |
std::optional< qint64 > Jellyfin::DTO::PlayerStateInfo::positionTicks | ( | ) | const |
Gets or sets the now playing position ticks.
bool Jellyfin::DTO::PlayerStateInfo::positionTicksNull | ( | ) | const |
RepeatMode Jellyfin::DTO::PlayerStateInfo::repeatMode | ( | ) | const |
void Jellyfin::DTO::PlayerStateInfo::replaceData | ( | PlayerStateInfo & | other | ) |
Replaces the data being hold by this class with that of the other.
void Jellyfin::DTO::PlayerStateInfo::setAudioStreamIndex | ( | std::optional< qint32 > | newAudioStreamIndex | ) |
Gets or sets the index of the now playing audio stream.
void Jellyfin::DTO::PlayerStateInfo::setAudioStreamIndexNull | ( | ) |
void Jellyfin::DTO::PlayerStateInfo::setCanSeek | ( | bool | newCanSeek | ) |
Gets or sets a value indicating whether this instance can seek.
void Jellyfin::DTO::PlayerStateInfo::setFromJson | ( | QJsonObject | source | ) |
void Jellyfin::DTO::PlayerStateInfo::setIsMuted | ( | bool | newIsMuted | ) |
Gets or sets a value indicating whether this instance is muted.
void Jellyfin::DTO::PlayerStateInfo::setIsPaused | ( | bool | newIsPaused | ) |
Gets or sets a value indicating whether this instance is paused.
void Jellyfin::DTO::PlayerStateInfo::setMediaSourceId | ( | QString | newMediaSourceId | ) |
Gets or sets the now playing media version identifier.
void Jellyfin::DTO::PlayerStateInfo::setMediaSourceIdNull | ( | ) |
void Jellyfin::DTO::PlayerStateInfo::setPlayMethod | ( | PlayMethod | newPlayMethod | ) |
void Jellyfin::DTO::PlayerStateInfo::setPositionTicks | ( | std::optional< qint64 > | newPositionTicks | ) |
Gets or sets the now playing position ticks.
void Jellyfin::DTO::PlayerStateInfo::setPositionTicksNull | ( | ) |
void Jellyfin::DTO::PlayerStateInfo::setRepeatMode | ( | RepeatMode | newRepeatMode | ) |
void Jellyfin::DTO::PlayerStateInfo::setSubtitleStreamIndex | ( | std::optional< qint32 > | newSubtitleStreamIndex | ) |
Gets or sets the index of the now playing subtitle stream.
void Jellyfin::DTO::PlayerStateInfo::setSubtitleStreamIndexNull | ( | ) |
void Jellyfin::DTO::PlayerStateInfo::setVolumeLevel | ( | std::optional< qint32 > | newVolumeLevel | ) |
Gets or sets the volume level.
void Jellyfin::DTO::PlayerStateInfo::setVolumeLevelNull | ( | ) |
std::optional< qint32 > Jellyfin::DTO::PlayerStateInfo::subtitleStreamIndex | ( | ) | const |
Gets or sets the index of the now playing subtitle stream.
bool Jellyfin::DTO::PlayerStateInfo::subtitleStreamIndexNull | ( | ) | const |
QJsonObject Jellyfin::DTO::PlayerStateInfo::toJson | ( | ) | const |
std::optional< qint32 > Jellyfin::DTO::PlayerStateInfo::volumeLevel | ( | ) | const |
Gets or sets the volume level.
bool Jellyfin::DTO::PlayerStateInfo::volumeLevelNull | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |