[video] fix selection after changing video or extra art
[xbmc.git] / xbmc / pvr / dialogs / GUIDialogPVRGuideInfo.h
blob8d9bda5e0d00dc0b3f56054567096d0fc092546c
1 /*
2 * Copyright (C) 2012-2018 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 "guilib/GUIDialog.h"
13 #include <memory>
15 class CGUIMessage;
17 namespace PVR
19 class CGUIDialogPVRGuideInfo : public CGUIDialog
21 public:
22 CGUIDialogPVRGuideInfo();
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;
29 void SetProgInfo(const std::shared_ptr<CFileItem>& item);
31 protected:
32 void OnInitWindow() override;
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);
42 std::shared_ptr<CFileItem> m_progItem;
44 } // namespace PVR