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

#include <playqueueupdate.h>

Public Member Functions

 PlayQueueUpdate (PlayQueueUpdateReason reason, QDateTime lastUpdate, QList< SyncPlayQueueItem > playlist, qint32 playingItemIndex, qint64 startPositionTicks, bool isPlaying, GroupShuffleMode shuffleMode, GroupRepeatMode repeatMode)
 PlayQueueUpdate (const PlayQueueUpdate &other)
void replaceData (PlayQueueUpdate &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
PlayQueueUpdateReason reason () const
void setReason (PlayQueueUpdateReason newReason)
QDateTime lastUpdate () const
 Gets the UTC time of the last change to the playing queue.
void setLastUpdate (QDateTime newLastUpdate)
 Gets the UTC time of the last change to the playing queue.
QList< SyncPlayQueueItemplaylist () const
 Gets the playlist.
void setPlaylist (QList< SyncPlayQueueItem > newPlaylist)
 Gets the playlist.
qint32 playingItemIndex () const
 Gets the playing item index in the playlist.
void setPlayingItemIndex (qint32 newPlayingItemIndex)
 Gets the playing item index in the playlist.
qint64 startPositionTicks () const
 Gets the start position ticks.
void setStartPositionTicks (qint64 newStartPositionTicks)
 Gets the start position ticks.
bool isPlaying () const
 Gets a value indicating whether the current item is playing.
void setIsPlaying (bool newIsPlaying)
 Gets a value indicating whether the current item is playing.
GroupShuffleMode shuffleMode () const
void setShuffleMode (GroupShuffleMode newShuffleMode)
GroupRepeatMode repeatMode () const
void setRepeatMode (GroupRepeatMode newRepeatMode)

Static Public Member Functions

static PlayQueueUpdate fromJson (QJsonObject source)

Protected Attributes

PlayQueueUpdateReason m_reason
QDateTime m_lastUpdate
QList< SyncPlayQueueItemm_playlist
qint32 m_playingItemIndex
qint64 m_startPositionTicks
bool m_isPlaying
GroupShuffleMode m_shuffleMode
GroupRepeatMode m_repeatMode

Constructor & Destructor Documentation

◆ PlayQueueUpdate() [1/2]

Jellyfin::DTO::PlayQueueUpdate::PlayQueueUpdate ( PlayQueueUpdateReason reason,
QDateTime lastUpdate,
QList< SyncPlayQueueItem > playlist,
qint32 playingItemIndex,
qint64 startPositionTicks,
bool isPlaying,
GroupShuffleMode shuffleMode,
GroupRepeatMode repeatMode )

◆ PlayQueueUpdate() [2/2]

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

Member Function Documentation

◆ fromJson()

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

◆ isPlaying()

bool Jellyfin::DTO::PlayQueueUpdate::isPlaying ( ) const

Gets a value indicating whether the current item is playing.

◆ lastUpdate()

QDateTime Jellyfin::DTO::PlayQueueUpdate::lastUpdate ( ) const

Gets the UTC time of the last change to the playing queue.

◆ playingItemIndex()

qint32 Jellyfin::DTO::PlayQueueUpdate::playingItemIndex ( ) const

Gets the playing item index in the playlist.

◆ playlist()

QList< SyncPlayQueueItem > Jellyfin::DTO::PlayQueueUpdate::playlist ( ) const

Gets the playlist.

◆ reason()

PlayQueueUpdateReason Jellyfin::DTO::PlayQueueUpdate::reason ( ) const

◆ repeatMode()

GroupRepeatMode Jellyfin::DTO::PlayQueueUpdate::repeatMode ( ) const

◆ replaceData()

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

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

◆ setFromJson()

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

◆ setIsPlaying()

void Jellyfin::DTO::PlayQueueUpdate::setIsPlaying ( bool newIsPlaying)

Gets a value indicating whether the current item is playing.

◆ setLastUpdate()

void Jellyfin::DTO::PlayQueueUpdate::setLastUpdate ( QDateTime newLastUpdate)

Gets the UTC time of the last change to the playing queue.

◆ setPlayingItemIndex()

void Jellyfin::DTO::PlayQueueUpdate::setPlayingItemIndex ( qint32 newPlayingItemIndex)

Gets the playing item index in the playlist.

◆ setPlaylist()

void Jellyfin::DTO::PlayQueueUpdate::setPlaylist ( QList< SyncPlayQueueItem > newPlaylist)

Gets the playlist.

◆ setReason()

void Jellyfin::DTO::PlayQueueUpdate::setReason ( PlayQueueUpdateReason newReason)

◆ setRepeatMode()

void Jellyfin::DTO::PlayQueueUpdate::setRepeatMode ( GroupRepeatMode newRepeatMode)

◆ setShuffleMode()

void Jellyfin::DTO::PlayQueueUpdate::setShuffleMode ( GroupShuffleMode newShuffleMode)

◆ setStartPositionTicks()

void Jellyfin::DTO::PlayQueueUpdate::setStartPositionTicks ( qint64 newStartPositionTicks)

Gets the start position ticks.

◆ shuffleMode()

GroupShuffleMode Jellyfin::DTO::PlayQueueUpdate::shuffleMode ( ) const

◆ startPositionTicks()

qint64 Jellyfin::DTO::PlayQueueUpdate::startPositionTicks ( ) const

Gets the start position ticks.

◆ toJson()

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

Member Data Documentation

◆ m_isPlaying

bool Jellyfin::DTO::PlayQueueUpdate::m_isPlaying
protected

◆ m_lastUpdate

QDateTime Jellyfin::DTO::PlayQueueUpdate::m_lastUpdate
protected

◆ m_playingItemIndex

qint32 Jellyfin::DTO::PlayQueueUpdate::m_playingItemIndex
protected

◆ m_playlist

QList<SyncPlayQueueItem> Jellyfin::DTO::PlayQueueUpdate::m_playlist
protected

◆ m_reason

PlayQueueUpdateReason Jellyfin::DTO::PlayQueueUpdate::m_reason
protected

◆ m_repeatMode

GroupRepeatMode Jellyfin::DTO::PlayQueueUpdate::m_repeatMode
protected

◆ m_shuffleMode

GroupShuffleMode Jellyfin::DTO::PlayQueueUpdate::m_shuffleMode
protected

◆ m_startPositionTicks

qint64 Jellyfin::DTO::PlayQueueUpdate::m_startPositionTicks
protected

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