1 | <?xml version="1.0" ?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 | * $Id: VirtualBox.xidl 14777 2008-11-28 13:31:10Z vboxsync $ *
|
---|
5 | *
|
---|
6 | * :tabSize=2:indentSize=2:noTabs=true:
|
---|
7 | * :folding=explicit:collapseFolds=1:
|
---|
8 | *
|
---|
9 | * Master declaration for VirtualBox's Main API, represented
|
---|
10 | * by COM/XPCOM and web service interfaces.
|
---|
11 | *
|
---|
12 | * From this document, the build system generates several files
|
---|
13 | * via XSLT that are then used during the build process.
|
---|
14 | *
|
---|
15 | * Below is the list of XSL templates that operate on this file and
|
---|
16 | * output files they generate. These XSL templates must be updated
|
---|
17 | * whenever the schema of this file changes:
|
---|
18 | *
|
---|
19 | * 1. src/VBox/Main/idl/midl.xsl =>
|
---|
20 | * out/<platform>/bin/sdk/idl/VirtualBox.idl
|
---|
21 | * (MS COM interface definition file for Main API)
|
---|
22 | *
|
---|
23 | * 2. src/VBox/Main/idl/xpidl.xsl =>
|
---|
24 | * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
|
---|
25 | * (XPCOM interface definition file for Main API)
|
---|
26 | *
|
---|
27 | * 3. src/VBox/Main/idl/doxygen.xsl =>
|
---|
28 | * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
|
---|
29 | * (pseudo-IDL for Doxygen to generate the official Main API
|
---|
30 | * documentation)
|
---|
31 | *
|
---|
32 | * 4. src/VBox/Main/webservice/*.xsl =>
|
---|
33 | * a bunch of WSDL and C++ files
|
---|
34 | * (VirtualBox web service sources and SOAP mappers;
|
---|
35 | * see src/VBox/Main/webservice/Makefile.kmk for details)
|
---|
36 | *
|
---|
37 | * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
|
---|
38 | * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
|
---|
39 | * (smart Qt-based C++ wrapper classes for COM interfaces
|
---|
40 | * of the Main API)
|
---|
41 | *
|
---|
42 | * 6. src/VBox/Frontends/VirtualBox4/include/COMWrappers.xsl =>
|
---|
43 | * out/<platform>/obj/src/VBox/Frontends/VirtualBox4/VirtualBox/include/COMWrappers.h
|
---|
44 | * (smart Qt-based C++ wrapper classes for COM interfaces
|
---|
45 | * of the Main API)
|
---|
46 | *
|
---|
47 | * 7. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
|
---|
48 | * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
|
---|
49 | * (Main API TypeLib block for the WiX installer)
|
---|
50 | *
|
---|
51 | * 8. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
|
---|
52 | * out/<platform>/obj/src/VBox/Runtime/errmsgvboxcomdata.h
|
---|
53 | * (<result> extraction for the %Rhrc format specifier)
|
---|
54 | *
|
---|
55 | Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
56 |
|
---|
57 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
58 | available from http://www.virtualbox.org. This file is free software;
|
---|
59 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
60 | General Public License (GPL) as published by the Free Software
|
---|
61 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
62 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
63 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
64 |
|
---|
65 | Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
66 | Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
67 | additional information or have any questions.
|
---|
68 | -->
|
---|
69 |
|
---|
70 | <idl>
|
---|
71 |
|
---|
72 | <desc>
|
---|
73 | Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
|
---|
74 | describes the so-called <i>VirtualBox Main API</i> which comprises all public
|
---|
75 | COM interfaces and components provided by the VirtualBox server and by the
|
---|
76 | VirtualBox client library.
|
---|
77 |
|
---|
78 | VirtualBox employs a client-server design, meaning that whenever any part of
|
---|
79 | VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
|
---|
80 | interface or any virtual machine --, a dedicated server process named
|
---|
81 | VBoxSVC runs in the background. This allows multiple processes working with
|
---|
82 | VirtualBox to cooperate without conflicts. These processes communicate to each
|
---|
83 | other using inter-process communication facilities provided by the COM
|
---|
84 | implementation of the host computer.
|
---|
85 |
|
---|
86 | On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
|
---|
87 | implementation. On all other platforms, Mozilla XPCOM, an open-source COM
|
---|
88 | implementation, is used.
|
---|
89 |
|
---|
90 | All the parts that a typical VirtualBox user interacts with (the Qt GUI,
|
---|
91 | the VBoxManage command-line interface and the VBoxVRDP server) are technically
|
---|
92 | front-ends to the Main API and only use the interfaces that are documented
|
---|
93 | in this Main API documentation. This ensures that, with any given release
|
---|
94 | version of VirtualBox, all capabilities of the product that could be useful
|
---|
95 | to an external client program are always exposed by way of this API.
|
---|
96 |
|
---|
97 | The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
|
---|
98 | contains two public component classes:
|
---|
99 | <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
|
---|
100 | implement IVirtualBox and ISession interfaces respectively. These two classes
|
---|
101 | are of supreme importance and will be needed in order for any front-end
|
---|
102 | program to do anything useful. It is recommended to read the documentation of
|
---|
103 | the mentioned interfaces first.
|
---|
104 |
|
---|
105 | The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
|
---|
106 | there can be only one object of this class on the local machine at any given
|
---|
107 | time. This object is a parent of many other objects ih the VirtualBox COM
|
---|
108 | library and lives in the VBoxSVC process. In fact, when you create an instance
|
---|
109 | of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
|
---|
110 | process is already running, starts it if not, and returns you a reference to
|
---|
111 | the<tt>VirtualBox</tt> object created in this process. When the last reference
|
---|
112 | to this object is released, the VBoxSVC process ends (with a 5 second delay to
|
---|
113 | protect from too frequent restarts).
|
---|
114 |
|
---|
115 | The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
|
---|
116 | as many <tt>Session</tt> objects as you need but all of them will live in a
|
---|
117 | process which issues the object instantiation call. <tt>Session</tt> objects
|
---|
118 | represent virtual machine sessions which are used to configure virtual
|
---|
119 | machines and control their execution.
|
---|
120 | </desc>
|
---|
121 |
|
---|
122 | <if target="midl">
|
---|
123 | <cpp line="enum {"/>
|
---|
124 | <cpp line=" kTypeLibraryMajorVersion = 1,"/>
|
---|
125 | <cpp line=" kTypeLibraryMinorVersion = 0"/>
|
---|
126 | <cpp line="};"/>
|
---|
127 | </if>
|
---|
128 |
|
---|
129 | <if target="xpidl">
|
---|
130 | <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
|
---|
131 | <cpp>
|
---|
132 | /* currently, nsISupportsImpl.h lacks the below-like macros */
|
---|
133 |
|
---|
134 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
|
---|
135 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
|
---|
136 |
|
---|
137 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
138 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
139 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
140 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
141 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
142 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
143 | #endif
|
---|
144 |
|
---|
145 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
146 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
147 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
148 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
149 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
150 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
151 | #endif
|
---|
152 |
|
---|
153 | #ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
154 | # define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
155 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
156 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
157 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
158 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
159 | NS_INTERFACE_MAP_END
|
---|
160 | #endif
|
---|
161 |
|
---|
162 | #ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
163 | # define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
164 | _i2, _ic2) \
|
---|
165 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
166 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
167 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
168 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
169 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
170 | NS_INTERFACE_MAP_END
|
---|
171 | #endif
|
---|
172 |
|
---|
173 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
174 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
175 |
|
---|
176 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
|
---|
177 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
178 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
179 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
180 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
181 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
|
---|
182 | #endif
|
---|
183 |
|
---|
184 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
|
---|
185 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
186 | _i2, _ic2) \
|
---|
187 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
188 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
189 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
190 | _i2, _ic2) \
|
---|
191 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
192 | #endif
|
---|
193 | </cpp>
|
---|
194 | </if>
|
---|
195 |
|
---|
196 | <library
|
---|
197 | name="VirtualBox"
|
---|
198 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
199 | version="1.3"
|
---|
200 | desc="VirtualBox Type Library"
|
---|
201 | appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
|
---|
202 | supportsErrorInfo="yes"
|
---|
203 | >
|
---|
204 |
|
---|
205 |
|
---|
206 | <!--
|
---|
207 | // COM result codes for VirtualBox
|
---|
208 | /////////////////////////////////////////////////////////////////////////
|
---|
209 | -->
|
---|
210 |
|
---|
211 | <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
|
---|
212 | <desc>
|
---|
213 | This section describes all VirtualBox-specific COM result codes that may
|
---|
214 | be returned by methods of VirtualBox COM interfaces in addition to
|
---|
215 | standard COM result codes.
|
---|
216 |
|
---|
217 | Note that along with the result code, every VirtualBox method returns
|
---|
218 | extended error information through the IVirtualBoxErrorInfo interface on
|
---|
219 | failure. This interface is a preferred way to present the error to the end
|
---|
220 | user because it contains a human readable description of the error. Raw
|
---|
221 | result codes, both standard and described in this section, are intended to
|
---|
222 | be used by programs to analyze the reason of a failure and select an
|
---|
223 | appropriate course of action without involving the end user (for example,
|
---|
224 | retry the operation later or make a different call).
|
---|
225 |
|
---|
226 | The standard COM result codes that may originate from our methods include:
|
---|
227 |
|
---|
228 | <table>
|
---|
229 | <tr><td>E_INVALIDARG</td>
|
---|
230 | <td>
|
---|
231 | Returned when the value of the method's argument is not within the range
|
---|
232 | of valid values. This should not be confused with situations when the
|
---|
233 | value is within the range but simply doesn't suit the current object
|
---|
234 | state and there is a possibility that it will be accepted later (in such
|
---|
235 | cases VirtualBox-specific codes are returned, for example,
|
---|
236 | <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
|
---|
237 | </td>
|
---|
238 | </tr>
|
---|
239 | <tr><td>E_POINTER</td>
|
---|
240 | <td>
|
---|
241 | Returned if a memory pointer for the output argument is invalid (for
|
---|
242 | example, <tt>NULL</tt>). Note that when pointers representing input
|
---|
243 | arguments (such as strings) are invalid, E_INVALIDARG is returned.
|
---|
244 | </td>
|
---|
245 | </tr>
|
---|
246 | <tr><td>E_ACCESSDENIED</td>
|
---|
247 | <td>
|
---|
248 | Returned when the called object is not ready. Since the lifetime of a
|
---|
249 | public COM object cannot be fully controlled by the implementation,
|
---|
250 | VirtualBox maintains the readiness state for all objects it creates and
|
---|
251 | returns this code in response to any method call on the object that was
|
---|
252 | deactivated by VirtualBox and is not functioning any more.
|
---|
253 | </td>
|
---|
254 | </tr>
|
---|
255 | <tr><td>E_OUTOFMEMORY</td>
|
---|
256 | <td>
|
---|
257 | Returned when a memory allocation operation fails.
|
---|
258 | </td>
|
---|
259 | </tr>
|
---|
260 | </table>
|
---|
261 | </desc>
|
---|
262 | </descGroup>
|
---|
263 |
|
---|
264 | <!--
|
---|
265 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
266 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
267 | the matter of the error code in the first sentence and keep it short.
|
---|
268 | -->
|
---|
269 |
|
---|
270 | <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
|
---|
271 | <desc>
|
---|
272 | Object corresponding to the supplied arguments does not exist.
|
---|
273 | </desc>
|
---|
274 | </result>
|
---|
275 |
|
---|
276 | <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
|
---|
277 | <desc>
|
---|
278 | Current virtual machine state prevents the operation.
|
---|
279 | </desc>
|
---|
280 | </result>
|
---|
281 |
|
---|
282 | <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
|
---|
283 | <desc>
|
---|
284 | Virtual machine error occurred attempting the operation.
|
---|
285 | </desc>
|
---|
286 | </result>
|
---|
287 |
|
---|
288 | <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
|
---|
289 | <desc>
|
---|
290 | File not accessible or erroneous file contents.
|
---|
291 | </desc>
|
---|
292 | </result>
|
---|
293 |
|
---|
294 | <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
|
---|
295 | <desc>
|
---|
296 | Runtime subsystem error.
|
---|
297 | </desc>
|
---|
298 | </result>
|
---|
299 |
|
---|
300 | <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
|
---|
301 | <desc>
|
---|
302 | Pluggable Device Manager error.
|
---|
303 | </desc>
|
---|
304 | </result>
|
---|
305 |
|
---|
306 | <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB0007">
|
---|
307 | <desc>
|
---|
308 | Operation prohibited because object is in use.
|
---|
309 | </desc>
|
---|
310 | </result>
|
---|
311 |
|
---|
312 | <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
|
---|
313 | <desc>
|
---|
314 | Host operating system related error.
|
---|
315 | </desc>
|
---|
316 | </result>
|
---|
317 |
|
---|
318 | <!--
|
---|
319 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
320 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
321 | the matter of the error code in the first sentence and keep it short.
|
---|
322 | -->
|
---|
323 |
|
---|
324 | <descGroup/>
|
---|
325 |
|
---|
326 | <!--
|
---|
327 | // all common enums
|
---|
328 | /////////////////////////////////////////////////////////////////////////
|
---|
329 | -->
|
---|
330 |
|
---|
331 | <enum
|
---|
332 | name="TSBool"
|
---|
333 | uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
|
---|
334 | >
|
---|
335 | <desc>
|
---|
336 | Boolean variable having a third state, default.
|
---|
337 | </desc>
|
---|
338 |
|
---|
339 | <const name="False" value="0"/>
|
---|
340 | <const name="True" value="1"/>
|
---|
341 | <const name="Default" value="2"/>
|
---|
342 | </enum>
|
---|
343 |
|
---|
344 | <enum
|
---|
345 | name="MachineState"
|
---|
346 | uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
|
---|
347 | >
|
---|
348 | <desc>
|
---|
349 | Virtual machine execution state. This enumeration represents possible
|
---|
350 | values of the <link to="IMachine::state"/> attribute.
|
---|
351 | </desc>
|
---|
352 |
|
---|
353 | <const name="Null" value="0">
|
---|
354 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
355 | </const>
|
---|
356 | <const name="PoweredOff" value="1">
|
---|
357 | <desc>
|
---|
358 | The machine is not running.
|
---|
359 | </desc>
|
---|
360 | </const>
|
---|
361 | <const name="Saved" value="2">
|
---|
362 | <desc>
|
---|
363 | The machine is not currently running, but the execution state
|
---|
364 | of the machine has been saved to an external file when it
|
---|
365 | was running.
|
---|
366 | <note>
|
---|
367 | Only a few machine settings can be altered when the machine
|
---|
368 | is in this state.
|
---|
369 | </note>
|
---|
370 | </desc>
|
---|
371 | </const>
|
---|
372 | <const name="Aborted" value="3">
|
---|
373 | <desc>
|
---|
374 | A process running the machine has terminated abnormally.
|
---|
375 | Other than that, this value is equivalent to #PoweredOff.
|
---|
376 | </desc>
|
---|
377 | </const>
|
---|
378 | <const name="Running" value="4">
|
---|
379 | <desc>
|
---|
380 | The machine is currently being executed.
|
---|
381 | <note>
|
---|
382 | This value can be used in relational expressions:
|
---|
383 | all state values less than Running describe a virtual machine that is
|
---|
384 | not currently being executed (i.e., it is completely out of
|
---|
385 | action).
|
---|
386 | </note>
|
---|
387 | <note internal="yes">
|
---|
388 | For whoever decides to touch this enum: In order to keep the
|
---|
389 | aforementioned comparisons valid, this state must immediately
|
---|
390 | precede the Paused state.
|
---|
391 | </note>
|
---|
392 | </desc>
|
---|
393 | </const>
|
---|
394 | <const name="Paused" value="5">
|
---|
395 | <desc>
|
---|
396 | Execution of the machine has been paused.
|
---|
397 | <note>
|
---|
398 | This value can be used in relational expressions: all state values
|
---|
399 | greater than Paused represent unstable states of the running virtual
|
---|
400 | machine. Unless explicitly stated otherwise, no machine settings can
|
---|
401 | be altered when it is in one of the unstable states.
|
---|
402 | </note>
|
---|
403 | <note internal="yes">
|
---|
404 | For whoever decides to touch this enum: In order to keep the
|
---|
405 | aforementioned comparisons valid, this state must immediately
|
---|
406 | follow the Running state.
|
---|
407 | </note>
|
---|
408 | </desc>
|
---|
409 | </const>
|
---|
410 | <const name="Stuck" value="6">
|
---|
411 | <desc>
|
---|
412 | Execution of the machine has reached the "Guru Meditation"
|
---|
413 | condition. This condition indicates an internal VMM failure which may
|
---|
414 | happen as a result of either an unhandled low-level virtual hardware
|
---|
415 | exception or one of the recompiler exceptions (such as
|
---|
416 | the <i>too-many-traps</i> condition).
|
---|
417 | </desc>
|
---|
418 | </const>
|
---|
419 | <const name="Starting" value="7">
|
---|
420 | <desc>
|
---|
421 | Machine is being started after
|
---|
422 | <link to="IConsole::powerUp">powering it on</link> from a
|
---|
423 | zero execution state.
|
---|
424 | </desc>
|
---|
425 | </const>
|
---|
426 | <const name="Stopping" value="8">
|
---|
427 | <desc>
|
---|
428 | Machine is being normally stopped
|
---|
429 | (after explicitly <link to="IConsole::powerDown">powering it off</link>,
|
---|
430 | or after the guest OS has initiated a shutdown sequence).
|
---|
431 | </desc>
|
---|
432 | </const>
|
---|
433 | <const name="Saving" value="9">
|
---|
434 | <desc>
|
---|
435 | Machine is saving its execution state to a file as a
|
---|
436 | result of calling <link to="IConsole::saveState"/> or an online
|
---|
437 | snapshot of the machine is being taken using
|
---|
438 | <link to="IConsole::takeSnapshot"/>.
|
---|
439 | </desc>
|
---|
440 | </const>
|
---|
441 | <const name="Restoring" value="10">
|
---|
442 | <desc>
|
---|
443 | Execution state of the machine is being restored from a file
|
---|
444 | after <link to="IConsole::powerUp">powering it on</link> from
|
---|
445 | a saved execution state.
|
---|
446 | </desc>
|
---|
447 | </const>
|
---|
448 | <const name="Discarding" value="11">
|
---|
449 | <desc>
|
---|
450 | Snapshot of the machine is being discarded after calling
|
---|
451 | <link to="IConsole::discardSnapshot"/> or its current state is
|
---|
452 | being discarded after <link to="IConsole::discardCurrentState"/>.
|
---|
453 | </desc>
|
---|
454 | </const>
|
---|
455 | <const name="SettingUp" value="12">
|
---|
456 | <desc>
|
---|
457 | Lengthy setup operation is in progress (e.g.
|
---|
458 | <link to="IMachine::attachHardDisk2"/>).
|
---|
459 | </desc>
|
---|
460 | </const>
|
---|
461 | </enum>
|
---|
462 |
|
---|
463 | <enum
|
---|
464 | name="SessionState"
|
---|
465 | uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
|
---|
466 | >
|
---|
467 | <desc>
|
---|
468 | Session state. This enumeration represents possible values of
|
---|
469 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
470 | attributes. Individual value descriptions contain the appropriate
|
---|
471 | meaning for every case.
|
---|
472 | </desc>
|
---|
473 |
|
---|
474 | <const name="Null" value="0">
|
---|
475 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
476 | </const>
|
---|
477 | <const name="Closed" value="1">
|
---|
478 | <desc>
|
---|
479 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
480 | the session is closed (<link to="ISession::state"/>)
|
---|
481 | </desc>
|
---|
482 | </const>
|
---|
483 | <const name="Open" value="2">
|
---|
484 | <desc>
|
---|
485 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
486 | the session is open (<link to="ISession::state"/>)
|
---|
487 | </desc>
|
---|
488 | </const>
|
---|
489 | <const name="Spawning" value="3">
|
---|
490 | <desc>
|
---|
491 | A new (direct) session is being opened for the machine
|
---|
492 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
493 | call (<link to="IMachine::sessionState"/>);
|
---|
494 | the session is currently being opened
|
---|
495 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
496 | call (<link to="ISession::state"/>)
|
---|
497 | </desc>
|
---|
498 | </const>
|
---|
499 | <const name="Closing" value="4">
|
---|
500 | <desc>
|
---|
501 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
502 | the session is being closed (<link to="ISession::state"/>)
|
---|
503 | </desc>
|
---|
504 | </const>
|
---|
505 | </enum>
|
---|
506 |
|
---|
507 | <enum
|
---|
508 | name="SessionType"
|
---|
509 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
510 | >
|
---|
511 | <desc>
|
---|
512 | Session type. This enumeration represents possible values of the
|
---|
513 | <link to="ISession::type"/> attribute.
|
---|
514 | </desc>
|
---|
515 |
|
---|
516 | <const name="Null" value="0">
|
---|
517 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
518 | </const>
|
---|
519 | <const name="Direct" value="1">
|
---|
520 | <desc>
|
---|
521 | Direct session
|
---|
522 | (opened by <link to="IVirtualBox::openSession()"/>)
|
---|
523 | </desc>
|
---|
524 | </const>
|
---|
525 | <const name="Remote" value="2">
|
---|
526 | <desc>
|
---|
527 | Remote session
|
---|
528 | (opened by <link to="IVirtualBox::openRemoteSession()"/>)
|
---|
529 | </desc>
|
---|
530 | </const>
|
---|
531 | <const name="Existing" value="3">
|
---|
532 | <desc>
|
---|
533 | Existing session
|
---|
534 | (opened by <link to="IVirtualBox::openExistingSession()"/>)
|
---|
535 | </desc>
|
---|
536 | </const>
|
---|
537 | </enum>
|
---|
538 |
|
---|
539 | <enum
|
---|
540 | name="DeviceType"
|
---|
541 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
542 | >
|
---|
543 | <desc>
|
---|
544 | Device type.
|
---|
545 | </desc>
|
---|
546 | <const name="Null" value="0">
|
---|
547 | <desc>
|
---|
548 | <tt>null</tt> value which may also mean "no device".
|
---|
549 | <note>
|
---|
550 | This value is not allowed for
|
---|
551 | <link to="IConsole::getDeviceActivity"/>
|
---|
552 | </note>
|
---|
553 | </desc>
|
---|
554 | </const>
|
---|
555 | <const name="Floppy" value="1">
|
---|
556 | <desc>Floppy device.</desc>
|
---|
557 | </const>
|
---|
558 | <const name="DVD" value="2">
|
---|
559 | <desc>CD/DVD-ROM device.</desc>
|
---|
560 | </const>
|
---|
561 | <const name="HardDisk" value="3">
|
---|
562 | <desc>Hard disk device.</desc>
|
---|
563 | </const>
|
---|
564 | <const name="Network" value="4">
|
---|
565 | <desc>Network device.</desc>
|
---|
566 | </const>
|
---|
567 | <const name="USB" value="5">
|
---|
568 | <desc>USB device.</desc>
|
---|
569 | </const>
|
---|
570 | <const name="SharedFolder" value="6">
|
---|
571 | <desc>Shared folder device.</desc>
|
---|
572 | </const>
|
---|
573 | </enum>
|
---|
574 |
|
---|
575 | <enum
|
---|
576 | name="DeviceActivity"
|
---|
577 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
578 | >
|
---|
579 | <desc>
|
---|
580 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
581 | </desc>
|
---|
582 |
|
---|
583 | <const name="Null" value="0"/>
|
---|
584 | <const name="Idle" value="1"/>
|
---|
585 | <const name="Reading" value="2"/>
|
---|
586 | <const name="Writing" value="3"/>
|
---|
587 | </enum>
|
---|
588 |
|
---|
589 | <enum
|
---|
590 | name="StorageBus"
|
---|
591 | uuid="715984a5-093c-43bb-aa42-a16ed16828dd"
|
---|
592 | >
|
---|
593 | <desc>Interface bus type for storage devices.</desc>
|
---|
594 |
|
---|
595 | <const name="Null" value="0">
|
---|
596 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
597 | </const>
|
---|
598 |
|
---|
599 | <const name="IDE" value="1"/>
|
---|
600 | <const name="SATA" value="2"/>
|
---|
601 | </enum>
|
---|
602 |
|
---|
603 | <enum
|
---|
604 | name="ClipboardMode"
|
---|
605 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
606 | >
|
---|
607 | <desc>
|
---|
608 | Host-Guest clipboard interchange mode.
|
---|
609 | </desc>
|
---|
610 |
|
---|
611 | <const name="Disabled" value="0"/>
|
---|
612 | <const name="HostToGuest" value="1"/>
|
---|
613 | <const name="GuestToHost" value="2"/>
|
---|
614 | <const name="Bidirectional" value="3"/>
|
---|
615 | </enum>
|
---|
616 |
|
---|
617 | <enum
|
---|
618 | name="Scope"
|
---|
619 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
620 | >
|
---|
621 | <desc>
|
---|
622 | Scope of the operation.
|
---|
623 |
|
---|
624 | A generic enumeration used in various methods to define the action or
|
---|
625 | argument scope.
|
---|
626 | </desc>
|
---|
627 |
|
---|
628 | <const name="Global" value="0"/>
|
---|
629 | <const name="Machine" value="1"/>
|
---|
630 | <const name="Session" value="2"/>
|
---|
631 | </enum>
|
---|
632 |
|
---|
633 | <enum
|
---|
634 | name="GuestStatisticType"
|
---|
635 | uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
|
---|
636 | >
|
---|
637 | <desc>
|
---|
638 | Statistics type for <link to="IGuest::getStatistic"/>.
|
---|
639 | </desc>
|
---|
640 |
|
---|
641 | <const name="CPULoad_Idle" value="0">
|
---|
642 | <desc>
|
---|
643 | Idle CPU load (0-100%) for last interval.
|
---|
644 | </desc>
|
---|
645 | </const>
|
---|
646 | <const name="CPULoad_Kernel" value="1">
|
---|
647 | <desc>
|
---|
648 | Kernel CPU load (0-100%) for last interval.
|
---|
649 | </desc>
|
---|
650 | </const>
|
---|
651 | <const name="CPULoad_User" value="2">
|
---|
652 | <desc>
|
---|
653 | User CPU load (0-100%) for last interval.
|
---|
654 | </desc>
|
---|
655 | </const>
|
---|
656 | <const name="Threads" value="3">
|
---|
657 | <desc>
|
---|
658 | Total number of threads in the system.
|
---|
659 | </desc>
|
---|
660 | </const>
|
---|
661 | <const name="Processes" value="4">
|
---|
662 | <desc>
|
---|
663 | Total number of processes in the system.
|
---|
664 | </desc>
|
---|
665 | </const>
|
---|
666 | <const name="Handles" value="5">
|
---|
667 | <desc>
|
---|
668 | Total number of handles in the system.
|
---|
669 | </desc>
|
---|
670 | </const>
|
---|
671 | <const name="MemoryLoad" value="6">
|
---|
672 | <desc>
|
---|
673 | Memory load (0-100%).
|
---|
674 | </desc>
|
---|
675 | </const>
|
---|
676 | <const name="PhysMemTotal" value="7">
|
---|
677 | <desc>
|
---|
678 | Total physical memory in megabytes.
|
---|
679 | </desc>
|
---|
680 | </const>
|
---|
681 | <const name="PhysMemAvailable" value="8">
|
---|
682 | <desc>
|
---|
683 | Free physical memory in megabytes.
|
---|
684 | </desc>
|
---|
685 | </const>
|
---|
686 | <const name="PhysMemBalloon" value="9">
|
---|
687 | <desc>
|
---|
688 | Ballooned physical memory in megabytes.
|
---|
689 | </desc>
|
---|
690 | </const>
|
---|
691 | <const name="MemCommitTotal" value="10">
|
---|
692 | <desc>
|
---|
693 | Total amount of memory in the committed state in megabytes.
|
---|
694 | </desc>
|
---|
695 | </const>
|
---|
696 | <const name="MemKernelTotal" value="11">
|
---|
697 | <desc>
|
---|
698 | Total amount of memory used by the guest OS's kernel in megabytes.
|
---|
699 | </desc>
|
---|
700 | </const>
|
---|
701 | <const name="MemKernelPaged" value="12">
|
---|
702 | <desc>
|
---|
703 | Total amount of paged memory used by the guest OS's kernel in megabytes.
|
---|
704 | </desc>
|
---|
705 | </const>
|
---|
706 | <const name="MemKernelNonpaged" value="13">
|
---|
707 | <desc>
|
---|
708 | Total amount of non-paged memory used by the guest OS's kernel in megabytes.
|
---|
709 | </desc>
|
---|
710 | </const>
|
---|
711 | <const name="MemSystemCache" value="14">
|
---|
712 | <desc>
|
---|
713 | Total amount of memory used by the guest OS's system cache in megabytes.
|
---|
714 | </desc>
|
---|
715 | </const>
|
---|
716 | <const name="PageFileSize" value="15">
|
---|
717 | <desc>
|
---|
718 | Pagefile size in megabytes.
|
---|
719 | </desc>
|
---|
720 | </const>
|
---|
721 | <const name="SampleNumber" value="16">
|
---|
722 | <desc>
|
---|
723 | Statistics sample number
|
---|
724 | </desc>
|
---|
725 | </const>
|
---|
726 | <const name="MaxVal" value="17"/>
|
---|
727 | </enum>
|
---|
728 |
|
---|
729 | <enum
|
---|
730 | name="BIOSBootMenuMode"
|
---|
731 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
732 | >
|
---|
733 | <desc>
|
---|
734 | BIOS boot menu mode.
|
---|
735 | </desc>
|
---|
736 |
|
---|
737 | <const name="Disabled" value="0"/>
|
---|
738 | <const name="MenuOnly" value="1"/>
|
---|
739 | <const name="MessageAndMenu" value="2"/>
|
---|
740 | </enum>
|
---|
741 |
|
---|
742 | <enum
|
---|
743 | name="IDEControllerType"
|
---|
744 | uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
|
---|
745 | >
|
---|
746 | <desc>
|
---|
747 | IDE controller type.
|
---|
748 | </desc>
|
---|
749 |
|
---|
750 | <const name="Null" value="0">
|
---|
751 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
752 | </const>
|
---|
753 | <const name="PIIX3" value="1"/>
|
---|
754 | <const name="PIIX4" value="2"/>
|
---|
755 | </enum>
|
---|
756 |
|
---|
757 | <enum
|
---|
758 | name="DriveState"
|
---|
759 | uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
|
---|
760 | >
|
---|
761 | <const name="Null" value="0">
|
---|
762 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
763 | </const>
|
---|
764 | <const name="NotMounted" value="1"/>
|
---|
765 | <const name="ImageMounted" value="2"/>
|
---|
766 | <const name="HostDriveCaptured" value="3"/>
|
---|
767 | </enum>
|
---|
768 |
|
---|
769 | <enum
|
---|
770 | name="ProcessorFeature"
|
---|
771 | uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
|
---|
772 | >
|
---|
773 | <desc>
|
---|
774 | CPU features.
|
---|
775 | </desc>
|
---|
776 |
|
---|
777 | <const name="HWVirtEx" value="0"/>
|
---|
778 | <const name="PAE" value="1"/>
|
---|
779 | <const name="LongMode" value="2"/>
|
---|
780 | </enum>
|
---|
781 |
|
---|
782 |
|
---|
783 | <!--
|
---|
784 | // IVirtualBoxErrorInfo
|
---|
785 | /////////////////////////////////////////////////////////////////////////
|
---|
786 | -->
|
---|
787 |
|
---|
788 | <interface
|
---|
789 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
790 | uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
|
---|
791 | supportsErrorInfo="no"
|
---|
792 | wsmap="suppress"
|
---|
793 | >
|
---|
794 | <desc>
|
---|
795 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
796 |
|
---|
797 | Extended error information can be set by VirtualBox components after
|
---|
798 | unsuccessful or partially successful method invocation. This information
|
---|
799 | can be retrieved by the calling party as an IVirtualBoxErrorInfo object
|
---|
800 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
801 |
|
---|
802 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
803 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
804 | it provides a set of common attributes to retrieve error
|
---|
805 | information.
|
---|
806 |
|
---|
807 | Sometimes invocation of some component's method may involve methods of
|
---|
808 | other components that may also fail (independently of this method's
|
---|
809 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
810 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
811 | information about all errors happened during method invocation and deliver
|
---|
812 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
813 | specifically for this purpose and allows to represent a chain of errors
|
---|
814 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
815 |
|
---|
816 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
817 | initial error object you query right after method invocation is the last
|
---|
818 | error set by the callee, the object it points to in the @a next attribute
|
---|
819 | is the previous error and so on, up to the first error (which is the last
|
---|
820 | in the chain).
|
---|
821 | </desc>
|
---|
822 |
|
---|
823 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
824 | <desc>
|
---|
825 | Result code of the error.
|
---|
826 | Usually, it will be the same as the result code returned
|
---|
827 | by the method that provided this error information, but not
|
---|
828 | always. For example, on Win32, CoCreateInstance() will most
|
---|
829 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
830 | instantiation attempt, but not the value the component factory
|
---|
831 | returned.
|
---|
832 | <note>
|
---|
833 | In MS COM, there is no equivalent.
|
---|
834 | In XPCOM, it is the same as nsIException::result.
|
---|
835 | </note>
|
---|
836 | </desc>
|
---|
837 | </attribute>
|
---|
838 |
|
---|
839 | <attribute name="interfaceID" type="uuid" readonly="yes">
|
---|
840 | <desc>
|
---|
841 | UUID of the interface that defined the error.
|
---|
842 | <note>
|
---|
843 | In MS COM, it is the same as IErrorInfo::GetGUID.
|
---|
844 | In XPCOM, there is no equivalent.
|
---|
845 | </note>
|
---|
846 | </desc>
|
---|
847 | </attribute>
|
---|
848 |
|
---|
849 | <attribute name="component" type="wstring" readonly="yes">
|
---|
850 | <desc>
|
---|
851 | Name of the component that generated the error.
|
---|
852 | <note>
|
---|
853 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
854 | In XPCOM, there is no equivalent.
|
---|
855 | </note>
|
---|
856 | </desc>
|
---|
857 | </attribute>
|
---|
858 |
|
---|
859 | <attribute name="text" type="wstring" readonly="yes">
|
---|
860 | <desc>
|
---|
861 | Text description of the error.
|
---|
862 | <note>
|
---|
863 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
864 | In XPCOM, it is the same as nsIException::message.
|
---|
865 | </note>
|
---|
866 | </desc>
|
---|
867 | </attribute>
|
---|
868 |
|
---|
869 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
870 | <desc>
|
---|
871 | Next error object if there is any, or @c null otherwise.
|
---|
872 | <note>
|
---|
873 | In MS COM, there is no equivalent.
|
---|
874 | In XPCOM, it is the same as nsIException::inner.
|
---|
875 | </note>
|
---|
876 | </desc>
|
---|
877 | </attribute>
|
---|
878 |
|
---|
879 | </interface>
|
---|
880 |
|
---|
881 |
|
---|
882 | <!--
|
---|
883 | // IVirtualBox
|
---|
884 | /////////////////////////////////////////////////////////////////////////
|
---|
885 | -->
|
---|
886 |
|
---|
887 | <interface
|
---|
888 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
889 | uuid="5516cc08-fb81-47a6-b184-031e7bbd2997"
|
---|
890 | wsmap="suppress"
|
---|
891 | >
|
---|
892 | <method name="onMachineStateChange">
|
---|
893 | <desc>
|
---|
894 | The execution state of the given machine has changed.
|
---|
895 | <see>IMachine::state</see>
|
---|
896 | </desc>
|
---|
897 | <param name="machineId" type="uuid" dir="in">
|
---|
898 | <desc>ID of the machine this event relates to.</desc>
|
---|
899 | </param>
|
---|
900 | <param name="state" type="MachineState" dir="in">
|
---|
901 | <desc>New execution state.</desc>
|
---|
902 | </param>
|
---|
903 | </method>
|
---|
904 |
|
---|
905 | <method name="onMachineDataChange">
|
---|
906 | <desc>
|
---|
907 | Any of the settings of the given machine has changed.
|
---|
908 | </desc>
|
---|
909 | <param name="machineId" type="uuid" dir="in">
|
---|
910 | <desc>ID of the machine this event relates to.</desc>
|
---|
911 | </param>
|
---|
912 | </method>
|
---|
913 |
|
---|
914 | <method name="onExtraDataCanChange">
|
---|
915 | <desc>
|
---|
916 | Notification when someone tries to change extra data for
|
---|
917 | either the given machine or (if null) global extra data.
|
---|
918 | This gives the chance to veto against changes.
|
---|
919 | </desc>
|
---|
920 | <param name="machineId" type="uuid" dir="in">
|
---|
921 | <desc>
|
---|
922 | ID of the machine this event relates to
|
---|
923 | (null ID for global extra data change requests).
|
---|
924 | </desc>
|
---|
925 | </param>
|
---|
926 | <param name="key" type="wstring" dir="in">
|
---|
927 | <desc>
|
---|
928 | Extra data key for the attempted write.
|
---|
929 | </desc>
|
---|
930 | </param>
|
---|
931 | <param name="value" type="wstring" dir="in">
|
---|
932 | <desc>
|
---|
933 | Extra data value for the given key.
|
---|
934 | </desc>
|
---|
935 | </param>
|
---|
936 | <param name="error" type="wstring" dir="out">
|
---|
937 | <desc>
|
---|
938 | Optional error message describing the reason of the
|
---|
939 | veto (ignored if this notification returns @c true).
|
---|
940 | </desc>
|
---|
941 | </param>
|
---|
942 | <param name="allowChange" type="boolean" dir="return">
|
---|
943 | <desc>
|
---|
944 | Flag to indicate whether the callee agrees (@c true)
|
---|
945 | or vetoes against the change (@c false).
|
---|
946 | </desc>
|
---|
947 | </param>
|
---|
948 | </method>
|
---|
949 |
|
---|
950 | <method name="onExtraDataChange">
|
---|
951 | <desc>
|
---|
952 | Notification when machine specific or global extra data
|
---|
953 | has changed.
|
---|
954 | </desc>
|
---|
955 | <param name="machineId" type="uuid" dir="in">
|
---|
956 | <desc>
|
---|
957 | ID of the machine this event relates to.
|
---|
958 | Null for global extra data changes.
|
---|
959 | </desc>
|
---|
960 | </param>
|
---|
961 | <param name="key" type="wstring" dir="in">
|
---|
962 | <desc>
|
---|
963 | Extra data key that has changed.
|
---|
964 | </desc>
|
---|
965 | </param>
|
---|
966 | <param name="value" type="wstring" dir="in">
|
---|
967 | <desc>
|
---|
968 | Extra data value for the given key.
|
---|
969 | </desc>
|
---|
970 | </param>
|
---|
971 | </method>
|
---|
972 |
|
---|
973 | <method name="onMediaRegistered">
|
---|
974 | <desc>
|
---|
975 | The given media was registered or unregistered
|
---|
976 | within this VirtualBox installation.
|
---|
977 |
|
---|
978 | The @a mediaType parameter describes what type of
|
---|
979 | media the specified @a mediaId refers to. Possible
|
---|
980 | values are:
|
---|
981 |
|
---|
982 | <ul>
|
---|
983 | <li><link to="DeviceType::HardDisk"/>: the media is a hard disk
|
---|
984 | that, if registered, can be obtained using the
|
---|
985 | <link to="IVirtualBox::getHardDisk2()"/> call.</li>
|
---|
986 | <li><link to="DeviceType::DVD"/>: the media is a CD/DVD image
|
---|
987 | that, if registered, can be obtained using the
|
---|
988 | <link to="IVirtualBox::getDVDImage()"/> call.</li>
|
---|
989 | <li><link to="DeviceType::Floppy"/>: the media is a Floppy image
|
---|
990 | that, if registered, can be obtained using the
|
---|
991 | <link to="IVirtualBox::getFloppyImage()"/> call.</li>
|
---|
992 | </ul>
|
---|
993 |
|
---|
994 | Note that if this is a deregistration notification,
|
---|
995 | there is no way to access the object representing the
|
---|
996 | unregistered media. It is supposed that the
|
---|
997 | application will do required cleanup based on the @a
|
---|
998 | mediaId value.
|
---|
999 | </desc>
|
---|
1000 | <param name="mediaId" type="uuid" dir="in">
|
---|
1001 | <desc>ID of the media this event relates to.</desc>
|
---|
1002 | </param>
|
---|
1003 | <param name="mediaType" type="DeviceType" dir="in">
|
---|
1004 | <desc>Type of the media this event relates to.</desc>
|
---|
1005 | </param>
|
---|
1006 | <param name="registered" type="boolean" dir="in">
|
---|
1007 | <desc>
|
---|
1008 | If true, the media was registered, otherwise it was
|
---|
1009 | unregistered.
|
---|
1010 | </desc>
|
---|
1011 | </param>
|
---|
1012 | </method>
|
---|
1013 |
|
---|
1014 | <method name="onMachineRegistered">
|
---|
1015 | <desc>
|
---|
1016 | The given machine was registered or unregistered
|
---|
1017 | within this VirtualBox installation.
|
---|
1018 | </desc>
|
---|
1019 | <param name="machineId" type="uuid" dir="in">
|
---|
1020 | <desc>ID of the machine this event relates to.</desc>
|
---|
1021 | </param>
|
---|
1022 | <param name="registered" type="boolean" dir="in">
|
---|
1023 | <desc>
|
---|
1024 | If true, the machine was registered, otherwise it was
|
---|
1025 | unregistered.
|
---|
1026 | </desc>
|
---|
1027 | </param>
|
---|
1028 | </method>
|
---|
1029 |
|
---|
1030 | <method name="onSessionStateChange">
|
---|
1031 | <desc>
|
---|
1032 | The state of the session for the given machine was changed.
|
---|
1033 | <see>IMachine::sessionState</see>
|
---|
1034 | </desc>
|
---|
1035 | <param name="machineId" type="uuid" dir="in">
|
---|
1036 | <desc>ID of the machine this event relates to.</desc>
|
---|
1037 | </param>
|
---|
1038 | <param name="state" type="SessionState" dir="in">
|
---|
1039 | <desc>New session state.</desc>
|
---|
1040 | </param>
|
---|
1041 | </method>
|
---|
1042 |
|
---|
1043 | <method name="onSnapshotTaken">
|
---|
1044 | <desc>
|
---|
1045 | A new snapshot of the machine has been taken.
|
---|
1046 | <see>ISnapshot</see>
|
---|
1047 | </desc>
|
---|
1048 | <param name="machineId" type="uuid" dir="in">
|
---|
1049 | <desc>ID of the machine this event relates to.</desc>
|
---|
1050 | </param>
|
---|
1051 | <param name="snapshotId" type="uuid" dir="in">
|
---|
1052 | <desc>ID of the new snapshot.</desc>
|
---|
1053 | </param>
|
---|
1054 | </method>
|
---|
1055 |
|
---|
1056 | <method name="onSnapshotDiscarded">
|
---|
1057 | <desc>
|
---|
1058 | Snapshot of the given machine has been discarded.
|
---|
1059 |
|
---|
1060 | <note>
|
---|
1061 | This notification is delivered <b>after</b> the snapshot
|
---|
1062 | object has been uninitialized on the server (so that any
|
---|
1063 | attempt to call its methods will return an error).
|
---|
1064 | </note>
|
---|
1065 |
|
---|
1066 | <see>ISnapshot</see>
|
---|
1067 | </desc>
|
---|
1068 | <param name="machineId" type="uuid" dir="in">
|
---|
1069 | <desc>ID of the machine this event relates to.</desc>
|
---|
1070 | </param>
|
---|
1071 | <param name="snapshotId" type="uuid" dir="in">
|
---|
1072 | <desc>
|
---|
1073 | ID of the discarded snapshot. <tt>null</tt> means the
|
---|
1074 | current machine state has been discarded (restored from
|
---|
1075 | the current snapshot).
|
---|
1076 | </desc>
|
---|
1077 | </param>
|
---|
1078 | </method>
|
---|
1079 |
|
---|
1080 | <method name="onSnapshotChange">
|
---|
1081 | <desc>
|
---|
1082 | Snapshot properties (name and/or description) have been changed.
|
---|
1083 | <see>ISnapshot</see>
|
---|
1084 | </desc>
|
---|
1085 | <param name="machineId" type="uuid" dir="in">
|
---|
1086 | <desc>ID of the machine this event relates to.</desc>
|
---|
1087 | </param>
|
---|
1088 | <param name="snapshotId" type="uuid" dir="in">
|
---|
1089 | <desc>ID of the changed snapshot.</desc>
|
---|
1090 | </param>
|
---|
1091 | </method>
|
---|
1092 |
|
---|
1093 | <method name="onGuestPropertyChange">
|
---|
1094 | <desc>
|
---|
1095 | Notification when a guest property has changed.
|
---|
1096 | </desc>
|
---|
1097 | <param name="machineId" type="uuid" dir="in">
|
---|
1098 | <desc>
|
---|
1099 | ID of the machine this event relates to.
|
---|
1100 | </desc>
|
---|
1101 | </param>
|
---|
1102 | <param name="name" type="wstring" dir="in">
|
---|
1103 | <desc>
|
---|
1104 | The name of the property that has changed.
|
---|
1105 | </desc>
|
---|
1106 | </param>
|
---|
1107 | <param name="value" type="wstring" dir="in">
|
---|
1108 | <desc>
|
---|
1109 | The new property value.
|
---|
1110 | </desc>
|
---|
1111 | </param>
|
---|
1112 | <param name="flags" type="wstring" dir="in">
|
---|
1113 | <desc>
|
---|
1114 | The new property flags.
|
---|
1115 | </desc>
|
---|
1116 | </param>
|
---|
1117 | </method>
|
---|
1118 |
|
---|
1119 | </interface>
|
---|
1120 |
|
---|
1121 | <interface
|
---|
1122 | name="IVirtualBox" extends="$dispatched"
|
---|
1123 | uuid="339abca2-f47a-4302-87f5-7bc324e6bbde"
|
---|
1124 | wsmap="managed"
|
---|
1125 | >
|
---|
1126 | <desc>
|
---|
1127 | The IVirtualBox interface represents the main interface exposed by the
|
---|
1128 | product that provides virtual machine management.
|
---|
1129 |
|
---|
1130 | An instance of IVirtualBox is required for the product to do anything
|
---|
1131 | useful. Even though the interface does not expose this, internally,
|
---|
1132 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
1133 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
1134 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
1135 | host, regardless of which frontend started them.
|
---|
1136 |
|
---|
1137 | To enumerate all the virtual machines on the host, use the
|
---|
1138 | <link to="IVirtualBox::machines2"/> attribute.
|
---|
1139 | </desc>
|
---|
1140 |
|
---|
1141 | <attribute name="version" type="wstring" readonly="yes">
|
---|
1142 | <desc>
|
---|
1143 | A string representing the version number of the product. The
|
---|
1144 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
1145 | last number represents the build number and will frequently change.
|
---|
1146 | </desc>
|
---|
1147 | </attribute>
|
---|
1148 |
|
---|
1149 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
1150 | <desc>
|
---|
1151 | The internal build revision number of the product.
|
---|
1152 | </desc>
|
---|
1153 | </attribute>
|
---|
1154 |
|
---|
1155 | <attribute name="packageType" type="wstring" readonly="yes">
|
---|
1156 | <desc>
|
---|
1157 | A string representing the package type of this product. The
|
---|
1158 | format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
|
---|
1159 | SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
|
---|
1160 | is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
|
---|
1161 | this.
|
---|
1162 | </desc>
|
---|
1163 | </attribute>
|
---|
1164 |
|
---|
1165 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
1166 | <desc>
|
---|
1167 | Full path to the directory where the global settings file,
|
---|
1168 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
1169 |
|
---|
1170 | In this version of VirtualBox, the value of this property is
|
---|
1171 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
1172 | <tt><user_dir></tt> is the path to the user directory,
|
---|
1173 | as determined by the host OS), and cannot be changed.
|
---|
1174 |
|
---|
1175 | This path is also used as the base to resolve relative paths in
|
---|
1176 | places where relative paths are allowed (unless otherwise
|
---|
1177 | expressly indicated).
|
---|
1178 | </desc>
|
---|
1179 | </attribute>
|
---|
1180 |
|
---|
1181 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
1182 | <desc>
|
---|
1183 | Full name of the global settings file.
|
---|
1184 | The value of this property corresponds to the value of
|
---|
1185 | <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
|
---|
1186 | </desc>
|
---|
1187 | </attribute>
|
---|
1188 |
|
---|
1189 | <attribute name="settingsFileVersion" type="wstring" readonly="yes">
|
---|
1190 | <desc>
|
---|
1191 | Current version of the format of the global VirtualBox settings file
|
---|
1192 | (<tt>VirtualBox.xml</tt>).
|
---|
1193 |
|
---|
1194 | The version string has the following format:
|
---|
1195 | <pre>
|
---|
1196 | x.y-platform
|
---|
1197 | </pre>
|
---|
1198 | where <tt>x</tt> and <tt>y</tt> are the major and the minor format
|
---|
1199 | versions, and <tt>platform</tt> is the platform identifier.
|
---|
1200 |
|
---|
1201 | The current version usually matches the value of the
|
---|
1202 | <link to="#settingsFormatVersion"/> attribute unless the
|
---|
1203 | settings file was created by an older version of VirtualBox and there
|
---|
1204 | was a change of the settings file format since then.
|
---|
1205 |
|
---|
1206 | Note that VirtualBox automatically converts settings files from older
|
---|
1207 | versions to the most recent version when reading them (usually at
|
---|
1208 | VirtualBox startup) but it doesn't save the changes back until
|
---|
1209 | you call a method that implicitly saves settings (such as
|
---|
1210 | <link to="#setExtraData()"/>) or call <link to="#saveSettings()"/>
|
---|
1211 | explicitly. Therefore, if the value of this attribute differs from the
|
---|
1212 | value of <link to="#settingsFormatVersion"/>, then it
|
---|
1213 | means that the settings file was converted but the result of the
|
---|
1214 | conversion is not yet saved to disk.
|
---|
1215 |
|
---|
1216 | The above feature may be used by interactive front-ends to inform users
|
---|
1217 | about the settings file format change and offer them to explicitly save
|
---|
1218 | all converted settings files (the global and VM-specific ones),
|
---|
1219 | optionally create backup copies of the old settings files before saving,
|
---|
1220 | etc.
|
---|
1221 |
|
---|
1222 | <see>settingsFormatVersion, saveSettingsWithBackup()</see>
|
---|
1223 | </desc>
|
---|
1224 | </attribute>
|
---|
1225 |
|
---|
1226 | <attribute name="settingsFormatVersion" type="wstring" readonly="yes">
|
---|
1227 | <desc>
|
---|
1228 | Most recent version of the settings file format.
|
---|
1229 |
|
---|
1230 | The version string has the following format:
|
---|
1231 | <pre>
|
---|
1232 | x.y-platform
|
---|
1233 | </pre>
|
---|
1234 | where <tt>x</tt> and <tt>y</tt> are the major and the minor format
|
---|
1235 | versions, and <tt>platform</tt> is the platform identifier.
|
---|
1236 |
|
---|
1237 | VirtualBox uses this version of the format when saving settings files
|
---|
1238 | (either as a result of method calls that require to save settings or as
|
---|
1239 | a result of an explicit call to <link to="#saveSettings()"/>).
|
---|
1240 |
|
---|
1241 | <see>settingsFileVersion</see>
|
---|
1242 | </desc>
|
---|
1243 | </attribute>
|
---|
1244 |
|
---|
1245 | <attribute name="host" type="IHost" readonly="yes">
|
---|
1246 | <desc>Associated host object.</desc>
|
---|
1247 | </attribute>
|
---|
1248 |
|
---|
1249 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
1250 | <desc>Associated system information object.</desc>
|
---|
1251 | </attribute>
|
---|
1252 |
|
---|
1253 | <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
|
---|
1254 | <desc>
|
---|
1255 | Array of machine objects registered within this VirtualBox instance.
|
---|
1256 | </desc>
|
---|
1257 | </attribute>
|
---|
1258 |
|
---|
1259 | <attribute name="hardDisks2" type="IHardDisk2" readonly="yes" safearray="yes">
|
---|
1260 | <desc>
|
---|
1261 | Array of hard disk objects known to this VirtualBox installation.
|
---|
1262 |
|
---|
1263 | This array contains only base (root) hard disks. All differencing
|
---|
1264 | hard disks of the given base hard disk can be enumerated using
|
---|
1265 | <link to="IHardDisk2::children"/>.
|
---|
1266 | </desc>
|
---|
1267 | </attribute>
|
---|
1268 |
|
---|
1269 | <attribute name="DVDImages" type="IDVDImage2" readonly="yes" safearray="yes">
|
---|
1270 | <desc>
|
---|
1271 | Array of CD/DVD image objects registered with this VirtualBox instance.
|
---|
1272 | </desc>
|
---|
1273 | </attribute>
|
---|
1274 |
|
---|
1275 | <attribute name="floppyImages" type="IFloppyImage2" readonly="yes" safearray="yes">
|
---|
1276 | <desc>
|
---|
1277 | Array of floppy image objects registered with this VirtualBox instance.
|
---|
1278 | </desc>
|
---|
1279 | </attribute>
|
---|
1280 |
|
---|
1281 | <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
|
---|
1282 |
|
---|
1283 | <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
|
---|
1284 |
|
---|
1285 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
1286 | <desc>
|
---|
1287 | Collection of global shared folders. Global shared folders are
|
---|
1288 | available to all virtual machines.
|
---|
1289 |
|
---|
1290 | New shared folders are added to the collection using
|
---|
1291 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
1292 | removed using <link to="#removeSharedFolder"/>.
|
---|
1293 |
|
---|
1294 | <note>
|
---|
1295 | In the current version of the product, global shared folders are not
|
---|
1296 | implemented and therefore this collection is always empty.
|
---|
1297 | </note>
|
---|
1298 | </desc>
|
---|
1299 | </attribute>
|
---|
1300 |
|
---|
1301 | <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
|
---|
1302 | <desc>
|
---|
1303 | Associated performance collector object.
|
---|
1304 | </desc>
|
---|
1305 | </attribute>
|
---|
1306 |
|
---|
1307 | <method name="createMachine">
|
---|
1308 | <desc>
|
---|
1309 | Creates a new virtual machine.
|
---|
1310 |
|
---|
1311 | The new machine is created unregistered, with the initial configuration
|
---|
1312 | set according to the specified guest OS type. A typical sequence of
|
---|
1313 | actions to create a new virtual machine is as follows:
|
---|
1314 |
|
---|
1315 | <ol>
|
---|
1316 | <li>
|
---|
1317 | Call this method to have a new machine created. The returned machine
|
---|
1318 | object will be "mutable" allowing to change any machine property.
|
---|
1319 | </li>
|
---|
1320 |
|
---|
1321 | <li>
|
---|
1322 | Configure the machine using the appropriate attributes and methods.
|
---|
1323 | </li>
|
---|
1324 |
|
---|
1325 | <li>
|
---|
1326 | Call <link to="IMachine::saveSettings()" /> to write the settings
|
---|
1327 | to the machine's XML settings file. The configuration of the newly
|
---|
1328 | created machine will not be saved to disk until this method is
|
---|
1329 | called.
|
---|
1330 | </li>
|
---|
1331 |
|
---|
1332 | <li>
|
---|
1333 | Call <link to="#registerMachine()" /> to add the machine to the list
|
---|
1334 | of machines known to VirtualBox.
|
---|
1335 | </li>
|
---|
1336 | </ol>
|
---|
1337 |
|
---|
1338 | You should specify valid name for the newly created machine when calling
|
---|
1339 | this method. See the <link to="IMachine::name"/> attribute description
|
---|
1340 | for more details about the machine name.
|
---|
1341 |
|
---|
1342 | The specified guest OS type identifier must match an ID of one of known
|
---|
1343 | guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
|
---|
1344 | array.
|
---|
1345 |
|
---|
1346 | Every machine has a <i>settings file</i> that is used to store
|
---|
1347 | the machine configuration. This file is stored in a directory called the
|
---|
1348 | <i>machine settings subfolder</i>. Both the settings subfolder and file
|
---|
1349 | will have a name that corresponds to the name of the virtual machine.
|
---|
1350 | You can specify where to create the machine setting subfolder using the
|
---|
1351 | @a baseFolder argument. The base folder can be absolute (full path) or
|
---|
1352 | relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1353 | directory</link>.
|
---|
1354 |
|
---|
1355 | If @a baseFolder is a null or empty string (which is recommended), the
|
---|
1356 | <link to="ISystemProperties::defaultMachineFolder">default machine
|
---|
1357 | settings folder</link> will be used as a base folder for the created
|
---|
1358 | machine. Otherwise the given base folder will be used. In either case,
|
---|
1359 | the full path to the resulting settings file has the following
|
---|
1360 | structure:
|
---|
1361 | <pre>
|
---|
1362 | <base_folder>/<machine_name>/<machine_name>.xml
|
---|
1363 | </pre>
|
---|
1364 |
|
---|
1365 | Note that if the resulting settings file already exists, this method
|
---|
1366 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1367 |
|
---|
1368 | Optionally, you may specify an UUID of to assign to the created machine.
|
---|
1369 | However, this is not recommended and you should normally pass an empty
|
---|
1370 | (null) UUID to this method so that a new UUID will be automatically
|
---|
1371 | generated for every created machine.
|
---|
1372 |
|
---|
1373 | <note>
|
---|
1374 | There is no way to change the name of the settings file or
|
---|
1375 | subfolder of the created machine directly.
|
---|
1376 | </note>
|
---|
1377 |
|
---|
1378 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1379 | @a osTypeId is invalid.
|
---|
1380 | </result>
|
---|
1381 | <result name="VBOX_E_FILE_ERROR">
|
---|
1382 | Resulting settings file name is invalid or the settings file already
|
---|
1383 | exists or could not be created due to an I/O error.
|
---|
1384 | </result>
|
---|
1385 | <result name="E_INVALIDARG">
|
---|
1386 | @a name is empty or null.
|
---|
1387 | </result>
|
---|
1388 | </desc>
|
---|
1389 |
|
---|
1390 | <param name="name" type="wstring" dir="in">
|
---|
1391 | <desc>Machine name.</desc>
|
---|
1392 | </param>
|
---|
1393 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1394 | <desc>Guest OS Type ID.</desc>
|
---|
1395 | </param>
|
---|
1396 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1397 | <desc>Base machine folder (optional).</desc>
|
---|
1398 | </param>
|
---|
1399 | <param name="id" type="uuid" dir="in">
|
---|
1400 | <desc>Machine UUID (optional).</desc>
|
---|
1401 | </param>
|
---|
1402 | <param name="machine" type="IMachine" dir="return">
|
---|
1403 | <desc>Created machine object.</desc>
|
---|
1404 | </param>
|
---|
1405 | </method>
|
---|
1406 |
|
---|
1407 | <method name="createLegacyMachine">
|
---|
1408 | <desc>
|
---|
1409 | Creates a new virtual machine in "legacy" mode, using the specified
|
---|
1410 | settings file to store machine settings.
|
---|
1411 |
|
---|
1412 | As opposed to machines created by <link to="#createMachine()"/>,
|
---|
1413 | the settings file of the machine created in "legacy" mode is not
|
---|
1414 | automatically renamed when the machine name is changed -- it will always
|
---|
1415 | remain the same as specified in this method call.
|
---|
1416 |
|
---|
1417 | The specified settings file name can be absolute (full path) or relative
|
---|
1418 | to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1419 | directory</link>. If the file name doesn't contain an extension, the
|
---|
1420 | default extension (.xml) will be appended.
|
---|
1421 |
|
---|
1422 | Note that the configuration of the newly created machine is not
|
---|
1423 | saved to disk (and therefore no settings file is created)
|
---|
1424 | until <link to="IMachine::saveSettings()"/> is called. If the
|
---|
1425 | specified settings file already exists, this method
|
---|
1426 | will fail with <link to="VBOX_E_FILE_ERROR"/>..
|
---|
1427 |
|
---|
1428 | See <link to="#createMachine()"/> for more information.
|
---|
1429 |
|
---|
1430 | @deprecated This method may be removed later. Use <link
|
---|
1431 | to="IVirtualBox::createMachine()"/> instead.
|
---|
1432 |
|
---|
1433 | <note>
|
---|
1434 | There is no way to change the name of the settings file
|
---|
1435 | of the machine created in "legacy" mode.
|
---|
1436 | </note>
|
---|
1437 |
|
---|
1438 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1439 | @a osTypeId is invalid.
|
---|
1440 | </result>
|
---|
1441 | <result name="VBOX_E_FILE_ERROR">
|
---|
1442 | @a settingsFile is invalid or the settings file already exists or
|
---|
1443 | could not be created due to an I/O error.
|
---|
1444 | </result>
|
---|
1445 | <result name="E_INVALIDARG">
|
---|
1446 | @a name or @a settingsFile is empty or null.
|
---|
1447 | </result>
|
---|
1448 | </desc>
|
---|
1449 |
|
---|
1450 | <param name="name" type="wstring" dir="in">
|
---|
1451 | <desc>Machine name.</desc>
|
---|
1452 | </param>
|
---|
1453 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1454 | <desc>Machine OS Type ID.</desc>
|
---|
1455 | </param>
|
---|
1456 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1457 | <desc>Name of the machine settings file.</desc>
|
---|
1458 | </param>
|
---|
1459 | <param name="id" type="uuid" dir="in">
|
---|
1460 | <desc>Machine UUID (optional).</desc>
|
---|
1461 | </param>
|
---|
1462 | <param name="machine" type="IMachine" dir="return">
|
---|
1463 | <desc>Created machine object.</desc>
|
---|
1464 | </param>
|
---|
1465 | </method>
|
---|
1466 |
|
---|
1467 | <method name="openMachine">
|
---|
1468 | <desc>
|
---|
1469 | Opens a virtual machine from the existing settings file.
|
---|
1470 | The opened machine remains unregistered until you call
|
---|
1471 | <link to="#registerMachine()"/>.
|
---|
1472 |
|
---|
1473 | The specified settings file name can be absolute
|
---|
1474 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1475 | VirtualBox home directory</link>. This file must exist
|
---|
1476 | and must be a valid machine settings file whose contents
|
---|
1477 | will be used to construct the machine object.
|
---|
1478 |
|
---|
1479 | @deprecated Will be removed soon.
|
---|
1480 | </desc>
|
---|
1481 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1482 | <desc>
|
---|
1483 | Name of the machine settings file.
|
---|
1484 | </desc>
|
---|
1485 | </param>
|
---|
1486 | <param name="machine" type="IMachine" dir="return">
|
---|
1487 | <desc>Opened machine object.</desc>
|
---|
1488 | </param>
|
---|
1489 | <note>
|
---|
1490 | <link to="IMachine::settingsModified"/> will return
|
---|
1491 | false for the created machine, until any of machine settings
|
---|
1492 | are changed.
|
---|
1493 | </note>
|
---|
1494 | </method>
|
---|
1495 |
|
---|
1496 | <method name="registerMachine">
|
---|
1497 | <desc>
|
---|
1498 |
|
---|
1499 | Registers the machine previously created using
|
---|
1500 | <link to="#createMachine()"/> or opened using
|
---|
1501 | <link to="#openMachine()"/> within this VirtualBox installation. After
|
---|
1502 | successful method invocation, the
|
---|
1503 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1504 | to all registered callbacks.
|
---|
1505 |
|
---|
1506 | <note>
|
---|
1507 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1508 | to save all current machine settings before registering it.
|
---|
1509 | </note>
|
---|
1510 |
|
---|
1511 | </desc>
|
---|
1512 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1513 | </method>
|
---|
1514 |
|
---|
1515 | <method name="getMachine">
|
---|
1516 | <desc>
|
---|
1517 | Attempts to find a virtual machine given its UUID.
|
---|
1518 | To look up a machine by name, use <link to="IVirtualBox::findMachine" /> instead.
|
---|
1519 | </desc>
|
---|
1520 | <param name="id" type="uuid" dir="in"/>
|
---|
1521 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1522 | </method>
|
---|
1523 |
|
---|
1524 | <method name="findMachine">
|
---|
1525 | <desc>
|
---|
1526 | Attempts to find a virtual machine given its name.
|
---|
1527 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> instead.
|
---|
1528 | </desc>
|
---|
1529 | <param name="name" type="wstring" dir="in"/>
|
---|
1530 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1531 | </method>
|
---|
1532 |
|
---|
1533 | <method name="unregisterMachine">
|
---|
1534 | <desc>
|
---|
1535 |
|
---|
1536 | Unregisters the machine previously registered using
|
---|
1537 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1538 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1539 | to all registered callbacks.
|
---|
1540 |
|
---|
1541 | <note>
|
---|
1542 | The specified machine must not be in the Saved state, have an open
|
---|
1543 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1544 | have hard disks attached.
|
---|
1545 | </note>
|
---|
1546 |
|
---|
1547 | <note>
|
---|
1548 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1549 | save all current machine settings before unregistering it.
|
---|
1550 | </note>
|
---|
1551 |
|
---|
1552 | <note>
|
---|
1553 | If the given machine is inaccessible (see
|
---|
1554 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
1555 | fully uninitialized right afterwards. As a result, the returned
|
---|
1556 | machine object will be unusable and an attempt to call
|
---|
1557 | <b>any</b> method will return the "Object not ready" error.
|
---|
1558 | </note>
|
---|
1559 |
|
---|
1560 | </desc>
|
---|
1561 | <param name="id" type="uuid" dir="in">
|
---|
1562 | <desc>UUID of the machine to unregister.</desc>
|
---|
1563 | </param>
|
---|
1564 | <param name="machine" type="IMachine" dir="return">
|
---|
1565 | <desc>Unregistered machine object.</desc>
|
---|
1566 | </param>
|
---|
1567 | </method>
|
---|
1568 |
|
---|
1569 | <method name="createHardDisk2">
|
---|
1570 | <desc>
|
---|
1571 | Creates a new base hard disk object that will use the given storage
|
---|
1572 | format and location for hard disk data.
|
---|
1573 |
|
---|
1574 | Note that the actual storage unit is not created by this method. In
|
---|
1575 | order to do it, and before you are able to attach the created hard disk
|
---|
1576 | to virtual machines, you must call one of the following methods to
|
---|
1577 | allocate a format-specific storage unit at the specified location:
|
---|
1578 | <ul>
|
---|
1579 | <li><link to="IHardDisk2::createDynamicStorage()"/></li>
|
---|
1580 | <li><link to="IHardDisk2::createFixedStorage()"/></li>
|
---|
1581 | <li><link to="IHardDisk2::createDiffStorage()"/></li>
|
---|
1582 | </ul>
|
---|
1583 |
|
---|
1584 | Some hard disk attributes, such as <link to="#id"/>, may remain
|
---|
1585 | uninitialized until the hard disk storage unit is successfully created
|
---|
1586 | by one of the above methods.
|
---|
1587 |
|
---|
1588 | After the storage unit is successfully created, the hard disk gets
|
---|
1589 | remembered by this VirtualBox installation and will be accessible
|
---|
1590 | through <link to="#getHardDisk2()"/> and <link to="#findHardDisk2()"/>
|
---|
1591 | methods. Remembered root (base) hard disks are also returned as part of
|
---|
1592 | the <link to="#hardDisks2"/> array. See IHardDisk2 for more details.
|
---|
1593 |
|
---|
1594 | The list of all storage formats supported by this VirtualBox
|
---|
1595 | installation can be obtained using
|
---|
1596 | <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
|
---|
1597 | attribute is empty or <tt>null</tt> then the default storage format
|
---|
1598 | specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
|
---|
1599 | be used for creating a storage unit of the hard disk.
|
---|
1600 |
|
---|
1601 | Note that the format of the location string is storage format specific.
|
---|
1602 | See <link to="IMedium::location"/>, IHardDisk2 and
|
---|
1603 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1604 | </desc>
|
---|
1605 | <param name="format" type="wstring" dir="in">
|
---|
1606 | <desc>
|
---|
1607 | Identifier of the storage format to use for the new hard disk.
|
---|
1608 | </desc>
|
---|
1609 | </param>
|
---|
1610 | <param name="location" type="wstring" dir="in">
|
---|
1611 | <desc>
|
---|
1612 | Location of the storage unit for the new hard disk.
|
---|
1613 | </desc>
|
---|
1614 | </param>
|
---|
1615 | <param name="hardDisk" type="IHardDisk2" dir="return">
|
---|
1616 | <desc>Created hard disk object.</desc>
|
---|
1617 | </param>
|
---|
1618 | </method>
|
---|
1619 |
|
---|
1620 | <method name="openHardDisk2">
|
---|
1621 | <desc>
|
---|
1622 | Opens a hard disk from an existing location.
|
---|
1623 |
|
---|
1624 | After the hard disk is successfully opened by this method, it gets
|
---|
1625 | remembered by (known to) this VirtualBox installation and will be
|
---|
1626 | accessible through <link to="#getHardDisk2()"/> and
|
---|
1627 | <link to="#findHardDisk2()"/> methods. Remembered root (base) hard disks
|
---|
1628 | are also returned as part of the <link to="#hardDisks2"/> array and can
|
---|
1629 | be attached to virtual machines. See IHardDisk2 for more details.
|
---|
1630 |
|
---|
1631 | If a differencing hard disk is to be opened by this method, the
|
---|
1632 | operation will succeed only if its parent hard disk and all ancestors,
|
---|
1633 | if any, are already known to this VirtualBox installation (for example,
|
---|
1634 | were opened by this method before).
|
---|
1635 |
|
---|
1636 | This method tries to guess the storage format of the specified hard disk
|
---|
1637 | by reading hard disk data at the specified location.
|
---|
1638 |
|
---|
1639 | Note that the format of the location string is storage format specific.
|
---|
1640 | See <link to="IMedium::location"/>, IHardDisk2 and
|
---|
1641 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1642 | </desc>
|
---|
1643 | <param name="location" type="wstring" dir="in">
|
---|
1644 | <desc>
|
---|
1645 | Location of the storage unit that contains hard disk data in one of
|
---|
1646 | the supported storage formats.
|
---|
1647 | </desc>
|
---|
1648 | </param>
|
---|
1649 | <param name="hardDisk" type="IHardDisk2" dir="return">
|
---|
1650 | <desc>Opened hard disk object.</desc>
|
---|
1651 | </param>
|
---|
1652 | </method>
|
---|
1653 |
|
---|
1654 | <method name="getHardDisk2" const="yes">
|
---|
1655 | <desc>
|
---|
1656 | Returns a hard disk with the given UUID.
|
---|
1657 |
|
---|
1658 | The hard disk with the given UUID must be known to this VirtualBox
|
---|
1659 | installation, i.e. it must be previously created by
|
---|
1660 | <link to="#createHardDisk2()"/> or opened by <link
|
---|
1661 | to="#openHardDisk2()"/>, or attached to some known virtual machine.
|
---|
1662 | </desc>
|
---|
1663 | <param name="id" type="uuid" dir="in">
|
---|
1664 | <desc>UUID of the hard disk to look for.</desc>
|
---|
1665 | </param>
|
---|
1666 | <param name="hardDisk" type="IHardDisk2" dir="return">
|
---|
1667 | <desc>Found hard disk object.</desc>
|
---|
1668 | </param>
|
---|
1669 | </method>
|
---|
1670 |
|
---|
1671 | <method name="findHardDisk2">
|
---|
1672 | <desc>
|
---|
1673 | Returns a hard disk that uses the given location to store hard
|
---|
1674 | disk data.
|
---|
1675 |
|
---|
1676 | The given hard disk must be known to this VirtualBox installation, i.e.
|
---|
1677 | it must be previously created by
|
---|
1678 | <link to="#createHardDisk2()"/> or opened by <link
|
---|
1679 | to="#openHardDisk2()"/>, or attached to some known virtual machine.
|
---|
1680 |
|
---|
1681 | The search is done by comparing the value of the @a location argument to
|
---|
1682 | the <link to="IHardDisk2::location"/> attribute of each known hard
|
---|
1683 | disk.
|
---|
1684 |
|
---|
1685 | For locations represented by file names in the host's file system, the
|
---|
1686 | requested location can be a path relative to the
|
---|
1687 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
1688 | only a file name without any path is given, the
|
---|
1689 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
1690 | folder</link> will be prepended to the file name before searching. Note
|
---|
1691 | that on case sensitive file systems, a case sensitive comparison is
|
---|
1692 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
1693 | </desc>
|
---|
1694 | <param name="location" type="wstring" dir="in">
|
---|
1695 | <desc>Location string to search for.</desc>
|
---|
1696 | </param>
|
---|
1697 | <param name="hardDisk" type="IHardDisk2" dir="return">
|
---|
1698 | <desc>Found hard disk object.</desc>
|
---|
1699 | </param>
|
---|
1700 | </method>
|
---|
1701 |
|
---|
1702 | <method name="openDVDImage">
|
---|
1703 | <desc>
|
---|
1704 | Opens a CD/DVD image contained in the specified file of the supported
|
---|
1705 | format and assigns it the given UUID.
|
---|
1706 |
|
---|
1707 | After the image is successfully opened by this method, it gets
|
---|
1708 | remembered by (known to) this VirtualBox installation and will be
|
---|
1709 | accessible through <link to="#getDVDImage()"/> and
|
---|
1710 | <link to="#findDVDImage()"/> methods. Remembered images are also
|
---|
1711 | returned as part of the <link to="#DVDImages"/> array and can be mounted
|
---|
1712 | to virtual machines. See IMedium for more details.
|
---|
1713 |
|
---|
1714 | See <link to="IMedium::location"/> to get more details about the format
|
---|
1715 | of the location string.
|
---|
1716 |
|
---|
1717 | <note>
|
---|
1718 | Currently, only ISO CD/DVD images are supported by VirtualBox.
|
---|
1719 | </note>
|
---|
1720 | </desc>
|
---|
1721 | <param name="location" type="wstring" dir="in">
|
---|
1722 | <desc>
|
---|
1723 | Full path to the file that contains a valid CD/DVD image.
|
---|
1724 | </desc>
|
---|
1725 | </param>
|
---|
1726 | <param name="id" type="uuid" dir="in">
|
---|
1727 | <desc>
|
---|
1728 | UUID to assign to the given image within this VirtualBox installation.
|
---|
1729 | If an empty (null) UUID is specified, the system will randomly
|
---|
1730 | generate a new UUID.
|
---|
1731 | </desc>
|
---|
1732 | </param>
|
---|
1733 | <param name="image" type="IDVDImage2" dir="return">
|
---|
1734 | <desc>Opened CD/DVD image object.</desc>
|
---|
1735 | </param>
|
---|
1736 | </method>
|
---|
1737 |
|
---|
1738 | <method name="getDVDImage">
|
---|
1739 | <desc>
|
---|
1740 | Returns a CD/DVD image with the given UUID.
|
---|
1741 |
|
---|
1742 | The image with the given UUID must be known to this VirtualBox
|
---|
1743 | installation, i.e. it must be previously opened by <link
|
---|
1744 | to="#openDVDImage()"/>, or mounted to some known virtual machine.
|
---|
1745 | </desc>
|
---|
1746 | <param name="id" type="uuid" dir="in">
|
---|
1747 | <desc>UUID of the image to look for.</desc>
|
---|
1748 | </param>
|
---|
1749 | <param name="image" type="IDVDImage2" dir="return">
|
---|
1750 | <desc>Found CD/DVD image object.</desc>
|
---|
1751 | </param>
|
---|
1752 | </method>
|
---|
1753 |
|
---|
1754 | <method name="findDVDImage">
|
---|
1755 | <desc>
|
---|
1756 | Returns a CD/DVD image with the given image location.
|
---|
1757 |
|
---|
1758 | The image with the given UUID must be known to this VirtualBox
|
---|
1759 | installation, i.e. it must be previously opened by <link
|
---|
1760 | to="#openDVDImage()"/>, or mounted to some known virtual machine.
|
---|
1761 |
|
---|
1762 | The search is done by comparing the value of the @a location argument to
|
---|
1763 | the <link to="IMedium::location"/> attribute of each known CD/DVD image.
|
---|
1764 |
|
---|
1765 | The requested location can be a path relative to the
|
---|
1766 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
1767 | only a file name without any path is given, the
|
---|
1768 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
1769 | folder</link> will be prepended to the file name before searching. Note
|
---|
1770 | that on case sensitive file systems, a case sensitive comparison is
|
---|
1771 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
1772 | </desc>
|
---|
1773 | <param name="location" type="wstring" dir="in">
|
---|
1774 | <desc>CD/DVD image file path to look for.</desc>
|
---|
1775 | </param>
|
---|
1776 | <param name="image" type="IDVDImage2" dir="return">
|
---|
1777 | <desc>Found CD/DVD image object.</desc>
|
---|
1778 | </param>
|
---|
1779 | </method>
|
---|
1780 |
|
---|
1781 | <method name="openFloppyImage">
|
---|
1782 | <desc>
|
---|
1783 | Opens a floppy image contained in the specified file of the supported
|
---|
1784 | format and assigns it the given UUID.
|
---|
1785 |
|
---|
1786 | After the image is successfully opened by this method, it gets
|
---|
1787 | remembered by (known to) this VirtualBox installation and will be
|
---|
1788 | accessible through <link to="#getFloppyImage()"/> and
|
---|
1789 | <link to="#findFloppyImage()"/> methods. Remembered images are also
|
---|
1790 | returned as part of the <link to="#floppyImages"/> array and can be
|
---|
1791 | mounted to virtual machines. See IMedium for more details.
|
---|
1792 |
|
---|
1793 | See <link to="IMedium::location"/> to get more details about the format
|
---|
1794 | of the location string.
|
---|
1795 |
|
---|
1796 | <note>
|
---|
1797 | Currently, only raw floppy images are supported by VirtualBox.
|
---|
1798 | </note>
|
---|
1799 | </desc>
|
---|
1800 | <param name="location" type="wstring" dir="in">
|
---|
1801 | <desc>
|
---|
1802 | Full path to the file that contains a valid floppy image.
|
---|
1803 | </desc>
|
---|
1804 | </param>
|
---|
1805 | <param name="id" type="uuid" dir="in">
|
---|
1806 | <desc>
|
---|
1807 | UUID to assign to the given image file within this VirtualBox
|
---|
1808 | installation. If an empty (null) UUID is specified, the system will
|
---|
1809 | randomly generate a new UUID.
|
---|
1810 | </desc>
|
---|
1811 | </param>
|
---|
1812 | <param name="image" type="IFloppyImage2" dir="return">
|
---|
1813 | <desc>Opened floppy image object.</desc>
|
---|
1814 | </param>
|
---|
1815 | </method>
|
---|
1816 |
|
---|
1817 | <method name="getFloppyImage">
|
---|
1818 | <desc>
|
---|
1819 | Returns a floppy image with the given UUID.
|
---|
1820 |
|
---|
1821 | The image with the given UUID must be known to this VirtualBox
|
---|
1822 | installation, i.e. it must be previously opened by <link
|
---|
1823 | to="#openFloppyImage()"/>, or mounted to some known virtual machine.
|
---|
1824 | </desc>
|
---|
1825 | <param name="id" type="uuid" dir="in">
|
---|
1826 | <desc>UUID of the image to look for.</desc>
|
---|
1827 | </param>
|
---|
1828 | <param name="image" type="IFloppyImage2" dir="return">
|
---|
1829 | <desc>Found floppy image object.</desc>
|
---|
1830 | </param>
|
---|
1831 | </method>
|
---|
1832 |
|
---|
1833 | <method name="findFloppyImage">
|
---|
1834 | <desc>
|
---|
1835 | Returns a floppy image with the given image location.
|
---|
1836 |
|
---|
1837 | The image with the given UUID must be known to this VirtualBox
|
---|
1838 | installation, i.e. it must be previously opened by <link
|
---|
1839 | to="#openFloppyImage()"/>, or mounted to some known virtual machine.
|
---|
1840 |
|
---|
1841 | The search is done by comparing the value of the @a location argument to
|
---|
1842 | the <link to="IMedium::location"/> attribute of each known floppy image.
|
---|
1843 |
|
---|
1844 | The requested location can be a path relative to the
|
---|
1845 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
1846 | only a file name without any path is given, the
|
---|
1847 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
1848 | folder</link> will be prepended to the file name before searching. Note
|
---|
1849 | that on case sensitive file systems, a case sensitive comparison is
|
---|
1850 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
1851 | </desc>
|
---|
1852 | <param name="location" type="wstring" dir="in">
|
---|
1853 | <desc>Floppy image file path to look for.</desc>
|
---|
1854 | </param>
|
---|
1855 | <param name="image" type="IFloppyImage2" dir="return">
|
---|
1856 | <desc>Found floppy image object.</desc>
|
---|
1857 | </param>
|
---|
1858 | </method>
|
---|
1859 |
|
---|
1860 | <method name="getGuestOSType">
|
---|
1861 | <desc>
|
---|
1862 | Returns an object describing the specified guest OS type.
|
---|
1863 |
|
---|
1864 | The requested guest OS type is specified using a string which is a
|
---|
1865 | mnemonic identifier of the guest operating system, such as
|
---|
1866 | <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
|
---|
1867 | particular virtual machine can be read or set using the
|
---|
1868 | <link to="IMachine::OSTypeId"/> attribute.
|
---|
1869 |
|
---|
1870 | The <link to="IVirtualBox::guestOSTypes"/> collection contains all
|
---|
1871 | available guest OS type objects. Each object has an
|
---|
1872 | <link to="IGuestOSType::id"/> attribute which contains an identifier of
|
---|
1873 | the guest OS this object describes.
|
---|
1874 | </desc>
|
---|
1875 | <param name="id" type="wstring" dir="in">
|
---|
1876 | <desc>Guest OS type ID string.</desc>
|
---|
1877 | </param>
|
---|
1878 | <param name="type" type="IGuestOSType" dir="return">
|
---|
1879 | <desc>Guest OS type object.</desc>
|
---|
1880 | </param>
|
---|
1881 | </method>
|
---|
1882 |
|
---|
1883 | <method name="createSharedFolder">
|
---|
1884 | <desc>
|
---|
1885 | Creates a new global shared folder by associating the given logical
|
---|
1886 | name with the given host path, adds it to the collection of shared
|
---|
1887 | folders and starts sharing it. Refer to the description of
|
---|
1888 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
1889 | </desc>
|
---|
1890 | <param name="name" type="wstring" dir="in">
|
---|
1891 | <desc>Unique logical name of the shared folder.</desc>
|
---|
1892 | </param>
|
---|
1893 | <param name="hostPath" type="wstring" dir="in">
|
---|
1894 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
1895 | </param>
|
---|
1896 | <param name="writable" type="boolean" dir="in">
|
---|
1897 | <desc>Whether the share is writable or readonly</desc>
|
---|
1898 | </param>
|
---|
1899 | </method>
|
---|
1900 |
|
---|
1901 | <method name="removeSharedFolder">
|
---|
1902 | <desc>
|
---|
1903 | Removes the global shared folder with the given name previously
|
---|
1904 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
1905 | shared folders and stops sharing it.
|
---|
1906 | </desc>
|
---|
1907 | <param name="name" type="wstring" dir="in">
|
---|
1908 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
1909 | </param>
|
---|
1910 | </method>
|
---|
1911 |
|
---|
1912 | <method name="getNextExtraDataKey">
|
---|
1913 | <desc>
|
---|
1914 | Returns the global extra data key name following the supplied key.
|
---|
1915 |
|
---|
1916 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
1917 | returned in @a nextKey if the supplied key is the last key. When
|
---|
1918 | supplying @c NULL for the @a key, the first key item is returned in @a
|
---|
1919 | nextKey (if there is any). @a nextValue is an optional parameter and
|
---|
1920 | if supplied, the next key's value is returned in it.
|
---|
1921 | </desc>
|
---|
1922 | <param name="key" type="wstring" dir="in">
|
---|
1923 | <desc>Name of the data key to follow.</desc>
|
---|
1924 | </param>
|
---|
1925 | <param name="nextKey" type="wstring" dir="out">
|
---|
1926 | <desc>Name of the next data key.</desc>
|
---|
1927 | </param>
|
---|
1928 | <param name="nextValue" type="wstring" dir="out">
|
---|
1929 | <desc>Value of the next data key.</desc>
|
---|
1930 | </param>
|
---|
1931 | </method>
|
---|
1932 |
|
---|
1933 | <method name="getExtraData">
|
---|
1934 | <desc>
|
---|
1935 | Returns associated global extra data.
|
---|
1936 |
|
---|
1937 | If the requested data @a key does not exist, this function will
|
---|
1938 | succeed and return @c NULL in the @a value argument.
|
---|
1939 | </desc>
|
---|
1940 | <param name="key" type="wstring" dir="in">
|
---|
1941 | <desc>Name of the data key to get.</desc>
|
---|
1942 | </param>
|
---|
1943 | <param name="value" type="wstring" dir="return">
|
---|
1944 | <desc>Value of the requested data key.</desc>
|
---|
1945 | </param>
|
---|
1946 | </method>
|
---|
1947 |
|
---|
1948 | <method name="setExtraData">
|
---|
1949 | <desc>
|
---|
1950 | Sets associated global extra data.
|
---|
1951 |
|
---|
1952 | If you pass @c NULL as a key @a value, the given @a key will be
|
---|
1953 | deleted.
|
---|
1954 |
|
---|
1955 | <note>
|
---|
1956 | Before performing the actual data change, this method will ask all
|
---|
1957 | registered callbacks using the
|
---|
1958 | <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
|
---|
1959 | notification for a permission. If one of the callbacks refuses the
|
---|
1960 | new value, the change will not be performed.
|
---|
1961 | </note>
|
---|
1962 | <note>
|
---|
1963 | On success, the
|
---|
1964 | <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
|
---|
1965 | is called to inform all registered callbacks about a successful data
|
---|
1966 | change.
|
---|
1967 | </note>
|
---|
1968 | </desc>
|
---|
1969 | <param name="key" type="wstring" dir="in">
|
---|
1970 | <desc>Name of the data key to set.</desc>
|
---|
1971 | </param>
|
---|
1972 | <param name="value" type="wstring" dir="in">
|
---|
1973 | <desc>Value to assign to the key.</desc>
|
---|
1974 | </param>
|
---|
1975 | </method>
|
---|
1976 |
|
---|
1977 | <method name="openSession">
|
---|
1978 | <desc>
|
---|
1979 | Opens a new direct session with the given virtual machine.
|
---|
1980 |
|
---|
1981 | A direct session acts as a local lock on the given VM.
|
---|
1982 | There can be only one direct session open at a time for every
|
---|
1983 | virtual machine, protecting the VM from being manipulated by
|
---|
1984 | conflicting actions from different processes. Only after a
|
---|
1985 | direct session has been opened, one can change all VM settings
|
---|
1986 | and execute the VM in the process space of the session object.
|
---|
1987 |
|
---|
1988 | Sessions therefore can be compared to mutex semaphores that
|
---|
1989 | lock a given VM for modification and execution.
|
---|
1990 | See <link to="ISession">ISession</link> for details.
|
---|
1991 |
|
---|
1992 | <note>Unless you are writing a new VM frontend, you will not
|
---|
1993 | want to execute a VM in the current process. To spawn a new
|
---|
1994 | process that executes a VM, use
|
---|
1995 | <link to="IVirtualBox::openRemoteSession" />
|
---|
1996 | instead.</note>
|
---|
1997 |
|
---|
1998 | Upon successful return, the session object can be used to
|
---|
1999 | get access to the machine and to the VM console.
|
---|
2000 |
|
---|
2001 | In VirtualBox terminology, the machine becomes "mutable" after
|
---|
2002 | a session has been opened. Note that the "mutable" machine
|
---|
2003 | object, on which you may invoke IMachine methods to change its
|
---|
2004 | settings, will be a different object from the immutable IMachine
|
---|
2005 | objects returned by various IVirtualBox methods. To obtain a
|
---|
2006 | mutable IMachine object (upon which you can invoke settings methods),
|
---|
2007 | use the <link to="ISession::machine" /> attribute.
|
---|
2008 |
|
---|
2009 | One must always call <link to="ISession::close" /> to release the
|
---|
2010 | lock on the machine, or the machine's state will eventually be
|
---|
2011 | set to "Aborted".
|
---|
2012 |
|
---|
2013 | In other words, to change settings on a machine, the following
|
---|
2014 | sequence is typically performed:
|
---|
2015 |
|
---|
2016 | <ol>
|
---|
2017 | <li>Call this method (openSession) to have a machine locked for
|
---|
2018 | the current session.</li>
|
---|
2019 |
|
---|
2020 | <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
|
---|
2021 |
|
---|
2022 | <li>Change the settings of the machine.</li>
|
---|
2023 |
|
---|
2024 | <li>Call <link to="IMachine::saveSettings" />.</li>
|
---|
2025 |
|
---|
2026 | <li>Close the session by calling <link to="ISession::close()"/>.</li>
|
---|
2027 | </ol>
|
---|
2028 | </desc>
|
---|
2029 | <param name="session" type="ISession" dir="in">
|
---|
2030 | <desc>
|
---|
2031 | Session object that will represent the opened session after
|
---|
2032 | successful method invocation. This object must not represent
|
---|
2033 | the already open session.
|
---|
2034 | <note>
|
---|
2035 | This session will be automatically closed if the
|
---|
2036 | VirtualBox server is terminated for some reason.
|
---|
2037 | </note>
|
---|
2038 | </desc>
|
---|
2039 | </param>
|
---|
2040 | <param name="machineId" type="uuid" dir="in">
|
---|
2041 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2042 | </param>
|
---|
2043 | </method>
|
---|
2044 |
|
---|
2045 | <method name="openRemoteSession">
|
---|
2046 | <desc>
|
---|
2047 | Spawns a new process that executes a virtual machine (called a
|
---|
2048 | "remote session").
|
---|
2049 |
|
---|
2050 | Opening a remote session causes the VirtualBox server to start a new
|
---|
2051 | process that opens a direct session with the given VM. As a result, the
|
---|
2052 | VM is locked by that direct session in the new process, preventing
|
---|
2053 | conflicting changes from other processes. Since sessions act as locks
|
---|
2054 | that such prevent conflicting changes, one cannot open a remote session
|
---|
2055 | for a VM that already has another open session (direct or remote), or
|
---|
2056 | is currently in the process of opening one (see <link to="IMachine::sessionState"/>).
|
---|
2057 |
|
---|
2058 | While the remote session still provides some level of control over the
|
---|
2059 | VM execution to the caller (using the <link to="IConsole" /> interface),
|
---|
2060 | not all VM settings are available for modification within the remote
|
---|
2061 | session context.
|
---|
2062 |
|
---|
2063 | This operation can take some time (a new VM is started in a new process,
|
---|
2064 | for which memory and other resources need to be set up). Because of this,
|
---|
2065 | an <link to="IProgress" /> is returned to allow the caller to wait for this
|
---|
2066 | asynchronous operation to be completed. Until then, the remote session
|
---|
2067 | object remains in the closed state, and accessing the machine or its
|
---|
2068 | console through it is invalid. It is recommended to use
|
---|
2069 | <link to="IProgress::waitForCompletion" /> or similar calls to wait for
|
---|
2070 | completion.
|
---|
2071 |
|
---|
2072 | As with all <link to="ISession" /> objects, it is recommended to call
|
---|
2073 | <link to="ISession::close" /> on the local session object once openRemoteSession()
|
---|
2074 | has been called. However, the session's state (see <link to="ISession::state" />)
|
---|
2075 | will not return to "Closed" until the remote session has also closed (i.e.
|
---|
2076 | until the VM is no longer running). In that case, however, the state of
|
---|
2077 | the session will automatically change back to "Closed".
|
---|
2078 |
|
---|
2079 | Currently supported session types (values of the @a type
|
---|
2080 | argument) are:
|
---|
2081 | <ul>
|
---|
2082 | <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
|
---|
2083 | <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
|
---|
2084 | </ul>
|
---|
2085 |
|
---|
2086 | The @a environment argument is a string containing definitions of
|
---|
2087 | environment variables in the following format:
|
---|
2088 | @code
|
---|
2089 | NAME[=VALUE]\n
|
---|
2090 | NAME[=VALUE]\n
|
---|
2091 | ...
|
---|
2092 | @endcode
|
---|
2093 | where <tt>\\n</tt> is the new line character. These environment
|
---|
2094 | variables will be appended to the environment of the VirtualBox server
|
---|
2095 | process. If an environment variable exists both in the server process
|
---|
2096 | and in this list, the value from this list takes precedence over the
|
---|
2097 | server's variable. If the value of the environment variable is
|
---|
2098 | omitted, this variable will be removed from the resulting environment.
|
---|
2099 | If the environment string is @c null, the server environment is
|
---|
2100 | inherited by the started process as is.
|
---|
2101 |
|
---|
2102 | <see>openExistingSession</see>
|
---|
2103 | </desc>
|
---|
2104 | <param name="session" type="ISession" dir="in">
|
---|
2105 | <desc>
|
---|
2106 | Session object that will represent the opened remote session
|
---|
2107 | after successful method invocation (this object must not
|
---|
2108 | represent an already open session).
|
---|
2109 | </desc>
|
---|
2110 | </param>
|
---|
2111 | <param name="machineId" type="uuid" dir="in">
|
---|
2112 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2113 | </param>
|
---|
2114 | <param name="type" type="wstring" dir="in">
|
---|
2115 | <desc>
|
---|
2116 | Type of the remote session (case sensitive).
|
---|
2117 | </desc>
|
---|
2118 | </param>
|
---|
2119 | <param name="environment" type="wstring" dir="in">
|
---|
2120 | <desc>
|
---|
2121 | Environment to pass to the opened session (may be @c null).
|
---|
2122 | </desc>
|
---|
2123 | </param>
|
---|
2124 | <param name="progress" type="IProgress" dir="return">
|
---|
2125 | <desc>Progress object to track the operation completion.</desc>
|
---|
2126 | </param>
|
---|
2127 | </method>
|
---|
2128 |
|
---|
2129 | <method name="openExistingSession">
|
---|
2130 | <desc>
|
---|
2131 | Opens a new remote session with the virtual machine for
|
---|
2132 | which a direct session is already open.
|
---|
2133 |
|
---|
2134 | The remote session provides some level of control over the VM
|
---|
2135 | execution (using the IConsole interface) to the caller; however,
|
---|
2136 | within the remote session context, not all VM settings are available
|
---|
2137 | for modification.
|
---|
2138 |
|
---|
2139 | As opposed to <link to="#openRemoteSession()"/>, the number of
|
---|
2140 | remote sessions opened this way is not limited by the API
|
---|
2141 |
|
---|
2142 | <note>
|
---|
2143 | It is an error to open a remote session with the machine that
|
---|
2144 | doesn't have an open direct session.
|
---|
2145 | </note>
|
---|
2146 |
|
---|
2147 | <see>openRemoteSession</see>
|
---|
2148 | </desc>
|
---|
2149 | <param name="session" type="ISession" dir="in">
|
---|
2150 | <desc>
|
---|
2151 | Session object that will represent the open remote session
|
---|
2152 | after successful method invocation. This object must not
|
---|
2153 | represent an already open session.
|
---|
2154 | <note>
|
---|
2155 | This session will be automatically closed when the peer
|
---|
2156 | (direct) session dies or gets closed.
|
---|
2157 | </note>
|
---|
2158 | </desc>
|
---|
2159 | </param>
|
---|
2160 | <param name="machineId" type="uuid" dir="in">
|
---|
2161 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2162 | </param>
|
---|
2163 | </method>
|
---|
2164 |
|
---|
2165 | <method name="registerCallback">
|
---|
2166 | <desc>
|
---|
2167 | Registers a new global VirtualBox callback. The methods of the given
|
---|
2168 | callback object will be called by VirtualBox when an appropriate
|
---|
2169 | event occurs.
|
---|
2170 | </desc>
|
---|
2171 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2172 | <desc>Callback object to register.</desc>
|
---|
2173 | </param>
|
---|
2174 | </method>
|
---|
2175 |
|
---|
2176 | <method name="unregisterCallback">
|
---|
2177 | <desc>
|
---|
2178 | Unregisters the previously registered global VirtualBox callback.
|
---|
2179 | </desc>
|
---|
2180 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2181 | <desc>Callback object to unregister.</desc>
|
---|
2182 | </param>
|
---|
2183 | </method>
|
---|
2184 |
|
---|
2185 | <method name="waitForPropertyChange">
|
---|
2186 | <desc>
|
---|
2187 | Blocks the caller until any of the properties represented by the @a
|
---|
2188 | what argument changes the value or until the given timeout interval
|
---|
2189 | expires.
|
---|
2190 |
|
---|
2191 | The @a what argument is a comma separated list of property masks that
|
---|
2192 | describe properties the caller is interested in. The property mask is
|
---|
2193 | a string in the following format:
|
---|
2194 |
|
---|
2195 | <pre>
|
---|
2196 | [[group.]subgroup.]name
|
---|
2197 | </pre>
|
---|
2198 |
|
---|
2199 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
2200 | or more property group specifiers. Each element (group or name) in
|
---|
2201 | the property mask may be either a Latin string or an asterisk symbol
|
---|
2202 | (@c "*") which is used to match any string for the given element. A
|
---|
2203 | property mask that doesn't contain asterisk symbols represents a
|
---|
2204 | single fully qualified property name.
|
---|
2205 |
|
---|
2206 | Groups in the fully qualified property name go from more generic (the
|
---|
2207 | left-most part) to more specific (the right-most part). The first
|
---|
2208 | element is usually a name of the object the property belongs to. The
|
---|
2209 | second element may be either a property name, or a child object name,
|
---|
2210 | or an index if the preceding element names an object which is one of
|
---|
2211 | many objects of the same type. This way, property names form a
|
---|
2212 | hierarchy of properties. Here are some examples of property names:
|
---|
2213 |
|
---|
2214 | <table>
|
---|
2215 | <tr>
|
---|
2216 | <td><tt>VirtualBox.version</tt></td>
|
---|
2217 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
2218 | </tr>
|
---|
2219 | <tr>
|
---|
2220 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
2221 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
2222 | given UUID</td>
|
---|
2223 | </tr>
|
---|
2224 | </table>
|
---|
2225 |
|
---|
2226 | Most property names directly correspond to the properties of objects
|
---|
2227 | (components) provided by the VirtualBox library and may be used to
|
---|
2228 | track changes to these properties. However, there may be
|
---|
2229 | pseudo-property names that don't correspond to any existing object's
|
---|
2230 | property directly, as well as there may be object properties that
|
---|
2231 | don't have a corresponding property name that is understood by this
|
---|
2232 | method, and therefore changes to such properties cannot be
|
---|
2233 | tracked. See individual object's property descriptions to get a
|
---|
2234 | fully qualified property name that can be used with this method (if
|
---|
2235 | any).
|
---|
2236 |
|
---|
2237 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
2238 | single asterisk symbol) that can be used to match all properties.
|
---|
2239 | Below are more examples of property masks:
|
---|
2240 |
|
---|
2241 | <table>
|
---|
2242 | <tr>
|
---|
2243 | <td><tt>VirtualBox.*</tt></td>
|
---|
2244 | <td>Track all properties of the VirtualBox object</td>
|
---|
2245 | </tr>
|
---|
2246 | <tr>
|
---|
2247 | <td><tt>Machine.*.name</tt></td>
|
---|
2248 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
2249 | all registered virtual machines</td>
|
---|
2250 | </tr>
|
---|
2251 | </table>
|
---|
2252 |
|
---|
2253 | </desc>
|
---|
2254 | <param name="what" type="wstring" dir="in">
|
---|
2255 | <desc>Comma separated list of property masks.</desc>
|
---|
2256 | </param>
|
---|
2257 | <param name="timeout" type="unsigned long" dir="in">
|
---|
2258 | <desc>
|
---|
2259 | Wait timeout in milliseconds.
|
---|
2260 | Specify -1 for an indefinite wait.
|
---|
2261 | </desc>
|
---|
2262 | </param>
|
---|
2263 | <param name="changed" type="wstring" dir="out">
|
---|
2264 | <desc>
|
---|
2265 | Comma separated list of properties that have been changed and caused
|
---|
2266 | this method to return to the caller.
|
---|
2267 | </desc>
|
---|
2268 | </param>
|
---|
2269 | <param name="values" type="wstring" dir="out">
|
---|
2270 | <desc>Reserved, not currently used.</desc>
|
---|
2271 | </param>
|
---|
2272 | </method>
|
---|
2273 |
|
---|
2274 | <method name="saveSettings">
|
---|
2275 | <desc>
|
---|
2276 | Saves the global settings to the global settings file
|
---|
2277 | (<link to="#settingsFilePath"/>).
|
---|
2278 |
|
---|
2279 | This method is only useful for explicitly saving the global settings
|
---|
2280 | file after it has been auto-converted from the old format to the most
|
---|
2281 | recent format (see <link to="#settingsFileVersion"/> for details).
|
---|
2282 | Normally, the global settings file is implicitly saved when a global
|
---|
2283 | setting is changed.
|
---|
2284 | </desc>
|
---|
2285 | </method>
|
---|
2286 |
|
---|
2287 | <method name="saveSettingsWithBackup">
|
---|
2288 | <desc>
|
---|
2289 | Creates a backup copy of the global settings file
|
---|
2290 | (<link to="#settingsFilePath"/>) in case of auto-conversion, and then
|
---|
2291 | calls <link to="#saveSettings()"/>.
|
---|
2292 |
|
---|
2293 | Note that the backup copy is created <b>only</b> if the settings file
|
---|
2294 | auto-conversion took place (see <link to="#settingsFileVersion"/> for
|
---|
2295 | details). Otherwise, this call is fully equivalent to
|
---|
2296 | <link to="#saveSettings()"/> and no backup copying is done.
|
---|
2297 |
|
---|
2298 | The backup copy is created in the same directory where the original
|
---|
2299 | settings file is located. It is given the following file name:
|
---|
2300 | <pre>
|
---|
2301 | original.xml.x.y-platform.bak
|
---|
2302 | </pre>
|
---|
2303 | where <tt>original.xml</tt> is the original settings file name
|
---|
2304 | (excluding path), and <tt>x.y-platform</tt> is the version of the old
|
---|
2305 | format of the settings file (before auto-conversion).
|
---|
2306 |
|
---|
2307 | If the given backup file already exists, this method will try to add the
|
---|
2308 | <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
|
---|
2309 | 0 to 9) and copy it again until it succeeds. If all suffixes are
|
---|
2310 | occupied, or if any other copy error occurs, this method will return a
|
---|
2311 | failure.
|
---|
2312 |
|
---|
2313 | If the copy operation succeeds, the @a bakFileName return argument will
|
---|
2314 | receive a full path to the created backup file (for informational
|
---|
2315 | purposes). Note that this will happen even if the subsequent
|
---|
2316 | <link to="#saveSettings()"/> call performed by this method after the
|
---|
2317 | copy operation, fails.
|
---|
2318 |
|
---|
2319 | <note>
|
---|
2320 | The VirtualBox API never calls this method. It is intended purely for
|
---|
2321 | the purposes of creating backup copies of the settings files by
|
---|
2322 | front-ends before saving the results of the automatically performed
|
---|
2323 | settings conversion to disk.
|
---|
2324 | </note>
|
---|
2325 |
|
---|
2326 | <see>settingsFileVersion</see>
|
---|
2327 | </desc>
|
---|
2328 | <param name="bakFileName" type="wstring" dir="return">
|
---|
2329 | <desc>Full path to the created backup copy.</desc>
|
---|
2330 | </param>
|
---|
2331 | </method>
|
---|
2332 |
|
---|
2333 | </interface>
|
---|
2334 |
|
---|
2335 | <!--
|
---|
2336 | // IMachine
|
---|
2337 | /////////////////////////////////////////////////////////////////////////
|
---|
2338 | -->
|
---|
2339 |
|
---|
2340 | <enumerator
|
---|
2341 | name="IMachineEnumerator" type="IMachine"
|
---|
2342 | uuid="1b554149-be0a-4465-9252-9ff8f420af55"
|
---|
2343 | />
|
---|
2344 |
|
---|
2345 | <collection
|
---|
2346 | name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
|
---|
2347 | uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
|
---|
2348 | readonly="yes"
|
---|
2349 | />
|
---|
2350 |
|
---|
2351 | <interface
|
---|
2352 | name="IInternalMachineControl" extends="$unknown"
|
---|
2353 | uuid="4042ddf2-93d3-4749-8517-dde3f17ea630"
|
---|
2354 | internal="yes"
|
---|
2355 | wsmap="suppress"
|
---|
2356 | >
|
---|
2357 | <method name="updateState">
|
---|
2358 | <desc>
|
---|
2359 | Updates the VM state.
|
---|
2360 | <note>
|
---|
2361 | This operation will also update the settings file with
|
---|
2362 | the correct information about the saved state file
|
---|
2363 | and delete this file from disk when appropriate.
|
---|
2364 | </note>
|
---|
2365 | </desc>
|
---|
2366 | <param name="state" type="MachineState" dir="in"/>
|
---|
2367 | </method>
|
---|
2368 |
|
---|
2369 | <method name="getIPCId">
|
---|
2370 | <param name="id" type="wstring" dir="return"/>
|
---|
2371 | </method>
|
---|
2372 |
|
---|
2373 | <method name="runUSBDeviceFilters">
|
---|
2374 | <desc>
|
---|
2375 | Asks the server to run USB devices filters of the associated
|
---|
2376 | machine against the given USB device and tell if there is
|
---|
2377 | a match.
|
---|
2378 | <note>
|
---|
2379 | Intended to be used only for remote USB devices. Local
|
---|
2380 | ones don't require to call this method (this is done
|
---|
2381 | implicitly by the Host and USBProxyService).
|
---|
2382 | </note>
|
---|
2383 | </desc>
|
---|
2384 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
2385 | <param name="matched" type="boolean" dir="out"/>
|
---|
2386 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
2387 | </method>
|
---|
2388 |
|
---|
2389 | <method name="captureUSBDevice">
|
---|
2390 | <desc>
|
---|
2391 | Requests a capture of the given host USB device.
|
---|
2392 | When the request is completed, the VM process will
|
---|
2393 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
2394 | notification.
|
---|
2395 | </desc>
|
---|
2396 | <param name="id" type="uuid" dir="in"/>
|
---|
2397 | </method>
|
---|
2398 |
|
---|
2399 | <method name="detachUSBDevice">
|
---|
2400 | <desc>
|
---|
2401 | Notification that a VM is going to detach (done = false) or has
|
---|
2402 | already detached (done = true) the given USB device.
|
---|
2403 | When the done = true request is completed, the VM process will
|
---|
2404 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
2405 | notification.
|
---|
2406 | <note>
|
---|
2407 | In the done = true case, the server must run its own filters
|
---|
2408 | and filters of all VMs but this one on the detached device
|
---|
2409 | as if it were just attached to the host computer.
|
---|
2410 | </note>
|
---|
2411 | </desc>
|
---|
2412 | <param name="id" type="uuid" dir="in"/>
|
---|
2413 | <param name="done" type="boolean" dir="in"/>
|
---|
2414 | </method>
|
---|
2415 |
|
---|
2416 | <method name="autoCaptureUSBDevices">
|
---|
2417 | <desc>
|
---|
2418 | Requests a capture all matching USB devices attached to the host.
|
---|
2419 | When the request is completed, the VM process will
|
---|
2420 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
2421 | notification per every captured device.
|
---|
2422 | </desc>
|
---|
2423 | </method>
|
---|
2424 |
|
---|
2425 | <method name="detachAllUSBDevices">
|
---|
2426 | <desc>
|
---|
2427 | Notification that a VM that is being powered down. The done
|
---|
2428 | parameter indicates whether which stage of the power down
|
---|
2429 | we're at. When done = false the VM is announcing its
|
---|
2430 | intentions, while when done = true the VM is reporting
|
---|
2431 | what it has done.
|
---|
2432 | <note>
|
---|
2433 | In the done = true case, the server must run its own filters
|
---|
2434 | and filters of all VMs but this one on all detach devices as
|
---|
2435 | if they were just attached to the host computer.
|
---|
2436 | </note>
|
---|
2437 | </desc>
|
---|
2438 | <param name="done" type="boolean" dir="in"/>
|
---|
2439 | </method>
|
---|
2440 |
|
---|
2441 | <method name="onSessionEnd">
|
---|
2442 | <desc>
|
---|
2443 | Triggered by the given session object when the session is about
|
---|
2444 | to close normally.
|
---|
2445 | </desc>
|
---|
2446 | <param name="session" type="ISession" dir="in">
|
---|
2447 | <desc>Session that is being closed</desc>
|
---|
2448 | </param>
|
---|
2449 | <param name="progress" type="IProgress" dir="return">
|
---|
2450 | <desc>
|
---|
2451 | Used to wait until the corresponding machine is actually
|
---|
2452 | dissociated from the given session on the server.
|
---|
2453 | Returned only when this session is a direct one.
|
---|
2454 | </desc>
|
---|
2455 | </param>
|
---|
2456 | </method>
|
---|
2457 |
|
---|
2458 | <method name="beginSavingState">
|
---|
2459 | <desc>
|
---|
2460 | Called by the VM process to inform the server it wants to
|
---|
2461 | save the current state and stop the VM execution.
|
---|
2462 | </desc>
|
---|
2463 | <param name="progress" type="IProgress" dir="in">
|
---|
2464 | <desc>
|
---|
2465 | Progress object created by the VM process to wait until
|
---|
2466 | the state is saved.
|
---|
2467 | </desc>
|
---|
2468 | </param>
|
---|
2469 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
2470 | <desc>
|
---|
2471 | File path the VM process must save the execution state to.
|
---|
2472 | </desc>
|
---|
2473 | </param>
|
---|
2474 | </method>
|
---|
2475 |
|
---|
2476 | <method name="endSavingState">
|
---|
2477 | <desc>
|
---|
2478 | Called by the VM process to inform the server that saving
|
---|
2479 | the state previously requested by #beginSavingState is either
|
---|
2480 | successfully finished or there was a failure.
|
---|
2481 | </desc>
|
---|
2482 |
|
---|
2483 | <param name="success" type="boolean" dir="in">
|
---|
2484 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
2485 | </param>
|
---|
2486 | </method>
|
---|
2487 |
|
---|
2488 | <method name="adoptSavedState">
|
---|
2489 | <desc>
|
---|
2490 | Gets called by IConsole::adoptSavedState.
|
---|
2491 | </desc>
|
---|
2492 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
2493 | <desc>Path to the saved state file to adopt.</desc>
|
---|
2494 | </param>
|
---|
2495 | </method>
|
---|
2496 |
|
---|
2497 | <method name="beginTakingSnapshot">
|
---|
2498 | <desc>
|
---|
2499 | Called by the VM process to inform the server it wants to
|
---|
2500 | take a snapshot.
|
---|
2501 | </desc>
|
---|
2502 | <param name="initiator" type="IConsole" dir="in">
|
---|
2503 | <desc>The console object that initiated this call.</desc>
|
---|
2504 | </param>
|
---|
2505 | <param name="name" type="wstring" dir="in">
|
---|
2506 | <desc>Snapshot name</desc>
|
---|
2507 | </param>
|
---|
2508 | <param name="description" type="wstring" dir="in">
|
---|
2509 | <desc>Snapshot description</desc>
|
---|
2510 | </param>
|
---|
2511 | <param name="progress" type="IProgress" dir="in">
|
---|
2512 | <desc>
|
---|
2513 | Progress object created by the VM process to wait until
|
---|
2514 | the state is saved (only for online snapshots).
|
---|
2515 | </desc>
|
---|
2516 | </param>
|
---|
2517 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
2518 | <desc>
|
---|
2519 | File path the VM process must save the execution state to.
|
---|
2520 | </desc>
|
---|
2521 | </param>
|
---|
2522 | <param name="serverProgress" type="IProgress" dir="out">
|
---|
2523 | <desc>
|
---|
2524 | Progress object created by the server process to wait until
|
---|
2525 | the snapshot is taken (VDI diff creation, etc.).
|
---|
2526 | </desc>
|
---|
2527 | </param>
|
---|
2528 | </method>
|
---|
2529 |
|
---|
2530 | <method name="endTakingSnapshot">
|
---|
2531 | <desc>
|
---|
2532 | Called by the VM process to inform the server that the snapshot
|
---|
2533 | previously requested by #beginTakingSnapshot is either
|
---|
2534 | successfully taken or there was a failure.
|
---|
2535 | </desc>
|
---|
2536 |
|
---|
2537 | <param name="success" type="boolean" dir="in">
|
---|
2538 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
2539 | </param>
|
---|
2540 | </method>
|
---|
2541 |
|
---|
2542 | <method name="discardSnapshot">
|
---|
2543 | <desc>
|
---|
2544 | Gets called by IConsole::discardSnapshot.
|
---|
2545 | </desc>
|
---|
2546 | <param name="initiator" type="IConsole" dir="in">
|
---|
2547 | <desc>The console object that initiated this call.</desc>
|
---|
2548 | </param>
|
---|
2549 | <param name="id" type="uuid" dir="in">
|
---|
2550 | <desc>UUID of the snapshot to discard.</desc>
|
---|
2551 | </param>
|
---|
2552 | <param name="machineState" type="MachineState" dir="out">
|
---|
2553 | <desc>New machine state after this operation is started.</desc>
|
---|
2554 | </param>
|
---|
2555 | <param name="progress" type="IProgress" dir="return">
|
---|
2556 | <desc>Progress object to track the operation completion.</desc>
|
---|
2557 | </param>
|
---|
2558 | </method>
|
---|
2559 |
|
---|
2560 | <method name="discardCurrentState">
|
---|
2561 | <desc>
|
---|
2562 | Gets called by IConsole::discardCurrentState.
|
---|
2563 | </desc>
|
---|
2564 | <param name="initiator" type="IConsole" dir="in">
|
---|
2565 | <desc>The console object that initiated this call.</desc>
|
---|
2566 | </param>
|
---|
2567 | <param name="machineState" type="MachineState" dir="out">
|
---|
2568 | <desc>New machine state after this operation is started.</desc>
|
---|
2569 | </param>
|
---|
2570 | <param name="progress" type="IProgress" dir="return">
|
---|
2571 | <desc>Progress object to track the operation completion.</desc>
|
---|
2572 | </param>
|
---|
2573 | </method>
|
---|
2574 |
|
---|
2575 | <method name="discardCurrentSnapshotAndState">
|
---|
2576 | <desc>
|
---|
2577 | Gets called by IConsole::discardCurrentSnapshotAndState.
|
---|
2578 | </desc>
|
---|
2579 | <param name="initiator" type="IConsole" dir="in">
|
---|
2580 | <desc>The console object that initiated this call.</desc>
|
---|
2581 | </param>
|
---|
2582 | <param name="machineState" type="MachineState" dir="out">
|
---|
2583 | <desc>New machine state after this operation is started.</desc>
|
---|
2584 | </param>
|
---|
2585 | <param name="progress" type="IProgress" dir="return">
|
---|
2586 | <desc>Progress object to track the operation completion.</desc>
|
---|
2587 | </param>
|
---|
2588 | </method>
|
---|
2589 |
|
---|
2590 | <method name="pullGuestProperties">
|
---|
2591 | <desc>
|
---|
2592 | Get the list of the guest properties matching a set of patterns along
|
---|
2593 | with their values, time stamps and flags and give responsibility for
|
---|
2594 | managing properties to the console.
|
---|
2595 | </desc>
|
---|
2596 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
2597 | <desc>
|
---|
2598 | The names of the properties returned.
|
---|
2599 | </desc>
|
---|
2600 | </param>
|
---|
2601 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
2602 | <desc>
|
---|
2603 | The values of the properties returned. The array entries match the
|
---|
2604 | corresponding entries in the @a name array.
|
---|
2605 | </desc>
|
---|
2606 | </param>
|
---|
2607 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
2608 | <desc>
|
---|
2609 | The time stamps of the properties returned. The array entries match
|
---|
2610 | the corresponding entries in the @a name array.
|
---|
2611 | </desc>
|
---|
2612 | </param>
|
---|
2613 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
2614 | <desc>
|
---|
2615 | The flags of the properties returned. The array entries match the
|
---|
2616 | corresponding entries in the @a name array.
|
---|
2617 | </desc>
|
---|
2618 | </param>
|
---|
2619 | </method>
|
---|
2620 |
|
---|
2621 | <method name="pushGuestProperties">
|
---|
2622 | <desc>
|
---|
2623 | Set the list of the guest properties matching a set of patterns along
|
---|
2624 | with their values, time stamps and flags and return responsibility for
|
---|
2625 | managing properties to IMachine.
|
---|
2626 | </desc>
|
---|
2627 | <param name="name" type="wstring" dir="in" safearray="yes">
|
---|
2628 | <desc>
|
---|
2629 | The names of the properties.
|
---|
2630 | </desc>
|
---|
2631 | </param>
|
---|
2632 | <param name="value" type="wstring" dir="in" safearray="yes">
|
---|
2633 | <desc>
|
---|
2634 | The values of the properties. The array entries match the
|
---|
2635 | corresponding entries in the @a name array.
|
---|
2636 | </desc>
|
---|
2637 | </param>
|
---|
2638 | <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
|
---|
2639 | <desc>
|
---|
2640 | The time stamps of the properties. The array entries match
|
---|
2641 | the corresponding entries in the @a name array.
|
---|
2642 | </desc>
|
---|
2643 | </param>
|
---|
2644 | <param name="flags" type="wstring" dir="in" safearray="yes">
|
---|
2645 | <desc>
|
---|
2646 | The flags of the properties. The array entries match the
|
---|
2647 | corresponding entries in the @a name array.
|
---|
2648 | </desc>
|
---|
2649 | </param>
|
---|
2650 | </method>
|
---|
2651 | <method name="pushGuestProperty">
|
---|
2652 | <desc>
|
---|
2653 | Update a single guest property in IMachine.
|
---|
2654 | </desc>
|
---|
2655 | <param name="name" type="wstring" dir="in">
|
---|
2656 | <desc>
|
---|
2657 | The name of the property to be updated.
|
---|
2658 | </desc>
|
---|
2659 | </param>
|
---|
2660 | <param name="value" type="wstring" dir="in">
|
---|
2661 | <desc>
|
---|
2662 | The value of the property.
|
---|
2663 | </desc>
|
---|
2664 | </param>
|
---|
2665 | <param name="timestamp" type="unsigned long long" dir="in">
|
---|
2666 | <desc>
|
---|
2667 | The timestamp of the property.
|
---|
2668 | </desc>
|
---|
2669 | </param>
|
---|
2670 | <param name="flags" type="wstring" dir="in">
|
---|
2671 | <desc>
|
---|
2672 | The flags of the property.
|
---|
2673 | </desc>
|
---|
2674 | </param>
|
---|
2675 | </method>
|
---|
2676 | </interface>
|
---|
2677 |
|
---|
2678 | <interface
|
---|
2679 | name="IBIOSSettings" extends="$unknown"
|
---|
2680 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
2681 | wsmap="managed"
|
---|
2682 | >
|
---|
2683 | <desc>
|
---|
2684 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
2685 | machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
|
---|
2686 | </desc>
|
---|
2687 | <attribute name="logoFadeIn" type="boolean">
|
---|
2688 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
2689 | </attribute>
|
---|
2690 |
|
---|
2691 | <attribute name="logoFadeOut" type="boolean">
|
---|
2692 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
2693 | </attribute>
|
---|
2694 |
|
---|
2695 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
2696 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
2697 | </attribute>
|
---|
2698 |
|
---|
2699 | <attribute name="logoImagePath" type="wstring">
|
---|
2700 | <desc>Local file system path for external BIOS image.</desc>
|
---|
2701 | </attribute>
|
---|
2702 |
|
---|
2703 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
2704 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
2705 | </attribute>
|
---|
2706 |
|
---|
2707 | <attribute name="ACPIEnabled" type="boolean">
|
---|
2708 | <desc>ACPI support flag.</desc>
|
---|
2709 | </attribute>
|
---|
2710 |
|
---|
2711 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
2712 | <desc>
|
---|
2713 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
2714 | and support IRQs above 15.
|
---|
2715 | </desc>
|
---|
2716 | </attribute>
|
---|
2717 |
|
---|
2718 | <attribute name="timeOffset" type="long long">
|
---|
2719 | <desc>
|
---|
2720 | Offset in milliseconds from the host system time. This allows for
|
---|
2721 | guests running with a different system date/time than the host.
|
---|
2722 | It is equivalent to setting the system date/time in the BIOS other
|
---|
2723 | than it's not an absolute value but a relative one. Guest Additions
|
---|
2724 | time synchronization also honors this offset.
|
---|
2725 | </desc>
|
---|
2726 | </attribute>
|
---|
2727 |
|
---|
2728 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
2729 | <desc>
|
---|
2730 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
2731 | PXE trace information to the release log.
|
---|
2732 | </desc>
|
---|
2733 | </attribute>
|
---|
2734 |
|
---|
2735 | <attribute name="IDEControllerType" type="IDEControllerType">
|
---|
2736 | <desc>
|
---|
2737 | Type of the virtual IDE controller. Depending on this value,
|
---|
2738 | VirtualBox will provide different virtual IDE hardware
|
---|
2739 | devices to the guest.
|
---|
2740 | </desc>
|
---|
2741 | </attribute>
|
---|
2742 |
|
---|
2743 | </interface>
|
---|
2744 |
|
---|
2745 | <interface
|
---|
2746 | name="IMachine" extends="$unknown"
|
---|
2747 | uuid="a744b229-3457-422f-8550-649c40346c55"
|
---|
2748 | wsmap="managed"
|
---|
2749 | >
|
---|
2750 | <desc>
|
---|
2751 | The IMachine interface represents a virtual machine, or guest, created
|
---|
2752 | in VirtualBox.
|
---|
2753 |
|
---|
2754 | This interface is used in two contexts. First of all, a collection of
|
---|
2755 | objects implementing this interface is stored in the
|
---|
2756 | <link to="IVirtualBox::machines2"/> attribute which lists all the virtual
|
---|
2757 | machines that are currently registered with this VirtualBox
|
---|
2758 | installation. Also, once a session has been opened for the given virtual
|
---|
2759 | machine (e.g. the virtual machine is running), the machine object
|
---|
2760 | associated with the open session can be queried from the session object;
|
---|
2761 | see <link to="ISession"/> for details.
|
---|
2762 |
|
---|
2763 | The main role of this interface is to expose the settings of the virtual
|
---|
2764 | machine and provide methods to change various aspects of the virtual
|
---|
2765 | machine's configuration. For machine objects stored in the
|
---|
2766 | <link to="IVirtualBox::machines2"/> collection, all attributes are
|
---|
2767 | read-only unless explicitly stated otherwise in individual attribute
|
---|
2768 | and method descriptions. In order to change a machine setting, a session
|
---|
2769 | for this machine must be opened using one of
|
---|
2770 | <link to="IVirtualBox::openSession"/>,
|
---|
2771 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
2772 | <link to="IVirtualBox::openExistingSession"/> methods. After the
|
---|
2773 | session has been successfully opened, a mutable machine object needs to
|
---|
2774 | be queried from the session object and then the desired settings changes
|
---|
2775 | can be applied to the returned object using IMachine attributes and
|
---|
2776 | methods. See the ISession interface description for more information
|
---|
2777 | about sessions.
|
---|
2778 |
|
---|
2779 | Note that the IMachine interface does not provide methods to control
|
---|
2780 | virtual machine execution (such as start the machine, or power it
|
---|
2781 | down) -- these methods are grouped in a separate IConsole
|
---|
2782 | interface. Refer to the IConsole interface description to get more
|
---|
2783 | information about this topic.
|
---|
2784 |
|
---|
2785 | <see>ISession, IConsole</see>
|
---|
2786 | </desc>
|
---|
2787 |
|
---|
2788 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
2789 | <desc>Associated parent object.</desc>
|
---|
2790 | </attribute>
|
---|
2791 |
|
---|
2792 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
2793 | <desc>
|
---|
2794 | Whether this virtual machine is currently accessible or not.
|
---|
2795 |
|
---|
2796 | The machine is considered to be inaccessible when:
|
---|
2797 | <ul>
|
---|
2798 | <li>It is a registered virtual machine, and
|
---|
2799 | </li>
|
---|
2800 | <li>Its settings file is inaccessible (for example, it is
|
---|
2801 | located on a network share that is not accessible during
|
---|
2802 | VirtualBox startup, or becomes inaccessible later, or if
|
---|
2803 | the settings file can be read but is invalid).
|
---|
2804 | </li>
|
---|
2805 | </ul>
|
---|
2806 |
|
---|
2807 | Otherwise, the value of this property is always <tt>true</tt>.
|
---|
2808 |
|
---|
2809 | Every time this property is read, the accessibility state of
|
---|
2810 | this machine is re-evaluated. If the returned value is |false|,
|
---|
2811 | the <link to="#accessError"/> property may be used to get the
|
---|
2812 | detailed error information describing the reason of
|
---|
2813 | inaccessibility.
|
---|
2814 |
|
---|
2815 | When the machine is inaccessible, only the following properties
|
---|
2816 | can be used on it:
|
---|
2817 | <ul>
|
---|
2818 | <li><link to="#parent"/></li>
|
---|
2819 | <li><link to="#id"/></li>
|
---|
2820 | <li><link to="#settingsFilePath"/></li>
|
---|
2821 | <li><link to="#accessible"/></li>
|
---|
2822 | <li><link to="#accessError"/></li>
|
---|
2823 | </ul>
|
---|
2824 |
|
---|
2825 | An attempt to access any other property or method will return
|
---|
2826 | an error.
|
---|
2827 |
|
---|
2828 | The only possible action you can perform on an inaccessible
|
---|
2829 | machine is to unregister it using the
|
---|
2830 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
2831 | for the accessibility state once more by querying this
|
---|
2832 | property).
|
---|
2833 |
|
---|
2834 | <note>
|
---|
2835 | In the current implementation, once this property returns
|
---|
2836 | <tt>true</tt>, the machine will never become inaccessible
|
---|
2837 | later, even if its settings file cannot be successfully
|
---|
2838 | read/written any more (at least, until the VirtualBox
|
---|
2839 | server is restarted). This limitation may be removed in
|
---|
2840 | future releases.
|
---|
2841 | </note>
|
---|
2842 | </desc>
|
---|
2843 | </attribute>
|
---|
2844 |
|
---|
2845 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
2846 | <desc>
|
---|
2847 | Error information describing the reason of machine
|
---|
2848 | inaccessibility.
|
---|
2849 |
|
---|
2850 | Reading this property is only valid after the last call to
|
---|
2851 | <link to="#accessible"/> returned <tt>false</tt> (i.e. the
|
---|
2852 | machine is currently unaccessible). Otherwise, a null
|
---|
2853 | IVirtualBoxErrorInfo object will be returned.
|
---|
2854 | </desc>
|
---|
2855 | </attribute>
|
---|
2856 |
|
---|
2857 | <attribute name="name" type="wstring">
|
---|
2858 | <desc>
|
---|
2859 | Name of the virtual machine.
|
---|
2860 |
|
---|
2861 | Besides being used for human-readable identification purposes
|
---|
2862 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
2863 | as a name of the machine's settings file and as a name of the
|
---|
2864 | subdirectory this settings file resides in. Thus, every time you
|
---|
2865 | change the value of this property, the settings file will be
|
---|
2866 | renamed once you call <link to="#saveSettings()"/> to confirm the
|
---|
2867 | change. The containing subdirectory will be also renamed, but
|
---|
2868 | only if it has exactly the same name as the settings file
|
---|
2869 | itself prior to changing this property (for backward compatibility
|
---|
2870 | with previous API releases). The above implies the following
|
---|
2871 | limitations:
|
---|
2872 | <ul>
|
---|
2873 | <li>The machine name cannot be empty.</li>
|
---|
2874 | <li>The machine name can contain only characters that are valid
|
---|
2875 | file name characters according to the rules of the file
|
---|
2876 | system used to store VirtualBox configuration.</li>
|
---|
2877 | <li>You cannot have two or more machines with the same name
|
---|
2878 | if they use the same subdirectory for storing the machine
|
---|
2879 | settings files.</li>
|
---|
2880 | <li>You cannot change the name of the machine if it is running,
|
---|
2881 | or if any file in the directory containing the settings file
|
---|
2882 | is being used by another running machine or by any other
|
---|
2883 | process in the host operating system at a time when
|
---|
2884 | <link to="#saveSettings()"/> is called.
|
---|
2885 | </li>
|
---|
2886 | </ul>
|
---|
2887 | If any of the above limitations are hit, <link to="#saveSettings()"/>
|
---|
2888 | will return an appropriate error message explaining the exact
|
---|
2889 | reason and the changes you made to this machine will not be
|
---|
2890 | saved.
|
---|
2891 | <note>
|
---|
2892 | For "legacy" machines created using the
|
---|
2893 | <link to="IVirtualBox::createLegacyMachine()"/> call,
|
---|
2894 | the above naming limitations do not apply because the
|
---|
2895 | machine name does not affect the settings file name.
|
---|
2896 | The settings file name remains the same as it was specified
|
---|
2897 | during machine creation and never changes.
|
---|
2898 | </note>
|
---|
2899 | </desc>
|
---|
2900 | </attribute>
|
---|
2901 |
|
---|
2902 | <attribute name="description" type="wstring">
|
---|
2903 | <desc>
|
---|
2904 | Description of the virtual machine.
|
---|
2905 |
|
---|
2906 | The description attribute can contain any text and is
|
---|
2907 | typically used to describe the hardware and software
|
---|
2908 | configuration of the virtual machine in detail (i.e. network
|
---|
2909 | settings, versions of the installed software and so on).
|
---|
2910 | </desc>
|
---|
2911 | </attribute>
|
---|
2912 |
|
---|
2913 | <attribute name="id" type="uuid" readonly="yes">
|
---|
2914 | <desc>UUID of the virtual machine.</desc>
|
---|
2915 | </attribute>
|
---|
2916 |
|
---|
2917 | <attribute name="OSTypeId" type="wstring">
|
---|
2918 | <desc>
|
---|
2919 | User-defined identifier of the Guest OS type.
|
---|
2920 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
2921 | an IGuestOSType object representing details about the given
|
---|
2922 | Guest OS type.
|
---|
2923 | <note>
|
---|
2924 | This value may differ from the value returned by
|
---|
2925 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
2926 | installed to the guest OS.
|
---|
2927 | </note>
|
---|
2928 | </desc>
|
---|
2929 | </attribute>
|
---|
2930 |
|
---|
2931 | <attribute name="CPUCount" type="unsigned long">
|
---|
2932 | <desc>Number of virtual CPUs in the VM.</desc>
|
---|
2933 | </attribute>
|
---|
2934 |
|
---|
2935 | <attribute name="memorySize" type="unsigned long">
|
---|
2936 | <desc>System memory size in megabytes.</desc>
|
---|
2937 | </attribute>
|
---|
2938 |
|
---|
2939 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
2940 | <desc>Initial memory balloon size in megabytes.</desc>
|
---|
2941 | </attribute>
|
---|
2942 |
|
---|
2943 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
2944 | <desc>Initial interval to update guest statistics in seconds.</desc>
|
---|
2945 | </attribute>
|
---|
2946 |
|
---|
2947 | <attribute name="VRAMSize" type="unsigned long">
|
---|
2948 | <desc>Video memory size in megabytes.</desc>
|
---|
2949 | </attribute>
|
---|
2950 |
|
---|
2951 | <attribute name="accelerate3DEnabled" type="boolean" default="false">
|
---|
2952 | <desc>
|
---|
2953 | This setting determines whether VirtualBox allows guests to make use
|
---|
2954 | of the 3D graphics support available on the host. Currently limited
|
---|
2955 | to OpenGL only. </desc>
|
---|
2956 | </attribute>
|
---|
2957 |
|
---|
2958 | <attribute name="monitorCount" type="unsigned long">
|
---|
2959 | <desc>
|
---|
2960 | Number of virtual monitors.
|
---|
2961 | <note>
|
---|
2962 | Only effective on Windows XP and later guests with
|
---|
2963 | Guest Additions installed.
|
---|
2964 | </note>
|
---|
2965 | </desc>
|
---|
2966 | </attribute>
|
---|
2967 |
|
---|
2968 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
2969 | <desc>Object containing all BIOS settings.</desc>
|
---|
2970 | </attribute>
|
---|
2971 |
|
---|
2972 | <attribute name="HWVirtExEnabled" type="TSBool">
|
---|
2973 | <desc>
|
---|
2974 | This setting determines whether VirtualBox will try to make use of
|
---|
2975 | the host CPU's hardware virtualization extensions such as Intel VT-x
|
---|
2976 | and AMD-V. Note that in case such extensions are not available,
|
---|
2977 | they will not be used.
|
---|
2978 | </desc>
|
---|
2979 | </attribute>
|
---|
2980 |
|
---|
2981 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
|
---|
2982 | <desc>
|
---|
2983 | This setting determines whether VirtualBox will try to make use of
|
---|
2984 | the nested paging extension of Intel VT-x and AMD-V. Note that in case
|
---|
2985 | such extensions are not available, they will not be used.
|
---|
2986 | </desc>
|
---|
2987 | </attribute>
|
---|
2988 |
|
---|
2989 | <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
|
---|
2990 | <desc>
|
---|
2991 | This setting determines whether VirtualBox will try to make use of
|
---|
2992 | the VPID extension of Intel VT-x. Note that in case such extensions are
|
---|
2993 | not available, they will not be used.
|
---|
2994 | </desc>
|
---|
2995 | </attribute>
|
---|
2996 |
|
---|
2997 | <attribute name="PAEEnabled" type="boolean" default="false">
|
---|
2998 | <desc>
|
---|
2999 | This setting determines whether VirtualBox will expose the Physical Address
|
---|
3000 | Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
|
---|
3001 | is not available, it will not be reported.
|
---|
3002 | </desc>
|
---|
3003 | </attribute>
|
---|
3004 |
|
---|
3005 | <attribute name="snapshotFolder" type="wstring">
|
---|
3006 | <desc>
|
---|
3007 | Full path to the directory used to store snapshot data
|
---|
3008 | (differencing hard disks and saved state files) of this machine.
|
---|
3009 |
|
---|
3010 | The initial value of this property is
|
---|
3011 | <tt><</tt><link to="#settingsFilePath">
|
---|
3012 | path_to_settings_file</link><tt>>/<</tt>
|
---|
3013 | <link to="#id">machine_uuid</link>
|
---|
3014 | <tt>></tt>.
|
---|
3015 |
|
---|
3016 | Currently, it is an error to try to change this property on
|
---|
3017 | a machine that has snapshots (because this would require to
|
---|
3018 | move possibly large files to a different location).
|
---|
3019 | A separate method will be available for this purpose later.
|
---|
3020 |
|
---|
3021 | <note>
|
---|
3022 | Setting this property to <tt>null</tt> will restore the
|
---|
3023 | initial value.
|
---|
3024 | </note>
|
---|
3025 | <note>
|
---|
3026 | When setting this property, the specified path can be
|
---|
3027 | absolute (full path) or relative to the directory where the
|
---|
3028 | <link to="#settingsFilePath">machine settings file</link>
|
---|
3029 | is located. When reading this property, a full path is
|
---|
3030 | always returned.
|
---|
3031 | </note>
|
---|
3032 | <note>
|
---|
3033 | The specified path may not exist, it will be created
|
---|
3034 | when necessary.
|
---|
3035 | </note>
|
---|
3036 | </desc>
|
---|
3037 | </attribute>
|
---|
3038 |
|
---|
3039 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
3040 | <desc>VRDP server object.</desc>
|
---|
3041 | </attribute>
|
---|
3042 |
|
---|
3043 | <attribute name="hardDisk2Attachments" type="IHardDisk2Attachment" readonly="yes" safearray="yes">
|
---|
3044 | <desc>Array of hard disks attached to this machine.</desc>
|
---|
3045 | </attribute>
|
---|
3046 |
|
---|
3047 | <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
|
---|
3048 | <desc>Associated DVD drive object.</desc>
|
---|
3049 | </attribute>
|
---|
3050 |
|
---|
3051 | <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
|
---|
3052 | <desc>Associated floppy drive object.</desc>
|
---|
3053 | </attribute>
|
---|
3054 |
|
---|
3055 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
3056 | <desc>
|
---|
3057 | Associated USB controller object.
|
---|
3058 |
|
---|
3059 | <note>
|
---|
3060 | This method may set a @ref com_warnings "warning result code".
|
---|
3061 | </note>
|
---|
3062 | <note>
|
---|
3063 | If USB functionality is not available in the given edition of
|
---|
3064 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
3065 | </note>
|
---|
3066 | </desc>
|
---|
3067 | </attribute>
|
---|
3068 |
|
---|
3069 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
3070 | <desc>Associated audio adapter, always present.</desc>
|
---|
3071 | </attribute>
|
---|
3072 |
|
---|
3073 | <attribute name="SATAController" type="ISATAController" readonly="yes">
|
---|
3074 | <desc>
|
---|
3075 | Associated SATA controller object.
|
---|
3076 | </desc>
|
---|
3077 | </attribute>
|
---|
3078 |
|
---|
3079 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
3080 | <desc>
|
---|
3081 | Full name of the file containing machine settings data.
|
---|
3082 | </desc>
|
---|
3083 | </attribute>
|
---|
3084 |
|
---|
3085 | <attribute name="settingsFileVersion" type="wstring" readonly="yes">
|
---|
3086 | <desc>
|
---|
3087 | Current version of the format of the settings file of this machine
|
---|
3088 | (<link to="#settingsFilePath"/>).
|
---|
3089 |
|
---|
3090 | The version string has the following format:
|
---|
3091 | <pre>
|
---|
3092 | x.y-platform
|
---|
3093 | </pre>
|
---|
3094 | where <tt>x</tt> and <tt>y</tt> are the major and the minor format
|
---|
3095 | versions, and <tt>platform</tt> is the platform identifier.
|
---|
3096 |
|
---|
3097 | The current version usually matches the value of the
|
---|
3098 | <link to="IVirtualBox::settingsFormatVersion"/> attribute unless the
|
---|
3099 | settings file was created by an older version of VirtualBox and there
|
---|
3100 | was a change of the settings file format since then.
|
---|
3101 |
|
---|
3102 | Note that VirtualBox automatically converts settings files from older
|
---|
3103 | versions to the most recent version when reading them (usually at
|
---|
3104 | VirtualBox startup) but it doesn't save the changes back until
|
---|
3105 | you call a method that implicitly saves settings (such as
|
---|
3106 | <link to="#setExtraData()"/>) or call <link to="#saveSettings()"/>
|
---|
3107 | explicitly. Therefore, if the value of this attribute differs from the
|
---|
3108 | value of <link to="IVirtualBox::settingsFormatVersion"/>, then it
|
---|
3109 | means that the settings file was converted but the result of the
|
---|
3110 | conversion is not yet saved to disk.
|
---|
3111 |
|
---|
3112 | The above feature may be used by interactive front-ends to inform users
|
---|
3113 | about the settings file format change and offer them to explicitly save
|
---|
3114 | all converted settings files (the global and VM-specific ones),
|
---|
3115 | optionally create backup copies of the old settings files before saving,
|
---|
3116 | etc.
|
---|
3117 |
|
---|
3118 | <see>IVirtualBox::settingsFormatVersion, saveSettingsWithBackup()</see>
|
---|
3119 | </desc>
|
---|
3120 | </attribute>
|
---|
3121 |
|
---|
3122 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
3123 | <desc>
|
---|
3124 | Whether the settings of this machine have been modified
|
---|
3125 | (but neither yet saved nor discarded).
|
---|
3126 | <note>
|
---|
3127 | Reading this property is only valid on instances returned
|
---|
3128 | by <link to="ISession::machine"/> and on new machines
|
---|
3129 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
3130 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
3131 | yet registered, or on unregistered machines after calling
|
---|
3132 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
3133 | cases, the settings can never be modified.
|
---|
3134 | </note>
|
---|
3135 | <note>
|
---|
3136 | For newly created unregistered machines, the value of this
|
---|
3137 | property is always TRUE until <link to="#saveSettings()"/>
|
---|
3138 | is called (no matter if any machine settings have been
|
---|
3139 | changed after the creation or not). For opened machines
|
---|
3140 | the value is set to FALSE (and then follows to normal rules).
|
---|
3141 | </note>
|
---|
3142 | </desc>
|
---|
3143 | </attribute>
|
---|
3144 |
|
---|
3145 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
3146 | <desc>Current session state for this machine.</desc>
|
---|
3147 | </attribute>
|
---|
3148 |
|
---|
3149 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
3150 | <desc>
|
---|
3151 | Type of the session. If <link to="#sessionState"/> is
|
---|
3152 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
3153 | same value as passed to the
|
---|
3154 | <link to="IVirtualBox::openRemoteSession()"/> method in the @a
|
---|
3155 | type parameter. If the session was opened directly using
|
---|
3156 | <link to="IVirtualBox::openSession()"/>, or if
|
---|
3157 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
3158 | attribute is @c null.
|
---|
3159 | </desc>
|
---|
3160 | </attribute>
|
---|
3161 |
|
---|
3162 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
3163 | <desc>
|
---|
3164 | Identifier of the session process. This attribute contains the
|
---|
3165 | platform-dependent identifier of the process that has opened a
|
---|
3166 | direct session for this machine using the
|
---|
3167 | <link to="IVirtualBox::openSession()"/> call. The returned value
|
---|
3168 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
3169 | SessionClosing (i.e. a session is currently open or being
|
---|
3170 | closed) by the time this property is read.
|
---|
3171 | </desc>
|
---|
3172 | </attribute>
|
---|
3173 |
|
---|
3174 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
3175 | <desc>Current execution state of this machine.</desc>
|
---|
3176 | </attribute>
|
---|
3177 |
|
---|
3178 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
3179 | <desc>
|
---|
3180 | Time stamp of the last execution state change,
|
---|
3181 | in milliseconds since 1970-01-01 UTC.
|
---|
3182 | </desc>
|
---|
3183 | </attribute>
|
---|
3184 |
|
---|
3185 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
3186 | <desc>
|
---|
3187 | Full path to the file that stores the execution state of
|
---|
3188 | the machine when it is in the <link to="MachineState::Saved"/>
|
---|
3189 | state.
|
---|
3190 | <note>
|
---|
3191 | When the machine is not in the Saved state, this attribute
|
---|
3192 | <tt>null</tt>.
|
---|
3193 | </note>
|
---|
3194 | </desc>
|
---|
3195 | </attribute>
|
---|
3196 |
|
---|
3197 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
3198 | <desc>
|
---|
3199 | Full path to the folder that stores a set of rotated log files
|
---|
3200 | recorded during machine execution. The most recent log file is
|
---|
3201 | named <tt>VBox.log</tt>, the previous log file is
|
---|
3202 | named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
|
---|
3203 | in the current version).
|
---|
3204 | </desc>
|
---|
3205 | </attribute>
|
---|
3206 |
|
---|
3207 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
3208 | <desc>
|
---|
3209 | Current snapshot of this machine.
|
---|
3210 | <note>
|
---|
3211 | A <tt>null</tt> object is returned if the machine doesn't
|
---|
3212 | have snapshots.
|
---|
3213 | </note>
|
---|
3214 | <see><link to="ISnapshot"/></see>
|
---|
3215 | </desc>
|
---|
3216 | </attribute>
|
---|
3217 |
|
---|
3218 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
3219 | <desc>
|
---|
3220 | Number of snapshots taken on this machine. Zero means the
|
---|
3221 | machine doesn't have any snapshots.
|
---|
3222 | </desc>
|
---|
3223 | </attribute>
|
---|
3224 |
|
---|
3225 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
3226 | <desc>
|
---|
3227 | Returns <tt>true</tt> if the current state of the machine is not
|
---|
3228 | identical to the state stored in the current snapshot.
|
---|
3229 |
|
---|
3230 | The current state is identical to the current snapshot right
|
---|
3231 | after one of the following calls are made:
|
---|
3232 | <ul>
|
---|
3233 | <li><link to="IConsole::discardCurrentState"/> or
|
---|
3234 | <link to="IConsole::discardCurrentSnapshotAndState"/>
|
---|
3235 | </li>
|
---|
3236 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
3237 | powered off or saved machine, for which
|
---|
3238 | <link to="#settingsModified"/> returns <tt>false</tt>)
|
---|
3239 | </li>
|
---|
3240 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
3241 | </li>
|
---|
3242 | </ul>
|
---|
3243 |
|
---|
3244 | The current state remains identical until one of the following
|
---|
3245 | happens:
|
---|
3246 | <ul>
|
---|
3247 | <li>settings of the machine are changed</li>
|
---|
3248 | <li>the saved state is discarded</li>
|
---|
3249 | <li>the current snapshot is discarded</li>
|
---|
3250 | <li>an attempt to execute the machine is made</li>
|
---|
3251 | </ul>
|
---|
3252 |
|
---|
3253 | <note>
|
---|
3254 | For machines that don't have snapshots, this property is
|
---|
3255 | always <tt>false</tt>.
|
---|
3256 | </note>
|
---|
3257 | </desc>
|
---|
3258 | </attribute>
|
---|
3259 |
|
---|
3260 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
3261 | <desc>
|
---|
3262 | Collection of shared folders for this machine (permanent shared
|
---|
3263 | folders). These folders are shared automatically at machine startup
|
---|
3264 | and available only to the guest OS installed within this machine.
|
---|
3265 |
|
---|
3266 | New shared folders are added to the collection using
|
---|
3267 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
3268 | removed using <link to="#removeSharedFolder"/>.
|
---|
3269 | </desc>
|
---|
3270 | </attribute>
|
---|
3271 |
|
---|
3272 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
3273 | <desc>
|
---|
3274 | Synchronization mode between the host OS clipboard
|
---|
3275 | and the guest OS clipboard.
|
---|
3276 | </desc>
|
---|
3277 | </attribute>
|
---|
3278 |
|
---|
3279 | <attribute name="guestPropertyNotificationPatterns" type="wstring">
|
---|
3280 | <desc>
|
---|
3281 | A comma-separated list of simple glob patterns. Changes to guest
|
---|
3282 | properties whose name matches one of the patterns will generate an
|
---|
3283 | <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
|
---|
3284 | </desc>
|
---|
3285 | </attribute>
|
---|
3286 |
|
---|
3287 | <method name="setBootOrder">
|
---|
3288 | <desc>
|
---|
3289 | Puts the given device to the specified position in
|
---|
3290 | the boot order.
|
---|
3291 |
|
---|
3292 | To indicate that no device is associated with the given position,
|
---|
3293 | <link to="DeviceType::Null"/> should be used.
|
---|
3294 |
|
---|
3295 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
3296 | </desc>
|
---|
3297 | <param name="position" type="unsigned long" dir="in">
|
---|
3298 | <desc>
|
---|
3299 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
3300 | devices the machine can boot from, as returned by
|
---|
3301 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
3302 | </desc>
|
---|
3303 | </param>
|
---|
3304 | <param name="device" type="DeviceType" dir="in">
|
---|
3305 | <desc>
|
---|
3306 | The type of the device used to boot at the given position.
|
---|
3307 | </desc>
|
---|
3308 | </param>
|
---|
3309 | </method>
|
---|
3310 |
|
---|
3311 | <method name="getBootOrder" const="yes">
|
---|
3312 | <desc>
|
---|
3313 | Returns the device type that occupies the specified
|
---|
3314 | position in the boot order.
|
---|
3315 |
|
---|
3316 | @todo [remove?]
|
---|
3317 | If the machine can have more than one device of the returned type
|
---|
3318 | (such as hard disks), then a separate method should be used to
|
---|
3319 | retrieve the individual device that occupies the given position.
|
---|
3320 |
|
---|
3321 | If here are no devices at the given position, then
|
---|
3322 | <link to="DeviceType::Null"/> is returned.
|
---|
3323 |
|
---|
3324 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
3325 | </desc>
|
---|
3326 | <param name="order" type="unsigned long" dir="in">
|
---|
3327 | <desc>
|
---|
3328 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
3329 | devices the machine can boot from, as returned by
|
---|
3330 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
3331 | </desc>
|
---|
3332 | </param>
|
---|
3333 | <param name="device" type="DeviceType" dir="return">
|
---|
3334 | <desc>
|
---|
3335 | Device at the given position.
|
---|
3336 | </desc>
|
---|
3337 | </param>
|
---|
3338 | </method>
|
---|
3339 |
|
---|
3340 | <method name="attachHardDisk2">
|
---|
3341 | <desc>
|
---|
3342 | Attaches a virtual hard disk identified by the given UUID to a device
|
---|
3343 | slot of the specified bus.
|
---|
3344 |
|
---|
3345 | For the IDE bus, the @a channel parameter can be either @c 0 or @c 1, to
|
---|
3346 | specify the primary or secondary IDE controller, respectively. The
|
---|
3347 | SATA bus supports 30 channels, so this parameter can be a number in
|
---|
3348 | range from @c 0 to @c 29.
|
---|
3349 |
|
---|
3350 | For the primary controller of the IDE bus, the @a device number can be
|
---|
3351 | either @c 0 or @c 1, to specify the master or the slave device,
|
---|
3352 | respectively. For the secondary IDE controller, the device number is
|
---|
3353 | always @c 1 because the master device is reserved for the CD-ROM drive.
|
---|
3354 |
|
---|
3355 | For the SATA bus, the @a device parameter is not currently used and
|
---|
3356 | must always be @c 0.
|
---|
3357 |
|
---|
3358 | The specified device slot must not have another disk attached to it, or
|
---|
3359 | this method will fail.
|
---|
3360 |
|
---|
3361 | See <link to="IHardDisk2"/> for more detailed information about
|
---|
3362 | attaching hard disks.
|
---|
3363 |
|
---|
3364 | <note>
|
---|
3365 | You cannot attach a hard disk to a running machine. Also, you cannot
|
---|
3366 | attach a hard disk to a newly created machine until this machine's
|
---|
3367 | settings are saved to disk using <link to="#saveSettings()"/>.
|
---|
3368 | </note>
|
---|
3369 | <note>
|
---|
3370 | If the hard disk is being attached indirectly, a new differencing hard
|
---|
3371 | disk will be implicitly created for it and attached instead. If the
|
---|
3372 | changes made to the machine settings (including this indirect
|
---|
3373 | attachment) are later cancelled using <link to="#discardSettings()"/>,
|
---|
3374 | this implicitly created differencing hard disk will be implicitly
|
---|
3375 | deleted.
|
---|
3376 | </note>
|
---|
3377 | </desc>
|
---|
3378 | <param name="id" type="uuid" dir="in">
|
---|
3379 | <desc>UUID of the hard disk to attach.</desc>
|
---|
3380 | </param>
|
---|
3381 | <param name="bus" type="StorageBus" dir="in">
|
---|
3382 | <desc>Type of the storage bus to use (IDE or SATA).</desc>
|
---|
3383 | </param>
|
---|
3384 | <param name="channel" type="long" dir="in">
|
---|
3385 | <desc>Channel to attach the hard disk to.</desc>
|
---|
3386 | </param>
|
---|
3387 | <param name="device" type="long" dir="in">
|
---|
3388 | <desc>
|
---|
3389 | Device slot in the given channel to attach the hard disk to.
|
---|
3390 | </desc>
|
---|
3391 | </param>
|
---|
3392 | </method>
|
---|
3393 |
|
---|
3394 | <method name="getHardDisk2" const="yes">
|
---|
3395 | <desc>
|
---|
3396 | Returns the virtual hard disk attached to a device slot of the specified
|
---|
3397 | bus.
|
---|
3398 |
|
---|
3399 | Note that if the hard disk was indirectly attached by
|
---|
3400 | <link to="#attachHardDisk2()"/> to the given device slot then this
|
---|
3401 | method will return not the same object as passed to the
|
---|
3402 | <link to="#attachHardDisk2()"/> call. See <link to="IHardDisk2"/> for
|
---|
3403 | more detailed information about attaching hard disks.
|
---|
3404 | </desc>
|
---|
3405 | <param name="bus" type="StorageBus" dir="in">
|
---|
3406 | <desc>Type of the storage bus to query (IDE or SATA).</desc>
|
---|
3407 | </param>
|
---|
3408 | <param name="channel" type="long" dir="in">
|
---|
3409 | <desc>Channel to query.</desc>
|
---|
3410 | </param>
|
---|
3411 | <param name="device" type="long" dir="in">
|
---|
3412 | <desc>Device slot in the given channel to query.</desc>
|
---|
3413 | </param>
|
---|
3414 | <param name="hardDisk" type="IHardDisk2" dir="return">
|
---|
3415 | <desc>Attached hard disk object.</desc>
|
---|
3416 | </param>
|
---|
3417 | </method>
|
---|
3418 |
|
---|
3419 | <method name="detachHardDisk2">
|
---|
3420 | <desc>
|
---|
3421 | Detaches the virtual hard disk attached to a device slot of the
|
---|
3422 | specified bus.
|
---|
3423 |
|
---|
3424 | Detaching the hard disk from the virtual machine is deferred. This means
|
---|
3425 | that the hard disk remains associated with the machine when this method
|
---|
3426 | returns and gets actually de-associated only after a successful
|
---|
3427 | <link to="#saveSettings()"/> call. See <link to="IHardDisk2"/>
|
---|
3428 | for more detailed information about attaching hard disks.
|
---|
3429 |
|
---|
3430 | <note>
|
---|
3431 | You cannot detach the hard disk from a running machine.
|
---|
3432 | </note>
|
---|
3433 | <note>
|
---|
3434 | Detaching differencing hard disks implicitly created by <link
|
---|
3435 | to="#attachHardDisk2()"/> for the indirect attachment using this
|
---|
3436 | method will <b>not</b> implicitly delete them. The
|
---|
3437 | <link to="IHardDisk2::deleteStorage()"/> operation should be
|
---|
3438 | explicitly performed by the caller after the hard disk is successfully
|
---|
3439 | detached and the settings are saved with
|
---|
3440 | <link to="#saveSettings()"/>, if it is the desired action.
|
---|
3441 | </note>
|
---|
3442 |
|
---|
3443 | </desc>
|
---|
3444 | <param name="bus" type="StorageBus" dir="in">
|
---|
3445 | <desc>Bus to detach the hard disk from.</desc>
|
---|
3446 | </param>
|
---|
3447 | <param name="channel" type="long" dir="in">
|
---|
3448 | <desc>Channel number to detach the hard disk from.</desc>
|
---|
3449 | </param>
|
---|
3450 | <param name="device" type="long" dir="in">
|
---|
3451 | <desc>Device slot number to detach the hard disk from.</desc>
|
---|
3452 | </param>
|
---|
3453 | </method>
|
---|
3454 |
|
---|
3455 | <method name="getNetworkAdapter" const="yes">
|
---|
3456 | <desc>
|
---|
3457 | Returns the network adapter associated with the given slot.
|
---|
3458 | Slots are numbered sequentially, starting with zero. The total
|
---|
3459 | number of adapters per every machine is defined by the
|
---|
3460 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
3461 | so the maximum slot number is one less than that property's value.
|
---|
3462 | </desc>
|
---|
3463 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
3464 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
3465 | </method>
|
---|
3466 |
|
---|
3467 | <method name="getSerialPort" const="yes">
|
---|
3468 | <desc>
|
---|
3469 | Returns the serial port associated with the given slot.
|
---|
3470 | Slots are numbered sequentially, starting with zero. The total
|
---|
3471 | number of serial ports per every machine is defined by the
|
---|
3472 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
3473 | so the maximum slot number is one less than that property's value.
|
---|
3474 | </desc>
|
---|
3475 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
3476 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
3477 | </method>
|
---|
3478 |
|
---|
3479 | <method name="getParallelPort" const="yes">
|
---|
3480 | <desc>
|
---|
3481 | Returns the parallel port associated with the given slot.
|
---|
3482 | Slots are numbered sequentially, starting with zero. The total
|
---|
3483 | number of parallel ports per every machine is defined by the
|
---|
3484 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
3485 | so the maximum slot number is one less than that property's value.
|
---|
3486 | </desc>
|
---|
3487 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
3488 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
3489 | </method>
|
---|
3490 |
|
---|
3491 | <method name="getNextExtraDataKey">
|
---|
3492 | <desc>
|
---|
3493 | Returns the machine-specific extra data key name following the
|
---|
3494 | supplied key.
|
---|
3495 |
|
---|
3496 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
3497 | returned in @a nextKey if the supplied key is the last key. When
|
---|
3498 | supplying @c NULL for the @a key, the first key item is returned in @a
|
---|
3499 | nextKey (if there is any). @a nextValue is an optional parameter and
|
---|
3500 | if supplied, the next key's value is returned in it.
|
---|
3501 | </desc>
|
---|
3502 | <param name="key" type="wstring" dir="in">
|
---|
3503 | <desc>Name of the data key to follow.</desc>
|
---|
3504 | </param>
|
---|
3505 | <param name="nextKey" type="wstring" dir="out">
|
---|
3506 | <desc>Name of the next data key.</desc>
|
---|
3507 | </param>
|
---|
3508 | <param name="nextValue" type="wstring" dir="out">
|
---|
3509 | <desc>Value of the next data key.</desc>
|
---|
3510 | </param>
|
---|
3511 | </method>
|
---|
3512 |
|
---|
3513 | <method name="getExtraData">
|
---|
3514 | <desc>
|
---|
3515 | Returns associated machine-specific extra data.
|
---|
3516 |
|
---|
3517 | If the requested data @a key does not exist, this function will
|
---|
3518 | succeed and return @c NULL in the @a value argument.
|
---|
3519 | </desc>
|
---|
3520 | <param name="key" type="wstring" dir="in">
|
---|
3521 | <desc>Name of the data key to get.</desc>
|
---|
3522 | </param>
|
---|
3523 | <param name="value" type="wstring" dir="return">
|
---|
3524 | <desc>Value of the requested data key.</desc>
|
---|
3525 | </param>
|
---|
3526 | </method>
|
---|
3527 |
|
---|
3528 | <method name="setExtraData">
|
---|
3529 | <desc>
|
---|
3530 | Sets associated machine-specific extra data.
|
---|
3531 |
|
---|
3532 | If you pass @c NULL as a key @a value, the given @a key will be
|
---|
3533 | deleted.
|
---|
3534 |
|
---|
3535 | <note>
|
---|
3536 | Before performing the actual data change, this method will ask all
|
---|
3537 | registered callbacks using the
|
---|
3538 | <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
|
---|
3539 | notification for a permission. If one of the callbacks refuses the
|
---|
3540 | new value, the change will not be performed.
|
---|
3541 | </note>
|
---|
3542 | <note>
|
---|
3543 | On success, the
|
---|
3544 | <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
|
---|
3545 | is called to inform all registered callbacks about a successful data
|
---|
3546 | change.
|
---|
3547 | </note>
|
---|
3548 | <note>
|
---|
3549 | This method can be called outside the machine session and therefore
|
---|
3550 | it's a caller's responsibility to handle possible race conditions
|
---|
3551 | when several clients change the same key at the same time.
|
---|
3552 | </note>
|
---|
3553 | </desc>
|
---|
3554 | <param name="key" type="wstring" dir="in">
|
---|
3555 | <desc>Name of the data key to set.</desc>
|
---|
3556 | </param>
|
---|
3557 | <param name="value" type="wstring" dir="in">
|
---|
3558 | <desc>Value to assign to the key.</desc>
|
---|
3559 | </param>
|
---|
3560 | </method>
|
---|
3561 |
|
---|
3562 | <method name="saveSettings">
|
---|
3563 | <desc>
|
---|
3564 | Saves any changes to machine settings made since the session
|
---|
3565 | has been opened or a new machine has been created, or since the
|
---|
3566 | last call to <link to="#saveSettings()"/> or <link to="#discardSettings()"/>.
|
---|
3567 | For registered machines, new settings become visible to all
|
---|
3568 | other VirtualBox clients after successful invocation of this
|
---|
3569 | method.
|
---|
3570 | <note>
|
---|
3571 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange()"/>
|
---|
3572 | notification event after the configuration has been successfully
|
---|
3573 | saved (only for registered machines).
|
---|
3574 | </note>
|
---|
3575 | <note>
|
---|
3576 | Calling this method is only valid on instances returned
|
---|
3577 | by <link to="ISession::machine"/> and on new machines
|
---|
3578 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
3579 | yet registered, or on unregistered machines after calling
|
---|
3580 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
3581 | </note>
|
---|
3582 | </desc>
|
---|
3583 | </method>
|
---|
3584 |
|
---|
3585 | <method name="saveSettingsWithBackup">
|
---|
3586 | <desc>
|
---|
3587 | Creates a backup copy of the machine settings file (<link
|
---|
3588 | to="#settingsFilePath"/>) in case of auto-conversion, and then calls
|
---|
3589 | <link to="#saveSettings()"/>.
|
---|
3590 |
|
---|
3591 | Note that the backup copy is created <b>only</b> if the settings file
|
---|
3592 | auto-conversion took place (see <link to="#settingsFileVersion"/> for
|
---|
3593 | details). Otherwise, this call is fully equivalent to
|
---|
3594 | <link to="#saveSettings()"/> and no backup copying is done.
|
---|
3595 |
|
---|
3596 | The backup copy is created in the same directory where the original
|
---|
3597 | settings file is located. It is given the following file name:
|
---|
3598 | <pre>
|
---|
3599 | original.xml.x.y-platform.bak
|
---|
3600 | </pre>
|
---|
3601 | where <tt>original.xml</tt> is the original settings file name
|
---|
3602 | (excluding path), and <tt>x.y-platform</tt> is the version of the old
|
---|
3603 | format of the settings file (before auto-conversion).
|
---|
3604 |
|
---|
3605 | If the given backup file already exists, this method will try to add the
|
---|
3606 | <tt>.N</tt> suffix to the backup file name (where <tt>N</tt> counts from
|
---|
3607 | 0 to 9) and copy it again until it succeeds. If all suffixes are
|
---|
3608 | occupied, or if any other copy error occurs, this method will return a
|
---|
3609 | failure.
|
---|
3610 |
|
---|
3611 | If the copy operation succeeds, the @a bakFileName return argument will
|
---|
3612 | receive a full path to the created backup file (for informational
|
---|
3613 | purposes). Note that this will happen even if the subsequent
|
---|
3614 | <link to="#saveSettings()"/> call performed by this method after the
|
---|
3615 | copy operation, fails.
|
---|
3616 |
|
---|
3617 | <note>
|
---|
3618 | The VirtualBox API never calls this method. It is intended purely for
|
---|
3619 | the purposes of creating backup copies of the settings files by
|
---|
3620 | front-ends before saving the results of the automatically performed
|
---|
3621 | settings conversion to disk.
|
---|
3622 | </note>
|
---|
3623 |
|
---|
3624 | <see>settingsFileVersion</see>
|
---|
3625 | </desc>
|
---|
3626 | <param name="bakFileName" type="wstring" dir="return">
|
---|
3627 | <desc>Full path to the created backup copy.</desc>
|
---|
3628 | </param>
|
---|
3629 | </method>
|
---|
3630 |
|
---|
3631 | <method name="discardSettings">
|
---|
3632 | <desc>
|
---|
3633 | Discards any changes to the machine settings made since the session
|
---|
3634 | has been opened or since the last call to <link to="#saveSettings()"/>
|
---|
3635 | or <link to="#discardSettings"/>.
|
---|
3636 | <note>
|
---|
3637 | Calling this method is only valid on instances returned
|
---|
3638 | by <link to="ISession::machine"/> and on new machines
|
---|
3639 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
3640 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
3641 | yet registered, or on unregistered machines after calling
|
---|
3642 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
3643 | </note>
|
---|
3644 | </desc>
|
---|
3645 | </method>
|
---|
3646 |
|
---|
3647 | <method name="deleteSettings">
|
---|
3648 | <desc>
|
---|
3649 | Deletes the settings file of this machine from disk.
|
---|
3650 | The machine must not be registered in order for this operation
|
---|
3651 | to succeed.
|
---|
3652 | <note>
|
---|
3653 | <link to="#settingsModified"/> will return TRUE after this
|
---|
3654 | method successfully returns.
|
---|
3655 | </note>
|
---|
3656 | <note>
|
---|
3657 | Calling this method is only valid on instances returned
|
---|
3658 | by <link to="ISession::machine"/> and on new machines
|
---|
3659 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
3660 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
3661 | yet registered, or on unregistered machines after calling
|
---|
3662 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
3663 | </note>
|
---|
3664 | <note>
|
---|
3665 | The deleted machine settings file can be restored (saved again)
|
---|
3666 | by calling <link to="#saveSettings()"/>.
|
---|
3667 | </note>
|
---|
3668 | </desc>
|
---|
3669 | </method>
|
---|
3670 |
|
---|
3671 | <method name="getSnapshot">
|
---|
3672 | <desc>
|
---|
3673 | Returns a snapshot of this machine with the given UUID.
|
---|
3674 | A <tt>null</tt> UUID can be used to obtain the first snapshot
|
---|
3675 | taken on this machine. This is useful if you want to traverse
|
---|
3676 | the whole tree of snapshots starting from the root.
|
---|
3677 | </desc>
|
---|
3678 | <param name="id" type="uuid" dir="in">
|
---|
3679 | <desc>UUID of the snapshot to get</desc>
|
---|
3680 | </param>
|
---|
3681 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
3682 | <desc>Snapshot object with the given UUID.</desc>
|
---|
3683 | </param>
|
---|
3684 | </method>
|
---|
3685 |
|
---|
3686 | <method name="findSnapshot">
|
---|
3687 | <desc>
|
---|
3688 | Returns a snapshot of this machine with the given name.
|
---|
3689 | </desc>
|
---|
3690 | <param name="name" type="wstring" dir="in">
|
---|
3691 | <desc>Name of the snapshot to find</desc>
|
---|
3692 | </param>
|
---|
3693 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
3694 | <desc>Snapshot object with the given name.</desc>
|
---|
3695 | </param>
|
---|
3696 | </method>
|
---|
3697 |
|
---|
3698 | <method name="setCurrentSnapshot">
|
---|
3699 | <desc>
|
---|
3700 | Sets the current snapshot of this machine.
|
---|
3701 | <note>
|
---|
3702 | In the current implementation, this operation is not
|
---|
3703 | implemented.
|
---|
3704 | </note>
|
---|
3705 | </desc>
|
---|
3706 | <param name="id" type="uuid" dir="in">
|
---|
3707 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
3708 | </param>
|
---|
3709 | </method>
|
---|
3710 |
|
---|
3711 | <method name="createSharedFolder">
|
---|
3712 | <desc>
|
---|
3713 | Creates a new permanent shared folder by associating the given logical
|
---|
3714 | name with the given host path, adds it to the collection of shared
|
---|
3715 | folders and starts sharing it. Refer to the description of
|
---|
3716 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
3717 | </desc>
|
---|
3718 | <param name="name" type="wstring" dir="in">
|
---|
3719 | <desc>Unique logical name of the shared folder.</desc>
|
---|
3720 | </param>
|
---|
3721 | <param name="hostPath" type="wstring" dir="in">
|
---|
3722 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
3723 | </param>
|
---|
3724 | <param name="writable" type="boolean" dir="in">
|
---|
3725 | <desc>Whether the share is writable or readonly</desc>
|
---|
3726 | </param>
|
---|
3727 | </method>
|
---|
3728 |
|
---|
3729 | <method name="removeSharedFolder">
|
---|
3730 | <desc>
|
---|
3731 | Removes the permanent shared folder with the given name previously
|
---|
3732 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
3733 | shared folders and stops sharing it.
|
---|
3734 | </desc>
|
---|
3735 | <param name="name" type="wstring" dir="in">
|
---|
3736 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
3737 | </param>
|
---|
3738 | </method>
|
---|
3739 |
|
---|
3740 | <method name="canShowConsoleWindow">
|
---|
3741 | <desc>
|
---|
3742 | Returns @c true if the VM console process can activate the
|
---|
3743 | console window and bring it to foreground on the desktop of
|
---|
3744 | the host PC.
|
---|
3745 | <note>
|
---|
3746 | This method will fail if a session for this machine is not
|
---|
3747 | currently open.
|
---|
3748 | </note>
|
---|
3749 | </desc>
|
---|
3750 | <param name="canShow" type="boolean" dir="return">
|
---|
3751 | <desc>
|
---|
3752 | @c true if the console window can be shown and @c
|
---|
3753 | false otherwise.
|
---|
3754 | </desc>
|
---|
3755 | </param>
|
---|
3756 | </method>
|
---|
3757 |
|
---|
3758 | <method name="showConsoleWindow">
|
---|
3759 | <desc>
|
---|
3760 | Activates the console window and brings it to foreground on
|
---|
3761 | the desktop of the host PC. Many modern window managers on
|
---|
3762 | many platforms implement some sort of focus stealing
|
---|
3763 | prevention logic, so that it may be impossible to activate
|
---|
3764 | a window without the help of the currently active
|
---|
3765 | application. In this case, this method will return a non-zero
|
---|
3766 | identifier that represents the top-level window of the VM
|
---|
3767 | console process. The caller, if it represents a currently
|
---|
3768 | active process, is responsible to use this identifier (in a
|
---|
3769 | platform-dependent manner) to perform actual window
|
---|
3770 | activation.
|
---|
3771 | <note>
|
---|
3772 | This method will fail if a session for this machine is not
|
---|
3773 | currently open.
|
---|
3774 | </note>
|
---|
3775 | </desc>
|
---|
3776 | <param name="winId" type="unsigned long long" dir="return">
|
---|
3777 | <desc>
|
---|
3778 | Platform-dependent identifier of the top-level VM console
|
---|
3779 | window, or zero if this method has performed all actions
|
---|
3780 | necessary to implement the <i>show window</i> semantics for
|
---|
3781 | the given platform and/or VirtualBox front-end.
|
---|
3782 | </desc>
|
---|
3783 | </param>
|
---|
3784 | </method>
|
---|
3785 |
|
---|
3786 | <method name="getGuestProperty">
|
---|
3787 | <desc>
|
---|
3788 | Reads an entry from the machine's guest property store.
|
---|
3789 | </desc>
|
---|
3790 | <param name="name" type="wstring" dir="in">
|
---|
3791 | <desc>
|
---|
3792 | The name of the property to read.
|
---|
3793 | </desc>
|
---|
3794 | </param>
|
---|
3795 | <param name="value" type="wstring" dir="out">
|
---|
3796 | <desc>
|
---|
3797 | The value of the property. If the property does not exist then this
|
---|
3798 | will be empty.
|
---|
3799 | </desc>
|
---|
3800 | </param>
|
---|
3801 | <param name="timestamp" type="unsigned long long" dir="out">
|
---|
3802 | <desc>
|
---|
3803 | The time at which the property was last modified, as seen by the
|
---|
3804 | server process.
|
---|
3805 | </desc>
|
---|
3806 | </param>
|
---|
3807 | <param name="flags" type="wstring" dir="out">
|
---|
3808 | <desc>
|
---|
3809 | Additional property parameters, passed as a comma-separated list of
|
---|
3810 | "name=value" type entries.
|
---|
3811 | </desc>
|
---|
3812 | </param>
|
---|
3813 | </method>
|
---|
3814 |
|
---|
3815 | <method name="getGuestPropertyValue">
|
---|
3816 | <desc>
|
---|
3817 | Reads a value from the machine's guest property store.
|
---|
3818 | </desc>
|
---|
3819 | <param name="property" type="wstring" dir="in">
|
---|
3820 | <desc>
|
---|
3821 | The name of the property to read.
|
---|
3822 | </desc>
|
---|
3823 | </param>
|
---|
3824 | <param name="value" type="wstring" dir="return">
|
---|
3825 | <desc>
|
---|
3826 | The value of the property. If the property does not exist then this
|
---|
3827 | will be empty.
|
---|
3828 | </desc>
|
---|
3829 | </param>
|
---|
3830 | </method>
|
---|
3831 |
|
---|
3832 | <method name="getGuestPropertyTimestamp">
|
---|
3833 | <desc>
|
---|
3834 | Reads a property timestamp from the machine's guest property store.
|
---|
3835 | </desc>
|
---|
3836 | <param name="property" type="wstring" dir="in">
|
---|
3837 | <desc>
|
---|
3838 | The name of the property to read.
|
---|
3839 | </desc>
|
---|
3840 | </param>
|
---|
3841 | <param name="value" type="unsigned long long" dir="return">
|
---|
3842 | <desc>
|
---|
3843 | The timestamp. If the property does not exist then this will be
|
---|
3844 | empty.
|
---|
3845 | </desc>
|
---|
3846 | </param>
|
---|
3847 | </method>
|
---|
3848 |
|
---|
3849 | <method name="setGuestProperty">
|
---|
3850 | <desc>
|
---|
3851 | Sets, changes or deletes an entry in the machine's guest property
|
---|
3852 | store.
|
---|
3853 | </desc>
|
---|
3854 | <param name="property" type="wstring" dir="in">
|
---|
3855 | <desc>
|
---|
3856 | The name of the property to set, change or delete.
|
---|
3857 | </desc>
|
---|
3858 | </param>
|
---|
3859 | <param name="value" type="wstring" dir="in">
|
---|
3860 | <desc>
|
---|
3861 | The new value of the property to set, change or delete. If the
|
---|
3862 | property does not yet exist and value is non-empty, it will be
|
---|
3863 | created. If the value is empty, the key will be deleted if it
|
---|
3864 | exists.
|
---|
3865 | </desc>
|
---|
3866 | </param>
|
---|
3867 | <param name="flags" type="wstring" dir="in">
|
---|
3868 | <desc>
|
---|
3869 | Additional property parameters, passed as a comma-separated list of
|
---|
3870 | "name=value" type entries.
|
---|
3871 | </desc>
|
---|
3872 | </param>
|
---|
3873 | </method>
|
---|
3874 |
|
---|
3875 | <method name="setGuestPropertyValue">
|
---|
3876 | <desc>
|
---|
3877 | Sets, changes or deletes a value in the machine's guest property
|
---|
3878 | store. The flags field will be left unchanged or created empty for a
|
---|
3879 | new property.
|
---|
3880 | </desc>
|
---|
3881 | <param name="property" type="wstring" dir="in">
|
---|
3882 | <desc>
|
---|
3883 | The name of the property to set, change or delete.
|
---|
3884 | </desc>
|
---|
3885 | </param>
|
---|
3886 | <param name="value" type="wstring" dir="in">
|
---|
3887 | <desc>
|
---|
3888 | The new value of the property to set, change or delete. If the
|
---|
3889 | property does not yet exist and value is non-empty, it will be
|
---|
3890 | created. If value is empty, the property will be deleted if it
|
---|
3891 | exists.
|
---|
3892 | </desc>
|
---|
3893 | </param>
|
---|
3894 | </method>
|
---|
3895 |
|
---|
3896 | <method name="enumerateGuestProperties">
|
---|
3897 | <desc>
|
---|
3898 | Return a list of the guest properties matching a set of patterns along
|
---|
3899 | with their values, time stamps and flags.
|
---|
3900 | </desc>
|
---|
3901 | <param name="patterns" type="wstring" dir="in">
|
---|
3902 | <desc>
|
---|
3903 | The patterns to match the properties against, separated by '|'
|
---|
3904 | characters. If this is empty or NULL, all properties will match.
|
---|
3905 | </desc>
|
---|
3906 | </param>
|
---|
3907 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
3908 | <desc>
|
---|
3909 | The names of the properties returned.
|
---|
3910 | </desc>
|
---|
3911 | </param>
|
---|
3912 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
3913 | <desc>
|
---|
3914 | The values of the properties returned. The array entries match the
|
---|
3915 | corresponding entries in the @a name array.
|
---|
3916 | </desc>
|
---|
3917 | </param>
|
---|
3918 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
3919 | <desc>
|
---|
3920 | The time stamps of the properties returned. The array entries match
|
---|
3921 | the corresponding entries in the @a name array.
|
---|
3922 | </desc>
|
---|
3923 | </param>
|
---|
3924 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
3925 | <desc>
|
---|
3926 | The flags of the properties returned. The array entries match the
|
---|
3927 | corresponding entries in the @a name array.
|
---|
3928 | </desc>
|
---|
3929 | </param>
|
---|
3930 | </method>
|
---|
3931 | </interface>
|
---|
3932 |
|
---|
3933 | <!--
|
---|
3934 | // IConsole
|
---|
3935 | /////////////////////////////////////////////////////////////////////////
|
---|
3936 | -->
|
---|
3937 |
|
---|
3938 | <interface
|
---|
3939 | name="IConsoleCallback" extends="$unknown"
|
---|
3940 | uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
|
---|
3941 | wsmap="suppress"
|
---|
3942 | >
|
---|
3943 |
|
---|
3944 | <method name="onMousePointerShapeChange">
|
---|
3945 | <desc>
|
---|
3946 | Notification when the guest mouse pointer shape has
|
---|
3947 | changed. The new shape data is given.
|
---|
3948 | </desc>
|
---|
3949 | <param name="visible" type="boolean" dir="in">
|
---|
3950 | <desc>
|
---|
3951 | Flag whether the pointer is visible.
|
---|
3952 | </desc>
|
---|
3953 | </param>
|
---|
3954 | <param name="alpha" type="boolean" dir="in">
|
---|
3955 | <desc>
|
---|
3956 | Flag whether the pointer has an alpha channel.
|
---|
3957 | </desc>
|
---|
3958 | </param>
|
---|
3959 | <param name="xHot" type="unsigned long" dir="in">
|
---|
3960 | <desc>
|
---|
3961 | The pointer hot spot x coordinate.
|
---|
3962 | </desc>
|
---|
3963 | </param>
|
---|
3964 | <param name="yHot" type="unsigned long" dir="in">
|
---|
3965 | <desc>
|
---|
3966 | The pointer hot spot y coordinate.
|
---|
3967 | </desc>
|
---|
3968 | </param>
|
---|
3969 | <param name="width" type="unsigned long" dir="in">
|
---|
3970 | <desc>
|
---|
3971 | Width of the pointer shape in pixels.
|
---|
3972 | </desc>
|
---|
3973 | </param>
|
---|
3974 | <param name="height" type="unsigned long" dir="in">
|
---|
3975 | <desc>
|
---|
3976 | Height of the pointer shape in pixels.
|
---|
3977 | </desc>
|
---|
3978 | </param>
|
---|
3979 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
3980 | <desc>
|
---|
3981 | Address of the shape buffer.
|
---|
3982 |
|
---|
3983 | The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
|
---|
3984 |
|
---|
3985 | For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
|
---|
3986 | For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
3987 |
|
---|
3988 | AND mask presents for pointers with alpha channel, so if the callback does not
|
---|
3989 | support alpha, the pointer could be displayed as a normal color pointer.
|
---|
3990 |
|
---|
3991 | The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
|
---|
3992 | therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
|
---|
3993 | end of any scanline are undefined.
|
---|
3994 |
|
---|
3995 | The XOR mask follows the AND mask on the next 4 bytes aligned offset:
|
---|
3996 | <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>
|
---|
3997 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
3998 | XOR mask scanlines have no gap between them and size of XOR mask is:
|
---|
3999 | <tt>cXor = width * 4 * height</tt>.
|
---|
4000 |
|
---|
4001 | <note>
|
---|
4002 | If 'shape' is equal to 0, only pointer visibility is being changed.
|
---|
4003 | </note>
|
---|
4004 | </desc>
|
---|
4005 | </param>
|
---|
4006 | </method>
|
---|
4007 |
|
---|
4008 | <method name="onMouseCapabilityChange">
|
---|
4009 | <desc>
|
---|
4010 | Notification when the mouse capabilities reported by the
|
---|
4011 | guest have changed. The new capabilities are passed.
|
---|
4012 | </desc>
|
---|
4013 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
4014 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
4015 | </method>
|
---|
4016 |
|
---|
4017 | <method name="onKeyboardLedsChange">
|
---|
4018 | <desc>
|
---|
4019 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
4020 | to alter the state of the keyboard LEDs.
|
---|
4021 | </desc>
|
---|
4022 | <param name="numLock" type="boolean" dir="in"/>
|
---|
4023 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
4024 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
4025 | </method>
|
---|
4026 |
|
---|
4027 | <method name="onStateChange">
|
---|
4028 | <desc>
|
---|
4029 | Notification when the execution state of the machine has changed.
|
---|
4030 | The new state will be given.
|
---|
4031 | </desc>
|
---|
4032 | <param name="state" type="MachineState" dir="in"/>
|
---|
4033 | </method>
|
---|
4034 |
|
---|
4035 | <method name="onAdditionsStateChange">
|
---|
4036 | <desc>
|
---|
4037 | Notification when a Guest Additions property changes.
|
---|
4038 | Interested callees should query IGuest attributes to
|
---|
4039 | find out what has changed.
|
---|
4040 | </desc>
|
---|
4041 | </method>
|
---|
4042 |
|
---|
4043 | <method name="onDVDDriveChange">
|
---|
4044 | <desc>
|
---|
4045 | Notification when a property of the
|
---|
4046 | virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
|
---|
4047 | Interested callees should use IDVDDrive methods to find out what has
|
---|
4048 | changed.
|
---|
4049 | </desc>
|
---|
4050 | </method>
|
---|
4051 |
|
---|
4052 | <method name="onFloppyDriveChange">
|
---|
4053 | <desc>
|
---|
4054 | Notification when a property of the
|
---|
4055 | virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
|
---|
4056 | Interested callees should use IFloppyDrive methods to find out what
|
---|
4057 | has changed.
|
---|
4058 | </desc>
|
---|
4059 | </method>
|
---|
4060 |
|
---|
4061 | <method name="onNetworkAdapterChange">
|
---|
4062 | <desc>
|
---|
4063 | Notification when a property of one of the
|
---|
4064 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
4065 | changes. Interested callees should use INetworkAdapter methods and
|
---|
4066 | attributes to find out what has changed.
|
---|
4067 | </desc>
|
---|
4068 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
4069 | <desc>Network adapter that is subject to change.</desc>
|
---|
4070 | </param>
|
---|
4071 | </method>
|
---|
4072 |
|
---|
4073 | <method name="onSerialPortChange">
|
---|
4074 | <desc>
|
---|
4075 | Notification when a property of one of the
|
---|
4076 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
4077 | Interested callees should use ISerialPort methods and attributes
|
---|
4078 | to find out what has changed.
|
---|
4079 | </desc>
|
---|
4080 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
4081 | <desc>Serial port that is subject to change.</desc>
|
---|
4082 | </param>
|
---|
4083 | </method>
|
---|
4084 |
|
---|
4085 | <method name="onParallelPortChange">
|
---|
4086 | <desc>
|
---|
4087 | Notification when a property of one of the
|
---|
4088 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
4089 | changes. Interested callees should use ISerialPort methods and
|
---|
4090 | attributes to find out what has changed.
|
---|
4091 | </desc>
|
---|
4092 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
4093 | <desc>Parallel port that is subject to change.</desc>
|
---|
4094 | </param>
|
---|
4095 | </method>
|
---|
4096 |
|
---|
4097 | <method name="onVRDPServerChange">
|
---|
4098 | <desc>
|
---|
4099 | Notification when a property of the
|
---|
4100 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
4101 | Interested callees should use IVRDPServer methods and attributes to
|
---|
4102 | find out what has changed.
|
---|
4103 | </desc>
|
---|
4104 | </method>
|
---|
4105 |
|
---|
4106 | <method name="onUSBControllerChange">
|
---|
4107 | <desc>
|
---|
4108 | Notification when a property of the virtual
|
---|
4109 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
4110 | Interested callees should use IUSBController methods and attributes to
|
---|
4111 | find out what has changed.
|
---|
4112 | </desc>
|
---|
4113 | </method>
|
---|
4114 |
|
---|
4115 | <method name="onUSBDeviceStateChange">
|
---|
4116 | <desc>
|
---|
4117 | Notification when a USB device is attached to or detached from
|
---|
4118 | the virtual USB controller.
|
---|
4119 |
|
---|
4120 | This notification is sent as a result of the indirect
|
---|
4121 | request to attach the device because it matches one of the
|
---|
4122 | machine USB filters, or as a result of the direct request
|
---|
4123 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
4124 | <link to="IConsole::detachUSBDevice"/>.
|
---|
4125 |
|
---|
4126 | This notification is sent in case of both a succeeded and a
|
---|
4127 | failed request completion. When the request succeeds, the @a
|
---|
4128 | error parameter is @c null, and the given device has been
|
---|
4129 | already added to (when @a attached is @c true) or removed from
|
---|
4130 | (when @a attached is @c false) the collection represented by
|
---|
4131 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
4132 | doesn't change and the @a error parameter represents the error
|
---|
4133 | message describing the failure.
|
---|
4134 |
|
---|
4135 | </desc>
|
---|
4136 | <param name="device" type="IUSBDevice" dir="in">
|
---|
4137 | <desc>Device that is subject to state change.</desc>
|
---|
4138 | </param>
|
---|
4139 | <param name="attached" type="boolean" dir="in">
|
---|
4140 | <desc>
|
---|
4141 | <tt>true</tt> if the device was attached
|
---|
4142 | and <tt>false</tt> otherwise.
|
---|
4143 | </desc>
|
---|
4144 | </param>
|
---|
4145 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
4146 | <desc>
|
---|
4147 | <tt>null</tt> on success or an error message object on
|
---|
4148 | failure.
|
---|
4149 | </desc>
|
---|
4150 | </param>
|
---|
4151 | </method>
|
---|
4152 |
|
---|
4153 | <method name="onSharedFolderChange">
|
---|
4154 | <desc>
|
---|
4155 | Notification when a shared folder is added or removed.
|
---|
4156 | The @a scope argument defines one of three scopes:
|
---|
4157 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
4158 | (<link to="Scope::Global">Global</link>),
|
---|
4159 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
4160 | the machine (<link to="Scope::Machine">Machine</link>) or <link
|
---|
4161 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
4162 | machine (<link to="Scope::Session">Session</link>). Interested callees
|
---|
4163 | should use query the corresponding collections to find out what has
|
---|
4164 | changed.
|
---|
4165 | </desc>
|
---|
4166 | <param name="scope" type="Scope" dir="in">
|
---|
4167 | <desc>Scope of the notification.</desc>
|
---|
4168 | </param>
|
---|
4169 | </method>
|
---|
4170 |
|
---|
4171 | <method name="onRuntimeError">
|
---|
4172 | <desc>
|
---|
4173 | Notification when an error happens during the virtual
|
---|
4174 | machine execution.
|
---|
4175 |
|
---|
4176 | There are three kinds of runtime errors:
|
---|
4177 | <ul>
|
---|
4178 | <li><i>fatal</i></li>
|
---|
4179 | <li><i>non-fatal with retry</i></li>
|
---|
4180 | <li><i>non-fatal warnings</i></li>
|
---|
4181 | </ul>
|
---|
4182 |
|
---|
4183 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
4184 | to <tt>true</tt>. In case of fatal errors, the virtual machine
|
---|
4185 | execution is always paused before calling this notification, and
|
---|
4186 | the notification handler is supposed either to immediately save
|
---|
4187 | the virtual machine state using <link to="IConsole::saveState()"/>
|
---|
4188 | or power it off using <link to="IConsole::powerDown()"/>.
|
---|
4189 | Resuming the execution can lead to unpredictable results.
|
---|
4190 |
|
---|
4191 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
4192 | @a fatal parameter set to <tt>false</tt>. If the virtual machine
|
---|
4193 | is in the Paused state by the time the error notification is
|
---|
4194 | received, it means that the user can <i>try to resume</i> the machine
|
---|
4195 | execution after attempting to solve the problem that caused the
|
---|
4196 | error. In this case, the notification handler is supposed
|
---|
4197 | to show an appropriate message to the user (depending on the
|
---|
4198 | value of the @a id parameter) that offers several actions such
|
---|
4199 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
4200 | wants to retry, the notification handler should continue
|
---|
4201 | the machine execution using the <link to="IConsole::resume()"/>
|
---|
4202 | call. If the machine execution is not Paused during this
|
---|
4203 | notification, then it means this notification is a <i>warning</i>
|
---|
4204 | (for example, about a fatal condition that can happen very soon);
|
---|
4205 | no immediate action is required from the user, the machine
|
---|
4206 | continues its normal execution.
|
---|
4207 |
|
---|
4208 | Note that in either case the notification handler
|
---|
4209 | <b>must not</b> perform any action directly on a thread
|
---|
4210 | where this notification is called. Everything it is allowed to
|
---|
4211 | do is to post a message to another thread that will then talk
|
---|
4212 | to the user and take the corresponding action.
|
---|
4213 |
|
---|
4214 | Currently, the following error identifiers are known:
|
---|
4215 | <ul>
|
---|
4216 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
4217 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
4218 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
4219 | </ul>
|
---|
4220 |
|
---|
4221 | <note>
|
---|
4222 | This notification is not designed to be implemented by
|
---|
4223 | more than one callback at a time. If you have multiple
|
---|
4224 | IConsoleCallback instances registered on the given
|
---|
4225 | IConsole object, make sure you simply do nothing but
|
---|
4226 | return @c S_OK from all but one of them that does actual
|
---|
4227 | user notification and performs necessary actions.
|
---|
4228 | </note>
|
---|
4229 |
|
---|
4230 | </desc>
|
---|
4231 | <param name="fatal" type="boolean" dir="in">
|
---|
4232 | <desc>Whether the error is fatal or not</desc>
|
---|
4233 | </param>
|
---|
4234 | <param name="id" type="wstring" dir="in">
|
---|
4235 | <desc>Error identifier</desc>
|
---|
4236 | </param>
|
---|
4237 | <param name="message" type="wstring" dir="in">
|
---|
4238 | <desc>Optional error message</desc>
|
---|
4239 | </param>
|
---|
4240 | </method>
|
---|
4241 |
|
---|
4242 | <method name="onCanShowWindow">
|
---|
4243 | <desc>
|
---|
4244 | Notification when a call to
|
---|
4245 | <link to="IMachine::canShowConsoleWindow()"/> is made by a
|
---|
4246 | front-end to check if a subsequent call to
|
---|
4247 | <link to="IMachine::showConsoleWindow()"/> can succeed.
|
---|
4248 |
|
---|
4249 | The callee should give an answer appropriate to the current
|
---|
4250 | machine state in the @a canShow argument. This answer must
|
---|
4251 | remain valid at least until the next
|
---|
4252 | <link to="IConsole::state">machine state</link> change.
|
---|
4253 |
|
---|
4254 | <note>
|
---|
4255 | This notification is not designed to be implemented by
|
---|
4256 | more than one callback at a time. If you have multiple
|
---|
4257 | IConsoleCallback instances registered on the given
|
---|
4258 | IConsole object, make sure you simply do nothing but
|
---|
4259 | return @c true and @c S_OK from all but one of them that
|
---|
4260 | actually manages console window activation.
|
---|
4261 | </note>
|
---|
4262 | </desc>
|
---|
4263 | <param name="canShow" type="boolean" dir="return">
|
---|
4264 | <desc>
|
---|
4265 | @c true if the console window can be shown and @c
|
---|
4266 | false otherwise.
|
---|
4267 | </desc>
|
---|
4268 | </param>
|
---|
4269 | </method>
|
---|
4270 |
|
---|
4271 | <method name="onShowWindow">
|
---|
4272 | <desc>
|
---|
4273 | Notification when a call to
|
---|
4274 | <link to="IMachine::showConsoleWindow()"/>
|
---|
4275 | requests the console window to be activated and brought to
|
---|
4276 | foreground on the desktop of the host PC.
|
---|
4277 |
|
---|
4278 | This notification should cause the VM console process to
|
---|
4279 | perform the requested action as described above. If it is
|
---|
4280 | impossible to do it at a time of this notification, this
|
---|
4281 | method should return a failure.
|
---|
4282 |
|
---|
4283 | Note that many modern window managers on many platforms
|
---|
4284 | implement some sort of focus stealing prevention logic, so
|
---|
4285 | that it may be impossible to activate a window without the
|
---|
4286 | help of the currently active application (which is supposedly
|
---|
4287 | an initiator of this notification). In this case, this method
|
---|
4288 | must return a non-zero identifier that represents the
|
---|
4289 | top-level window of the VM console process. The caller, if it
|
---|
4290 | represents a currently active process, is responsible to use
|
---|
4291 | this identifier (in a platform-dependent manner) to perform
|
---|
4292 | actual window activation.
|
---|
4293 |
|
---|
4294 | This method must set @a winId to zero if it has performed all
|
---|
4295 | actions necessary to complete the request and the console
|
---|
4296 | window is now active and in foreground, to indicate that no
|
---|
4297 | further action is required on the caller's side.
|
---|
4298 |
|
---|
4299 | <note>
|
---|
4300 | This notification is not designed to be implemented by
|
---|
4301 | more than one callback at a time. If you have multiple
|
---|
4302 | IConsoleCallback instances registered on the given
|
---|
4303 | IConsole object, make sure you simply do nothing but
|
---|
4304 | return @c S_OK from all but one of them that actually
|
---|
4305 | manages console window activation.
|
---|
4306 | </note>
|
---|
4307 | </desc>
|
---|
4308 | <param name="winId" type="unsigned long long" dir="return">
|
---|
4309 | <desc>
|
---|
4310 | Platform-dependent identifier of the top-level VM console
|
---|
4311 | window, or zero if this method has performed all actions
|
---|
4312 | necessary to implement the <i>show window</i> semantics for
|
---|
4313 | the given platform and/or this VirtualBox front-end.
|
---|
4314 | </desc>
|
---|
4315 | </param>
|
---|
4316 | </method>
|
---|
4317 |
|
---|
4318 | </interface>
|
---|
4319 |
|
---|
4320 | <interface
|
---|
4321 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
4322 | uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
|
---|
4323 | wsmap="struct"
|
---|
4324 | >
|
---|
4325 | <desc>
|
---|
4326 | Contains information about the remote display (VRDP) capabilities and status.
|
---|
4327 | This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
|
---|
4328 | </desc>
|
---|
4329 |
|
---|
4330 | <attribute name="active" type="boolean" readonly="yes">
|
---|
4331 | <desc>
|
---|
4332 | Whether the remote display connection is active.
|
---|
4333 | </desc>
|
---|
4334 | </attribute>
|
---|
4335 |
|
---|
4336 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
4337 | <desc>
|
---|
4338 | How many times a client connected.
|
---|
4339 | </desc>
|
---|
4340 | </attribute>
|
---|
4341 |
|
---|
4342 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
4343 | <desc>
|
---|
4344 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
4345 | </desc>
|
---|
4346 | </attribute>
|
---|
4347 |
|
---|
4348 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
4349 | <desc>
|
---|
4350 | When the last connection was terminated or the current time, if
|
---|
4351 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
4352 | </desc>
|
---|
4353 | </attribute>
|
---|
4354 |
|
---|
4355 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
4356 | <desc>
|
---|
4357 | How many bytes were sent in last or current, if still active, connection.
|
---|
4358 | </desc>
|
---|
4359 | </attribute>
|
---|
4360 |
|
---|
4361 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
4362 | <desc>
|
---|
4363 | How many bytes were sent in all connections.
|
---|
4364 | </desc>
|
---|
4365 | </attribute>
|
---|
4366 |
|
---|
4367 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
4368 | <desc>
|
---|
4369 | How many bytes were received in last or current, if still active, connection.
|
---|
4370 | </desc>
|
---|
4371 | </attribute>
|
---|
4372 |
|
---|
4373 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
4374 | <desc>
|
---|
4375 | How many bytes were received in all connections.
|
---|
4376 | </desc>
|
---|
4377 | </attribute>
|
---|
4378 |
|
---|
4379 | <attribute name="user" type="wstring" readonly="yes">
|
---|
4380 | <desc>
|
---|
4381 | Login user name supplied by the client.
|
---|
4382 | </desc>
|
---|
4383 | </attribute>
|
---|
4384 |
|
---|
4385 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
4386 | <desc>
|
---|
4387 | Login domain name supplied by the client.
|
---|
4388 | </desc>
|
---|
4389 | </attribute>
|
---|
4390 |
|
---|
4391 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
4392 | <desc>
|
---|
4393 | The client name supplied by the client.
|
---|
4394 | </desc>
|
---|
4395 | </attribute>
|
---|
4396 |
|
---|
4397 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
4398 | <desc>
|
---|
4399 | The IP address of the client.
|
---|
4400 | </desc>
|
---|
4401 | </attribute>
|
---|
4402 |
|
---|
4403 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
4404 | <desc>
|
---|
4405 | The client software version number.
|
---|
4406 | </desc>
|
---|
4407 | </attribute>
|
---|
4408 |
|
---|
4409 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
4410 | <desc>
|
---|
4411 | Public key exchange method used when connection was established.
|
---|
4412 | Values: 0 - RDP4 public key exchange scheme.
|
---|
4413 | 1 - X509 certificates were sent to client.
|
---|
4414 | </desc>
|
---|
4415 | </attribute>
|
---|
4416 |
|
---|
4417 | </interface>
|
---|
4418 |
|
---|
4419 | <interface
|
---|
4420 | name="IConsole" extends="$unknown"
|
---|
4421 | uuid="e3c6d4a1-a935-47ca-b16d-f9e9c496e53e"
|
---|
4422 | wsmap="managed"
|
---|
4423 | >
|
---|
4424 | <desc>
|
---|
4425 | The IConsole interface represents an interface to control virtual
|
---|
4426 | machine execution.
|
---|
4427 |
|
---|
4428 | The console object that implements the IConsole interface is obtained
|
---|
4429 | from a session object after the session for the given machine has been
|
---|
4430 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
4431 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
4432 | <link to="IVirtualBox::openExistingSession"/> methods.
|
---|
4433 |
|
---|
4434 | Methods of the IConsole interface allow the caller to query the current
|
---|
4435 | virtual machine execution state, pause the machine or power it down, save
|
---|
4436 | the machine state or take a snapshot, attach and detach removable media
|
---|
4437 | and so on.
|
---|
4438 |
|
---|
4439 | <see>ISession</see>
|
---|
4440 | </desc>
|
---|
4441 |
|
---|
4442 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
4443 | <desc>
|
---|
4444 | Machine object this console is sessioned with.
|
---|
4445 | <note>
|
---|
4446 | This is a convenience property, it has the same value as
|
---|
4447 | <link to="ISession::machine"/> of the corresponding session
|
---|
4448 | object.
|
---|
4449 | </note>
|
---|
4450 | </desc>
|
---|
4451 | </attribute>
|
---|
4452 |
|
---|
4453 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
4454 | <desc>
|
---|
4455 | Current execution state of the machine.
|
---|
4456 | <note>
|
---|
4457 | This property always returns the same value as the corresponding
|
---|
4458 | property of the IMachine object this console is sessioned with.
|
---|
4459 | For the process that owns (executes) the VM, this is the
|
---|
4460 | preferable way of querying the VM state, because no IPC
|
---|
4461 | calls are made.
|
---|
4462 | </note>
|
---|
4463 | </desc>
|
---|
4464 | </attribute>
|
---|
4465 |
|
---|
4466 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
4467 | <desc>Guest object.</desc>
|
---|
4468 | </attribute>
|
---|
4469 |
|
---|
4470 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
4471 | <desc>
|
---|
4472 | Virtual keyboard object.
|
---|
4473 | <note>
|
---|
4474 | If the machine is not running, any attempt to use
|
---|
4475 | the returned object will result in an error.
|
---|
4476 | </note>
|
---|
4477 | </desc>
|
---|
4478 | </attribute>
|
---|
4479 |
|
---|
4480 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
4481 | <desc>
|
---|
4482 | Virtual mouse object.
|
---|
4483 | <note>
|
---|
4484 | If the machine is not running, any attempt to use
|
---|
4485 | the returned object will result in an error.
|
---|
4486 | </note>
|
---|
4487 | </desc>
|
---|
4488 | </attribute>
|
---|
4489 |
|
---|
4490 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
4491 | <desc>Virtual display object.
|
---|
4492 | <note>
|
---|
4493 | If the machine is not running, any attempt to use
|
---|
4494 | the returned object will result in an error.
|
---|
4495 | </note>
|
---|
4496 | </desc>
|
---|
4497 | </attribute>
|
---|
4498 |
|
---|
4499 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
4500 | <desc>Debugging interface.</desc>
|
---|
4501 | </attribute>
|
---|
4502 |
|
---|
4503 | <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
|
---|
4504 | <desc>
|
---|
4505 | Collection of USB devices currently attached to the virtual
|
---|
4506 | USB controller.
|
---|
4507 | <note>
|
---|
4508 | The collection is empty if the machine is not running.
|
---|
4509 | </note>
|
---|
4510 | </desc>
|
---|
4511 | </attribute>
|
---|
4512 |
|
---|
4513 | <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
4514 | <desc>
|
---|
4515 | List of USB devices currently attached to the remote VRDP client.
|
---|
4516 | Once a new device is physically attached to the remote host computer,
|
---|
4517 | it appears in this list and remains there until detached.
|
---|
4518 | </desc>
|
---|
4519 | </attribute>
|
---|
4520 |
|
---|
4521 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
4522 | <desc>
|
---|
4523 | Collection of shared folders for the current session. These folders
|
---|
4524 | are called transient shared folders because they are available to the
|
---|
4525 | guest OS running inside the associated virtual machine only for the
|
---|
4526 | duration of the session (as opposed to
|
---|
4527 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
4528 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
4529 | these folders are automatically discarded.
|
---|
4530 |
|
---|
4531 | New shared folders are added to the collection using
|
---|
4532 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
4533 | removed using <link to="#removeSharedFolder"/>.
|
---|
4534 | </desc>
|
---|
4535 | </attribute>
|
---|
4536 |
|
---|
4537 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
4538 | <desc>
|
---|
4539 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
4540 | </desc>
|
---|
4541 | </attribute>
|
---|
4542 |
|
---|
4543 | <method name="powerUp">
|
---|
4544 | <desc>
|
---|
4545 | Starts the virtual machine execution using the current machine
|
---|
4546 | state (that is, its current execution state, current settings and
|
---|
4547 | current hard disks).
|
---|
4548 |
|
---|
4549 | If the machine is powered off or aborted, the execution will
|
---|
4550 | start from the beginning (as if the real hardware were just
|
---|
4551 | powered on).
|
---|
4552 |
|
---|
4553 | If the machine is in the <link to="MachineState::Saved"/> state,
|
---|
4554 | it will continue its execution the point where the state has
|
---|
4555 | been saved.
|
---|
4556 |
|
---|
4557 | <note>
|
---|
4558 | Unless you are trying to write a new VirtualBox front-end that
|
---|
4559 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
4560 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
4561 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
4562 | session only to change virtual machine settings. If you simply want to
|
---|
4563 | start virtual machine execution using one of the existing front-ends
|
---|
4564 | (for example the VirtualBox GUI or headless server), simply use
|
---|
4565 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
|
---|
4566 | power up the machine automatically for you.
|
---|
4567 | </note>
|
---|
4568 |
|
---|
4569 | <see>#saveState</see>
|
---|
4570 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4571 | Virtual machine already running.
|
---|
4572 | </result>
|
---|
4573 | <result name="VBOX_E_HOST_ERROR">
|
---|
4574 | Host interface does not exist or name not set.
|
---|
4575 | </result>
|
---|
4576 | <result name="VBOX_E_FILE_ERROR">
|
---|
4577 | Invalid saved state file.
|
---|
4578 | </result>
|
---|
4579 | </desc>
|
---|
4580 | <param name="progress" type="IProgress" dir="return">
|
---|
4581 | <desc>Progress object to track the operation completion.</desc>
|
---|
4582 | </param>
|
---|
4583 | </method>
|
---|
4584 |
|
---|
4585 | <method name="powerUpPaused">
|
---|
4586 | <desc>
|
---|
4587 | Identical to powerUp except that the VM will enter the
|
---|
4588 | <link to="MachineState::Paused"/> state, instead of
|
---|
4589 | <link to="MachineState::Running"/>.
|
---|
4590 |
|
---|
4591 | <see>#powerUp</see>
|
---|
4592 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4593 | Virtual machine already running.
|
---|
4594 | </result>
|
---|
4595 | <result name="VBOX_E_HOST_ERROR">
|
---|
4596 | Host interface does not exist or name not set.
|
---|
4597 | </result>
|
---|
4598 | <result name="VBOX_E_FILE_ERROR">
|
---|
4599 | Invalid saved state file.
|
---|
4600 | </result>
|
---|
4601 | </desc>
|
---|
4602 | <param name="progress" type="IProgress" dir="return">
|
---|
4603 | <desc>Progress object to track the operation completion.</desc>
|
---|
4604 | </param>
|
---|
4605 | </method>
|
---|
4606 |
|
---|
4607 | <method name="powerDown">
|
---|
4608 | <desc>
|
---|
4609 | Stops the virtual machine execution.
|
---|
4610 | After this operation completes, the machine will go to the
|
---|
4611 | PoweredOff state.
|
---|
4612 |
|
---|
4613 | @deprecated This method will be removed in VirtualBox 2.1 where the
|
---|
4614 | powerDownAsync() method will take its name. Do not use this method in
|
---|
4615 | the code.
|
---|
4616 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4617 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
4618 | </result>
|
---|
4619 | <result name="VBOX_E_VM_ERROR">
|
---|
4620 | Unable to power off or destroy virtual machine.
|
---|
4621 | </result>
|
---|
4622 | </desc>
|
---|
4623 | </method>
|
---|
4624 |
|
---|
4625 | <method name="powerDownAsync">
|
---|
4626 | <desc>
|
---|
4627 | Initiates the power down procedure to stop the virtual machine
|
---|
4628 | execution.
|
---|
4629 |
|
---|
4630 | The completion of the power down procedure is tracked using the returned
|
---|
4631 | IProgress object. After the operation is complete, the machine will go
|
---|
4632 | to the PoweredOff state.
|
---|
4633 |
|
---|
4634 | @warning This method will be renamed to "powerDown" in VirtualBox 2.1
|
---|
4635 | where the original powerDown() method will be removed. You will need to
|
---|
4636 | rename "powerDownAsync" to "powerDown" in your sources to make them
|
---|
4637 | build with version 2.1.
|
---|
4638 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4639 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
4640 | </result>
|
---|
4641 | </desc>
|
---|
4642 | <param name="progress" type="IProgress" dir="return">
|
---|
4643 | <desc>Progress object to track the operation completion.</desc>
|
---|
4644 | </param>
|
---|
4645 | </method>
|
---|
4646 |
|
---|
4647 | <method name="reset">
|
---|
4648 | <desc>Resets the virtual machine.</desc>
|
---|
4649 | </method>
|
---|
4650 |
|
---|
4651 | <method name="pause">
|
---|
4652 | <desc>Pauses the virtual machine execution.</desc>
|
---|
4653 | </method>
|
---|
4654 |
|
---|
4655 | <method name="resume">
|
---|
4656 | <desc>Resumes the virtual machine execution.</desc>
|
---|
4657 | </method>
|
---|
4658 |
|
---|
4659 | <method name="powerButton">
|
---|
4660 | <desc>Send the ACPI power button event to the guest.</desc>
|
---|
4661 | </method>
|
---|
4662 |
|
---|
4663 | <method name="sleepButton">
|
---|
4664 | <desc>Send the ACPI sleep button event to the guest.</desc>
|
---|
4665 | </method>
|
---|
4666 |
|
---|
4667 | <method name="getPowerButtonHandled">
|
---|
4668 | <desc>Check if the last power button event was handled by guest.</desc>
|
---|
4669 | <param name="handled" type="boolean" dir="return"/>
|
---|
4670 | </method>
|
---|
4671 |
|
---|
4672 | <method name="getGuestEnteredACPIMode">
|
---|
4673 | <desc>Check if the guest entered the ACPI mode G0 (working) or
|
---|
4674 | G1 (sleeping). If this method returns false, the guest will
|
---|
4675 | most likely not respond to external ACPI events.</desc>
|
---|
4676 | <param name="entered" type="boolean" dir="return"/>
|
---|
4677 | </method>
|
---|
4678 |
|
---|
4679 | <method name="saveState">
|
---|
4680 | <desc>
|
---|
4681 | Saves the current execution state of a running virtual machine
|
---|
4682 | and stops its execution.
|
---|
4683 |
|
---|
4684 | After this operation completes, the machine will go to the
|
---|
4685 | Saved state. Next time it is powered up, this state will
|
---|
4686 | be restored and the machine will continue its execution from
|
---|
4687 | the place where it was saved.
|
---|
4688 |
|
---|
4689 | This operation differs from taking a snapshot to the effect
|
---|
4690 | that it doesn't create new differencing hard disks. Also, once
|
---|
4691 | the machine is powered up from the state saved using this method,
|
---|
4692 | the saved state is deleted, so it will be impossible to return
|
---|
4693 | to this state later.
|
---|
4694 |
|
---|
4695 | <note>
|
---|
4696 | On success, this method implicitly calls
|
---|
4697 | <link to="IMachine::saveSettings()"/> to save all current machine
|
---|
4698 | settings (including runtime changes to the DVD drive, etc.).
|
---|
4699 | Together with the impossibility to change any VM settings when it is
|
---|
4700 | in the Saved state, this guarantees the adequate hardware
|
---|
4701 | configuration of the machine when it is restored from the saved
|
---|
4702 | state file.
|
---|
4703 | </note>
|
---|
4704 |
|
---|
4705 | <note>
|
---|
4706 | The machine must be in the Running or Paused state, otherwise
|
---|
4707 | the operation will fail.
|
---|
4708 | </note>
|
---|
4709 |
|
---|
4710 | <see><link to="#takeSnapshot"/></see>
|
---|
4711 | </desc>
|
---|
4712 | <param name="progress" type="IProgress" dir="return">
|
---|
4713 | <desc>Progress object to track the operation completion.</desc>
|
---|
4714 | </param>
|
---|
4715 | </method>
|
---|
4716 |
|
---|
4717 | <method name="adoptSavedState">
|
---|
4718 | <desc>
|
---|
4719 | Associates the given saved state file to the virtual machine.
|
---|
4720 |
|
---|
4721 | On success, the machine will go to the Saved state. Next time it is
|
---|
4722 | powered up, it will be restored from the adopted saved state and
|
---|
4723 | continue execution from the place where the saved state file was
|
---|
4724 | created.
|
---|
4725 |
|
---|
4726 | The specified saved state file path may be full or relative to the
|
---|
4727 | folder the VM normally saves the state to (usually,
|
---|
4728 | <link to="IMachine::snapshotFolder"/>).
|
---|
4729 |
|
---|
4730 | <note>
|
---|
4731 | It's a caller's responsibility to make sure the given saved state
|
---|
4732 | file is compatible with the settings of this virtual machine that
|
---|
4733 | represent its virtual hardware (memory size, hard disk configuration
|
---|
4734 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
4735 | is undefined.
|
---|
4736 | </note>
|
---|
4737 | </desc>
|
---|
4738 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
4739 | <desc>Path to the saved state file to adopt.</desc>
|
---|
4740 | </param>
|
---|
4741 | </method>
|
---|
4742 |
|
---|
4743 | <method name="discardSavedState">
|
---|
4744 | <desc>
|
---|
4745 | Discards (deletes) the saved state of the virtual machine
|
---|
4746 | previously created by <link to="#saveState"/>. Next time the
|
---|
4747 | machine is powered up, a clean boot will occur.
|
---|
4748 | <note>
|
---|
4749 | This operation is equivalent to resetting or powering off
|
---|
4750 | the machine without doing a proper shutdown in the guest OS.
|
---|
4751 | </note>
|
---|
4752 | </desc>
|
---|
4753 | </method>
|
---|
4754 |
|
---|
4755 | <method name="getDeviceActivity">
|
---|
4756 | <desc>
|
---|
4757 | Gets the current activity type of a given device or device group.
|
---|
4758 | </desc>
|
---|
4759 | <param name="type" type="DeviceType" dir="in"/>
|
---|
4760 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
4761 | </method>
|
---|
4762 |
|
---|
4763 | <method name="attachUSBDevice">
|
---|
4764 | <desc>
|
---|
4765 | Attaches a host USB device with the given UUID to the
|
---|
4766 | USB controller of the virtual machine.
|
---|
4767 |
|
---|
4768 | The device needs to be in one of the following states:
|
---|
4769 | <link to="USBDeviceState::Busy">Busy</link>,
|
---|
4770 | <link to="USBDeviceState::Available">Available</link> or
|
---|
4771 | <link to="USBDeviceState::Held">Held</link>,
|
---|
4772 | otherwise an error is immediately returned.
|
---|
4773 |
|
---|
4774 | When the device state is
|
---|
4775 | <link to="USBDeviceState::Busy">Busy</link>, an error may also
|
---|
4776 | be returned if the host computer refuses to release it for some reason.
|
---|
4777 |
|
---|
4778 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
4779 | </desc>
|
---|
4780 | <param name="id" type="uuid" dir="in">
|
---|
4781 | <desc>UUID of the host USB device to attach.</desc>
|
---|
4782 | </param>
|
---|
4783 | </method>
|
---|
4784 |
|
---|
4785 | <method name="detachUSBDevice">
|
---|
4786 | <desc>
|
---|
4787 | Detaches an USB device with the given UUID from the USB controller
|
---|
4788 | of the virtual machine.
|
---|
4789 |
|
---|
4790 | After this method succeeds, the VirtualBox server re-initiates
|
---|
4791 | all USB filters as if the device were just physically attached
|
---|
4792 | to the host, but filters of this machine are ignored to avoid
|
---|
4793 | a possible automatic re-attachment.
|
---|
4794 |
|
---|
4795 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
4796 | </desc>
|
---|
4797 | <param name="id" type="uuid" dir="in">
|
---|
4798 | <desc>UUID of the USB device to detach.</desc>
|
---|
4799 | </param>
|
---|
4800 | <param name="device" type="IUSBDevice" dir="return">
|
---|
4801 | <desc>Detached USB device.</desc>
|
---|
4802 | </param>
|
---|
4803 | </method>
|
---|
4804 |
|
---|
4805 | <method name="createSharedFolder">
|
---|
4806 | <desc>
|
---|
4807 | Creates a transient new shared folder by associating the given logical
|
---|
4808 | name with the given host path, adds it to the collection of shared
|
---|
4809 | folders and starts sharing it. Refer to the description of
|
---|
4810 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
4811 | </desc>
|
---|
4812 | <param name="name" type="wstring" dir="in">
|
---|
4813 | <desc>Unique logical name of the shared folder.</desc>
|
---|
4814 | </param>
|
---|
4815 | <param name="hostPath" type="wstring" dir="in">
|
---|
4816 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
4817 | </param>
|
---|
4818 | <param name="writable" type="boolean" dir="in">
|
---|
4819 | <desc>Whether the share is writable or readonly</desc>
|
---|
4820 | </param>
|
---|
4821 | </method>
|
---|
4822 |
|
---|
4823 | <method name="removeSharedFolder">
|
---|
4824 | <desc>
|
---|
4825 | Removes a transient shared folder with the given name previously
|
---|
4826 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
4827 | shared folders and stops sharing it.
|
---|
4828 | </desc>
|
---|
4829 | <param name="name" type="wstring" dir="in">
|
---|
4830 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
4831 | </param>
|
---|
4832 | </method>
|
---|
4833 |
|
---|
4834 | <method name="takeSnapshot">
|
---|
4835 | <desc>
|
---|
4836 | Saves the current execution state and all settings of the
|
---|
4837 | machine and creates differencing images for all
|
---|
4838 | normal (non-independent) hard disks.
|
---|
4839 |
|
---|
4840 | This method can be called for a PoweredOff, Saved, Running or
|
---|
4841 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
4842 | offline <link to="ISnapshot">snapshot</link> is created,
|
---|
4843 | in all other cases -- an online snapshot.
|
---|
4844 |
|
---|
4845 | The taken snapshot is always based on the
|
---|
4846 | <link to="IMachine::currentSnapshot">current
|
---|
4847 | snapshot</link> of the associated virtual machine and becomes
|
---|
4848 | a new current snapshot.
|
---|
4849 |
|
---|
4850 | <note>
|
---|
4851 | This method implicitly calls <link to="IMachine::saveSettings()"/> to
|
---|
4852 | save all current machine settings before taking an offline snapshot.
|
---|
4853 | </note>
|
---|
4854 |
|
---|
4855 | <see>ISnapshot, <link to="#saveState"/></see>
|
---|
4856 | </desc>
|
---|
4857 | <param name="name" type="wstring" dir="in">
|
---|
4858 | <desc>Short name for the snapshot.</desc>
|
---|
4859 | </param>
|
---|
4860 | <param name="description" type="wstring" dir="in">
|
---|
4861 | <desc>Optional description of the snapshot.</desc>
|
---|
4862 | </param>
|
---|
4863 | <param name="progress" type="IProgress" dir="return">
|
---|
4864 | <desc>Progress object to track the operation completion.</desc>
|
---|
4865 | </param>
|
---|
4866 | </method>
|
---|
4867 |
|
---|
4868 | <method name="discardSnapshot">
|
---|
4869 | <desc>
|
---|
4870 |
|
---|
4871 | Starts discarding the specified snapshot. The execution state
|
---|
4872 | and settings of the associated machine stored in the snapshot
|
---|
4873 | will be deleted. The contents of all differencing hard disks of
|
---|
4874 | this snapshot will be merged with the contents of their
|
---|
4875 | dependent child hard disks to keep the, disks valid (in other
|
---|
4876 | words, all changes represented by hard disks being discarded
|
---|
4877 | will be propagated to their child hard disks). After that, this
|
---|
4878 | snapshot's differencing hard disks will be deleted. The parent
|
---|
4879 | of this snapshot will become a new parent for all its child
|
---|
4880 | snapshots.
|
---|
4881 |
|
---|
4882 | If the discarded snapshot is the current one, its parent
|
---|
4883 | snapshot will become a new current snapshot. The current machine
|
---|
4884 | state is not directly affected in this case, except that
|
---|
4885 | currently attached differencing hard disks based on hard disks
|
---|
4886 | of the discarded snapshot will be also merged as described
|
---|
4887 | above.
|
---|
4888 |
|
---|
4889 | If the discarded snapshot is the first one (the root snapshot)
|
---|
4890 | and it has exactly one child snapshot, this child snapshot will
|
---|
4891 | become the first snapshot after discarding. If there are no
|
---|
4892 | children at all (i.e. the first snapshot is the only snapshot of
|
---|
4893 | the machine), both the current and the first snapshot of the
|
---|
4894 | machine will be set to null. In all other cases, the first
|
---|
4895 | snapshot cannot be discarded.
|
---|
4896 |
|
---|
4897 | You cannot discard the snapshot if it
|
---|
4898 | stores <link to="HardDiskType::Normal">normal</link> (non-differencing)
|
---|
4899 | hard disks that have differencing hard disks based on them. Snapshots of
|
---|
4900 | such kind can be discarded only when every normal hard disk has either
|
---|
4901 | no children at all or exactly one child. In the former case, the normal
|
---|
4902 | hard disk simply becomes unused (i.e. not attached to any VM). In the
|
---|
4903 | latter case, it receives all the changes stored in the child hard disk,
|
---|
4904 | and then it replaces the child hard disk in the configuration of the
|
---|
4905 | corresponding snapshot or machine.
|
---|
4906 |
|
---|
4907 | Also, you cannot discard the snapshot if it stores hard disks
|
---|
4908 | (of any type) having differencing child hard disks that belong
|
---|
4909 | to other machines. Such snapshots can be only discarded after
|
---|
4910 | you discard all snapshots of other machines containing "foreign"
|
---|
4911 | child disks, or detach these "foreign" child disks from machines
|
---|
4912 | they are attached to.
|
---|
4913 |
|
---|
4914 | One particular example of the snapshot storing normal hard disks
|
---|
4915 | is the first snapshot of a virtual machine that had normal hard
|
---|
4916 | disks attached when taking the snapshot. Be careful when
|
---|
4917 | discarding such snapshots because this implicitly commits
|
---|
4918 | changes (made since the snapshot being discarded has been taken)
|
---|
4919 | to normal hard disks (as described above), which may be not what
|
---|
4920 | you want.
|
---|
4921 |
|
---|
4922 | The virtual machine is put to
|
---|
4923 | the <link to="MachineState::Discarding">Discarding</link> state until
|
---|
4924 | the discard operation is completed.
|
---|
4925 |
|
---|
4926 | <note>
|
---|
4927 | The machine must not be running, otherwise the operation
|
---|
4928 | will fail.
|
---|
4929 | </note>
|
---|
4930 |
|
---|
4931 | <note>
|
---|
4932 | Child hard disks of all normal hard disks of the discarded snapshot
|
---|
4933 | must be accessible (see <link to="IMedium::state"/>) for this
|
---|
4934 | operation to succeed. In particular, this means that all virtual
|
---|
4935 | machines, whose hard disks are directly or indirectly based on the
|
---|
4936 | hard disks of discarded snapshot, must be powered off.
|
---|
4937 | </note>
|
---|
4938 | <note>
|
---|
4939 | Merging hard disk contents can be very time and disk space
|
---|
4940 | consuming, if these disks are big in size and have many
|
---|
4941 | children. However, if the snapshot being discarded is the last
|
---|
4942 | (head) snapshot on the branch, the operation will be rather
|
---|
4943 | quick.
|
---|
4944 | </note>
|
---|
4945 | <note>
|
---|
4946 | Note that discarding the current snapshot
|
---|
4947 | will implicitly call <link to="IMachine::saveSettings()"/> to
|
---|
4948 | make all current machine settings permanent.
|
---|
4949 | </note>
|
---|
4950 | </desc>
|
---|
4951 | <param name="id" type="uuid" dir="in">
|
---|
4952 | <desc>UUID of the snapshot to discard.</desc>
|
---|
4953 | </param>
|
---|
4954 | <param name="progress" type="IProgress" dir="return">
|
---|
4955 | <desc>Progress object to track the operation completion.</desc>
|
---|
4956 | </param>
|
---|
4957 | </method>
|
---|
4958 |
|
---|
4959 | <method name="discardCurrentState">
|
---|
4960 | <desc>
|
---|
4961 | This operation is similar to <link to="#discardSnapshot()"/> but
|
---|
4962 | affects the current machine state. This means that the state stored in
|
---|
4963 | the current snapshot will become a new current state, and all current
|
---|
4964 | settings of the machine and changes stored in differencing hard disks
|
---|
4965 | will be lost.
|
---|
4966 |
|
---|
4967 | After this operation is successfully completed, new empty differencing
|
---|
4968 | hard disks are created for all normal hard disks of the machine.
|
---|
4969 |
|
---|
4970 | If the current snapshot of the machine is an online snapshot, the
|
---|
4971 | machine will go to the <link to="MachineState::Saved"> saved
|
---|
4972 | state</link>, so that the next time it is powered on, the execution
|
---|
4973 | state will be restored from the current snapshot.
|
---|
4974 |
|
---|
4975 | <note>
|
---|
4976 | The machine must not be running, otherwise the operation will fail.
|
---|
4977 | </note>
|
---|
4978 |
|
---|
4979 | <note>
|
---|
4980 | If the machine state is <link to="MachineState::Saved">Saved</link>
|
---|
4981 | prior to this operation, the saved state file will be implicitly
|
---|
4982 | discarded (as if <link to="IConsole::discardSavedState()"/> were
|
---|
4983 | called).
|
---|
4984 | </note>
|
---|
4985 |
|
---|
4986 | </desc>
|
---|
4987 | <param name="progress" type="IProgress" dir="return">
|
---|
4988 | <desc>Progress object to track the operation completion.</desc>
|
---|
4989 | </param>
|
---|
4990 | </method>
|
---|
4991 |
|
---|
4992 | <method name="discardCurrentSnapshotAndState">
|
---|
4993 | <desc>
|
---|
4994 |
|
---|
4995 | This method is equivalent to
|
---|
4996 | doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
|
---|
4997 | (currentSnapshot.id(), progress) followed by
|
---|
4998 | <link to="#discardCurrentState()"/>.
|
---|
4999 |
|
---|
5000 | As a result, the machine will be fully restored from the
|
---|
5001 | snapshot preceding the current snapshot, while both the current
|
---|
5002 | snapshot and the current machine state will be discarded.
|
---|
5003 |
|
---|
5004 | If the current snapshot is the first snapshot of the machine (i.e. it
|
---|
5005 | has the only snapshot), the current machine state will be
|
---|
5006 | discarded <b>before</b> discarding the snapshot. In other words, the
|
---|
5007 | machine will be restored from its last snapshot, before discarding
|
---|
5008 | it. This differs from performing a single
|
---|
5009 | <link to="#discardSnapshot()"/> call (note that no
|
---|
5010 | <link to="#discardCurrentState()"/> will be possible after it)
|
---|
5011 | to the effect that the latter will preserve the current state instead of
|
---|
5012 | discarding it.
|
---|
5013 |
|
---|
5014 | Unless explicitly mentioned otherwise, all remarks and
|
---|
5015 | limitations of the above two methods also apply to this method.
|
---|
5016 |
|
---|
5017 | <note>
|
---|
5018 | The machine must not be running, otherwise the operation
|
---|
5019 | will fail.
|
---|
5020 | </note>
|
---|
5021 |
|
---|
5022 | <note>
|
---|
5023 | If the machine state is <link to="MachineState::Saved">Saved</link>
|
---|
5024 | prior to this operation, the saved state file will be implicitly
|
---|
5025 | discarded (as if <link to="#discardSavedState()"/> were
|
---|
5026 | called).
|
---|
5027 | </note>
|
---|
5028 |
|
---|
5029 | <note>
|
---|
5030 | This method is more efficient than calling two above
|
---|
5031 | methods separately: it requires less IPC calls and provides
|
---|
5032 | a single progress object.
|
---|
5033 | </note>
|
---|
5034 |
|
---|
5035 | </desc>
|
---|
5036 | <param name="progress" type="IProgress" dir="return">
|
---|
5037 | <desc>Progress object to track the operation completion.</desc>
|
---|
5038 | </param>
|
---|
5039 | </method>
|
---|
5040 |
|
---|
5041 | <method name="registerCallback">
|
---|
5042 | <desc>
|
---|
5043 | Registers a new console callback on this instance. The methods of the
|
---|
5044 | callback interface will be called by this instance when the appropriate
|
---|
5045 | event occurs.
|
---|
5046 | </desc>
|
---|
5047 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
5048 | </method>
|
---|
5049 |
|
---|
5050 | <method name="unregisterCallback">
|
---|
5051 | <desc>
|
---|
5052 | Unregisters the console callback previously registered using
|
---|
5053 | <link to="#registerCallback"/>.
|
---|
5054 | </desc>
|
---|
5055 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
5056 | </method>
|
---|
5057 | </interface>
|
---|
5058 |
|
---|
5059 | <!--
|
---|
5060 | // IHost
|
---|
5061 | /////////////////////////////////////////////////////////////////////////
|
---|
5062 | -->
|
---|
5063 |
|
---|
5064 | <interface
|
---|
5065 | name="IHostDVDDrive" extends="$unknown"
|
---|
5066 | uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
|
---|
5067 | wsmap="managed"
|
---|
5068 | >
|
---|
5069 | <desc>
|
---|
5070 | The IHostDVDDrive interface represents the physical CD/DVD drive
|
---|
5071 | hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
|
---|
5072 | </desc>
|
---|
5073 |
|
---|
5074 | <attribute name="name" type="wstring" readonly="yes">
|
---|
5075 | <desc>
|
---|
5076 | Returns the platform-specific device identifier.
|
---|
5077 | On DOS-like platforms, it is a drive name (e.g. R:).
|
---|
5078 | On Unix-like platforms, it is a device name (e.g. /dev/hdc).
|
---|
5079 | </desc>
|
---|
5080 | </attribute>
|
---|
5081 | <attribute name="description" type="wstring" readonly="yes">
|
---|
5082 | <desc>
|
---|
5083 | Returns a human readable description for the drive. This
|
---|
5084 | description usually contains the product and vendor name. A
|
---|
5085 | @c null string is returned if the description is not available.
|
---|
5086 | </desc>
|
---|
5087 | </attribute>
|
---|
5088 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
5089 | <desc>
|
---|
5090 | Returns the unique device identifier for the drive. This
|
---|
5091 | attribute is reserved for future use instead of
|
---|
5092 | <link to="#name"/>. Currently it is not used and may return
|
---|
5093 | @c null on some platforms.
|
---|
5094 | </desc>
|
---|
5095 | </attribute>
|
---|
5096 |
|
---|
5097 | </interface>
|
---|
5098 |
|
---|
5099 | <enumerator
|
---|
5100 | name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
|
---|
5101 | uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
|
---|
5102 | />
|
---|
5103 |
|
---|
5104 | <collection
|
---|
5105 | name="IHostDVDDriveCollection" type="IHostDVDDrive"
|
---|
5106 | enumerator="IHostDVDDriveEnumerator"
|
---|
5107 | uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
|
---|
5108 | readonly="yes"
|
---|
5109 | >
|
---|
5110 | <method name="findByName">
|
---|
5111 | <desc>
|
---|
5112 | Searches this collection for a host drive with the given name.
|
---|
5113 | <note>
|
---|
5114 | The method returns an error if the given name does not
|
---|
5115 | correspond to any host drive in the collection.
|
---|
5116 | </note>
|
---|
5117 | </desc>
|
---|
5118 | <param name="name" type="wstring" dir="in">
|
---|
5119 | <desc>Name of the host drive to search for</desc>
|
---|
5120 | </param>
|
---|
5121 | <param name="drive" type="IHostDVDDrive" dir="return">
|
---|
5122 | <desc>Found host drive object</desc>
|
---|
5123 | </param>
|
---|
5124 | </method>
|
---|
5125 | </collection>
|
---|
5126 |
|
---|
5127 | <interface
|
---|
5128 | name="IHostFloppyDrive" extends="$unknown"
|
---|
5129 | uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
|
---|
5130 | wsmap="managed"
|
---|
5131 | >
|
---|
5132 | <desc>
|
---|
5133 | The IHostFloppyDrive interface represents the physical floppy drive
|
---|
5134 | hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
|
---|
5135 | </desc>
|
---|
5136 | <attribute name="name" type="wstring" readonly="yes">
|
---|
5137 | <desc>
|
---|
5138 | Returns the platform-specific device identifier.
|
---|
5139 | On DOS-like platforms, it is a drive name (e.g. A:).
|
---|
5140 | On Unix-like platforms, it is a device name (e.g. /dev/fd0).
|
---|
5141 | </desc>
|
---|
5142 | </attribute>
|
---|
5143 | <attribute name="description" type="wstring" readonly="yes">
|
---|
5144 | <desc>
|
---|
5145 | Returns a human readable description for the drive. This
|
---|
5146 | description usually contains the product and vendor name. A
|
---|
5147 | @c null string is returned if the description is not available.
|
---|
5148 | </desc>
|
---|
5149 | </attribute>
|
---|
5150 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
5151 | <desc>
|
---|
5152 | Returns the unique device identifier for the drive. This
|
---|
5153 | attribute is reserved for future use instead of
|
---|
5154 | <link to="#name"/>. Currently it is not used and may return
|
---|
5155 | @c null on some platforms.
|
---|
5156 | </desc>
|
---|
5157 | </attribute>
|
---|
5158 | </interface>
|
---|
5159 |
|
---|
5160 | <enumerator
|
---|
5161 | name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
|
---|
5162 | uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
|
---|
5163 | />
|
---|
5164 |
|
---|
5165 | <collection
|
---|
5166 | name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
|
---|
5167 | enumerator="IHostFloppyDriveEnumerator"
|
---|
5168 | uuid="fd84bb86-c59a-4037-a557-755ff263a460"
|
---|
5169 | readonly="yes"
|
---|
5170 | >
|
---|
5171 | <method name="findByName">
|
---|
5172 | <desc>
|
---|
5173 | Searches this collection for a host drive with the given name.
|
---|
5174 | <note>
|
---|
5175 | The method returns an error if the given name does not
|
---|
5176 | correspond to any host drive in the collection.
|
---|
5177 | </note>
|
---|
5178 | </desc>
|
---|
5179 | <param name="name" type="wstring" dir="in">
|
---|
5180 | <desc>Name of the host drive to search for</desc>
|
---|
5181 | </param>
|
---|
5182 | <param name="drive" type="IHostFloppyDrive" dir="return">
|
---|
5183 | <desc>Found host drive object</desc>
|
---|
5184 | </param>
|
---|
5185 | </method>
|
---|
5186 | </collection>
|
---|
5187 |
|
---|
5188 | <interface
|
---|
5189 | name="IHostNetworkInterface" extends="$unknown"
|
---|
5190 | uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
|
---|
5191 | wsmap="managed"
|
---|
5192 | >
|
---|
5193 | <attribute name="name" type="wstring" readonly="yes">
|
---|
5194 | <desc>Returns the host network interface name.</desc>
|
---|
5195 | </attribute>
|
---|
5196 |
|
---|
5197 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5198 | <desc>Returns the interface UUID.</desc>
|
---|
5199 | </attribute>
|
---|
5200 | </interface>
|
---|
5201 |
|
---|
5202 | <enumerator
|
---|
5203 | name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
|
---|
5204 | uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
|
---|
5205 | />
|
---|
5206 |
|
---|
5207 | <collection
|
---|
5208 | name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
|
---|
5209 | enumerator="IHostNetworkInterfaceEnumerator"
|
---|
5210 | uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
|
---|
5211 | readonly="yes"
|
---|
5212 | >
|
---|
5213 | <method name="findByName">
|
---|
5214 | <desc>
|
---|
5215 | Searches this collection for a host network interface with the given name.
|
---|
5216 | <note>
|
---|
5217 | The method returns an error if the given name does not
|
---|
5218 | correspond to any host network interface in the collection.
|
---|
5219 | </note>
|
---|
5220 | </desc>
|
---|
5221 | <param name="name" type="wstring" dir="in">
|
---|
5222 | <desc>Name of the host network interface to search for.</desc>
|
---|
5223 | </param>
|
---|
5224 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
5225 | <desc>Found host network interface object.</desc>
|
---|
5226 | </param>
|
---|
5227 | </method>
|
---|
5228 | <method name="findById">
|
---|
5229 | <desc>
|
---|
5230 | Searches this collection for a host network interface with the given GUID.
|
---|
5231 | <note>
|
---|
5232 | The method returns an error if the given GUID does not
|
---|
5233 | correspond to any host network interface in the collection.
|
---|
5234 | </note>
|
---|
5235 | </desc>
|
---|
5236 | <param name="id" type="uuid" dir="in">
|
---|
5237 | <desc>GUID of the host network interface to search for.</desc>
|
---|
5238 | </param>
|
---|
5239 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
5240 | <desc>Found host network interface object.</desc>
|
---|
5241 | </param>
|
---|
5242 | </method>
|
---|
5243 | </collection>
|
---|
5244 |
|
---|
5245 | <interface
|
---|
5246 | name="IHost" extends="$unknown"
|
---|
5247 | uuid="4be2e85f-a54c-4bc7-8bf6-f070f9113940"
|
---|
5248 | wsmap="managed"
|
---|
5249 | >
|
---|
5250 | <desc>
|
---|
5251 | The IHost interface represents the physical machine that this VirtualBox
|
---|
5252 | installation runs on.
|
---|
5253 |
|
---|
5254 | An object implementing this interface is returned by the
|
---|
5255 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
5256 | read-only information about the host's physical hardware (such as what
|
---|
5257 | processors, and disks are available, what the host operating system is,
|
---|
5258 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
5259 | such as global USB device filters and host interface networking.
|
---|
5260 |
|
---|
5261 | </desc>
|
---|
5262 | <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
|
---|
5263 | <desc>List of DVD drives available on the host.</desc>
|
---|
5264 | </attribute>
|
---|
5265 |
|
---|
5266 | <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
|
---|
5267 | <desc>List of floppy drives available on the host.</desc>
|
---|
5268 | </attribute>
|
---|
5269 |
|
---|
5270 | <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
5271 | <desc>
|
---|
5272 | List of USB devices currently attached to the host.
|
---|
5273 | Once a new device is physically attached to the host computer,
|
---|
5274 | it appears in this list and remains there until detached.
|
---|
5275 |
|
---|
5276 | <note>
|
---|
5277 | This method may set a @ref com_warnings "warning result code".
|
---|
5278 | </note>
|
---|
5279 | <note>
|
---|
5280 | If USB functionality is not available in the given edition of
|
---|
5281 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
5282 | </note>
|
---|
5283 | </desc>
|
---|
5284 | </attribute>
|
---|
5285 |
|
---|
5286 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
|
---|
5287 | <desc>
|
---|
5288 | List of USB device filters in action.
|
---|
5289 | When a new device is physically attached to the host computer,
|
---|
5290 | filters from this list are applied to it (in order they are stored
|
---|
5291 | in the list). The first matched filter will determine the
|
---|
5292 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
5293 | performed on the device.
|
---|
5294 |
|
---|
5295 | Unless the device is ignored by these filters, filters of all
|
---|
5296 | currently running virtual machines
|
---|
5297 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
5298 |
|
---|
5299 | <note>
|
---|
5300 | This method may set a @ref com_warnings "warning result code".
|
---|
5301 | </note>
|
---|
5302 | <note>
|
---|
5303 | If USB functionality is not available in the given edition of
|
---|
5304 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
5305 | </note>
|
---|
5306 |
|
---|
5307 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
5308 | </desc>
|
---|
5309 | </attribute>
|
---|
5310 |
|
---|
5311 | <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
|
---|
5312 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
5313 | </attribute>
|
---|
5314 |
|
---|
5315 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
5316 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
5317 | </attribute>
|
---|
5318 |
|
---|
5319 | <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
|
---|
5320 | <desc>Number of (logical) CPUs online in the host system.</desc>
|
---|
5321 | </attribute>
|
---|
5322 |
|
---|
5323 | <method name="getProcessorSpeed">
|
---|
5324 | <desc>Query the (approximate) maximum speed of a specified host CPU in Megahertz.</desc>
|
---|
5325 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
5326 | <desc>
|
---|
5327 | Identifier of the CPU.
|
---|
5328 | </desc>
|
---|
5329 | </param>
|
---|
5330 | <param name="speed" type="unsigned long" dir="return">
|
---|
5331 | <desc>
|
---|
5332 | Speed value. 0 is returned if value is not known or @a cpuId is
|
---|
5333 | invalid.
|
---|
5334 | </desc>
|
---|
5335 | </param>
|
---|
5336 | </method>
|
---|
5337 |
|
---|
5338 | <method name="getProcessorFeature">
|
---|
5339 | <desc>Query whether a CPU feature is supported or not.</desc>
|
---|
5340 | <param name="feature" type="ProcessorFeature" dir="in">
|
---|
5341 | <desc>
|
---|
5342 | CPU Feature identifier.
|
---|
5343 | </desc>
|
---|
5344 | </param>
|
---|
5345 | <param name="supported" type="boolean" dir="return">
|
---|
5346 | <desc>
|
---|
5347 | Feature is supported or not.
|
---|
5348 | </desc>
|
---|
5349 | </param>
|
---|
5350 | </method>
|
---|
5351 |
|
---|
5352 | <method name="getProcessorDescription">
|
---|
5353 | <desc>Query the model string of a specified host CPU.</desc>
|
---|
5354 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
5355 | <desc>
|
---|
5356 | Identifier of the CPU.
|
---|
5357 | </desc>
|
---|
5358 | </param>
|
---|
5359 | <param name="description" type="wstring" dir="return">
|
---|
5360 | <desc>
|
---|
5361 | Model string. A NULL string is returned if value is not known or
|
---|
5362 | @a cpuId is invalid.
|
---|
5363 | </desc>
|
---|
5364 | </param>
|
---|
5365 | </method>
|
---|
5366 |
|
---|
5367 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
5368 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
5369 | </attribute>
|
---|
5370 |
|
---|
5371 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
5372 | <desc>Available system memory in the host system.</desc>
|
---|
5373 | </attribute>
|
---|
5374 |
|
---|
5375 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
5376 | <desc>Name of the host system's operating system.</desc>
|
---|
5377 | </attribute>
|
---|
5378 |
|
---|
5379 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
5380 | <desc>Host operating system's version string.</desc>
|
---|
5381 | </attribute>
|
---|
5382 |
|
---|
5383 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
5384 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
5385 | </attribute>
|
---|
5386 |
|
---|
5387 | <if target="midl">
|
---|
5388 | <method name="createHostNetworkInterface">
|
---|
5389 | <desc>
|
---|
5390 | Creates a new adapter for Host Interface Networking.
|
---|
5391 | </desc>
|
---|
5392 | <param name="name" type="wstring" dir="in">
|
---|
5393 | <desc>
|
---|
5394 | Adapter name.
|
---|
5395 | </desc>
|
---|
5396 | </param>
|
---|
5397 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
5398 | <desc>
|
---|
5399 | Created host interface object.
|
---|
5400 | </desc>
|
---|
5401 | </param>
|
---|
5402 | <param name="progress" type="IProgress" dir="return">
|
---|
5403 | <desc>
|
---|
5404 | Progress object to track the operation completion.
|
---|
5405 | </desc>
|
---|
5406 | </param>
|
---|
5407 | </method>
|
---|
5408 | <method name="removeHostNetworkInterface">
|
---|
5409 | <desc>
|
---|
5410 | Removes the given host network interface.
|
---|
5411 | </desc>
|
---|
5412 | <param name="id" type="uuid" dir="in">
|
---|
5413 | <desc>
|
---|
5414 | Adapter GUID.
|
---|
5415 | </desc>
|
---|
5416 | </param>
|
---|
5417 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
5418 | <desc>
|
---|
5419 | Removed host interface object.
|
---|
5420 | </desc>
|
---|
5421 | </param>
|
---|
5422 | <param name="progress" type="IProgress" dir="return">
|
---|
5423 | <desc>
|
---|
5424 | Progress object to track the operation completion.
|
---|
5425 | </desc>
|
---|
5426 | </param>
|
---|
5427 | </method>
|
---|
5428 | </if>
|
---|
5429 |
|
---|
5430 | <method name="createUSBDeviceFilter">
|
---|
5431 | <desc>
|
---|
5432 | Creates a new USB device filter. All attributes except
|
---|
5433 | the filter name are set to <tt>null</tt> (any match),
|
---|
5434 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
5435 |
|
---|
5436 | The created filter can be added to the list of filters using
|
---|
5437 | <link to="#insertUSBDeviceFilter()"/>.
|
---|
5438 |
|
---|
5439 | <see>#USBDeviceFilters</see>
|
---|
5440 | </desc>
|
---|
5441 | <param name="name" type="wstring" dir="in">
|
---|
5442 | <desc>
|
---|
5443 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
5444 | for more info.
|
---|
5445 | </desc>
|
---|
5446 | </param>
|
---|
5447 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
5448 | <desc>Created filter object.</desc>
|
---|
5449 | </param>
|
---|
5450 | </method>
|
---|
5451 |
|
---|
5452 | <method name="insertUSBDeviceFilter">
|
---|
5453 | <desc>
|
---|
5454 | Inserts the given USB device to the specified position
|
---|
5455 | in the list of filters.
|
---|
5456 |
|
---|
5457 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
5458 | position is equal to or greater than the number of elements in
|
---|
5459 | the list, the filter is added to the end of the collection.
|
---|
5460 |
|
---|
5461 | <note>
|
---|
5462 | Duplicates are not allowed, so an attempt to insert a
|
---|
5463 | filter that is already in the list, will return an
|
---|
5464 | error.
|
---|
5465 | </note>
|
---|
5466 | <note>
|
---|
5467 | This method may set a @ref com_warnings "warning result code".
|
---|
5468 | </note>
|
---|
5469 | <note>
|
---|
5470 | If USB functionality is not available in the given edition of
|
---|
5471 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
5472 | </note>
|
---|
5473 |
|
---|
5474 | <see>#USBDeviceFilters</see>
|
---|
5475 | </desc>
|
---|
5476 | <param name="position" type="unsigned long" dir="in">
|
---|
5477 | <desc>Position to insert the filter to.</desc>
|
---|
5478 | </param>
|
---|
5479 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
5480 | <desc>USB device filter to insert.</desc>
|
---|
5481 | </param>
|
---|
5482 | </method>
|
---|
5483 |
|
---|
5484 | <method name="removeUSBDeviceFilter">
|
---|
5485 | <desc>
|
---|
5486 | Removes a USB device filter from the specified position in the
|
---|
5487 | list of filters.
|
---|
5488 |
|
---|
5489 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
5490 | position equal to or greater than the number of elements in
|
---|
5491 | the list will produce an error.
|
---|
5492 |
|
---|
5493 | <note>
|
---|
5494 | This method may set a @ref com_warnings "warning result code".
|
---|
5495 | </note>
|
---|
5496 | <note>
|
---|
5497 | If USB functionality is not available in the given edition of
|
---|
5498 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
5499 | </note>
|
---|
5500 |
|
---|
5501 | <see>#USBDeviceFilters</see>
|
---|
5502 | </desc>
|
---|
5503 | <param name="position" type="unsigned long" dir="in">
|
---|
5504 | <desc>Position to remove the filter from.</desc>
|
---|
5505 | </param>
|
---|
5506 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
5507 | <desc>Removed USB device filter.</desc>
|
---|
5508 | </param>
|
---|
5509 | </method>
|
---|
5510 |
|
---|
5511 | </interface>
|
---|
5512 |
|
---|
5513 | <!--
|
---|
5514 | // ISystemProperties
|
---|
5515 | /////////////////////////////////////////////////////////////////////////
|
---|
5516 | -->
|
---|
5517 |
|
---|
5518 | <interface
|
---|
5519 | name="ISystemProperties"
|
---|
5520 | extends="$unknown"
|
---|
5521 | uuid="604afeba-5963-4d12-a577-902ffb96352a"
|
---|
5522 | wsmap="managed"
|
---|
5523 | >
|
---|
5524 | <desc>
|
---|
5525 | The ISystemProperties interface represents global properties of the given
|
---|
5526 | VirtualBox installation.
|
---|
5527 |
|
---|
5528 | These properties define limits and default values for various attributes
|
---|
5529 | and parameters. Most of the properties are read-only, but some can be
|
---|
5530 | changed by a user.
|
---|
5531 | </desc>
|
---|
5532 |
|
---|
5533 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
5534 | <desc>Minimum guest system memory in Megabytes.</desc>
|
---|
5535 | </attribute>
|
---|
5536 |
|
---|
5537 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
5538 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
5539 | </attribute>
|
---|
5540 |
|
---|
5541 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
5542 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
5543 | </attribute>
|
---|
5544 |
|
---|
5545 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
5546 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
5547 | </attribute>
|
---|
5548 |
|
---|
5549 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
5550 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
5551 | </attribute>
|
---|
5552 |
|
---|
5553 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
5554 | <desc>
|
---|
5555 | Number of network adapters associated with every
|
---|
5556 | <link to="IMachine"/> instance.
|
---|
5557 | </desc>
|
---|
5558 | </attribute>
|
---|
5559 |
|
---|
5560 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
5561 | <desc>
|
---|
5562 | Number of serial ports associated with every
|
---|
5563 | <link to="IMachine"/> instance.
|
---|
5564 | </desc>
|
---|
5565 | </attribute>
|
---|
5566 |
|
---|
5567 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
5568 | <desc>
|
---|
5569 | Number of parallel ports associated with every
|
---|
5570 | <link to="IMachine"/> instance.
|
---|
5571 | </desc>
|
---|
5572 | </attribute>
|
---|
5573 |
|
---|
5574 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
5575 | <desc>
|
---|
5576 | Maximum device position in the boot order. This value corresponds
|
---|
5577 | to the total number of devices a machine can boot from, to make it
|
---|
5578 | possible to include all possible devices to the boot list.
|
---|
5579 | <see><link to="IMachine::setBootOrder()"/></see>
|
---|
5580 | </desc>
|
---|
5581 | </attribute>
|
---|
5582 |
|
---|
5583 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
5584 | <desc>
|
---|
5585 | Full path to the default directory used to create new or open
|
---|
5586 | existing machines when a settings file name contains no
|
---|
5587 | path.
|
---|
5588 |
|
---|
5589 | The initial value of this property is
|
---|
5590 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
5591 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
5592 |
|
---|
5593 | <note>
|
---|
5594 | Setting this property to <tt>null</tt> will restore the
|
---|
5595 | initial value.
|
---|
5596 | </note>
|
---|
5597 | <note>
|
---|
5598 | When settings this property, the specified path can be
|
---|
5599 | absolute (full path) or relative
|
---|
5600 | to the <link to="IVirtualBox::homeFolder">
|
---|
5601 | VirtualBox home directory</link>.
|
---|
5602 | When reading this property, a full path is
|
---|
5603 | always returned.
|
---|
5604 | </note>
|
---|
5605 | <note>
|
---|
5606 | The specified path may not exist, it will be created
|
---|
5607 | when necessary.
|
---|
5608 | </note>
|
---|
5609 |
|
---|
5610 | <see>
|
---|
5611 | <link to="IVirtualBox::createMachine()"/>,
|
---|
5612 | <link to="IVirtualBox::openMachine()"/>
|
---|
5613 | </see>
|
---|
5614 | </desc>
|
---|
5615 | </attribute>
|
---|
5616 |
|
---|
5617 | <attribute name="defaultHardDiskFolder" type="wstring">
|
---|
5618 | <desc>
|
---|
5619 | Full path to the default directory used to create new or open existing
|
---|
5620 | virtual disks.
|
---|
5621 |
|
---|
5622 | This path is used when the storage unit of a hard disk is a regular file
|
---|
5623 | in the host's file system and only a file name that contains no path is
|
---|
5624 | given.
|
---|
5625 |
|
---|
5626 | The initial value of this property is
|
---|
5627 | <tt><</tt>
|
---|
5628 | <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
|
---|
5629 | <tt>>/HardDisks</tt>.
|
---|
5630 |
|
---|
5631 | <note>
|
---|
5632 | Setting this property to <tt>null</tt> will restore the
|
---|
5633 | initial value.
|
---|
5634 | </note>
|
---|
5635 | <note>
|
---|
5636 | When settings this property, the specified path can be relative
|
---|
5637 | to the
|
---|
5638 | <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
|
---|
5639 | absolute. When reading this property, a full path is
|
---|
5640 | always returned.
|
---|
5641 | </note>
|
---|
5642 | <note>
|
---|
5643 | The specified path may not exist, it will be created
|
---|
5644 | when necessary.
|
---|
5645 | </note>
|
---|
5646 |
|
---|
5647 | <see>
|
---|
5648 | IHardDisk2,
|
---|
5649 | <link to="IVirtualBox::createHardDisk2()"/>,
|
---|
5650 | <link to="IVirtualBox::openHardDisk2()"/>,
|
---|
5651 | <link to="IMedium::location"/>
|
---|
5652 | </see>
|
---|
5653 | </desc>
|
---|
5654 | </attribute>
|
---|
5655 |
|
---|
5656 | <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
|
---|
5657 | <desc>
|
---|
5658 | List of all hard disk storage formats supported by this VirtualBox
|
---|
5659 | installation.
|
---|
5660 |
|
---|
5661 | Note that the virtual hard disk framework is backend-based, therefore
|
---|
5662 | the list of supported formats depends on what backends are currently
|
---|
5663 | installed.
|
---|
5664 |
|
---|
5665 | <see>
|
---|
5666 | <link to="IHardDiskFormat"/>,
|
---|
5667 | </see>
|
---|
5668 | </desc>
|
---|
5669 | </attribute>
|
---|
5670 |
|
---|
5671 | <attribute name="defaultHardDiskFormat" type="wstring">
|
---|
5672 | <desc>
|
---|
5673 | Identifier of the default hard disk format used by VirtualBox.
|
---|
5674 |
|
---|
5675 | The hard disk format set by this attribute is used by VirtualBox
|
---|
5676 | when the hard disk format was not specified explicitly. One example is
|
---|
5677 | <link to="IVirtualBox::createHardDisk2()"/> with the <tt>null</tt>
|
---|
5678 | format argument. A more complex example is implicit creation of
|
---|
5679 | differencing hard disks when taking a snapshot of a virtual machine:
|
---|
5680 | this operation will try to use a format of the parent hard disk first
|
---|
5681 | and if this format does not support differencing hard disks the default
|
---|
5682 | format specified by this argument will be used.
|
---|
5683 |
|
---|
5684 | The list of supported hard disk formats may be obtained by the
|
---|
5685 | <link to="#defaultHardDiskFormats"/> call. Note that the default
|
---|
5686 | hard disk format must have a capability to create differencing hard
|
---|
5687 | disks; otherwise opeartions that create hard disks implicitly may fail
|
---|
5688 | unexpectedly.
|
---|
5689 |
|
---|
5690 | The initial value of this property is <tt>VDI</tt> in the current
|
---|
5691 | version of the VirtualBox product, but may change in the future.
|
---|
5692 |
|
---|
5693 | <note>
|
---|
5694 | Setting this property to <tt>null</tt> will restore the
|
---|
5695 | initial value.
|
---|
5696 | </note>
|
---|
5697 |
|
---|
5698 | <see>
|
---|
5699 | <link to="#hardDiskFormats"/>,
|
---|
5700 | <link to="IHardDiskFormat:id"/>,
|
---|
5701 | <link to="IVirtualBox::createHardDisk2()"/>
|
---|
5702 | </see>
|
---|
5703 | </desc>
|
---|
5704 | </attribute>
|
---|
5705 |
|
---|
5706 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
5707 | <desc>
|
---|
5708 | Library that provides authentication for VRDP clients. The library
|
---|
5709 | is used if a virtual machine's authentication type is set to "external"
|
---|
5710 | in the VM RemoteDisplay configuration.
|
---|
5711 |
|
---|
5712 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
5713 | A full path can be specified; if not, then the library must reside on the
|
---|
5714 | system's default library path.
|
---|
5715 |
|
---|
5716 | The default value of this property is <tt>VRDPAuth</tt>. There is a library
|
---|
5717 | of that name in one of the default VirtualBox library directories.
|
---|
5718 |
|
---|
5719 | For details about VirtualBox authentication libraries and how to implement
|
---|
5720 | them, please refer to the VirtualBox manual.
|
---|
5721 |
|
---|
5722 | <note>
|
---|
5723 | Setting this property to <tt>null</tt> will restore the
|
---|
5724 | initial value.
|
---|
5725 | </note>
|
---|
5726 | </desc>
|
---|
5727 | </attribute>
|
---|
5728 |
|
---|
5729 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
5730 | <desc>
|
---|
5731 | Library that provides authentication for webservice clients. The library
|
---|
5732 | is used if a virtual machine's authentication type is set to "external"
|
---|
5733 | in the VM RemoteDisplay configuration and will be called from
|
---|
5734 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
5735 |
|
---|
5736 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
5737 | there is no per-VM setting for this, as the webservice is a global
|
---|
5738 | resource (if it is running). Only for this setting (for the webservice),
|
---|
5739 | setting this value to a literal "null" string disables authentication,
|
---|
5740 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
5741 | no matter what user name and password are supplied.
|
---|
5742 |
|
---|
5743 | The initial value of this property is <tt>VRDPAuth</tt>,
|
---|
5744 | meaning that the webservice will use the same authentication
|
---|
5745 | library that is used by default for VBoxVRDP (again, see
|
---|
5746 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
5747 | The format and calling convention of authentication libraries
|
---|
5748 | is the same for the webservice as it is for VBoxVRDP.
|
---|
5749 |
|
---|
5750 | </desc>
|
---|
5751 | </attribute>
|
---|
5752 |
|
---|
5753 | <attribute name="HWVirtExEnabled" type="boolean">
|
---|
5754 | <desc>
|
---|
5755 | This specifies the default value for hardware virtualization
|
---|
5756 | extensions. If enabled, virtual machines will make use of
|
---|
5757 | hardware virtualization extensions such as Intel VT-x and
|
---|
5758 | AMD-V by default. This value can be overridden by each VM
|
---|
5759 | using their <link to="IMachine::HWVirtExEnabled" /> property.
|
---|
5760 | </desc>
|
---|
5761 | </attribute>
|
---|
5762 |
|
---|
5763 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
5764 | <desc>
|
---|
5765 | This value specifies how many old release log files are kept.
|
---|
5766 | </desc>
|
---|
5767 | </attribute>
|
---|
5768 | </interface>
|
---|
5769 |
|
---|
5770 | <!--
|
---|
5771 | // IGuest
|
---|
5772 | /////////////////////////////////////////////////////////////////////////
|
---|
5773 | -->
|
---|
5774 |
|
---|
5775 | <interface
|
---|
5776 | name="IGuestOSType" extends="$unknown"
|
---|
5777 | uuid="bc415228-eed0-402c-92f5-96fc4e2dd7e4"
|
---|
5778 | wsmap="struct"
|
---|
5779 | >
|
---|
5780 | <desc>
|
---|
5781 | </desc>
|
---|
5782 |
|
---|
5783 | <attribute name="familyId" type="wstring" readonly="yes">
|
---|
5784 | <desc>Guest OS family identifier string.</desc>
|
---|
5785 | </attribute>
|
---|
5786 |
|
---|
5787 | <attribute name="familyDescription" type="wstring" readonly="yes">
|
---|
5788 | <desc>Human readable description of the guest OS family.</desc>
|
---|
5789 | </attribute>
|
---|
5790 |
|
---|
5791 | <attribute name="id" type="wstring" readonly="yes">
|
---|
5792 | <desc>Guest OS identifier string.</desc>
|
---|
5793 | </attribute>
|
---|
5794 |
|
---|
5795 | <attribute name="description" type="wstring" readonly="yes">
|
---|
5796 | <desc>Human readable description of the guest OS.</desc>
|
---|
5797 | </attribute>
|
---|
5798 |
|
---|
5799 | <attribute name="is64Bit" type="boolean" readonly="yes">
|
---|
5800 | <desc>Returns @c true if the given OS is 64-bit</desc>
|
---|
5801 | </attribute>
|
---|
5802 |
|
---|
5803 | <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
|
---|
5804 | <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
|
---|
5805 | </attribute>
|
---|
5806 |
|
---|
5807 | <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
|
---|
5808 | <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
|
---|
5809 | </attribute>
|
---|
5810 |
|
---|
5811 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
5812 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
5813 | </attribute>
|
---|
5814 |
|
---|
5815 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
5816 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
5817 | </attribute>
|
---|
5818 |
|
---|
5819 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
5820 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
5821 | </attribute>
|
---|
5822 |
|
---|
5823 | <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
|
---|
5824 | <desc>Returns recommended network adapter for this OS type.</desc>
|
---|
5825 | </attribute>
|
---|
5826 | </interface>
|
---|
5827 |
|
---|
5828 |
|
---|
5829 | <enumerator
|
---|
5830 | name="IGuestOSTypeEnumerator" type="IGuestOSType"
|
---|
5831 | uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
|
---|
5832 | />
|
---|
5833 |
|
---|
5834 | <collection
|
---|
5835 | name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
|
---|
5836 | uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
|
---|
5837 | readonly="yes"
|
---|
5838 | />
|
---|
5839 |
|
---|
5840 | <interface
|
---|
5841 | name="IGuest" extends="$unknown"
|
---|
5842 | uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
|
---|
5843 |
|
---|
5844 | wsmap="suppress"
|
---|
5845 | >
|
---|
5846 | <desc>
|
---|
5847 | The IGuest interface represents information about the operating system
|
---|
5848 | running inside the virtual machine. Used in
|
---|
5849 | <link to="IConsole::guest"/>.
|
---|
5850 |
|
---|
5851 | IGuest provides information about the guest operating system, whether
|
---|
5852 | Guest Additions are installed and other OS-specific virtual machine
|
---|
5853 | properties.
|
---|
5854 | </desc>
|
---|
5855 |
|
---|
5856 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
5857 | <desc>
|
---|
5858 | Identifier of the Guest OS type as reported by the Guest
|
---|
5859 | Additions.
|
---|
5860 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
5861 | an IGuestOSType object representing details about the given
|
---|
5862 | Guest OS type.
|
---|
5863 | <note>
|
---|
5864 | If Guest Additions are not installed, this value will be
|
---|
5865 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
5866 | </note>
|
---|
5867 | </desc>
|
---|
5868 | </attribute>
|
---|
5869 |
|
---|
5870 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
5871 | <desc>
|
---|
5872 | Flag whether the Guest Additions are installed and active
|
---|
5873 | in which case their version will be returned by the
|
---|
5874 | <link to="#additionsVersion"/> property.
|
---|
5875 | </desc>
|
---|
5876 | </attribute>
|
---|
5877 |
|
---|
5878 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
5879 | <desc>
|
---|
5880 | Version of the Guest Additions (3 decimal numbers separated
|
---|
5881 | by dots) or empty when the Additions are not installed. The
|
---|
5882 | Additions may also report a version but yet not be active as
|
---|
5883 | the version might be refused by VirtualBox (incompatible) or
|
---|
5884 | other failures occurred.
|
---|
5885 | </desc>
|
---|
5886 | </attribute>
|
---|
5887 |
|
---|
5888 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
5889 | <desc>
|
---|
5890 | Flag whether seamless guest display rendering (seamless desktop
|
---|
5891 | integration) is supported.
|
---|
5892 | </desc>
|
---|
5893 | </attribute>
|
---|
5894 |
|
---|
5895 | <attribute name="supportsGraphics" type="boolean" readonly="yes">
|
---|
5896 | <desc>
|
---|
5897 | Flag whether the guest is in graphics mode. If it is not, then
|
---|
5898 | seamless rendering will not work, resize hints are not immediately
|
---|
5899 | acted on and guest display resizes are probably not initiated by
|
---|
5900 | the guest additions.
|
---|
5901 | </desc>
|
---|
5902 | </attribute>
|
---|
5903 |
|
---|
5904 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
5905 | <desc>Guest system memory balloon size in megabytes.</desc>
|
---|
5906 | </attribute>
|
---|
5907 |
|
---|
5908 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
5909 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
5910 | </attribute>
|
---|
5911 |
|
---|
5912 | <method name="setCredentials">
|
---|
5913 | <desc>
|
---|
5914 | Store login credentials that can be queried by guest operating
|
---|
5915 | systems with Additions installed. The credentials are transient
|
---|
5916 | to the session and the guest may also choose to erase them. Note
|
---|
5917 | that the caller cannot determine whether the guest operating system
|
---|
5918 | has queried or made use of the credentials.
|
---|
5919 | </desc>
|
---|
5920 | <param name="userName" type="wstring" dir="in">
|
---|
5921 | <desc>User name string, can be empty</desc>
|
---|
5922 | </param>
|
---|
5923 | <param name="password" type="wstring" dir="in">
|
---|
5924 | <desc>Password string, can be empty</desc>
|
---|
5925 | </param>
|
---|
5926 | <param name="domain" type="wstring" dir="in">
|
---|
5927 | <desc>Domain name (guest logon scheme specific), can be empty</desc>
|
---|
5928 | </param>
|
---|
5929 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
5930 | <desc>
|
---|
5931 | Flag whether the guest should alternatively allow the user to
|
---|
5932 | interactively specify different credentials. This flag might
|
---|
5933 | not be supported by all versions of the Additions.
|
---|
5934 | </desc>
|
---|
5935 | </param>
|
---|
5936 | </method>
|
---|
5937 |
|
---|
5938 | <method name="getStatistic">
|
---|
5939 | <desc>
|
---|
5940 | Query specified guest statistics as reported by the VirtualBox Additions.
|
---|
5941 | </desc>
|
---|
5942 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
5943 | <desc>Virtual CPU id; not relevant for all statistic types</desc>
|
---|
5944 | </param>
|
---|
5945 | <param name="statistic" type="GuestStatisticType" dir="in">
|
---|
5946 | <desc>Statistic type.</desc>
|
---|
5947 | </param>
|
---|
5948 | <param name="statVal" type="unsigned long" dir="out">
|
---|
5949 | <desc>Statistics value</desc>
|
---|
5950 | </param>
|
---|
5951 | </method>
|
---|
5952 |
|
---|
5953 | </interface>
|
---|
5954 |
|
---|
5955 |
|
---|
5956 | <!--
|
---|
5957 | // IProgress
|
---|
5958 | /////////////////////////////////////////////////////////////////////////
|
---|
5959 | -->
|
---|
5960 |
|
---|
5961 | <enumerator
|
---|
5962 | name="IProgressEnumerator" type="IProgress"
|
---|
5963 | uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
|
---|
5964 | />
|
---|
5965 |
|
---|
5966 | <collection
|
---|
5967 | name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
|
---|
5968 | uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
|
---|
5969 | readonly="yes"
|
---|
5970 | />
|
---|
5971 |
|
---|
5972 | <interface
|
---|
5973 | name="IProgress" extends="$unknown"
|
---|
5974 | uuid="10CC03A1-717E-429b-992D-C67B56175A51"
|
---|
5975 | wsmap="managed"
|
---|
5976 | >
|
---|
5977 | <desc>
|
---|
5978 | The IProgress interface represents a task progress object that allows
|
---|
5979 | to wait for the completion of some asynchronous task.
|
---|
5980 |
|
---|
5981 | The task consists of one or more operations that run sequentially,
|
---|
5982 | one after one. There is an individual percent of completion of the
|
---|
5983 | current operation and the percent of completion of the task as a
|
---|
5984 | whole. Similarly, you can wait for the completion of a particular
|
---|
5985 | operation or for the completion of the whole task.
|
---|
5986 |
|
---|
5987 | Every operation is identified by a number (starting from 0)
|
---|
5988 | and has a separate description.
|
---|
5989 | </desc>
|
---|
5990 |
|
---|
5991 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5992 | <desc>ID of the task.</desc>
|
---|
5993 | </attribute>
|
---|
5994 |
|
---|
5995 | <attribute name="description" type="wstring" readonly="yes">
|
---|
5996 | <desc>Description of the task.</desc>
|
---|
5997 | </attribute>
|
---|
5998 |
|
---|
5999 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
6000 | <desc>Initiator of the task.</desc>
|
---|
6001 | </attribute>
|
---|
6002 |
|
---|
6003 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
6004 | <desc>Whether the task can be interrupted.</desc>
|
---|
6005 | </attribute>
|
---|
6006 |
|
---|
6007 | <attribute name="percent" type="long" readonly="yes">
|
---|
6008 | <desc>
|
---|
6009 | Current task progress value in percent.
|
---|
6010 | This value depends on how many operations are already complete.
|
---|
6011 | </desc>
|
---|
6012 | </attribute>
|
---|
6013 |
|
---|
6014 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
6015 | <desc>Whether the task has been completed.</desc>
|
---|
6016 | </attribute>
|
---|
6017 |
|
---|
6018 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
6019 | <desc>Whether the task has been canceled.</desc>
|
---|
6020 | </attribute>
|
---|
6021 |
|
---|
6022 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
6023 | <desc>
|
---|
6024 | Result code of the progress task.
|
---|
6025 | Valid only if <link to="#completed"/> is true.
|
---|
6026 | </desc>
|
---|
6027 | </attribute>
|
---|
6028 |
|
---|
6029 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
6030 | <desc>
|
---|
6031 | Extended information about the unsuccessful result of the
|
---|
6032 | progress operation. May be NULL when no extended information
|
---|
6033 | is available.
|
---|
6034 | Valid only if <link to="#completed"/> is true and
|
---|
6035 | <link to="#resultCode"/> indicates a failure.
|
---|
6036 | </desc>
|
---|
6037 | </attribute>
|
---|
6038 |
|
---|
6039 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
6040 | <desc>
|
---|
6041 | Number of operations this task is divided into.
|
---|
6042 | Every task consists of at least one operation.
|
---|
6043 | </desc>
|
---|
6044 | </attribute>
|
---|
6045 |
|
---|
6046 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
6047 | <desc>Number of the operation being currently executed.</desc>
|
---|
6048 | </attribute>
|
---|
6049 |
|
---|
6050 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
6051 | <desc>
|
---|
6052 | Description of the operation being currently executed.
|
---|
6053 | </desc>
|
---|
6054 | </attribute>
|
---|
6055 |
|
---|
6056 | <attribute name="operationPercent" type="long" readonly="yes">
|
---|
6057 | <desc>Current operation progress value in percent.</desc>
|
---|
6058 | </attribute>
|
---|
6059 |
|
---|
6060 | <method name="waitForCompletion">
|
---|
6061 | <desc>
|
---|
6062 | Waits until the task is done (including all operations) with a
|
---|
6063 | given timeout.
|
---|
6064 | </desc>
|
---|
6065 | <param name="timeout" type="long" dir="in">
|
---|
6066 | <desc>
|
---|
6067 | Timeout value in milliseconds.
|
---|
6068 | Specify -1 for an indefinite wait.
|
---|
6069 | </desc>
|
---|
6070 | </param>
|
---|
6071 | </method>
|
---|
6072 |
|
---|
6073 | <method name="waitForOperationCompletion">
|
---|
6074 | <desc>
|
---|
6075 | Waits until the given operation is done with a given timeout.
|
---|
6076 | </desc>
|
---|
6077 | <param name="operation" type="unsigned long" dir="in">
|
---|
6078 | <desc>
|
---|
6079 | Number of the operation to wait for.
|
---|
6080 | Must be less than <link to="#operationCount"/>.
|
---|
6081 | </desc>
|
---|
6082 | </param>
|
---|
6083 | <param name="timeout" type="long" dir="in">
|
---|
6084 | <desc>
|
---|
6085 | Timeout value in milliseconds.
|
---|
6086 | Specify -1 for an indefinite wait.
|
---|
6087 | </desc>
|
---|
6088 | </param>
|
---|
6089 | </method>
|
---|
6090 |
|
---|
6091 | <method name="cancel">
|
---|
6092 | <desc>
|
---|
6093 | Cancels the task.
|
---|
6094 | <note>
|
---|
6095 | If <link to="#cancelable"/> is <tt>false</tt>, then
|
---|
6096 | this method will fail.
|
---|
6097 | </note>
|
---|
6098 | </desc>
|
---|
6099 | </method>
|
---|
6100 |
|
---|
6101 | </interface>
|
---|
6102 |
|
---|
6103 |
|
---|
6104 | <!--
|
---|
6105 | // ISnapshot
|
---|
6106 | /////////////////////////////////////////////////////////////////////////
|
---|
6107 | -->
|
---|
6108 |
|
---|
6109 | <enumerator
|
---|
6110 | name="ISnapshotEnumerator" type="ISnapshot"
|
---|
6111 | uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
|
---|
6112 | />
|
---|
6113 |
|
---|
6114 | <collection
|
---|
6115 | name="ISnapshotCollection" type="ISnapshot"
|
---|
6116 | enumerator="ISnapshotEnumerator"
|
---|
6117 | uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
|
---|
6118 | readonly="yes"
|
---|
6119 | />
|
---|
6120 |
|
---|
6121 | <interface
|
---|
6122 | name="ISnapshot" extends="$unknown"
|
---|
6123 | uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
|
---|
6124 | wsmap="managed"
|
---|
6125 | >
|
---|
6126 | <desc>
|
---|
6127 | The ISnapshot interface represents a snapshot of the virtual
|
---|
6128 | machine.
|
---|
6129 |
|
---|
6130 | The <i>snapshot</i> stores all the information about a virtual
|
---|
6131 | machine necessary to bring it to exactly the same state as it was at
|
---|
6132 | the time of taking the snapshot. The snapshot includes:
|
---|
6133 |
|
---|
6134 | <ul>
|
---|
6135 | <li>all settings of the virtual machine (i.e. its hardware
|
---|
6136 | configuration: RAM size, attached hard disks, etc.)
|
---|
6137 | </li>
|
---|
6138 | <li>the execution state of the virtual machine (memory contents,
|
---|
6139 | CPU state, etc.).
|
---|
6140 | </li>
|
---|
6141 | </ul>
|
---|
6142 |
|
---|
6143 | Snapshots can be <i>offline</i> (taken when the VM is powered off)
|
---|
6144 | or <i>online</i> (taken when the VM is running). The execution
|
---|
6145 | state of the offline snapshot is called a <i>zero execution state</i>
|
---|
6146 | (it doesn't actually contain any information about memory contents
|
---|
6147 | or the CPU state, assuming that all hardware is just powered off).
|
---|
6148 |
|
---|
6149 | <h3>Snapshot branches</h3>
|
---|
6150 |
|
---|
6151 | Snapshots can be chained. Chained snapshots form a branch where
|
---|
6152 | every next snapshot is based on the previous one. This chaining is
|
---|
6153 | mostly related to hard disk branching (see <link to="IHardDisk2"/>
|
---|
6154 | description). This means that every time a new snapshot is created,
|
---|
6155 | a new differencing hard disk is implicitly created for all normal
|
---|
6156 | hard disks attached to the given virtual machine. This allows to
|
---|
6157 | fully restore hard disk contents when the machine is later reverted
|
---|
6158 | to a particular snapshot.
|
---|
6159 |
|
---|
6160 | In the current implementation, multiple snapshot branches within one
|
---|
6161 | virtual machine are not allowed. Every machine has a single branch,
|
---|
6162 | and <link to="IConsole::takeSnapshot()"/> operation adds a new
|
---|
6163 | snapshot to the top of that branch.
|
---|
6164 |
|
---|
6165 | Existing snapshots can be discarded using
|
---|
6166 | <link to="IConsole::discardSnapshot()"/>.
|
---|
6167 |
|
---|
6168 | <h3>Current snapshot</h3>
|
---|
6169 |
|
---|
6170 | Every virtual machine has a current snapshot, identified by
|
---|
6171 | <link to="IMachine::currentSnapshot"/>. This snapshot is used as
|
---|
6172 | a base for the <i>current machine state</i> (see below), to the effect
|
---|
6173 | that all normal hard disks of the machine and its execution
|
---|
6174 | state are based on this snapshot.
|
---|
6175 |
|
---|
6176 | In the current implementation, the current snapshot is always the
|
---|
6177 | last taken snapshot (i.e. the head snapshot on the branch) and it
|
---|
6178 | cannot be changed.
|
---|
6179 |
|
---|
6180 | The current snapshot is <tt>null</tt> if the machine doesn't have
|
---|
6181 | snapshots at all; in this case the current machine state is just
|
---|
6182 | current settings of this machine plus its current execution state.
|
---|
6183 |
|
---|
6184 | <h3>Current machine state</h3>
|
---|
6185 |
|
---|
6186 | The current machine state is what represented by IMachine instances got
|
---|
6187 | directly from IVirtualBox
|
---|
6188 | using <link
|
---|
6189 | to="IVirtualBox::getMachine()">getMachine()</link>, <link
|
---|
6190 | to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as opposed
|
---|
6191 | to instances returned by <link to="ISnapshot::machine"/>). This state
|
---|
6192 | is always used when the machine is <link to="IConsole::powerUp"> powered
|
---|
6193 | on</link>.
|
---|
6194 |
|
---|
6195 | The current machine state also includes the current execution state.
|
---|
6196 | If the machine is being currently executed
|
---|
6197 | (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
|
---|
6198 | and above), its execution state is just what's happening now.
|
---|
6199 | If it is powered off (<link to="MachineState::PoweredOff"/> or
|
---|
6200 | <link to="MachineState::Aborted"/>), it has a zero execution state.
|
---|
6201 | If the machine is saved (<link to="MachineState::Saved"/>), its
|
---|
6202 | execution state is what saved in the execution state file
|
---|
6203 | (<link to="IMachine::stateFilePath"/>).
|
---|
6204 |
|
---|
6205 | If the machine is in the saved state, then, next time it is powered
|
---|
6206 | on, its execution state will be fully restored from the saved state
|
---|
6207 | file and the execution will continue from the point where the state
|
---|
6208 | was saved.
|
---|
6209 |
|
---|
6210 | Similarly to snapshots, the current machine state can be discarded
|
---|
6211 | using <link to="IConsole::discardCurrentState()"/>.
|
---|
6212 |
|
---|
6213 | <h3>Taking and discarding snapshots</h3>
|
---|
6214 |
|
---|
6215 | The table below briefly explains the meaning of every snapshot
|
---|
6216 | operation:
|
---|
6217 |
|
---|
6218 | <table>
|
---|
6219 | <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
|
---|
6220 |
|
---|
6221 | <tr><td><link to="IConsole::takeSnapshot()"/></td>
|
---|
6222 |
|
---|
6223 | <td>Save the current state of the virtual machine, including all
|
---|
6224 | settings, contents of normal hard disks and the current modifications
|
---|
6225 | to immutable hard disks (for online snapshots)</td>
|
---|
6226 |
|
---|
6227 | <td>The current state is not changed (the machine will continue
|
---|
6228 | execution if it is being executed when the snapshot is
|
---|
6229 | taken)</td></tr>
|
---|
6230 |
|
---|
6231 | <tr><td><link to="IConsole::discardSnapshot()"/></td>
|
---|
6232 |
|
---|
6233 | <td>Forget the state of the virtual machine stored in the snapshot:
|
---|
6234 | dismiss all saved settings and delete the saved execution state (for
|
---|
6235 | online snapshots)</td>
|
---|
6236 |
|
---|
6237 | <td>Other snapshots (including child snapshots, if any) and the
|
---|
6238 | current state are not directly affected</td></tr>
|
---|
6239 |
|
---|
6240 | <tr><td><link to="IConsole::discardCurrentState()"/></td>
|
---|
6241 |
|
---|
6242 | <td>Restore the current state of the virtual machine from the state
|
---|
6243 | stored in the current snapshot, including all settings and hard disk
|
---|
6244 | contents</td>
|
---|
6245 |
|
---|
6246 | <td>The current state of the machine existed prior to this operation
|
---|
6247 | is lost</td></tr>
|
---|
6248 |
|
---|
6249 | <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
|
---|
6250 |
|
---|
6251 | <td>Completely revert the virtual machine to the state it was in
|
---|
6252 | before the current snapshot has been taken</td>
|
---|
6253 |
|
---|
6254 | <td>The current state, as well as the current snapshot, are
|
---|
6255 | lost</td></tr>
|
---|
6256 |
|
---|
6257 | </table>
|
---|
6258 |
|
---|
6259 | </desc>
|
---|
6260 |
|
---|
6261 | <attribute name="id" type="uuid" readonly="yes">
|
---|
6262 | <desc>UUID of the snapshot.</desc>
|
---|
6263 | </attribute>
|
---|
6264 |
|
---|
6265 | <attribute name="name" type="wstring">
|
---|
6266 | <desc>Short name of the snapshot.</desc>
|
---|
6267 | </attribute>
|
---|
6268 |
|
---|
6269 | <attribute name="description" type="wstring">
|
---|
6270 | <desc>Optional description of the snapshot.</desc>
|
---|
6271 | </attribute>
|
---|
6272 |
|
---|
6273 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
6274 | <desc>
|
---|
6275 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
6276 | </desc>
|
---|
6277 | </attribute>
|
---|
6278 |
|
---|
6279 | <attribute name="online" type="boolean" readonly="yes">
|
---|
6280 | <desc>
|
---|
6281 | <tt>true</tt> if this snapshot is an online snapshot and
|
---|
6282 | <tt>false</tt> otherwise.
|
---|
6283 |
|
---|
6284 | <note>
|
---|
6285 | When this attribute is <tt>true</tt>, the
|
---|
6286 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
6287 | <link to="#machine"/> object associated with this snapshot
|
---|
6288 | will point to the saved state file. Otherwise, it will be
|
---|
6289 | <tt>null</tt>.
|
---|
6290 | </note>
|
---|
6291 | </desc>
|
---|
6292 | </attribute>
|
---|
6293 |
|
---|
6294 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
6295 | <desc>
|
---|
6296 | Virtual machine this snapshot is taken on. This object
|
---|
6297 | stores all settings the machine had when taking this snapshot.
|
---|
6298 | <note>
|
---|
6299 | The returned machine object is immutable, i.e. no
|
---|
6300 | any settings can be changed.
|
---|
6301 | </note>
|
---|
6302 | </desc>
|
---|
6303 | </attribute>
|
---|
6304 |
|
---|
6305 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
6306 | <desc>
|
---|
6307 | Parent snapshot (a snapshot this one is based on).
|
---|
6308 | <note>
|
---|
6309 | It's not an error to read this attribute on a snapshot
|
---|
6310 | that doesn't have a parent -- a null object will be
|
---|
6311 | returned to indicate this.
|
---|
6312 | </note>
|
---|
6313 | </desc>
|
---|
6314 | </attribute>
|
---|
6315 |
|
---|
6316 | <attribute name="children" type="ISnapshotCollection" readonly="yes">
|
---|
6317 | <desc>
|
---|
6318 | Child snapshots (all snapshots having this one as a parent).
|
---|
6319 | <note>
|
---|
6320 | In the current implementation, there can be only one
|
---|
6321 | child snapshot, or no children at all, meaning this is the
|
---|
6322 | last (head) snapshot.
|
---|
6323 | </note>
|
---|
6324 | </desc>
|
---|
6325 | </attribute>
|
---|
6326 |
|
---|
6327 | </interface>
|
---|
6328 |
|
---|
6329 |
|
---|
6330 | <!--
|
---|
6331 | // IMedia
|
---|
6332 | /////////////////////////////////////////////////////////////////////////
|
---|
6333 | -->
|
---|
6334 |
|
---|
6335 | <enum
|
---|
6336 | name="MediaState"
|
---|
6337 | uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
|
---|
6338 | >
|
---|
6339 | <desc>
|
---|
6340 | Virtual media state.
|
---|
6341 | <see>IMedia</see>
|
---|
6342 | </desc>
|
---|
6343 |
|
---|
6344 | <const name="NotCreated" value="0">
|
---|
6345 | <desc>
|
---|
6346 | Associated media storage does not exist (either was not created yet or
|
---|
6347 | was deleted).
|
---|
6348 | </desc>
|
---|
6349 | </const>
|
---|
6350 | <const name="Created" value="1">
|
---|
6351 | <desc>
|
---|
6352 | Associated storage exists and accessible.
|
---|
6353 | </desc>
|
---|
6354 | </const>
|
---|
6355 | <const name="LockedRead" value="2">
|
---|
6356 | <desc>
|
---|
6357 | Media is locked for reading, no data modification is possible.
|
---|
6358 | </desc>
|
---|
6359 | </const>
|
---|
6360 | <const name="LockedWrite" value="3">
|
---|
6361 | <desc>
|
---|
6362 | Media is locked for writing, no concurrent data reading or modification
|
---|
6363 | is possible.
|
---|
6364 | </desc>
|
---|
6365 | </const>
|
---|
6366 | <const name="Inaccessible" value="4">
|
---|
6367 | <desc>
|
---|
6368 | Associated media storage is not accessible.
|
---|
6369 | </desc>
|
---|
6370 | </const>
|
---|
6371 | <const name="Creating" value="5">
|
---|
6372 | <desc>
|
---|
6373 | Associated media storage is being created.
|
---|
6374 | </desc>
|
---|
6375 | </const>
|
---|
6376 | <const name="Deleting" value="6">
|
---|
6377 | <desc>
|
---|
6378 | Associated media storage is being deleted.
|
---|
6379 | </desc>
|
---|
6380 | </const>
|
---|
6381 | </enum>
|
---|
6382 |
|
---|
6383 | <interface
|
---|
6384 | name="IMedium" extends="$unknown"
|
---|
6385 | uuid="a7fb3bfb-c180-4274-bae4-7fbc89046e13"
|
---|
6386 | wsmap="managed"
|
---|
6387 | >
|
---|
6388 | <desc>
|
---|
6389 | The IMedium interface is a common interface for all objects representing
|
---|
6390 | virtual media such as hard disks, DVD images.
|
---|
6391 |
|
---|
6392 | Each medium is associated with a storage unit (such as a file on the host
|
---|
6393 | computer or a network resource) that holds actual data. The location of
|
---|
6394 | the storage unit is represented by the #location attribute. The value of
|
---|
6395 | this attribute is media type dependent.
|
---|
6396 |
|
---|
6397 | The exact media type may be determined by querying the appropriate
|
---|
6398 | interface such as:
|
---|
6399 | <ul>
|
---|
6400 | <li>IHardDisk2 (virtual hard disks)</li>
|
---|
6401 | <li>IDVDImage2 (standard CD/DVD ISO image files)</li>
|
---|
6402 | <li>IFloppyImage2 (raw floppy image files)</li>
|
---|
6403 | </ul>
|
---|
6404 |
|
---|
6405 | Existing media are opened using the following methods, depending on the
|
---|
6406 | media type:
|
---|
6407 | <ul>
|
---|
6408 | <li><link to="IVirtualBox::openHardDisk2()"/></li>
|
---|
6409 | <li><link to="IVirtualBox::openDVDImage()"/></li>
|
---|
6410 | <li><link to="IVirtualBox::openFloppyImage()"/></li>
|
---|
6411 | </ul>
|
---|
6412 |
|
---|
6413 | New hard disk media are created using the
|
---|
6414 | <link to="IVirtualBox::createHardDisk2()"/> method. CD/DVD and floppy
|
---|
6415 | images are created outside VirtualBox, usually by storing a copy
|
---|
6416 | of the real medium of the corresponding type in a regular file.
|
---|
6417 |
|
---|
6418 | <h3>Known Media</h3>
|
---|
6419 |
|
---|
6420 | When an existing medium gets opened for the first time, it gets
|
---|
6421 | automatically remembered by the given VirtualBox installation or, in other
|
---|
6422 | words, becomes a <i>known medium</i>. Known media are stored in the media
|
---|
6423 | registry transparently maintained by VirtualBox and stored in settings
|
---|
6424 | files so that this registry is preserved when VirtualBox is not running.
|
---|
6425 |
|
---|
6426 | Newly created virtual hard disks get remembered only when the associated
|
---|
6427 | storage unit is actually created (see IHardDisk2 for more details).
|
---|
6428 |
|
---|
6429 | All known media can be enumerated using
|
---|
6430 | <link to="IVirtualBox::hardDisks2"/>,
|
---|
6431 | <link to="IVirtualBox::DVDImages"/> and
|
---|
6432 | <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
|
---|
6433 | quickly found by UUID using <link to="IVirtualBox::getHardDisk2()"/>
|
---|
6434 | and similar methods or by location using
|
---|
6435 | <link to="IVirtualBox::findHardDisk2()"/> and similar methods.
|
---|
6436 |
|
---|
6437 | Only known media can be attached to virtual machines.
|
---|
6438 |
|
---|
6439 | Removing known media from the media registry is performed when the given
|
---|
6440 | medium is closed using the <link to="#close()"/> method or when its
|
---|
6441 | associated storage unit is deleted (only for hard disks).
|
---|
6442 |
|
---|
6443 | <h3>Accessibility Checks</h3>
|
---|
6444 |
|
---|
6445 | The given medium (with the created storage unit) is considered to be
|
---|
6446 | <i>accessible</i> when its storage unit can be successfully read from.
|
---|
6447 | Accessible media are indicated by the <link to="MediaState::Created"/>
|
---|
6448 | value of the <link to="#state"/> attribute. When the storage unit cannot
|
---|
6449 | be read (for example, because it is located on a disconnected network
|
---|
6450 | resource, or was accidentally deleted outside VirtualBox), the medium is
|
---|
6451 | considered to be <i>inaccessible</i> which is indicated by the
|
---|
6452 | <link to="MediaState::Inaccessible"/> state. The details about the reason
|
---|
6453 | of being inaccessible can be obtained using the
|
---|
6454 | <link to="#lastAccessError"/> attribute.
|
---|
6455 |
|
---|
6456 | A new accessibility check is performed each time the <link to="#state"/>
|
---|
6457 | attribute is read. Please note that this check may take long time (several
|
---|
6458 | seconds or even minutes, depending on the storage unit location and
|
---|
6459 | format), and will block the calling thread until finished. For this
|
---|
6460 | reason, it is recommended to never read this attribute on the main UI
|
---|
6461 | thread to avoid making the UI unresponsive.
|
---|
6462 |
|
---|
6463 | Note that when VirtualBox starts up (e.g. the VirtualBox object gets
|
---|
6464 | created for the first time), all known media are in the
|
---|
6465 | <link to="MediaState::Inaccessible"/> state but the value of the <link
|
---|
6466 | to="#lastAccessError"/> attribute is <tt>null</tt> because no actual
|
---|
6467 | accessibility check is made on startup. This is done to make the
|
---|
6468 | VirtualBox object ready for serving requests as
|
---|
6469 | fast as possible and let the end-user application decide if it needs to
|
---|
6470 | check media accessibility right away or not.
|
---|
6471 | </desc>
|
---|
6472 |
|
---|
6473 | <attribute name="id" type="uuid" readonly="yes">
|
---|
6474 | <desc>
|
---|
6475 | UUID of the medium. For a newly created medium, this value is a randomly
|
---|
6476 | generated UUID.
|
---|
6477 | </desc>
|
---|
6478 | </attribute>
|
---|
6479 |
|
---|
6480 | <attribute name="description" type="wstring">
|
---|
6481 | <desc>
|
---|
6482 | Optional description of the medium. For newly created media, the value
|
---|
6483 | of this attribute value is <tt>null</tt>.
|
---|
6484 |
|
---|
6485 | Media types that don't support this attribute will return E_NOTIMPL in
|
---|
6486 | attempt to get or set this attribute's value.
|
---|
6487 |
|
---|
6488 | <note>
|
---|
6489 | For some storage types, reading this attribute may return an outdated
|
---|
6490 | (last known) value when <link to="#state"/> is <link
|
---|
6491 | to="MediaState::Inaccessible"/> or <link
|
---|
6492 | to="MediaState::LockedWrite"/> because the value of this attribute is
|
---|
6493 | stored within the storage unit itself. Also note that changing the
|
---|
6494 | attribute value is not possible in such case, as well as when the
|
---|
6495 | medium is the <link to="MediaState::LockedRead"/> state.
|
---|
6496 | </note>
|
---|
6497 | </desc>
|
---|
6498 | </attribute>
|
---|
6499 |
|
---|
6500 | <attribute name="state" type="MediaState" readonly="yes">
|
---|
6501 | <desc>
|
---|
6502 | Current media state. Inspect <link to="MediaState"/> values for details.
|
---|
6503 |
|
---|
6504 | Reading this attribute may take long time because a new accessibility
|
---|
6505 | check of the storage unit is performed every time the attribute is read.
|
---|
6506 | This check may cause a significant delay if the storage unit of the
|
---|
6507 | given medium is, for example, a file located on a network share which is
|
---|
6508 | not currently accessible due to connectivity problems -- the call will
|
---|
6509 | not return until a timeout interval defined by the host OS for this
|
---|
6510 | operation expires.
|
---|
6511 |
|
---|
6512 | If the last known state of the medium is <link to="MediaState::Created"/>
|
---|
6513 | and the accessibility check fails then the state would be set to
|
---|
6514 | <link to="MediaState::Inaccessible"/> and <link to="#lastAccessError"/>
|
---|
6515 | may be used to get more details about the failure. If the state of the
|
---|
6516 | medium is <link to="MediaState::LockedRead"/> or
|
---|
6517 | <link to="MediaState::LockedWrite"/> then it remains the same, and a
|
---|
6518 | non-null value of <link to="#lastAccessError"/> will indicate a failed
|
---|
6519 | accessibility check in this case.
|
---|
6520 |
|
---|
6521 | Note that not all media states are applicable to certain media types.
|
---|
6522 | For example, states <link to="MediaState::NotCreated"/>,
|
---|
6523 | <link to="MediaState::LockedWrite"/>, <link to="MediaState::Creating"/>,
|
---|
6524 | <link to="MediaState::Deleting"/> are meaningless for IDVDImage2 and
|
---|
6525 | IFloppyImage2 media.
|
---|
6526 | </desc>
|
---|
6527 | </attribute>
|
---|
6528 |
|
---|
6529 | <attribute name="location" type="wstring">
|
---|
6530 | <desc>
|
---|
6531 | Location of the storage unit holding media data.
|
---|
6532 |
|
---|
6533 | The format of the location string is media type specific. For media
|
---|
6534 | types that use regular files in a host's file system, the location
|
---|
6535 | string is just a full file name.
|
---|
6536 |
|
---|
6537 | Some media types may support changing the storage unit location by
|
---|
6538 | simply changing the value of this property. If this operation is not
|
---|
6539 | supported, the implementation will return E_NOTIMPL in attempt to set
|
---|
6540 | this attribute's value.
|
---|
6541 |
|
---|
6542 | When setting a value of the location attribute which is a regular file
|
---|
6543 | in the host's file system, the given file name may be either relative to
|
---|
6544 | the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
|
---|
6545 | absolute. Note that if the given location specification does not contain
|
---|
6546 | the file extension part then a proper default extension will be
|
---|
6547 | automatically appended by the implementation depending on the media type.
|
---|
6548 | </desc>
|
---|
6549 | </attribute>
|
---|
6550 |
|
---|
6551 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6552 | <desc>
|
---|
6553 | Name of the storage unit holding media data.
|
---|
6554 |
|
---|
6555 | The returned string is a short version of the <link to="#location"/>
|
---|
6556 | attribute that is suitable for representing the medium in situations
|
---|
6557 | where the full location specification is too long (such as lists
|
---|
6558 | and comboboxes in GUI frontends). This string is also used by frontends
|
---|
6559 | to sort the media list alphabetically when needed.
|
---|
6560 |
|
---|
6561 | For example, for locations that are regular files in the host's file
|
---|
6562 | system, the value of this attribute is just a file name (+ extension),
|
---|
6563 | without the path specification.
|
---|
6564 |
|
---|
6565 | Note that as opposed to the <link to="#location"/> attribute, the name
|
---|
6566 | attribute will not necessary be unique for a list of media of the
|
---|
6567 | given type and format.
|
---|
6568 | </desc>
|
---|
6569 | </attribute>
|
---|
6570 |
|
---|
6571 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
6572 | <desc>
|
---|
6573 | Physical size of the storage unit used to hold media data (in bytes).
|
---|
6574 |
|
---|
6575 | <note>
|
---|
6576 | For media whose <link to="#state"/> is <link
|
---|
6577 | to="MediaState::Inaccessible"/>, the value of this property is the
|
---|
6578 | last known size. For <link to="MediaState::NotCreated"/> media,
|
---|
6579 | the returned value is zero.
|
---|
6580 | </note>
|
---|
6581 | </desc>
|
---|
6582 | </attribute>
|
---|
6583 |
|
---|
6584 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
6585 | <desc>
|
---|
6586 | Text message that represents the result of the last accessibility
|
---|
6587 | check.
|
---|
6588 |
|
---|
6589 | Accessibility checks are performed each time the <link to="#state"/>
|
---|
6590 | attribute is read. A @c null string is returned if the last
|
---|
6591 | accessibility check was successful. A non-null string indicates a
|
---|
6592 | failure and should normally describe a reason of the failure (for
|
---|
6593 | example, a file read error).
|
---|
6594 | </desc>
|
---|
6595 | </attribute>
|
---|
6596 |
|
---|
6597 | <attribute name="machineIds" type="uuid" safearray="yes" readonly="yes">
|
---|
6598 | <desc>
|
---|
6599 | Array of UUIDs of all machines this medium is attached to.
|
---|
6600 |
|
---|
6601 | A <tt>null</tt> array is returned if this medium is not attached to any
|
---|
6602 | machine or to any machine's snapshot.
|
---|
6603 |
|
---|
6604 | <note>
|
---|
6605 | The returned array will include a machine even if this medium is not
|
---|
6606 | attached to that machine in the current state but attached to it in
|
---|
6607 | one of the machine's snapshots. See <link to="#getSnapshotIds()"/> for
|
---|
6608 | details.
|
---|
6609 | </note>
|
---|
6610 | </desc>
|
---|
6611 | </attribute>
|
---|
6612 |
|
---|
6613 | <method name="getSnapshotIds">
|
---|
6614 | <desc>
|
---|
6615 | Returns an array of UUIDs of all snapshots of the given machine where
|
---|
6616 | this medium is attached to it.
|
---|
6617 |
|
---|
6618 | If the medium is attached to the machine in the current state, then the
|
---|
6619 | first element in the array will always be the ID of the queried machine
|
---|
6620 | (i.e. the value equal to the @c machineId argument), followed by
|
---|
6621 | snapshot IDs (if any).
|
---|
6622 |
|
---|
6623 | If the medium is not attached to the machine in the current state, then
|
---|
6624 | the array will contain only snapshot IDs.
|
---|
6625 |
|
---|
6626 | The returned array may be <tt>null</tt> if this medium is not attached
|
---|
6627 | to the given machine at all, neither in the current state nor in one of
|
---|
6628 | snapshots.
|
---|
6629 | </desc>
|
---|
6630 | <param name="machineId" type="uuid" dir="in">
|
---|
6631 | <desc>
|
---|
6632 | UUID of the machine to query.
|
---|
6633 | </desc>
|
---|
6634 | </param>
|
---|
6635 | <param name="snapshotIds" type="uuid" safearray="yes" dir="return">
|
---|
6636 | <desc>
|
---|
6637 | Array of snapshot UUIDs of the given machine using this medium.
|
---|
6638 | </desc>
|
---|
6639 | </param>
|
---|
6640 | </method>
|
---|
6641 |
|
---|
6642 | <method name="lockRead">
|
---|
6643 | <desc>
|
---|
6644 | Locks this medium for reading.
|
---|
6645 |
|
---|
6646 | The read lock is shared: many clients can simultaneously lock the
|
---|
6647 | same media for reading unless it is already locked for writing (see
|
---|
6648 | <link to="#lockWrite()"/>) in which case an error is returned.
|
---|
6649 |
|
---|
6650 | When the medium is locked for reading, it cannot be modified from within
|
---|
6651 | VirtualBox. This means that any method that changes the properties of
|
---|
6652 | this medium or contents of the storage unit will return an error (unless
|
---|
6653 | explicitly stated otherwise) and that an attempt to start a virtual
|
---|
6654 | machine that wants to modify the medium will also fail.
|
---|
6655 |
|
---|
6656 | When the virtual machine is started up, it locks for reading all media
|
---|
6657 | it uses in read-only mode. If some media cannot be locked for reading,
|
---|
6658 | the startup procedure will fail.
|
---|
6659 |
|
---|
6660 | The medium locked for reading must be unlocked using the
|
---|
6661 | <link to="#unlockRead()"/> method. Calls to <link to="#lockRead()"/> can
|
---|
6662 | be nested and must be followed by the same number of paired
|
---|
6663 | <link to="#unlockRead()"/> calls.
|
---|
6664 |
|
---|
6665 | This method sets the media state to <link to="MediaState::LockedRead"/>
|
---|
6666 | on success. The state prior to this call must be
|
---|
6667 | <link to="MediaState::Created"/>,
|
---|
6668 | <link to="MediaState::Inaccessible"/> or
|
---|
6669 | <link to="MediaState::LockedRead"/>. As you can see, inaccessible media
|
---|
6670 | can be locked too. This is not an error; this method performs a logical
|
---|
6671 | lock that prevents modifications of this media through the VirtualBox
|
---|
6672 | API, not a physical lock of the underlying storage unit.
|
---|
6673 |
|
---|
6674 | Either on success or on failure, this method returns the current state
|
---|
6675 | of the medium <b>before</b> the operation.
|
---|
6676 | </desc>
|
---|
6677 | <param name="state" type="MediaState" dir="return">
|
---|
6678 | <desc>
|
---|
6679 | State of the medium after the operation.
|
---|
6680 | </desc>
|
---|
6681 | </param>
|
---|
6682 | </method>
|
---|
6683 |
|
---|
6684 | <method name="unlockRead">
|
---|
6685 | <desc>
|
---|
6686 | Cancels the read lock previously set by <link to="#lockRead()"/>.
|
---|
6687 |
|
---|
6688 | Either on success or on failure, this method returns the current state
|
---|
6689 | of the medium <b>after</b> the operation.
|
---|
6690 |
|
---|
6691 | See <link to="#lockRead()"/> for more details.
|
---|
6692 | </desc>
|
---|
6693 | <param name="state" type="MediaState" dir="return">
|
---|
6694 | <desc>
|
---|
6695 | State of the medium after the operation.
|
---|
6696 | </desc>
|
---|
6697 | </param>
|
---|
6698 | </method>
|
---|
6699 |
|
---|
6700 | <method name="lockWrite">
|
---|
6701 | <desc>
|
---|
6702 | Locks this medium for writing.
|
---|
6703 |
|
---|
6704 | The write lock, as opposed to <link to="#lockRead()"/>, is exclusive:
|
---|
6705 | there may be only one client that holds a write lock and there may be no
|
---|
6706 | read locks while the write lock is held.
|
---|
6707 |
|
---|
6708 | When the medium is locked for writing, it cannot be modified from within
|
---|
6709 | VirtualBox and it is not guaranteed that the values of its properties
|
---|
6710 | are up-to-date. Any method that changes the properties of this medium or
|
---|
6711 | contents of the storage unit will return an error ((unless explicitly
|
---|
6712 | stated otherwise) and an attempt to start a virtual machine that wants
|
---|
6713 | to modify or to read the medium will also fail.
|
---|
6714 |
|
---|
6715 | When the virtual machine is started up, it locks for writing all media
|
---|
6716 | it uses to write data to. If some media cannot be locked for writing,
|
---|
6717 | the startup procedure will fail.
|
---|
6718 |
|
---|
6719 | The medium locked for writing must be unlocked using the
|
---|
6720 | <link to="#unlockWrite()"/> method. Calls to <link to="#lockWrite()"/>
|
---|
6721 | can <b>not</b> be nested and must be followed by a paired
|
---|
6722 | <link to="#unlockWrite()"/> call.
|
---|
6723 |
|
---|
6724 | This method sets the media state to <link to="MediaState::LockedWrite"/>
|
---|
6725 | on success. The state prior to this call must be
|
---|
6726 | <link to="MediaState::Created"/> or
|
---|
6727 | <link to="MediaState::Inaccessible"/>. As you can see, inaccessible media
|
---|
6728 | can be locked too. This is not an error; this method performs a logical
|
---|
6729 | lock that prevents modifications of this media through the VirtualBox
|
---|
6730 | API, not a physical lock of the underlying storage unit.
|
---|
6731 |
|
---|
6732 | Either on success or on failure, this method returns the current state
|
---|
6733 | of the medium <b>before</b> the operation.
|
---|
6734 | </desc>
|
---|
6735 | <param name="state" type="MediaState" dir="return">
|
---|
6736 | <desc>
|
---|
6737 | State of the medium after the operation.
|
---|
6738 | </desc>
|
---|
6739 | </param>
|
---|
6740 | </method>
|
---|
6741 |
|
---|
6742 | <method name="unlockWrite">
|
---|
6743 | <desc>
|
---|
6744 | Cancels the write lock previously set by <link to="#lockWrite()"/>.
|
---|
6745 |
|
---|
6746 | Either on success or on failure, this method returns the current state
|
---|
6747 | of the medium <b>after</b> the operation.
|
---|
6748 |
|
---|
6749 | See <link to="#lockWrite()"/> for more details.
|
---|
6750 | </desc>
|
---|
6751 | <param name="state" type="MediaState" dir="return">
|
---|
6752 | <desc>
|
---|
6753 | State of the medium after the operation.
|
---|
6754 | </desc>
|
---|
6755 | </param>
|
---|
6756 | </method>
|
---|
6757 |
|
---|
6758 | <method name="close">
|
---|
6759 | <desc>
|
---|
6760 | Closes this media.
|
---|
6761 |
|
---|
6762 | The hard disk must not be attached to any known virtual machine and must
|
---|
6763 | not have any known child hard disks, otherwise the operation will fail.
|
---|
6764 |
|
---|
6765 | When the hard disk is successfully closed, it gets removed from the list
|
---|
6766 | of remembered hard disks, but its storage unit is not deleted. In
|
---|
6767 | particular, this means that this hard disk can be later opened again
|
---|
6768 | using the <link to="IVirtualBox::openHardDisk2"/> call.
|
---|
6769 |
|
---|
6770 | Note that after this method successfully returns, the given hard disk
|
---|
6771 | object becomes uninitialized. This means that any attempt to call any of
|
---|
6772 | its methods or attributes will fail with the <tt>"Object not ready"
|
---|
6773 | (E_ACCESSDENIED)</tt> error.
|
---|
6774 | </desc>
|
---|
6775 | </method>
|
---|
6776 |
|
---|
6777 | </interface>
|
---|
6778 |
|
---|
6779 |
|
---|
6780 | <!--
|
---|
6781 | // IHardDisk2
|
---|
6782 | /////////////////////////////////////////////////////////////////////////
|
---|
6783 | -->
|
---|
6784 |
|
---|
6785 | <enum
|
---|
6786 | name="HardDiskType"
|
---|
6787 | uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
|
---|
6788 | >
|
---|
6789 | <desc>
|
---|
6790 | Virtual hard disk type.
|
---|
6791 | <see>IHardDisk</see>
|
---|
6792 | </desc>
|
---|
6793 |
|
---|
6794 | <const name="Normal" value="0">
|
---|
6795 | <desc>
|
---|
6796 | Normal hard disk (attached directly or indirectly, preserved
|
---|
6797 | when taking snapshots).
|
---|
6798 | </desc>
|
---|
6799 | </const>
|
---|
6800 | <const name="Immutable" value="1">
|
---|
6801 | <desc>
|
---|
6802 | Immutable hard disk (attached indirectly, changes are wiped out
|
---|
6803 | after powering off the virtual machine).
|
---|
6804 | </desc>
|
---|
6805 | </const>
|
---|
6806 | <const name="Writethrough" value="2">
|
---|
6807 | <desc>
|
---|
6808 | Write through hard disk (attached directly, ignored when
|
---|
6809 | taking snapshots).
|
---|
6810 | </desc>
|
---|
6811 | </const>
|
---|
6812 | </enum>
|
---|
6813 |
|
---|
6814 | <interface
|
---|
6815 | name="IHardDisk2Attachment" extends="$unknown"
|
---|
6816 | uuid="fa2f4619-2c14-4090-869e-73b45419b7b5"
|
---|
6817 | wsmap="struct"
|
---|
6818 | >
|
---|
6819 | <desc>
|
---|
6820 | The IHardDisk2Attachment interface represents a hard disk attachment of a
|
---|
6821 | virtual machine.
|
---|
6822 |
|
---|
6823 | Every hard disk attachment specifies a slot of the virtual hard disk
|
---|
6824 | controller and a virtual hard disk attached to this slot.
|
---|
6825 |
|
---|
6826 | The array of hard disk attachments is returned by
|
---|
6827 | <link to="IMachine::hardDisk2Attachments"/>.
|
---|
6828 |
|
---|
6829 | <note>
|
---|
6830 | With the COM API, this is an interface like all the others. With the
|
---|
6831 | webservice, this is mapped to a structure, so querying the attribute
|
---|
6832 | will not return an object, but a complete structure.
|
---|
6833 | </note>
|
---|
6834 | </desc>
|
---|
6835 | <attribute name="hardDisk" type="IHardDisk2" readonly="yes">
|
---|
6836 | <desc>Hard disk object associated with this attachment.</desc>
|
---|
6837 | </attribute>
|
---|
6838 |
|
---|
6839 | <attribute name="bus" type="StorageBus" readonly="yes">
|
---|
6840 | <desc>Interface bus of this attachment.</desc>
|
---|
6841 | </attribute>
|
---|
6842 |
|
---|
6843 | <attribute name="channel" type="long" readonly="yes">
|
---|
6844 | <desc>Channel number of this attachment.</desc>
|
---|
6845 | </attribute>
|
---|
6846 |
|
---|
6847 | <attribute name="device" type="long" readonly="yes">
|
---|
6848 | <desc>Device slot number of this attachment.</desc>
|
---|
6849 | </attribute>
|
---|
6850 |
|
---|
6851 | </interface>
|
---|
6852 |
|
---|
6853 | <interface
|
---|
6854 | name="IHardDisk2" extends="IMedium"
|
---|
6855 | uuid="4fece1c1-2a75-43ce-ba82-76d2a89b9d5d"
|
---|
6856 | wsmap="managed"
|
---|
6857 | >
|
---|
6858 | <desc>
|
---|
6859 | The IHardDisk2 interface represents a virtual hard disk drive
|
---|
6860 | used by a virtual machine.
|
---|
6861 |
|
---|
6862 | Virtual hard disk objects virtualize the hard disk hardware and look like
|
---|
6863 | regular hard disks for the guest OS running inside the virtual machine.
|
---|
6864 |
|
---|
6865 | <h3>Hard Disk Types</h3>
|
---|
6866 |
|
---|
6867 | There are three types of hard disks:
|
---|
6868 | <link to="HardDiskType::Normal">Normal</link>,
|
---|
6869 | <link to="HardDiskType::Immutable">Immutable</link> and
|
---|
6870 | <link to="HardDiskType::Writethrough">Writethrough</link>. The type of the
|
---|
6871 | hard disk defines how the hard disk is attached to a virtual machine and
|
---|
6872 | what happens when a <link to="ISnapshot">snapshot</link> of the virtual
|
---|
6873 | machine with the attached hard disk is taken. The type of the hard disk is
|
---|
6874 | defined by the <link to="#type"/> attribute.
|
---|
6875 |
|
---|
6876 | All hard disks can be also divided in two big groups: <i>base</i> hard
|
---|
6877 | disks and <i>differencing</i> hard disks. A base hard disk contains all
|
---|
6878 | sectors of the hard disk data in its storage unit and therefore can be
|
---|
6879 | used independently. On the contrary, a differencing hard disk contains
|
---|
6880 | only some part of the hard disk data (a subset of sectors) and needs
|
---|
6881 | another hard disk to get access to the missing sectors of data. This
|
---|
6882 | another hard disk is called a <i>parent</i> hard disk and defines a hard
|
---|
6883 | disk to which this differencing hard disk is known to be <i>linked to</i>.
|
---|
6884 | The parent hard disk may be itself a differencing hard disk. This
|
---|
6885 | way, differencing hard disks form a linked hard disk chain. This chain
|
---|
6886 | always ends with the base hard disk which is sometimes referred to as the
|
---|
6887 | root hard disk of this chain. Note that several differencing hard disks
|
---|
6888 | may be linked to the same parent hard disk. This way, all known hard disks
|
---|
6889 | form a hard disk tree which is based on their parent-child relationship.
|
---|
6890 |
|
---|
6891 | Differencing hard disks can be distinguished from base hard disks by
|
---|
6892 | querying the <link to="#parent"/> attribute: base hard disks do not have
|
---|
6893 | parents they would depend on, so the value of this attribute is always
|
---|
6894 | <tt>null</tt> for them. Using this attribute, it is possible to walk up
|
---|
6895 | the hard disk tree (from the child hard disk to its parent). It is also
|
---|
6896 | possible to walk down the tree using the <link to="#children"/>
|
---|
6897 | attribute.
|
---|
6898 |
|
---|
6899 | Note that the type of all differencing hard disks is
|
---|
6900 | <link to="HardDiskType::Normal">Normal</link>; all other values are
|
---|
6901 | meaningless for them. Base hard disks may be of any type.
|
---|
6902 |
|
---|
6903 | <h3>Creating Hard Disks</h3>
|
---|
6904 |
|
---|
6905 | New base hard disks are created using
|
---|
6906 | <link to="IVirtualBox::createHardDisk2()"/>. Existing hard disks are
|
---|
6907 | opened using <link to="IVirtualBox::openHardDisk2()"/>. Differencing hard
|
---|
6908 | disks are usually implicitly created by VirtualBox when needed but may
|
---|
6909 | also be created explicitly using <link to="#createDiffStorage()"/>.
|
---|
6910 |
|
---|
6911 | After the hard disk is successfully created (including the storage unit)
|
---|
6912 | or opened, it becomes a known hard disk (remembered in the internal media
|
---|
6913 | registry). Known hard disks can be attached to a virtual machine, accessed
|
---|
6914 | through <link to="IVirtualBox::getHardDisk2()"/> and
|
---|
6915 | <link to="IVirtualBox::findHardDisk2()"/> methods or enumerated using the
|
---|
6916 | <link to="IVirtualBox::hardDisks2"/> array (only for base hard disks).
|
---|
6917 |
|
---|
6918 | The following methods, besides <link to="IMedium::close()"/>,
|
---|
6919 | automatically remove the hard disk from the media registry:
|
---|
6920 | <ul>
|
---|
6921 | <li><link to="#deleteStorage()"/></li>
|
---|
6922 | <li><link to="#mergeTo()"/></li>
|
---|
6923 | </ul>
|
---|
6924 |
|
---|
6925 | If the storage unit of the hard disk is a regular file in the host's
|
---|
6926 | file system then the rules stated in the description of the
|
---|
6927 | <link to="IMedium::location"/> attribute apply when setting its value. In
|
---|
6928 | addition, a plain file name without any path may be given, in which case
|
---|
6929 | the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
6930 | folder</link> will be prepended to it.
|
---|
6931 |
|
---|
6932 | <h4>Automatic composition of the file name part</h4>
|
---|
6933 |
|
---|
6934 | Another extension to the <link to="IMedium::location"/> attribute is that
|
---|
6935 | there is a possibility to cause VirtualBox to compose a unique value for
|
---|
6936 | the file name part of the location using the UUID of the hard disk. This
|
---|
6937 | applies only to hard disks in <link to="MediaState::NotCreated"/> state,
|
---|
6938 | e.g. before the storage unit is created, and works as follows. You set the
|
---|
6939 | value of the <link to="IMedium::location"/> attribute to a location
|
---|
6940 | specification which only contains the path specification but not the file
|
---|
6941 | name part and ends with either a forward slash or a backslash character.
|
---|
6942 | In response, VirtualBox will generate a new UUID for the hard disk and
|
---|
6943 | compose the file name using the following pattern:
|
---|
6944 | <pre>
|
---|
6945 | <path>/{<uuid>}.<ext>
|
---|
6946 | </pre>
|
---|
6947 | where <tt><path></tt> is the supplied path specification,
|
---|
6948 | <tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
|
---|
6949 | is the default extension for the storage format of this hard disk. After
|
---|
6950 | that, you may call any of the methods that create a new hard disk storage
|
---|
6951 | unit and they will use the generated UUID and file name.
|
---|
6952 |
|
---|
6953 | <h3>Attaching Hard Disks</h3>
|
---|
6954 |
|
---|
6955 | Hard disks are attached to virtual machines using the
|
---|
6956 | <link to="IMachine::attachHardDisk2()"/> method and detached using the
|
---|
6957 | <link to="IMachine::detachHardDisk2()"/> method. Depending on their
|
---|
6958 | <link to="#type"/>, hard disks are attached either
|
---|
6959 | <i>directly</i> or <i>indirectly</i>.
|
---|
6960 |
|
---|
6961 | When a hard disk is being attached directly, it is associated with the
|
---|
6962 | virtual machine and used for hard disk operations when the machine is
|
---|
6963 | running. When a hard disk is being attached indirectly, a new differencing
|
---|
6964 | hard disk linked to it is implicitly created and this differencing hard
|
---|
6965 | disk is associated with the machine and used for hard disk operations.
|
---|
6966 | This also means that if <link to="IMachine::attachHardDisk2()"/> performs
|
---|
6967 | a direct attachment then the same hard disk will be returned in response
|
---|
6968 | to the subsequent <link to="IMachine::getHardDisk2()"/> call; however if
|
---|
6969 | an indirect attachment is performed then
|
---|
6970 | <link to="IMachine::getHardDisk2()"/> will return the implicitly created
|
---|
6971 | differencing hard disk, not the original one passed to <link
|
---|
6972 | to="IMachine::attachHardDisk2()"/>. The following table shows the
|
---|
6973 | dependency of the attachment type on the hard disk type:
|
---|
6974 |
|
---|
6975 | <table>
|
---|
6976 | <tr>
|
---|
6977 | <th>Hard Disk Type</th>
|
---|
6978 | <th>Direct or Indirect?</th>
|
---|
6979 | </tr>
|
---|
6980 | <tr>
|
---|
6981 | <td>Normal (Base)</td>
|
---|
6982 | <td>
|
---|
6983 | Normal base hard disks that do not have children (i.e. differencing
|
---|
6984 | hard disks linked to them) and that are not already attached to
|
---|
6985 | virtual machines in snapshots are attached <b>directly</b>.
|
---|
6986 | Otherwise, they are attached <b>indirectly</b> because having
|
---|
6987 | dependent children or being part of the snapshot makes it impossible
|
---|
6988 | to modify hard disk contents without breaking the integrity of the
|
---|
6989 | dependent party. The <link to="#readOnly"/> attribute allows to
|
---|
6990 | quickly determine the kind of the attachment for the given hard
|
---|
6991 | disk. Note that if a normal base hard disk is to be indirectly
|
---|
6992 | attached to a virtual machine with snapshots then a special
|
---|
6993 | procedure called <i>smart attachment</i> is performed (see below).
|
---|
6994 | </td>
|
---|
6995 | </tr>
|
---|
6996 | <tr>
|
---|
6997 | <td>Normal (Differencing)</td>
|
---|
6998 | <td>
|
---|
6999 | Differencing hard disks are like normal base hard disks: attached
|
---|
7000 | <b>directly</b> if they do not have children and are not attached to
|
---|
7001 | virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
|
---|
7002 | that the smart attachment procedure is never performed for
|
---|
7003 | differencing hard disks.
|
---|
7004 | </td>
|
---|
7005 | </tr>
|
---|
7006 | <tr>
|
---|
7007 | <td>Immutable</td>
|
---|
7008 | <td>
|
---|
7009 | Immutable hard disks are always attached <b>indirectly</b> because
|
---|
7010 | they are designed to be non-writable. If an immutable hard disk is
|
---|
7011 | attached to a virtual machine with snapshots then a special
|
---|
7012 | procedure called smart attachment is performed (see below).
|
---|
7013 | </td>
|
---|
7014 | </tr>
|
---|
7015 | <tr>
|
---|
7016 | <td>Writethrough</td>
|
---|
7017 | <td>
|
---|
7018 | Writethrough hard disks are always attached <b>directly</b>, also as
|
---|
7019 | designed. This also means that writethrough hard disks cannot have
|
---|
7020 | other hard disks linked to them at all.
|
---|
7021 | </td>
|
---|
7022 | </tr>
|
---|
7023 | </table>
|
---|
7024 |
|
---|
7025 | Note that the same hard disk, regardless of its type, may be attached to
|
---|
7026 | more than one virtual machine at a time. In this case, the machine that is
|
---|
7027 | started first gains exclusive access to the hard disk and attempts to
|
---|
7028 | start other machines having this hard disk attached will fail until the
|
---|
7029 | first machine is powered down.
|
---|
7030 |
|
---|
7031 | Detaching hard disks is performed in a <i>deferred</i> fashion. This means
|
---|
7032 | that the given hard disk remains associated with the given machine after a
|
---|
7033 | successful <link to="IMachine::detachHardDisk2()"/> call until
|
---|
7034 | <link to="IMachine::saveSettings()"/> is called to save all changes to
|
---|
7035 | machine settings to disk. This deferring is necessary to guarantee that
|
---|
7036 | the hard disk configuration may be restored at any time by a call to
|
---|
7037 | <link to="IMachine::discardSettings()"/> before the settings
|
---|
7038 | are saved (committed).
|
---|
7039 |
|
---|
7040 | Note that if <link to="IMachine::discardSettings()"/> is called after
|
---|
7041 | indirectly attaching some hard disks to the machine but before a call to
|
---|
7042 | <link to="IMachine::saveSettings()"/> is made, it will implicitly delete
|
---|
7043 | all differencing hard disks implicitly created by
|
---|
7044 | <link to="IMachine::attachHardDisk2()"/> for these indirect attachments.
|
---|
7045 | Such implicitly created hard disks will also be immediately deleted when
|
---|
7046 | detached explicitly using the <link to="IMachine::detachHardDisk2()"/>
|
---|
7047 | call if it is made before <link to="IMachine::saveSettings()"/>. This
|
---|
7048 | implicit deletion is safe because newly created differencing hard
|
---|
7049 | disks do not contain any user data.
|
---|
7050 |
|
---|
7051 | However, keep in mind that detaching differencing hard disks that were
|
---|
7052 | implicitly created by <link to="IMachine::attachHardDisk2()"/>
|
---|
7053 | before the last <link to="IMachine::saveSettings()"/> call will
|
---|
7054 | <b>not</b> implicitly delete them as they may already contain some data
|
---|
7055 | (for example, as a result of virtual machine execution). If these hard
|
---|
7056 | disks are no more necessary, the caller can always delete them explicitly
|
---|
7057 | using <link to="#deleteStorage()"/> after they are actually de-associated
|
---|
7058 | from this machine by the <link to="IMachine::saveSettings()"/> call.
|
---|
7059 |
|
---|
7060 | <h3>Smart Attachment</h3>
|
---|
7061 |
|
---|
7062 | When normal base or immutable hard disks are indirectly attached to a
|
---|
7063 | virtual machine then some additional steps are performed to make sure the
|
---|
7064 | virtual machine will have the most recent "view" of the hard disk being
|
---|
7065 | attached. These steps include walking through the machine's snapshots
|
---|
7066 | starting from the current one and going through ancestors up to the first
|
---|
7067 | snapshot. Hard disks attached to the virtual machine in all
|
---|
7068 | of the encountered snapshots are checked whether they are descendants of
|
---|
7069 | the given normal base or immutable hard disk. The first found child (which
|
---|
7070 | is the differencing hard disk) will be used instead of the normal base or
|
---|
7071 | immutable hard disk as a parent for creating a new differencing hard disk
|
---|
7072 | that will be actually attached to the machine. And only if no descendants
|
---|
7073 | are found or if the virtual machine does not have any snapshots then the
|
---|
7074 | normal base or immutable hard disk will be used itself as a parent for
|
---|
7075 | this differencing hard disk.
|
---|
7076 |
|
---|
7077 | It is easier to explain what smart attachment does using the
|
---|
7078 | following example:
|
---|
7079 | <pre>
|
---|
7080 | BEFORE attaching B.vdi: AFTER attaching B.vdi:
|
---|
7081 |
|
---|
7082 | Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
|
---|
7083 | Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
|
---|
7084 | Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
|
---|
7085 | Snapshot 4 (none) Snapshot 4 (none)
|
---|
7086 | CurState (none) CurState (D3->D2.vdi)
|
---|
7087 |
|
---|
7088 | NOT
|
---|
7089 | ...
|
---|
7090 | CurState (D3->B.vdi)
|
---|
7091 | </pre>
|
---|
7092 | The first column is the virtual machine configuration before the base hard
|
---|
7093 | disk <tt>B.vdi</tt> is attached, the second column shows the machine after
|
---|
7094 | this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
|
---|
7095 | mean that the hard disk that is actually attached to the machine is a
|
---|
7096 | differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
|
---|
7097 | another hard disk, <tt>B.vdi</tt>.
|
---|
7098 |
|
---|
7099 | As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
|
---|
7100 | from the machine before taking Snapshot 4. Later, after Snapshot 4 was
|
---|
7101 | taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
|
---|
7102 | dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
|
---|
7103 | it cannot be attached directly and needs an indirect attachment (i.e.
|
---|
7104 | implicit creation of a new differencing hard disk). Due to the smart
|
---|
7105 | attachment procedure, the new differencing hard disk
|
---|
7106 | (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
|
---|
7107 | <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
|
---|
7108 | <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
|
---|
7109 | machine.
|
---|
7110 |
|
---|
7111 | Note that if there is more than one descendant hard disk of the given base
|
---|
7112 | hard disk found in a snapshot, and there is an exact device, channel and
|
---|
7113 | bus match, then this exact match will be used. Otherwise, the youngest
|
---|
7114 | descendant will be picked up.
|
---|
7115 |
|
---|
7116 | There is one more important aspect of the smart attachment procedure which
|
---|
7117 | is not related to snapshots at all. Before walking through the snapshots
|
---|
7118 | as described above, the backup copy of the current list of hard disk
|
---|
7119 | attachment is searched for descendants. This backup copy is created when
|
---|
7120 | the hard disk configuration is changed for the first time after the last
|
---|
7121 | <link to="IMachine::saveSettings()"/> call and used by
|
---|
7122 | <link to="IMachine::discardSettings()"/> to undo the recent hard disk
|
---|
7123 | changes. When such a descendant is found in this backup copy, it will be
|
---|
7124 | simply re-attached back, without creating a new differencing hard disk for
|
---|
7125 | it. This optimization is necessary to make it possible to re-attach the
|
---|
7126 | base or immutable hard disk to a different bus, channel or device slot
|
---|
7127 | without losing the contents of the differencing hard disk actually
|
---|
7128 | attached to the machine in place of it.
|
---|
7129 | </desc>
|
---|
7130 |
|
---|
7131 | <attribute name="format" type="wstring" readonly="yes">
|
---|
7132 | <desc>
|
---|
7133 | Storage format of this hard disk.
|
---|
7134 |
|
---|
7135 | The value of this attribute is a string that specifies a backend used to
|
---|
7136 | store hard disk data. The storage format is defined when you create a
|
---|
7137 | new hard disk or automatically detected when you open an existing hard
|
---|
7138 | disk medium, and cannot be changed later.
|
---|
7139 |
|
---|
7140 | The list of all storage formats supported by this VirtualBox
|
---|
7141 | installation can be obtained using
|
---|
7142 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
7143 | </desc>
|
---|
7144 | </attribute>
|
---|
7145 |
|
---|
7146 | <attribute name="type" type="HardDiskType">
|
---|
7147 | <desc>
|
---|
7148 | Type (role) of this hard disk.
|
---|
7149 |
|
---|
7150 | The following constraints apply when changing the value of this
|
---|
7151 | attribute:
|
---|
7152 | <ul>
|
---|
7153 | <li>If a hard disk is attached to a virtual machine (either in the
|
---|
7154 | current state or in one of the snapshots), its type cannot be
|
---|
7155 | changed.
|
---|
7156 | </li>
|
---|
7157 | <li>As long as the hard disk has children, its type cannot be set
|
---|
7158 | to <link to="HardDiskType::Writethrough"/>.
|
---|
7159 | </li>
|
---|
7160 | <li>The type of all differencing hard disks is
|
---|
7161 | <link to="HardDiskType::Normal"/> and cannot be changed.
|
---|
7162 | </li>
|
---|
7163 | </ul>
|
---|
7164 |
|
---|
7165 | The type of a newly created or opened hard disk is set to
|
---|
7166 | <link to="HardDiskType::Normal"/>.
|
---|
7167 | </desc>
|
---|
7168 | </attribute>
|
---|
7169 |
|
---|
7170 | <attribute name="parent" type="IHardDisk2" readonly="yes">
|
---|
7171 | <desc>
|
---|
7172 | Parent of this hard disk (a hard disk this hard disk is directly based
|
---|
7173 | on).
|
---|
7174 |
|
---|
7175 | Only differencing hard disks have parents. For base (non-differencing)
|
---|
7176 | hard disks, <tt>null</tt> is returned.
|
---|
7177 | </desc>
|
---|
7178 | </attribute>
|
---|
7179 |
|
---|
7180 | <attribute name="children" type="IHardDisk2" safearray="yes" readonly="yes">
|
---|
7181 | <desc>
|
---|
7182 | Children of this hard disk (all differencing hard disks directly based
|
---|
7183 | on this hard disk). A <tt>null</tt> array is returned if this hard disk
|
---|
7184 | does not have any children.
|
---|
7185 | </desc>
|
---|
7186 | </attribute>
|
---|
7187 |
|
---|
7188 | <attribute name="root" type="IHardDisk2" readonly="yes">
|
---|
7189 | <desc>
|
---|
7190 | Root hard disk of this hard disk.
|
---|
7191 |
|
---|
7192 | If this is a differencing hard disk, its root hard disk is the base hard
|
---|
7193 | disk the given hard disk branch starts from. For all other types of hard
|
---|
7194 | disks, this property returns the hard disk object itself (i.e. the same
|
---|
7195 | object this property is read on).
|
---|
7196 | </desc>
|
---|
7197 | </attribute>
|
---|
7198 |
|
---|
7199 | <attribute name="readOnly" type="boolean" readonly="yes">
|
---|
7200 | <desc>
|
---|
7201 | Returns <tt>true</tt> if this hard disk is read-only and <tt>false</tt>
|
---|
7202 | otherwise.
|
---|
7203 |
|
---|
7204 | A hard disk is considered to be read-only when its contents cannot be
|
---|
7205 | modified without breaking the integrity of other parties that depend on
|
---|
7206 | this hard disk such as its child hard disks or snapshots of virtual
|
---|
7207 | machines where this hard disk is attached to these machines. If there
|
---|
7208 | are no children and no such snapshots then there is no dependency and
|
---|
7209 | the hard disk is not read-only.
|
---|
7210 |
|
---|
7211 | The value of this attribute can be used to determine the kind of the
|
---|
7212 | attachment that will take place when attaching this hard disk to a
|
---|
7213 | virtual machine. If the value is <tt>false</tt> then the hard disk will
|
---|
7214 | be attached directly. If the value is <tt>true</tt> then the hard disk
|
---|
7215 | will be attached indirectly by creating a new differencing child hard
|
---|
7216 | disk for that. See the interface description for more information.
|
---|
7217 |
|
---|
7218 | Note that all <link to="HardDiskType::Immutable">Immutable</link> hard
|
---|
7219 | disks are always read-only while all
|
---|
7220 | <link to="HardDiskType::Writethrough">Writethrough</link> hard disks are
|
---|
7221 | always not.
|
---|
7222 |
|
---|
7223 | <note>
|
---|
7224 | The read-only condition represented by this attribute is related to
|
---|
7225 | the hard disk type and usage, not to the current
|
---|
7226 | <link to="IMedium::state">media state</link> and not to the read-only
|
---|
7227 | state of the storage unit.
|
---|
7228 | </note>
|
---|
7229 | </desc>
|
---|
7230 | </attribute>
|
---|
7231 |
|
---|
7232 | <attribute name="logicalSize" type="unsigned long long" readonly="yes">
|
---|
7233 | <desc>
|
---|
7234 | Logical size of this hard disk (in megabytes), as reported to the
|
---|
7235 | guest OS running inside the virtual machine this disk is
|
---|
7236 | attached to. The logical size is defined when the hard disk is created
|
---|
7237 | and cannot be changed later.
|
---|
7238 |
|
---|
7239 | <note>
|
---|
7240 | Reading this property on a differencing hard disk will return the size
|
---|
7241 | of its <link to="#root"/> hard disk.
|
---|
7242 | </note>
|
---|
7243 | <note>
|
---|
7244 | For hard disks whose state is <link to="#state"/> is <link
|
---|
7245 | to="MediaState::Inaccessible"/>, the value of this property is the
|
---|
7246 | last known logical size. For <link to="MediaState::NotCreated"/> hard
|
---|
7247 | disks, the returned value is zero.
|
---|
7248 | </note>
|
---|
7249 | </desc>
|
---|
7250 | </attribute>
|
---|
7251 |
|
---|
7252 | <!-- storage methods -->
|
---|
7253 |
|
---|
7254 | <method name="getProperty">
|
---|
7255 | <desc>
|
---|
7256 | Returns the value of the custom hard disk property with the given name.
|
---|
7257 |
|
---|
7258 | The list of all properties supported by the given hard disk format can
|
---|
7259 | be obtained with <link to="IHardDiskFormat::describeProperties()"/>.
|
---|
7260 |
|
---|
7261 | Note that if this method returns a <tt>null</tt> @a value, the requested
|
---|
7262 | property is supported but currently not assigned any value.
|
---|
7263 |
|
---|
7264 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7265 | Requested property does not exist (not supported by the format).
|
---|
7266 | </result>
|
---|
7267 | <result name="E_INVALIDARG">@a name is NULL or empty.</result>
|
---|
7268 | </desc>
|
---|
7269 | <param name="name" type="wstring" dir="in">
|
---|
7270 | <desc>Name of the property to get.</desc>
|
---|
7271 | </param>
|
---|
7272 | <param name="value" type="wstring" dir="return">
|
---|
7273 | <desc>Current property value.</desc>
|
---|
7274 | </param>
|
---|
7275 | </method>
|
---|
7276 |
|
---|
7277 | <method name="setProperty">
|
---|
7278 | <desc>
|
---|
7279 | Sets the value of the custom hard disk property with the given name.
|
---|
7280 |
|
---|
7281 | The list of all properties supported by the given hard disk format can
|
---|
7282 | be obtained with <link to="IHardDiskFormat::describeProperties()"/>.
|
---|
7283 |
|
---|
7284 | Note that passing <tt>null</tt> as @a value will reset the value of the
|
---|
7285 | property to nothing which may also be understood as deleting the
|
---|
7286 | property's value. For properties with no values, the format backend will
|
---|
7287 | use a default value if such a value is defined for the given property.
|
---|
7288 |
|
---|
7289 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7290 | Requested property does not exist (not supported by the format).
|
---|
7291 | </result>
|
---|
7292 | <result name="E_INVALIDARG">@a name is NULL or empty.</result>
|
---|
7293 | </desc>
|
---|
7294 | <param name="name" type="wstring" dir="in">
|
---|
7295 | <desc>Name of the property to set.</desc>
|
---|
7296 | </param>
|
---|
7297 | <param name="value" type="wstring" dir="in">
|
---|
7298 | <desc>Property value to set.</desc>
|
---|
7299 | </param>
|
---|
7300 | </method>
|
---|
7301 |
|
---|
7302 | <method name="getProperties">
|
---|
7303 | <desc>
|
---|
7304 | Returns values for a group of properties in one call.
|
---|
7305 |
|
---|
7306 | The names of the properties to get are specified using the @a names
|
---|
7307 | argument which is a list of comma-separated property names or
|
---|
7308 | <tt>null</tt> if all properties are to be returned. Note that currently
|
---|
7309 | the value of this argument is ignored and the method always returns all
|
---|
7310 | existing properties.
|
---|
7311 |
|
---|
7312 | The list of all properties supported by the given hard disk format can
|
---|
7313 | be obtained with <link to="IHardDiskFormat::describeProperties()"/>.
|
---|
7314 |
|
---|
7315 | The method returns two arrays, the array of property names corresponding
|
---|
7316 | to the @a names argument and the current values of these properties.
|
---|
7317 | <!-- FIXME: Both arrays [sentence was cut off here. Complete. -->
|
---|
7318 |
|
---|
7319 | Note that for properties that don't have values assigned to them,
|
---|
7320 | <tt>null</tt> is returned at the appropriate index in the @a returnValues
|
---|
7321 | array.
|
---|
7322 |
|
---|
7323 | </desc>
|
---|
7324 | <param name="names" type="wstring" dir="in">
|
---|
7325 | <desc>
|
---|
7326 | Names of properties to get.
|
---|
7327 | </desc>
|
---|
7328 | </param>
|
---|
7329 | <param name="returnNames" type="wstring" safearray="yes" dir="out">
|
---|
7330 | <desc>Names of returned properties.</desc>
|
---|
7331 | </param>
|
---|
7332 | <param name="returnValues" type="wstring" safearray="yes" dir="return">
|
---|
7333 | <desc>Values of returned properties.</desc>
|
---|
7334 | </param>
|
---|
7335 | </method>
|
---|
7336 |
|
---|
7337 | <!-- storage methods -->
|
---|
7338 |
|
---|
7339 | <method name="createDynamicStorage">
|
---|
7340 | <desc>
|
---|
7341 | Starts creating a dynamically expanding hard disk storage unit in the
|
---|
7342 | background. The previous storage unit created for this object, if
|
---|
7343 | any, must first be deleted using <link to="#deleteStorage"/>, otherwise
|
---|
7344 | the operation will fail.
|
---|
7345 |
|
---|
7346 | Before the operation starts, the hard disk is placed in
|
---|
7347 | <link to="MediaState::Creating"/> state. If the create operation
|
---|
7348 | fails, the media will be placed back in <link to="MediaState::NotCreated"/>
|
---|
7349 | state.
|
---|
7350 |
|
---|
7351 | After the returned progress object reports that the operation has
|
---|
7352 | successfully completed, the media state will be set to <link
|
---|
7353 | to="MediaState::Created"/>, the hard disk will be remembered by this
|
---|
7354 | VirtualBox installation and may be attached to virtual machines.
|
---|
7355 | </desc>
|
---|
7356 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
7357 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
7358 | </param>
|
---|
7359 | <param name="progress" type="IProgress" dir="return">
|
---|
7360 | <desc>Progress object to track the operation completion.</desc>
|
---|
7361 | </param>
|
---|
7362 | </method>
|
---|
7363 |
|
---|
7364 | <method name="createFixedStorage">
|
---|
7365 | <desc>
|
---|
7366 | Starts creating a fixed-size hard disk storage unit in the background.
|
---|
7367 | The previous storage unit created for this object, if
|
---|
7368 | any, must be first deleted using <link to="#deleteStorage"/>, otherwise
|
---|
7369 | the operation will fail.
|
---|
7370 |
|
---|
7371 | Before the operation starts, the hard disk is placed to
|
---|
7372 | <link to="MediaState::Creating"/> state. If the create operation
|
---|
7373 | fails, the media will placed back to <link to="MediaState::NotCreated"/>
|
---|
7374 | state.
|
---|
7375 |
|
---|
7376 | After the returned progress object reports that the operation is
|
---|
7377 | successfully complete, the media state will be set to <link
|
---|
7378 | to="MediaState::Created"/>, the hard disk will be remembered by this
|
---|
7379 | VirtualBox installation and may be attached to virtual machines.
|
---|
7380 | </desc>
|
---|
7381 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
7382 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
7383 | </param>
|
---|
7384 | <param name="progress" type="IProgress" dir="return">
|
---|
7385 | <desc>Progress object to track the operation completion.</desc>
|
---|
7386 | </param>
|
---|
7387 | </method>
|
---|
7388 |
|
---|
7389 | <method name="deleteStorage">
|
---|
7390 | <desc>
|
---|
7391 | Starts deleting the storage unit of this hard disk.
|
---|
7392 |
|
---|
7393 | The hard disk must not be attached to any known virtual machine and must
|
---|
7394 | not have any known child hard disks, otherwise the operation will fail.
|
---|
7395 | It will also fail if there is no storage unit to delete or if deletion
|
---|
7396 | is already in progress, or if the hard disk is being in use (locked for
|
---|
7397 | read or for write) or inaccessible. Therefore, the only valid state for
|
---|
7398 | this operation to succeed is <link to="MediaState::Created"/>.
|
---|
7399 |
|
---|
7400 | Before the operation starts, the hard disk is placed to
|
---|
7401 | <link to="MediaState::Deleting"/> state and gets removed from the list
|
---|
7402 | of remembered hard disks (media registry). If the delete operation
|
---|
7403 | fails, the media will be remembered again and placed back to
|
---|
7404 | <link to="MediaState::Created"/> state.
|
---|
7405 |
|
---|
7406 | After the returned progress object reports that the operation is
|
---|
7407 | complete, the media state will be set to
|
---|
7408 | <link to="MediaState::NotCreated"/> and you will be able to use one of
|
---|
7409 | the storage creation methods to create it again.
|
---|
7410 |
|
---|
7411 | <see>#close()</see>
|
---|
7412 |
|
---|
7413 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
7414 | Hard disk is attached to a virtual machine.
|
---|
7415 | </result>
|
---|
7416 | </desc>
|
---|
7417 | <param name="progress" type="IProgress" dir="return">
|
---|
7418 | <desc>Progress object to track the operation completion.</desc>
|
---|
7419 | </param>
|
---|
7420 | </method>
|
---|
7421 |
|
---|
7422 | <!-- diff methods -->
|
---|
7423 |
|
---|
7424 | <method name="createDiffStorage">
|
---|
7425 | <desc>
|
---|
7426 | Starts creating an empty differencing storage unit based on this hard
|
---|
7427 | disk in the format and at the location defined by the @a target
|
---|
7428 | argument.
|
---|
7429 |
|
---|
7430 | The target hard disk must be in <link to="MediaState::NotCreated"/>
|
---|
7431 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
7432 | completion, this operation will set the type of the target hard disk to
|
---|
7433 | <link to="HardDiskType::Normal"/> and create a storage unit necessary to
|
---|
7434 | represent the differencing hard disk data in the given format (according
|
---|
7435 | to the storage format of the target object).
|
---|
7436 |
|
---|
7437 | After the returned progress object reports that the operation is
|
---|
7438 | successfully complete, the target hard disk gets remembered by this
|
---|
7439 | VirtualBox installation and may be attached to virtual machines.
|
---|
7440 |
|
---|
7441 | <note>
|
---|
7442 | The hard disk will be set to <link to="MediaState::LockedRead"/>
|
---|
7443 | state for the duration of this operation.
|
---|
7444 | </note>
|
---|
7445 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
7446 | Hard disk not in NotCreated state.
|
---|
7447 | </result>
|
---|
7448 | </desc>
|
---|
7449 | <param name="target" type="IHardDisk2" dir="in">
|
---|
7450 | <desc>Target hard disk.</desc>
|
---|
7451 | </param>
|
---|
7452 | <param name="progress" type="IProgress" dir="return">
|
---|
7453 | <desc>Progress object to track the operation completion.</desc>
|
---|
7454 | </param>
|
---|
7455 | </method>
|
---|
7456 |
|
---|
7457 | <method name="mergeTo">
|
---|
7458 | <desc>
|
---|
7459 | Starts merging the contents of this hard disk and all intermediate
|
---|
7460 | differencing hard disks in the chain to the given target hard disk.
|
---|
7461 |
|
---|
7462 | The target hard disk must be either a descendant of this hard disk or
|
---|
7463 | its ancestor (otherwise this method will immediately return a failure).
|
---|
7464 | It follows that there are two logical directions of the merge operation:
|
---|
7465 | from ancestor to descendant (<i>forward merge</i>) and from descendant to
|
---|
7466 | ancestor (<i>backward merge</i>). Let us consider the following hard disk
|
---|
7467 | chain:
|
---|
7468 |
|
---|
7469 | <pre>Base <- Diff_1 <- Diff_2</pre>
|
---|
7470 |
|
---|
7471 | Here, calling this method on the <tt>Base</tt> hard disk object with
|
---|
7472 | <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
|
---|
7473 | <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
|
---|
7474 | merge. Note that in both cases the contents of the resulting hard disk
|
---|
7475 | will be the same, the only difference is the hard disk object that takes
|
---|
7476 | the result of the merge operation. In case of the forward merge in the
|
---|
7477 | above example, the result will be written to <tt>Diff_2</tt>; in case of
|
---|
7478 | the backward merge, the result will be written to <tt>Base</tt>. In
|
---|
7479 | other words, the result of the operation is always stored in the target
|
---|
7480 | hard disk.
|
---|
7481 |
|
---|
7482 | Upon successful operation completion, the storage units of all hard
|
---|
7483 | disks in the chain between this (source) hard disk and the target hard
|
---|
7484 | disk, including the source hard disk itself, will be automatically
|
---|
7485 | deleted and the relevant hard disk objects (including this hard disk)
|
---|
7486 | will become uninitialized. This means that any attempt to call any of
|
---|
7487 | their methods or attributes will fail with the
|
---|
7488 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
|
---|
7489 | example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
|
---|
7490 | delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
|
---|
7491 | disks. Note that <tt>Diff_2</tt> in this case will become a base hard
|
---|
7492 | disk itself since it will no longer be based on any other hard disk.
|
---|
7493 |
|
---|
7494 | Considering the above, all of the following conditions must be met in
|
---|
7495 | order for the merge operation to succeed:
|
---|
7496 | <ul>
|
---|
7497 | <li>
|
---|
7498 | Neither this (source) hard disk nor any intermediate
|
---|
7499 | differencing hard disk in the chain between it and the target
|
---|
7500 | hard disk is attached to any virtual machine.
|
---|
7501 | </li>
|
---|
7502 | <li>
|
---|
7503 | Neither the source hard disk nor the target hard disk is an
|
---|
7504 | <link to="HardDiskType::Immutable"/> hard disk.
|
---|
7505 | </li>
|
---|
7506 | <li>
|
---|
7507 | The part of the hard disk tree from the source hard disk to the
|
---|
7508 | target hard disk is a linear chain, i.e. all hard disks in this
|
---|
7509 | chain have exactly one child which is the next hard disk in this
|
---|
7510 | chain. The only exception from this rule is the target hard disk in
|
---|
7511 | the forward merge operation; it is allowed to have any number of
|
---|
7512 | child hard disks because the merge operation will hot change its
|
---|
7513 | logical contents (as it is seen by the guest OS or by children).
|
---|
7514 | </li>
|
---|
7515 | <li>
|
---|
7516 | None of the involved hard disks are in
|
---|
7517 | <link to="MediaState::LockedRead"/> or
|
---|
7518 | <link to="MediaState::LockedWrite"/> state.
|
---|
7519 | </li>
|
---|
7520 | </ul>
|
---|
7521 |
|
---|
7522 | <note>
|
---|
7523 | This (source) hard disk and all intermediates will be placed to <link
|
---|
7524 | to="MediaState::Deleting"/> state and the target hard disk will be
|
---|
7525 | placed to <link to="MediaState::LockedWrite"/> state and for the
|
---|
7526 | duration of this operation.
|
---|
7527 | </note>
|
---|
7528 | </desc>
|
---|
7529 | <param name="targetId" type="uuid" dir="in">
|
---|
7530 | <desc>UUID of the target ancestor or descendant hard disk.</desc>
|
---|
7531 | </param>
|
---|
7532 | <param name="progress" type="IProgress" dir="return">
|
---|
7533 | <desc>Progress object to track the operation completion.</desc>
|
---|
7534 | </param>
|
---|
7535 | </method>
|
---|
7536 |
|
---|
7537 | <!-- clone methods -->
|
---|
7538 |
|
---|
7539 | <method name="cloneTo">
|
---|
7540 | <desc>
|
---|
7541 | Starts creating a clone of this hard disk in the format and at the
|
---|
7542 | location defined by the @a target argument.
|
---|
7543 |
|
---|
7544 | The target hard disk must be in <link to="MediaState::NotCreated"/>
|
---|
7545 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
7546 | completion, the cloned hard disk will contain exactly the same sector
|
---|
7547 | data as the hard disk being cloned, except that a new UUID for the clone
|
---|
7548 | will be randomly generated.
|
---|
7549 |
|
---|
7550 | After the returned progress object reports that the operation is
|
---|
7551 | successfully complete, the target hard disk gets remembered by this
|
---|
7552 | VirtualBox installation and may be attached to virtual machines.
|
---|
7553 |
|
---|
7554 | <note>
|
---|
7555 | If the cloned hard disk is a differencing hard disk, it will inherit
|
---|
7556 | parent dependency of the original hard disk.
|
---|
7557 | </note>
|
---|
7558 | <note>
|
---|
7559 | This hard disk will be placed to <link to="MediaState::LockedRead"/>
|
---|
7560 | state for the duration of this operation.
|
---|
7561 | </note>
|
---|
7562 | </desc>
|
---|
7563 | <param name="target" type="IHardDisk2" dir="in">
|
---|
7564 | <desc>Target hard disk.</desc>
|
---|
7565 | </param>
|
---|
7566 | <param name="progress" type="IProgress" dir="return">
|
---|
7567 | <desc>Progress object to track the operation completion.</desc>
|
---|
7568 | </param>
|
---|
7569 | </method>
|
---|
7570 |
|
---|
7571 | <method name="flattenTo">
|
---|
7572 | <desc>
|
---|
7573 | Starts creating a deep (independent) clone of this hard disk in the
|
---|
7574 | format and at the location defined by the @a target argument.
|
---|
7575 |
|
---|
7576 | This operation is similar to <link to="#cloneTo()"/> except that when
|
---|
7577 | applied to a differencing hard disk, it will also copy missing hard disk
|
---|
7578 | data from all parent hard disks it is linked to. This will make the
|
---|
7579 | created clone an independent base hard disk that contains all hard disk
|
---|
7580 | data and does not need any other hard disks to operate.
|
---|
7581 |
|
---|
7582 | After the returned progress object reports that the operation is
|
---|
7583 | successfully complete, the target hard disk gets remembered by this
|
---|
7584 | VirtualBox installation and may be attached to virtual machines.
|
---|
7585 |
|
---|
7586 | <note>
|
---|
7587 | For base hard disks, this operation is identical to
|
---|
7588 | <link to="#cloneTo()"/>.
|
---|
7589 | </note>
|
---|
7590 | <note>
|
---|
7591 | This hard disk and all its parent hard disks will be placed to <link
|
---|
7592 | to="MediaState::LockedRead"/> state for the duration of this
|
---|
7593 | operation.
|
---|
7594 | </note>
|
---|
7595 | </desc>
|
---|
7596 | <param name="target" type="IHardDisk2" dir="in">
|
---|
7597 | <desc>Target hard disk.</desc>
|
---|
7598 | </param>
|
---|
7599 | <param name="progress" type="IProgress" dir="return">
|
---|
7600 | <desc>Progress object to track the operation completion.</desc>
|
---|
7601 | </param>
|
---|
7602 | </method>
|
---|
7603 |
|
---|
7604 | </interface>
|
---|
7605 |
|
---|
7606 |
|
---|
7607 | <!--
|
---|
7608 | // IHardDiskFormat
|
---|
7609 | /////////////////////////////////////////////////////////////////////////
|
---|
7610 | -->
|
---|
7611 |
|
---|
7612 | <enum
|
---|
7613 | name="DataType"
|
---|
7614 | uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
|
---|
7615 | >
|
---|
7616 | <const name="Int32" value="0"/>
|
---|
7617 | <const name="Int8" value="1"/>
|
---|
7618 | <const name="String" value="2"/>
|
---|
7619 | </enum>
|
---|
7620 |
|
---|
7621 | <enum
|
---|
7622 | name="DataFlags"
|
---|
7623 | uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
|
---|
7624 | >
|
---|
7625 | <const name="None" value="0x00"/>
|
---|
7626 | <const name="Mandatory" value="0x01"/>
|
---|
7627 | <const name="Expert" value="0x02"/>
|
---|
7628 | <const name="Array" value="0x04"/>
|
---|
7629 | <const name="FlagMask" value="0x07"/>
|
---|
7630 | </enum>
|
---|
7631 |
|
---|
7632 | <enum
|
---|
7633 | name="HardDiskFormatCapabilities"
|
---|
7634 | uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
|
---|
7635 | >
|
---|
7636 | <desc>
|
---|
7637 | Hard disk format capability flags.
|
---|
7638 | </desc>
|
---|
7639 |
|
---|
7640 | <const name="Uuid" value="0x01">
|
---|
7641 | <desc>
|
---|
7642 | Supports UUIDs as expected by VirtualBox code.
|
---|
7643 | </desc>
|
---|
7644 | </const>
|
---|
7645 |
|
---|
7646 | <const name="CreateFixed" value="0x02">
|
---|
7647 | <desc>
|
---|
7648 | Supports creating fixed size images, allocating all space instantly.
|
---|
7649 | </desc>
|
---|
7650 | </const>
|
---|
7651 |
|
---|
7652 | <const name="CreateDynamic" value="0x04">
|
---|
7653 | <desc>
|
---|
7654 | Supports creating dynamically growing images, allocating space on
|
---|
7655 | demand.
|
---|
7656 | </desc>
|
---|
7657 | </const>
|
---|
7658 |
|
---|
7659 | <const name="CreateSplit2G" value="0x08">
|
---|
7660 | <desc>
|
---|
7661 | Supports creating images split in chunks of a bit less than 2 GBytes.
|
---|
7662 | </desc>
|
---|
7663 | </const>
|
---|
7664 |
|
---|
7665 | <const name="Differencing" value="0x10">
|
---|
7666 | <desc>
|
---|
7667 | Supports being used as a format for differencing hard disks (see <link
|
---|
7668 | to="IHardDisk2::createDiffStorage"/>).
|
---|
7669 | </desc>
|
---|
7670 | </const>
|
---|
7671 |
|
---|
7672 | <const name="Asynchronous" value="0x20">
|
---|
7673 | <desc>
|
---|
7674 | Supports asynchronous I/O operations for at least some configurations.
|
---|
7675 | </desc>
|
---|
7676 | </const>
|
---|
7677 |
|
---|
7678 | <const name="File" value="0x40">
|
---|
7679 | <desc>
|
---|
7680 | The format backend operates on files. The <link to="IMedium::location"/>
|
---|
7681 | attribute of the hard disk specifies a file used to store hard disk
|
---|
7682 | data. For a list of supported file extensions see
|
---|
7683 | <link to="IHardDiskFormat::fileExtensions"/>.
|
---|
7684 | </desc>
|
---|
7685 | </const>
|
---|
7686 |
|
---|
7687 | <const name="Properties" value="0x80">
|
---|
7688 | <desc>
|
---|
7689 | The format backend uses the property interface to configure the storage
|
---|
7690 | location and properties. The <link to="IHardDiskFormat::describeProperties"/>
|
---|
7691 | method is used to get access to properties supported by the given hard
|
---|
7692 | disk format.
|
---|
7693 | </desc>
|
---|
7694 | </const>
|
---|
7695 |
|
---|
7696 | <const name="CapabilityMask" value="0xFF"/>
|
---|
7697 | </enum>
|
---|
7698 |
|
---|
7699 | <interface
|
---|
7700 | name="IHardDiskFormat" extends="$unknown"
|
---|
7701 | uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
|
---|
7702 | wsmap="managed"
|
---|
7703 | >
|
---|
7704 | <desc>
|
---|
7705 | The IHardDiskFormat interface represents a virtual hard disk format.
|
---|
7706 |
|
---|
7707 | Each hard disk format has an associated backend which is used to handle
|
---|
7708 | hard disks stored in this format. This interface provides information
|
---|
7709 | about the properties of the associated backend.
|
---|
7710 |
|
---|
7711 | Each hard disk format is identified by a string represented by the
|
---|
7712 | <link to="#id"/> attribute. This string is used in calls like
|
---|
7713 | <link to="IVirtualBox::createHardDisk2()"/> to specify the desired
|
---|
7714 | format.
|
---|
7715 |
|
---|
7716 | The list of all supported hard disk formats can be obtained using
|
---|
7717 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
7718 |
|
---|
7719 | <see>IHardDisk2</see>
|
---|
7720 | </desc>
|
---|
7721 |
|
---|
7722 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7723 | <desc>
|
---|
7724 | Identifier of this format.
|
---|
7725 |
|
---|
7726 | This string is used in methods of other interfaces where it is necessary
|
---|
7727 | to specify a hard disk format, such as
|
---|
7728 | <link to="IVirtualBox::createHardDisk2()"/>.
|
---|
7729 | </desc>
|
---|
7730 | </attribute>
|
---|
7731 |
|
---|
7732 | <attribute name="name" type="wstring" readonly="yes">
|
---|
7733 | <desc>
|
---|
7734 | Human readable description of this format.
|
---|
7735 |
|
---|
7736 | Mainly for use in file open dialogs.
|
---|
7737 | </desc>
|
---|
7738 | </attribute>
|
---|
7739 |
|
---|
7740 | <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
|
---|
7741 | <desc>
|
---|
7742 | Array of strings containing the supported file extensions.
|
---|
7743 |
|
---|
7744 | The first extension in the array is the extension preferred by the
|
---|
7745 | backend. It is recommended to use this extension when specifying a
|
---|
7746 | location of the storage unit for a new hard disk.
|
---|
7747 |
|
---|
7748 | Note that some backends do not work on files, so this array may be
|
---|
7749 | empty.
|
---|
7750 |
|
---|
7751 | <see>IHardDiskFormat::capabilities</see>
|
---|
7752 | </desc>
|
---|
7753 | </attribute>
|
---|
7754 |
|
---|
7755 | <attribute name="capabilities" type="unsigned long" readonly="yes">
|
---|
7756 | <desc>
|
---|
7757 | Capabilities of the format as a set of bit flags.
|
---|
7758 |
|
---|
7759 | For the meaning of individual capability flags see
|
---|
7760 | <link to="HardDiskFormatCapabilities"/>.
|
---|
7761 | </desc>
|
---|
7762 | </attribute>
|
---|
7763 |
|
---|
7764 | <method name="describeProperties">
|
---|
7765 | <desc>
|
---|
7766 | Returns several arrays describing the properties supported by this
|
---|
7767 | format.
|
---|
7768 |
|
---|
7769 | An element with the given index in each array describes one
|
---|
7770 | property. Thus, the number of elements in each returned array is the
|
---|
7771 | same and corresponds to the number of supported properties.
|
---|
7772 |
|
---|
7773 | The returned arrays are not empty only if the
|
---|
7774 | <link to="HardDiskFormatCapabilities::Properties"/> flag is set.
|
---|
7775 |
|
---|
7776 | <see>DataType</see>
|
---|
7777 | <see>DataFlags</see>
|
---|
7778 | </desc>
|
---|
7779 |
|
---|
7780 | <param name="names" type="wstring" safearray="yes" dir="out">
|
---|
7781 | <desc>Array of property names.</desc>
|
---|
7782 | </param>
|
---|
7783 | <param name="description" type="wstring" safearray="yes" dir="out">
|
---|
7784 | <desc>Array of property descriptions.</desc>
|
---|
7785 | </param>
|
---|
7786 | <param name="types" type="DataType" safearray="yes" dir="out">
|
---|
7787 | <desc>Array of property types.</desc>
|
---|
7788 | </param>
|
---|
7789 | <param name="flags" type="unsigned long" safearray="yes" dir="out">
|
---|
7790 | <desc>Array of property flags.</desc>
|
---|
7791 | </param>
|
---|
7792 | <param name="defaults" type="wstring" safearray="yes" dir="out">
|
---|
7793 | <desc>Array of default property values.</desc>
|
---|
7794 | </param>
|
---|
7795 | </method>
|
---|
7796 |
|
---|
7797 | </interface>
|
---|
7798 |
|
---|
7799 |
|
---|
7800 | <!--
|
---|
7801 | // IFloppyImage2
|
---|
7802 | /////////////////////////////////////////////////////////////////////////
|
---|
7803 | -->
|
---|
7804 |
|
---|
7805 | <interface
|
---|
7806 | name="IFloppyImage2" extends="IMedium"
|
---|
7807 | uuid="fcdee8f0-03f9-11dd-95ff-0800200c9a66"
|
---|
7808 | wsmap="managed"
|
---|
7809 | >
|
---|
7810 | <desc>
|
---|
7811 | The IFloppyImage2 interface represents a medium containing the image
|
---|
7812 | of a floppy disk.
|
---|
7813 | </desc>
|
---|
7814 |
|
---|
7815 | </interface>
|
---|
7816 |
|
---|
7817 |
|
---|
7818 | <!--
|
---|
7819 | // IDVDImage2
|
---|
7820 | /////////////////////////////////////////////////////////////////////////
|
---|
7821 | -->
|
---|
7822 |
|
---|
7823 | <interface
|
---|
7824 | name="IDVDImage2" extends="IMedium"
|
---|
7825 | uuid="1c5165f1-9543-478d-a117-84a1d2317068"
|
---|
7826 | wsmap="managed"
|
---|
7827 | >
|
---|
7828 | <desc>
|
---|
7829 | The IDVDImage2 interface represents a medium containing the image
|
---|
7830 | of a CD or DVD disk in the ISO format.
|
---|
7831 | </desc>
|
---|
7832 |
|
---|
7833 | </interface>
|
---|
7834 |
|
---|
7835 |
|
---|
7836 | <!--
|
---|
7837 | // IDVDDrive
|
---|
7838 | /////////////////////////////////////////////////////////////////////////
|
---|
7839 | -->
|
---|
7840 |
|
---|
7841 | <interface
|
---|
7842 | name="IDVDDrive" extends="$unknown"
|
---|
7843 | uuid="d650ef30-be9b-4dae-b463-11d5824681a5"
|
---|
7844 | wsmap="managed"
|
---|
7845 | >
|
---|
7846 | <desc>
|
---|
7847 | The IDVDDrive interface represents the virtual CD/DVD drive of the
|
---|
7848 | virtual machine. An object of this type is returned by
|
---|
7849 | <link to="IMachine::DVDDrive"/>.
|
---|
7850 | </desc>
|
---|
7851 |
|
---|
7852 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
7853 | <desc>Current drive state.</desc>
|
---|
7854 | </attribute>
|
---|
7855 |
|
---|
7856 | <attribute name="passthrough" type="boolean">
|
---|
7857 | <desc>
|
---|
7858 | When a host drive is mounted and passthrough is enabled
|
---|
7859 | the guest OS will be able to directly send SCSI commands to
|
---|
7860 | the host drive. This enables the guest OS to use CD/DVD writers
|
---|
7861 | but is potentially dangerous.
|
---|
7862 | </desc>
|
---|
7863 | </attribute>
|
---|
7864 |
|
---|
7865 | <method name="mountImage">
|
---|
7866 | <desc>Mounts a CD/DVD image with the specified UUID.</desc>
|
---|
7867 | <param name="imageId" type="uuid" dir="in"/>
|
---|
7868 | </method>
|
---|
7869 |
|
---|
7870 | <method name="captureHostDrive">
|
---|
7871 | <desc>Captures the specified host CD/DVD drive.</desc>
|
---|
7872 | <param name="drive" type="IHostDVDDrive" dir="in"/>
|
---|
7873 | </method>
|
---|
7874 |
|
---|
7875 | <method name="unmount">
|
---|
7876 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
7877 | </method>
|
---|
7878 |
|
---|
7879 | <method name="getImage">
|
---|
7880 | <desc>Returns the currently mounted CD/DVD image.</desc>
|
---|
7881 | <param name="image" type="IDVDImage2" dir="return"/>
|
---|
7882 | </method>
|
---|
7883 |
|
---|
7884 | <method name="getHostDrive">
|
---|
7885 | <desc>Returns the currently mounted host CD/DVD drive.</desc>
|
---|
7886 | <param name="drive" type="IHostDVDDrive" dir="return"/>
|
---|
7887 | </method>
|
---|
7888 |
|
---|
7889 | </interface>
|
---|
7890 |
|
---|
7891 |
|
---|
7892 | <!--
|
---|
7893 | // IFloppyDrive
|
---|
7894 | /////////////////////////////////////////////////////////////////////////
|
---|
7895 | -->
|
---|
7896 |
|
---|
7897 | <interface
|
---|
7898 | name="IFloppyDrive" extends="$unknown"
|
---|
7899 | uuid="159412cd-bab8-452e-8097-218a020825a6"
|
---|
7900 | wsmap="managed"
|
---|
7901 | >
|
---|
7902 | <desc>
|
---|
7903 | The IFloppyDrive interface represents the virtual floppy drive of the
|
---|
7904 | virtual machine. An object of this type is returned by
|
---|
7905 | <link to="IMachine::floppyDrive" />.
|
---|
7906 | </desc>
|
---|
7907 |
|
---|
7908 | <attribute name="enabled" type="boolean">
|
---|
7909 | <desc>
|
---|
7910 | Flag whether the floppy drive is enabled. If it is disabled,
|
---|
7911 | the floppy drive will not be reported to the guest OS.
|
---|
7912 | </desc>
|
---|
7913 | </attribute>
|
---|
7914 |
|
---|
7915 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
7916 | <desc>Current drive state.</desc>
|
---|
7917 | </attribute>
|
---|
7918 |
|
---|
7919 | <method name="mountImage">
|
---|
7920 | <desc>Mounts a floppy image with the specified UUID.</desc>
|
---|
7921 | <param name="imageId" type="uuid" dir="in"/>
|
---|
7922 | </method>
|
---|
7923 |
|
---|
7924 | <method name="captureHostDrive">
|
---|
7925 | <desc>Captures the specified host floppy drive.</desc>
|
---|
7926 | <param name="drive" type="IHostFloppyDrive" dir="in"/>
|
---|
7927 | </method>
|
---|
7928 |
|
---|
7929 | <method name="unmount">
|
---|
7930 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
7931 | </method>
|
---|
7932 |
|
---|
7933 | <method name="getImage">
|
---|
7934 | <desc>Returns the currently mounted floppy image.</desc>
|
---|
7935 | <param name="image" type="IFloppyImage2" dir="return"/>
|
---|
7936 | </method>
|
---|
7937 |
|
---|
7938 | <method name="getHostDrive">
|
---|
7939 | <desc>Returns the currently mounted host floppy drive.</desc>
|
---|
7940 | <param name="drive" type="IHostFloppyDrive" dir="return"/>
|
---|
7941 | </method>
|
---|
7942 |
|
---|
7943 | </interface>
|
---|
7944 |
|
---|
7945 |
|
---|
7946 | <!--
|
---|
7947 | // IKeyboard
|
---|
7948 | /////////////////////////////////////////////////////////////////////////
|
---|
7949 | -->
|
---|
7950 |
|
---|
7951 | <interface
|
---|
7952 | name="IKeyboard" extends="$unknown"
|
---|
7953 | uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
|
---|
7954 | wsmap="managed"
|
---|
7955 | >
|
---|
7956 | <desc>
|
---|
7957 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
7958 | in <link to="IConsole::keyboard"/>.
|
---|
7959 |
|
---|
7960 | Through this interface, the virtual machine's virtual keyboard can be controlled. One
|
---|
7961 | can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it.
|
---|
7962 | </desc>
|
---|
7963 | <method name="putScancode">
|
---|
7964 | <desc>Sends a scancode to the keyboard.</desc>
|
---|
7965 | <param name="scancode" type="long" dir="in"/>
|
---|
7966 | </method>
|
---|
7967 |
|
---|
7968 | <method name="putScancodes">
|
---|
7969 | <desc>Sends an array of scancode to the keyboard.</desc>
|
---|
7970 | <param name="scancodes" type="long" dir="in" safearray="yes"/>
|
---|
7971 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
7972 | </method>
|
---|
7973 |
|
---|
7974 | <method name="putCAD">
|
---|
7975 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
|
---|
7976 | </method>
|
---|
7977 |
|
---|
7978 | </interface>
|
---|
7979 |
|
---|
7980 |
|
---|
7981 | <!--
|
---|
7982 | // IMouse
|
---|
7983 | /////////////////////////////////////////////////////////////////////////
|
---|
7984 | -->
|
---|
7985 |
|
---|
7986 | <enum
|
---|
7987 | name="MouseButtonState"
|
---|
7988 | uuid="03131722-2EC5-4173-9794-0DACA46673EF"
|
---|
7989 | >
|
---|
7990 | <desc>
|
---|
7991 | Mouse button state.
|
---|
7992 | </desc>
|
---|
7993 |
|
---|
7994 | <const name="LeftButton" value="0x01"/>
|
---|
7995 | <const name="RightButton" value="0x02"/>
|
---|
7996 | <const name="MiddleButton" value="0x04"/>
|
---|
7997 | <const name="WheelUp" value="0x08"/>
|
---|
7998 | <const name="WheelDown" value="0x10"/>
|
---|
7999 | <const name="MouseStateMask" value="0x1F"/>
|
---|
8000 | </enum>
|
---|
8001 |
|
---|
8002 | <interface
|
---|
8003 | name="IMouse" extends="$unknown"
|
---|
8004 | uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
|
---|
8005 | wsmap="managed"
|
---|
8006 | >
|
---|
8007 | <desc>
|
---|
8008 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
8009 | <link to="IConsole::mouse"/>.
|
---|
8010 |
|
---|
8011 | Through this interface, the virtual machine's virtual mouse can be
|
---|
8012 | controlled.
|
---|
8013 | </desc>
|
---|
8014 |
|
---|
8015 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
8016 | <desc>
|
---|
8017 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
8018 | or not.
|
---|
8019 | <note>
|
---|
8020 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
8021 | in order to enable absolute mouse positioning support.
|
---|
8022 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
8023 | callback to be instantly informed about changes of this attribute
|
---|
8024 | during virtual machine execution.
|
---|
8025 | </note>
|
---|
8026 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
8027 | </desc>
|
---|
8028 | </attribute>
|
---|
8029 |
|
---|
8030 | <method name="putMouseEvent">
|
---|
8031 | <desc>
|
---|
8032 | Initiates a mouse event using relative pointer movements
|
---|
8033 | along x and y axis.
|
---|
8034 | </desc>
|
---|
8035 |
|
---|
8036 | <param name="dx" type="long" dir="in">
|
---|
8037 | <desc>
|
---|
8038 | Amount of pixels the mouse should move to the right.
|
---|
8039 | Negative values move the mouse to the left.
|
---|
8040 | </desc>
|
---|
8041 | </param>
|
---|
8042 | <param name="dy" type="long" dir="in">
|
---|
8043 | <desc>
|
---|
8044 | Amount of pixels the mouse should move downwards.
|
---|
8045 | Negative values move the mouse upwards.
|
---|
8046 | </desc>
|
---|
8047 | </param>
|
---|
8048 | <param name="dz" type="long" dir="in">
|
---|
8049 | <desc>
|
---|
8050 | Amount of mouse wheel moves.
|
---|
8051 | Positive values describe clockwise wheel rotations,
|
---|
8052 | negative values describe counterclockwise rotations.
|
---|
8053 | </desc>
|
---|
8054 | </param>
|
---|
8055 | <param name="buttonState" type="long" dir="in">
|
---|
8056 | <desc>
|
---|
8057 | The current state of mouse buttons. Every bit represents
|
---|
8058 | a mouse button as follows:
|
---|
8059 | <table>
|
---|
8060 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
8061 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
8062 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
8063 | </table>
|
---|
8064 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
8065 | otherwise it is released.
|
---|
8066 | </desc>
|
---|
8067 | </param>
|
---|
8068 | </method>
|
---|
8069 |
|
---|
8070 | <method name="putMouseEventAbsolute">
|
---|
8071 | <desc>
|
---|
8072 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
8073 | These coordinates are expressed in pixels and
|
---|
8074 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
8075 | corner of the virtual display.
|
---|
8076 |
|
---|
8077 | <note>
|
---|
8078 | This method will have effect only if absolute mouse
|
---|
8079 | positioning is supported by the guest OS.
|
---|
8080 | </note>
|
---|
8081 |
|
---|
8082 | <see><link to="#absoluteSupported"/></see>
|
---|
8083 | </desc>
|
---|
8084 |
|
---|
8085 | <param name="x" type="long" dir="in">
|
---|
8086 | <desc>
|
---|
8087 | X coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
8088 | </desc>
|
---|
8089 | </param>
|
---|
8090 | <param name="y" type="long" dir="in">
|
---|
8091 | <desc>
|
---|
8092 | Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
8093 | </desc>
|
---|
8094 | </param>
|
---|
8095 | <param name="dz" type="long" dir="in">
|
---|
8096 | <desc>
|
---|
8097 | Amount of mouse wheel moves.
|
---|
8098 | Positive values describe clockwise wheel rotations,
|
---|
8099 | negative values describe counterclockwise rotations.
|
---|
8100 | </desc>
|
---|
8101 | </param>
|
---|
8102 | <param name="buttonState" type="long" dir="in">
|
---|
8103 | <desc>
|
---|
8104 | The current state of mouse buttons. Every bit represents
|
---|
8105 | a mouse button as follows:
|
---|
8106 | <table>
|
---|
8107 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
8108 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
8109 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
8110 | </table>
|
---|
8111 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
8112 | otherwise it is released.
|
---|
8113 | </desc>
|
---|
8114 | </param>
|
---|
8115 | </method>
|
---|
8116 |
|
---|
8117 | </interface>
|
---|
8118 |
|
---|
8119 | <!--
|
---|
8120 | // IDisplay
|
---|
8121 | /////////////////////////////////////////////////////////////////////////
|
---|
8122 | -->
|
---|
8123 |
|
---|
8124 | <enum
|
---|
8125 | name="FramebufferAccelerationOperation"
|
---|
8126 | uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
|
---|
8127 | >
|
---|
8128 | <desc>
|
---|
8129 | Frame buffer acceleration operation.
|
---|
8130 | </desc>
|
---|
8131 |
|
---|
8132 | <const name="SolidFillAcceleration" value="1"/>
|
---|
8133 | <const name="ScreenCopyAcceleration" value="2"/>
|
---|
8134 | </enum>
|
---|
8135 |
|
---|
8136 | <enum
|
---|
8137 | name="FramebufferPixelFormat"
|
---|
8138 | uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d"
|
---|
8139 | >
|
---|
8140 | <desc>
|
---|
8141 | Format of the video memory buffer. Constants represented by this enum can
|
---|
8142 | be used to test for particular values of <link
|
---|
8143 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
8144 | to="IFramebuffer::requestResize()"/>.
|
---|
8145 |
|
---|
8146 | See also www.fourcc.org for more information about FOURCC pixel formats.
|
---|
8147 | </desc>
|
---|
8148 |
|
---|
8149 | <const name="Opaque" value="0xFFFFFFFF">
|
---|
8150 | <desc>
|
---|
8151 | Unknown buffer format. The user may not assume any particular
|
---|
8152 | format of the buffer.
|
---|
8153 | </desc>
|
---|
8154 | </const>
|
---|
8155 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
8156 | <desc>
|
---|
8157 | Basic RGB format. <link to="IFramebuffer::bitsPerPixel"/> determines
|
---|
8158 | the bit layout.
|
---|
8159 | </desc>
|
---|
8160 | </const>
|
---|
8161 | </enum>
|
---|
8162 |
|
---|
8163 | <interface
|
---|
8164 | name="IFramebuffer" extends="$unknown"
|
---|
8165 | uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
|
---|
8166 | wsmap="suppress"
|
---|
8167 | >
|
---|
8168 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
8169 | <desc>Address of the start byte of the frame buffer.</desc>
|
---|
8170 | </attribute>
|
---|
8171 |
|
---|
8172 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
8173 | <desc>Frame buffer width, in pixels.</desc>
|
---|
8174 | </attribute>
|
---|
8175 |
|
---|
8176 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
8177 | <desc>Frame buffer height, in pixels.</desc>
|
---|
8178 | </attribute>
|
---|
8179 |
|
---|
8180 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
8181 | <desc>
|
---|
8182 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
8183 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
8184 | are: 8, 15, 16, 24 and 32.
|
---|
8185 | </desc>
|
---|
8186 | </attribute>
|
---|
8187 |
|
---|
8188 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
8189 | <desc>
|
---|
8190 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
8191 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
8192 | size of the scan line must be aligned to 32 bits.
|
---|
8193 | </desc>
|
---|
8194 | </attribute>
|
---|
8195 |
|
---|
8196 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
8197 | <desc>
|
---|
8198 | Frame buffer pixel format. It's either one of the values defined by <link
|
---|
8199 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
8200 | <note>
|
---|
8201 | This attribute must never return <link
|
---|
8202 | to="PixelFormat::Opaque"/> -- the format of the buffer
|
---|
8203 | <link to="#address"/> points to must be always known.
|
---|
8204 | </note>
|
---|
8205 | </desc>
|
---|
8206 | </attribute>
|
---|
8207 |
|
---|
8208 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
8209 | <desc>
|
---|
8210 | Defines whether this frame buffer uses the virtual video card's memory
|
---|
8211 | buffer (guest VRAM) directly or not. See <link
|
---|
8212 | to="IFramebuffer::requestResize()"/> for more information.
|
---|
8213 | </desc>
|
---|
8214 | </attribute>
|
---|
8215 |
|
---|
8216 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
8217 | <desc>
|
---|
8218 | Hint from the frame buffer about how much of the standard
|
---|
8219 | screen height it wants to use for itself. This information is
|
---|
8220 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
8221 | so that it can use it for determining its video mode table. It
|
---|
8222 | is not guaranteed that the guest respects the value.
|
---|
8223 | </desc>
|
---|
8224 | </attribute>
|
---|
8225 |
|
---|
8226 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
8227 | <desc>
|
---|
8228 | An alpha-blended overlay which is superposed over the frame buffer.
|
---|
8229 | The initial purpose is to allow the display of icons providing
|
---|
8230 | information about the VM state, including disk activity, in front
|
---|
8231 | ends which do not have other means of doing that. The overlay is
|
---|
8232 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
8233 | of its own, and any changes made to it are not guaranteed to be
|
---|
8234 | visible until the affected portion of IFramebuffer is updated. The
|
---|
8235 | overlay can be created lazily the first time it is requested. This
|
---|
8236 | attribute can also return NULL to signal that the overlay is not
|
---|
8237 | implemented.
|
---|
8238 | </desc>
|
---|
8239 | </attribute>
|
---|
8240 |
|
---|
8241 | <attribute name="winId" type="unsigned long long" readonly="yes">
|
---|
8242 | <desc>
|
---|
8243 | Platform-dependent identifier of the window where context of this
|
---|
8244 | frame buffer is drawn, or zero if there's no such window.
|
---|
8245 | </desc>
|
---|
8246 | </attribute>
|
---|
8247 |
|
---|
8248 | <method name="lock">
|
---|
8249 | <desc>
|
---|
8250 | Locks the frame buffer.
|
---|
8251 | Gets called by the IDisplay object where this frame buffer is
|
---|
8252 | bound to.
|
---|
8253 | </desc>
|
---|
8254 | </method>
|
---|
8255 |
|
---|
8256 | <method name="unlock">
|
---|
8257 | <desc>
|
---|
8258 | Unlocks the frame buffer.
|
---|
8259 | Gets called by the IDisplay object where this frame buffer is
|
---|
8260 | bound to.
|
---|
8261 | </desc>
|
---|
8262 | </method>
|
---|
8263 |
|
---|
8264 | <method name="notifyUpdate">
|
---|
8265 | <desc>
|
---|
8266 | Informs about an update.
|
---|
8267 | Gets called by the display object where this buffer is
|
---|
8268 | registered.
|
---|
8269 | </desc>
|
---|
8270 | <param name="x" type="unsigned long" dir="in"/>
|
---|
8271 | <param name="y" type="unsigned long" dir="in"/>
|
---|
8272 | <param name="width" type="unsigned long" dir="in"/>
|
---|
8273 | <param name="height" type="unsigned long" dir="in"/>
|
---|
8274 | <param name="finished" type="boolean" dir="return"/>
|
---|
8275 | </method>
|
---|
8276 |
|
---|
8277 | <method name="requestResize">
|
---|
8278 | <desc>
|
---|
8279 | Requests a size and pixel format change.
|
---|
8280 |
|
---|
8281 | There are two modes of working with the video buffer of the virtual
|
---|
8282 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
8283 | implementation allocates a memory buffer for the requested display mode
|
---|
8284 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
8285 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
8286 | by the virtual machine. This buffer represents the video memory of the
|
---|
8287 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
8288 | usually faster because the implementation gets a raw pointer to the
|
---|
8289 | guest VRAM buffer which it can directly use for visualizing the contents
|
---|
8290 | of the virtual display, as opposed to the indirect mode where the
|
---|
8291 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
8292 | the implementation every time a display update occurs.
|
---|
8293 |
|
---|
8294 | It is important to note that the direct mode is really fast only when
|
---|
8295 | the implementation uses the given guest VRAM buffer directly, for
|
---|
8296 | example, by blitting it to the window representing the virtual machine's
|
---|
8297 | display, which saves at least one copy operation comparing to the
|
---|
8298 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
8299 | always possible: the format and the color depth of this buffer may be
|
---|
8300 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
8301 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
8302 | the indirect mode (that is always available) should be used as a
|
---|
8303 | fallback: when the guest VRAM contents are copied to the
|
---|
8304 | implementation-provided memory buffer, color and format conversion is
|
---|
8305 | done automatically by the underlying code.
|
---|
8306 |
|
---|
8307 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
8308 | available or not. If @a pixelFormat is <link
|
---|
8309 | to="PixelFormat::Opaque"/> then direct access to the guest
|
---|
8310 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
|
---|
8311 | bytesPerLine parameters must be ignored and the implementation must use
|
---|
8312 | the indirect mode (where it provides its own buffer in one of the
|
---|
8313 | supported formats). In all other cases, @a pixelFormat together with @a
|
---|
8314 | bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
8315 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
8316 | free to choose which mode to use. To indicate that this frame buffer uses
|
---|
8317 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
8318 | attribute must return <tt>true</tt> and <link to="#address"/> must
|
---|
8319 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
8320 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
8321 | chosen.
|
---|
8322 |
|
---|
8323 | The @a width and @a height parameters represent the size of the
|
---|
8324 | requested display mode in both modes. In case of indirect mode, the
|
---|
8325 | provided memory buffer should be big enough to store data of the given
|
---|
8326 | display mode. In case of direct mode, it is guaranteed that the given @a
|
---|
8327 | VRAM buffer contains enough space to represent the display mode of the
|
---|
8328 | given size. Note that this frame buffer's <link to="#width"/> and <link
|
---|
8329 | to="#height"/> attributes must return exactly the same values as
|
---|
8330 | passed to this method after the resize is completed (see below).
|
---|
8331 |
|
---|
8332 | The @a finished output parameter determines if the implementation has
|
---|
8333 | finished resizing the frame buffer or not. If, for some reason, the
|
---|
8334 | resize cannot be finished immediately during this call, @a finished
|
---|
8335 | must be set to @c false, and the implementation must call
|
---|
8336 | <link to="IDisplay::resizeCompleted()"/> after it has returned from
|
---|
8337 | this method as soon as possible. If @a finished is @c false, the
|
---|
8338 | machine will not call any frame buffer methods until
|
---|
8339 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
8340 |
|
---|
8341 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
8342 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
8343 | this frame buffer must return exactly the same values as specified in the
|
---|
8344 | parameters of this method, after the resize is completed. If the
|
---|
8345 | indirect mode is chosen, these attributes must return values describing
|
---|
8346 | the format of the implementation's own memory buffer <link
|
---|
8347 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
8348 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
8349 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
8350 | to="PixelFormat::Opaque"/> regardless of the selected mode.
|
---|
8351 |
|
---|
8352 | <note>
|
---|
8353 | This method is called by the IDisplay object under the
|
---|
8354 | <link to="#lock()"/> provided by this IFramebuffer
|
---|
8355 | implementation. If this method returns @c false in @a finished, then
|
---|
8356 | this lock is not released until
|
---|
8357 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
8358 | </note>
|
---|
8359 | </desc>
|
---|
8360 | <param name="screenId" type="unsigned long" dir="in">
|
---|
8361 | <desc>
|
---|
8362 | Logical screen number. Must be used in the corresponding call to
|
---|
8363 | <link to="IDisplay::resizeCompleted()"/> if this call is made.
|
---|
8364 | </desc>
|
---|
8365 | </param>
|
---|
8366 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
8367 | <desc>
|
---|
8368 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
8369 | See also <link to="FramebufferPixelFormat"/>.
|
---|
8370 | </desc>
|
---|
8371 | </param>
|
---|
8372 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
8373 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
8374 | </param>
|
---|
8375 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
8376 | <desc>Color depth, bits per pixel.</desc>
|
---|
8377 | </param>
|
---|
8378 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
8379 | <desc>Size of one scan line, in bytes.</desc>
|
---|
8380 | </param>
|
---|
8381 | <param name="width" type="unsigned long" dir="in">
|
---|
8382 | <desc>Width of the guest display, in pixels.</desc>
|
---|
8383 | </param>
|
---|
8384 | <param name="height" type="unsigned long" dir="in">
|
---|
8385 | <desc>Height of the guest display, in pixels.</desc>
|
---|
8386 | </param>
|
---|
8387 | <param name="finished" type="boolean" dir="return">
|
---|
8388 | <desc>
|
---|
8389 | Can the VM start using the new frame buffer immediately
|
---|
8390 | after this method returns or it should wait for
|
---|
8391 | <link to="IDisplay::resizeCompleted()"/>.
|
---|
8392 | </desc>
|
---|
8393 | </param>
|
---|
8394 | </method>
|
---|
8395 |
|
---|
8396 | <method name="operationSupported">
|
---|
8397 | <desc>
|
---|
8398 | Returns whether the given acceleration operation is supported
|
---|
8399 | by the IFramebuffer implementation. If not, the display object
|
---|
8400 | will not attempt to call the corresponding IFramebuffer entry
|
---|
8401 | point. Even if an operation is indicated to supported, the
|
---|
8402 | IFramebuffer implementation always has the option to return non
|
---|
8403 | supported from the corresponding acceleration method in which
|
---|
8404 | case the operation will be performed by the display engine. This
|
---|
8405 | allows for reduced IFramebuffer implementation complexity where
|
---|
8406 | only common cases are handled.
|
---|
8407 | </desc>
|
---|
8408 | <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
|
---|
8409 | <param name="supported" type="boolean" dir="return"/>
|
---|
8410 | </method>
|
---|
8411 |
|
---|
8412 | <method name="videoModeSupported">
|
---|
8413 | <desc>
|
---|
8414 | Returns whether the frame buffer implementation is willing to
|
---|
8415 | support a given video mode. In case it is not able to render
|
---|
8416 | the video mode (or for some reason not willing), it should
|
---|
8417 | return false. Usually this method is called when the guest
|
---|
8418 | asks the VMM device whether a given video mode is supported
|
---|
8419 | so the information returned is directly exposed to the guest.
|
---|
8420 | It is important that this method returns very quickly.
|
---|
8421 | </desc>
|
---|
8422 | <param name="width" type="unsigned long" dir="in"/>
|
---|
8423 | <param name="height" type="unsigned long" dir="in"/>
|
---|
8424 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
8425 | <param name="supported" type="boolean" dir="return"/>
|
---|
8426 | </method>
|
---|
8427 |
|
---|
8428 | <method name="solidFill">
|
---|
8429 | <desc>
|
---|
8430 | Fills the specified rectangle on screen with a solid color.
|
---|
8431 | </desc>
|
---|
8432 | <param name="x" type="unsigned long" dir="in"/>
|
---|
8433 | <param name="y" type="unsigned long" dir="in"/>
|
---|
8434 | <param name="width" type="unsigned long" dir="in"/>
|
---|
8435 | <param name="height" type="unsigned long" dir="in"/>
|
---|
8436 | <param name="color" type="unsigned long" dir="in"/>
|
---|
8437 | <param name="handled" type="boolean" dir="return"/>
|
---|
8438 | </method>
|
---|
8439 |
|
---|
8440 | <method name="copyScreenBits">
|
---|
8441 | <desc>
|
---|
8442 | Copies specified rectangle on the screen.
|
---|
8443 | </desc>
|
---|
8444 | <param name="xDst" type="unsigned long" dir="in"/>
|
---|
8445 | <param name="yDst" type="unsigned long" dir="in"/>
|
---|
8446 | <param name="xSrc" type="unsigned long" dir="in"/>
|
---|
8447 | <param name="ySrc" type="unsigned long" dir="in"/>
|
---|
8448 | <param name="width" type="unsigned long" dir="in"/>
|
---|
8449 | <param name="height" type="unsigned long" dir="in"/>
|
---|
8450 | <param name="handled" type="boolean" dir="return"/>
|
---|
8451 | </method>
|
---|
8452 |
|
---|
8453 | <method name="getVisibleRegion">
|
---|
8454 | <desc>
|
---|
8455 | Returns the visible region of this frame buffer.
|
---|
8456 |
|
---|
8457 | If the @a rectangles parameter is <tt>NULL</tt> then the value of the
|
---|
8458 | @a count parameter is ignored and the number of elements necessary to
|
---|
8459 | describe the current visible region is returned in @a countCopied.
|
---|
8460 |
|
---|
8461 | If @a rectangles is not <tt>NULL</tt> but @a count is less
|
---|
8462 | than the required number of elements to store region data, the method
|
---|
8463 | will report a failure. If @a count is equal or greater than the
|
---|
8464 | required number of elements, then the actual number of elements copied
|
---|
8465 | to the provided array will be returned in @a countCopied.
|
---|
8466 |
|
---|
8467 | <note>
|
---|
8468 | The address of the provided array must be in the process space of
|
---|
8469 | this IFramebuffer object.
|
---|
8470 | </note>
|
---|
8471 | </desc>
|
---|
8472 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
8473 | <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
|
---|
8474 | </param>
|
---|
8475 | <param name="count" type="unsigned long" dir="in">
|
---|
8476 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
8477 | </param>
|
---|
8478 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
8479 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
8480 | </param>
|
---|
8481 | </method>
|
---|
8482 |
|
---|
8483 | <method name="setVisibleRegion">
|
---|
8484 | <desc>
|
---|
8485 | Suggests a new visible region to this frame buffer. This region
|
---|
8486 | represents the area of the VM display which is a union of regions of
|
---|
8487 | all top-level windows of the guest operating system running inside the
|
---|
8488 | VM (if the Guest Additions for this system support this
|
---|
8489 | functionality). This information may be used by the frontends to
|
---|
8490 | implement the seamless desktop integration feature.
|
---|
8491 |
|
---|
8492 | <note>
|
---|
8493 | The address of the provided array must be in the process space of
|
---|
8494 | this IFramebuffer object.
|
---|
8495 | </note>
|
---|
8496 | <note>
|
---|
8497 | The IFramebuffer implementation must make a copy of the provided
|
---|
8498 | array of rectangles.
|
---|
8499 | </note>
|
---|
8500 | </desc>
|
---|
8501 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
8502 | <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
|
---|
8503 | </param>
|
---|
8504 | <param name="count" type="unsigned long" dir="in">
|
---|
8505 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
8506 | </param>
|
---|
8507 | </method>
|
---|
8508 |
|
---|
8509 | </interface>
|
---|
8510 |
|
---|
8511 | <interface
|
---|
8512 | name="IFramebufferOverlay" extends="IFrameBuffer"
|
---|
8513 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
8514 | wsmap="suppress"
|
---|
8515 | >
|
---|
8516 | <desc>
|
---|
8517 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
8518 | for displaying status icons above an IFramebuffer. It is always created
|
---|
8519 | not visible, so that it must be explicitly shown. It only covers a
|
---|
8520 | portion of the IFramebuffer, determined by its width, height and
|
---|
8521 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
8522 | that order) format, and may be written to directly. Do re-read the
|
---|
8523 | width though, after setting it, as it may be adjusted (increased) to
|
---|
8524 | make it more suitable for the front end.
|
---|
8525 | </desc>
|
---|
8526 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
8527 | <desc>X position of the overlay, relative to the frame buffer.</desc>
|
---|
8528 | </attribute>
|
---|
8529 |
|
---|
8530 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
8531 | <desc>Y position of the overlay, relative to the frame buffer.</desc>
|
---|
8532 | </attribute>
|
---|
8533 |
|
---|
8534 | <attribute name="visible" type="boolean" readonly="no">
|
---|
8535 | <desc>
|
---|
8536 | Whether the overlay is currently visible.
|
---|
8537 | </desc>
|
---|
8538 | </attribute>
|
---|
8539 |
|
---|
8540 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
8541 | <desc>
|
---|
8542 | The global alpha value for the overlay. This may or may not be
|
---|
8543 | supported by a given front end.
|
---|
8544 | </desc>
|
---|
8545 | </attribute>
|
---|
8546 |
|
---|
8547 | <method name="move">
|
---|
8548 | <desc>
|
---|
8549 | Changes the overlay's position relative to the IFramebuffer.
|
---|
8550 | </desc>
|
---|
8551 | <param name="x" type="unsigned long" dir="in"/>
|
---|
8552 | <param name="y" type="unsigned long" dir="in"/>
|
---|
8553 | </method>
|
---|
8554 |
|
---|
8555 | </interface>
|
---|
8556 |
|
---|
8557 | <interface
|
---|
8558 | name="IDisplay" extends="$unknown"
|
---|
8559 | uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
|
---|
8560 | wsmap="suppress"
|
---|
8561 | >
|
---|
8562 | <desc>
|
---|
8563 | The IDisplay interface represents the virtual machine's display.
|
---|
8564 |
|
---|
8565 | The object implementing this interface is contained in each
|
---|
8566 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
8567 | output of the virtual machine.
|
---|
8568 |
|
---|
8569 | The virtual display supports pluggable output targets represented by the
|
---|
8570 | IFramebuffer interface. Examples of the output target are a window on
|
---|
8571 | the host computer or an RDP session's display on a remote computer.
|
---|
8572 | </desc>
|
---|
8573 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
8574 | <desc>Current display width.</desc>
|
---|
8575 | </attribute>
|
---|
8576 |
|
---|
8577 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
8578 | <desc>Current display height.</desc>
|
---|
8579 | </attribute>
|
---|
8580 |
|
---|
8581 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
8582 | <desc>
|
---|
8583 | Current guest display color depth. Note that this may differ
|
---|
8584 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
8585 | </desc>
|
---|
8586 | </attribute>
|
---|
8587 |
|
---|
8588 | <method name="setupInternalFramebuffer">
|
---|
8589 | <desc>
|
---|
8590 | Prepares an internally managed frame buffer.
|
---|
8591 | </desc>
|
---|
8592 | <param name="depth" type="unsigned long" dir="in"/>
|
---|
8593 | </method>
|
---|
8594 |
|
---|
8595 | <method name="lockFramebuffer">
|
---|
8596 | <desc>
|
---|
8597 | Requests access to the internal frame buffer.
|
---|
8598 | </desc>
|
---|
8599 | <param name="address" type="octet" mod="ptr" dir="return"/>
|
---|
8600 | </method>
|
---|
8601 |
|
---|
8602 | <method name="unlockFramebuffer">
|
---|
8603 | <desc>
|
---|
8604 | Releases access to the internal frame buffer.
|
---|
8605 | </desc>
|
---|
8606 | </method>
|
---|
8607 |
|
---|
8608 | <method name="registerExternalFramebuffer">
|
---|
8609 | <desc>
|
---|
8610 | Registers an external frame buffer.
|
---|
8611 | </desc>
|
---|
8612 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
8613 | </method>
|
---|
8614 |
|
---|
8615 | <method name="setFramebuffer">
|
---|
8616 | <desc>
|
---|
8617 | Sets the framebuffer for given screen.
|
---|
8618 | </desc>
|
---|
8619 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
8620 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
8621 | </method>
|
---|
8622 |
|
---|
8623 | <method name="getFramebuffer">
|
---|
8624 | <desc>
|
---|
8625 | Queries the framebuffer for given screen.
|
---|
8626 | </desc>
|
---|
8627 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
8628 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
8629 | <param name="xOrigin" type="long" dir="out"/>
|
---|
8630 | <param name="yOrigin" type="long" dir="out"/>
|
---|
8631 | </method>
|
---|
8632 |
|
---|
8633 | <method name="setVideoModeHint">
|
---|
8634 | <desc>
|
---|
8635 | Asks VirtualBox to request the given video mode from
|
---|
8636 | the guest. This is just a hint and it cannot be guaranteed
|
---|
8637 | that the requested resolution will be used. Guest Additions
|
---|
8638 | are required for the request to be seen by guests. The caller
|
---|
8639 | should issue the request and wait for a resolution change and
|
---|
8640 | after a timeout retry.
|
---|
8641 |
|
---|
8642 | Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
|
---|
8643 | parameters means that the corresponding values should be taken from the
|
---|
8644 | current video mode (i.e. left unchanged).
|
---|
8645 |
|
---|
8646 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
8647 | parameter specifies the number of the guest display to send the hint to:
|
---|
8648 | <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
|
---|
8649 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
8650 | must be <tt>0</tt>.
|
---|
8651 |
|
---|
8652 | </desc>
|
---|
8653 | <param name="width" type="unsigned long" dir="in"/>
|
---|
8654 | <param name="height" type="unsigned long" dir="in"/>
|
---|
8655 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
8656 | <param name="display" type="unsigned long" dir="in"/>
|
---|
8657 | </method>
|
---|
8658 |
|
---|
8659 | <method name="setSeamlessMode">
|
---|
8660 | <desc>
|
---|
8661 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
8662 | integration) mode.
|
---|
8663 | <note>
|
---|
8664 | Calling this method has no effect if <link
|
---|
8665 | to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
|
---|
8666 | </note>
|
---|
8667 | </desc>
|
---|
8668 | <param name="enabled" type="boolean" dir="in"/>
|
---|
8669 | </method>
|
---|
8670 |
|
---|
8671 | <method name="takeScreenShot">
|
---|
8672 | <desc>
|
---|
8673 | Takes a screen shot of the requested size and copies it to the
|
---|
8674 | 32-bpp buffer allocated by the caller.
|
---|
8675 | </desc>
|
---|
8676 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
8677 | <param name="width" type="unsigned long" dir="in"/>
|
---|
8678 | <param name="height" type="unsigned long" dir="in"/>
|
---|
8679 | </method>
|
---|
8680 |
|
---|
8681 | <method name="drawToScreen">
|
---|
8682 | <desc>
|
---|
8683 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
8684 | to the given point on the VM display.
|
---|
8685 | </desc>
|
---|
8686 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
8687 | <param name="x" type="unsigned long" dir="in"/>
|
---|
8688 | <param name="y" type="unsigned long" dir="in"/>
|
---|
8689 | <param name="width" type="unsigned long" dir="in"/>
|
---|
8690 | <param name="height" type="unsigned long" dir="in"/>
|
---|
8691 | </method>
|
---|
8692 |
|
---|
8693 | <method name="invalidateAndUpdate">
|
---|
8694 | <desc>
|
---|
8695 | Does a full invalidation of the VM display and instructs the VM
|
---|
8696 | to update it.
|
---|
8697 | </desc>
|
---|
8698 | </method>
|
---|
8699 |
|
---|
8700 | <method name="resizeCompleted">
|
---|
8701 | <desc>
|
---|
8702 | Signals that a framebuffer has completed the resize operation.
|
---|
8703 | </desc>
|
---|
8704 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
8705 | </method>
|
---|
8706 |
|
---|
8707 | <method name="updateCompleted">
|
---|
8708 | <desc>
|
---|
8709 | Signals that a framebuffer has completed the update operation.
|
---|
8710 | </desc>
|
---|
8711 | </method>
|
---|
8712 |
|
---|
8713 | </interface>
|
---|
8714 |
|
---|
8715 | <!--
|
---|
8716 | // INetworkAdapter
|
---|
8717 | /////////////////////////////////////////////////////////////////////////
|
---|
8718 | -->
|
---|
8719 |
|
---|
8720 | <enum
|
---|
8721 | name="NetworkAttachmentType"
|
---|
8722 | uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
|
---|
8723 | >
|
---|
8724 | <desc>
|
---|
8725 | Network attachment type.
|
---|
8726 | </desc>
|
---|
8727 |
|
---|
8728 | <const name="Null" value="0">
|
---|
8729 | <desc><tt>null</tt> value. Also means "not attached".</desc>
|
---|
8730 | </const>
|
---|
8731 | <const name="NAT" value="1"/>
|
---|
8732 | <const name="HostInterface" value="2"/>
|
---|
8733 | <const name="Internal" value="3"/>
|
---|
8734 | </enum>
|
---|
8735 |
|
---|
8736 | <enum
|
---|
8737 | name="NetworkAdapterType"
|
---|
8738 | uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
|
---|
8739 | >
|
---|
8740 | <desc>
|
---|
8741 | Network adapter type.
|
---|
8742 | </desc>
|
---|
8743 |
|
---|
8744 | <const name="Null" value="0">
|
---|
8745 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
8746 | </const>
|
---|
8747 | <const name="Am79C970A" value="1"/>
|
---|
8748 | <const name="Am79C973" value="2"/>
|
---|
8749 | <const name="I82540EM" value="3"/>
|
---|
8750 | <const name="I82543GC" value="4"/>
|
---|
8751 | </enum>
|
---|
8752 |
|
---|
8753 | <interface
|
---|
8754 | name="INetworkAdapter" extends="$unknown"
|
---|
8755 | uuid="a876d9b1-68d9-43b1-9c68-ddea0a473663"
|
---|
8756 | wsmap="managed"
|
---|
8757 | >
|
---|
8758 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
8759 | <desc>
|
---|
8760 | Type of the virtual network adapter. Depending on this value,
|
---|
8761 | VirtualBox will provide a different virtual network hardware
|
---|
8762 | to the guest.
|
---|
8763 | </desc>
|
---|
8764 | </attribute>
|
---|
8765 |
|
---|
8766 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
8767 | <desc>
|
---|
8768 | Slot number this adapter is plugged into. Corresponds to
|
---|
8769 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
8770 | to obtain this instance.
|
---|
8771 | </desc>
|
---|
8772 | </attribute>
|
---|
8773 |
|
---|
8774 | <attribute name="enabled" type="boolean">
|
---|
8775 | <desc>
|
---|
8776 | Flag whether the network adapter is present in the
|
---|
8777 | guest system. If disabled, the virtual guest hardware will
|
---|
8778 | not contain this network adapter. Can only be changed when
|
---|
8779 | the VM is not running.
|
---|
8780 | </desc>
|
---|
8781 | </attribute>
|
---|
8782 |
|
---|
8783 | <attribute name="MACAddress" type="wstring">
|
---|
8784 | <desc>
|
---|
8785 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
8786 | it to NULL, VirtualBox will generate a unique MAC address.
|
---|
8787 | </desc>
|
---|
8788 | </attribute>
|
---|
8789 |
|
---|
8790 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
8791 |
|
---|
8792 | <attribute name="hostInterface" type="wstring">
|
---|
8793 | <desc>
|
---|
8794 | Name of the Host Network Interface that is currently in use. NULL will be returned
|
---|
8795 | if no device has been allocated. On Linux, setting this refers to a permanent TAP
|
---|
8796 | device. However, a file descriptor has precedence over the interface name on Linux.
|
---|
8797 | Note that when VirtualBox allocates a TAP device, this property will not be set, i.e. the
|
---|
8798 | interface name would have to be determined using the file descriptor and /proc/self/fd.
|
---|
8799 | </desc>
|
---|
8800 | </attribute>
|
---|
8801 |
|
---|
8802 | <if target="xpidl">
|
---|
8803 | <attribute name="TAPFileDescriptor" type="long">
|
---|
8804 | <desc>
|
---|
8805 | File descriptor of the TAP device. It can either be setup by the caller
|
---|
8806 | which has to supply an existing valid file handle allocated in the parent
|
---|
8807 | process of the VM process or allocated by VirtualBox. The value is -1 if it
|
---|
8808 | has not been defined. This property is non persistent, i.e. it will not be
|
---|
8809 | stored in the VM's configuration data and thus has to be set at each startup.
|
---|
8810 | </desc>
|
---|
8811 | </attribute>
|
---|
8812 | <attribute name="TAPSetupApplication" type="wstring">
|
---|
8813 | <desc>
|
---|
8814 | Application to start to configure the TAP device.
|
---|
8815 | It is being passed two parameters, 1) the file handle (as ASCII),
|
---|
8816 | 2) the TAP device name if it is available.
|
---|
8817 | </desc>
|
---|
8818 | </attribute>
|
---|
8819 | <attribute name="TAPTerminateApplication" type="wstring">
|
---|
8820 | <desc>
|
---|
8821 | Application to start before closing a TAP device.
|
---|
8822 | It is being passed two parameters, 1) the file handle (as ASCII),
|
---|
8823 | 2) the TAP device name if it is available.
|
---|
8824 | </desc>
|
---|
8825 | </attribute>
|
---|
8826 | </if>
|
---|
8827 |
|
---|
8828 | <attribute name="internalNetwork" type="wstring">
|
---|
8829 | <desc>
|
---|
8830 | Name of the internal network the VM is attached to.
|
---|
8831 | </desc>
|
---|
8832 | </attribute>
|
---|
8833 |
|
---|
8834 | <attribute name="NATNetwork" type="wstring">
|
---|
8835 | <desc>
|
---|
8836 | Name of the NAT network the VM is attached to.
|
---|
8837 | </desc>
|
---|
8838 | </attribute>
|
---|
8839 |
|
---|
8840 | <attribute name="cableConnected" type="boolean">
|
---|
8841 | <desc>
|
---|
8842 | Flag whether the adapter reports the cable as connected or not.
|
---|
8843 | It can be used to report offline situations to a VM.
|
---|
8844 | </desc>
|
---|
8845 | </attribute>
|
---|
8846 |
|
---|
8847 | <attribute name="lineSpeed" type="unsigned long">
|
---|
8848 | <desc>
|
---|
8849 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
8850 | </desc>
|
---|
8851 | </attribute>
|
---|
8852 |
|
---|
8853 | <attribute name="traceEnabled" type="boolean">
|
---|
8854 | <desc>
|
---|
8855 | Flag whether network traffic from/to the network card should be traced.
|
---|
8856 | Can only be toggled when the VM is turned off.
|
---|
8857 | </desc>
|
---|
8858 | </attribute>
|
---|
8859 |
|
---|
8860 | <attribute name="traceFile" type="wstring">
|
---|
8861 | <desc>
|
---|
8862 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
8863 | will be used.
|
---|
8864 | </desc>
|
---|
8865 | </attribute>
|
---|
8866 |
|
---|
8867 | <method name="attachToNAT">
|
---|
8868 | <desc>
|
---|
8869 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
8870 | </desc>
|
---|
8871 | </method>
|
---|
8872 |
|
---|
8873 | <method name="attachToHostInterface">
|
---|
8874 | <desc>
|
---|
8875 | Attach the network adapter to a host interface. On Linux, the TAP
|
---|
8876 | setup application will be executed if configured and unless a device
|
---|
8877 | name and/or file descriptor has been set, a new TAP interface will be
|
---|
8878 | created.
|
---|
8879 | </desc>
|
---|
8880 | </method>
|
---|
8881 |
|
---|
8882 | <method name="attachToInternalNetwork">
|
---|
8883 | <desc>
|
---|
8884 | Attach the network adapter to an internal network.
|
---|
8885 | </desc>
|
---|
8886 | </method>
|
---|
8887 |
|
---|
8888 | <method name="detach">
|
---|
8889 | <desc>
|
---|
8890 | Detach the network adapter
|
---|
8891 | </desc>
|
---|
8892 | </method>
|
---|
8893 | </interface>
|
---|
8894 |
|
---|
8895 |
|
---|
8896 | <!--
|
---|
8897 | // ISerialPort
|
---|
8898 | /////////////////////////////////////////////////////////////////////////
|
---|
8899 | -->
|
---|
8900 |
|
---|
8901 | <enum
|
---|
8902 | name="PortMode"
|
---|
8903 | uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
|
---|
8904 | >
|
---|
8905 | <desc>
|
---|
8906 | The PortMode enumeration represents possible communication modes for
|
---|
8907 | the virtual serial port device.
|
---|
8908 | </desc>
|
---|
8909 |
|
---|
8910 | <const name="Disconnected" value="0">
|
---|
8911 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
8912 | </const>
|
---|
8913 | <const name="HostPipe" value="1">
|
---|
8914 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
8915 | </const>
|
---|
8916 | <const name="HostDevice" value="2">
|
---|
8917 | <desc>Virtual device is attached to a host device.</desc>
|
---|
8918 | </const>
|
---|
8919 | </enum>
|
---|
8920 |
|
---|
8921 | <interface
|
---|
8922 | name="ISerialPort" extends="$unknown"
|
---|
8923 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
8924 | wsmap="managed"
|
---|
8925 | >
|
---|
8926 |
|
---|
8927 | <desc>
|
---|
8928 | The ISerialPort interface represents the virtual serial port device.
|
---|
8929 |
|
---|
8930 | The virtual serial port device acts like an ordinary serial port
|
---|
8931 | inside the virtual machine. This device communicates to the real
|
---|
8932 | serial port hardware in one of two modes: host pipe or host device.
|
---|
8933 |
|
---|
8934 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
8935 | the host computer that represents a serial port. The #server attribute
|
---|
8936 | determines if this pipe is created by the virtual machine process at
|
---|
8937 | machine startup or it must already exist before starting machine
|
---|
8938 | execution.
|
---|
8939 |
|
---|
8940 | In host device mode, the #path attribute specifies the name of the
|
---|
8941 | serial port device on the host computer.
|
---|
8942 |
|
---|
8943 | There is also a third communication mode: the disconnected mode. In this
|
---|
8944 | mode, the guest OS running inside the virtual machine will be able to
|
---|
8945 | detect the serial port, but all port write operations will be discarded
|
---|
8946 | and all port read operations will return no data.
|
---|
8947 |
|
---|
8948 | <see>IMachine::getSerialPort</see>
|
---|
8949 | </desc>
|
---|
8950 |
|
---|
8951 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
8952 | <desc>
|
---|
8953 | Slot number this serial port is plugged into. Corresponds to
|
---|
8954 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
8955 | to obtain this instance.
|
---|
8956 | </desc>
|
---|
8957 | </attribute>
|
---|
8958 |
|
---|
8959 | <attribute name="enabled" type="boolean">
|
---|
8960 | <desc>
|
---|
8961 | Flag whether the serial port is enabled. If disabled,
|
---|
8962 | the serial port will not be reported to the guest OS.
|
---|
8963 | </desc>
|
---|
8964 | </attribute>
|
---|
8965 |
|
---|
8966 | <attribute name="IOBase" type="unsigned long">
|
---|
8967 | <desc>Base I/O address of the serial port.</desc>
|
---|
8968 | </attribute>
|
---|
8969 |
|
---|
8970 | <attribute name="IRQ" type="unsigned long">
|
---|
8971 | <desc>IRQ number of the serial port.</desc>
|
---|
8972 | </attribute>
|
---|
8973 |
|
---|
8974 | <attribute name="hostMode" type="PortMode">
|
---|
8975 | <desc>
|
---|
8976 | How is this port connected to the host.
|
---|
8977 | <note>
|
---|
8978 | Changing this attribute may fail if the conditions for
|
---|
8979 | <link to="#path"/> are not met.
|
---|
8980 | </note>
|
---|
8981 | </desc>
|
---|
8982 | </attribute>
|
---|
8983 |
|
---|
8984 | <attribute name="server" type="boolean">
|
---|
8985 | <desc>
|
---|
8986 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
8987 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
8988 | used only when <link to="#hostMode"/> is PortMode::HostPipe.
|
---|
8989 | </desc>
|
---|
8990 | </attribute>
|
---|
8991 |
|
---|
8992 | <attribute name="path" type="wstring">
|
---|
8993 | <desc>
|
---|
8994 | Path to the serial port's pipe on the host when <link to="#hostMode"/> is
|
---|
8995 | PortMode::HostPipe, or the host serial device name when
|
---|
8996 | <link to="#hostMode"/> is PortMode::HostDevice. In either of the above
|
---|
8997 | cases, setting a @c null or an empty string as the attribute's value
|
---|
8998 | will result into an error. Otherwise, the value of this property is
|
---|
8999 | ignored.
|
---|
9000 | </desc>
|
---|
9001 | </attribute>
|
---|
9002 |
|
---|
9003 | </interface>
|
---|
9004 |
|
---|
9005 | <!--
|
---|
9006 | // IParallelPort
|
---|
9007 | /////////////////////////////////////////////////////////////////////////
|
---|
9008 | -->
|
---|
9009 |
|
---|
9010 | <interface
|
---|
9011 | name="IParallelPort" extends="$unknown"
|
---|
9012 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
9013 | wsmap="managed"
|
---|
9014 | >
|
---|
9015 |
|
---|
9016 | <desc>
|
---|
9017 | The IParallelPort interface represents the virtual parallel port device.
|
---|
9018 |
|
---|
9019 | The virtual parallel port device acts like an ordinary parallel port
|
---|
9020 | inside the virtual machine. This device communicates to the real
|
---|
9021 | parallel port hardware using the name of the parallel device on the host
|
---|
9022 | computer specified in the #path attribute.
|
---|
9023 |
|
---|
9024 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
9025 | IRQ number that will be reported to the guest operating system and used
|
---|
9026 | to operate the given parallel port from within the virtual machine.
|
---|
9027 |
|
---|
9028 | <see>IMachine::getParallelPort</see>
|
---|
9029 | </desc>
|
---|
9030 |
|
---|
9031 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
9032 | <desc>
|
---|
9033 | Slot number this parallel port is plugged into. Corresponds to
|
---|
9034 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
9035 | to obtain this instance.
|
---|
9036 | </desc>
|
---|
9037 | </attribute>
|
---|
9038 |
|
---|
9039 | <attribute name="enabled" type="boolean">
|
---|
9040 | <desc>
|
---|
9041 | Flag whether the parallel port is enabled. If disabled,
|
---|
9042 | the parallel port will not be reported to the guest OS.
|
---|
9043 | </desc>
|
---|
9044 | </attribute>
|
---|
9045 |
|
---|
9046 | <attribute name="IOBase" type="unsigned long">
|
---|
9047 | <desc>Base I/O address of the parallel port.</desc>
|
---|
9048 | </attribute>
|
---|
9049 |
|
---|
9050 | <attribute name="IRQ" type="unsigned long">
|
---|
9051 | <desc>IRQ number of the parallel port.</desc>
|
---|
9052 | </attribute>
|
---|
9053 |
|
---|
9054 | <attribute name="path" type="wstring">
|
---|
9055 | <desc>
|
---|
9056 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
9057 | @c null or an empty string as this attribute's value will result into
|
---|
9058 | an error.
|
---|
9059 | </desc>
|
---|
9060 | </attribute>
|
---|
9061 |
|
---|
9062 | </interface>
|
---|
9063 |
|
---|
9064 |
|
---|
9065 | <!--
|
---|
9066 | // IMachineDebugger
|
---|
9067 | /////////////////////////////////////////////////////////////////////////
|
---|
9068 | -->
|
---|
9069 |
|
---|
9070 | <interface
|
---|
9071 | name="IMachineDebugger" extends="$unknown"
|
---|
9072 | uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
|
---|
9073 | wsmap="suppress"
|
---|
9074 | >
|
---|
9075 | <method name="resetStats">
|
---|
9076 | <desc>
|
---|
9077 | Reset VM statistics.
|
---|
9078 | </desc>
|
---|
9079 | <param name="pattern" type="wstring" dir="in">
|
---|
9080 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
9081 | </param>
|
---|
9082 | </method>
|
---|
9083 |
|
---|
9084 | <method name="dumpStats">
|
---|
9085 | <desc>
|
---|
9086 | Dumps VM statistics.
|
---|
9087 | </desc>
|
---|
9088 | <param name="pattern" type="wstring" dir="in">
|
---|
9089 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
9090 | </param>
|
---|
9091 | </method>
|
---|
9092 |
|
---|
9093 | <method name="getStats">
|
---|
9094 | <desc>
|
---|
9095 | Get the VM statistics in a XMLish format.
|
---|
9096 | </desc>
|
---|
9097 | <param name="pattern" type="wstring" dir="in">
|
---|
9098 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
9099 | </param>
|
---|
9100 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
9101 | <desc>Whether to include the descriptions.</desc>
|
---|
9102 | </param>
|
---|
9103 | <param name="stats" type="wstring" dir="out">
|
---|
9104 | <desc>The XML document containing the statistics.</desc>
|
---|
9105 | </param>
|
---|
9106 | </method>
|
---|
9107 |
|
---|
9108 | <method name="injectNMI">
|
---|
9109 | <desc>
|
---|
9110 | Inject an NMI into a running VT-x/AMD-V VM.
|
---|
9111 | </desc>
|
---|
9112 | </method>
|
---|
9113 |
|
---|
9114 | <attribute name="singlestep" type="boolean">
|
---|
9115 | <desc>Switch for enabling singlestepping.</desc>
|
---|
9116 | </attribute>
|
---|
9117 |
|
---|
9118 | <attribute name="recompileUser" type="boolean">
|
---|
9119 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
9120 | </attribute>
|
---|
9121 |
|
---|
9122 | <attribute name="recompileSupervisor" type="boolean">
|
---|
9123 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
9124 | </attribute>
|
---|
9125 |
|
---|
9126 | <attribute name="PATMEnabled" type="boolean">
|
---|
9127 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
9128 | </attribute>
|
---|
9129 |
|
---|
9130 | <attribute name="CSAMEnabled" type="boolean">
|
---|
9131 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
9132 | </attribute>
|
---|
9133 |
|
---|
9134 | <attribute name="logEnabled" type="boolean">
|
---|
9135 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
9136 | </attribute>
|
---|
9137 |
|
---|
9138 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
9139 | <desc>
|
---|
9140 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
9141 | virtualization extensions.
|
---|
9142 | </desc>
|
---|
9143 | </attribute>
|
---|
9144 |
|
---|
9145 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
|
---|
9146 | <desc>
|
---|
9147 | Flag indicating whether the VM is currently making use of the nested paging
|
---|
9148 | CPU hardware virtualization extension.
|
---|
9149 | </desc>
|
---|
9150 | </attribute>
|
---|
9151 |
|
---|
9152 | <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
|
---|
9153 | <desc>
|
---|
9154 | Flag indicating whether the VM is currently making use of the VPID
|
---|
9155 | VT-x extension.
|
---|
9156 | </desc>
|
---|
9157 | </attribute>
|
---|
9158 |
|
---|
9159 | <attribute name="PAEEnabled" type="boolean" readonly="yes">
|
---|
9160 | <desc>
|
---|
9161 | Flag indicating whether the VM is currently making use of the Physical
|
---|
9162 | Address Extension CPU feature.
|
---|
9163 | </desc>
|
---|
9164 | </attribute>
|
---|
9165 |
|
---|
9166 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
9167 | <desc>
|
---|
9168 | The rate at which the virtual time runs expressed as a percentage.
|
---|
9169 | The accepted range is 2% to 20000%.
|
---|
9170 | </desc>
|
---|
9171 | </attribute>
|
---|
9172 |
|
---|
9173 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
9174 |
|
---|
9175 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
9176 | <desc>
|
---|
9177 | Gets the VM handle. This is only for internal use while
|
---|
9178 | we carve the details of this interface.
|
---|
9179 | </desc>
|
---|
9180 | </attribute>
|
---|
9181 |
|
---|
9182 | </interface>
|
---|
9183 |
|
---|
9184 | <!--
|
---|
9185 | // IUSBController
|
---|
9186 | /////////////////////////////////////////////////////////////////////////
|
---|
9187 | -->
|
---|
9188 |
|
---|
9189 | <interface
|
---|
9190 | name="IUSBController" extends="$unknown"
|
---|
9191 | uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
|
---|
9192 | wsmap="managed"
|
---|
9193 | >
|
---|
9194 | <attribute name="enabled" type="boolean">
|
---|
9195 | <desc>
|
---|
9196 | Flag whether the USB controller is present in the
|
---|
9197 | guest system. If disabled, the virtual guest hardware will
|
---|
9198 | not contain any USB controller. Can only be changed when
|
---|
9199 | the VM is powered off.
|
---|
9200 | </desc>
|
---|
9201 | </attribute>
|
---|
9202 |
|
---|
9203 | <attribute name="enabledEhci" type="boolean">
|
---|
9204 | <desc>
|
---|
9205 | Flag whether the USB EHCI controller is present in the
|
---|
9206 | guest system. If disabled, the virtual guest hardware will
|
---|
9207 | not contain a USB EHCI controller. Can only be changed when
|
---|
9208 | the VM is powered off.
|
---|
9209 | </desc>
|
---|
9210 | </attribute>
|
---|
9211 |
|
---|
9212 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
9213 | <desc>
|
---|
9214 | USB standard version which the controller implements.
|
---|
9215 | This is a BCD which means that the major version is in the
|
---|
9216 | high byte and minor version is in the low byte.
|
---|
9217 | </desc>
|
---|
9218 | </attribute>
|
---|
9219 |
|
---|
9220 | <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
|
---|
9221 | <desc>
|
---|
9222 | List of USB device filters associated with the machine.
|
---|
9223 |
|
---|
9224 | If the machine is currently running, these filters are activated
|
---|
9225 | every time a new (supported) USB device is attached to the host
|
---|
9226 | computer that was not ignored by global filters
|
---|
9227 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
9228 |
|
---|
9229 | These filters are also activated when the machine is powered up.
|
---|
9230 | They are run against a list of all currently available USB
|
---|
9231 | devices (in states
|
---|
9232 | <link to="USBDeviceState::Available">Available</link>,
|
---|
9233 | <link to="USBDeviceState::Busy">Busy</link>,
|
---|
9234 | <link to="USBDeviceState::Held">Held</link>) that were not previously
|
---|
9235 | ignored by global filters.
|
---|
9236 |
|
---|
9237 | If at least one filter matches the USB device in question, this
|
---|
9238 | device is automatically captured (attached to) the virtual USB
|
---|
9239 | controller of this machine.
|
---|
9240 |
|
---|
9241 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
9242 | </desc>
|
---|
9243 | </attribute>
|
---|
9244 |
|
---|
9245 | <method name="createDeviceFilter">
|
---|
9246 | <desc>
|
---|
9247 | Creates a new USB device filter. All attributes except
|
---|
9248 | the filter name are set to <tt>null</tt> (any match),
|
---|
9249 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
9250 |
|
---|
9251 | The created filter can then be added to the list of filters using
|
---|
9252 | <link to="#insertDeviceFilter()"/>.
|
---|
9253 |
|
---|
9254 | <see>#deviceFilters</see>
|
---|
9255 | </desc>
|
---|
9256 | <param name="name" type="wstring" dir="in">
|
---|
9257 | <desc>
|
---|
9258 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
9259 | for more info.
|
---|
9260 | </desc>
|
---|
9261 | </param>
|
---|
9262 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
9263 | <desc>Created filter object.</desc>
|
---|
9264 | </param>
|
---|
9265 | </method>
|
---|
9266 |
|
---|
9267 | <method name="insertDeviceFilter">
|
---|
9268 | <desc>
|
---|
9269 | Inserts the given USB device to the specified position
|
---|
9270 | in the list of filters.
|
---|
9271 |
|
---|
9272 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
9273 | position is equal to or greater than the number of elements in
|
---|
9274 | the list, the filter is added to the end of the collection.
|
---|
9275 |
|
---|
9276 | <note>
|
---|
9277 | Duplicates are not allowed, so an attempt to insert a
|
---|
9278 | filter that is already in the collection, will return an
|
---|
9279 | error.
|
---|
9280 | </note>
|
---|
9281 |
|
---|
9282 | <see>#deviceFilters</see>
|
---|
9283 | </desc>
|
---|
9284 | <param name="position" type="unsigned long" dir="in">
|
---|
9285 | <desc>Position to insert the filter to.</desc>
|
---|
9286 | </param>
|
---|
9287 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
9288 | <desc>USB device filter to insert.</desc>
|
---|
9289 | </param>
|
---|
9290 | </method>
|
---|
9291 |
|
---|
9292 | <method name="removeDeviceFilter">
|
---|
9293 | <desc>
|
---|
9294 | Removes a USB device filter from the specified position in the
|
---|
9295 | list of filters.
|
---|
9296 |
|
---|
9297 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
9298 | position equal to or greater than the number of elements in
|
---|
9299 | the list will produce an error.
|
---|
9300 |
|
---|
9301 | <see>#deviceFilters</see>
|
---|
9302 | </desc>
|
---|
9303 | <param name="position" type="unsigned long" dir="in">
|
---|
9304 | <desc>Position to remove the filter from.</desc>
|
---|
9305 | </param>
|
---|
9306 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
9307 | <desc>Removed USB device filter.</desc>
|
---|
9308 | </param>
|
---|
9309 | </method>
|
---|
9310 |
|
---|
9311 | </interface>
|
---|
9312 |
|
---|
9313 |
|
---|
9314 | <!--
|
---|
9315 | // IUSBDevice
|
---|
9316 | /////////////////////////////////////////////////////////////////////////
|
---|
9317 | -->
|
---|
9318 |
|
---|
9319 | <enumerator
|
---|
9320 | name="IUSBDeviceEnumerator" type="IUSBDevice"
|
---|
9321 | uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
|
---|
9322 | />
|
---|
9323 |
|
---|
9324 | <collection
|
---|
9325 | name="IUSBDeviceCollection" type="IUSBDevice"
|
---|
9326 | enumerator="IUSBDeviceEnumerator"
|
---|
9327 | uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
|
---|
9328 | readonly="yes"
|
---|
9329 | >
|
---|
9330 | <method name="findById">
|
---|
9331 | <desc>
|
---|
9332 | Searches this collection for a USB device with the given UUID.
|
---|
9333 | <note>
|
---|
9334 | The method returns an error if the given UUID does not
|
---|
9335 | correspond to any USB device in the collection.
|
---|
9336 | </note>
|
---|
9337 | <see>IUSBDevice::id</see>
|
---|
9338 | </desc>
|
---|
9339 | <param name="id" type="uuid" dir="in">
|
---|
9340 | <desc>UUID of the USB device to search for.</desc>
|
---|
9341 | </param>
|
---|
9342 | <param name="device" type="IUSBDevice" dir="return">
|
---|
9343 | <desc>Found USB device object.</desc>
|
---|
9344 | </param>
|
---|
9345 | </method>
|
---|
9346 |
|
---|
9347 | <method name="findByAddress">
|
---|
9348 | <desc>
|
---|
9349 | Searches this collection for a USB device with the given
|
---|
9350 | host address.
|
---|
9351 | <note>
|
---|
9352 | The method returns an error if the given address does not
|
---|
9353 | correspond to any USB device in the collection.
|
---|
9354 | </note>
|
---|
9355 | <see>IUSBDevice::address</see>
|
---|
9356 | </desc>
|
---|
9357 | <param name="name" type="wstring" dir="in">
|
---|
9358 | <desc>
|
---|
9359 | Address of the USB device (as assigned by the host) to
|
---|
9360 | search for.
|
---|
9361 | </desc>
|
---|
9362 | </param>
|
---|
9363 | <param name="device" type="IUSBDevice" dir="return">
|
---|
9364 | <desc>Found USB device object.</desc>
|
---|
9365 | </param>
|
---|
9366 | </method>
|
---|
9367 |
|
---|
9368 | </collection>
|
---|
9369 |
|
---|
9370 | <interface
|
---|
9371 | name="IUSBDevice" extends="$unknown"
|
---|
9372 | uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
|
---|
9373 | wsmap="managed"
|
---|
9374 | >
|
---|
9375 | <desc>
|
---|
9376 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
9377 | virtual machine.
|
---|
9378 |
|
---|
9379 | A collection of objects implementing this interface is stored in the
|
---|
9380 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
9381 | attached to a running virtual machine's USB controller.
|
---|
9382 | </desc>
|
---|
9383 |
|
---|
9384 | <attribute name="id" type="uuid" readonly="yes">
|
---|
9385 | <desc>
|
---|
9386 | Unique USB device ID. This ID is built from #vendorId,
|
---|
9387 | #productId, #revision and #serialNumber.
|
---|
9388 | </desc>
|
---|
9389 | </attribute>
|
---|
9390 |
|
---|
9391 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
9392 | <desc>Vendor ID.</desc>
|
---|
9393 | </attribute>
|
---|
9394 |
|
---|
9395 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
9396 | <desc>Product ID.</desc>
|
---|
9397 | </attribute>
|
---|
9398 |
|
---|
9399 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
9400 | <desc>
|
---|
9401 | Product revision number. This is a packed BCD represented as
|
---|
9402 | unsigned short. The high byte is the integer part and the low
|
---|
9403 | byte is the decimal.
|
---|
9404 | </desc>
|
---|
9405 | </attribute>
|
---|
9406 |
|
---|
9407 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
9408 | <desc>Manufacturer string.</desc>
|
---|
9409 | </attribute>
|
---|
9410 |
|
---|
9411 | <attribute name="product" type="wstring" readonly="yes">
|
---|
9412 | <desc>Product string.</desc>
|
---|
9413 | </attribute>
|
---|
9414 |
|
---|
9415 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
9416 | <desc>Serial number string.</desc>
|
---|
9417 | </attribute>
|
---|
9418 |
|
---|
9419 | <attribute name="address" type="wstring" readonly="yes">
|
---|
9420 | <desc>Host specific address of the device.</desc>
|
---|
9421 | </attribute>
|
---|
9422 |
|
---|
9423 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
9424 | <desc>
|
---|
9425 | Host USB port number the device is physically
|
---|
9426 | connected to.
|
---|
9427 | </desc>
|
---|
9428 | </attribute>
|
---|
9429 |
|
---|
9430 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
9431 | <desc>
|
---|
9432 | The major USB version of the device - 1 or 2.
|
---|
9433 | </desc>
|
---|
9434 | </attribute>
|
---|
9435 |
|
---|
9436 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
9437 | <desc>
|
---|
9438 | The major USB version of the host USB port the device is
|
---|
9439 | physically connected to - 1 or 2. For devices not connected to
|
---|
9440 | anything this will have the same value as the version attribute.
|
---|
9441 | </desc>
|
---|
9442 | </attribute>
|
---|
9443 |
|
---|
9444 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
9445 | <desc>
|
---|
9446 | Whether the device is physically connected to a remote VRDP
|
---|
9447 | client or to a local host machine.
|
---|
9448 | </desc>
|
---|
9449 | </attribute>
|
---|
9450 |
|
---|
9451 | </interface>
|
---|
9452 |
|
---|
9453 |
|
---|
9454 | <!--
|
---|
9455 | // IUSBDeviceFilter
|
---|
9456 | /////////////////////////////////////////////////////////////////////////
|
---|
9457 | -->
|
---|
9458 |
|
---|
9459 | <enumerator
|
---|
9460 | name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
|
---|
9461 | uuid="d5109c61-93e7-4726-926b-0dee1020da56"
|
---|
9462 | />
|
---|
9463 |
|
---|
9464 | <collection
|
---|
9465 | name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
|
---|
9466 | enumerator="IUSBDeviceFilterEnumerator"
|
---|
9467 | uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
|
---|
9468 | readonly="yes"
|
---|
9469 | />
|
---|
9470 |
|
---|
9471 | <interface
|
---|
9472 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
9473 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
9474 | wsmap="managed"
|
---|
9475 | >
|
---|
9476 | <desc>
|
---|
9477 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
9478 | to perform actions on a group of USB devices.
|
---|
9479 |
|
---|
9480 | This type of filters is used by running virtual machines to
|
---|
9481 | automatically capture selected USB devices once they are physically
|
---|
9482 | attached to the host computer.
|
---|
9483 |
|
---|
9484 | A USB device is matched to the given device filter if and only if all
|
---|
9485 | attributes of the device match the corresponding attributes of the
|
---|
9486 | filter (that is, attributes are joined together using the logical AND
|
---|
9487 | operation). On the other hand, all together, filters in the list of
|
---|
9488 | filters carry the semantics of the logical OR operation. So if it is
|
---|
9489 | desirable to create a match like "this vendor id OR this product id",
|
---|
9490 | one needs to create two filters and specify "any match" (see below)
|
---|
9491 | for unused attributes.
|
---|
9492 |
|
---|
9493 | All filter attributes used for matching are strings. Each string
|
---|
9494 | is an expression representing a set of values of the corresponding
|
---|
9495 | device attribute, that will match the given filter. Currently, the
|
---|
9496 | following filtering expressions are supported:
|
---|
9497 |
|
---|
9498 | <ul>
|
---|
9499 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
9500 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
9501 | The format of the string is:
|
---|
9502 |
|
---|
9503 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
9504 |
|
---|
9505 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
9506 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
9507 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
9508 | is omitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
9509 | is assumed; if <tt>n</tt> is omitted after a dash, the maximum
|
---|
9510 | possible integer is assumed.
|
---|
9511 | </li>
|
---|
9512 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
9513 | boolean device attributes. The format of the string is:
|
---|
9514 |
|
---|
9515 | <tt>true|false|yes|no|0|1</tt>
|
---|
9516 |
|
---|
9517 | </li>
|
---|
9518 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
9519 | device attribute. Any string that doesn't start with <tt>int:</tt>
|
---|
9520 | represents the exact match. String device attributes are compared to
|
---|
9521 | this string including case of symbols. Integer attributes are first
|
---|
9522 | converted to a string (see individual filter attributes) and then
|
---|
9523 | compared ignoring case.
|
---|
9524 |
|
---|
9525 | </li>
|
---|
9526 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
9527 | will match the given filter. An empty or <tt>null</tt> string is
|
---|
9528 | used to construct this type of filtering expressions.
|
---|
9529 |
|
---|
9530 | </li>
|
---|
9531 | </ul>
|
---|
9532 |
|
---|
9533 | <note>
|
---|
9534 | On the Windows host platform, interval filters are not currently
|
---|
9535 | available. Also all string filter attributes
|
---|
9536 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
9537 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
9538 | <i>any match</i> no matter what string expression is specified.
|
---|
9539 | </note>
|
---|
9540 |
|
---|
9541 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
9542 | </desc>
|
---|
9543 |
|
---|
9544 | <attribute name="name" type="wstring">
|
---|
9545 | <desc>
|
---|
9546 | Visible name for this filter.
|
---|
9547 | This name is used to visually distinguish one filter from another,
|
---|
9548 | so it can neither be <tt>null</tt> nor an empty string.
|
---|
9549 | </desc>
|
---|
9550 | </attribute>
|
---|
9551 |
|
---|
9552 | <attribute name="active" type="boolean">
|
---|
9553 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
9554 | </attribute>
|
---|
9555 |
|
---|
9556 | <attribute name="vendorId" type="wstring">
|
---|
9557 | <desc>
|
---|
9558 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
9559 | The string representation for the <i>exact matching</i>
|
---|
9560 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
9561 | (including leading zeroes).
|
---|
9562 | </desc>
|
---|
9563 | </attribute>
|
---|
9564 |
|
---|
9565 | <attribute name="productId" type="wstring">
|
---|
9566 | <desc>
|
---|
9567 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
9568 | The string representation for the <i>exact matching</i>
|
---|
9569 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
9570 | (including leading zeroes).
|
---|
9571 | </desc>
|
---|
9572 | </attribute>
|
---|
9573 |
|
---|
9574 | <attribute name="revision" type="wstring">
|
---|
9575 | <desc>
|
---|
9576 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
9577 | filter. The string representation for the <i>exact matching</i>
|
---|
9578 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
9579 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
9580 | decimal digit of its fractional part (including leading and
|
---|
9581 | trailing zeros).
|
---|
9582 | Note that for interval filters, it's best to use the hexadecimal
|
---|
9583 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
9584 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
9585 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
9586 | </desc>
|
---|
9587 | </attribute>
|
---|
9588 |
|
---|
9589 | <attribute name="manufacturer" type="wstring">
|
---|
9590 | <desc>
|
---|
9591 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
9592 | </desc>
|
---|
9593 | </attribute>
|
---|
9594 |
|
---|
9595 | <attribute name="product" type="wstring">
|
---|
9596 | <desc>
|
---|
9597 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
9598 | </desc>
|
---|
9599 | </attribute>
|
---|
9600 |
|
---|
9601 | <attribute name="serialNumber" type="wstring">
|
---|
9602 | <desc>
|
---|
9603 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
9604 | </desc>
|
---|
9605 | </attribute>
|
---|
9606 |
|
---|
9607 | <attribute name="port" type="wstring">
|
---|
9608 | <desc>
|
---|
9609 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
9610 | </desc>
|
---|
9611 | </attribute>
|
---|
9612 |
|
---|
9613 | <attribute name="remote" type="wstring">
|
---|
9614 | <desc>
|
---|
9615 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
9616 | <note>
|
---|
9617 | This filter makes sense only for machine USB filters,
|
---|
9618 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
9619 | </note>
|
---|
9620 | </desc>
|
---|
9621 | </attribute>
|
---|
9622 |
|
---|
9623 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
9624 | <desc>
|
---|
9625 | This is an advanced option for hiding one or more USB interfaces
|
---|
9626 | from the guest. The value is a bit mask where the bits that are set
|
---|
9627 | means the corresponding USB interface should be hidden, masked off
|
---|
9628 | if you like.
|
---|
9629 | This feature only works on Linux hosts.
|
---|
9630 | </desc>
|
---|
9631 | </attribute>
|
---|
9632 |
|
---|
9633 | </interface>
|
---|
9634 |
|
---|
9635 |
|
---|
9636 | <!--
|
---|
9637 | // IHostUSBDevice
|
---|
9638 | /////////////////////////////////////////////////////////////////////////
|
---|
9639 | -->
|
---|
9640 |
|
---|
9641 | <enum
|
---|
9642 | name="USBDeviceState"
|
---|
9643 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
9644 | >
|
---|
9645 | <desc>
|
---|
9646 | USB device state. This enumeration represents all possible states
|
---|
9647 | of the USB device physically attached to the host computer regarding
|
---|
9648 | its state on the host computer and availability to guest computers
|
---|
9649 | (all currently running virtual machines).
|
---|
9650 |
|
---|
9651 | Once a supported USB device is attached to the host, global USB
|
---|
9652 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
9653 | either ignore the device, or put it to #Held state, or do nothing. Unless
|
---|
9654 | the device is ignored by global filters, filters of all currently running
|
---|
9655 | guests (<link to="IUSBController::deviceFilters"/>) are activated that can
|
---|
9656 | put it to #Captured state.
|
---|
9657 |
|
---|
9658 | If the device was ignored by global filters, or didn't match
|
---|
9659 | any filters at all (including guest ones), it is handled by the host
|
---|
9660 | in a normal way. In this case, the device state is determined by
|
---|
9661 | the host and can be one of #Unavailable, #Busy or #Available, depending on
|
---|
9662 | the current device usage.
|
---|
9663 |
|
---|
9664 | Besides auto-capturing based on filters, the device can be manually
|
---|
9665 | captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
|
---|
9666 | state is #Busy, #Available or #Held.
|
---|
9667 |
|
---|
9668 | <note>
|
---|
9669 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
9670 | states #Busy and #Available are applicable only to the Linux version of
|
---|
9671 | the product. This also means that (<link
|
---|
9672 | to="IConsole::attachUSBDevice()"/>) can only succeed on Win32 if
|
---|
9673 | the device state is #Held.
|
---|
9674 | </note>
|
---|
9675 |
|
---|
9676 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
9677 | </desc>
|
---|
9678 |
|
---|
9679 | <const name="NotSupported" value="0">
|
---|
9680 | <desc>
|
---|
9681 | Not supported by the VirtualBox server, not available to guests.
|
---|
9682 | </desc>
|
---|
9683 | </const>
|
---|
9684 | <const name="Unavailable" value="1">
|
---|
9685 | <desc>
|
---|
9686 | Being used by the host computer exclusively,
|
---|
9687 | not available to guests.
|
---|
9688 | </desc>
|
---|
9689 | </const>
|
---|
9690 | <const name="Busy" value="2">
|
---|
9691 | <desc>
|
---|
9692 | Being used by the host computer, potentially available to guests.
|
---|
9693 | </desc>
|
---|
9694 | </const>
|
---|
9695 | <const name="Available" value="3">
|
---|
9696 | <desc>
|
---|
9697 | Not used by the host computer, available to guests.
|
---|
9698 | The host computer can also start using the device at any time.
|
---|
9699 | </desc>
|
---|
9700 | </const>
|
---|
9701 | <const name="Held" value="4">
|
---|
9702 | <desc>
|
---|
9703 | Held by the VirtualBox server (ignored by the host computer),
|
---|
9704 | available to guests.
|
---|
9705 | </desc>
|
---|
9706 | </const>
|
---|
9707 | <const name="Captured" value="5">
|
---|
9708 | <desc>
|
---|
9709 | Captured by one of the guest computers, not available
|
---|
9710 | to anybody else.
|
---|
9711 | </desc>
|
---|
9712 | </const>
|
---|
9713 | </enum>
|
---|
9714 |
|
---|
9715 | <enumerator
|
---|
9716 | name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
|
---|
9717 | uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
|
---|
9718 | />
|
---|
9719 |
|
---|
9720 | <collection
|
---|
9721 | name="IHostUSBDeviceCollection" type="IHostUSBDevice"
|
---|
9722 | enumerator="IHostUSBDeviceEnumerator"
|
---|
9723 | uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
|
---|
9724 | readonly="yes"
|
---|
9725 | >
|
---|
9726 | <method name="findById">
|
---|
9727 | <desc>
|
---|
9728 | Searches this collection for a USB device with the given UUID.
|
---|
9729 | <note>
|
---|
9730 | The method returns an error if the given UUID does not
|
---|
9731 | correspond to any USB device in the collection.
|
---|
9732 | </note>
|
---|
9733 | <see>IHostUSBDevice::id</see>
|
---|
9734 | </desc>
|
---|
9735 | <param name="id" type="uuid" dir="in">
|
---|
9736 | <desc>UUID of the USB device to search for.</desc>
|
---|
9737 | </param>
|
---|
9738 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
9739 | <desc>Found USB device object.</desc>
|
---|
9740 | </param>
|
---|
9741 | </method>
|
---|
9742 |
|
---|
9743 | <method name="findByAddress">
|
---|
9744 | <desc>
|
---|
9745 | Searches this collection for a USB device with the given
|
---|
9746 | host address.
|
---|
9747 | <note>
|
---|
9748 | The method returns an error if the given address does not
|
---|
9749 | correspond to any USB device in the collection.
|
---|
9750 | </note>
|
---|
9751 | <see>IHostUSBDevice::address</see>
|
---|
9752 | </desc>
|
---|
9753 | <param name="name" type="wstring" dir="in">
|
---|
9754 | <desc>
|
---|
9755 | Address of the USB device (as assigned by the host) to
|
---|
9756 | search for.
|
---|
9757 | </desc>
|
---|
9758 | </param>
|
---|
9759 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
9760 | <desc>Found USB device object.</desc>
|
---|
9761 | </param>
|
---|
9762 | </method>
|
---|
9763 |
|
---|
9764 | </collection>
|
---|
9765 |
|
---|
9766 | <interface
|
---|
9767 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
9768 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
9769 | wsmap="managed"
|
---|
9770 | >
|
---|
9771 | <desc>
|
---|
9772 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
9773 | to the host computer.
|
---|
9774 |
|
---|
9775 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
9776 | <link to="#state"/> property that holds the current state of the USB
|
---|
9777 | device.
|
---|
9778 |
|
---|
9779 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
9780 | </desc>
|
---|
9781 |
|
---|
9782 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
9783 | <desc>
|
---|
9784 | Current state of the device.
|
---|
9785 | </desc>
|
---|
9786 | </attribute>
|
---|
9787 |
|
---|
9788 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
9789 |
|
---|
9790 | </interface>
|
---|
9791 |
|
---|
9792 |
|
---|
9793 | <!--
|
---|
9794 | // IHostUSBDeviceFilter
|
---|
9795 | /////////////////////////////////////////////////////////////////////////
|
---|
9796 | -->
|
---|
9797 |
|
---|
9798 | <enum
|
---|
9799 | name="USBDeviceFilterAction"
|
---|
9800 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
9801 | >
|
---|
9802 | <desc>
|
---|
9803 | Actions for host USB device filters.
|
---|
9804 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
9805 | </desc>
|
---|
9806 |
|
---|
9807 | <const name="Null" value="0">
|
---|
9808 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
9809 | </const>
|
---|
9810 | <const name="Ignore" value="1">
|
---|
9811 | <desc>Ignore the matched USB device.</desc>
|
---|
9812 | </const>
|
---|
9813 | <const name="Hold" value="2">
|
---|
9814 | <desc>Hold the matched USB device.</desc>
|
---|
9815 | </const>
|
---|
9816 | </enum>
|
---|
9817 |
|
---|
9818 | <enumerator
|
---|
9819 | name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
|
---|
9820 | uuid="ff735211-903e-4642-9c37-189eb44579fe"
|
---|
9821 | />
|
---|
9822 |
|
---|
9823 | <collection
|
---|
9824 | name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
|
---|
9825 | enumerator="IHostUSBDeviceFilterEnumerator"
|
---|
9826 | uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
|
---|
9827 | readonly="yes"
|
---|
9828 | />
|
---|
9829 |
|
---|
9830 | <interface
|
---|
9831 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
9832 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
9833 | wsmap="managed"
|
---|
9834 | >
|
---|
9835 | <desc>
|
---|
9836 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
9837 | physical USB device used by the host computer. Used indirectly in
|
---|
9838 | <link to="IHost::USBDeviceFilters"/>.
|
---|
9839 |
|
---|
9840 | Using filters of this type, the host computer determines the initial
|
---|
9841 | state of the USB device after it is physically attached to the
|
---|
9842 | host's USB controller.
|
---|
9843 |
|
---|
9844 | <note>
|
---|
9845 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
9846 | filters, because it makes sense only for
|
---|
9847 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
9848 | </note>
|
---|
9849 |
|
---|
9850 | <see>IHost::USBDeviceFilters</see>
|
---|
9851 | </desc>
|
---|
9852 |
|
---|
9853 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
9854 | <desc>
|
---|
9855 | Action performed by the host when an attached USB device
|
---|
9856 | matches this filter.
|
---|
9857 | </desc>
|
---|
9858 | </attribute>
|
---|
9859 |
|
---|
9860 | </interface>
|
---|
9861 |
|
---|
9862 | <!--
|
---|
9863 | // IAudioAdapter
|
---|
9864 | /////////////////////////////////////////////////////////////////////////
|
---|
9865 | -->
|
---|
9866 |
|
---|
9867 | <enum
|
---|
9868 | name="AudioDriverType"
|
---|
9869 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
9870 | >
|
---|
9871 | <desc>
|
---|
9872 | Host audio driver type.
|
---|
9873 | </desc>
|
---|
9874 |
|
---|
9875 | <const name="Null" value="0">
|
---|
9876 | <desc><tt>null</tt> value. Also means "dummy audio driver".</desc>
|
---|
9877 | </const>
|
---|
9878 | <const name="WinMM" value="1"/>
|
---|
9879 | <const name="OSS" value="2"/>
|
---|
9880 | <const name="ALSA" value="3"/>
|
---|
9881 | <const name="DirectSound" value="4"/>
|
---|
9882 | <const name="CoreAudio" value="5"/>
|
---|
9883 | <const name="MMPM" value="6"/>
|
---|
9884 | <const name="Pulse" value="7"/>
|
---|
9885 | <const name="SolAudio" value="8"/>
|
---|
9886 | </enum>
|
---|
9887 |
|
---|
9888 | <enum
|
---|
9889 | name="AudioControllerType"
|
---|
9890 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
9891 | >
|
---|
9892 | <desc>
|
---|
9893 | Virtual audio controller type.
|
---|
9894 | </desc>
|
---|
9895 |
|
---|
9896 | <const name="AC97" value="0"/>
|
---|
9897 | <const name="SB16" value="1"/>
|
---|
9898 | </enum>
|
---|
9899 |
|
---|
9900 | <interface
|
---|
9901 | name="IAudioAdapter" extends="$unknown"
|
---|
9902 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
9903 | wsmap="managed"
|
---|
9904 | >
|
---|
9905 | <desc>
|
---|
9906 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
9907 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
9908 | </desc>
|
---|
9909 | <attribute name="enabled" type="boolean">
|
---|
9910 | <desc>
|
---|
9911 | Flag whether the audio adapter is present in the
|
---|
9912 | guest system. If disabled, the virtual guest hardware will
|
---|
9913 | not contain any audio adapter. Can only be changed when
|
---|
9914 | the VM is not running.
|
---|
9915 | </desc>
|
---|
9916 | </attribute>
|
---|
9917 | <attribute name="audioController" type="AudioControllerType">
|
---|
9918 | <desc>
|
---|
9919 | The audio hardware we emulate.
|
---|
9920 | </desc>
|
---|
9921 | </attribute>
|
---|
9922 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
9923 | <desc>
|
---|
9924 | Audio driver the adapter is connected to. This setting
|
---|
9925 | can only be changed when the VM is not running.
|
---|
9926 | </desc>
|
---|
9927 | </attribute>
|
---|
9928 | </interface>
|
---|
9929 |
|
---|
9930 | <!--
|
---|
9931 | // IVRDPServer
|
---|
9932 | /////////////////////////////////////////////////////////////////////////
|
---|
9933 | -->
|
---|
9934 |
|
---|
9935 | <enum
|
---|
9936 | name="VRDPAuthType"
|
---|
9937 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
9938 | >
|
---|
9939 | <desc>
|
---|
9940 | VRDP authentication type.
|
---|
9941 | </desc>
|
---|
9942 |
|
---|
9943 | <const name="Null" value="0">
|
---|
9944 | <desc><tt>null</tt> value. Also means "no authentication".</desc>
|
---|
9945 | </const>
|
---|
9946 | <const name="External" value="1"/>
|
---|
9947 | <const name="Guest" value="2"/>
|
---|
9948 | </enum>
|
---|
9949 |
|
---|
9950 | <interface
|
---|
9951 | name="IVRDPServer" extends="$unknown"
|
---|
9952 | uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
|
---|
9953 | wsmap="managed"
|
---|
9954 | >
|
---|
9955 | <attribute name="enabled" type="boolean">
|
---|
9956 | <desc>VRDP server status.</desc>
|
---|
9957 | </attribute>
|
---|
9958 |
|
---|
9959 | <attribute name="port" type="unsigned long">
|
---|
9960 | <desc>
|
---|
9961 | VRDP server port number.
|
---|
9962 | <note>
|
---|
9963 | Setting the value of this property to <tt>0</tt> will reset the port
|
---|
9964 | number to the default value which is
|
---|
9965 | currently <tt>3389</tt>. Reading this property will always return a
|
---|
9966 | real port number, even after it has been set to <tt>0</tt> (in which
|
---|
9967 | case the default port is returned).
|
---|
9968 | </note>
|
---|
9969 | </desc>
|
---|
9970 | </attribute>
|
---|
9971 |
|
---|
9972 | <attribute name="netAddress" type="wstring">
|
---|
9973 | <desc>VRDP server address.</desc>
|
---|
9974 | </attribute>
|
---|
9975 |
|
---|
9976 | <attribute name="authType" type="VRDPAuthType">
|
---|
9977 | <desc>VRDP authentication method.</desc>
|
---|
9978 | </attribute>
|
---|
9979 |
|
---|
9980 | <attribute name="authTimeout" type="unsigned long">
|
---|
9981 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
9982 | </attribute>
|
---|
9983 |
|
---|
9984 | <attribute name="allowMultiConnection" type="boolean">
|
---|
9985 | <desc>
|
---|
9986 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
9987 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
9988 | </desc>
|
---|
9989 | </attribute>
|
---|
9990 |
|
---|
9991 | <attribute name="reuseSingleConnection" type="boolean">
|
---|
9992 | <desc>
|
---|
9993 | Flag whether the existing connection must be dropped and a new connection
|
---|
9994 | must be established by the VRDP server, when a new client connects in single
|
---|
9995 | connection mode.
|
---|
9996 | </desc>
|
---|
9997 | </attribute>
|
---|
9998 |
|
---|
9999 | </interface>
|
---|
10000 |
|
---|
10001 |
|
---|
10002 | <!--
|
---|
10003 | // ISharedFolder
|
---|
10004 | /////////////////////////////////////////////////////////////////////////
|
---|
10005 | -->
|
---|
10006 |
|
---|
10007 | <enumerator
|
---|
10008 | name="ISharedFolderEnumerator" type="ISharedFolder"
|
---|
10009 | uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
|
---|
10010 | />
|
---|
10011 |
|
---|
10012 | <collection
|
---|
10013 | name="ISharedFolderCollection" type="ISharedFolder"
|
---|
10014 | enumerator="ISharedFolderEnumerator"
|
---|
10015 | uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
|
---|
10016 | readonly="yes">
|
---|
10017 |
|
---|
10018 | <method name="findByName">
|
---|
10019 | <desc>
|
---|
10020 | Searches this collection for a shared folder with the given logical
|
---|
10021 | name.
|
---|
10022 | <note>
|
---|
10023 | The method returns an error if the given name does not correspond to
|
---|
10024 | any shared folder in the collection.
|
---|
10025 | </note>
|
---|
10026 | </desc>
|
---|
10027 | <param name="name" type="wstring" dir="in">
|
---|
10028 | <desc>Logical name of the shared folder to search for</desc>
|
---|
10029 | </param>
|
---|
10030 | <param name="sharedFolder" type="ISharedFolder" dir="return">
|
---|
10031 | <desc>Found shared folder object</desc>
|
---|
10032 | </param>
|
---|
10033 | </method>
|
---|
10034 |
|
---|
10035 | </collection>
|
---|
10036 |
|
---|
10037 | <interface
|
---|
10038 | name="ISharedFolder" extends="$unknown"
|
---|
10039 | uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
|
---|
10040 | wsmap="struct"
|
---|
10041 | >
|
---|
10042 | <desc>
|
---|
10043 | The ISharedFolder interface represents a folder in the host computer's
|
---|
10044 | file system accessible from the guest OS running inside a virtual
|
---|
10045 | machine using an associated logical name.
|
---|
10046 |
|
---|
10047 | There are three types of shared folders:
|
---|
10048 | <ul>
|
---|
10049 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
10050 | folders available to all virtual machines.</li>
|
---|
10051 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
10052 | VM-specific shared folders available to the given virtual machine at
|
---|
10053 | startup.</li>
|
---|
10054 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
10055 | VM-specific shared folders created in the session context (for
|
---|
10056 | example, when the virtual machine is running) and automatically
|
---|
10057 | discarded when the session is closed (the VM is powered off).</li>
|
---|
10058 | </ul>
|
---|
10059 |
|
---|
10060 | Logical names of shared folders must be unique within the given scope
|
---|
10061 | (global, permanent or transient). However, they do not need to be unique
|
---|
10062 | across scopes. In this case, the definition of the shared folder in a
|
---|
10063 | more specific scope takes precedence over definitions in all other
|
---|
10064 | scopes. The order of precedence is (more specific to more general):
|
---|
10065 | <ol>
|
---|
10066 | <li>Transient definitions</li>
|
---|
10067 | <li>Permanent definitions</li>
|
---|
10068 | <li>Global definitions</li>
|
---|
10069 | </ol>
|
---|
10070 |
|
---|
10071 | For example, if MyMachine has a shared folder named
|
---|
10072 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
|
---|
10073 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
10074 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
10075 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
10076 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
10077 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
10078 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
10079 | the previous (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
10080 | to <tt>C:\\</tt> if it still exists.
|
---|
10081 |
|
---|
10082 | Note that permanent and transient shared folders of different machines
|
---|
10083 | are in different name spaces, so they don't overlap and don't need to
|
---|
10084 | have unique logical names.
|
---|
10085 |
|
---|
10086 | <note>
|
---|
10087 | Global shared folders are not implemented in the current version of the
|
---|
10088 | product.
|
---|
10089 | </note>
|
---|
10090 | </desc>
|
---|
10091 |
|
---|
10092 | <attribute name="name" type="wstring" readonly="yes">
|
---|
10093 | <desc>Logical name of the shared folder.</desc>
|
---|
10094 | </attribute>
|
---|
10095 |
|
---|
10096 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
10097 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
10098 | </attribute>
|
---|
10099 |
|
---|
10100 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
10101 | <desc>
|
---|
10102 | Whether the folder defined by the host path is currently
|
---|
10103 | accessible or not.
|
---|
10104 | For example, the folder can be unaccessible if it is placed
|
---|
10105 | on the network share that is not available by the time
|
---|
10106 | this property is read.
|
---|
10107 | </desc>
|
---|
10108 | </attribute>
|
---|
10109 |
|
---|
10110 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
10111 | <desc>
|
---|
10112 | Whether the folder defined by the host path is writable or
|
---|
10113 | not.
|
---|
10114 | </desc>
|
---|
10115 | </attribute>
|
---|
10116 |
|
---|
10117 | </interface>
|
---|
10118 |
|
---|
10119 | <!--
|
---|
10120 | // ISession
|
---|
10121 | /////////////////////////////////////////////////////////////////////////
|
---|
10122 | -->
|
---|
10123 |
|
---|
10124 | <interface
|
---|
10125 | name="IInternalSessionControl" extends="$unknown"
|
---|
10126 | uuid="2581845a-5a9d-45fb-bc3b-2476552dd970"
|
---|
10127 | internal="yes"
|
---|
10128 | wsmap="suppress"
|
---|
10129 | >
|
---|
10130 | <method name="getPID">
|
---|
10131 | <desc>PID of the process that has created this Session object.
|
---|
10132 | </desc>
|
---|
10133 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
10134 | </method>
|
---|
10135 |
|
---|
10136 | <method name="getRemoteConsole">
|
---|
10137 | <desc>Returns the console object suitable for remote control.</desc>
|
---|
10138 | <param name="console" type="IConsole" dir="return"/>
|
---|
10139 | </method>
|
---|
10140 |
|
---|
10141 | <method name="assignMachine">
|
---|
10142 | <desc>
|
---|
10143 | Assigns the machine object associated with this direct-type
|
---|
10144 | session or informs the session that it will be a remote one
|
---|
10145 | (if machine = NULL).
|
---|
10146 | </desc>
|
---|
10147 | <param name="machine" type="IMachine" dir="in"/>
|
---|
10148 | </method>
|
---|
10149 |
|
---|
10150 | <method name="assignRemoteMachine">
|
---|
10151 | <desc>
|
---|
10152 | Assigns the machine and the (remote) console object associated with
|
---|
10153 | this remote-type session.
|
---|
10154 | </desc>
|
---|
10155 | <param name="machine" type="IMachine" dir="in"/>
|
---|
10156 | <param name="console" type="IConsole" dir="in"/>
|
---|
10157 | </method>
|
---|
10158 |
|
---|
10159 | <method name="updateMachineState">
|
---|
10160 | <desc>
|
---|
10161 | Updates the machine state in the VM process.
|
---|
10162 | Must be called only in certain cases
|
---|
10163 | (see the method implementation).
|
---|
10164 | </desc>
|
---|
10165 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
10166 | </method>
|
---|
10167 |
|
---|
10168 | <method name="uninitialize">
|
---|
10169 | <desc>
|
---|
10170 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
10171 | the corresponding remote session when the direct session dies
|
---|
10172 | or gets closed.
|
---|
10173 | </desc>
|
---|
10174 | </method>
|
---|
10175 |
|
---|
10176 | <method name="onDVDDriveChange">
|
---|
10177 | <desc>
|
---|
10178 | Triggered when settings of the DVD drive object of the
|
---|
10179 | associated virtual machine have changed.
|
---|
10180 | </desc>
|
---|
10181 | </method>
|
---|
10182 |
|
---|
10183 | <method name="onFloppyDriveChange">
|
---|
10184 | <desc>
|
---|
10185 | Triggered when settings of the floppy drive object of the
|
---|
10186 | associated virtual machine have changed.
|
---|
10187 | </desc>
|
---|
10188 | </method>
|
---|
10189 |
|
---|
10190 | <method name="onNetworkAdapterChange">
|
---|
10191 | <desc>
|
---|
10192 | Triggered when settings of a network adapter of the
|
---|
10193 | associated virtual machine have changed.
|
---|
10194 | </desc>
|
---|
10195 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
10196 | </method>
|
---|
10197 |
|
---|
10198 | <method name="onSerialPortChange">
|
---|
10199 | <desc>
|
---|
10200 | Triggered when settings of a serial port of the
|
---|
10201 | associated virtual machine have changed.
|
---|
10202 | </desc>
|
---|
10203 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
10204 | </method>
|
---|
10205 |
|
---|
10206 | <method name="onParallelPortChange">
|
---|
10207 | <desc>
|
---|
10208 | Triggered when settings of a parallel port of the
|
---|
10209 | associated virtual machine have changed.
|
---|
10210 | </desc>
|
---|
10211 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
10212 | </method>
|
---|
10213 |
|
---|
10214 | <method name="onVRDPServerChange">
|
---|
10215 | <desc>
|
---|
10216 | Triggered when settings of the VRDP server object of the
|
---|
10217 | associated virtual machine have changed.
|
---|
10218 | </desc>
|
---|
10219 | </method>
|
---|
10220 |
|
---|
10221 | <method name="onUSBControllerChange">
|
---|
10222 | <desc>
|
---|
10223 | Triggered when settings of the USB controller object of the
|
---|
10224 | associated virtual machine have changed.
|
---|
10225 | </desc>
|
---|
10226 | </method>
|
---|
10227 |
|
---|
10228 | <method name="onSharedFolderChange">
|
---|
10229 | <desc>
|
---|
10230 | Triggered when a permanent (global or machine) shared folder has been
|
---|
10231 | created or removed.
|
---|
10232 | <note>
|
---|
10233 | We don't pass shared folder parameters in this notification because
|
---|
10234 | the order in which parallel notifications are delivered is not defined,
|
---|
10235 | therefore it could happen that these parameters were outdated by the
|
---|
10236 | time of processing this notification.
|
---|
10237 | </note>
|
---|
10238 | </desc>
|
---|
10239 | <param name="global" type="boolean" dir="in"/>
|
---|
10240 | </method>
|
---|
10241 |
|
---|
10242 | <method name="onUSBDeviceAttach">
|
---|
10243 | <desc>
|
---|
10244 | Triggered when a request to capture a USB device (as a result
|
---|
10245 | of matched USB filters or direct call to
|
---|
10246 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
10247 | A @c null @a error object means success, otherwise it
|
---|
10248 | describes a failure.
|
---|
10249 | </desc>
|
---|
10250 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
10251 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
10252 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
10253 | </method>
|
---|
10254 |
|
---|
10255 | <method name="onUSBDeviceDetach">
|
---|
10256 | <desc>
|
---|
10257 | Triggered when a request to release the USB device (as a result
|
---|
10258 | of machine termination or direct call to
|
---|
10259 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
10260 | A @c null @a error object means success, otherwise it
|
---|
10261 | </desc>
|
---|
10262 | <param name="id" type="uuid" dir="in"/>
|
---|
10263 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
10264 | </method>
|
---|
10265 |
|
---|
10266 | <method name="onShowWindow">
|
---|
10267 | <desc>
|
---|
10268 | Called by <link to="IMachine::canShowConsoleWindow()"/> and by
|
---|
10269 | <link to="IMachine::showConsoleWindow()"/> in order to notify
|
---|
10270 | console callbacks
|
---|
10271 | <link to="IConsoleCallback::onCanShowWindow()"/>
|
---|
10272 | and <link to="IConsoleCallback::onShowWindow()"/>.
|
---|
10273 | </desc>
|
---|
10274 | <param name="check" type="boolean" dir="in"/>
|
---|
10275 | <param name="canShow" type="boolean" dir="out"/>
|
---|
10276 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
10277 | </method>
|
---|
10278 |
|
---|
10279 | <method name="accessGuestProperty">
|
---|
10280 | <desc>
|
---|
10281 | Called by <link to="IMachine::getGuestProperty()"/> and by
|
---|
10282 | <link to="IMachine::setGuestProperty()"/> in order to read and
|
---|
10283 | modify guest properties.
|
---|
10284 | </desc>
|
---|
10285 | <param name="name" type="wstring" dir="in"/>
|
---|
10286 | <param name="value" type="wstring" dir="in"/>
|
---|
10287 | <param name="flags" type="wstring" dir="in"/>
|
---|
10288 | <param name="isSetter" type="boolean" dir="in"/>
|
---|
10289 | <param name="retValue" type="wstring" dir="out"/>
|
---|
10290 | <param name="retTimestamp" type="unsigned long long" dir="out"/>
|
---|
10291 | <param name="retFlags" type="wstring" dir="out"/>
|
---|
10292 | </method>
|
---|
10293 |
|
---|
10294 | <method name="enumerateGuestProperties">
|
---|
10295 | <desc>
|
---|
10296 | Return a list of the guest properties matching a set of patterns along
|
---|
10297 | with their values, time stamps and flags.
|
---|
10298 | </desc>
|
---|
10299 | <param name="patterns" type="wstring" dir="in">
|
---|
10300 | <desc>
|
---|
10301 | The patterns to match the properties against as a comma-separated
|
---|
10302 | string. If this is empty, all properties currently set will be
|
---|
10303 | returned.
|
---|
10304 | </desc>
|
---|
10305 | </param>
|
---|
10306 | <param name="key" type="wstring" dir="out" safearray="yes">
|
---|
10307 | <desc>
|
---|
10308 | The key names of the properties returned.
|
---|
10309 | </desc>
|
---|
10310 | </param>
|
---|
10311 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
10312 | <desc>
|
---|
10313 | The values of the properties returned. The array entries match the
|
---|
10314 | corresponding entries in the @a key array.
|
---|
10315 | </desc>
|
---|
10316 | </param>
|
---|
10317 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
10318 | <desc>
|
---|
10319 | The time stamps of the properties returned. The array entries match
|
---|
10320 | the corresponding entries in the @a key array.
|
---|
10321 | </desc>
|
---|
10322 | </param>
|
---|
10323 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
10324 | <desc>
|
---|
10325 | The flags of the properties returned. The array entries match the
|
---|
10326 | corresponding entries in the @a key array.
|
---|
10327 | </desc>
|
---|
10328 | </param>
|
---|
10329 | </method>
|
---|
10330 |
|
---|
10331 | </interface>
|
---|
10332 |
|
---|
10333 | <interface
|
---|
10334 | name="ISession" extends="$dispatched"
|
---|
10335 | uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
|
---|
10336 | wsmap="managed"
|
---|
10337 | >
|
---|
10338 | <desc>
|
---|
10339 | The ISession interface represents a serialization primitive for virtual
|
---|
10340 | machines.
|
---|
10341 |
|
---|
10342 | With VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
10343 | (e.g. change its settings or start execution), a session object is
|
---|
10344 | required. Such an object must be passed to one of the session methods
|
---|
10345 | that open the given session, which then initiates the machine manipulation.
|
---|
10346 |
|
---|
10347 | A session serves several purposes: it identifies to the inter-process VirtualBox
|
---|
10348 | code which process is currently working with the virtual machine, and it ensures
|
---|
10349 | that there are no incompatible requests from several processes for the
|
---|
10350 | same virtual machine. Session objects can therefore be thought of as mutex
|
---|
10351 | semaphores that lock virtual machines to prevent conflicting accesses from
|
---|
10352 | several processes.
|
---|
10353 |
|
---|
10354 | How sessions objects are used depends on whether you use the Main API
|
---|
10355 | via COM or via the webservice:
|
---|
10356 |
|
---|
10357 | <ul>
|
---|
10358 | <li>When using the COM API directly, an object of the Session class from the
|
---|
10359 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
10360 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
10361 | This object will then act as a local session object in further calls to open
|
---|
10362 | a session.
|
---|
10363 | </li>
|
---|
10364 |
|
---|
10365 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
10366 | one session object automatically when <link to="IWebsessionManager::logon" />
|
---|
10367 | is called. A managed object reference to that session object can be retrieved by
|
---|
10368 | calling <link to="IWebsessionManager::getSessionObject" />. This session object
|
---|
10369 | reference can then be used to open sessions.
|
---|
10370 | </li>
|
---|
10371 | </ul>
|
---|
10372 |
|
---|
10373 | Sessions are mainly used in two variations:
|
---|
10374 |
|
---|
10375 | <ul>
|
---|
10376 | <li>
|
---|
10377 | To start a virtual machine in a separate process, one would call
|
---|
10378 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
10379 | object as its first parameter. This session then identifies the caller
|
---|
10380 | and lets him control the started machine (for example, pause machine
|
---|
10381 | execution or power it down) as well as be notified about machine
|
---|
10382 | execution state changes.
|
---|
10383 | </li>
|
---|
10384 |
|
---|
10385 | <li>To alter machine settings, or to start machine execution within the
|
---|
10386 | current process, one needs to open a direct session for the machine first by
|
---|
10387 | calling <link to="IVirtualBox::openSession"/>. While a direct session
|
---|
10388 | is open within one process, no any other process may open another direct
|
---|
10389 | session for the same machine. This prevents the machine from being changed
|
---|
10390 | by other processes while it is running or while the machine is being configured.
|
---|
10391 | </li>
|
---|
10392 | </ul>
|
---|
10393 |
|
---|
10394 | One also can attach to an existing direct session already opened by
|
---|
10395 | another process (for example, in order to send a control request to the
|
---|
10396 | virtual machine such as the pause or the reset request). This is done by
|
---|
10397 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
10398 |
|
---|
10399 | <note>
|
---|
10400 | Unless you are trying to write a new VirtualBox front-end that
|
---|
10401 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
10402 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
10403 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
10404 | session only to change virtual machine settings. If you simply want to
|
---|
10405 | start virtual machine execution using one of the existing front-ends
|
---|
10406 | (for example the VirtualBox GUI or headless server), simply use
|
---|
10407 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends
|
---|
10408 | will power up the machine automatically for you.
|
---|
10409 | </note>
|
---|
10410 | </desc>
|
---|
10411 |
|
---|
10412 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
10413 | <desc>Current state of this session.</desc>
|
---|
10414 | </attribute>
|
---|
10415 |
|
---|
10416 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
10417 | <desc>
|
---|
10418 | Type of this session. The value of this attribute is valid only
|
---|
10419 | if the session is currently open (i.e. its #state is SessionType::SessionOpen),
|
---|
10420 | otherwise an error will be returned.
|
---|
10421 | </desc>
|
---|
10422 | </attribute>
|
---|
10423 |
|
---|
10424 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
10425 | <desc>Machine object associated with this session.</desc>
|
---|
10426 | </attribute>
|
---|
10427 |
|
---|
10428 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
10429 | <desc>Console object associated with this session.</desc>
|
---|
10430 | </attribute>
|
---|
10431 |
|
---|
10432 | <method name="close">
|
---|
10433 | <desc>
|
---|
10434 | Closes a session that was previously opened.
|
---|
10435 |
|
---|
10436 | It is recommended that every time an "open session" method (such as
|
---|
10437 | <link to="IVirtualBox::openRemoteSession" /> or
|
---|
10438 | <link to="IVirtualBox::openSession" />) has been called to
|
---|
10439 | manipulate a virtual machine, the caller invoke
|
---|
10440 | ISession::close() when it's done doing so. Since sessions are
|
---|
10441 | serialization primitives much like ordinary mutexes, they are
|
---|
10442 | best used the same way: for each "open" call, there should be
|
---|
10443 | a matching "close" call, even when errors occur.
|
---|
10444 |
|
---|
10445 | Otherwise, if a direct session for a machine opened with
|
---|
10446 | <link to="IVirtualBox::openSession()"/> is not explicitly closed
|
---|
10447 | when the application terminates, the state of the machine will
|
---|
10448 | be set to <link to="MachineState::Aborted" /> on the server.
|
---|
10449 |
|
---|
10450 | Generally, it is recommended to close all open sessions explicitly
|
---|
10451 | before terminating the application (no matter what is the reason of
|
---|
10452 | the termination).
|
---|
10453 |
|
---|
10454 | <note>
|
---|
10455 | Do not expect the session state (<link to="ISession::state" />
|
---|
10456 | to return to "Closed" immediately after you invoke
|
---|
10457 | ISession::close(), particularly if you have started a remote
|
---|
10458 | session to execute the VM in a new process. The session state will
|
---|
10459 | automatically return to "Closed" once the VM is no longer executing,
|
---|
10460 | which can of course take a very long time.
|
---|
10461 | </note>
|
---|
10462 | </desc>
|
---|
10463 | </method>
|
---|
10464 |
|
---|
10465 | </interface>
|
---|
10466 |
|
---|
10467 | <!--
|
---|
10468 | // ISATAController
|
---|
10469 | /////////////////////////////////////////////////////////////////////////
|
---|
10470 | -->
|
---|
10471 |
|
---|
10472 | <interface
|
---|
10473 | name="ISATAController" extends="$unknown"
|
---|
10474 | uuid="9a4b868b-1376-4533-8ef5-065b8e8cedff"
|
---|
10475 | wsmap="managed"
|
---|
10476 | >
|
---|
10477 | <attribute name="enabled" type="boolean">
|
---|
10478 | <desc>
|
---|
10479 | Flag whether the SATA controller is present in the
|
---|
10480 | guest system. If disabled, the virtual guest hardware will
|
---|
10481 | not contain any SATA controller. Can only be changed when
|
---|
10482 | the VM is powered off.
|
---|
10483 | </desc>
|
---|
10484 | </attribute>
|
---|
10485 |
|
---|
10486 | <attribute name="portCount" type="unsigned long">
|
---|
10487 | <desc>
|
---|
10488 | The number of usable ports on the SATA controller.
|
---|
10489 | It ranges from 1 to 30.
|
---|
10490 | </desc>
|
---|
10491 | </attribute>
|
---|
10492 |
|
---|
10493 | <method name="GetIDEEmulationPort">
|
---|
10494 | <desc>Gets the corresponding port number which is emulated as an IDE device.</desc>
|
---|
10495 | <param name="devicePosition" type="long" dir="in"/>
|
---|
10496 | <param name="portNumber" type="long" dir="return"/>
|
---|
10497 | </method>
|
---|
10498 |
|
---|
10499 | <method name="SetIDEEmulationPort">
|
---|
10500 | <desc>Sets the port number which is emulated as an IDE device.</desc>
|
---|
10501 | <param name="devicePosition" type="long" dir="in"/>
|
---|
10502 | <param name="portNumber" type="long" dir="in"/>
|
---|
10503 | </method>
|
---|
10504 |
|
---|
10505 | </interface>
|
---|
10506 |
|
---|
10507 | <if target="wsdl">
|
---|
10508 |
|
---|
10509 | <!--
|
---|
10510 | // IManagedObjectRef
|
---|
10511 | /////////////////////////////////////////////////////////////////////////
|
---|
10512 | -->
|
---|
10513 |
|
---|
10514 | <interface
|
---|
10515 | name="IManagedObjectRef" extends="$unknown"
|
---|
10516 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
10517 | internal="yes"
|
---|
10518 | wsmap="managed"
|
---|
10519 | wscpp="hardcoded"
|
---|
10520 | >
|
---|
10521 | <desc>
|
---|
10522 | Managed object reference.
|
---|
10523 |
|
---|
10524 | Only within the webservice, a managed object reference (which is really
|
---|
10525 | an opaque number) allows a webservice client to address an object
|
---|
10526 | that lives in the address space of the webservice server.
|
---|
10527 |
|
---|
10528 | Behind each managed object reference, there is a COM object that lives
|
---|
10529 | in the webservice server's address space. The COM object is not freed
|
---|
10530 | until the managed object reference is released, either by an explicit
|
---|
10531 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
10532 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
10533 | all objects created during the webservice session.
|
---|
10534 |
|
---|
10535 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
10536 | webservice representation of that method will instead return a
|
---|
10537 | managed object reference, which can then be used to invoke methods
|
---|
10538 | on that object.
|
---|
10539 | </desc>
|
---|
10540 |
|
---|
10541 | <method name="getInterfaceName">
|
---|
10542 | <desc>
|
---|
10543 | Returns the name of the interface that this managed object represents,
|
---|
10544 | for example, "IMachine", as a string.
|
---|
10545 | </desc>
|
---|
10546 | <param name="return" type="wstring" dir="return"/>
|
---|
10547 | </method>
|
---|
10548 |
|
---|
10549 | <method name="release">
|
---|
10550 | <desc>
|
---|
10551 | Releases this managed object reference and frees the resources that
|
---|
10552 | were allocated for it in the webservice server process. After calling
|
---|
10553 | this method, the identifier of the reference can no longer be used.
|
---|
10554 | </desc>
|
---|
10555 | </method>
|
---|
10556 |
|
---|
10557 | </interface>
|
---|
10558 |
|
---|
10559 | <!--
|
---|
10560 | // IWebsessionManager
|
---|
10561 | /////////////////////////////////////////////////////////////////////////
|
---|
10562 | -->
|
---|
10563 |
|
---|
10564 | <interface
|
---|
10565 | name="IWebsessionManager" extends="$unknown"
|
---|
10566 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
10567 | internal="yes"
|
---|
10568 | wsmap="global"
|
---|
10569 | wscpp="hardcoded"
|
---|
10570 | >
|
---|
10571 | <desc>
|
---|
10572 | Websession manager. This provides essential services
|
---|
10573 | to webservice clients.
|
---|
10574 | </desc>
|
---|
10575 | <method name="logon">
|
---|
10576 | <desc>
|
---|
10577 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
10578 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
10579 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
10580 | interface, in one way or the other.
|
---|
10581 | </desc>
|
---|
10582 | <param name="username" type="wstring" dir="in"/>
|
---|
10583 | <param name="password" type="wstring" dir="in"/>
|
---|
10584 | <param name="return" type="IVirtualBox" dir="return"/>
|
---|
10585 | </method>
|
---|
10586 |
|
---|
10587 | <method name="getSessionObject">
|
---|
10588 | <desc>
|
---|
10589 | Returns a managed object reference to the internal ISession object that was created
|
---|
10590 | for this web service session when the client logged on.
|
---|
10591 |
|
---|
10592 | <see>ISession</see>
|
---|
10593 | </desc>
|
---|
10594 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
10595 | <param name="return" type="ISession" dir="return"/>
|
---|
10596 | </method>
|
---|
10597 |
|
---|
10598 | <method name="logoff">
|
---|
10599 | <desc>
|
---|
10600 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
10601 | and destroys all resources associated with the session (most importantly, all
|
---|
10602 | managed objects created in the server while the session was active).
|
---|
10603 | </desc>
|
---|
10604 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
10605 | </method>
|
---|
10606 |
|
---|
10607 | </interface>
|
---|
10608 |
|
---|
10609 | </if>
|
---|
10610 |
|
---|
10611 | <!--
|
---|
10612 | // IPerformanceCollector & friends
|
---|
10613 | /////////////////////////////////////////////////////////////////////////
|
---|
10614 | -->
|
---|
10615 |
|
---|
10616 | <interface
|
---|
10617 | name="IPerformanceMetric" extends="$unknown"
|
---|
10618 | uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
|
---|
10619 | >
|
---|
10620 | <desc>
|
---|
10621 | The IPerformanceMetric interface represents parameters of the given
|
---|
10622 | performance metric.
|
---|
10623 | </desc>
|
---|
10624 |
|
---|
10625 | <attribute name="metricName" type="wstring" readonly="yes">
|
---|
10626 | <desc>
|
---|
10627 | Name of the metric.
|
---|
10628 | </desc>
|
---|
10629 | </attribute>
|
---|
10630 |
|
---|
10631 | <attribute name="object" type="$unknown" readonly="yes">
|
---|
10632 | <desc>
|
---|
10633 | Object this metric belongs to.
|
---|
10634 | </desc>
|
---|
10635 | </attribute>
|
---|
10636 |
|
---|
10637 | <attribute name="description" type="wstring" readonly="yes">
|
---|
10638 | <desc>
|
---|
10639 | Textual description of the metric.
|
---|
10640 | </desc>
|
---|
10641 | </attribute>
|
---|
10642 |
|
---|
10643 | <attribute name="period" type="unsigned long" readonly="yes">
|
---|
10644 | <desc>
|
---|
10645 | Time interval between samples, measured in seconds.
|
---|
10646 | </desc>
|
---|
10647 | </attribute>
|
---|
10648 |
|
---|
10649 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
10650 | <desc>
|
---|
10651 | Number of recent samples retained by the performance collector for this
|
---|
10652 | metric.
|
---|
10653 |
|
---|
10654 | When the collected sample count exceeds this number, older samples
|
---|
10655 | are discarded.
|
---|
10656 | </desc>
|
---|
10657 | </attribute>
|
---|
10658 |
|
---|
10659 | <attribute name="unit" type="wstring" readonly="yes">
|
---|
10660 | <desc>
|
---|
10661 | Unit of measurement.
|
---|
10662 | </desc>
|
---|
10663 | </attribute>
|
---|
10664 |
|
---|
10665 | <attribute name="minimumValue" type="long" readonly="yes">
|
---|
10666 | <desc>
|
---|
10667 | Minimum possible value of this metric.
|
---|
10668 | </desc>
|
---|
10669 | </attribute>
|
---|
10670 |
|
---|
10671 | <attribute name="maximumValue" type="long" readonly="yes">
|
---|
10672 | <desc>
|
---|
10673 | Maximum possible value of this metric.
|
---|
10674 | </desc>
|
---|
10675 | </attribute>
|
---|
10676 | </interface>
|
---|
10677 |
|
---|
10678 | <interface
|
---|
10679 | name="IPerformanceCollector" extends="$unknown"
|
---|
10680 | uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
|
---|
10681 | wsmap="managed"
|
---|
10682 | >
|
---|
10683 | <desc>
|
---|
10684 | The IPerformanceCollector interface represents a service that collects and
|
---|
10685 | stores performance metrics data.
|
---|
10686 |
|
---|
10687 | Performance metrics are associated with objects like IHost and
|
---|
10688 | IMachine. Each object has a distinct set of performance metrics.
|
---|
10689 | The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
|
---|
10690 |
|
---|
10691 | Metric data are collected at the specified intervals and are retained
|
---|
10692 | internally. The interval and the number of samples retained can be set
|
---|
10693 | with <link to="IPerformanceCollector::setupMetrics" />.
|
---|
10694 |
|
---|
10695 | Metrics are organized hierarchically, each level separated by slash (/).
|
---|
10696 | General scheme for metric name is
|
---|
10697 | "Category/Metric[/SubMetric][:aggregation]". For example CPU/Load/User:avg
|
---|
10698 | metric name stands for: CPU category, Load metric, User submetric, average
|
---|
10699 | aggregate. An aggregate function is computed over all retained data. Valid
|
---|
10700 | aggregate functions are:
|
---|
10701 |
|
---|
10702 | <ul>
|
---|
10703 | <li>avg -- average</li>
|
---|
10704 | <li>min -- minimum</li>
|
---|
10705 | <li>max -- maximum</li>
|
---|
10706 | </ul>
|
---|
10707 |
|
---|
10708 | "Category/Metric" together form base metric name. A base metric is the
|
---|
10709 | smallest unit for which a sampling interval and the number of retained
|
---|
10710 | samples can be set. Only base metrics can be enabled and disabled. All
|
---|
10711 | sub-metrics are collected when their base metric is collected.
|
---|
10712 | Collected values for any set of sub-metrics can be queried with
|
---|
10713 | <link to="IPerformanceCollector::queryMetricsData" />. When setting up
|
---|
10714 | metric parameters, querying metric data, enabling or disabling metrics
|
---|
10715 | wildcards can be used in metric names to specify a subset of metrics. For
|
---|
10716 | example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
|
---|
10717 | averages can be queried using <tt>*:avg</tt> and so on. To query metric
|
---|
10718 | values without aggregates <tt>*:</tt> can be used.
|
---|
10719 |
|
---|
10720 | The valid names for base metrics are:
|
---|
10721 |
|
---|
10722 | <ul>
|
---|
10723 | <li>CPU/Load</li>
|
---|
10724 | <li>CPU/MHz</li>
|
---|
10725 | <li>RAM/Usage</li>
|
---|
10726 | </ul>
|
---|
10727 |
|
---|
10728 | The general sequence for collecting and retrieving the metrics is:
|
---|
10729 | <ul>
|
---|
10730 | <li>
|
---|
10731 | Obtain an instance of IPerformanceCollector with
|
---|
10732 | <link to="IVirtualBox::performanceCollector" />
|
---|
10733 | </li>
|
---|
10734 | <li>
|
---|
10735 | Allocate and populate an array with references to objects the metrics
|
---|
10736 | will be collected for. Use references to IHost and IMachine objects.
|
---|
10737 | </li>
|
---|
10738 | <li>
|
---|
10739 | Allocate and populate an array with base metric names the data will be
|
---|
10740 | collected for.
|
---|
10741 | </li>
|
---|
10742 | <li>
|
---|
10743 | Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
|
---|
10744 | metric data will be collected and stored.
|
---|
10745 | </li>
|
---|
10746 | <li>
|
---|
10747 | Wait for the data to get collected.
|
---|
10748 | </li>
|
---|
10749 | <li>
|
---|
10750 | Allocate and populate an array with references to objects the metric
|
---|
10751 | values will be queried for. You can re-use the object array used for
|
---|
10752 | setting base metrics.
|
---|
10753 | </li>
|
---|
10754 | <li>
|
---|
10755 | Allocate and populate an array with metric names the data will be
|
---|
10756 | collected for. Note that metric names differ from base metric names.
|
---|
10757 | </li>
|
---|
10758 | <li>
|
---|
10759 | Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
|
---|
10760 | have been collected so far are returned. Note that the values are still
|
---|
10761 | retained internally and data collection continues.
|
---|
10762 | </li>
|
---|
10763 | </ul>
|
---|
10764 |
|
---|
10765 | For an example of usage refer to the following files in VirtualBox SDK:
|
---|
10766 | <ul>
|
---|
10767 | <li>
|
---|
10768 | Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
|
---|
10769 | </li>
|
---|
10770 | <li>
|
---|
10771 | Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
|
---|
10772 | </li>
|
---|
10773 | </ul>
|
---|
10774 | </desc>
|
---|
10775 |
|
---|
10776 | <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
|
---|
10777 | <desc>
|
---|
10778 | Array of unique names of metrics.
|
---|
10779 |
|
---|
10780 | This array represents all metrics supported by the performance
|
---|
10781 | collector. Individual objects do not necessarily support all of them.
|
---|
10782 | <link to="IPerformanceCollector::getMetrics"/> can be used to get the
|
---|
10783 | list of supported metrics for a particular object.
|
---|
10784 | </desc>
|
---|
10785 | </attribute>
|
---|
10786 |
|
---|
10787 | <method name="getMetrics">
|
---|
10788 | <desc>
|
---|
10789 | Returns parameters of specified metrics for a set of objects.
|
---|
10790 | <note>
|
---|
10791 | @c Null metrics array means all metrics. @c Null object array means
|
---|
10792 | all existing objects.
|
---|
10793 | </note>
|
---|
10794 | </desc>
|
---|
10795 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
10796 | <desc>
|
---|
10797 | Metric name filter. Currently, only a comma-separated list of metrics
|
---|
10798 | is supported.
|
---|
10799 | </desc>
|
---|
10800 | </param>
|
---|
10801 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
10802 | <desc>
|
---|
10803 | Set of objects to return metric parameters for.
|
---|
10804 | </desc>
|
---|
10805 | </param>
|
---|
10806 | <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
10807 | <desc>
|
---|
10808 | Array of returned metric parameters.
|
---|
10809 | </desc>
|
---|
10810 | </param>
|
---|
10811 | </method>
|
---|
10812 |
|
---|
10813 | <method name="setupMetrics">
|
---|
10814 | <desc>
|
---|
10815 | Sets parameters of specified base metrics for a set of objects. Returns
|
---|
10816 | an array of <link to="IPerformanceMetric" /> describing the metrics have
|
---|
10817 | been affected.
|
---|
10818 | <note>
|
---|
10819 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
10820 | object array means all existing objects. If metric name array contains
|
---|
10821 | a single element and object array contains many, the single metric
|
---|
10822 | name array element is applied to each object array element to form
|
---|
10823 | metric/object pairs.
|
---|
10824 | </note>
|
---|
10825 | </desc>
|
---|
10826 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
10827 | <desc>
|
---|
10828 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
10829 | support.
|
---|
10830 | </desc>
|
---|
10831 | </param>
|
---|
10832 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
10833 | <desc>
|
---|
10834 | Set of objects to setup metric parameters for.
|
---|
10835 | </desc>
|
---|
10836 | </param>
|
---|
10837 | <param name="period" type="unsigned long" dir="in">
|
---|
10838 | <desc>
|
---|
10839 | Time interval in seconds between two consecutive samples of performance
|
---|
10840 | data.
|
---|
10841 | </desc>
|
---|
10842 | </param>
|
---|
10843 | <param name="count" type="unsigned long" dir="in">
|
---|
10844 | <desc>
|
---|
10845 | Number of samples to retain in performance data history. Older samples
|
---|
10846 | get discarded.
|
---|
10847 | </desc>
|
---|
10848 | </param>
|
---|
10849 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
10850 | <desc>
|
---|
10851 | Array of metrics that have been modified by the call to this method.
|
---|
10852 | </desc>
|
---|
10853 | </param>
|
---|
10854 | </method>
|
---|
10855 |
|
---|
10856 | <method name="enableMetrics">
|
---|
10857 | <desc>
|
---|
10858 | Turns on collecting specified base metrics. Returns an array of
|
---|
10859 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
10860 | affected.
|
---|
10861 | <note>
|
---|
10862 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
10863 | object array means all existing objects. If metric name array contains
|
---|
10864 | a single element and object array contains many, the single metric
|
---|
10865 | name array element is applied to each object array element to form
|
---|
10866 | metric/object pairs.
|
---|
10867 | </note>
|
---|
10868 | </desc>
|
---|
10869 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
10870 | <desc>
|
---|
10871 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
10872 | support.
|
---|
10873 | </desc>
|
---|
10874 | </param>
|
---|
10875 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
10876 | <desc>
|
---|
10877 | Set of objects to enable metrics for.
|
---|
10878 | </desc>
|
---|
10879 | </param>
|
---|
10880 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
10881 | <desc>
|
---|
10882 | Array of metrics that have been modified by the call to this method.
|
---|
10883 | </desc>
|
---|
10884 | </param>
|
---|
10885 | </method>
|
---|
10886 |
|
---|
10887 | <method name="disableMetrics">
|
---|
10888 | <desc>
|
---|
10889 | Turns off collecting specified base metrics. Returns an array of
|
---|
10890 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
10891 | affected.
|
---|
10892 | <note>
|
---|
10893 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
10894 | object array means all existing objects. If metric name array contains
|
---|
10895 | a single element and object array contains many, the single metric
|
---|
10896 | name array element is applied to each object array element to form
|
---|
10897 | metric/object pairs.
|
---|
10898 | </note>
|
---|
10899 | </desc>
|
---|
10900 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
10901 | <desc>
|
---|
10902 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
10903 | support.
|
---|
10904 | </desc>
|
---|
10905 | </param>
|
---|
10906 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
10907 | <desc>
|
---|
10908 | Set of objects to disable metrics for.
|
---|
10909 | </desc>
|
---|
10910 | </param>
|
---|
10911 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
10912 | <desc>
|
---|
10913 | Array of metrics that have been modified by the call to this method.
|
---|
10914 | </desc>
|
---|
10915 | </param>
|
---|
10916 | </method>
|
---|
10917 |
|
---|
10918 | <method name="queryMetricsData">
|
---|
10919 | <desc>
|
---|
10920 | Queries collected metrics data for a set of objects.
|
---|
10921 |
|
---|
10922 | The data itself and related metric information are returned in seven
|
---|
10923 | parallel and one flattened array of arrays. Elements of
|
---|
10924 | <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
|
---|
10925 | returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
|
---|
10926 | the same index describe one set of values corresponding to a single
|
---|
10927 | metric.
|
---|
10928 |
|
---|
10929 | The <tt>returnData</tt> parameter is a flattened array of arrays. Each
|
---|
10930 | start and length of a sub-array is indicated by
|
---|
10931 | <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
|
---|
10932 | value for metric <tt>metricNames[i]</tt> is at
|
---|
10933 | <tt>returnData[returnIndices[i]]</tt>.
|
---|
10934 |
|
---|
10935 | <note>
|
---|
10936 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
10937 | object array means all existing objects. If metric name array contains
|
---|
10938 | a single element and object array contains many, the single metric
|
---|
10939 | name array element is applied to each object array element to form
|
---|
10940 | metric/object pairs.
|
---|
10941 | </note>
|
---|
10942 | <note>
|
---|
10943 | Data collection continues behind the scenes after call to @c
|
---|
10944 | queryMetricsData. The return data can be seen as the snapshot of
|
---|
10945 | the current state at the time of @c queryMetricsData call. The
|
---|
10946 | internally kept metric values are not cleared by the call. This makes
|
---|
10947 | possible querying different subsets of metrics or aggregates with
|
---|
10948 | subsequent calls. If periodic querying is needed it is highly
|
---|
10949 | suggested to query the values with @c interval*count period to avoid
|
---|
10950 | confusion. This way a completely new set of data values will be
|
---|
10951 | provided by each query.
|
---|
10952 | </note>
|
---|
10953 | </desc>
|
---|
10954 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
10955 | <desc>
|
---|
10956 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
10957 | support.
|
---|
10958 | </desc>
|
---|
10959 | </param>
|
---|
10960 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
10961 | <desc>
|
---|
10962 | Set of objects to query metrics for.
|
---|
10963 | </desc>
|
---|
10964 | </param>
|
---|
10965 | <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
|
---|
10966 | <desc>
|
---|
10967 | Names of metrics returned in @c returnData.
|
---|
10968 | </desc>
|
---|
10969 | </param>
|
---|
10970 | <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
|
---|
10971 | <desc>
|
---|
10972 | Objects associated with metrics returned in @c returnData.
|
---|
10973 | </desc>
|
---|
10974 | </param>
|
---|
10975 | <param name="returnUnits" type="wstring" dir="out" safearray="yes">
|
---|
10976 | <desc>
|
---|
10977 | Units of measurement for each returned metric.
|
---|
10978 | </desc>
|
---|
10979 | </param>
|
---|
10980 | <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
|
---|
10981 | <desc>
|
---|
10982 | Divisor that should be applied to return values in order to get
|
---|
10983 | floating point values. For example:
|
---|
10984 | <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
|
---|
10985 | will retrieve the floating point value of i-th sample of the first
|
---|
10986 | metric.
|
---|
10987 | </desc>
|
---|
10988 | </param>
|
---|
10989 | <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
|
---|
10990 | <desc>
|
---|
10991 | Sequence numbers of the first elements of value sequences of particular metrics
|
---|
10992 | returned in @c returnData. For aggregate metrics it is the sequence number of
|
---|
10993 | the sample the aggregate started calculation from.
|
---|
10994 | </desc>
|
---|
10995 | </param>
|
---|
10996 | <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
|
---|
10997 | <desc>
|
---|
10998 | Indices of the first elements of value sequences of particular metrics
|
---|
10999 | returned in @c returnData.
|
---|
11000 | </desc>
|
---|
11001 | </param>
|
---|
11002 | <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
|
---|
11003 | <desc>
|
---|
11004 | Lengths of value sequences of particular metrics.
|
---|
11005 | </desc>
|
---|
11006 | </param>
|
---|
11007 | <param name="returnData" type="long" dir="return" safearray="yes">
|
---|
11008 | <desc>
|
---|
11009 | Flattened array of all metric data containing sequences of values for
|
---|
11010 | each metric.
|
---|
11011 | </desc>
|
---|
11012 | </param>
|
---|
11013 | </method>
|
---|
11014 |
|
---|
11015 | </interface>
|
---|
11016 |
|
---|
11017 | <module name="VBoxSVC" context="LocalServer">
|
---|
11018 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
11019 | namespace="virtualbox.org">
|
---|
11020 | <interface name="IVirtualBox" default="yes"/>
|
---|
11021 | </class>
|
---|
11022 | </module>
|
---|
11023 |
|
---|
11024 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
11025 | <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
|
---|
11026 | namespace="virtualbox.org">
|
---|
11027 | <interface name="ISession" default="yes"/>
|
---|
11028 | </class>
|
---|
11029 | </module>
|
---|
11030 |
|
---|
11031 | </library>
|
---|
11032 |
|
---|
11033 | </idl>
|
---|
11034 | <!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|
---|