xbmc
GUIWindowEventLog.h
1 /*
2  * Copyright (C) 2015-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 "windows/GUIMediaWindow.h"
12 
14 {
15 public:
17  ~CGUIWindowEventLog() override;
18 
19  // specialization of CGUIControl
20  bool OnMessage(CGUIMessage& message) override;
21 
22 protected:
23  // specialization of CGUIMediaWindow
24  bool OnSelect(int item) override;
25  void GetContextButtons(int itemNumber, CContextButtons &buttons) override;
26  bool OnContextButton(int itemNumber, CONTEXT_BUTTON button) override;
27  void UpdateButtons() override;
28  bool GetDirectory(const std::string &strDirectory, CFileItemList &items) override;
29  std::string GetRootPath() const override { return "events://"; }
30 
31  bool OnSelect(const CFileItemPtr& item);
32  bool OnDelete(const CFileItemPtr& item);
33  bool OnExecute(const CFileItemPtr& item);
34 
35  void OnEventAdded(const CFileItemPtr& item);
36  void OnEventRemoved(const CFileItemPtr& item);
37 };
void UpdateButtons() override
Updates the states.
Definition: GUIWindowEventLog.cpp:180
Represents a list of files.
Definition: FileItem.h:713
Definition: GUIWindowEventLog.h:13
Definition: GUIMessage.h:365
Definition: GUIMediaWindow.h:28
Definition: GUIDialogContextMenu.h:95
bool GetDirectory(const std::string &strDirectory, CFileItemList &items) override
Overwrite to fill fileitems from a source.
Definition: GUIWindowEventLog.cpp:199