/** @file * * VirtualBox COM class implementation */ /* * 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; * you can redistribute it and/or modify it under the terms of the GNU * 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 ____H_MACHINEDEBUGGER #define ____H_MACHINEDEBUGGER #include "VirtualBoxBase.h" class Console; class ATL_NO_VTABLE MachineDebugger : public VirtualBoxSupportErrorInfoImpl , public VirtualBoxSupportTranslation , public VirtualBoxBase, public IMachineDebugger { public: DECLARE_NOT_AGGREGATABLE(MachineDebugger) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(MachineDebugger) COM_INTERFACE_ENTRY(ISupportErrorInfo) COM_INTERFACE_ENTRY(IMachineDebugger) END_COM_MAP() NS_DECL_ISUPPORTS HRESULT FinalConstruct(); void FinalRelease(); // public initializer/uninitializer for internal purposes only HRESULT init (Console *parent); void uninit(); // IMachineDebugger properties STDMETHOD(COMGETTER(Singlestep))(BOOL *enabled); STDMETHOD(COMSETTER(Singlestep))(BOOL enable); STDMETHOD(COMGETTER(RecompileUser))(BOOL *enabled); STDMETHOD(COMSETTER(RecompileUser))(BOOL enable); STDMETHOD(COMGETTER(RecompileSupervisor))(BOOL *enabled); STDMETHOD(COMSETTER(RecompileSupervisor))(BOOL enable); STDMETHOD(COMGETTER(PATMEnabled))(BOOL *enabled); STDMETHOD(COMSETTER(PATMEnabled))(BOOL enable); STDMETHOD(COMGETTER(CSAMEnabled))(BOOL *enabled); STDMETHOD(COMSETTER(CSAMEnabled))(BOOL enable); STDMETHOD(COMGETTER(LogEnabled))(BOOL *enabled); STDMETHOD(COMSETTER(LogEnabled))(BOOL enable); STDMETHOD(COMGETTER(HWVirtExEnabled))(BOOL *enabled); STDMETHOD(COMGETTER(VM))(ULONG64 *vm); // IMachineDebugger methods STDMETHOD(ResetStats()); STDMETHOD(DumpStats()); // "public-private methods" void flushQueuedSettings(); // for VirtualBoxSupportErrorInfoImpl static const wchar_t *getComponentName() { return L"MachineDebugger"; } private: ComObjPtr mParent; // flags whether settings have been queued because // they could not be sent to the VM (not up yet, etc.) int singlestepQueued; int recompileUserQueued; int recompileSupervisorQueued; int patmEnabledQueued; int csamEnabledQueued; int mLogEnabledQueued; bool fFlushMode; }; #endif // ____H_MACHINEDEBUGGER