| 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 |
|
| 13 |
class CGUIWindowEventLog : public CGUIMediaWindow |
| 14 |
{ |
| 15 |
public: |
| 16 |
CGUIWindowEventLog(); |
| 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 |
}; |