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

A simple shuffler which shuffles each item in the list in advance. More...

#include <shuffle.h>

Inheritance diagram for Jellyfin::Model::SimpleListShuffle:
Jellyfin::Model::ListShuffleBase Jellyfin::Model::NoShuffle Jellyfin::Model::Shuffle

Public Member Functions

 SimpleListShuffle (const Playlist *parent)
 
virtual void shuffleInAdvance () override
 Shuffle the list in advance. Should only be called if canShuffleInAdvance() is called.
 
- Public Member Functions inherited from Jellyfin::Model::ListShuffleBase
 ListShuffleBase (const Playlist *parent)
 
virtual int currentItem () const override
 
virtual int nextItem () const override
 
virtual int itemAt (int index) const override
 Determine the item index at at the shuffled index.
 
- Public Member Functions inherited from Jellyfin::Model::NoShuffle
 NoShuffle (const Playlist *parent)
 
virtual void previous () override
 The shuffle should determine the previous item.
 
virtual void next () override
 The shuffle should determine the next item.
 
virtual void setIndex (int i) override
 Set the index of the now playing item.
 
virtual bool hasPrevious () const override
 
virtual bool hasNext () const override
 
- Public Member Functions inherited from Jellyfin::Model::Shuffle
 Shuffle (const Playlist *parent)
 
virtual bool canShuffleInAdvance ()
 If this Shuffle implementation shuffles the entire list in advance.
 
void setRepeatAll (bool repeatAll)
 Sets whether the shuffler to loop over the list if all items are played.
 

Additional Inherited Members

- Protected Member Functions inherited from Jellyfin::Model::NoShuffle
int nextIndex () const
 
int previousIndex () const
 
- Static Protected Member Functions inherited from Jellyfin::Model::Shuffle
static int random (int max, int min=0)
 
- Protected Attributes inherited from Jellyfin::Model::ListShuffleBase
QVector< int > m_map
 
- Protected Attributes inherited from Jellyfin::Model::NoShuffle
int m_index = 0
 
- Protected Attributes inherited from Jellyfin::Model::Shuffle
const Playlistm_playlist
 Playlist that can be used to gather information about the songs if needed for the algorithm.
 
bool m_repeatAll = false
 

Detailed Description

A simple shuffler which shuffles each item in the list in advance.

Constructor & Destructor Documentation

◆ SimpleListShuffle()

Jellyfin::Model::SimpleListShuffle::SimpleListShuffle ( const Playlist * parent)

Member Function Documentation

◆ shuffleInAdvance()

void Jellyfin::Model::SimpleListShuffle::shuffleInAdvance ( )
overridevirtual

Shuffle the list in advance. Should only be called if canShuffleInAdvance() is called.

Reimplemented from Jellyfin::Model::Shuffle.


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