kodi
GUIDialogPVRRecordingInfo.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 class CFileItem;
14 class CGUIMessage;
15 
16 namespace PVR
17 {
19 {
20 public:
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;
27 
28  void SetRecording(const CFileItem& item);
29 
30 private:
31  bool OnClickButtonFind(const CGUIMessage& message);
32  bool OnClickButtonOK(const CGUIMessage& message);
33  bool OnClickButtonPlay(const CGUIMessage& message);
34 
35  CFileItemPtr m_recordItem;
36 };
37 } // namespace PVR
Definition: ContextMenuManager.h:24
Definition: GUIDialogPVRRecordingInfo.h:18
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
Represents a file on a share.
Definition: FileItem.h:102