HardDiskAttachmentImpl.h revision f6adf1a86574758258baa232172c965aed0d848d
/** @file
*
* VirtualBox COM class implementation
*/
/*
* Copyright (C) 2006-2007 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_HARDDISKATTACHMENTIMPL
#define ____H_HARDDISKATTACHMENTIMPL
#include "VirtualBoxBase.h"
#include "HardDisk2Impl.h"
{
/** Equality predicate for stdc++. */
struct EqualsTo
{
{
}
const StorageBus_T bus;
};
/** Hard disk reference predicate for stdc++. */
struct RefersTo
{
{
}
};
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// IHardDisk2Attachment properties
// unsafe inline public methods for internal purposes only (ensure there is
// a caller and a read lock before calling them!)
bool isImplicit() const { return m.implicit; }
/** Must be called from under this object's write lock. */
{
}
/** For com::SupportErrorInfoImpl. */
static const char *ComponentName() { return "HardDisk2Attachment"; }
struct Data
{
, implicit (false) {}
/// @todo NEWMEDIA shouldn't it be constant too? It'd be nice to get
/// rid of locks at all in this simple readonly structure-like interface
const StorageBus_T bus;
bool implicit : 1;
};
Data m;
};
#endif // ____H_HARDDISKATTACHMENTIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */