VirtualBox

source: vbox/trunk/src/VBox/Main/include/PCIDeviceAttachmentImpl.h@ 47167

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

Main: delete misplaced PCIAddress class declaration, was never working

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: PCIDeviceAttachmentImpl.h 46373 2013-06-04 08:51:47Z vboxsync $ */
2
3/** @file
4 *
5 * PCI attachment information implmentation.
6 */
7
8/*
9 * Copyright (C) 2010-2012 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. 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_PCIDEVICEATTACHMENTIMPL
21#define ____H_PCIDEVICEATTACHMENTIMPL
22
23#include "VirtualBoxBase.h"
24#include <VBox/settings.h>
25
26class ATL_NO_VTABLE PCIDeviceAttachment :
27 public VirtualBoxBase,
28 VBOX_SCRIPTABLE_IMPL(IPCIDeviceAttachment)
29{
30public:
31 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(PCIDeviceAttachment, IPCIDeviceAttachment)
32
33 DECLARE_NOT_AGGREGATABLE(PCIDeviceAttachment)
34
35 DECLARE_PROTECT_FINAL_CONSTRUCT()
36
37 BEGIN_COM_MAP(PCIDeviceAttachment)
38 VBOX_DEFAULT_INTERFACE_ENTRIES(IPCIDeviceAttachment)
39 END_COM_MAP()
40
41 PCIDeviceAttachment() { }
42 ~PCIDeviceAttachment() { }
43
44 // public initializer/uninitializer for internal purposes only
45 HRESULT init(IMachine * aParent,
46 const Bstr &aName,
47 LONG aHostAddess,
48 LONG aGuestAddress,
49 BOOL fPhysical);
50
51 void uninit();
52
53 // settings
54 HRESULT loadSettings(IMachine * aParent,
55 const settings::HostPCIDeviceAttachment& aHpda);
56 HRESULT saveSettings(settings::HostPCIDeviceAttachment &data);
57
58 HRESULT FinalConstruct();
59 void FinalRelease();
60
61 // IPCIDeviceAttachment properties
62 STDMETHOD(COMGETTER(Name))(BSTR * aName);
63 STDMETHOD(COMGETTER(IsPhysicalDevice))(BOOL * aPhysical);
64 STDMETHOD(COMGETTER(HostAddress))(LONG * hostAddress);
65 STDMETHOD(COMGETTER(GuestAddress))(LONG * guestAddress);
66
67private:
68 struct Data;
69 Data* m;
70};
71
72#endif // ____H_PCIDEVICEATTACHMENTIMPL
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