VirtualBox

Ignore:
Timestamp:
Aug 17, 2018 5:56:34 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124424
Message:

Main/Progress+Appliance+Machine: Turn IProgress::waitForAsyncProgressCompletion into an internal method. It is not needed by any client code outside the API, it's simply is too special. Also include the error propagation which it originally skipped (leding to reduntant code in the calling code). Remove a replicated version of it from the Appliance code which seems to be the half-forgotten ancestor of the method in IProgress. Adapt the users of the method to the new internal method, which made the code easier to read.

File:
1 edited

Legend:

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

    r73716 r73743  
    1421214212  <interface
    1421314213    name="IProgress" extends="$unknown"
    14214     uuid="e0026dc0-0c55-47b1-aa64-d340a396b418"
     14214    uuid="64c7fb5c-ce8f-4681-9c8c-d523cb4dea3d"
    1421514215    wsmap="managed"
    1421614216    reservedMethods="1" reservedAttributes="2"
     
    1440714407        <desc>
    1440814408          Maximum time in milliseconds to wait or -1 to wait indefinitely.
    14409         </desc>
    14410       </param>
    14411     </method>
    14412 
    14413     <method name="waitForAsyncProgressCompletion">
    14414       <desc>
    14415           Waits until the other task is completed (including all
    14416           sub-operations) and forward all changes from the other progress to
    14417           this progress. This means sub-operation number, description, percent
    14418           and so on.
    14419 
    14420           You have to take care on setting up at least the same count on
    14421           sub-operations in this progress object like there are in the other
    14422           progress object.
    14423 
    14424           If the other progress object supports cancel and this object gets any
    14425           cancel request (when here enabled as well), it will be forwarded to
    14426           the other progress object.
    14427 
    14428           If there is an error in the other progress, this error isn't
    14429           automatically transfered to this progress object. So you have to
    14430           check any operation error within the other progress object, after
    14431           this method returns.
    14432       </desc>
    14433 
    14434       <param name="pProgressAsync" type="IProgress" dir="in">
    14435         <desc>
    14436           The progress object of the asynchrony process.
    1443714409        </desc>
    1443814410      </param>
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