MediumAttachmentImpl.h revision 48b70e61f84ec60376c3d77e370428969d335810
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2009 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_MEDIUMATTACHMENTIMPL
#define ____H_MEDIUMATTACHMENTIMPL
#include "VirtualBoxBase.h"
{
MediumAttachment() { };
~MediumAttachment() { };
// public initializer/uninitializer for internal purposes only
const Bstr &aControllerName,
bool fPassthrough,
void uninit();
void FinalRelease();
// IMediumAttachment properties
// public internal methods
void rollback();
void commit();
// unsafe public methods for internal purposes only (ensure there is
// a caller and a read lock before calling them!)
bool isImplicit() const;
void setImplicit(bool aImplicit);
Bstr getControllerName() const;
DeviceType_T getType() const;
bool getPassthrough() const;
/** Must be called from under this object's write lock. */
/** Must be called from under this object's write lock. */
void updatePassthrough(bool aPassthrough);
/** Get a unique and somewhat descriptive name for logging. */
struct Data;
Data *m;
};
#endif // ____H_MEDIUMATTACHMENTIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */