aboutsummaryrefslogtreecommitdiff
path: root/xbmc/video/VideoFileItemClassify.h
blob: 55e5aeded778700c0e408f82fd31246b1c8925de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 *  Copyright (C) 2005-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#pragma once

class CFileItem;

namespace KODI::VIDEO
{

//! \brief Check whether an item is a blu-ray file.
bool IsBDFile(const CFileItem& item);

//! \brief Check whether an item is a disc stub.
bool IsDiscStub(const CFileItem& item);

//! \brief Check whether an item is a DVD file.
bool IsDVDFile(const CFileItem& item, bool bVobs = true, bool bIfos = true);

//! \brief Checks whether item points to a protected blu-ray disc.
bool IsProtectedBlurayDisc(const CFileItem& item);

//! \brief Check whether an item is a subtitle file.
bool IsSubtitle(const CFileItem& item);

//! \brief Check whether an item is a video item.
//! \details Note that this returns true for anything with a video info tag,
//!          so that may include eg. folders.
bool IsVideo(const CFileItem& item);

//! \brief Is the item a video asset, excluding folders
//! \param[in] item the item
//! \return true if it is, false otherwise
bool IsVideoAssetFile(const CFileItem& item);

//! \brief Check whether an item is a video database item.
bool IsVideoDb(const CFileItem& item);

//! \brief Check whether an item is a video extras folder item.
bool IsVideoExtrasFolder(const CFileItem& item);

} // namespace KODI::VIDEO