xbmc
PVRChannelGroupFromUser.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<CPVRChannelGroup>& allChannelsGroup);
26 
31  bool SupportsDelete() const override { return true; }
32 
37  bool SupportsMemberAdd() const override { return true; }
38 
43  bool SupportsMemberRemove() const override { return true; }
44 
49  bool IsChannelsOwner() const override { return false; }
50 
56  bool UpdateFromClients(const std::vector<std::shared_ptr<CPVRClient>>& clients) override;
57 
58 private:
62  int GroupType() const override { return PVR_GROUP_TYPE_LOCAL; }
63 };
64 } // namespace PVR
bool SupportsDelete() const override
Check whether this group could be deleted by the user.
Definition: PVRChannelGroupFromUser.h:31
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: PVRChannelGroupFromUser.cpp:19
Definition: ContextMenuManager.h:24
bool SupportsMemberAdd() const override
Check whether members could be added to this group by the user.
Definition: PVRChannelGroupFromUser.h:37
bool SupportsMemberRemove() const override
Check whether members could be removed from this group by the user.
Definition: PVRChannelGroupFromUser.h:43
bool IsChannelsOwner() const override
Check whether this group is owner of the channel instances it contains.
Definition: PVRChannelGroupFromUser.h:49
Definition: PVRChannelsPath.h:17
CPVRChannelGroupFromUser(const CPVRChannelsPath &path, const std::shared_ptr< CPVRChannelGroup > &allChannelsGroup)
Create a new channel group instance.
Definition: PVRChannelGroupFromUser.cpp:13
Definition: PVRChannelGroupFromUser.h:16
Definition: PVRChannelGroup.h:52