kodi
ContentUtils.h
1 /*
2  * Copyright (C) 2005-2020 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 #include <string>
13 
14 class CFileItem;
15 
17 {
18 public:
22  enum class PlayMode
23  {
24  CHECK_AUTO_PLAY_NEXT_ITEM,
27  };
28 
36  static const std::string GetPreferredArtImage(const CFileItem& item);
37 
44  static std::unique_ptr<CFileItem> GeneratePlayableTrailerItem(const CFileItem& item,
45  const std::string& label);
46 };
PlayMode
Defines play modes to be used in conjunction with the setting "play next video|song automatically"...
Definition: ContentUtils.h:22
static const std::string GetPreferredArtImage(const CFileItem &item)
Gets the preferred art image for a given item (depending on its media type). Provided a CFileItem wit...
Definition: ContentUtils.cpp:36
static std::unique_ptr< CFileItem > GeneratePlayableTrailerItem(const CFileItem &item, const std::string &label)
Gets a trailer playable file item for a given item. Essentially this creates a new item which contain...
Definition: ContentUtils.cpp:49
Definition: ContentUtils.h:16
Represents a file on a share.
Definition: FileItem.h:102