xbmc
GUIDialogPVRGuideInfo.h
1 /*
2  * Copyright (C) 2012-2018 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 "guilib/GUIDialog.h"
12 
13 #include <memory>
14 
15 class CGUIMessage;
16 
17 namespace PVR
18 {
20 {
21 public:
23  ~CGUIDialogPVRGuideInfo() override;
24  bool OnMessage(CGUIMessage& message) override;
25  bool OnInfo(int actionID) override;
26  bool HasListItems() const override { return true; }
27  CFileItemPtr GetCurrentListItem(int offset = 0) override;
28 
29  void SetProgInfo(const std::shared_ptr<CFileItem>& item);
30 
31 protected:
32  void OnInitWindow() override;
33 
34 private:
35  bool OnClickButtonOK(const CGUIMessage& message);
36  bool OnClickButtonRecord(const CGUIMessage& message);
37  bool OnClickButtonPlay(const CGUIMessage& message);
38  bool OnClickButtonFind(const CGUIMessage& message);
39  bool OnClickButtonAddTimer(const CGUIMessage& message);
40  bool OnClickButtonSetReminder(const CGUIMessage& message);
41 
42  std::shared_ptr<CFileItem> m_progItem;
43 };
44 } // namespace PVR
Definition: ContextMenuManager.h:24
void OnInitWindow() override
Called on window open.
Definition: GUIDialogPVRGuideInfo.cpp:209
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
Definition: GUIDialogPVRGuideInfo.h:19