1 /* 2 * Copyright (C) 2005-2018 Team Kodi 3 * This file is part of Kodi - https://kodi.tv 4 * 5 * SPDX-License-Identifier: GPL-2.0-or-later 6 * See LICENSES/README.md for more information. 7 */ 8 9 #pragma once 10 11 #include "FileItem.h" 12 #include "filesystem/Directory.h" 13 14 #include <string> 15 16 class CGUIDialogSimpleMenu 17 { 18 public: 19 20 /*! \brief Show dialog allowing selection of wanted playback item */ 21 static bool ShowPlaySelection(CFileItem& item); 22 static bool ShowPlaySelection(CFileItem& item, const std::string& directory); 23 24 protected: 25 static bool GetDirectoryItems(const std::string &path, CFileItemList &items, const XFILE::CDirectory::CHints &hints); 26 }; 27