VirtualBox

Changeset 37831 in vbox for trunk/src


Ignore:
Timestamp:
Jul 8, 2011 10:10:41 AM (13 years ago)
Author:
vboxsync
Message:

Main/Medium: added new attribute for getting the possible medium types, not implemented right now

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r37824 r37831  
    98939893  <interface
    98949894    name="IMedium" extends="$unknown"
    9895     uuid="f55ce3ec-b856-4d07-ae33-826072b332c3"
     9895    uuid="53f9cc0c-e0fd-40a5-a404-a7a5272082cd"
    98969896    wsmap="managed"
    98979897    >
     
    1022310223        <link to="MediumType_Normal"/>, except for DVD and floppy media,
    1022410224        which have a type of <link to="MediumType_Writethrough"/>.
     10225      </desc>
     10226    </attribute>
     10227
     10228    <attribute name="allowedTypes" type="MediumType" safearray="yes" readonly="yes">
     10229      <desc>
     10230        Returns which medium types can selected for this medium.
     10231
     10232        <result name="E_NOTIMPL">
     10233          This attribute is not implemented at the moment.
     10234        </result>
    1022510235      </desc>
    1022610236    </attribute>
  • trunk/src/VBox/Main/include/MediumImpl.h

    r37768 r37831  
    116116    STDMETHOD(COMGETTER(Type))(MediumType_T *aType);
    117117    STDMETHOD(COMSETTER(Type))(MediumType_T aType);
     118    STDMETHOD(COMGETTER(AllowedTypes))(ComSafeArrayOut(MediumType_T, aAllowedTypes));
    118119    STDMETHOD(COMGETTER(Parent))(IMedium **aParent);
    119120    STDMETHOD(COMGETTER(Children))(ComSafeArrayOut(IMedium *, aChildren));
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r37768 r37831  
    17681768
    17691769    return rc;
     1770}
     1771
     1772STDMETHODIMP Medium::COMGETTER(AllowedTypes)(ComSafeArrayOut(MediumType_T, aAllowedTypes))
     1773{
     1774    CheckComArgOutSafeArrayPointerValid(aAllowedTypes);
     1775
     1776    AutoCaller autoCaller(this);
     1777    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     1778
     1779    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     1780
     1781    ReturnComNotImplemented();
    17701782}
    17711783
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