VirtualBox

source: vbox/trunk/src/VBox/Main/include/GuestErrorInfoImpl.h@ 45415

Last change on this file since 45415 was 45415, checked in by vboxsync, 12 years ago

GuestCtrl: Implemented using (public) VirtualBox events instead of own callback mechanisms. Bugfixes for testcases (still work in progress).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1
2/* $Id: GuestErrorInfoImpl.h 45415 2013-04-08 21:40:42Z vboxsync $ */
3/** @file
4 * VirtualBox Main - Guest error information.
5 */
6
7/*
8 * Copyright (C) 2013 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19#ifndef ____H_GUESTERRORINFOIMPL
20#define ____H_GUESTERRORINFOIMPL
21
22#include "VirtualBoxBase.h"
23#include "VirtualBoxErrorInfoImpl.h"
24
25/**
26 * TODO
27 */
28class ATL_NO_VTABLE GuestErrorInfo :
29 public VirtualBoxBase,
30 VBOX_SCRIPTABLE_IMPL(IGuestErrorInfo)
31{
32public:
33 /** @name COM and internal init/term/mapping cruft.
34 * @{ */
35 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(GuestErrorInfo, IGuestErrorInfo)
36 DECLARE_NOT_AGGREGATABLE(GuestErrorInfo)
37 DECLARE_PROTECT_FINAL_CONSTRUCT()
38 BEGIN_COM_MAP(GuestErrorInfo)
39 COM_INTERFACE_ENTRY(IGuestErrorInfo)
40 END_COM_MAP()
41 DECLARE_EMPTY_CTOR_DTOR(GuestErrorInfo)
42
43 int init(LONG uResult, const Utf8Str &strMessage);
44
45 HRESULT FinalConstruct(void);
46 void FinalRelease(void);
47 /** @} */
48
49 /** @name IGuestErrorInfo interface.
50 * @{ */
51 STDMETHOD(COMGETTER(Result))(LONG *aResult);
52 STDMETHOD(COMGETTER(Text))(BSTR *aText);
53 /** @} */
54
55public:
56 /** @name Public internal methods.
57 * @{ */
58 /** @} */
59
60private:
61 /** @name Private internal methods.
62 * @{ */
63 /** @} */
64
65 struct Data
66 {
67 ULONG mResult;
68 Utf8Str mText;
69 } mData;
70};
71
72#endif /* !____H_GUESTERRORINFOIMPL */
73
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