HardDiskAttachmentImpl.h revision 57b49c1557a310ee615bc0ee79dd2a2e92319a1b
/** @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 "HardDiskImpl.h"
{
/** Equality predicate for stdc++. */
struct EqualsTo
{
{
}
const Bstr controller;
};
/** Hard disk reference predicate for stdc++. */
struct RefersTo
{
{
}
};
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// IHardDiskAttachment 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 "HardDiskAttachment"; }
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 Bstr controller;
bool implicit : 1;
};
Data m;
};
#endif // ____H_HARDDISKATTACHMENTIMPL
/* vi: set tabstop=4 shiftwidth=4 expandtab: */