Changeset 50922 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 28, 2014 4:16:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/PCIDeviceAttachmentImpl.h
r46373 r50922 21 21 #define ____H_PCIDEVICEATTACHMENTIMPL 22 22 23 #include " VirtualBoxBase.h"23 #include "PCIDeviceAttachmentWrap.h" 24 24 #include <VBox/settings.h> 25 25 26 26 class ATL_NO_VTABLE PCIDeviceAttachment : 27 public VirtualBoxBase, 28 VBOX_SCRIPTABLE_IMPL(IPCIDeviceAttachment) 27 public PCIDeviceAttachmentWrap 29 28 { 30 29 public: 31 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(PCIDeviceAttachment, IPCIDeviceAttachment)32 30 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() { } 31 DECLARE_EMPTY_CTOR_DTOR(PCIDeviceAttachment) 43 32 44 33 // public initializer/uninitializer for internal purposes only … … 52 41 53 42 // settings 54 HRESULT loadSettings(IMachine * aParent,55 const settings::HostPCIDeviceAttachment& aHpda);56 HRESULT saveSettings(settings::HostPCIDeviceAttachment &data);43 HRESULT i_loadSettings(IMachine * aParent, 44 const settings::HostPCIDeviceAttachment& aHpda); 45 HRESULT i_saveSettings(settings::HostPCIDeviceAttachment &data); 57 46 58 47 HRESULT FinalConstruct(); 59 48 void FinalRelease(); 60 49 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); 50 private: 66 51 67 private: 52 // wrapped IPCIDeviceAttachment properties 53 HRESULT getName(com::Utf8Str &aName); 54 HRESULT getIsPhysicalDevice(BOOL *aIsPhysicalDevice); 55 HRESULT getHostAddress(LONG *aHostAddress); 56 HRESULT getGuestAddress(LONG *aGuestAddress); 57 68 58 struct Data; 69 59 Data* m;
Note:
See TracChangeset
for help on using the changeset viewer.