HostPower.h revision 0a1ded7cadae50b2ee93d8df1d2af5b00b5b88e5
/** @file
*
* VirtualBox interface to host's power notification service
*/
/*
* Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ____H_HOSTPOWER
#define ____H_HOSTPOWER
#include "VirtualBoxBase.h"
#include <vector>
#ifdef RT_OS_DARWIN
#endif /* RT_OS_DARWIN */
{
bool fSavestateOnBatteryLow;
};
# ifdef RT_OS_WINDOWS
/**
* The Windows hosted Power Service.
*/
{
};
/**
* The Darwin hosted Power Service.
*/
{
static void powerChangeNotificationHandler(void *pvData, io_service_t service, natural_t messageType, void *pMessageArgument);
static void lowPowerHandler(void *pvData);
/* Private member vars */
bool mCritical; /* Indicate if the battery was in the critical state last checked */
};
# endif /* RT_OS_DARWIN */
#endif /* !____H_HOSTPOWER */
/* vi: set tabstop=4 shiftwidth=4 expandtab: */