VirtualBox

Changeset 50922 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Mar 28, 2014 4:16:41 PM (11 years ago)
Author:
vboxsync
Message:

6183 src-all/PCIDeviceAttachmentImpl.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/PCIDeviceAttachmentImpl.h

    r46373 r50922  
    2121#define ____H_PCIDEVICEATTACHMENTIMPL
    2222
    23 #include "VirtualBoxBase.h"
     23#include "PCIDeviceAttachmentWrap.h"
    2424#include <VBox/settings.h>
    2525
    2626class ATL_NO_VTABLE PCIDeviceAttachment :
    27     public VirtualBoxBase,
    28     VBOX_SCRIPTABLE_IMPL(IPCIDeviceAttachment)
     27    public PCIDeviceAttachmentWrap
    2928{
    3029public:
    31     VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(PCIDeviceAttachment, IPCIDeviceAttachment)
    3230
    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)
    4332
    4433    // public initializer/uninitializer for internal purposes only
     
    5241
    5342    // 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);
    5746
    5847    HRESULT FinalConstruct();
    5948    void FinalRelease();
    6049
    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);
     50private:
    6651
    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
    6858    struct Data;
    6959    Data*  m;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette