2 * Copyright (C) 2005-2013 Team XBMC
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
24 #ifndef _WIN32_POWER_SYSCALL_H_
25 #define _WIN32_POWER_SYSCALL_H_
26 #include "powermanagement/IPowerSyscall.h"
28 class CWin32PowerSyscall : public IPowerSyscall
33 virtual bool Powerdown();
34 virtual bool Suspend();
35 virtual bool Hibernate();
36 virtual bool Reboot();
38 virtual bool CanPowerdown();
39 virtual bool CanSuspend();
40 virtual bool CanHibernate();
41 virtual bool CanReboot();
42 virtual int BatteryLevel();
44 virtual bool PumpPowerEvents(IPowerEventsCallback *callback);
46 static void SetOnResume() { m_OnResume = true; }
47 static void SetOnSuspend() { m_OnSuspend = true; }
48 static bool IsSuspending() { return m_OnSuspend; }
52 static bool m_OnResume;
53 static bool m_OnSuspend;