MediumAttachmentImpl.h revision 91475a294d7a91051ef153a4b64a606f0db1920e
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2009 Sun Microsystems, Inc.
*
* 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.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#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
bool 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. */
/** For com::SupportErrorInfoImpl. */
static const char *ComponentName() { return "MediumAttachment"; }
struct Data;
Data *m;
};
#endif // ____H_MEDIUMATTACHMENTIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */