VirtualBox

Changeset 15044 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Dec 5, 2008 1:48:24 PM (16 years ago)
Author:
vboxsync
Message:

Main: Added IHardDisk2::setProperties for bulk operations.

File:
1 edited

Legend:

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

    r15039 r15044  
    72607260  <interface
    72617261    name="IHardDisk2" extends="IMedium"
    7262     uuid="4fece1c1-2a75-43ce-ba82-76d2a89b9d5d"
     7262    uuid="ed6e2525-c2fd-42a4-917a-7a9045ac9e15"
    72637263    wsmap="managed"
    72647264  >
     
    76897689        be obtained with <link to="IHardDiskFormat::describeProperties()"/>.
    76907690
    7691         Note that passing <tt>null</tt> as @a value will reset the value of the
    7692         property to nothing which may also be understood as deleting the
    7693         property's value. For properties with no values, the format backend will
    7694         use a default value if such a value is defined for the given property.
     7691        Note that setting the property value to <tt>null</tt> is equivalent to
     7692        deleting the existing value. A default value (if it is defined for this
     7693        property) will be used by the format backend in this case.
    76957694
    76967695        <result name="VBOX_E_OBJECT_NOT_FOUND">
     
    77227721        The method returns two arrays, the array of property names corresponding
    77237722        to the @a names argument and the current values of these properties.
    7724         <!-- FIXME: Both arrays [sentence was cut off here. Complete. -->
    7725 
    7726         Note that for properties that don't have values assigned to them,
    7727         <tt>null</tt> is returned at the appropriate index in the @a returnValues
    7728         array.
     7723        Both arrays have the same number of elements with each elemend at the
     7724        given index in the first array corresponds to an element at the same
     7725        index in the second array.
     7726
     7727        Note that for properties that do not have assigned values,
     7728        <tt>null</tt> is returned at the appropriate index in the @a
     7729        returnValues array.
    77297730
    77307731      </desc>
     
    77397740      <param name="returnValues" type="wstring" safearray="yes" dir="return">
    77407741        <desc>Values of returned properties.</desc>
     7742      </param>
     7743    </method>
     7744
     7745    <method name="setProperties">
     7746      <desc>
     7747        Sets values for a group of properties in one call.
     7748
     7749        The names of the properties to set are passed in the @a names
     7750        array along with the new values for them in the @a values array. Both
     7751        arrays have the same number of elements with each elemend at the given
     7752        index in the first array corresponding to an element at the same index
     7753        in the second array.
     7754
     7755        If there is at least one property name in @a names that is not valid,
     7756        the method will fail before changing the values of any other properties
     7757        from the @a names array.
     7758
     7759        Using this method over <link to="#setProperty()"/> is preferred if you
     7760        need to set several properties at once since it will result into less
     7761        IPC calls.
     7762
     7763        The list of all properties supported by the given hard disk format can
     7764        be obtained with <link to="IHardDiskFormat::describeProperties()"/>.
     7765
     7766        Note that setting the property value to <tt>null</tt> is equivalent to
     7767        deleting the existing value. A default value (if it is defined for this
     7768        property) will be used by the format backend in this case.
     7769      </desc>
     7770      <param name="names" type="wstring" safearray="yes" dir="in">
     7771        <desc>Names of properties to set.</desc>
     7772      </param>
     7773      <param name="values" type="wstring" safearray="yes" dir="in">
     7774        <desc>Values of properties to set.</desc>
    77417775      </param>
    77427776    </method>
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