xbmc
GUIInfoProvider.h
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 "cores/VideoPlayer/Interface/StreamInfo.h"
12 #include "guilib/guiinfo/IGUIInfoProvider.h"
13 
14 namespace KODI
15 {
16 namespace GUILIB
17 {
18 namespace GUIINFO
19 {
20 
21 class CGUIInfo;
22 
24 {
25 public:
26  CGUIInfoProvider() = default;
27  ~CGUIInfoProvider() override = default;
28 
29  bool GetFallbackLabel(std::string& value,
30  const CFileItem* item,
31  int contextWindow,
32  const CGUIInfo& info,
33  std::string* fallback) override
34  {
35  return false;
36  }
37 
38  void UpdateAVInfo(const AudioStreamInfo& audioInfo, const VideoStreamInfo& videoInfo, const SubtitleStreamInfo& subtitleInfo) override
39  { m_audioInfo = audioInfo, m_videoInfo = videoInfo, m_subtitleInfo = subtitleInfo; }
40 
41 protected:
42  VideoStreamInfo m_videoInfo;
43  AudioStreamInfo m_audioInfo;
44  SubtitleStreamInfo m_subtitleInfo;
45 };
46 
47 } // namespace GUIINFO
48 } // namespace GUILIB
49 } // namespace KODI
Definition: StreamInfo.h:65
void UpdateAVInfo(const AudioStreamInfo &audioInfo, const VideoStreamInfo &videoInfo, const SubtitleStreamInfo &subtitleInfo) override
Set new audio/video stream info data.
Definition: GUIInfoProvider.h:38
Definition: IGUIInfoProvider.h:28
Definition: GUIInfoProvider.h:23
Definition: StreamInfo.h:55
Definition: StreamInfo.h:62
Controller configuration window.
Definition: AudioDecoder.h:18
bool GetFallbackLabel(std::string &value, const CFileItem *item, int contextWindow, const CGUIInfo &info, std::string *fallback) override
Get a GUIInfoManager label fallback string. Will be called if none of the registered provider's GetLa...
Definition: GUIInfoProvider.h:29
Definition: GUIInfo.h:23
Represents a file on a share.
Definition: FileItem.h:102