kodi
PVRStreamProperties.h
1 /*
2  * Copyright (C) 2012-2019 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 #include <utility>
13 #include <vector>
14 
15 namespace PVR
16 {
17 
18 class CPVRStreamProperties : public std::vector<std::pair<std::string, std::string>>
19 {
20 public:
21  CPVRStreamProperties() = default;
22  virtual ~CPVRStreamProperties() = default;
23 
28  std::string GetStreamURL() const;
29 
34  std::string GetStreamMimeType() const;
35 
40  bool EPGPlaybackAsLive() const;
41 };
42 
43 } // namespace PVR
Definition: PVRStreamProperties.h:18
Definition: ContextMenuManager.h:24
bool EPGPlaybackAsLive() const
If props are from an EPG tag indicates if playback should be as live playback would be...
Definition: PVRStreamProperties.cpp:34
std::string GetStreamURL() const
Obtain the URL of the stream.
Definition: PVRStreamProperties.cpp:18
std::string GetStreamMimeType() const
Obtain the MIME type of the stream.
Definition: PVRStreamProperties.cpp:26