VirtualBox

Changeset 17700 in vbox


Ignore:
Timestamp:
Mar 11, 2009 3:23:55 PM (16 years ago)
Author:
vboxsync
Message:

Main/NetIf: boolean dhcpEnabled property, NOTIMPL yet

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp

    r17613 r17700  
    183183}
    184184
     185STDMETHODIMP HostNetworkInterface::COMGETTER(DhcpEnabled) (BOOL *aDhcpEnabled)
     186{
     187    CheckComArgOutPointerValid(aDhcpEnabled);
     188
     189    AutoCaller autoCaller (this);
     190    CheckComRCReturnRC (autoCaller.rc());
     191
     192    /* return true + S_OK instead of E_NOTIMPL is done for UI testing purposes */
     193    *aDhcpEnabled = FALSE;
     194
     195    return S_OK;
     196}
     197
    185198
    186199/**
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r17685 r17700  
    65206520  <interface
    65216521     name="IHostNetworkInterface" extends="$unknown"
    6522      uuid="92ae8e7a-a213-4f9d-be10-b296bbc8b662"
     6522     uuid="63d66df2-e40b-4289-acc2-7e260fe6e51e"
    65236523     wsmap="managed"
    65246524     >
     
    65356535    <attribute name="id" type="uuid" readonly="yes">
    65366536      <desc>Returns the interface UUID.</desc>
     6537    </attribute>
     6538   
     6539    <attribute name="dhcpEnabled" type="boolean" readonly="yes">
     6540      <desc>Specifies whether the DHCP is enabled for the interface.</desc>
    65376541    </attribute>
    65386542
  • trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h

    r17684 r17700  
    7070    STDMETHOD(COMGETTER(Name)) (BSTR *aInterfaceName);
    7171    STDMETHOD(COMGETTER(Id)) (OUT_GUID aGuid);
     72    STDMETHOD(COMGETTER(DhcpEnabled)) (BOOL *aDhcpEnabled);
    7273    STDMETHOD(COMGETTER(IPAddress)) (ULONG *aIPAddress);
    7374    STDMETHOD(COMGETTER(NetworkMask)) (ULONG *aNetworkMask);
     
    9899    struct Data
    99100    {
    100         Data() : IPAddress (0), networkMask (0),
     101        Data() : IPAddress (0), networkMask (0), dhcpEnabled(FALSE),
    101102            mediumType (HostNetworkInterfaceMediumType_Unknown),
    102103            status(HostNetworkInterfaceStatus_Down){}
     
    106107        Bstr IPV6Address;
    107108        ULONG IPV6NetworkMaskPrefixLength;
     109        BOOL dhcpEnabled;
    108110        Bstr hardwareAddress;
    109111        HostNetworkInterfaceMediumType_T mediumType;
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