AdditionsFacilityImpl.h revision db4e05173041f696b1362c454bbf7e3a41fbe955
/** @file
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2011 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_ADDITIONSFACILITYIMPL
#define ____H_ADDITIONSFACILITYIMPL
#include "VirtualBoxBase.h"
{
// public initializer/uninitializer for internal purposes only
HRESULT init(Guest *a_pParent, AdditionsFacilityType_T a_enmFacility, AdditionsFacilityStatus_T a_enmStatus,
void uninit();
void FinalRelease();
// IAdditionsFacility properties
/** Facility <-> string mappings. */
struct FacilityInfo
{
/** The facilitie's name. */
const char *mName; /* utf-8 */
/** The facilitie's type. */
/** The facilitie's class. */
};
// public internal methods
AdditionsFacilityClass_T getClass() const;
LONG64 getLastUpdated() const;
AdditionsFacilityStatus_T getStatus() const;
AdditionsFacilityType_T getType() const;
struct Data
{
/** Timestamp of last updated status.
* @todo Add a UpdateRecord struct to keep track of all
* status changed + their time; nice for some GUIs. */
/** The facilitie's current status. */
} mData;
};
#endif // ____H_ADDITIONSFACILITYIMPL