Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CSlideShowDelegator Class Reference

#include <SlideShowDelegator.h>

Inheritance diagram for CSlideShowDelegator:
ISlideShowDelegate

Public Member Functions

 CSlideShowDelegator ()=default
 
 ~CSlideShowDelegator ()=default
 
void SetDelegate (ISlideShowDelegate *delegate)
 
void ResetDelegate ()
 
void Add (const CFileItem *picture) override
 
bool IsPlaying () const override
 
void Select (const std::string &picture) override
 
void GetSlideShowContents (CFileItemList &list) override
 
std::shared_ptr< const CFileItemGetCurrentSlide () override
 
void StartSlideShow () override
 
void PlayPicture () override
 
bool InSlideShow () const override
 
int NumSlides () const override
 
int CurrentSlide () const override
 
bool IsPaused () const override
 
bool IsShuffled () const override
 
void Reset () override
 
void Shuffle () override
 
int GetDirection () const override
 
void RunSlideShow (const std::string &strPath, bool bRecursive=false, bool bRandom=false, bool bNotRandom=false, const std::string &beginSlidePath="", bool startSlideShow=true, SortBy method=SortByLabel, SortOrder order=SortOrderAscending, SortAttribute sortAttributes=SortAttributeNone, const std::string &strExtensions="") override
 
void AddFromPath (const std::string &strPath, bool bRecursive, SortBy method=SortByLabel, SortOrder order=SortOrderAscending, SortAttribute sortAttributes=SortAttributeNone, const std::string &strExtensions="") override
 
- Public Member Functions inherited from ISlideShowDelegate
 ISlideShowDelegate ()=default
 
virtual ~ISlideShowDelegate ()=default
 

Constructor & Destructor Documentation

◆ CSlideShowDelegator()

CSlideShowDelegator::CSlideShowDelegator ( )
default

◆ ~CSlideShowDelegator()

CSlideShowDelegator::~CSlideShowDelegator ( )
default

Member Function Documentation

◆ Add()

void CSlideShowDelegator::Add ( const CFileItem * picture)
overridevirtual

Implements ISlideShowDelegate.

◆ AddFromPath()

void CSlideShowDelegator::AddFromPath ( const std::string & strPath,
bool bRecursive,
SortBy method = SortByLabel,
SortOrder order = SortOrderAscending,
SortAttribute sortAttributes = SortAttributeNone,
const std::string & strExtensions = "" )
overridevirtual
Todo
  • refactor to use an options struct. Methods with so many arguments are a sign of a bad design...

Implements ISlideShowDelegate.

◆ CurrentSlide()

int CSlideShowDelegator::CurrentSlide ( ) const
overridevirtual

Implements ISlideShowDelegate.

◆ GetCurrentSlide()

std::shared_ptr< const CFileItem > CSlideShowDelegator::GetCurrentSlide ( )
overridevirtual

Implements ISlideShowDelegate.

◆ GetDirection()

int CSlideShowDelegator::GetDirection ( ) const
overridevirtual

Implements ISlideShowDelegate.

◆ GetSlideShowContents()

void CSlideShowDelegator::GetSlideShowContents ( CFileItemList & list)
overridevirtual

Implements ISlideShowDelegate.

◆ InSlideShow()

bool CSlideShowDelegator::InSlideShow ( ) const
overridevirtual

Implements ISlideShowDelegate.

◆ IsPaused()

bool CSlideShowDelegator::IsPaused ( ) const
overridevirtual

Implements ISlideShowDelegate.

◆ IsPlaying()

bool CSlideShowDelegator::IsPlaying ( ) const
overridevirtual

Implements ISlideShowDelegate.

◆ IsShuffled()

bool CSlideShowDelegator::IsShuffled ( ) const
overridevirtual

Implements ISlideShowDelegate.

◆ NumSlides()

int CSlideShowDelegator::NumSlides ( ) const
overridevirtual

Implements ISlideShowDelegate.

◆ PlayPicture()

void CSlideShowDelegator::PlayPicture ( )
overridevirtual

Implements ISlideShowDelegate.

◆ Reset()

void CSlideShowDelegator::Reset ( )
overridevirtual

Implements ISlideShowDelegate.

◆ ResetDelegate()

void CSlideShowDelegator::ResetDelegate ( )

◆ RunSlideShow()

void CSlideShowDelegator::RunSlideShow ( const std::string & strPath,
bool bRecursive = false,
bool bRandom = false,
bool bNotRandom = false,
const std::string & beginSlidePath = "",
bool startSlideShow = true,
SortBy method = SortByLabel,
SortOrder order = SortOrderAscending,
SortAttribute sortAttributes = SortAttributeNone,
const std::string & strExtensions = "" )
overridevirtual
Todo
  • refactor to use an options struct. Methods with so many arguments are a sign of a bad design...

Implements ISlideShowDelegate.

◆ Select()

void CSlideShowDelegator::Select ( const std::string & picture)
overridevirtual

Implements ISlideShowDelegate.

◆ SetDelegate()

void CSlideShowDelegator::SetDelegate ( ISlideShowDelegate * delegate)

◆ Shuffle()

void CSlideShowDelegator::Shuffle ( )
overridevirtual

Implements ISlideShowDelegate.

◆ StartSlideShow()

void CSlideShowDelegator::StartSlideShow ( )
overridevirtual

Implements ISlideShowDelegate.


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