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

#include <playbackstartinfo.h>

Public Member Functions

 PlaybackStartInfo (bool canSeek, QSharedPointer< BaseItemDto > item, QString itemId, bool isPaused, bool isMuted, PlayMethod playMethod, RepeatMode repeatMode)
 
 PlaybackStartInfo (const PlaybackStartInfo &other)
 
void replaceData (PlaybackStartInfo &other)
 
void setFromJson (QJsonObject source)
 
QJsonObject toJson () const
 
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.
 
QSharedPointer< BaseItemDtoitem () const
 
void setItem (QSharedPointer< BaseItemDto > newItem)
 
QString itemId () const
 Gets or sets the item identifier.
 
void setItemId (QString newItemId)
 Gets or sets the item identifier.
 
QString sessionId () const
 Gets or sets the session id.
 
void setSessionId (QString newSessionId)
 Gets or sets the session id.
 
bool sessionIdNull () const
 
void setSessionIdNull ()
 
QString mediaSourceId () const
 Gets or sets the media version identifier.
 
void setMediaSourceId (QString newMediaSourceId)
 Gets or sets the media version identifier.
 
bool mediaSourceIdNull () const
 
void setMediaSourceIdNull ()
 
std::optional< qint32 > audioStreamIndex () const
 Gets or sets the index of the audio stream.
 
void setAudioStreamIndex (std::optional< qint32 > newAudioStreamIndex)
 Gets or sets the index of the audio stream.
 
bool audioStreamIndexNull () const
 
void setAudioStreamIndexNull ()
 
std::optional< qint32 > subtitleStreamIndex () const
 Gets or sets the index of the subtitle stream.
 
void setSubtitleStreamIndex (std::optional< qint32 > newSubtitleStreamIndex)
 Gets or sets the index of the subtitle stream.
 
bool subtitleStreamIndexNull () const
 
void setSubtitleStreamIndexNull ()
 
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< qint64 > positionTicks () const
 Gets or sets the position ticks.
 
void setPositionTicks (std::optional< qint64 > newPositionTicks)
 Gets or sets the position ticks.
 
bool positionTicksNull () const
 
void setPositionTicksNull ()
 
std::optional< qint64 > playbackStartTimeTicks () const
 
void setPlaybackStartTimeTicks (std::optional< qint64 > newPlaybackStartTimeTicks)
 
bool playbackStartTimeTicksNull () const
 
void setPlaybackStartTimeTicksNull ()
 
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 > brightness () const
 
void setBrightness (std::optional< qint32 > newBrightness)
 
bool brightnessNull () const
 
void setBrightnessNull ()
 
QString aspectRatio () const
 
void setAspectRatio (QString newAspectRatio)
 
bool aspectRatioNull () const
 
void setAspectRatioNull ()
 
PlayMethod playMethod () const
 
void setPlayMethod (PlayMethod newPlayMethod)
 
QString liveStreamId () const
 Gets or sets the live stream identifier.
 
void setLiveStreamId (QString newLiveStreamId)
 Gets or sets the live stream identifier.
 
bool liveStreamIdNull () const
 
void setLiveStreamIdNull ()
 
QString playSessionId () const
 Gets or sets the play session identifier.
 
void setPlaySessionId (QString newPlaySessionId)
 Gets or sets the play session identifier.
 
bool playSessionIdNull () const
 
void setPlaySessionIdNull ()
 
RepeatMode repeatMode () const
 
void setRepeatMode (RepeatMode newRepeatMode)
 
QList< QueueItemnowPlayingQueue () const
 
void setNowPlayingQueue (QList< QueueItem > newNowPlayingQueue)
 
bool nowPlayingQueueNull () const
 
void setNowPlayingQueueNull ()
 
QString playlistItemId () const
 
void setPlaylistItemId (QString newPlaylistItemId)
 
bool playlistItemIdNull () const
 
void setPlaylistItemIdNull ()
 

Static Public Member Functions

static PlaybackStartInfo fromJson (QJsonObject source)
 

Protected Attributes

bool m_canSeek
 
QSharedPointer< BaseItemDtom_item = QSharedPointer<BaseItemDto>()
 
QString m_itemId
 
QString m_sessionId
 
QString m_mediaSourceId
 
std::optional< qint32 > m_audioStreamIndex = std::nullopt
 
std::optional< qint32 > m_subtitleStreamIndex = std::nullopt
 
bool m_isPaused
 
bool m_isMuted
 
std::optional< qint64 > m_positionTicks = std::nullopt
 
std::optional< qint64 > m_playbackStartTimeTicks = std::nullopt
 
std::optional< qint32 > m_volumeLevel = std::nullopt
 
std::optional< qint32 > m_brightness = std::nullopt
 
QString m_aspectRatio
 
PlayMethod m_playMethod
 
QString m_liveStreamId
 
QString m_playSessionId
 
RepeatMode m_repeatMode
 
QList< QueueItemm_nowPlayingQueue
 
QString m_playlistItemId
 

Constructor & Destructor Documentation

◆ PlaybackStartInfo() [1/2]

Jellyfin::DTO::PlaybackStartInfo::PlaybackStartInfo ( bool canSeek,
QSharedPointer< BaseItemDto > item,
QString itemId,
bool isPaused,
bool isMuted,
PlayMethod playMethod,
RepeatMode repeatMode )

◆ PlaybackStartInfo() [2/2]

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

Member Function Documentation

◆ aspectRatio()

QString Jellyfin::DTO::PlaybackStartInfo::aspectRatio ( ) const

◆ aspectRatioNull()

bool Jellyfin::DTO::PlaybackStartInfo::aspectRatioNull ( ) const

◆ audioStreamIndex()

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

Gets or sets the index of the audio stream.

◆ audioStreamIndexNull()

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

◆ brightness()

std::optional< qint32 > Jellyfin::DTO::PlaybackStartInfo::brightness ( ) const

◆ brightnessNull()

bool Jellyfin::DTO::PlaybackStartInfo::brightnessNull ( ) const

◆ canSeek()

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

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

◆ fromJson()

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

◆ isMuted()

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

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

◆ isPaused()

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

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

◆ item()

QSharedPointer< BaseItemDto > Jellyfin::DTO::PlaybackStartInfo::item ( ) const

◆ itemId()

QString Jellyfin::DTO::PlaybackStartInfo::itemId ( ) const

Gets or sets the item identifier.

◆ liveStreamId()

QString Jellyfin::DTO::PlaybackStartInfo::liveStreamId ( ) const

Gets or sets the live stream identifier.

◆ liveStreamIdNull()

bool Jellyfin::DTO::PlaybackStartInfo::liveStreamIdNull ( ) const

◆ mediaSourceId()

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

Gets or sets the media version identifier.

◆ mediaSourceIdNull()

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

◆ nowPlayingQueue()

QList< QueueItem > Jellyfin::DTO::PlaybackStartInfo::nowPlayingQueue ( ) const

◆ nowPlayingQueueNull()

bool Jellyfin::DTO::PlaybackStartInfo::nowPlayingQueueNull ( ) const

◆ playbackStartTimeTicks()

std::optional< qint64 > Jellyfin::DTO::PlaybackStartInfo::playbackStartTimeTicks ( ) const

◆ playbackStartTimeTicksNull()

bool Jellyfin::DTO::PlaybackStartInfo::playbackStartTimeTicksNull ( ) const

◆ playlistItemId()

QString Jellyfin::DTO::PlaybackStartInfo::playlistItemId ( ) const

◆ playlistItemIdNull()

bool Jellyfin::DTO::PlaybackStartInfo::playlistItemIdNull ( ) const

◆ playMethod()

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

◆ playSessionId()

QString Jellyfin::DTO::PlaybackStartInfo::playSessionId ( ) const

Gets or sets the play session identifier.

◆ playSessionIdNull()

bool Jellyfin::DTO::PlaybackStartInfo::playSessionIdNull ( ) const

◆ positionTicks()

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

Gets or sets the position ticks.

◆ positionTicksNull()

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

◆ repeatMode()

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

◆ replaceData()

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

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

◆ sessionId()

QString Jellyfin::DTO::PlaybackStartInfo::sessionId ( ) const

Gets or sets the session id.

◆ sessionIdNull()

bool Jellyfin::DTO::PlaybackStartInfo::sessionIdNull ( ) const

◆ setAspectRatio()

void Jellyfin::DTO::PlaybackStartInfo::setAspectRatio ( QString newAspectRatio)

◆ setAspectRatioNull()

void Jellyfin::DTO::PlaybackStartInfo::setAspectRatioNull ( )

◆ setAudioStreamIndex()

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

Gets or sets the index of the audio stream.

◆ setAudioStreamIndexNull()

void Jellyfin::DTO::PlaybackStartInfo::setAudioStreamIndexNull ( )

◆ setBrightness()

void Jellyfin::DTO::PlaybackStartInfo::setBrightness ( std::optional< qint32 > newBrightness)

◆ setBrightnessNull()

void Jellyfin::DTO::PlaybackStartInfo::setBrightnessNull ( )

◆ setCanSeek()

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

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

◆ setFromJson()

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

◆ setIsMuted()

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

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

◆ setIsPaused()

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

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

◆ setItem()

void Jellyfin::DTO::PlaybackStartInfo::setItem ( QSharedPointer< BaseItemDto > newItem)

◆ setItemId()

void Jellyfin::DTO::PlaybackStartInfo::setItemId ( QString newItemId)

Gets or sets the item identifier.

◆ setLiveStreamId()

void Jellyfin::DTO::PlaybackStartInfo::setLiveStreamId ( QString newLiveStreamId)

Gets or sets the live stream identifier.

◆ setLiveStreamIdNull()

void Jellyfin::DTO::PlaybackStartInfo::setLiveStreamIdNull ( )

◆ setMediaSourceId()

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

Gets or sets the media version identifier.

◆ setMediaSourceIdNull()

void Jellyfin::DTO::PlaybackStartInfo::setMediaSourceIdNull ( )

◆ setNowPlayingQueue()

void Jellyfin::DTO::PlaybackStartInfo::setNowPlayingQueue ( QList< QueueItem > newNowPlayingQueue)

◆ setNowPlayingQueueNull()

void Jellyfin::DTO::PlaybackStartInfo::setNowPlayingQueueNull ( )

◆ setPlaybackStartTimeTicks()

void Jellyfin::DTO::PlaybackStartInfo::setPlaybackStartTimeTicks ( std::optional< qint64 > newPlaybackStartTimeTicks)

◆ setPlaybackStartTimeTicksNull()

void Jellyfin::DTO::PlaybackStartInfo::setPlaybackStartTimeTicksNull ( )

◆ setPlaylistItemId()

void Jellyfin::DTO::PlaybackStartInfo::setPlaylistItemId ( QString newPlaylistItemId)

◆ setPlaylistItemIdNull()

void Jellyfin::DTO::PlaybackStartInfo::setPlaylistItemIdNull ( )

◆ setPlayMethod()

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

◆ setPlaySessionId()

void Jellyfin::DTO::PlaybackStartInfo::setPlaySessionId ( QString newPlaySessionId)

Gets or sets the play session identifier.

◆ setPlaySessionIdNull()

void Jellyfin::DTO::PlaybackStartInfo::setPlaySessionIdNull ( )

◆ setPositionTicks()

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

Gets or sets the position ticks.

◆ setPositionTicksNull()

void Jellyfin::DTO::PlaybackStartInfo::setPositionTicksNull ( )

◆ setRepeatMode()

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

◆ setSessionId()

void Jellyfin::DTO::PlaybackStartInfo::setSessionId ( QString newSessionId)

Gets or sets the session id.

◆ setSessionIdNull()

void Jellyfin::DTO::PlaybackStartInfo::setSessionIdNull ( )

◆ setSubtitleStreamIndex()

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

Gets or sets the index of the subtitle stream.

◆ setSubtitleStreamIndexNull()

void Jellyfin::DTO::PlaybackStartInfo::setSubtitleStreamIndexNull ( )

◆ setVolumeLevel()

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

Gets or sets the volume level.

◆ setVolumeLevelNull()

void Jellyfin::DTO::PlaybackStartInfo::setVolumeLevelNull ( )

◆ subtitleStreamIndex()

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

Gets or sets the index of the subtitle stream.

◆ subtitleStreamIndexNull()

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

◆ toJson()

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

◆ volumeLevel()

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

Gets or sets the volume level.

◆ volumeLevelNull()

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

Member Data Documentation

◆ m_aspectRatio

QString Jellyfin::DTO::PlaybackStartInfo::m_aspectRatio
protected

◆ m_audioStreamIndex

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

◆ m_brightness

std::optional<qint32> Jellyfin::DTO::PlaybackStartInfo::m_brightness = std::nullopt
protected

◆ m_canSeek

bool Jellyfin::DTO::PlaybackStartInfo::m_canSeek
protected

◆ m_isMuted

bool Jellyfin::DTO::PlaybackStartInfo::m_isMuted
protected

◆ m_isPaused

bool Jellyfin::DTO::PlaybackStartInfo::m_isPaused
protected

◆ m_item

QSharedPointer<BaseItemDto> Jellyfin::DTO::PlaybackStartInfo::m_item = QSharedPointer<BaseItemDto>()
protected

◆ m_itemId

QString Jellyfin::DTO::PlaybackStartInfo::m_itemId
protected

◆ m_liveStreamId

QString Jellyfin::DTO::PlaybackStartInfo::m_liveStreamId
protected

◆ m_mediaSourceId

QString Jellyfin::DTO::PlaybackStartInfo::m_mediaSourceId
protected

◆ m_nowPlayingQueue

QList<QueueItem> Jellyfin::DTO::PlaybackStartInfo::m_nowPlayingQueue
protected

◆ m_playbackStartTimeTicks

std::optional<qint64> Jellyfin::DTO::PlaybackStartInfo::m_playbackStartTimeTicks = std::nullopt
protected

◆ m_playlistItemId

QString Jellyfin::DTO::PlaybackStartInfo::m_playlistItemId
protected

◆ m_playMethod

PlayMethod Jellyfin::DTO::PlaybackStartInfo::m_playMethod
protected

◆ m_playSessionId

QString Jellyfin::DTO::PlaybackStartInfo::m_playSessionId
protected

◆ m_positionTicks

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

◆ m_repeatMode

RepeatMode Jellyfin::DTO::PlaybackStartInfo::m_repeatMode
protected

◆ m_sessionId

QString Jellyfin::DTO::PlaybackStartInfo::m_sessionId
protected

◆ m_subtitleStreamIndex

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

◆ m_volumeLevel

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

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