kodi
PVRChannelGroupFromClient.h
1 /*
2  * Copyright (C) 2012-2023 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 "pvr/channels/PVRChannelGroup.h"
12 
13 namespace PVR
14 {
15 
17 {
18 public:
25  const std::shared_ptr<const CPVRChannelGroup>& allChannelsGroup);
26 
34  int clientID,
35  const std::shared_ptr<const CPVRChannelGroup>& allChannelsGroup);
36 
41  bool SupportsDelete() const override { return false; }
42 
47  bool SupportsMemberAdd() const override { return false; }
48 
53  bool SupportsMemberRemove() const override { return false; }
54 
59  bool IsChannelsOwner() const override { return false; }
60 
66  bool UpdateFromClients(const std::vector<std::shared_ptr<CPVRClient>>& clients) override;
67 
68 private:
72  int GroupType() const override { return PVR_GROUP_TYPE_REMOTE; }
73 };
74 } // namespace PVR
bool SupportsMemberRemove() const override
Check whether members could be removed from this group by the user.
Definition: PVRChannelGroupFromClient.h:53
Definition: ContextMenuManager.h:24
bool IsChannelsOwner() const override
Check whether this group is owner of the channel instances it contains.
Definition: PVRChannelGroupFromClient.h:59
CPVRChannelGroupFromClient(const CPVRChannelsPath &path, const std::shared_ptr< const CPVRChannelGroup > &allChannelsGroup)
Create a new channel group instance.
Definition: PVRChannelGroupFromClient.cpp:18
Definition: PVRChannelGroupFromClient.h:16
Definition: PVRChannelsPath.h:17
bool UpdateFromClients(const std::vector< std::shared_ptr< CPVRClient >> &clients) override
Update data with channel group members from the given clients, sync with local data.
Definition: PVRChannelGroupFromClient.cpp:35
Definition: SmartPlayList.cpp:137
"C" PVR add-on channel group.
Definition: pvr_channel_groups.h:30
bool SupportsMemberAdd() const override
Check whether members could be added to this group by the user.
Definition: PVRChannelGroupFromClient.h:47
bool SupportsDelete() const override
Check whether this group could be deleted by the user.
Definition: PVRChannelGroupFromClient.h:41
Definition: PVRChannelGroup.h:52