VirtualBox

source: vbox/trunk/src/VBox/Main/include/GuestImpl.h@ 4044

Last change on this file since 4044 was 3911, checked in by vboxsync, 17 years ago

Main: IGuest::seamlessSupport => supportsSeamless.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 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 * If you received this file as part of a commercial VirtualBox
18 * distribution, then only the terms of your commercial VirtualBox
19 * license agreement apply instead of the previous paragraph.
20 */
21
22#ifndef ____H_GUESTIMPL
23#define ____H_GUESTIMPL
24
25#include "VirtualBoxBase.h"
26
27class Console;
28
29class ATL_NO_VTABLE Guest :
30 public VirtualBoxSupportErrorInfoImpl <Guest, IGuest>,
31 public VirtualBoxSupportTranslation <Guest>,
32 public VirtualBoxBase,
33 public IGuest
34{
35public:
36
37 DECLARE_NOT_AGGREGATABLE(Guest)
38
39 DECLARE_PROTECT_FINAL_CONSTRUCT()
40
41 BEGIN_COM_MAP(Guest)
42 COM_INTERFACE_ENTRY(ISupportErrorInfo)
43 COM_INTERFACE_ENTRY(IGuest)
44 END_COM_MAP()
45
46 NS_DECL_ISUPPORTS
47
48 DECLARE_EMPTY_CTOR_DTOR (Guest)
49
50 HRESULT FinalConstruct();
51 void FinalRelease();
52
53 // public initializer/uninitializer for internal purposes only
54 HRESULT init (Console *aParent);
55 void uninit();
56
57 // IGuest properties
58 STDMETHOD(COMGETTER(OSTypeId)) (BSTR *aOSTypeId);
59 STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive);
60 STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion);
61 STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless);
62
63 // IGuest methods
64 STDMETHOD(SetCredentials)(INPTR BSTR aUserName, INPTR BSTR aPassword,
65 INPTR BSTR aDomain, BOOL aAllowInteractiveLogon);
66
67 // public methods that are not in IDL
68 void setAdditionsVersion (Bstr aVersion);
69
70 void setSupportsSeamless (BOOL aSupportsSeamless);
71
72 // for VirtualBoxSupportErrorInfoImpl
73 static const wchar_t *getComponentName() { return L"Guest"; }
74
75private:
76
77 struct Data
78 {
79 Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE) {}
80
81 Bstr mOSTypeId;
82 BOOL mAdditionsActive;
83 Bstr mAdditionsVersion;
84 BOOL mSupportsSeamless;
85 };
86
87 ComObjPtr <Console, ComWeakRef> mParent;
88 Data mData;
89};
90
91#endif // ____H_GUESTIMPL
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