VirtualBox

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

Last change on this file since 8217 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1/** @file
2 *
3 * VirtualBox COM class implementation
4 */
5
6/*
7 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18 * Clara, CA 95054 USA or visit http://www.sun.com if you need
19 * additional information or have any questions.
20 */
21
22#ifndef ____H_MACHINEDEBUGGER
23#define ____H_MACHINEDEBUGGER
24
25#include "VirtualBoxBase.h"
26
27class Console;
28
29class ATL_NO_VTABLE MachineDebugger :
30 public VirtualBoxSupportErrorInfoImpl <MachineDebugger, IMachineDebugger>,
31 public VirtualBoxSupportTranslation <MachineDebugger>,
32 public VirtualBoxBase,
33 public IMachineDebugger
34{
35public:
36
37 DECLARE_NOT_AGGREGATABLE(MachineDebugger)
38
39 DECLARE_PROTECT_FINAL_CONSTRUCT()
40
41 BEGIN_COM_MAP(MachineDebugger)
42 COM_INTERFACE_ENTRY(ISupportErrorInfo)
43 COM_INTERFACE_ENTRY(IMachineDebugger)
44 END_COM_MAP()
45
46 NS_DECL_ISUPPORTS
47
48 HRESULT FinalConstruct();
49 void FinalRelease();
50
51 // public initializer/uninitializer for internal purposes only
52 HRESULT init (Console *parent);
53 void uninit();
54
55 // IMachineDebugger properties
56 STDMETHOD(COMGETTER(Singlestep))(BOOL *enabled);
57 STDMETHOD(COMSETTER(Singlestep))(BOOL enable);
58 STDMETHOD(COMGETTER(RecompileUser))(BOOL *enabled);
59 STDMETHOD(COMSETTER(RecompileUser))(BOOL enable);
60 STDMETHOD(COMGETTER(RecompileSupervisor))(BOOL *enabled);
61 STDMETHOD(COMSETTER(RecompileSupervisor))(BOOL enable);
62 STDMETHOD(COMGETTER(PATMEnabled))(BOOL *enabled);
63 STDMETHOD(COMSETTER(PATMEnabled))(BOOL enable);
64 STDMETHOD(COMGETTER(CSAMEnabled))(BOOL *enabled);
65 STDMETHOD(COMSETTER(CSAMEnabled))(BOOL enable);
66 STDMETHOD(COMGETTER(LogEnabled))(BOOL *enabled);
67 STDMETHOD(COMSETTER(LogEnabled))(BOOL enable);
68 STDMETHOD(COMGETTER(HWVirtExEnabled))(BOOL *enabled);
69 STDMETHOD(COMGETTER(PAEEnabled))(BOOL *enabled);
70 STDMETHOD(COMGETTER(VirtualTimeRate))(ULONG *pct);
71 STDMETHOD(COMSETTER(VirtualTimeRate))(ULONG pct);
72 STDMETHOD(COMGETTER(VM))(ULONG64 *vm);
73
74 // IMachineDebugger methods
75 STDMETHOD(ResetStats(INPTR BSTR aPattern));
76 STDMETHOD(DumpStats(INPTR BSTR aPattern));
77 STDMETHOD(GetStats(INPTR BSTR aPattern, BOOL aWithDescriptions, BSTR *aStats));
78
79
80 // "public-private methods"
81 void flushQueuedSettings();
82
83 // for VirtualBoxSupportErrorInfoImpl
84 static const wchar_t *getComponentName() { return L"MachineDebugger"; }
85
86private:
87 ComObjPtr <Console, ComWeakRef> mParent;
88 // flags whether settings have been queued because
89 // they could not be sent to the VM (not up yet, etc.)
90 int singlestepQueued;
91 int recompileUserQueued;
92 int recompileSupervisorQueued;
93 int patmEnabledQueued;
94 int csamEnabledQueued;
95 int mLogEnabledQueued;
96 uint32_t mVirtualTimeRateQueued;
97 bool fFlushMode;
98};
99
100#endif // ____H_MACHINEDEBUGGER
Note: See TracBrowser for help on using the repository browser.

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