Changeset 46373 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jun 4, 2013 8:51:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/PCIDeviceAttachmentImpl.h
r42551 r46373 23 23 #include "VirtualBoxBase.h" 24 24 #include <VBox/settings.h> 25 26 class ATL_NO_VTABLE PCIAddress :27 public VirtualBoxBase,28 VBOX_SCRIPTABLE_IMPL(IPCIAddress)29 {30 public:31 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(PCIAddress, IPCIAddress)32 33 DECLARE_NOT_AGGREGATABLE(PCIAddress)34 35 DECLARE_PROTECT_FINAL_CONSTRUCT()36 37 BEGIN_COM_MAP(PCIAddress)38 VBOX_DEFAULT_INTERFACE_ENTRIES(IPCIAddress)39 END_COM_MAP()40 41 PCIAddress() { }42 ~PCIAddress() { }43 44 // public initializer/uninitializer for internal purposes only45 HRESULT init(LONG aAddess);46 void uninit();47 48 HRESULT FinalConstruct();49 void FinalRelease();50 51 // IPCIAddress properties52 STDMETHOD(COMGETTER(Bus))(SHORT *aBus)53 {54 *aBus = mBus;55 return S_OK;56 }57 STDMETHOD(COMSETTER(Bus))(SHORT aBus)58 {59 mBus = aBus;60 return S_OK;61 }62 STDMETHOD(COMGETTER(Device))(SHORT *aDevice)63 {64 *aDevice = mDevice;65 return S_OK;66 }67 STDMETHOD(COMSETTER(Device))(SHORT aDevice)68 {69 mDevice = aDevice;70 return S_OK;71 }72 73 STDMETHOD(COMGETTER(DevFunction))(SHORT *aDevFunction)74 {75 *aDevFunction = mFn;76 return S_OK;77 }78 STDMETHOD(COMSETTER(DevFunction))(SHORT aDevFunction)79 {80 mFn = aDevFunction;81 return S_OK;82 }83 84 private:85 SHORT mBus, mDevice, mFn;86 };87 25 88 26 class ATL_NO_VTABLE PCIDeviceAttachment :
Note:
See TracChangeset
for help on using the changeset viewer.