Merge pull request #25614 from garbear/show-version
[xbmc.git] / xbmc / pvr / guilib / PVRGUIChannelIconUpdater.h
blobd64a41ffe4f16a1005c392bd2728fc9eb8b8989b
1 /*
2 * Copyright (C) 2012-2019 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include <memory>
12 #include <vector>
14 namespace PVR
17 class CPVRChannelGroup;
19 class CPVRGUIChannelIconUpdater
21 public:
22 /*!
23 * @brief ctor.
24 * @param groups The channel groups for which the channel icons shall be updated.
25 * @param bUpdateDb If true, persist the changed values in the PVR database.
27 CPVRGUIChannelIconUpdater(const std::vector<std::shared_ptr<CPVRChannelGroup>>& groups, bool bUpdateDb)
28 : m_groups(groups), m_bUpdateDb(bUpdateDb) {}
30 CPVRGUIChannelIconUpdater() = delete;
31 CPVRGUIChannelIconUpdater(const CPVRGUIChannelIconUpdater&) = delete;
32 CPVRGUIChannelIconUpdater& operator=(const CPVRGUIChannelIconUpdater&) = delete;
34 virtual ~CPVRGUIChannelIconUpdater() = default;
36 /*!
37 * @brief Search and update missing channel icons.
39 void SearchAndUpdateMissingChannelIcons() const;
41 private:
42 const std::vector<std::shared_ptr<CPVRChannelGroup>> m_groups;
43 const bool m_bUpdateDb = false;