VirtualBox

source: vbox/trunk/src/VBox/Main/include/MachineDebuggerImpl.h@ 30714

Last change on this file since 30714 was 30714, checked in by vboxsync, 15 years ago

Main: remove SupportErrorInfo template magic

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1/* $Id: MachineDebuggerImpl.h 30714 2010-07-07 16:20:03Z vboxsync $ */
2
3/** @file
4 *
5 * VirtualBox COM class implementation
6 */
7
8/*
9 * Copyright (C) 2006-2008 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.215389.xyz. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef ____H_MACHINEDEBUGGER
21#define ____H_MACHINEDEBUGGER
22
23#include "VirtualBoxBase.h"
24
25class Console;
26
27class ATL_NO_VTABLE MachineDebugger :
28 public VirtualBoxBase,
29 public VirtualBoxSupportTranslation<MachineDebugger>,
30 VBOX_SCRIPTABLE_IMPL(IMachineDebugger)
31{
32public:
33
34 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT (MachineDebugger, IMachineDebugger)
35
36 DECLARE_NOT_AGGREGATABLE (MachineDebugger)
37
38 DECLARE_PROTECT_FINAL_CONSTRUCT()
39
40 BEGIN_COM_MAP(MachineDebugger)
41 COM_INTERFACE_ENTRY (ISupportErrorInfo)
42 COM_INTERFACE_ENTRY (IMachineDebugger)
43 COM_INTERFACE_ENTRY (IDispatch)
44 END_COM_MAP()
45
46 DECLARE_EMPTY_CTOR_DTOR (MachineDebugger)
47
48 HRESULT FinalConstruct();
49 void FinalRelease();
50
51 // public initializer/uninitializer for internal purposes only
52 HRESULT init (Console *aParent);
53 void uninit();
54
55 // IMachineDebugger properties
56 STDMETHOD(COMGETTER(Singlestep)) (BOOL *aEnabled);
57 STDMETHOD(COMSETTER(Singlestep)) (BOOL aEnable);
58 STDMETHOD(COMGETTER(RecompileUser)) (BOOL *aEnabled);
59 STDMETHOD(COMSETTER(RecompileUser)) (BOOL aEnable);
60 STDMETHOD(COMGETTER(RecompileSupervisor)) (BOOL *aEnabled);
61 STDMETHOD(COMSETTER(RecompileSupervisor)) (BOOL aEnable);
62 STDMETHOD(COMGETTER(PATMEnabled)) (BOOL *aEnabled);
63 STDMETHOD(COMSETTER(PATMEnabled)) (BOOL aEnable);
64 STDMETHOD(COMGETTER(CSAMEnabled)) (BOOL *aEnabled);
65 STDMETHOD(COMSETTER(CSAMEnabled)) (BOOL aEnable);
66 STDMETHOD(COMGETTER(LogEnabled)) (BOOL *aEnabled);
67 STDMETHOD(COMSETTER(LogEnabled)) (BOOL aEnable);
68 STDMETHOD(COMGETTER(HWVirtExEnabled)) (BOOL *aEnabled);
69 STDMETHOD(COMGETTER(HWVirtExNestedPagingEnabled)) (BOOL *aEnabled);
70 STDMETHOD(COMGETTER(HWVirtExVPIDEnabled)) (BOOL *aEnabled);
71 STDMETHOD(COMGETTER(PAEEnabled)) (BOOL *aEnabled);
72 STDMETHOD(COMGETTER(VirtualTimeRate)) (ULONG *aPct);
73 STDMETHOD(COMSETTER(VirtualTimeRate)) (ULONG aPct);
74 STDMETHOD(COMGETTER(VM)) (ULONG64 *aVm);
75 STDMETHOD(InjectNMI)();
76
77 // IMachineDebugger methods
78 STDMETHOD(ResetStats (IN_BSTR aPattern));
79 STDMETHOD(DumpStats (IN_BSTR aPattern));
80 STDMETHOD(GetStats (IN_BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats));
81
82
83 // "public-private methods"
84 void flushQueuedSettings();
85
86private:
87 // private methods
88 bool queueSettings() const;
89
90 Console * const mParent;
91 // flags whether settings have been queued because
92 // they could not be sent to the VM (not up yet, etc.)
93 int mSinglestepQueued;
94 int mRecompileUserQueued;
95 int mRecompileSupervisorQueued;
96 int mPatmEnabledQueued;
97 int mCsamEnabledQueued;
98 int mLogEnabledQueued;
99 uint32_t mVirtualTimeRateQueued;
100 bool mFlushMode;
101};
102
103#endif /* ____H_MACHINEDEBUGGER */
104/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette