Merge pull request #24943 from foresto/prev-subtitle
[xbmc.git] / xbmc / pvr / dialogs / GUIDialogPVRRecordingInfo.h
blobb22e0d7233bb833022d39e1f59c8705e3e69e967
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 class CFileItem;
14 class CGUIMessage;
16 namespace PVR
18 class CGUIDialogPVRRecordingInfo : public CGUIDialog
20 public:
21 CGUIDialogPVRRecordingInfo();
22 ~CGUIDialogPVRRecordingInfo() override = default;
23 bool OnMessage(CGUIMessage& message) override;
24 bool OnInfo(int actionID) override;
25 bool HasListItems() const override { return true; }
26 CFileItemPtr GetCurrentListItem(int offset = 0) override;
28 void SetRecording(const CFileItem& item);
30 private:
31 bool OnClickButtonFind(const CGUIMessage& message);
32 bool OnClickButtonOK(const CGUIMessage& message);
33 bool OnClickButtonPlay(const CGUIMessage& message);
35 CFileItemPtr m_recordItem;
37 } // namespace PVR