xbmc
PVRCachedImage.h
1 /*
2  * Copyright (C) 2005-2021 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 <string>
12 
13 namespace PVR
14 {
15 
17 {
18 public:
19  CPVRCachedImage() = delete;
20  virtual ~CPVRCachedImage() = default;
21 
22  explicit CPVRCachedImage(const std::string& owner);
23  CPVRCachedImage(const std::string& clientImage, const std::string& owner);
24 
25  bool operator==(const CPVRCachedImage& right) const;
26  bool operator!=(const CPVRCachedImage& right) const;
27 
28  const std::string& GetClientImage() const { return m_clientImage; }
29  const std::string& GetLocalImage() const { return m_localImage; }
30 
31  void SetClientImage(const std::string& image);
32 
33  void SetOwner(const std::string& owner);
34 
35 private:
36  void UpdateLocalImage();
37 
38  std::string m_clientImage;
39  std::string m_localImage;
40  std::string m_owner;
41 };
42 
43 } // namespace PVR
Definition: PVRCachedImage.h:16
Definition: ContextMenuManager.h:24