SATAControllerImpl.h revision 1c94c0a63ba68be1a7b2c640e70d7a06464e4fca
/* $Id$ */
/** @file
*
* VBox SATAController COM Class declaration.
*/
/*
* Copyright (C) 2008 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_SATACONTROLLERIMPL
#define ____H_SATACONTROLLERIMPL
#include "VirtualBoxBase.h"
#include <list>
{
struct Data
{
/* Constructor. */
mPortCount (30),
mPortIde0Master (0),
mPortIde0Slave (1),
mPortIde1Master (2),
mPortIde1Slave (3) { }
{
(mPortCount == mPortCount) &&
}
/** Enabled indicator. */
/** Number of usable ports. */
/** Port which acts as primary master for ide emulation. */
/** Port which acts as primary slave for ide emulation. */
/** Port which acts as secondary master for ide emulation. */
/** Port which acts as secondary slave for ide emulation. */
};
void FinalRelease();
// public initializer/uninitializer for internal purposes only
void uninit();
// ISATAController properties
// ISATAController methods
// public methods only for internal purposes
bool isModified();
bool isReallyModified();
bool rollback();
void commit();
// public methods for internal purposes only
// (ensure there is a caller and a read lock before calling them!)
/** @note this doesn't require a read lock since mParent is constant. */
// for VirtualBoxSupportErrorInfoImpl
void printList();
/** Parent object. */
/** Peer object. */
/** Data. */
};
#endif //!____H_SATACONTROLLERIMPL