kodi
VideoManagerTypes.h
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 <string>
12 
13 enum class VideoAssetTypeOwner
14 {
15  UNKNOWN = -1,
16  SYSTEM = 0,
17  AUTO = 1,
18  USER = 2
19 };
20 
21 enum class VideoAssetType : int
22 {
23  UNKNOWN = -1,
24  VERSION = 0,
25  EXTRA = 1
26 };
27 
28 enum class MediaRole
29 {
30  NewVersion,
31  Parent
32 };
33 
34 static constexpr int VIDEO_VERSION_ID_BEGIN = 40400;
35 static constexpr int VIDEO_VERSION_ID_END = 40800;
36 static constexpr int VIDEO_VERSION_ID_DEFAULT = VIDEO_VERSION_ID_BEGIN;
37 static constexpr int VIDEO_VERSION_ID_ALL = 0;
38 static const std::string VIDEODB_PATH_VERSION_ID_ALL{"videodb://movies/videoversions/0"};
39 
41 {
42  int m_idFile{-1};
43  int m_assetTypeId{-1};
44  std::string m_assetTypeName;
45  int m_idMedia{-1};
46  MediaType m_mediaType{MediaTypeNone};
47  VideoAssetType m_assetType{VideoAssetType::UNKNOWN};
48 };
Definition: VideoManagerTypes.h:40