Changeset 18258 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 25, 2009 1:55:43 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45001
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r18217 r18258 7820 7820 > 7821 7821 <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" />. 7833 7855 </desc> 7834 7856 … … 7851 7873 <attribute name="percent" type="long" readonly="yes"> 7852 7874 <desc> 7853 Current task progress valuein percent.7875 Current progress value of the task as a whole, in percent. 7854 7876 This value depends on how many operations are already complete. 7855 7877 </desc> … … 7874 7896 <desc> 7875 7897 Extended information about the unsuccessful result of the 7876 progress operation. May be NULL whenno extended information7898 progress operation. May be NULL if no extended information 7877 7899 is available. 7878 7900 Valid only if <link to="#completed"/> is true and … … 7883 7905 <attribute name="operationCount" type="unsigned long" readonly="yes"> 7884 7906 <desc> 7885 Number ofoperations this task is divided into.7886 Every task consists of at least oneoperation.7907 Number of sub-operations this task is divided into. 7908 Every task consists of at least one suboperation. 7887 7909 </desc> 7888 7910 </attribute> 7889 7911 7890 7912 <attribute name="operation" type="unsigned long" readonly="yes"> 7891 <desc>Number of theoperation being currently executed.</desc>7913 <desc>Number of the sub-operation being currently executed.</desc> 7892 7914 </attribute> 7893 7915 7894 7916 <attribute name="operationDescription" type="wstring" readonly="yes"> 7895 7917 <desc> 7896 Description of theoperation being currently executed.7918 Description of the sub-operation being currently executed. 7897 7919 </desc> 7898 7920 </attribute> 7899 7921 7900 7922 <attribute name="operationPercent" type="long" readonly="yes"> 7901 <desc>Current operation progress valuein percent.</desc>7923 <desc>Progress value of the current sub-operation only, in percent.</desc> 7902 7924 </attribute> 7903 7925 7904 7926 <method name="waitForCompletion"> 7905 7927 <desc> 7906 Waits until the task is done (including all operations) with a7907 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. 7908 7930 7909 7931 <result name="VBOX_E_IPRT_ERROR"> 7910 7932 Failed to wait for task completion. 7911 7933 </result> 7912 7913 </desc> 7934 </desc> 7935 7914 7936 <param name="timeout" type="long" dir="in"> 7915 <desc>7916 Timeout value in milliseconds.7917 Specify -1 for an indefinite wait.7918 </desc>7919 7937 </param> 7920 7938 </method> … … 7922 7940 <method name="waitForOperationCompletion"> 7923 7941 <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. 7925 7944 7926 7945 <result name="VBOX_E_IPRT_ERROR"> … … 7936 7955 </param> 7937 7956 <param name="timeout" type="long" dir="in"> 7938 <desc>7939 Timeout value in milliseconds.7940 Specify -1 for an indefinite wait.7941 </desc>7942 7957 </param> 7943 7958 </method>
Note:
See TracChangeset
for help on using the changeset viewer.