| 1 | /* |
| 2 | * Copyright (C) 2023 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 <memory> |
| 12 | |
| 13 | class CFileItem; |
| 14 | |
| 15 | namespace VIDEO |
| 16 | { |
| 17 | namespace GUILIB |
| 18 | { |
| 19 | class CVideoVersionHelper |
| 20 | { |
| 21 | public: |
| 22 | static std::shared_ptr<CFileItem> ChooseVideoFromAssets(const std::shared_ptr<CFileItem>& item); |
| 23 | }; |
| 24 | } // namespace GUILIB |
| 25 | |
| 26 | /*! |
| 27 | * \brief Is the item a video asset, excluding folders |
| 28 | * \param[in] item the item |
| 29 | * \return true if it is, false otherwise |
| 30 | */ |
| 31 | bool IsVideoAssetFile(const CFileItem& item); |
| 32 | |
| 33 | } // namespace VIDEO |