VirtualBox

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

Last change on this file since 4496 was 4071, checked in by vboxsync, 17 years ago

Biggest check-in ever. New source code headers for all (C) innotek files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/** @file
2 *
3 * VirtualBox COM class implementation
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek GmbH
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 as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ____H_MACHINEDEBUGGER
19#define ____H_MACHINEDEBUGGER
20
21#include "VirtualBoxBase.h"
22
23class Console;
24
25class ATL_NO_VTABLE MachineDebugger :
26 public VirtualBoxSupportErrorInfoImpl <MachineDebugger, IMachineDebugger>,
27 public VirtualBoxSupportTranslation <MachineDebugger>,
28 public VirtualBoxBase,
29 public IMachineDebugger
30{
31public:
32
33 DECLARE_NOT_AGGREGATABLE(MachineDebugger)
34
35 DECLARE_PROTECT_FINAL_CONSTRUCT()
36
37 BEGIN_COM_MAP(MachineDebugger)
38 COM_INTERFACE_ENTRY(ISupportErrorInfo)
39 COM_INTERFACE_ENTRY(IMachineDebugger)
40 END_COM_MAP()
41
42 NS_DECL_ISUPPORTS
43
44 HRESULT FinalConstruct();
45 void FinalRelease();
46
47 // public initializer/uninitializer for internal purposes only
48 HRESULT init (Console *parent);
49 void uninit();
50
51 // IMachineDebugger properties
52 STDMETHOD(COMGETTER(Singlestep))(BOOL *enabled);
53 STDMETHOD(COMSETTER(Singlestep))(BOOL enable);
54 STDMETHOD(COMGETTER(RecompileUser))(BOOL *enabled);
55 STDMETHOD(COMSETTER(RecompileUser))(BOOL enable);
56 STDMETHOD(COMGETTER(RecompileSupervisor))(BOOL *enabled);
57 STDMETHOD(COMSETTER(RecompileSupervisor))(BOOL enable);
58 STDMETHOD(COMGETTER(PATMEnabled))(BOOL *enabled);
59 STDMETHOD(COMSETTER(PATMEnabled))(BOOL enable);
60 STDMETHOD(COMGETTER(CSAMEnabled))(BOOL *enabled);
61 STDMETHOD(COMSETTER(CSAMEnabled))(BOOL enable);
62 STDMETHOD(COMGETTER(LogEnabled))(BOOL *enabled);
63 STDMETHOD(COMSETTER(LogEnabled))(BOOL enable);
64 STDMETHOD(COMGETTER(HWVirtExEnabled))(BOOL *enabled);
65 STDMETHOD(COMGETTER(VirtualTimeRate))(ULONG *pct);
66 STDMETHOD(COMSETTER(VirtualTimeRate))(ULONG pct);
67 STDMETHOD(COMGETTER(VM))(ULONG64 *vm);
68
69 // IMachineDebugger methods
70 STDMETHOD(ResetStats());
71 STDMETHOD(DumpStats());
72
73 // "public-private methods"
74 void flushQueuedSettings();
75
76 // for VirtualBoxSupportErrorInfoImpl
77 static const wchar_t *getComponentName() { return L"MachineDebugger"; }
78
79private:
80 ComObjPtr <Console, ComWeakRef> mParent;
81 // flags whether settings have been queued because
82 // they could not be sent to the VM (not up yet, etc.)
83 int singlestepQueued;
84 int recompileUserQueued;
85 int recompileSupervisorQueued;
86 int patmEnabledQueued;
87 int csamEnabledQueued;
88 int mLogEnabledQueued;
89 uint32_t mVirtualTimeRateQueued;
90 bool fFlushMode;
91};
92
93#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