VBoxDbgBase.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
/** @file
*
* VBox Debugger GUI - Base class.
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* 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 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.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#ifndef __VBoxDbgBase_h__
#define __VBoxDbgBase_h__
/**
* VBox Debugger GUI Base Class.
*
* The purpose of this class is to hide the VM handle, abstract VM
* operations, and finally to make sure the GUI won't crash when
* the VM dies.
*/
{
/**
* Construct the object.
*
* @param pVM The VM handle.
*/
/**
* Destructor.
*/
virtual ~VBoxDbgBase();
/**
* Checks if the VM is OK for normal operations.
* @returns true if ok, false if not.
*/
bool isVMOk() const
{
}
/** @name Operations
* @{ */
/**
* Wrapper for STAMR3Reset().
*/
/**
* Wrapper for STAMR3Enum().
*/
/**
* Wrapper for DBGCCreate().
*/
/** @} */
/** @name Signals
* @{ */
/**
* Called when the VM has been terminated.
*/
virtual void sigTerminated();
/** @} */
/**
* VM state callback function.
*
* You are not allowed to call any function which changes the VM state from a
* state callback, except VMR3Destroy().
*
* @param pVM The VM handle.
* @param enmState The new state.
* @param enmOldState The old state.
* @param pvUser The user argument.
*/
static DECLCALLBACK(void) atStateChange(PVM pVM, VMSTATE enmState, VMSTATE enmOldState, void *pvUser);
/** The VM handle. */
};
#endif