2 * Copyright (C) 2023 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "SlideShowDelegator.h"
11 void CSlideShowDelegator::SetDelegate(ISlideShowDelegate
* delegate
)
13 m_delegate
= delegate
;
16 void CSlideShowDelegator::ResetDelegate()
21 void CSlideShowDelegator::Add(const CFileItem
* picture
)
25 m_delegate
->Add(picture
);
29 bool CSlideShowDelegator::IsPlaying() const
33 return m_delegate
->IsPlaying();
38 void CSlideShowDelegator::Select(const std::string
& picture
)
42 m_delegate
->Select(picture
);
46 void CSlideShowDelegator::GetSlideShowContents(CFileItemList
& list
)
50 m_delegate
->GetSlideShowContents(list
);
54 std::shared_ptr
<const CFileItem
> CSlideShowDelegator::GetCurrentSlide()
58 return m_delegate
->GetCurrentSlide();
63 void CSlideShowDelegator::StartSlideShow()
67 m_delegate
->StartSlideShow();
71 void CSlideShowDelegator::PlayPicture()
75 m_delegate
->PlayPicture();
79 bool CSlideShowDelegator::InSlideShow() const
83 return m_delegate
->InSlideShow();
88 int CSlideShowDelegator::NumSlides() const
92 return m_delegate
->NumSlides();
97 int CSlideShowDelegator::CurrentSlide() const
101 return m_delegate
->CurrentSlide();
106 bool CSlideShowDelegator::IsPaused() const
110 return m_delegate
->IsPaused();
115 bool CSlideShowDelegator::IsShuffled() const
119 return m_delegate
->IsShuffled();
124 void CSlideShowDelegator::Reset()
132 void CSlideShowDelegator::Shuffle()
136 m_delegate
->Shuffle();
140 int CSlideShowDelegator::GetDirection() const
144 return m_delegate
->GetDirection();
149 void CSlideShowDelegator::RunSlideShow(const std::string
& strPath
,
153 const std::string
& beginSlidePath
,
157 SortAttribute sortAttributes
,
158 const std::string
& strExtensions
)
162 m_delegate
->RunSlideShow(strPath
, bRecursive
, bRandom
, bNotRandom
, beginSlidePath
,
163 startSlideShow
, method
, order
, sortAttributes
, strExtensions
);
167 void CSlideShowDelegator::AddFromPath(const std::string
& strPath
,
171 SortAttribute sortAttributes
,
172 const std::string
& strExtensions
)
176 m_delegate
->AddFromPath(strPath
, bRecursive
, method
, order
, sortAttributes
, strExtensions
);