summaryrefslogtreecommitdiffstats
path: root/xbmc/windowing/osx/CocoaDPMSSupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/windowing/osx/CocoaDPMSSupport.h')
-rw-r--r--xbmc/windowing/osx/CocoaDPMSSupport.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/xbmc/windowing/osx/CocoaDPMSSupport.h b/xbmc/windowing/osx/CocoaDPMSSupport.h
new file mode 100644
index 0000000..6a54f42
--- /dev/null
+++ b/xbmc/windowing/osx/CocoaDPMSSupport.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2009-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.
+ */
+
+#include "xbmc/powermanagement/DPMSSupport.h"
+
+class CCocoaDPMSSupport : public CDPMSSupport
+{
+public:
+ CCocoaDPMSSupport();
+ ~CCocoaDPMSSupport() override = default;
+
+protected:
+ bool EnablePowerSaving(PowerSavingMode mode) override;
+ bool DisablePowerSaving() override;
+};