summaryrefslogtreecommitdiffstats
path: root/xbmc/events/windows/GUIViewStateEventLog.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--xbmc/events/windows/GUIViewStateEventLog.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/xbmc/events/windows/GUIViewStateEventLog.h b/xbmc/events/windows/GUIViewStateEventLog.h
new file mode 100644
index 0000000..d7436ed
--- /dev/null
+++ b/xbmc/events/windows/GUIViewStateEventLog.h
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2015-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+#include "view/GUIViewState.h"
+
+class CGUIViewStateEventLog : public CGUIViewState
+{
+public:
+ explicit CGUIViewStateEventLog(const CFileItemList& items);
+ ~CGUIViewStateEventLog() override = default;
+
+ // specializations of CGUIViewState
+ bool HideExtensions() override { return true; }
+ bool HideParentDirItems() override { return true; }
+ bool DisableAddSourceButtons() override { return true; }
+
+protected:
+ // specializations of CGUIViewState
+ void SaveViewState() override;
+ std::string GetExtensions() override;
+};
+