VirtualBox

Changeset 18258 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 25, 2009 1:55:43 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45001
Message:

API docs

File:
1 edited

Legend:

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

    r18217 r18258  
    78207820     >
    78217821    <desc>
    7822       The IProgress interface represents a task progress object that allows
    7823       to wait for the completion of some asynchronous task.
    7824 
    7825       The task consists of one or more operations that run sequentially,
    7826       one by one. There is an individual percentage of completion of the
    7827       current operation and the percentage of completion of the task as a
    7828       whole. Similarly, you can wait for the completion of a particular
    7829       operation or for the completion of the whole task.
    7830 
    7831       Every operation is identified by a number (starting from 0)
    7832       and has a separate description.
     7822        The IProgress interface allows for monitoring the progress of
     7823        an asynchronous tasks within VirtualBox.
     7824
     7825        An instance of this is returned every time VirtualBox starts
     7826        an asynchronous task (in other words, a separate thread) which
     7827        continues to run after a method call returns. For example,
     7828        <link to="IConsole::saveState" />, which saves the state of
     7829        a running virtual machine, can take a long time to complete.
     7830        To be able to display a progress bar, a user interface such as
     7831        the VirtualBox graphical user interface can use the IProgress
     7832        object returned by that method.
     7833
     7834        Note that IProgress is a "read-only" interface in the sense
     7835        that only the VirtualBox internals behind the Main API can
     7836        create and manipulate progress objects, whereas client code
     7837        can only use the IProgress object to monitor a task's
     7838        progress and, if <link to="#cancelable" /> is true,
     7839        cancel the task by calling <link to="#cancel" />.
     7840
     7841        A task represented by IProgress can consist of one or more
     7842        sub-operations that run sequentially, one by one (see
     7843        <link to="#operation" /> and <link to="#operationCount" />).
     7844        Every operation is identified by a number (starting from 0)
     7845        and has a separate description.
     7846
     7847        You can find the individual percentage of completion of the current
     7848        operation in <link to="#operationPercent" /> and the
     7849        percentage of completion of the task as a whole
     7850        in <link to="#percent" />.
     7851        Similarly, you can wait for the completion of a particular
     7852        operation via <link to="#waitForOperationCompletion" /> or
     7853        for the completion of the whole task via
     7854        <link to="#waitForCompletion" />.
    78337855    </desc>
    78347856
     
    78517873    <attribute name="percent" type="long" readonly="yes">
    78527874      <desc>
    7853         Current task progress value in percent.
     7875        Current progress value of the task as a whole, in percent.
    78547876        This value depends on how many operations are already complete.
    78557877      </desc>
     
    78747896      <desc>
    78757897        Extended information about the unsuccessful result of the
    7876         progress operation. May be NULL when no extended information
     7898        progress operation. May be NULL if no extended information
    78777899        is available.
    78787900        Valid only if <link to="#completed"/> is true and
     
    78837905    <attribute name="operationCount" type="unsigned long" readonly="yes">
    78847906      <desc>
    7885         Number of operations this task is divided into.
    7886         Every task consists of at least one operation.
     7907          Number of sub-operations this task is divided into.
     7908          Every task consists of at least one suboperation.
    78877909      </desc>
    78887910    </attribute>
    78897911
    78907912    <attribute name="operation" type="unsigned long" readonly="yes">
    7891       <desc>Number of the operation being currently executed.</desc>
     7913        <desc>Number of the sub-operation being currently executed.</desc>
    78927914    </attribute>
    78937915
    78947916    <attribute name="operationDescription" type="wstring" readonly="yes">
    78957917      <desc>
    7896         Description of the operation being currently executed.
     7918          Description of the sub-operation being currently executed.
    78977919      </desc>
    78987920    </attribute>
    78997921
    79007922    <attribute name="operationPercent" type="long" readonly="yes">
    7901       <desc>Current operation progress value in percent.</desc>
     7923        <desc>Progress value of the current sub-operation only, in percent.</desc>
    79027924    </attribute>
    79037925
    79047926    <method name="waitForCompletion">
    79057927      <desc>
    7906         Waits until the task is done (including all operations) with a
    7907         given timeout.
     7928          Waits until the task is done (including all sub-operations)
     7929          with a given timeout in milliseconds; specify -1 for an indefinite wait.
    79087930
    79097931        <result name="VBOX_E_IPRT_ERROR">
    79107932          Failed to wait for task completion.
    79117933        </result>
    7912 
    7913       </desc>
     7934      </desc>
     7935
    79147936      <param name="timeout" type="long" dir="in">
    7915         <desc>
    7916           Timeout value in milliseconds.
    7917           Specify -1 for an indefinite wait.
    7918         </desc>
    79197937      </param>
    79207938    </method>
     
    79227940    <method name="waitForOperationCompletion">
    79237941      <desc>
    7924         Waits until the given operation is done with a given timeout.
     7942          Waits until the given operation is done with a given timeout in
     7943          milliseconds; specify -1 for an indefinite wait.
    79257944
    79267945        <result name="VBOX_E_IPRT_ERROR">
     
    79367955      </param>
    79377956      <param name="timeout" type="long" dir="in">
    7938         <desc>
    7939           Timeout value in milliseconds.
    7940           Specify -1 for an indefinite wait.
    7941         </desc>
    79427957      </param>
    79437958    </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