summaryrefslogtreecommitdiffstats
path: root/xbmc/pvr/PVRStreamProperties.h
blob: 66906606017981279cd0a68686ed00794eb154ff (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
/*
 *  Copyright (C) 2012-2019 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

#include <string>
#include <utility>
#include <vector>

namespace PVR
{

class CPVRStreamProperties : public std::vector<std::pair<std::string, std::string>>
{
public:
  CPVRStreamProperties() = default;
  virtual ~CPVRStreamProperties() = default;

  /*!
   * @brief Obtain the URL of the stream.
   * @return The stream URL or empty string, if not found.
   */
  std::string GetStreamURL() const;

  /*!
   * @brief Obtain the MIME type of the stream.
   * @return The stream's MIME type or empty string, if not found.
   */
  std::string GetStreamMimeType() const;

  /*!
   * @brief If props are from an EPG tag indicates if playback should be as live playback would be
   * @return true if it should be played back as live, false otherwise.
   */
  bool EPGPlaybackAsLive() const;
};

} // namespace PVR