-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #677 from ksooo/providers-support
Add support for PVR Providers (HTSPv38+)
- Loading branch information
Showing
10 changed files
with
195 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (C) 2024 Team Kodi (https://kodi.tv) | ||
* | ||
* SPDX-License-Identifier: GPL-2.0-or-later | ||
* See LICENSE.md for more information. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "Entity.h" | ||
|
||
#include <cstdint> | ||
#include <map> | ||
#include <string> | ||
#include <utility> | ||
|
||
namespace tvheadend::entity | ||
{ | ||
|
||
class Provider; | ||
using ProviderMapEntry = std::pair<int32_t, Provider>; | ||
using Providers = std::map<int32_t, Provider>; | ||
|
||
/** | ||
* Represents a provider | ||
*/ | ||
class Provider : public Entity | ||
{ | ||
public: | ||
Provider() = default; | ||
|
||
bool operator==(const Provider& other) const | ||
{ | ||
return m_id == other.m_id && m_name == other.m_name; | ||
} | ||
|
||
bool operator!=(const Provider& other) const { return !(*this == other); } | ||
|
||
const std::string& GetName() const { return m_name; } | ||
void SetName(const std::string& name) { m_name = name; } | ||
|
||
private: | ||
std::string m_name; | ||
}; | ||
} // namespace tvheadend::entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters