1 | <?xml version="1.0" ?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 | * :tabSize=2:indentSize=2:noTabs=true:
|
---|
5 | * :folding=explicit:collapseFolds=1:
|
---|
6 | *
|
---|
7 | * Master declaration for VirtualBox's Main API, represented
|
---|
8 | * by COM/XPCOM and web service interfaces.
|
---|
9 | *
|
---|
10 | * From this document, the build system generates several files
|
---|
11 | * via XSLT that are then used during the build process.
|
---|
12 | *
|
---|
13 | * Below is the list of XSL templates that operate on this file and
|
---|
14 | * output files they generate. These XSL templates must be updated
|
---|
15 | * whenever the schema of this file changes:
|
---|
16 | *
|
---|
17 | * 1. src/VBox/Main/idl/midl.xsl =>
|
---|
18 | * out/<platform>/bin/sdk/idl/VirtualBox.idl
|
---|
19 | * (MS COM interface definition file for Main API)
|
---|
20 | *
|
---|
21 | * 2. src/VBox/Main/idl/xpidl.xsl =>
|
---|
22 | * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
|
---|
23 | * (XPCOM interface definition file for Main API)
|
---|
24 | *
|
---|
25 | * 3. src/VBox/Main/idl/doxygen.xsl =>
|
---|
26 | * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
|
---|
27 | * (pseudo-IDL for Doxygen to generate the official Main API
|
---|
28 | * documentation)
|
---|
29 | *
|
---|
30 | * 4. src/VBox/Main/webservice/*.xsl =>
|
---|
31 | * a bunch of WSDL and C++ files
|
---|
32 | * (VirtualBox web service sources and SOAP mappers;
|
---|
33 | * see src/VBox/Main/webservice/Makefile.kmk for details)
|
---|
34 | *
|
---|
35 | * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
|
---|
36 | * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
|
---|
37 | * (smart Qt-based C++ wrapper classes for COM interfaces
|
---|
38 | * of the Main API)
|
---|
39 | *
|
---|
40 | * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
|
---|
41 | * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
|
---|
42 | * (Main API TypeLib block for the WiX installer)
|
---|
43 | *
|
---|
44 | Copyright (C) 2006-2007 innotek GmbH
|
---|
45 |
|
---|
46 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
47 | available from http://www.virtualbox.org. This file is free software;
|
---|
48 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
49 | General Public License (GPL) as published by the Free Software
|
---|
50 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
51 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
52 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
53 | -->
|
---|
54 |
|
---|
55 | <idl>
|
---|
56 |
|
---|
57 | <if target="midl">
|
---|
58 | <cpp line="enum {"/>
|
---|
59 | <cpp line=" kTypeLibraryMajorVersion = 1,"/>
|
---|
60 | <cpp line=" kTypeLibraryMinorVersion = 0"/>
|
---|
61 | <cpp line="};"/>
|
---|
62 | </if>
|
---|
63 |
|
---|
64 | <if target="xpidl">
|
---|
65 | <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
|
---|
66 | <cpp>
|
---|
67 | // currenty, nsISupportsImpl.h lacks the below-like macros
|
---|
68 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
69 | #define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
70 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
71 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
72 | NS_IMPL_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
73 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
74 | #endif
|
---|
75 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
76 | #define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
77 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
78 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
79 | NS_IMPL_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
80 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
81 | #endif
|
---|
82 | </cpp>
|
---|
83 | </if>
|
---|
84 |
|
---|
85 | <library
|
---|
86 | name="VirtualBox"
|
---|
87 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
88 | version="1.3"
|
---|
89 | desc="innotek VirtualBox Type Library"
|
---|
90 | appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
|
---|
91 | supportsErrorInfo="yes"
|
---|
92 | >
|
---|
93 |
|
---|
94 | <!--
|
---|
95 | // all common enums
|
---|
96 | /////////////////////////////////////////////////////////////////////////
|
---|
97 | -->
|
---|
98 |
|
---|
99 | <enum
|
---|
100 | name="TSBool"
|
---|
101 | uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
|
---|
102 | >
|
---|
103 | <desc>
|
---|
104 | Boolean variable having a third state, default.
|
---|
105 | </desc>
|
---|
106 |
|
---|
107 | <const name="False" value="0"/>
|
---|
108 | <const name="True" value="1"/>
|
---|
109 | <const name="Default" value="2"/>
|
---|
110 | </enum>
|
---|
111 |
|
---|
112 | <enum
|
---|
113 | name="MachineState"
|
---|
114 | uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
|
---|
115 | >
|
---|
116 | <desc>
|
---|
117 | Virtual machine execution state. This enumeration represents possible
|
---|
118 | values of the <link to="IMachine::state"/> attribute.
|
---|
119 | </desc>
|
---|
120 |
|
---|
121 | <const name="Null" value="0">
|
---|
122 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
123 | </const>
|
---|
124 | <const name="PoweredOff" value="1">
|
---|
125 | <desc>
|
---|
126 | The machine is not running.
|
---|
127 | </desc>
|
---|
128 | </const>
|
---|
129 | <const name="Saved" value="2">
|
---|
130 | <desc>
|
---|
131 | The machine is not currently running, but the execution state
|
---|
132 | of the machine has been saved to an external file when it
|
---|
133 | was running.
|
---|
134 | <note>
|
---|
135 | No any machine settings can be altered when the machine
|
---|
136 | is in this state.
|
---|
137 | </note>
|
---|
138 | </desc>
|
---|
139 | </const>
|
---|
140 | <const name="Aborted" value="3">
|
---|
141 | <desc>
|
---|
142 | A process that run the machine has abnormally terminated.
|
---|
143 | Other than that, this value is equivalent to #PoweredOff.
|
---|
144 | </desc>
|
---|
145 | </const>
|
---|
146 | <const name="Running" value="4">
|
---|
147 | <desc>
|
---|
148 | The machine is currently being executed.
|
---|
149 | <note>
|
---|
150 | This value can be used in comparison expressions:
|
---|
151 | all state values below it describe a virtual machine that is
|
---|
152 | not currently being executed (i.e., it is completely out of
|
---|
153 | action).
|
---|
154 | </note>
|
---|
155 | <note>
|
---|
156 | For whoever decides to touch this enum: In order to keep the
|
---|
157 | aforementioned comparisons valid, this state must immediately
|
---|
158 | preceed the Paused state.
|
---|
159 | </note>
|
---|
160 | </desc>
|
---|
161 | </const>
|
---|
162 | <const name="Paused" value="5">
|
---|
163 | <desc>
|
---|
164 | The execution of the machine has been paused.
|
---|
165 | <note>
|
---|
166 | This value can be used in comparison expressions: all state values
|
---|
167 | above it represent unstable states of the running virtual
|
---|
168 | machine. Unless explicitly stated otherwise, no machine settings can
|
---|
169 | be altered when it is in one of the unstable sates.
|
---|
170 | </note>
|
---|
171 | <note>
|
---|
172 | For whoever decides to touch this enum: In order to keep the
|
---|
173 | aforementioned comparisons valid, this state must immediately
|
---|
174 | follow the Running state.
|
---|
175 | </note>
|
---|
176 | </desc>
|
---|
177 | </const>
|
---|
178 | <const name="Stuck" value="6">
|
---|
179 | <desc>
|
---|
180 | The execution of the machine has reached the Guru Meditaion
|
---|
181 | condition. This condition indicates an internal VMM failure which may
|
---|
182 | happen as a result of either an unhandled low-level virtual hardware
|
---|
183 | exception or one of the recompiler exceptions (such as
|
---|
184 | the <i>too-many-traps</i> condition).
|
---|
185 | </desc>
|
---|
186 | </const>
|
---|
187 | <const name="Starting" value="7">
|
---|
188 | <desc>
|
---|
189 | The machine is being started after
|
---|
190 | <link to="IConsole::powerUp">powering it on</link> from a
|
---|
191 | zero execution state.
|
---|
192 | </desc>
|
---|
193 | </const>
|
---|
194 | <const name="Stopping" value="8">
|
---|
195 | <desc>
|
---|
196 | The machine is being normally stopped
|
---|
197 | (after explicitly <link to="IConsole::powerDown">powering it off</link>,
|
---|
198 | or after the guest OS has initiated a shutdown sequence).
|
---|
199 | </desc>
|
---|
200 | </const>
|
---|
201 | <const name="Saving" value="9">
|
---|
202 | <desc>
|
---|
203 | The machine is saving its execution state to a file as a
|
---|
204 | result of calling <link to="IConsole::saveState"/> or an online
|
---|
205 | snapshot of the machine is being taken using
|
---|
206 | <link to="IConsole::takeSnapshot"/>.
|
---|
207 | </desc>
|
---|
208 | </const>
|
---|
209 | <const name="Restoring" value="10">
|
---|
210 | <desc>
|
---|
211 | The execution state of the machine is being restored from a file
|
---|
212 | after <link to="IConsole::powerUp">powering it on</link> from
|
---|
213 | a saved execution state.
|
---|
214 | </desc>
|
---|
215 | </const>
|
---|
216 | <const name="Discarding" value="11">
|
---|
217 | <desc>
|
---|
218 | A snapshot of the machine is being discarded after calling
|
---|
219 | <link to="IConsole::discardSnapshot"/> or its current state is
|
---|
220 | being discarded after <link to="IConsole::discardCurrentState"/>.
|
---|
221 | </desc>
|
---|
222 | </const>
|
---|
223 | </enum>
|
---|
224 |
|
---|
225 | <enum
|
---|
226 | name="SessionState"
|
---|
227 | uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
|
---|
228 | >
|
---|
229 | <desc>
|
---|
230 | Session state. This enumeration represents possible values of
|
---|
231 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
232 | attributes. Idividual value descriptions contain the appropriate
|
---|
233 | meaning for every case.
|
---|
234 | </desc>
|
---|
235 |
|
---|
236 | <const name="Null" value="0">
|
---|
237 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
238 | </const>
|
---|
239 | <const name="Closed" value="1">
|
---|
240 | <desc>
|
---|
241 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
242 | the session is closed (<link to="ISession::state"/>)
|
---|
243 | </desc>
|
---|
244 | </const>
|
---|
245 | <const name="Open" value="2">
|
---|
246 | <desc>
|
---|
247 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
248 | the session is open (<link to="ISession::state"/>)
|
---|
249 | </desc>
|
---|
250 | </const>
|
---|
251 | <const name="Spawning" value="3">
|
---|
252 | <desc>
|
---|
253 | A new (direct) session is being opened for the machine
|
---|
254 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
255 | call (<link to="IMachine::sessionState"/>);
|
---|
256 | the session is currently being opened
|
---|
257 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
258 | call (<link to="ISession::state"/>)
|
---|
259 | </desc>
|
---|
260 | </const>
|
---|
261 | <const name="Closing" value="4">
|
---|
262 | <desc>
|
---|
263 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
264 | the session is being closed (<link to="ISession::state"/>)
|
---|
265 | </desc>
|
---|
266 | </const>
|
---|
267 | </enum>
|
---|
268 |
|
---|
269 | <enum
|
---|
270 | name="SessionType"
|
---|
271 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
272 | >
|
---|
273 | <desc>
|
---|
274 | Session type. This enumeration represents possible values of the
|
---|
275 | <link to="ISession::type"/> attribute.
|
---|
276 | </desc>
|
---|
277 |
|
---|
278 | <const name="Null" value="0">
|
---|
279 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
280 | </const>
|
---|
281 | <const name="Direct" value="1">
|
---|
282 | <desc>
|
---|
283 | Direct session
|
---|
284 | (opened by <link to="IVirtualBox::openSession()"/>)
|
---|
285 | </desc>
|
---|
286 | </const>
|
---|
287 | <const name="Remote" value="2">
|
---|
288 | <desc>
|
---|
289 | Remote session
|
---|
290 | (opened by <link to="IVirtualBox::openRemoteSession()"/>)
|
---|
291 | </desc>
|
---|
292 | </const>
|
---|
293 | <const name="Existing" value="3">
|
---|
294 | <desc>
|
---|
295 | Existing session
|
---|
296 | (opened by <link to="IVirtualBox::openExistingSession()"/>)
|
---|
297 | </desc>
|
---|
298 | </const>
|
---|
299 | </enum>
|
---|
300 |
|
---|
301 | <enum
|
---|
302 | name="DeviceType"
|
---|
303 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
304 | >
|
---|
305 | <desc>
|
---|
306 | Device type.
|
---|
307 | </desc>
|
---|
308 | <const name="Null" value="0">
|
---|
309 | <desc>
|
---|
310 | <tt>null</tt> value which may also mean "no device".
|
---|
311 | <note>
|
---|
312 | This value is not allowed for
|
---|
313 | <link to="IConsole::getDeviceActivity"/>
|
---|
314 | </note>
|
---|
315 | </desc>
|
---|
316 | </const>
|
---|
317 | <const name="Floppy" value="1">
|
---|
318 | <desc>Floppy device.</desc>
|
---|
319 | </const>
|
---|
320 | <const name="DVD" value="2">
|
---|
321 | <desc>CD/DVD-ROM device.</desc>
|
---|
322 | </const>
|
---|
323 | <const name="HardDisk" value="3">
|
---|
324 | <desc>Hard disk device.</desc>
|
---|
325 | </const>
|
---|
326 | <const name="Network" value="4">
|
---|
327 | <desc>Network device.</desc>
|
---|
328 | </const>
|
---|
329 | <const name="USB" value="5">
|
---|
330 | <desc>USB device.</desc>
|
---|
331 | </const>
|
---|
332 | <const name="SharedFolder" value="6">
|
---|
333 | <desc>Shared folder device.</desc>
|
---|
334 | </const>
|
---|
335 | </enum>
|
---|
336 |
|
---|
337 | <enum
|
---|
338 | name="DeviceActivity"
|
---|
339 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
340 | >
|
---|
341 | <desc>
|
---|
342 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
343 | </desc>
|
---|
344 |
|
---|
345 | <const name="Null" value="0"/>
|
---|
346 | <const name="Idle" value="1"/>
|
---|
347 | <const name="Reading" value="2"/>
|
---|
348 | <const name="Writing" value="3"/>
|
---|
349 | </enum>
|
---|
350 |
|
---|
351 | <enum
|
---|
352 | name="ResourceUsage"
|
---|
353 | uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809"
|
---|
354 | >
|
---|
355 | <desc>
|
---|
356 | Usage type constants for
|
---|
357 | <link to="IVirtualBox::getDVDImageUsage"/> and
|
---|
358 | <link to="IVirtualBox::getFloppyImageUsage"/>.
|
---|
359 | </desc>
|
---|
360 |
|
---|
361 | <const name="Null" value="0">
|
---|
362 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
363 | </const>
|
---|
364 | <const name="Permanent" value="1">
|
---|
365 | <desc>
|
---|
366 | Scopes the VMs that use the resource permanently
|
---|
367 | (the information about this usage is stored in the VM
|
---|
368 | settings file).
|
---|
369 | </desc>
|
---|
370 | </const>
|
---|
371 | <const name="Temporary" value="2">
|
---|
372 | <desc>
|
---|
373 | Scopes the VMs that are temporarily using the resource
|
---|
374 | (the information about the usage is not yet saved in the VM
|
---|
375 | settings file). Temporary usage can take place only in the
|
---|
376 | context of an open session.
|
---|
377 | </desc>
|
---|
378 | </const>
|
---|
379 | <const name="All" value="3">
|
---|
380 | <desc>
|
---|
381 | Combines Permanent and Temporary.
|
---|
382 | </desc>
|
---|
383 | </const>
|
---|
384 | </enum>
|
---|
385 |
|
---|
386 | <enum
|
---|
387 | name="DiskControllerType"
|
---|
388 | uuid="1115b810-2ee7-4ebd-8b39-92e98c9a2b48"
|
---|
389 | >
|
---|
390 | <desc>
|
---|
391 | Disk controller type for hard disk attachments.
|
---|
392 | </desc>
|
---|
393 |
|
---|
394 | <const name="Null" value="0">
|
---|
395 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
396 | </const>
|
---|
397 | <const name="IDE0" value="1"/>
|
---|
398 | <const name="IDE1" value="2"/>
|
---|
399 | </enum>
|
---|
400 |
|
---|
401 | <enum
|
---|
402 | name="ClipboardMode"
|
---|
403 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
404 | >
|
---|
405 | <desc>
|
---|
406 | Host-Guest clipboard interchange mode.
|
---|
407 | </desc>
|
---|
408 |
|
---|
409 | <const name="Disabled" value="0"/>
|
---|
410 | <const name="HostToGuest" value="1"/>
|
---|
411 | <const name="GuestToHost" value="2"/>
|
---|
412 | <const name="Bidirectional" value="3"/>
|
---|
413 | </enum>
|
---|
414 |
|
---|
415 | <enum
|
---|
416 | name="Scope"
|
---|
417 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
418 | >
|
---|
419 | <desc>
|
---|
420 | Scope of the operation.
|
---|
421 |
|
---|
422 | A generic enumeration used in various methods to define the action or
|
---|
423 | argument scope.
|
---|
424 | </desc>
|
---|
425 |
|
---|
426 | <const name="Global" value="0"/>
|
---|
427 | <const name="Machine" value="1"/>
|
---|
428 | <const name="Session" value="2"/>
|
---|
429 | </enum>
|
---|
430 |
|
---|
431 | <enum
|
---|
432 | name="GuestStatisticType"
|
---|
433 | uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
|
---|
434 | >
|
---|
435 | <desc>
|
---|
436 | Statistics type for <link to="IGuest::getStatistic"/>.
|
---|
437 | </desc>
|
---|
438 |
|
---|
439 | <const name="CPULoad_Idle" value="0">
|
---|
440 | <desc>
|
---|
441 | Idle CPU load (0-100%) for last interval.
|
---|
442 | </desc>
|
---|
443 | </const>
|
---|
444 | <const name="CPULoad_Kernel" value="1">
|
---|
445 | <desc>
|
---|
446 | Kernel CPU load (0-100%) for last interval.
|
---|
447 | </desc>
|
---|
448 | </const>
|
---|
449 | <const name="CPULoad_User" value="2">
|
---|
450 | <desc>
|
---|
451 | User CPU load (0-100%) for last interval.
|
---|
452 | </desc>
|
---|
453 | </const>
|
---|
454 | <const name="Threads" value="3">
|
---|
455 | <desc>
|
---|
456 | Total number of threads in the system.
|
---|
457 | </desc>
|
---|
458 | </const>
|
---|
459 | <const name="Processes" value="4">
|
---|
460 | <desc>
|
---|
461 | Total number of processes in the system.
|
---|
462 | </desc>
|
---|
463 | </const>
|
---|
464 | <const name="Handles" value="5">
|
---|
465 | <desc>
|
---|
466 | Total number of handles in the system.
|
---|
467 | </desc>
|
---|
468 | </const>
|
---|
469 | <const name="MemoryLoad" value="6">
|
---|
470 | <desc>
|
---|
471 | Memory load (0-100%).
|
---|
472 | </desc>
|
---|
473 | </const>
|
---|
474 | <const name="PhysMemTotal" value="7">
|
---|
475 | <desc>
|
---|
476 | Total physical memory in megabytes.
|
---|
477 | </desc>
|
---|
478 | </const>
|
---|
479 | <const name="PhysMemAvailable" value="8">
|
---|
480 | <desc>
|
---|
481 | Free physical memory in megabytes.
|
---|
482 | </desc>
|
---|
483 | </const>
|
---|
484 | <const name="PhysMemBalloon" value="9">
|
---|
485 | <desc>
|
---|
486 | Ballooned physical memory in megabytes.
|
---|
487 | </desc>
|
---|
488 | </const>
|
---|
489 | <const name="MemCommitTotal" value="10">
|
---|
490 | <desc>
|
---|
491 | Total amount of memory in the committed state in megabytes.
|
---|
492 | </desc>
|
---|
493 | </const>
|
---|
494 | <const name="MemKernelTotal" value="11">
|
---|
495 | <desc>
|
---|
496 | Total amount of memory used by the guest OS's kernel in megabytes.
|
---|
497 | </desc>
|
---|
498 | </const>
|
---|
499 | <const name="MemKernelPaged" value="12">
|
---|
500 | <desc>
|
---|
501 | Total amount of paged memory used by the guest OS's kernel in megabytes.
|
---|
502 | </desc>
|
---|
503 | </const>
|
---|
504 | <const name="MemKernelNonpaged" value="13">
|
---|
505 | <desc>
|
---|
506 | Total amount of nonpaged memory used by the guest OS's kernel in megabytes.
|
---|
507 | </desc>
|
---|
508 | </const>
|
---|
509 | <const name="MemSystemCache" value="14">
|
---|
510 | <desc>
|
---|
511 | Total amount of memory used by the guest OS's system cache in megabytes.
|
---|
512 | </desc>
|
---|
513 | </const>
|
---|
514 | <const name="PageFileSize" value="15">
|
---|
515 | <desc>
|
---|
516 | Pagefile size in megabytes.
|
---|
517 | </desc>
|
---|
518 | </const>
|
---|
519 | <const name="SampleNumber" value="16">
|
---|
520 | <desc>
|
---|
521 | Statistics sample number
|
---|
522 | </desc>
|
---|
523 | </const>
|
---|
524 | <const name="MaxVal" value="17"/>
|
---|
525 | </enum>
|
---|
526 |
|
---|
527 | <enum
|
---|
528 | name="BIOSBootMenuMode"
|
---|
529 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
530 | >
|
---|
531 | <desc>
|
---|
532 | BIOS boot menu mode.
|
---|
533 | </desc>
|
---|
534 |
|
---|
535 | <const name="Disabled" value="0"/>
|
---|
536 | <const name="MenuOnly" value="1"/>
|
---|
537 | <const name="MessageAndMenu" value="2"/>
|
---|
538 | </enum>
|
---|
539 |
|
---|
540 | <enum
|
---|
541 | name="IDEControllerType"
|
---|
542 | uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
|
---|
543 | >
|
---|
544 | <desc>
|
---|
545 | IDE controller type.
|
---|
546 | </desc>
|
---|
547 |
|
---|
548 | <const name="Null" value="0">
|
---|
549 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
550 | </const>
|
---|
551 | <const name="PIIX3" value="1"/>
|
---|
552 | <const name="PIIX4" value="2"/>
|
---|
553 | </enum>
|
---|
554 |
|
---|
555 | <enum
|
---|
556 | name="DriveState"
|
---|
557 | uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
|
---|
558 | >
|
---|
559 | <const name="Null" value="0">
|
---|
560 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
561 | </const>
|
---|
562 | <const name="NotMounted" value="1"/>
|
---|
563 | <const name="ImageMounted" value="2"/>
|
---|
564 | <const name="HostDriveCaptured" value="3"/>
|
---|
565 | </enum>
|
---|
566 |
|
---|
567 | <!--
|
---|
568 | // IVirtualBoxErrorInfo
|
---|
569 | /////////////////////////////////////////////////////////////////////////
|
---|
570 | -->
|
---|
571 |
|
---|
572 | <interface
|
---|
573 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
574 | uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
|
---|
575 | supportsErrorInfo="no"
|
---|
576 | wsmap="suppress"
|
---|
577 | >
|
---|
578 | <desc>
|
---|
579 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
580 |
|
---|
581 | Extended error information can be set by VirtualBox components after
|
---|
582 | unsuccessful or partially successful method invocation. This information
|
---|
583 | can be retrievefd by the calling party as an IVirtualBoxErrorInfo object
|
---|
584 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
585 |
|
---|
586 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
587 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
588 | it provides a set of common attributes to retrieve error
|
---|
589 | information.
|
---|
590 |
|
---|
591 | Sometimes invocation of some component's method may involve methods of
|
---|
592 | other components that may also fail (independently of this method's
|
---|
593 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
594 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
595 | information about all errors happened during method invocation and deliver
|
---|
596 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
597 | specifically for this purpose and allows to represent a chain of errors
|
---|
598 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
599 |
|
---|
600 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
601 | initial error object you query right after method invocation is the last
|
---|
602 | error set by the callee, the object it points to in the @a next attribute
|
---|
603 | is the previous error and so on, up to the first error (which is the last
|
---|
604 | in the chain).
|
---|
605 | </desc>
|
---|
606 |
|
---|
607 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
608 | <desc>
|
---|
609 | Result code of the error.
|
---|
610 | Usually, it will be the same as the result code returned
|
---|
611 | by the method that provided this error information, but not
|
---|
612 | always. For example, on Win32, CoCreateInstance() will most
|
---|
613 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
614 | instantiation attempt, but not the value the component factory
|
---|
615 | returned.
|
---|
616 | <note>
|
---|
617 | In MS COM, there is no equivalent.
|
---|
618 | In XPCOM, it is the same as nsIException::result.
|
---|
619 | </note>
|
---|
620 | </desc>
|
---|
621 | </attribute>
|
---|
622 |
|
---|
623 | <attribute name="interfaceID" type="uuid" readonly="yes">
|
---|
624 | <desc>
|
---|
625 | UUID of the interface that defined the error.
|
---|
626 | <note>
|
---|
627 | In MS COM, it is the same as IErrorInfo::GetGUID.
|
---|
628 | In XPCOM, there is no equivalent.
|
---|
629 | </note>
|
---|
630 | </desc>
|
---|
631 | </attribute>
|
---|
632 |
|
---|
633 | <attribute name="component" type="wstring" readonly="yes">
|
---|
634 | <desc>
|
---|
635 | Name of the component that generated the error.
|
---|
636 | <note>
|
---|
637 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
638 | In XPCOM, there is no equivalent.
|
---|
639 | </note>
|
---|
640 | </desc>
|
---|
641 | </attribute>
|
---|
642 |
|
---|
643 | <attribute name="text" type="wstring" readonly="yes">
|
---|
644 | <desc>
|
---|
645 | Text description of the error.
|
---|
646 | <note>
|
---|
647 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
648 | In XPCOM, it is the same as nsIException::message.
|
---|
649 | </note>
|
---|
650 | </desc>
|
---|
651 | </attribute>
|
---|
652 |
|
---|
653 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
654 | <desc>
|
---|
655 | Next error object if there is any, or @c null otherwise.
|
---|
656 | <note>
|
---|
657 | In MS COM, there is no equivalent.
|
---|
658 | In XPCOM, it is the same as nsIException::inner.
|
---|
659 | </note>
|
---|
660 | </desc>
|
---|
661 | </attribute>
|
---|
662 |
|
---|
663 | </interface>
|
---|
664 |
|
---|
665 |
|
---|
666 | <!--
|
---|
667 | // IVirtualBox
|
---|
668 | /////////////////////////////////////////////////////////////////////////
|
---|
669 | -->
|
---|
670 |
|
---|
671 | <interface
|
---|
672 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
673 | uuid="ee95ffc2-b6c6-4ce8-9e9e-ceadbb5019fe"
|
---|
674 | wsmap="suppress"
|
---|
675 | >
|
---|
676 | <method name="onMachineStateChange">
|
---|
677 | <desc>
|
---|
678 | The execution state of the given machine has changed.
|
---|
679 | <see>IMachine::state</see>
|
---|
680 | </desc>
|
---|
681 | <param name="machineId" type="uuid" dir="in">
|
---|
682 | <desc>ID of the machine this event relates to.</desc>
|
---|
683 | </param>
|
---|
684 | <param name="state" type="MachineState" dir="in">
|
---|
685 | <desc>New execution state.</desc>
|
---|
686 | </param>
|
---|
687 | </method>
|
---|
688 |
|
---|
689 | <method name="onMachineDataChange">
|
---|
690 | <desc>
|
---|
691 | Any of the settings of the given machine has changed.
|
---|
692 | </desc>
|
---|
693 | <param name="machineId" type="uuid" dir="in">
|
---|
694 | <desc>ID of the machine this event relates to.</desc>
|
---|
695 | </param>
|
---|
696 | </method>
|
---|
697 |
|
---|
698 | <method name="onExtraDataCanChange">
|
---|
699 | <desc>
|
---|
700 | Notification when someone tries to change extra data for
|
---|
701 | either the given machine or (if null) global extra data.
|
---|
702 | This gives the chance to veto against changes.
|
---|
703 | </desc>
|
---|
704 | <param name="machineId" type="uuid" dir="in">
|
---|
705 | <desc>
|
---|
706 | ID of the machine this event relates to
|
---|
707 | (null ID for global extra data change requests).
|
---|
708 | </desc>
|
---|
709 | </param>
|
---|
710 | <param name="key" type="wstring" dir="in">
|
---|
711 | <desc>
|
---|
712 | Extra data key for the attempted write.
|
---|
713 | </desc>
|
---|
714 | </param>
|
---|
715 | <param name="value" type="wstring" dir="in">
|
---|
716 | <desc>
|
---|
717 | Extra data value for the given key.
|
---|
718 | </desc>
|
---|
719 | </param>
|
---|
720 | <param name="error" type="wstring" dir="out">
|
---|
721 | <desc>
|
---|
722 | Optional error message describing the reason of the
|
---|
723 | veto (ignored if this notification returns @c true).
|
---|
724 | </desc>
|
---|
725 | </param>
|
---|
726 | <param name="allowChange" type="boolean" dir="return">
|
---|
727 | <desc>
|
---|
728 | Flag to indicate whether the callee agrees (@ true)
|
---|
729 | or vetoes against the change (@ false).
|
---|
730 | </desc>
|
---|
731 | </param>
|
---|
732 | </method>
|
---|
733 |
|
---|
734 | <method name="onExtraDataChange">
|
---|
735 | <desc>
|
---|
736 | Notification when machine specific or global extra data
|
---|
737 | has changed.
|
---|
738 | </desc>
|
---|
739 | <param name="machineId" type="uuid" dir="in">
|
---|
740 | <desc>
|
---|
741 | ID of the machine this event relates to.
|
---|
742 | Null for global extra data changes.
|
---|
743 | </desc>
|
---|
744 | </param>
|
---|
745 | <param name="key" type="wstring" dir="in">
|
---|
746 | <desc>
|
---|
747 | Extra data key that has changed.
|
---|
748 | </desc>
|
---|
749 | </param>
|
---|
750 | <param name="value" type="wstring" dir="in">
|
---|
751 | <desc>
|
---|
752 | Extra data value for the given key.
|
---|
753 | </desc>
|
---|
754 | </param>
|
---|
755 | </method>
|
---|
756 |
|
---|
757 | <method name="onMediaRegistered">
|
---|
758 | <desc>
|
---|
759 | The given media was registered or unregistered
|
---|
760 | within this VirtualBox installation.
|
---|
761 |
|
---|
762 | The @a mediaType parameter describes what type of
|
---|
763 | media the specified @a mediaId refers to. Possible
|
---|
764 | values are:
|
---|
765 |
|
---|
766 | - <link to="DeviceType::HardDisk"/>: the media is a hard disk
|
---|
767 | that, if registered, can be obtained using the
|
---|
768 | <link to="IVirtualBox::getHardDisk"/> call.
|
---|
769 | - <link to="DeviceType::DVD"/>: the media is a CD/DVD image
|
---|
770 | that, if registered, can be obtained using the
|
---|
771 | <link to="IVirtualBox::getDVDImage"/> call.
|
---|
772 | - <link to="DeviceType::Floppy"/>: the media is a Floppy image
|
---|
773 | that, if registered, can be obtained using the
|
---|
774 | <link to="IVirtualBox::getFloppyImage"/> call.
|
---|
775 |
|
---|
776 | Note that if this is a deregistration notification,
|
---|
777 | there is no way to access the object representing the
|
---|
778 | unregistered media. It is supposed that the
|
---|
779 | application will do required cleanup based on the @a
|
---|
780 | mediaId value.
|
---|
781 | </desc>
|
---|
782 | <param name="mediaId" type="uuid" dir="in">
|
---|
783 | <desc>ID of the media this event relates to.</desc>
|
---|
784 | </param>
|
---|
785 | <param name="mediaType" type="DeviceType" dir="in">
|
---|
786 | <desc>Type of the media this event relates to.</desc>
|
---|
787 | </param>
|
---|
788 | <param name="registered" type="boolean" dir="in">
|
---|
789 | <desc>
|
---|
790 | If true, the media was registered, otherwise it was
|
---|
791 | unregistered.
|
---|
792 | </desc>
|
---|
793 | </param>
|
---|
794 | </method>
|
---|
795 |
|
---|
796 | <method name="onMachineRegistered">
|
---|
797 | <desc>
|
---|
798 | The given machine was registered or unregistered
|
---|
799 | within this VirtualBox installation.
|
---|
800 | </desc>
|
---|
801 | <param name="machineId" type="uuid" dir="in">
|
---|
802 | <desc>ID of the machine this event relates to.</desc>
|
---|
803 | </param>
|
---|
804 | <param name="registered" type="boolean" dir="in">
|
---|
805 | <desc>
|
---|
806 | If true, the machine was registered, otherwise it was
|
---|
807 | unregistered.
|
---|
808 | </desc>
|
---|
809 | </param>
|
---|
810 | </method>
|
---|
811 |
|
---|
812 | <method name="onSessionStateChange">
|
---|
813 | <desc>
|
---|
814 | The state of the session for the given machine was changed.
|
---|
815 | <see>IMachine::sessionState</see>
|
---|
816 | </desc>
|
---|
817 | <param name="machineId" type="uuid" dir="in">
|
---|
818 | <desc>ID of the machine this event relates to.</desc>
|
---|
819 | </param>
|
---|
820 | <param name="state" type="SessionState" dir="in">
|
---|
821 | <desc>New session state.</desc>
|
---|
822 | </param>
|
---|
823 | </method>
|
---|
824 |
|
---|
825 | <method name="onSnapshotTaken">
|
---|
826 | <desc>
|
---|
827 | A new snapshot of the machine has been taken.
|
---|
828 | <see>ISnapshot</see>
|
---|
829 | </desc>
|
---|
830 | <param name="machineId" type="uuid" dir="in">
|
---|
831 | <desc>ID of the machine this event relates to.</desc>
|
---|
832 | </param>
|
---|
833 | <param name="snapshotId" type="uuid" dir="in">
|
---|
834 | <desc>ID of the new snapshot.</desc>
|
---|
835 | </param>
|
---|
836 | </method>
|
---|
837 |
|
---|
838 | <method name="onSnapshotDiscarded">
|
---|
839 | <desc>
|
---|
840 | Snapshot of the given machine has been discarded.
|
---|
841 |
|
---|
842 | <note>
|
---|
843 | This notification is delivered <b>after</b> the snapshot
|
---|
844 | object has been uninitialized on the server (so that any
|
---|
845 | attempt to call its methods will return an error).
|
---|
846 | </note>
|
---|
847 |
|
---|
848 | <see>ISnapshot</see>
|
---|
849 | </desc>
|
---|
850 | <param name="machineId" type="uuid" dir="in">
|
---|
851 | <desc>ID of the machine this event relates to.</desc>
|
---|
852 | </param>
|
---|
853 | <param name="snapshotId" type="uuid" dir="in">
|
---|
854 | <desc>
|
---|
855 | ID of the discarded snapshot. <tt>null</tt> means the
|
---|
856 | current machine state has been discarded (restored from
|
---|
857 | the current snapshot).
|
---|
858 | </desc>
|
---|
859 | </param>
|
---|
860 | </method>
|
---|
861 |
|
---|
862 | <method name="onSnapshotChange">
|
---|
863 | <desc>
|
---|
864 | Snapshot properties (name and/or description) have been changed.
|
---|
865 | <see>ISnapshot</see>
|
---|
866 | </desc>
|
---|
867 | <param name="machineId" type="uuid" dir="in">
|
---|
868 | <desc>ID of the machine this event relates to.</desc>
|
---|
869 | </param>
|
---|
870 | <param name="snapshotId" type="uuid" dir="in">
|
---|
871 | <desc>ID of the changed snapshot.</desc>
|
---|
872 | </param>
|
---|
873 | </method>
|
---|
874 |
|
---|
875 | </interface>
|
---|
876 |
|
---|
877 | <interface
|
---|
878 | name="IVirtualBox" extends="$dispatched"
|
---|
879 | uuid="64f652cb-7fdf-482d-ae19-4dbb289a5ca0"
|
---|
880 | wsmap="managed"
|
---|
881 | >
|
---|
882 | <desc>
|
---|
883 | The IVirtualBox interface represents the main interface exposed by the
|
---|
884 | product that provides virtual machine management.
|
---|
885 |
|
---|
886 | An instance of IVirtualBox is required for the product to do anything
|
---|
887 | useful. Even though the interface does not expose this, internally,
|
---|
888 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
889 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
890 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
891 | host, regardless of which frontend started them.
|
---|
892 |
|
---|
893 | To enumerate all the virtual machines on the host, use the
|
---|
894 | <link to="IVirtualBox::machines"/> attribute.
|
---|
895 | </desc>
|
---|
896 |
|
---|
897 | <attribute name="version" type="wstring" readonly="yes">
|
---|
898 | <desc>
|
---|
899 | A string representing the version number of the product. The
|
---|
900 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
901 | last number represents the build number and will frequently change.
|
---|
902 | </desc>
|
---|
903 | </attribute>
|
---|
904 |
|
---|
905 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
906 | <desc>
|
---|
907 | Full path to the directory where the global settings file,
|
---|
908 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
909 |
|
---|
910 | In this version of VirtualBox, the value of this property is
|
---|
911 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
912 | <tt><user_dir></tt> is the path to the user directory,
|
---|
913 | as determined by the host OS), and cannot be changed.
|
---|
914 |
|
---|
915 | This path is also used as the base to resolve relative paths in
|
---|
916 | places where relative paths are allowed (unless otherwise
|
---|
917 | expressly indicated).
|
---|
918 | </desc>
|
---|
919 | </attribute>
|
---|
920 |
|
---|
921 | <attribute name="host" type="IHost" readonly="yes">
|
---|
922 | <desc>Associated host object.</desc>
|
---|
923 | </attribute>
|
---|
924 |
|
---|
925 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
926 | <desc>Associated system information object.</desc>
|
---|
927 | </attribute>
|
---|
928 |
|
---|
929 | <attribute name="machines" type="IMachineCollection" readonly="yes">
|
---|
930 | <desc>
|
---|
931 | Collection of machine objects registered within this VirtualBox
|
---|
932 | instance.
|
---|
933 | </desc>
|
---|
934 | </attribute>
|
---|
935 |
|
---|
936 | <attribute name="machines2" type="IMachine" readonly="yes" safearray="yes">
|
---|
937 | <desc>
|
---|
938 | Array of machine objects registered within this VirtualBox instance.
|
---|
939 | </desc>
|
---|
940 | </attribute>
|
---|
941 |
|
---|
942 | <attribute name="hardDisks" type="IHardDiskCollection" readonly="yes">
|
---|
943 | <desc>
|
---|
944 | Collection of hard disk objects registered within this VirtualBox
|
---|
945 | instance.
|
---|
946 |
|
---|
947 | This collection contains only "top-level" (basic or independent) hard
|
---|
948 | disk images, but not differencing ones. All differencing images of the
|
---|
949 | given top-level image (i.e. all its children) can be enumerated using
|
---|
950 | <link to="IHardDisk::children"/>.
|
---|
951 | </desc>
|
---|
952 | </attribute>
|
---|
953 |
|
---|
954 | <attribute name="DVDImages" type="IDVDImageCollection" readonly="yes"/>
|
---|
955 |
|
---|
956 | <attribute name="FloppyImages" type="IFloppyImageCollection" readonly="yes"/>
|
---|
957 |
|
---|
958 | <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
|
---|
959 |
|
---|
960 | <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
|
---|
961 |
|
---|
962 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
963 | <desc>
|
---|
964 | Collection of global shared folders. Global shared folders are
|
---|
965 | available to all virtual machines.
|
---|
966 |
|
---|
967 | New shared folders are added to the collection using
|
---|
968 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
969 | removed using <link to="#removeSharedFolder"/>.
|
---|
970 |
|
---|
971 | <note>
|
---|
972 | In the current version of the product, global shared folders are not
|
---|
973 | implemented and therefore this collection is always empty.
|
---|
974 | </note>
|
---|
975 | </desc>
|
---|
976 | </attribute>
|
---|
977 |
|
---|
978 | <method name="createMachine">
|
---|
979 | <desc>
|
---|
980 | Creates a new virtual machine.
|
---|
981 |
|
---|
982 | The new machine will have "empty" default settings and will not
|
---|
983 | yet be registered. The typical sequence to create a virtual machine
|
---|
984 | is therefore something like this:
|
---|
985 |
|
---|
986 | <ol>
|
---|
987 | <li>Call this method (IVirtualBox::createMachine) to have a new
|
---|
988 | machine created. The machine object returned is "mutable", i.e.
|
---|
989 | automatically locked for the current session, as if
|
---|
990 | <link to="#openSession" /> had been called on it.</li>
|
---|
991 |
|
---|
992 | <li>Assign meaningful settings to the new machine by calling the
|
---|
993 | respective methods.</li>
|
---|
994 |
|
---|
995 | <li>Call <link to="IMachine::saveSettings" /> to have the settings written
|
---|
996 | to the machine's XML settings file. The configuration of the newly
|
---|
997 | created machine will not be saved to disk (and the settings subfolder
|
---|
998 | and file, as described below, will not be created) until this method
|
---|
999 | is called.</li>
|
---|
1000 |
|
---|
1001 | <li>Call <link to="#registerMachine" /> to have the
|
---|
1002 | machine show up in the list of machines registered with VirtualBox.</li>
|
---|
1003 | </ol>
|
---|
1004 |
|
---|
1005 | Every machine has a <i>settings file</i> that is used to store
|
---|
1006 | the machine configuration. This file is stored in the directory
|
---|
1007 | called <i>machine settings subfolder</i>. Unless specified otherwise,
|
---|
1008 | both the subfolder and the settings file will have a name that
|
---|
1009 | corresponds to the name of the virtual machine. You can specify
|
---|
1010 | where to create the machine settings subfolder using the @a
|
---|
1011 | baseFolder argument. The base folder can be absolute (full path)
|
---|
1012 | or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1013 | VirtualBox home directory</link>.
|
---|
1014 |
|
---|
1015 | If a null or empty string is given as the base folder (which is
|
---|
1016 | recommended), the <link to="ISystemProperties::defaultMachineFolder">
|
---|
1017 | default machine settings folder</link> will be used as the base
|
---|
1018 | folder to create the machine settings subfolder and file. In
|
---|
1019 | any case, the full path to the settings file will look like:
|
---|
1020 | <pre>
|
---|
1021 | <base_folder>/<machine_name>/<machine_name>.xml</pre>
|
---|
1022 |
|
---|
1023 | Optionally the UUID of the machine can be predefined. If this is
|
---|
1024 | not desired (i.e. a new UUID should be generated), pass just an
|
---|
1025 | empty or null UUID.
|
---|
1026 |
|
---|
1027 | You should also specify a valid name for the machine.
|
---|
1028 | See the <link to="IMachine::name"/> property
|
---|
1029 | description for more details about the machine name.
|
---|
1030 |
|
---|
1031 | The created machine remains
|
---|
1032 | unregistered until you call <link to="#registerMachine()"/>.
|
---|
1033 |
|
---|
1034 | <note>
|
---|
1035 | There is no way to change the name of the settings file or
|
---|
1036 | subfolder of the created machine directly.
|
---|
1037 | </note>
|
---|
1038 | </desc>
|
---|
1039 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1040 | <desc>
|
---|
1041 | Name of the folder where to create the machine settings
|
---|
1042 | subfolder containing the settings file.
|
---|
1043 | </desc>
|
---|
1044 | </param>
|
---|
1045 | <param name="name" type="wstring" dir="in">
|
---|
1046 | <desc>Machine name.</desc>
|
---|
1047 | </param>
|
---|
1048 | <param name="id" type="uuid" dir="in">
|
---|
1049 | <desc>
|
---|
1050 | UUID of the newly created VM, when non-null or non-empty.
|
---|
1051 | Otherwise a UUID is automatically generated.
|
---|
1052 | </desc>
|
---|
1053 | </param>
|
---|
1054 | <param name="machine" type="IMachine" dir="return">
|
---|
1055 | <desc>Created machine object.</desc>
|
---|
1056 | </param>
|
---|
1057 | </method>
|
---|
1058 |
|
---|
1059 | <method name="createLegacyMachine">
|
---|
1060 | <desc>
|
---|
1061 | Creates a new virtual machine in "legacy" mode, using the
|
---|
1062 | specified settings file to store machine settings.
|
---|
1063 |
|
---|
1064 | As opposed to machines created by <link to="#createMachine()"/>,
|
---|
1065 | the settings file of the machine created in "legacy" mode
|
---|
1066 | is not automatically renamed when the machine name is
|
---|
1067 | changed -- it will always remain the same as specified in this
|
---|
1068 | method call.
|
---|
1069 |
|
---|
1070 | The specified settings file name can be absolute
|
---|
1071 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1072 | VirtualBox home directory</link>. If the file name doesn't
|
---|
1073 | contain an extension, the default extension (.xml) will be
|
---|
1074 | appended.
|
---|
1075 |
|
---|
1076 | Optionally the UUID of the machine can be predefined. If this is
|
---|
1077 | not desired (i.e. a new UUID should be generated), pass just an
|
---|
1078 | empty or null UUID.
|
---|
1079 |
|
---|
1080 | Note that the configuration of the newly created machine is not
|
---|
1081 | saved to disk (and therefore no settings file is created)
|
---|
1082 | until <link to="IMachine::saveSettings()"/> is called. If the
|
---|
1083 | specified settings file already exists,
|
---|
1084 | <link to="IMachine::saveSettings()"/> will return an error.
|
---|
1085 |
|
---|
1086 | You should also specify a valid name for the machine.
|
---|
1087 | See the <link to="IMachine::name"/> property
|
---|
1088 | description for more details about the machine name.
|
---|
1089 |
|
---|
1090 | The created machine remains
|
---|
1091 | unregistered until you call <link to="#registerMachine()"/>.
|
---|
1092 |
|
---|
1093 | @deprecated This method may be removed later. It is better
|
---|
1094 | to use <link to="IVirtualBox::createMachine()"/>.
|
---|
1095 |
|
---|
1096 | <note>
|
---|
1097 | There is no way to change the name of the settings file
|
---|
1098 | of the created machine.
|
---|
1099 | </note>
|
---|
1100 | </desc>
|
---|
1101 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1102 | <desc>
|
---|
1103 | Name of the file where to store machine settings.
|
---|
1104 | </desc>
|
---|
1105 | </param>
|
---|
1106 | <param name="name" type="wstring" dir="in">
|
---|
1107 | <desc>Machine name.</desc>
|
---|
1108 | </param>
|
---|
1109 | <param name="id" type="uuid" dir="in">
|
---|
1110 | <desc>
|
---|
1111 | UUID of the newly created VM, when non-null or non-empty.
|
---|
1112 | Otherwise a UUID is automatically generated.
|
---|
1113 | </desc>
|
---|
1114 | </param>
|
---|
1115 | <param name="machine" type="IMachine" dir="return">
|
---|
1116 | <desc>Created machine object.</desc>
|
---|
1117 | </param>
|
---|
1118 | </method>
|
---|
1119 |
|
---|
1120 | <method name="openMachine">
|
---|
1121 | <desc>
|
---|
1122 | Opens a virtual machine from the existing settings file.
|
---|
1123 | The opened machine remains unregistered until you call
|
---|
1124 | <link to="#registerMachine()"/>.
|
---|
1125 |
|
---|
1126 | The specified settings file name can be absolute
|
---|
1127 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1128 | VirtualBox home directory</link>. This file must exist
|
---|
1129 | and must be a valid machine settings file whose contents
|
---|
1130 | will be used to construct the machine object.
|
---|
1131 |
|
---|
1132 | @deprecated Will be removed soon.
|
---|
1133 | </desc>
|
---|
1134 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1135 | <desc>
|
---|
1136 | Name of the machine settings file.
|
---|
1137 | </desc>
|
---|
1138 | </param>
|
---|
1139 | <param name="machine" type="IMachine" dir="return">
|
---|
1140 | <desc>Opened machine object.</desc>
|
---|
1141 | </param>
|
---|
1142 | <note>
|
---|
1143 | <link to="IMachine::settingsModified"/> will return
|
---|
1144 | false for the created machine, until any of machine settigs
|
---|
1145 | are changed.
|
---|
1146 | </note>
|
---|
1147 | </method>
|
---|
1148 |
|
---|
1149 | <method name="registerMachine">
|
---|
1150 | <desc>
|
---|
1151 |
|
---|
1152 | Registers the machine previously created using
|
---|
1153 | <link to="#createMachine()"/> or opened using
|
---|
1154 | <link to="#openMachine()"/> within this VirtualBox installation. After
|
---|
1155 | successful method invocation, the
|
---|
1156 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1157 | to all registered callbacks.
|
---|
1158 |
|
---|
1159 | <note>
|
---|
1160 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1161 | to save all current machine settings before registering it.
|
---|
1162 | </note>
|
---|
1163 |
|
---|
1164 | </desc>
|
---|
1165 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1166 | </method>
|
---|
1167 |
|
---|
1168 | <method name="getMachine">
|
---|
1169 | <desc>
|
---|
1170 | Attempts to find a virtual machine given its UUID.
|
---|
1171 | To look up a machine by name, use <link to="IVirtualBox::findMachine" /> instead.
|
---|
1172 | </desc>
|
---|
1173 | <param name="id" type="uuid" dir="in"/>
|
---|
1174 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1175 | </method>
|
---|
1176 |
|
---|
1177 | <method name="findMachine">
|
---|
1178 | <desc>
|
---|
1179 | Attempts to find a virtual machine given its name.
|
---|
1180 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> instead.
|
---|
1181 | </desc>
|
---|
1182 | <param name="name" type="wstring" dir="in"/>
|
---|
1183 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1184 | </method>
|
---|
1185 |
|
---|
1186 | <method name="unregisterMachine">
|
---|
1187 | <desc>
|
---|
1188 |
|
---|
1189 | Unregisters the machine previously registered using
|
---|
1190 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1191 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1192 | to all registered callbacks.
|
---|
1193 |
|
---|
1194 | <note>
|
---|
1195 | The specified machine must not be in the Saved state, have an open
|
---|
1196 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1197 | have hard disks attached.
|
---|
1198 | </note>
|
---|
1199 |
|
---|
1200 | <note>
|
---|
1201 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1202 | save all current machine settings before unregistering it.
|
---|
1203 | </note>
|
---|
1204 |
|
---|
1205 | <note>
|
---|
1206 | If the given machine is inaccessible (see
|
---|
1207 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
1208 | fully uninitialized right afterwards. As a result, the returned
|
---|
1209 | machine object will be unusable and an attempt to call
|
---|
1210 | <b>any</b> method will return the "Object not ready" error.
|
---|
1211 | </note>
|
---|
1212 |
|
---|
1213 | </desc>
|
---|
1214 | <param name="id" type="uuid" dir="in">
|
---|
1215 | <desc>UUID of the machine to unregister.</desc>
|
---|
1216 | </param>
|
---|
1217 | <param name="machine" type="IMachine" dir="return">
|
---|
1218 | <desc>Unregistered machine object.</desc>
|
---|
1219 | </param>
|
---|
1220 | </method>
|
---|
1221 |
|
---|
1222 | <method name="createHardDisk">
|
---|
1223 | <desc>
|
---|
1224 |
|
---|
1225 | Creates a new unregistered hard disk that will use the given
|
---|
1226 | storage type.
|
---|
1227 |
|
---|
1228 | Most properties of the created hard disk object are
|
---|
1229 | uninitialized. Valid values must be assigned to them (and probalby
|
---|
1230 | some actions performed) to make the actual usage of this hard disk
|
---|
1231 | (<link to="#registerHardDisk()">register</link>, attach to a virtual
|
---|
1232 | machine, etc.). See the description of <link to="IHardDisk"/> and
|
---|
1233 | descriptions of storage type specific interfaces for more information.
|
---|
1234 |
|
---|
1235 | <note>
|
---|
1236 | For hard disks using
|
---|
1237 | the <link
|
---|
1238 | to="HardDiskStorageType::VirtualDiskImage">VirtualDiskImage</link>
|
---|
1239 | storage type, an image file is not actually created until you call
|
---|
1240 | <link to="IVirtualDiskImage::createDynamicImage()"/> or
|
---|
1241 | <link to="IVirtualDiskImage::createFixedImage()"/>.
|
---|
1242 | </note>
|
---|
1243 |
|
---|
1244 | </desc>
|
---|
1245 |
|
---|
1246 | <param name="storageType" type="HardDiskStorageType" dir="in">
|
---|
1247 | <desc>Storage type of the hard disk image to create.</desc>
|
---|
1248 | </param>
|
---|
1249 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1250 | <desc>Created hard disk object of the given storage type.</desc>
|
---|
1251 | </param>
|
---|
1252 |
|
---|
1253 | </method>
|
---|
1254 |
|
---|
1255 | <method name="openHardDisk">
|
---|
1256 | <desc>
|
---|
1257 |
|
---|
1258 | Opens a hard disk from an existing location.
|
---|
1259 |
|
---|
1260 | This method tries to guess the
|
---|
1261 | <link to="HardDiskStorageType">hard disk storage type</link> from the
|
---|
1262 | format of the location string and from the contents of the resource the
|
---|
1263 | location points to. Currently, a <i>file path</i> is the only
|
---|
1264 | supported format for the location string which must point to either a
|
---|
1265 | VDI file or to a VMDK file. On success, an IHardDisk object will be
|
---|
1266 | returned that also implements the corresponding interface
|
---|
1267 | (IVirtualDiskImage or IVMDKImage, respectively). The
|
---|
1268 | <link to="IHardDisk::storageType"/> property may also be used to
|
---|
1269 | determine the storage type of the returned object (instead of trying
|
---|
1270 | to query one of these interfaces).
|
---|
1271 |
|
---|
1272 | <note>
|
---|
1273 | The specified file path can be absolute (full path) or relative to
|
---|
1274 | the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1275 | directory</link>. If only a file name without any path is given,
|
---|
1276 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
1277 | folder</link> will be used as a path to the image file.
|
---|
1278 | </note>
|
---|
1279 |
|
---|
1280 | The opened hard disk remains unregistered
|
---|
1281 | until <link to="#registerHardDisk()"/> is called.
|
---|
1282 |
|
---|
1283 | </desc>
|
---|
1284 |
|
---|
1285 | <param name="location" type="wstring" dir="in">
|
---|
1286 | <desc>
|
---|
1287 | Location of the resource that contains a valid hard disk.
|
---|
1288 | </desc>
|
---|
1289 | </param>
|
---|
1290 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1291 | <desc>Opened hard disk object.</desc>
|
---|
1292 | </param>
|
---|
1293 | </method>
|
---|
1294 |
|
---|
1295 | <method name="openVirtualDiskImage">
|
---|
1296 | <desc>
|
---|
1297 |
|
---|
1298 | Opens a hard disk from an existing Virtual Disk Image file.
|
---|
1299 | The opened hard disk remains unregistered
|
---|
1300 | until <link to="#registerHardDisk()"/> is called.
|
---|
1301 |
|
---|
1302 | @deprecated Use <link to="IVirtualBox::openHardDisk()"/> instead.
|
---|
1303 |
|
---|
1304 | <note>Opening differencing images is not supported.</note>
|
---|
1305 |
|
---|
1306 | <note>The specified file path can be absolute (full path) or
|
---|
1307 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
1308 | home directory</link>. If only a file name without any path is
|
---|
1309 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1310 | default VDI folder</link> will be used as a path to the image
|
---|
1311 | file.</note>
|
---|
1312 |
|
---|
1313 | </desc>
|
---|
1314 |
|
---|
1315 | <param name="filePath" type="wstring" dir="in">
|
---|
1316 | <desc>
|
---|
1317 | Name of the file that contains a valid Virtual Disk Image.
|
---|
1318 | </desc>
|
---|
1319 | </param>
|
---|
1320 | <param name="image" type="IVirtualDiskImage" dir="return">
|
---|
1321 | <desc>Opened hard disk object.</desc>
|
---|
1322 | </param>
|
---|
1323 | </method>
|
---|
1324 |
|
---|
1325 | <method name="registerHardDisk">
|
---|
1326 | <desc>
|
---|
1327 |
|
---|
1328 | Registers the given hard disk within this VirtualBox
|
---|
1329 | installation. The hard disk must not be registered, must be
|
---|
1330 | <link to="IHardDisk::accessible"/> and must not be a
|
---|
1331 | differencing hard disk, otherwise the registration will fail.
|
---|
1332 |
|
---|
1333 | </desc>
|
---|
1334 | <param name="hardDisk" type="IHardDisk" dir="in">
|
---|
1335 | <desc>Hard disk object to register.</desc>
|
---|
1336 | </param>
|
---|
1337 | </method>
|
---|
1338 |
|
---|
1339 | <method name="getHardDisk" const="yes">
|
---|
1340 | <desc>
|
---|
1341 | Returns the registered hard disk with the given UUID.
|
---|
1342 | </desc>
|
---|
1343 | <param name="id" type="uuid" dir="in">
|
---|
1344 | <desc>UUID of the hard disk to look for.</desc>
|
---|
1345 | </param>
|
---|
1346 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1347 | <desc>Found hard disk object.</desc>
|
---|
1348 | </param>
|
---|
1349 | </method>
|
---|
1350 |
|
---|
1351 | <method name="findHardDisk">
|
---|
1352 | <desc>
|
---|
1353 |
|
---|
1354 | Returns a registered hard disk that uses the given location to
|
---|
1355 | store data. The search is done by comparing the
|
---|
1356 | value of the @a location argument to the
|
---|
1357 | <link to="IHardDisk::location"/> attribute of each registered
|
---|
1358 | hard disk.
|
---|
1359 |
|
---|
1360 | For locations repesented by file paths (such as VDI and VMDK
|
---|
1361 | images), the specified location can be either an absolute file
|
---|
1362 | path or a path relative to
|
---|
1363 | the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
1364 | directory</link>. If only a file name without any path is
|
---|
1365 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1366 | default VDI folder</link> will be used as a path to construct
|
---|
1367 | the absolute image file name to search for. Note that on host
|
---|
1368 | systems with case sensitive filesystems, a case sensitive
|
---|
1369 | comparison is performed, otherwise the case of symbols in the
|
---|
1370 | file path is ignored.
|
---|
1371 |
|
---|
1372 | </desc>
|
---|
1373 | <param name="location" type="wstring" dir="in">
|
---|
1374 | <desc>Hard disk location specification to search for.</desc>
|
---|
1375 | </param>
|
---|
1376 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1377 | <desc>Found hard disk object.</desc>
|
---|
1378 | </param>
|
---|
1379 | </method>
|
---|
1380 |
|
---|
1381 | <method name="findVirtualDiskImage">
|
---|
1382 | <desc>
|
---|
1383 |
|
---|
1384 | Returns a registered hard disk that uses the given image file.
|
---|
1385 |
|
---|
1386 | @deprecated Use <link to="IVirtualBox::findHardDisk()"/> instead.
|
---|
1387 |
|
---|
1388 | <note>The specified file path can be absolute (full path) or
|
---|
1389 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
1390 | home directory</link>. If only a file name without any path is
|
---|
1391 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1392 | default VDI folder</link> will be used as a path to the image
|
---|
1393 | file.</note>
|
---|
1394 |
|
---|
1395 | <note>On host systems with case sensitive filesystems, a case
|
---|
1396 | sensitive comparison is performed, otherwise the case of symbols
|
---|
1397 | in the file path is ignored.</note>
|
---|
1398 |
|
---|
1399 | </desc>
|
---|
1400 | <param name="filePath" type="wstring" dir="in">
|
---|
1401 | <desc>Virtual Disk Image file path to look for.</desc>
|
---|
1402 | </param>
|
---|
1403 | <param name="image" type="IVirtualDiskImage" dir="return">
|
---|
1404 | <desc>Found hard disk object.</desc>
|
---|
1405 | </param>
|
---|
1406 | </method>
|
---|
1407 |
|
---|
1408 | <method name="unregisterHardDisk">
|
---|
1409 | <desc>
|
---|
1410 | Unregisters a hard disk previously registered using
|
---|
1411 | <link to="#registerHardDisk()"/>.
|
---|
1412 | <note>
|
---|
1413 | The specified hard disk must not be attached to any of
|
---|
1414 | the existing virtual machines and must not have children
|
---|
1415 | (differencing) hard disks.
|
---|
1416 | </note>
|
---|
1417 | </desc>
|
---|
1418 | <param name="id" type="uuid" dir="in">
|
---|
1419 | <desc>UUID of the hard disk to unregister.</desc>
|
---|
1420 | </param>
|
---|
1421 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1422 | <desc>Unregistered hard disk object.</desc>
|
---|
1423 | </param>
|
---|
1424 | </method>
|
---|
1425 |
|
---|
1426 | <method name="openDVDImage">
|
---|
1427 | <desc>
|
---|
1428 | Opens the CD/DVD image contained in the specified file of
|
---|
1429 | the supported format and assigns it the given UUID. The opened
|
---|
1430 | image remains unregistered
|
---|
1431 | until <link to="#registerDVDImage()"/> is called.
|
---|
1432 | </desc>
|
---|
1433 | <param name="filePath" type="wstring" dir="in">
|
---|
1434 | <desc>
|
---|
1435 | Full name of the file that contains a valid
|
---|
1436 | CD/DVD image. Currently, only ISO images are supported.
|
---|
1437 | <note>
|
---|
1438 | The specified file name can be absolute or relative
|
---|
1439 | to the <link to="IVirtualBox::homeFolder">
|
---|
1440 | VirtualBox home directory</link>.
|
---|
1441 | </note>
|
---|
1442 | </desc>
|
---|
1443 | </param>
|
---|
1444 | <param name="id" type="uuid" dir="in">
|
---|
1445 | <desc>
|
---|
1446 | UUID to assign to the given image file within this
|
---|
1447 | VirtualBox installation. If an empty (null) UUID is
|
---|
1448 | specified, the system will randomly generate an UUID.
|
---|
1449 | </desc>
|
---|
1450 | </param>
|
---|
1451 | <param name="image" type="IDVDImage" dir="return">
|
---|
1452 | <desc>Opened CD/DVD image object.</desc>
|
---|
1453 | </param>
|
---|
1454 | </method>
|
---|
1455 |
|
---|
1456 | <method name="registerDVDImage">
|
---|
1457 | <desc>
|
---|
1458 | Registers a CD/DVD image within this VirtualBox
|
---|
1459 | installation. The image must not be registered and must not
|
---|
1460 | be associated with the same image file as any of the already
|
---|
1461 | registered images, otherwise the registration will fail.
|
---|
1462 | </desc>
|
---|
1463 | <param name="image" type="IDVDImage" dir="in">
|
---|
1464 | <desc>CD/DVD image object to register.</desc>
|
---|
1465 | </param>
|
---|
1466 | </method>
|
---|
1467 |
|
---|
1468 | <method name="getDVDImage">
|
---|
1469 | <desc>
|
---|
1470 | Returns a registered CD/DVD image with the given UUID.
|
---|
1471 | </desc>
|
---|
1472 | <param name="id" type="uuid" dir="in">
|
---|
1473 | <desc>UUID of the image to look for.</desc>
|
---|
1474 | </param>
|
---|
1475 | <param name="image" type="IDVDImage" dir="return">
|
---|
1476 | <desc>Found CD/DVD image object.</desc>
|
---|
1477 | </param>
|
---|
1478 | </method>
|
---|
1479 |
|
---|
1480 | <method name="findDVDImage">
|
---|
1481 | <desc>
|
---|
1482 | Returns a registered CD/DVD image with the given image file.
|
---|
1483 | <note>
|
---|
1484 | On host systems with case sensitive filesystems, a case
|
---|
1485 | sensitive comparison is performed, otherwise the case of
|
---|
1486 | symbols in the file path is ignored.
|
---|
1487 | </note>
|
---|
1488 | </desc>
|
---|
1489 | <param name="filePath" type="wstring" dir="in">
|
---|
1490 | <desc>CD/DVD image file path to look for.</desc>
|
---|
1491 | </param>
|
---|
1492 | <param name="image" type="IDVDImage" dir="return">
|
---|
1493 | <desc>Found CD/DVD image object.</desc>
|
---|
1494 | </param>
|
---|
1495 | </method>
|
---|
1496 |
|
---|
1497 | <method name="getDVDImageUsage">
|
---|
1498 | <desc>
|
---|
1499 | Returns the list of of UUIDs of all virtual machines that use
|
---|
1500 | the given CD/DVD image.
|
---|
1501 | </desc>
|
---|
1502 | <param name="id" type="uuid" dir="in">
|
---|
1503 | <desc>UUID of the image to get the usage information for.</desc>
|
---|
1504 | </param>
|
---|
1505 | <param name="usage" type="ResourceUsage" dir="in">
|
---|
1506 | <desc>Type of the usage (permanent, temporary or all).</desc>
|
---|
1507 | </param>
|
---|
1508 | <param name="machineIDs" type="wstring" dir="return">
|
---|
1509 | <desc>
|
---|
1510 | List of UUIDs of all machines that use the given image
|
---|
1511 | in the way specified by the usage parameter.
|
---|
1512 | The list is returned as a string containing UUIDs separated
|
---|
1513 | by spaces. A null string means that the image is not used.
|
---|
1514 | <note>
|
---|
1515 | When the usage type is <link to="ResourceUsage::All"/> and the image
|
---|
1516 | is used by the VM both permanently and temporarily, the VM's UUID
|
---|
1517 | will be present only once in the list.
|
---|
1518 | </note>
|
---|
1519 | </desc>
|
---|
1520 | </param>
|
---|
1521 | </method>
|
---|
1522 |
|
---|
1523 | <method name="unregisterDVDImage">
|
---|
1524 | <desc>
|
---|
1525 | Unregisters the CD/DVD image previously registered using
|
---|
1526 | <link to="#registerDVDImage()"/>.
|
---|
1527 | <note>
|
---|
1528 | The specified image must not be mounted to any of
|
---|
1529 | the existing virtual machines.
|
---|
1530 | </note>
|
---|
1531 | </desc>
|
---|
1532 | <param name="id" type="uuid" dir="in">
|
---|
1533 | <desc>UUID of the CD/DVD image to unregister.</desc>
|
---|
1534 | </param>
|
---|
1535 | <param name="image" type="IDVDImage" dir="return">
|
---|
1536 | <desc>Unregistered image object.</desc>
|
---|
1537 | </param>
|
---|
1538 | </method>
|
---|
1539 |
|
---|
1540 | <method name="openFloppyImage">
|
---|
1541 | <desc>
|
---|
1542 | Opens a floppy image contained in the specified file of
|
---|
1543 | the supported format and assigns it the given UUID. The opened
|
---|
1544 | image remains unregistered
|
---|
1545 | until <link to="#registerFloppyImage()"/> is called.
|
---|
1546 | </desc>
|
---|
1547 | <param name="filePath" type="wstring" dir="in">
|
---|
1548 | <desc>
|
---|
1549 | Full name of the file that contains a valid
|
---|
1550 | floppy image.
|
---|
1551 | <note>
|
---|
1552 | The specified file name can be absolute or relative
|
---|
1553 | to the <link to="IVirtualBox::homeFolder">
|
---|
1554 | VirtualBox home directory</link>.
|
---|
1555 | </note>
|
---|
1556 | </desc>
|
---|
1557 | </param>
|
---|
1558 | <param name="id" type="uuid" dir="in">
|
---|
1559 | <desc>
|
---|
1560 | UUID to assign to the given image file within this
|
---|
1561 | VirtualBox installation. If an empty (null) UUID is
|
---|
1562 | specified, the system will randomly generate an UUID.
|
---|
1563 | </desc>
|
---|
1564 | </param>
|
---|
1565 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1566 | <desc>Opened CD/DVD image object.</desc>
|
---|
1567 | </param>
|
---|
1568 | </method>
|
---|
1569 |
|
---|
1570 | <method name="registerFloppyImage">
|
---|
1571 | <desc>
|
---|
1572 | Registers a floppy image within this VirtualBox
|
---|
1573 | installation. The image must not be registered and must not
|
---|
1574 | be associated with the same image file as any of the already
|
---|
1575 | registered images, otherwise the registration will fail.
|
---|
1576 | </desc>
|
---|
1577 | <param name="image" type="IFloppyImage" dir="in">
|
---|
1578 | <desc>Floppy image object to register.</desc>
|
---|
1579 | </param>
|
---|
1580 | </method>
|
---|
1581 |
|
---|
1582 | <method name="getFloppyImage">
|
---|
1583 | <desc>
|
---|
1584 | Returns a registered floppy image with the given UUID.
|
---|
1585 | </desc>
|
---|
1586 | <param name="id" type="uuid" dir="in">
|
---|
1587 | <desc>UUID of the image to look for.</desc>
|
---|
1588 | </param>
|
---|
1589 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1590 | <desc>Found floppy image object.</desc>
|
---|
1591 | </param>
|
---|
1592 | </method>
|
---|
1593 |
|
---|
1594 | <method name="findFloppyImage">
|
---|
1595 | <desc>
|
---|
1596 | Returns a registered floppy image with the given image file.
|
---|
1597 | <note>
|
---|
1598 | On host systems with case sensitive filesystems, a case
|
---|
1599 | sensitive comparison is performed, otherwise the case of
|
---|
1600 | symbols in the file path is ignored.
|
---|
1601 | </note>
|
---|
1602 | </desc>
|
---|
1603 | <param name="filePath" type="wstring" dir="in">
|
---|
1604 | <desc>Floppy image file path to look for.</desc>
|
---|
1605 | </param>
|
---|
1606 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1607 | <desc>Found floppy image object.</desc>
|
---|
1608 | </param>
|
---|
1609 | </method>
|
---|
1610 |
|
---|
1611 | <method name="getFloppyImageUsage">
|
---|
1612 | <desc>
|
---|
1613 | Returns the list of of UUIDs of all virtual machines that use
|
---|
1614 | the given floppy image.
|
---|
1615 | </desc>
|
---|
1616 | <param name="id" type="uuid" dir="in">
|
---|
1617 | <desc>UUID of the image to get the usage information for.</desc>
|
---|
1618 | </param>
|
---|
1619 | <param name="usage" type="ResourceUsage" dir="in">
|
---|
1620 | <desc>Type of the usage (permanent, temporary or all).</desc>
|
---|
1621 | </param>
|
---|
1622 | <param name="machineIDs" type="wstring" dir="return">
|
---|
1623 | <desc>
|
---|
1624 | List of UUIDs of all machines that use the given image
|
---|
1625 | in the way specified by the usage parameter.
|
---|
1626 | The list is returned as a string containing UUIDs separated
|
---|
1627 | by spaces. A null string means that the image is not used.
|
---|
1628 | <note>
|
---|
1629 | When the usage type is <link to="ResourceUsage::All"/> and the image
|
---|
1630 | is used by the VM both permanently and temporarily, the VM's UUID
|
---|
1631 | will be present only once in the list.
|
---|
1632 | </note>
|
---|
1633 | </desc>
|
---|
1634 | </param>
|
---|
1635 | </method>
|
---|
1636 |
|
---|
1637 | <method name="unregisterFloppyImage">
|
---|
1638 | <desc>
|
---|
1639 | Unregisters the floppy image previously registered using
|
---|
1640 | <link to="#registerFloppyImage()"/>.
|
---|
1641 | <note>
|
---|
1642 | The specified image must not be mounted to any of
|
---|
1643 | the existing virtual machines.
|
---|
1644 | </note>
|
---|
1645 | </desc>
|
---|
1646 | <param name="id" type="uuid" dir="in">
|
---|
1647 | <desc>UUID of the floppy image to unregister.</desc>
|
---|
1648 | </param>
|
---|
1649 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1650 | <desc>Unregistered image object.</desc>
|
---|
1651 | </param>
|
---|
1652 | </method>
|
---|
1653 |
|
---|
1654 | <method name="getGuestOSType">
|
---|
1655 | <param name="id" type="wstring" dir="in"/>
|
---|
1656 | <param name="type" type="IGuestOSType" dir="return"/>
|
---|
1657 | </method>
|
---|
1658 |
|
---|
1659 | <method name="createSharedFolder">
|
---|
1660 | <desc>
|
---|
1661 | Creates a new global shared folder by associating the given logical
|
---|
1662 | name with the given host path, adds it to the collection of shared
|
---|
1663 | folders and starts sharing it. Refer to the description of
|
---|
1664 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
1665 | </desc>
|
---|
1666 | <param name="name" type="wstring" dir="in">
|
---|
1667 | <desc>Unique logical name of the shared folder.</desc>
|
---|
1668 | </param>
|
---|
1669 | <param name="hostPath" type="wstring" dir="in">
|
---|
1670 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
1671 | </param>
|
---|
1672 | <param name="writable" type="boolean" dir="in">
|
---|
1673 | <desc>Whether the share is writable or readonly</desc>
|
---|
1674 | </param>
|
---|
1675 | </method>
|
---|
1676 |
|
---|
1677 | <method name="removeSharedFolder">
|
---|
1678 | <desc>
|
---|
1679 | Removes the global shared folder with the given name previously
|
---|
1680 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
1681 | shared folders and stops sharing it.
|
---|
1682 | </desc>
|
---|
1683 | <param name="name" type="wstring" dir="in">
|
---|
1684 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
1685 | </param>
|
---|
1686 | </method>
|
---|
1687 |
|
---|
1688 | <method name="getNextExtraDataKey">
|
---|
1689 | <desc>
|
---|
1690 | Returns the global extra data key name following the supplied key.
|
---|
1691 |
|
---|
1692 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
1693 | returned in @a nextKey if the supplied key is the last key. When
|
---|
1694 | supplying @c NULL for the @a key, the first key item is returned in @a
|
---|
1695 | nextKey (if there is any). @a nextValue is an optional parameter and
|
---|
1696 | if supplied, the next key's value is returned in it.
|
---|
1697 | </desc>
|
---|
1698 | <param name="key" type="wstring" dir="in">
|
---|
1699 | <desc>Name of the data key to follow.</desc>
|
---|
1700 | </param>
|
---|
1701 | <param name="nextKey" type="wstring" dir="out">
|
---|
1702 | <desc>Name of the next data key.</desc>
|
---|
1703 | </param>
|
---|
1704 | <param name="nextValue" type="wstring" dir="out">
|
---|
1705 | <desc>Value of the next data key.</desc>
|
---|
1706 | </param>
|
---|
1707 | </method>
|
---|
1708 |
|
---|
1709 | <method name="getExtraData">
|
---|
1710 | <desc>
|
---|
1711 | Returns associated global extra data.
|
---|
1712 |
|
---|
1713 | If the reuqested data @a key does not exist, this function will
|
---|
1714 | succeed and return @c NULL in the @a value argument.
|
---|
1715 | </desc>
|
---|
1716 | <param name="key" type="wstring" dir="in">
|
---|
1717 | <desc>Name of the data key to get.</desc>
|
---|
1718 | </param>
|
---|
1719 | <param name="value" type="wstring" dir="return">
|
---|
1720 | <desc>Value of the requested data key.</desc>
|
---|
1721 | </param>
|
---|
1722 | </method>
|
---|
1723 |
|
---|
1724 | <method name="setExtraData">
|
---|
1725 | <desc>
|
---|
1726 | Sets associated global extra data.
|
---|
1727 |
|
---|
1728 | If you pass @c NULL as a key @a vaule, the given @a key will be
|
---|
1729 | deleted.
|
---|
1730 |
|
---|
1731 | <note>
|
---|
1732 | Before performing the actual data change, this method will ask all
|
---|
1733 | registered callbacks using the
|
---|
1734 | <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
|
---|
1735 | notification for a permission. If one of the callbacks refuses the
|
---|
1736 | new value, the change will not be performed.
|
---|
1737 | </note>
|
---|
1738 | <note>
|
---|
1739 | On success, the
|
---|
1740 | <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
|
---|
1741 | is called to inform all registered callbacks about a successful data
|
---|
1742 | change.
|
---|
1743 | </note>
|
---|
1744 | </desc>
|
---|
1745 | <param name="key" type="wstring" dir="in">
|
---|
1746 | <desc>Name of the data key to set.</desc>
|
---|
1747 | </param>
|
---|
1748 | <param name="value" type="wstring" dir="in">
|
---|
1749 | <desc>Value to assign to the key.</desc>
|
---|
1750 | </param>
|
---|
1751 | </method>
|
---|
1752 |
|
---|
1753 | <method name="openSession">
|
---|
1754 | <desc>
|
---|
1755 | Opens a new direct session with the given virtual machine.
|
---|
1756 |
|
---|
1757 | Within the direct session context, it is possible to change
|
---|
1758 | all VM settings, as well as to execute the VM in the process
|
---|
1759 | space of the session object. There can be only one direct
|
---|
1760 | session open at a time for every virtual machine. In VirtualBox
|
---|
1761 | terminology, the machine becomes "mutable" after a session has
|
---|
1762 | been opened.
|
---|
1763 |
|
---|
1764 | Upon successful return, the session object can be used to
|
---|
1765 | get access to the machine and to the VM console.
|
---|
1766 |
|
---|
1767 | Note that the "mutable" machine object, on which you may want
|
---|
1768 | to invoke IMachine methods to change its settings, will be a
|
---|
1769 | different object from the immutable IMachine objects returned
|
---|
1770 | by various IVirtualBox methods. To obtain a mutable
|
---|
1771 | IMachine object, upon which you can invoke settings methods,
|
---|
1772 | use the "machine" attribute of the ISession object which represents
|
---|
1773 | your open session.
|
---|
1774 |
|
---|
1775 | In other words, to change settings on a machine, the following
|
---|
1776 | sequence is typically performed:
|
---|
1777 |
|
---|
1778 | <ol>
|
---|
1779 | <li>Call this method (openSession) to have a machine locked for
|
---|
1780 | the current session.</li>
|
---|
1781 |
|
---|
1782 | <li>Obtain a mutable IMachine object from ISession::machine.</li>
|
---|
1783 |
|
---|
1784 | <li>Change the settings of the machine.</li>
|
---|
1785 |
|
---|
1786 | <li>Call IMachine::saveSettings.</li>
|
---|
1787 |
|
---|
1788 | <li>Close the session by calling <link to="#close" />.</li>
|
---|
1789 | </ol>
|
---|
1790 | </desc>
|
---|
1791 | <param name="session" type="ISession" dir="in">
|
---|
1792 | <desc>
|
---|
1793 | Session object that will represent the opened session after
|
---|
1794 | successful method invocation. This object must not represent
|
---|
1795 | the already open session.
|
---|
1796 | <note>
|
---|
1797 | This session will be automatically closed if the
|
---|
1798 | VirtualBox server is terminated for some reason.
|
---|
1799 | </note>
|
---|
1800 | </desc>
|
---|
1801 | </param>
|
---|
1802 | <param name="machineId" type="uuid" dir="in">
|
---|
1803 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1804 | </param>
|
---|
1805 | </method>
|
---|
1806 |
|
---|
1807 | <method name="openRemoteSession">
|
---|
1808 | <desc>
|
---|
1809 | Opens a new remote session with the given virtual
|
---|
1810 | machine.
|
---|
1811 |
|
---|
1812 | Opening a remote session causes the VirtualBox server to start a new
|
---|
1813 | process that opens a direct session with the given VM. The remote
|
---|
1814 | session provides some level of control over the VM execution to the
|
---|
1815 | caller (using the IConsole interface); however, within the remote
|
---|
1816 | session context, not all VM settings are available for modification.
|
---|
1817 |
|
---|
1818 | This operation can take some time, so the progress object
|
---|
1819 | is returned to let the caller be informed when the session is
|
---|
1820 | actually open. Until then, the remote session object remains in
|
---|
1821 | the closed state and accessing the machine or its console through
|
---|
1822 | it is invalid.
|
---|
1823 |
|
---|
1824 | Currently supported session types (values of the @a type
|
---|
1825 | argument) are:
|
---|
1826 | <ul>
|
---|
1827 | <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
|
---|
1828 | <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
|
---|
1829 | </ul>
|
---|
1830 |
|
---|
1831 | The @a environment argument is a string containing definitions of
|
---|
1832 | environment variables in the following format:
|
---|
1833 | @code
|
---|
1834 | NAME[=VALUE]\n
|
---|
1835 | NAME[=VALUE]\n
|
---|
1836 | ...
|
---|
1837 | @endcode
|
---|
1838 | where <tt>\\n</tt> is the new line character. These environment
|
---|
1839 | variables will be appended to the environment of the VirtualBox server
|
---|
1840 | process. If an environment variable exists both in the server process
|
---|
1841 | and in this list, the value from this list takes precedence over the
|
---|
1842 | server's variable. If the value of the environment variable is
|
---|
1843 | omitted, this variable will be removed from the resulting environment.
|
---|
1844 | If the environment string is @c null, the server environment is
|
---|
1845 | inherited by the started process as is.
|
---|
1846 |
|
---|
1847 | <note>
|
---|
1848 | It is an error to open a remote session with the machine
|
---|
1849 | that already has an open direct session or waits until the
|
---|
1850 | previous request to open the remote session is completed
|
---|
1851 | (see <link to="IMachine::sessionState"/>).
|
---|
1852 | </note>
|
---|
1853 |
|
---|
1854 | <note>
|
---|
1855 | The opened @a session will be automatically closed when
|
---|
1856 | the corresponding direct session dies or gets closed.
|
---|
1857 | </note>
|
---|
1858 |
|
---|
1859 | <see>openExistingSession</see>
|
---|
1860 | </desc>
|
---|
1861 | <param name="session" type="ISession" dir="in">
|
---|
1862 | <desc>
|
---|
1863 | Session object that will represent the opened remote session
|
---|
1864 | after successful method invocation (this object must not
|
---|
1865 | represent an already open session).
|
---|
1866 | </desc>
|
---|
1867 | </param>
|
---|
1868 | <param name="machineId" type="uuid" dir="in">
|
---|
1869 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1870 | </param>
|
---|
1871 | <param name="type" type="wstring" dir="in">
|
---|
1872 | <desc>
|
---|
1873 | Type of the remote session (case sensitive).
|
---|
1874 | </desc>
|
---|
1875 | </param>
|
---|
1876 | <param name="environment" type="wstring" dir="in">
|
---|
1877 | <desc>
|
---|
1878 | Environment to pass to the opened session (may be @c null).
|
---|
1879 | </desc>
|
---|
1880 | </param>
|
---|
1881 | <param name="progress" type="IProgress" dir="return">
|
---|
1882 | <desc>Progress object to track the operation completion.</desc>
|
---|
1883 | </param>
|
---|
1884 | </method>
|
---|
1885 |
|
---|
1886 | <method name="openExistingSession">
|
---|
1887 | <desc>
|
---|
1888 | Opens a new remote session with the virtual machine for
|
---|
1889 | which a direct session is already open.
|
---|
1890 |
|
---|
1891 | The remote session provides some level of control over the VM
|
---|
1892 | execution (using the IConsole interface) to the caller; however,
|
---|
1893 | within the remote session context, not all VM settings are available
|
---|
1894 | for modification.
|
---|
1895 |
|
---|
1896 | As opposed to <link to="#openRemoteSession()"/>, the number of
|
---|
1897 | remote sessions opened this way is not limited by the API
|
---|
1898 |
|
---|
1899 | <note>
|
---|
1900 | It is an error to open a remote session with the machine that
|
---|
1901 | doesn't have an open direct session.
|
---|
1902 | </note>
|
---|
1903 |
|
---|
1904 | <see>openRemoteSession</see>
|
---|
1905 | </desc>
|
---|
1906 | <param name="session" type="ISession" dir="in">
|
---|
1907 | <desc>
|
---|
1908 | Session object that will represent the open remote session
|
---|
1909 | after successful method invocation. This object must not
|
---|
1910 | represent an already open session.
|
---|
1911 | <note>
|
---|
1912 | This session will be automatically closed when the peer
|
---|
1913 | (direct) session dies or gets closed.
|
---|
1914 | </note>
|
---|
1915 | </desc>
|
---|
1916 | </param>
|
---|
1917 | <param name="machineId" type="uuid" dir="in">
|
---|
1918 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1919 | </param>
|
---|
1920 | </method>
|
---|
1921 |
|
---|
1922 | <method name="registerCallback">
|
---|
1923 | <desc>
|
---|
1924 | Registers a new global VirtualBox callback. The methods of the given
|
---|
1925 | callback object will be called by VirtualBox when an appropriate
|
---|
1926 | event occurs.
|
---|
1927 | </desc>
|
---|
1928 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
1929 | <desc>Callback object to register.</desc>
|
---|
1930 | </param>
|
---|
1931 | </method>
|
---|
1932 |
|
---|
1933 | <method name="unregisterCallback">
|
---|
1934 | <desc>
|
---|
1935 | Unregisters the previously registered global VirtualBox callback.
|
---|
1936 | </desc>
|
---|
1937 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
1938 | <desc>Callback object to unregister.</desc>
|
---|
1939 | </param>
|
---|
1940 | </method>
|
---|
1941 |
|
---|
1942 | <method name="waitForPropertyChange">
|
---|
1943 | <desc>
|
---|
1944 | Blocks the caller until any of the properties represented by the @a
|
---|
1945 | what argument changes the value or until the given timeout interval
|
---|
1946 | expires.
|
---|
1947 |
|
---|
1948 | The @a what argument is a comma separated list of propertiy masks that
|
---|
1949 | describe properties the caller is interested in. The property mask is
|
---|
1950 | a string in the following format:
|
---|
1951 |
|
---|
1952 | @code
|
---|
1953 | [[group.]subgroup.]name
|
---|
1954 | @endcode
|
---|
1955 |
|
---|
1956 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
1957 | or or more property group specifiers. Each element (group or name) in
|
---|
1958 | the property mask may be either a latin string or an asterisk symbol
|
---|
1959 | (@c "*") which is used to match any string for the given element. A
|
---|
1960 | property mask that doesn't contain asterisk symbols represents a
|
---|
1961 | single fully qualified property name.
|
---|
1962 |
|
---|
1963 | Groups in the fully qualified property name go from more generic (the
|
---|
1964 | left-most part) to more specific (the right-most part). The first
|
---|
1965 | element is usually a name of the object the property belongs to. The
|
---|
1966 | second element may be either a property name, or a child object name,
|
---|
1967 | or an index if the preceeding element names an object which is one of
|
---|
1968 | many objects of the same type. This way, property names form a
|
---|
1969 | hierarchy of properties. Here are some examples of property names:
|
---|
1970 |
|
---|
1971 | <table>
|
---|
1972 | <tr>
|
---|
1973 | <td><tt>VirtualBox.version</tt></td>
|
---|
1974 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
1975 | </tr>
|
---|
1976 | <tr>
|
---|
1977 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
1978 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
1979 | given UUID</td>
|
---|
1980 | </tr>
|
---|
1981 | </table>
|
---|
1982 |
|
---|
1983 | Most property names directly correspond to the properties of objects
|
---|
1984 | (components) provided by the VirtualBox library and may be used to
|
---|
1985 | track changes to these properties. However, there may be
|
---|
1986 | pseudo-property names that don't correspond to any existing object's
|
---|
1987 | property directly, as well as there may be object properties that
|
---|
1988 | don't have a corresponding property name that is understood by this
|
---|
1989 | method, and therefore changes to such properties cannot be
|
---|
1990 | tracked. See individual object's property descrcriptions to get a
|
---|
1991 | fully qualified property name that can be used with this method (if
|
---|
1992 | any).
|
---|
1993 |
|
---|
1994 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
1995 | single asterisk symbol) that can be used to match all properties.
|
---|
1996 | Below are more examples of property masks:
|
---|
1997 |
|
---|
1998 | <table>
|
---|
1999 | <tr>
|
---|
2000 | <td><tt>VirtualBox.*</tt></td>
|
---|
2001 | <td>Track all properties of the VirtualBox object</td>
|
---|
2002 | </tr>
|
---|
2003 | <tr>
|
---|
2004 | <td><tt>Machine.*.name</tt></td>
|
---|
2005 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
2006 | all registered virtual machines</td>
|
---|
2007 | </tr>
|
---|
2008 | </table>
|
---|
2009 |
|
---|
2010 | </desc>
|
---|
2011 | <param name="what" type="wstring" dir="in">
|
---|
2012 | <desc>Comma separated list of property masks.</desc>
|
---|
2013 | </param>
|
---|
2014 | <param name="timeout" type="unsigned long" dir="in">
|
---|
2015 | <desc>
|
---|
2016 | Wait timeout in milliseconds.
|
---|
2017 | Specify -1 for an indefinite wait.
|
---|
2018 | </desc>
|
---|
2019 | </param>
|
---|
2020 | <param name="changed" type="wstring" dir="out">
|
---|
2021 | <desc>
|
---|
2022 | Comma separated list of properties that have been changed and caused
|
---|
2023 | this method to return to the caller.
|
---|
2024 | </desc>
|
---|
2025 | </param>
|
---|
2026 | <param name="values" type="wstring" dir="out">
|
---|
2027 | <desc>Reserved, not currently used.</desc>
|
---|
2028 | </param>
|
---|
2029 | </method>
|
---|
2030 |
|
---|
2031 | </interface>
|
---|
2032 |
|
---|
2033 | <!--
|
---|
2034 | // IMachine
|
---|
2035 | /////////////////////////////////////////////////////////////////////////
|
---|
2036 | -->
|
---|
2037 |
|
---|
2038 | <enumerator
|
---|
2039 | name="IMachineEnumerator" type="IMachine"
|
---|
2040 | uuid="1b554149-be0a-4465-9252-9ff8f420af55"
|
---|
2041 | />
|
---|
2042 |
|
---|
2043 | <collection
|
---|
2044 | name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
|
---|
2045 | uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
|
---|
2046 | readonly="yes"
|
---|
2047 | />
|
---|
2048 |
|
---|
2049 | <interface
|
---|
2050 | name="IInternalMachineControl" extends="$unknown"
|
---|
2051 | uuid="1063893c-4c38-4304-aee9-73e072c181cc"
|
---|
2052 | internal="yes"
|
---|
2053 | wsmap="suppress"
|
---|
2054 | >
|
---|
2055 | <method name="updateState">
|
---|
2056 | <desc>
|
---|
2057 | Updates the VM state.
|
---|
2058 | <note>
|
---|
2059 | This operation will also update the settings file with
|
---|
2060 | the correct information about the saved state file
|
---|
2061 | and delete this file from disk when appropriate.
|
---|
2062 | </note>
|
---|
2063 | </desc>
|
---|
2064 | <param name="state" type="MachineState" dir="in"/>
|
---|
2065 | </method>
|
---|
2066 |
|
---|
2067 | <method name="getIPCId">
|
---|
2068 | <param name="id" type="wstring" dir="return"/>
|
---|
2069 | </method>
|
---|
2070 |
|
---|
2071 | <method name="runUSBDeviceFilters">
|
---|
2072 | <desc>
|
---|
2073 | Asks the server to run USB devices filters of the associated
|
---|
2074 | machine against the given USB device and tell if there is
|
---|
2075 | a match.
|
---|
2076 | <note>
|
---|
2077 | Intended to be used only for remote USB devices. Local
|
---|
2078 | ones don't require to call this method (this is done
|
---|
2079 | implicitly by the Host and USBProxyService).
|
---|
2080 | </note>
|
---|
2081 | </desc>
|
---|
2082 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
2083 | <param name="matched" type="boolean" dir="out"/>
|
---|
2084 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
2085 | </method>
|
---|
2086 |
|
---|
2087 | <method name="captureUSBDevice">
|
---|
2088 | <desc>
|
---|
2089 | Requests a capture of the given host USB device.
|
---|
2090 | When the request is completed, the VM process will
|
---|
2091 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
2092 | notification.
|
---|
2093 | </desc>
|
---|
2094 | <param name="id" type="uuid" dir="in"/>
|
---|
2095 | </method>
|
---|
2096 |
|
---|
2097 | <method name="detachUSBDevice">
|
---|
2098 | <desc>
|
---|
2099 | Notification that a VM is going to detach (done = false) or has
|
---|
2100 | already detached (done = true) the given USB device.
|
---|
2101 | When the done = true request is completed, the VM process will
|
---|
2102 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
2103 | notification.
|
---|
2104 | <note>
|
---|
2105 | In the done = true case, the server must run its own filters
|
---|
2106 | and filters of all VMs but this one on the detached device
|
---|
2107 | as if it were just attached to the host computer.
|
---|
2108 | </note>
|
---|
2109 | </desc>
|
---|
2110 | <param name="id" type="uuid" dir="in"/>
|
---|
2111 | <param name="done" type="boolean" dir="in"/>
|
---|
2112 | </method>
|
---|
2113 |
|
---|
2114 | <method name="autoCaptureUSBDevices">
|
---|
2115 | <desc>
|
---|
2116 | Requests a capture all matching USB devices attached to the host.
|
---|
2117 | When the request is completed, the VM process will
|
---|
2118 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
2119 | notification per every captured device.
|
---|
2120 | </desc>
|
---|
2121 | </method>
|
---|
2122 |
|
---|
2123 | <method name="detachAllUSBDevices">
|
---|
2124 | <desc>
|
---|
2125 | Notification that a VM that is being powered down. The done
|
---|
2126 | parameter indicates whether which stage of the power down
|
---|
2127 | we're at. When done = false the VM is announcing its
|
---|
2128 | intentions, while when done = true the VM is reporting
|
---|
2129 | what it has done.
|
---|
2130 | <note>
|
---|
2131 | In the done = true case, the server must run its own filters
|
---|
2132 | and filters of all VMs but this one on all detach devices as
|
---|
2133 | if they were just attached to the host computer.
|
---|
2134 | </note>
|
---|
2135 | </desc>
|
---|
2136 | <param name="done" type="boolean" dir="in"/>
|
---|
2137 | </method>
|
---|
2138 |
|
---|
2139 | <method name="onSessionEnd">
|
---|
2140 | <desc>
|
---|
2141 | Triggered by the given session object when the session is about
|
---|
2142 | to close normally.
|
---|
2143 | </desc>
|
---|
2144 | <param name="session" type="ISession" dir="in">
|
---|
2145 | <desc>Session that is being closed</desc>
|
---|
2146 | </param>
|
---|
2147 | <param name="progress" type="IProgress" dir="return">
|
---|
2148 | <desc>
|
---|
2149 | Used to wait until the corresponding machine is actually
|
---|
2150 | deassociated from the given session on the server.
|
---|
2151 | Returned only when this session is a direct one.
|
---|
2152 | </desc>
|
---|
2153 | </param>
|
---|
2154 | </method>
|
---|
2155 |
|
---|
2156 | <method name="beginSavingState">
|
---|
2157 | <desc>
|
---|
2158 | Called by the VM process to inform the server it wants to
|
---|
2159 | save the current state and stop the VM execution.
|
---|
2160 | </desc>
|
---|
2161 | <param name="progress" type="IProgress" dir="in">
|
---|
2162 | <desc>
|
---|
2163 | Progress object created by the VM process to wait until
|
---|
2164 | the state is saved.
|
---|
2165 | </desc>
|
---|
2166 | </param>
|
---|
2167 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
2168 | <desc>
|
---|
2169 | File path the VM process must save the execution state to.
|
---|
2170 | </desc>
|
---|
2171 | </param>
|
---|
2172 | </method>
|
---|
2173 |
|
---|
2174 | <method name="endSavingState">
|
---|
2175 | <desc>
|
---|
2176 | Called by the VM process to inform the server that saving
|
---|
2177 | the state previously requested by #beginSavingState is either
|
---|
2178 | successfully finished or there was a failure.
|
---|
2179 | </desc>
|
---|
2180 |
|
---|
2181 | <param name="success" type="boolean" dir="in">
|
---|
2182 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
2183 | </param>
|
---|
2184 | </method>
|
---|
2185 |
|
---|
2186 | <method name="adoptSavedState">
|
---|
2187 | <desc>
|
---|
2188 | Gets called by IConsole::adoptSavedState.
|
---|
2189 | </desc>
|
---|
2190 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
2191 | <desc>Path to the saved state file to adopt.</desc>
|
---|
2192 | </param>
|
---|
2193 | </method>
|
---|
2194 |
|
---|
2195 | <method name="beginTakingSnapshot">
|
---|
2196 | <desc>
|
---|
2197 | Called by the VM process to inform the server it wants to
|
---|
2198 | take a snapshot.
|
---|
2199 | </desc>
|
---|
2200 | <param name="initiator" type="IConsole" dir="in">
|
---|
2201 | <desc>The console object that initiated this call.</desc>
|
---|
2202 | </param>
|
---|
2203 | <param name="name" type="wstring" dir="in">
|
---|
2204 | <desc>Snapshot name</desc>
|
---|
2205 | </param>
|
---|
2206 | <param name="description" type="wstring" dir="in">
|
---|
2207 | <desc>Snapshot description</desc>
|
---|
2208 | </param>
|
---|
2209 | <param name="progress" type="IProgress" dir="in">
|
---|
2210 | <desc>
|
---|
2211 | Progress object created by the VM process to wait until
|
---|
2212 | the state is saved (only for online snapshots).
|
---|
2213 | </desc>
|
---|
2214 | </param>
|
---|
2215 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
2216 | <desc>
|
---|
2217 | File path the VM process must save the execution state to.
|
---|
2218 | </desc>
|
---|
2219 | </param>
|
---|
2220 | <param name="serverProgress" type="IProgress" dir="out">
|
---|
2221 | <desc>
|
---|
2222 | Progress object created by the server process to wait until
|
---|
2223 | the snapshot is taken (VDI diff creation, etc.).
|
---|
2224 | </desc>
|
---|
2225 | </param>
|
---|
2226 | </method>
|
---|
2227 |
|
---|
2228 | <method name="endTakingSnapshot">
|
---|
2229 | <desc>
|
---|
2230 | Called by the VM process to inform the server that the snapshot
|
---|
2231 | previously requested by #beginTakingSnapshot is either
|
---|
2232 | successfully taken or there was a failure.
|
---|
2233 | </desc>
|
---|
2234 |
|
---|
2235 | <param name="success" type="boolean" dir="in">
|
---|
2236 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
2237 | </param>
|
---|
2238 | </method>
|
---|
2239 |
|
---|
2240 | <method name="discardSnapshot">
|
---|
2241 | <desc>
|
---|
2242 | Gets called by IConsole::discardSnapshot.
|
---|
2243 | </desc>
|
---|
2244 | <param name="initiator" type="IConsole" dir="in">
|
---|
2245 | <desc>The console object that initiated this call.</desc>
|
---|
2246 | </param>
|
---|
2247 | <param name="id" type="uuid" dir="in">
|
---|
2248 | <desc>UUID of the snapshot to discard.</desc>
|
---|
2249 | </param>
|
---|
2250 | <param name="machineState" type="MachineState" dir="out">
|
---|
2251 | <desc>New machine state after this operation is started.</desc>
|
---|
2252 | </param>
|
---|
2253 | <param name="progress" type="IProgress" dir="return">
|
---|
2254 | <desc>Progress object to track the operation completion.</desc>
|
---|
2255 | </param>
|
---|
2256 | </method>
|
---|
2257 |
|
---|
2258 | <method name="discardCurrentState">
|
---|
2259 | <desc>
|
---|
2260 | Gets called by IConsole::discardCurrentState.
|
---|
2261 | </desc>
|
---|
2262 | <param name="initiator" type="IConsole" dir="in">
|
---|
2263 | <desc>The console object that initiated this call.</desc>
|
---|
2264 | </param>
|
---|
2265 | <param name="machineState" type="MachineState" dir="out">
|
---|
2266 | <desc>New machine state after this operation is started.</desc>
|
---|
2267 | </param>
|
---|
2268 | <param name="progress" type="IProgress" dir="return">
|
---|
2269 | <desc>Progress object to track the operation completion.</desc>
|
---|
2270 | </param>
|
---|
2271 | </method>
|
---|
2272 |
|
---|
2273 | <method name="discardCurrentSnapshotAndState">
|
---|
2274 | <desc>
|
---|
2275 | Gets called by IConsole::discardCurrentSnapshotAndState.
|
---|
2276 | </desc>
|
---|
2277 | <param name="initiator" type="IConsole" dir="in">
|
---|
2278 | <desc>The console object that initiated this call.</desc>
|
---|
2279 | </param>
|
---|
2280 | <param name="machineState" type="MachineState" dir="out">
|
---|
2281 | <desc>New machine state after this operation is started.</desc>
|
---|
2282 | </param>
|
---|
2283 | <param name="progress" type="IProgress" dir="return">
|
---|
2284 | <desc>Progress object to track the operation completion.</desc>
|
---|
2285 | </param>
|
---|
2286 | </method>
|
---|
2287 |
|
---|
2288 | </interface>
|
---|
2289 |
|
---|
2290 | <interface
|
---|
2291 | name="IBIOSSettings" extends="$unknown"
|
---|
2292 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
2293 | wsmap="struct"
|
---|
2294 | >
|
---|
2295 | <desc>
|
---|
2296 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
2297 | machine. Used in <link to="IMachine::BIOSSettings" />.
|
---|
2298 | </desc>
|
---|
2299 | <attribute name="logoFadeIn" type="boolean">
|
---|
2300 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
2301 | </attribute>
|
---|
2302 |
|
---|
2303 | <attribute name="logoFadeOut" type="boolean">
|
---|
2304 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
2305 | </attribute>
|
---|
2306 |
|
---|
2307 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
2308 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
2309 | </attribute>
|
---|
2310 |
|
---|
2311 | <attribute name="logoImagePath" type="wstring">
|
---|
2312 | <desc>Local file system path for external BIOS image.</desc>
|
---|
2313 | </attribute>
|
---|
2314 |
|
---|
2315 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
2316 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
2317 | </attribute>
|
---|
2318 |
|
---|
2319 | <attribute name="ACPIEnabled" type="boolean">
|
---|
2320 | <desc>ACPI support flag.</desc>
|
---|
2321 | </attribute>
|
---|
2322 |
|
---|
2323 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
2324 | <desc>
|
---|
2325 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
2326 | and support IRQs above 15.
|
---|
2327 | </desc>
|
---|
2328 | </attribute>
|
---|
2329 |
|
---|
2330 | <attribute name="timeOffset" type="long long">
|
---|
2331 | <desc>
|
---|
2332 | Offset in milliseconds from the host system time. This allows for
|
---|
2333 | guests running with a different system date/time than the host.
|
---|
2334 | It is equivalent to setting the system date/time in the BIOS other
|
---|
2335 | than it's not an absolute value but a relative one. Guest Additions
|
---|
2336 | time synchronization also honors this offset.
|
---|
2337 | </desc>
|
---|
2338 | </attribute>
|
---|
2339 |
|
---|
2340 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
2341 | <desc>
|
---|
2342 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
2343 | PXE trace information to the release log.
|
---|
2344 | </desc>
|
---|
2345 | </attribute>
|
---|
2346 |
|
---|
2347 | <attribute name="IDEControllerType" type="IDEControllerType">
|
---|
2348 | <desc>
|
---|
2349 | Type of the virtual IDE controller. Depending on this value,
|
---|
2350 | VirtualBox will provide different virtual IDE hardware
|
---|
2351 | devices to the guest.
|
---|
2352 | </desc>
|
---|
2353 | </attribute>
|
---|
2354 |
|
---|
2355 | </interface>
|
---|
2356 |
|
---|
2357 | <interface
|
---|
2358 | name="IMachine" extends="$unknown"
|
---|
2359 | uuid="2830ce8c-be5b-4660-b8d5-65d913005b4f"
|
---|
2360 | wsmap="managed"
|
---|
2361 | >
|
---|
2362 | <desc>
|
---|
2363 | The IMachine interface represents a virtual machine, or guest, created
|
---|
2364 | in VirtualBox.
|
---|
2365 |
|
---|
2366 | This interface is used in two contexts. First of all, a collection of
|
---|
2367 | objects implementing this interface is stored in the
|
---|
2368 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
2369 | machines that are currently registered with this VirtualBox
|
---|
2370 | installation. Also, once a session has been opened for the given virtual
|
---|
2371 | machine (e.g. the virtual machine is running), the machine object
|
---|
2372 | associated with the open session can be queried from the session object;
|
---|
2373 | see <link to="ISession"/> for details.
|
---|
2374 |
|
---|
2375 | The main role of this interface is to expose the settings of the virtual
|
---|
2376 | machine and provide methods to change various aspects of the virtual
|
---|
2377 | machine's configuration. For machine objects stored in the
|
---|
2378 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
2379 | read-only unless explicitely stated otherwise in individual attribute
|
---|
2380 | and method descriptions. In order to change a machine setting, a session
|
---|
2381 | for this machine must be opened using one of
|
---|
2382 | <link to="IVirtualBox::openSession"/>,
|
---|
2383 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
2384 | <link to="IVirtualBox::openExistingSession"/> methdods. After the
|
---|
2385 | session has been successfully opened, a mutable machine object needs to
|
---|
2386 | be queried from the session object and then the desired settings changes
|
---|
2387 | can be applied to the returned object using IMachine attributes and
|
---|
2388 | methods. See the ISession interface description for more information
|
---|
2389 | about sessions.
|
---|
2390 |
|
---|
2391 | Note that the IMachine interface does not provide methods to control
|
---|
2392 | virtual machine execution (such as start the machine, or power it
|
---|
2393 | down) -- these methods are grouped in a separate IConsole
|
---|
2394 | interface. Refer to the IConsole interface description to get more
|
---|
2395 | information about this topic.
|
---|
2396 |
|
---|
2397 | <see>ISession, IConsole</see>
|
---|
2398 | </desc>
|
---|
2399 |
|
---|
2400 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
2401 | <desc>Associated parent obect.</desc>
|
---|
2402 | </attribute>
|
---|
2403 |
|
---|
2404 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
2405 | <desc>
|
---|
2406 | Whether this virtual machine is currently accessible or not.
|
---|
2407 |
|
---|
2408 | The machine is considered to be inaccessible when:
|
---|
2409 | <ul>
|
---|
2410 | <li>It is a registered virtual machine, and
|
---|
2411 | </li>
|
---|
2412 | <li>Its settings file is inaccessible (for example, it is
|
---|
2413 | located on a network share that is not accessible during
|
---|
2414 | VirtualBox startup, or becomes inaccessible later, or if
|
---|
2415 | the settings file can be read but is invalid).
|
---|
2416 | </li>
|
---|
2417 | </ul>
|
---|
2418 |
|
---|
2419 | Otherwise, the value of this property is always <tt>true</tt>.
|
---|
2420 |
|
---|
2421 | Every time this property is read, the accessibility state of
|
---|
2422 | this machine is re-evaluated. If the returned value is |false|,
|
---|
2423 | the <link to="#accessError"/> property may be used to get the
|
---|
2424 | detailed error information describing the reason of
|
---|
2425 | inaccessibility.
|
---|
2426 |
|
---|
2427 | When the machine is inaccessible, only the following properties
|
---|
2428 | can be used on it:
|
---|
2429 | <ul>
|
---|
2430 | <li><link to="#parent"/></li>
|
---|
2431 | <li><link to="#id"/></li>
|
---|
2432 | <li><link to="#settingsFilePath"/></li>
|
---|
2433 | <li><link to="#accessible"/></li>
|
---|
2434 | <li><link to="#accessError"/></li>
|
---|
2435 | </ul>
|
---|
2436 |
|
---|
2437 | An attempt to access any other property or method will return
|
---|
2438 | an error.
|
---|
2439 |
|
---|
2440 | The only possible action you can perform on an inaccessible
|
---|
2441 | machine is to unregister it using the
|
---|
2442 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
2443 | for the accessibility state once more by querying this
|
---|
2444 | property).
|
---|
2445 |
|
---|
2446 | <note>
|
---|
2447 | In the current implementation, once this property returns
|
---|
2448 | <tt>true</tt>, the machine will never become inaccessible
|
---|
2449 | later, even if its settings file cannot be successfully
|
---|
2450 | read/written any more (at least, until the VirtualBox
|
---|
2451 | server is restarted). This limitation may be removed in
|
---|
2452 | future releases.
|
---|
2453 | </note>
|
---|
2454 | </desc>
|
---|
2455 | </attribute>
|
---|
2456 |
|
---|
2457 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
2458 | <desc>
|
---|
2459 | Error information describing the reason of machine
|
---|
2460 | inaccessibility.
|
---|
2461 |
|
---|
2462 | Reading this property is only valid after the last call to
|
---|
2463 | <link to="#accessible"/> returned <tt>false</tt> (i.e. the
|
---|
2464 | machine is currently unaccessible). Otherwise, a null
|
---|
2465 | IVirtualBoxErrorInfo object will be returned.
|
---|
2466 | </desc>
|
---|
2467 | </attribute>
|
---|
2468 |
|
---|
2469 | <attribute name="name" type="wstring">
|
---|
2470 | <desc>
|
---|
2471 | Name of the virtual machine.
|
---|
2472 |
|
---|
2473 | Besides being used for human-readable identification purposes
|
---|
2474 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
2475 | as a name of the machine's settings file and as a name of the
|
---|
2476 | subdirectory this settings file resides in. Thus, every time you
|
---|
2477 | change the value of this property, the settings file will be
|
---|
2478 | renamed once you call <link to="#saveSettings()"/> to confirm the
|
---|
2479 | change. The containing subdirectory will be also renamed, but
|
---|
2480 | only if it has exactly the same name as the settings file
|
---|
2481 | itself prior to changing this property (for backward compatibility
|
---|
2482 | with previous API releases). The above implies the following
|
---|
2483 | limitations:
|
---|
2484 | <ul>
|
---|
2485 | <li>The machine name cannot be empty.</li>
|
---|
2486 | <li>The machine name can contain only characters that are valid
|
---|
2487 | file name characters according to the rules of the file
|
---|
2488 | system used to store VirtualBox configuration.</li>
|
---|
2489 | <li>You cannot have two or more machines with the same name
|
---|
2490 | if they use the same subdirectory for storing the machine
|
---|
2491 | settings files.</li>
|
---|
2492 | <li>You cannot change the name of the machine if it is running,
|
---|
2493 | or if any file in the directory containing the settings file
|
---|
2494 | is being used by another running machine or by any other
|
---|
2495 | process in the host operating system at a time when
|
---|
2496 | <link to="#saveSettings()"/> is called.
|
---|
2497 | </li>
|
---|
2498 | </ul>
|
---|
2499 | If any of the above limitations are hit, <link to="#saveSettings()"/>
|
---|
2500 | will return an appropriate error message explaining the exact
|
---|
2501 | reason and the changes you made to this machine will not be
|
---|
2502 | saved.
|
---|
2503 | <note>
|
---|
2504 | For "legacy" machines created using the
|
---|
2505 | <link to="IVirtualBox::createLegacyMachine()"/> call,
|
---|
2506 | the above naming limitations do not apply because the
|
---|
2507 | machine name does not affect the settings file name.
|
---|
2508 | The settings file name remains the same as it was specified
|
---|
2509 | during machine creation and never changes.
|
---|
2510 | </note>
|
---|
2511 | </desc>
|
---|
2512 | </attribute>
|
---|
2513 |
|
---|
2514 | <attribute name="description" type="wstring">
|
---|
2515 | <desc>
|
---|
2516 | Description of the virtual machine.
|
---|
2517 |
|
---|
2518 | The description attribute can contain any text and is
|
---|
2519 | typically used to describe the hardware and software
|
---|
2520 | configuration of the virtual machine in detail (i.e. network
|
---|
2521 | settings, versions of the installed software and so on).
|
---|
2522 | </desc>
|
---|
2523 | </attribute>
|
---|
2524 |
|
---|
2525 | <attribute name="id" type="uuid" readonly="yes">
|
---|
2526 | <desc>UUID of the virtual machine.</desc>
|
---|
2527 | </attribute>
|
---|
2528 |
|
---|
2529 | <attribute name="OSTypeId" type="wstring">
|
---|
2530 | <desc>
|
---|
2531 | User-defined identifier of the Guest OS type.
|
---|
2532 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
2533 | an IGuestOSType object representing details about the given
|
---|
2534 | Guest OS type.
|
---|
2535 | <note>
|
---|
2536 | This value may differ from the value returned by
|
---|
2537 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
2538 | installed to the guest OS.
|
---|
2539 | </note>
|
---|
2540 | </desc>
|
---|
2541 | </attribute>
|
---|
2542 |
|
---|
2543 | <attribute name="memorySize" type="unsigned long">
|
---|
2544 | <desc>System memory size in megabytes.</desc>
|
---|
2545 | </attribute>
|
---|
2546 |
|
---|
2547 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
2548 | <desc>Initial memory balloon size in megabytes.</desc>
|
---|
2549 | </attribute>
|
---|
2550 |
|
---|
2551 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
2552 | <desc>Initial interval to update guest statistics in seconds.</desc>
|
---|
2553 | </attribute>
|
---|
2554 |
|
---|
2555 | <attribute name="VRAMSize" type="unsigned long">
|
---|
2556 | <desc>Video memory size in megabytes.</desc>
|
---|
2557 | </attribute>
|
---|
2558 |
|
---|
2559 | <attribute name="MonitorCount" type="unsigned long">
|
---|
2560 | <desc>
|
---|
2561 | Number of virtual monitors.
|
---|
2562 | <note>
|
---|
2563 | Only effective on Windows XP and later guests with
|
---|
2564 | Guest Additions installed.
|
---|
2565 | </note>
|
---|
2566 | </desc>
|
---|
2567 | </attribute>
|
---|
2568 |
|
---|
2569 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
2570 | <desc>Object containing all BIOS settings.</desc>
|
---|
2571 | </attribute>
|
---|
2572 |
|
---|
2573 | <attribute name="HWVirtExEnabled" type="TSBool">
|
---|
2574 | <desc>
|
---|
2575 | This setting determines whether VirtualBox will try to make use of
|
---|
2576 | the host CPU's hardware virtualization extensions such as Intel VT-x
|
---|
2577 | and AMD SVM. Note that in case such extensions are not available,
|
---|
2578 | they will not be used.
|
---|
2579 | </desc>
|
---|
2580 | </attribute>
|
---|
2581 |
|
---|
2582 | <attribute name="snapshotFolder" type="wstring">
|
---|
2583 | <desc>
|
---|
2584 | Full path to the directory used to store snapshot data
|
---|
2585 | (difrerencing hard disks and saved state files) of this machine.
|
---|
2586 |
|
---|
2587 | The initial value of this property is
|
---|
2588 | <tt><</tt><link to="#settingsFilePath">
|
---|
2589 | path_to_settings_file</link><tt>>/<</tt>
|
---|
2590 | <link to="#id">machine_uuid</link>
|
---|
2591 | <tt>></tt>.
|
---|
2592 |
|
---|
2593 | Currently, it is an error to try to change this property on
|
---|
2594 | a machine that has snapshots (because this would require to
|
---|
2595 | move possibly large files to a different location).
|
---|
2596 | A separate method will be available for this purpose later.
|
---|
2597 |
|
---|
2598 | <note>
|
---|
2599 | Setting this property to <tt>null</tt> will restore the
|
---|
2600 | initial value.
|
---|
2601 | </note>
|
---|
2602 | <note>
|
---|
2603 | When setting this property, the specified path can be
|
---|
2604 | absolute (full path) or relative to the directory where the
|
---|
2605 | <link to="#settingsFilePath">machine settings file</link>
|
---|
2606 | is located. When reading this property, a full path is
|
---|
2607 | always returned.
|
---|
2608 | </note>
|
---|
2609 | <note>
|
---|
2610 | The specified path may not exist, it will be created
|
---|
2611 | when necessary.
|
---|
2612 | </note>
|
---|
2613 | </desc>
|
---|
2614 | </attribute>
|
---|
2615 |
|
---|
2616 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
2617 | <desc>VRDP server object.</desc>
|
---|
2618 | </attribute>
|
---|
2619 |
|
---|
2620 | <attribute name="hardDiskAttachments" type="IHardDiskAttachmentCollection" readonly="yes">
|
---|
2621 | <desc>Collection of hard disks attached to the machine.</desc>
|
---|
2622 | </attribute>
|
---|
2623 |
|
---|
2624 | <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
|
---|
2625 | <desc>Associated DVD drive object.</desc>
|
---|
2626 | </attribute>
|
---|
2627 |
|
---|
2628 | <attribute name="FloppyDrive" type="IFloppyDrive" readonly="yes">
|
---|
2629 | <desc>Associated floppy drive object.</desc>
|
---|
2630 | </attribute>
|
---|
2631 |
|
---|
2632 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
2633 | <desc>
|
---|
2634 | Associated USB controller object.
|
---|
2635 |
|
---|
2636 | <note>
|
---|
2637 | This method may set a @ref com_warnings "warning result code".
|
---|
2638 | </note>
|
---|
2639 | <note>
|
---|
2640 | If USB functionality is not avaliable in the given edition of
|
---|
2641 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
2642 | </note>
|
---|
2643 | </desc>
|
---|
2644 | </attribute>
|
---|
2645 |
|
---|
2646 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
2647 | <desc>Associated audio adapter, always present.</desc>
|
---|
2648 | </attribute>
|
---|
2649 |
|
---|
2650 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
2651 | <desc>
|
---|
2652 | Full name of the file containing machine settings data.
|
---|
2653 | </desc>
|
---|
2654 | </attribute>
|
---|
2655 |
|
---|
2656 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
2657 | <desc>
|
---|
2658 | Whether the settings of this machine have been modified
|
---|
2659 | (but neither yet saved nor discarded).
|
---|
2660 | <note>
|
---|
2661 | Reading this property is only valid on instances returned
|
---|
2662 | by <link to="ISession::machine"/> and on new machines
|
---|
2663 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
2664 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
2665 | yet registered, or on unregistered machines after calling
|
---|
2666 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
2667 | cases, the settigs can never be modified.
|
---|
2668 | </note>
|
---|
2669 | <note>
|
---|
2670 | For newly created unregistered machines, the value of this
|
---|
2671 | property is always TRUE until <link to="#saveSettings"/>
|
---|
2672 | is called (no matter if any machine settings have been
|
---|
2673 | changed after the creation or not). For opened machines
|
---|
2674 | the value is set to FALSE (and then follows to normal rules).
|
---|
2675 | </note>
|
---|
2676 | </desc>
|
---|
2677 | </attribute>
|
---|
2678 |
|
---|
2679 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
2680 | <desc>Current session state for this machine.</desc>
|
---|
2681 | </attribute>
|
---|
2682 |
|
---|
2683 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
2684 | <desc>
|
---|
2685 | Type of the session. If <link to="#sessionState"/> is
|
---|
2686 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
2687 | same value as passed to the
|
---|
2688 | <link to="IVirtualBox::openRemoteSession()"/> method in the @a
|
---|
2689 | type parameter. If the session was opened directly using
|
---|
2690 | <link to="IVirtualBox::openSession()"/>, or if
|
---|
2691 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
2692 | attribute is @c null.
|
---|
2693 | </desc>
|
---|
2694 | </attribute>
|
---|
2695 |
|
---|
2696 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
2697 | <desc>
|
---|
2698 | Identifier of the session process. This attribute contains the
|
---|
2699 | platform-dependent identifier of the process that has opened a
|
---|
2700 | direct session for this machine using the
|
---|
2701 | <link to="IVirtualBox::openSession()"/> call. The returned value
|
---|
2702 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
2703 | SessionClosing (i.e. a session is currently open or being
|
---|
2704 | closed) by the time this property is read.
|
---|
2705 | </desc>
|
---|
2706 | </attribute>
|
---|
2707 |
|
---|
2708 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
2709 | <desc>Current execution state of this machine.</desc>
|
---|
2710 | </attribute>
|
---|
2711 |
|
---|
2712 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
2713 | <desc>
|
---|
2714 | Time stamp of the last execution state change,
|
---|
2715 | in milliseconds since 1970-01-01 UTC.
|
---|
2716 | </desc>
|
---|
2717 | </attribute>
|
---|
2718 |
|
---|
2719 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
2720 | <desc>
|
---|
2721 | Full path to the file that stores the execution state of
|
---|
2722 | the machine when it is in the <link to="MachineState::Saved"/>
|
---|
2723 | state.
|
---|
2724 | <note>
|
---|
2725 | When the machine is not in the Saved state, this attribute
|
---|
2726 | <tt>null</tt>.
|
---|
2727 | </note>
|
---|
2728 | </desc>
|
---|
2729 | </attribute>
|
---|
2730 |
|
---|
2731 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
2732 | <desc>
|
---|
2733 | Full path to the folder that stores a set of rotated log files
|
---|
2734 | recorded during machine execution. The most recent log file is
|
---|
2735 | named <tt>VBox.log</tt>, the previous log file is
|
---|
2736 | named <tt>VBox.log.1</tt> and so on (upto <tt>VBox.log.3</tt>
|
---|
2737 | in the current version).
|
---|
2738 | </desc>
|
---|
2739 | </attribute>
|
---|
2740 |
|
---|
2741 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
2742 | <desc>
|
---|
2743 | Current snapshot of this machine.
|
---|
2744 | <note>
|
---|
2745 | A <tt>null</tt> object is returned if the machine doesn't
|
---|
2746 | have snapshots.
|
---|
2747 | </note>
|
---|
2748 | <see><link to="ISnapshot"/></see>
|
---|
2749 | </desc>
|
---|
2750 | </attribute>
|
---|
2751 |
|
---|
2752 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
2753 | <desc>
|
---|
2754 | Number of snapshots taken on this machine. Zero means the
|
---|
2755 | machine doesn't have any snapshots.
|
---|
2756 | </desc>
|
---|
2757 | </attribute>
|
---|
2758 |
|
---|
2759 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
2760 | <desc>
|
---|
2761 | Returns <tt>true</tt> if the current state of the machine is not
|
---|
2762 | identical to the state stored in the current snapshot.
|
---|
2763 |
|
---|
2764 | The current state is identical to the current snapshot right
|
---|
2765 | after one of the following calls are made:
|
---|
2766 | <ul>
|
---|
2767 | <li><link to="IConsole::discardCurrentState"/> or
|
---|
2768 | <link to="IConsole::discardCurrentSnapshotAndState"/>
|
---|
2769 | </li>
|
---|
2770 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
2771 | powered off or saved machine, for which
|
---|
2772 | <link to="#settingsModified"/> returns <tt>false</tt>)
|
---|
2773 | </li>
|
---|
2774 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
2775 | </li>
|
---|
2776 | </ul>
|
---|
2777 |
|
---|
2778 | The current state remains identical until one of the following
|
---|
2779 | happens:
|
---|
2780 | <ul>
|
---|
2781 | <li>settings of the machine are changed</li>
|
---|
2782 | <li>the saved state is discarded</li>
|
---|
2783 | <li>the current snapshot is discarded</li>
|
---|
2784 | <li>an attempt to execute the machine is made</li>
|
---|
2785 | </ul>
|
---|
2786 |
|
---|
2787 | <note>
|
---|
2788 | For machines that don't have snapshots, this property is
|
---|
2789 | always <tt>false</tt>.
|
---|
2790 | </note>
|
---|
2791 | </desc>
|
---|
2792 | </attribute>
|
---|
2793 |
|
---|
2794 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
2795 | <desc>
|
---|
2796 | Collection of shared folders for this machine (permanent shared
|
---|
2797 | folders). These folders are shared automatically at machine startup
|
---|
2798 | and available only to the guest OS installed within this machine.
|
---|
2799 |
|
---|
2800 | New shared folders are added to the collection using
|
---|
2801 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
2802 | removed using <link to="#removeSharedFolder"/>.
|
---|
2803 | </desc>
|
---|
2804 | </attribute>
|
---|
2805 |
|
---|
2806 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
2807 | <desc>
|
---|
2808 | Synchronization mode between the host OS clipboard
|
---|
2809 | and the guest OS clipboard.
|
---|
2810 | </desc>
|
---|
2811 | </attribute>
|
---|
2812 |
|
---|
2813 | <method name="setBootOrder">
|
---|
2814 | <desc>
|
---|
2815 | Puts the given device to the specified position in
|
---|
2816 | the boot order.
|
---|
2817 |
|
---|
2818 | To indicate that no device is associated with the given position,
|
---|
2819 | <link to="DeviceType::Null"/> should be used.
|
---|
2820 |
|
---|
2821 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
2822 | </desc>
|
---|
2823 | <param name="position" type="unsigned long" dir="in">
|
---|
2824 | <desc>
|
---|
2825 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
2826 | devices the machine can boot from, as returned by
|
---|
2827 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
2828 | </desc>
|
---|
2829 | </param>
|
---|
2830 | <param name="device" type="DeviceType" dir="in">
|
---|
2831 | <desc>
|
---|
2832 | The type of the device used to boot at the given position.
|
---|
2833 | </desc>
|
---|
2834 | </param>
|
---|
2835 | </method>
|
---|
2836 |
|
---|
2837 | <method name="getBootOrder" const="yes">
|
---|
2838 | <desc>
|
---|
2839 | Returns the device type that occupies the specified
|
---|
2840 | position in the boot order.
|
---|
2841 |
|
---|
2842 | @todo [remove?]
|
---|
2843 | If the machine can have more than one device of the returned type
|
---|
2844 | (such as hard disks), then a separate method should be used to
|
---|
2845 | retrieve the individual device that occupies the given position.
|
---|
2846 |
|
---|
2847 | If here are no devices at the given position, then
|
---|
2848 | <link to="DeviceType::Null"/> is returned.
|
---|
2849 |
|
---|
2850 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
2851 | </desc>
|
---|
2852 | <param name="order" type="unsigned long" dir="in">
|
---|
2853 | <desc>
|
---|
2854 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
2855 | devices the machine can boot from, as returned by
|
---|
2856 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
2857 | </desc>
|
---|
2858 | </param>
|
---|
2859 | <param name="device" type="DeviceType" dir="return">
|
---|
2860 | <desc>
|
---|
2861 | Device at the given position.
|
---|
2862 | </desc>
|
---|
2863 | </param>
|
---|
2864 | </method>
|
---|
2865 |
|
---|
2866 | <method name="attachHardDisk">
|
---|
2867 | <desc>
|
---|
2868 |
|
---|
2869 | Attaches a virtual hard disk identified by the given UUID to the
|
---|
2870 | given device slot of the given controller. The specified device
|
---|
2871 | must not have another disk attached and the given hard disk must
|
---|
2872 | not be already attached to this machine.
|
---|
2873 |
|
---|
2874 | See <link to="IHardDisk"/> for detailed information about
|
---|
2875 | attaching hard disks.
|
---|
2876 |
|
---|
2877 | <note>You cannot attach a hard disk to a running machine. Also,
|
---|
2878 | you cannot attach a hard disk to a newly created machine until
|
---|
2879 | it is registered.</note>
|
---|
2880 |
|
---|
2881 | <note>Attaching a hard disk to a machine creates a <i>lazy</i>
|
---|
2882 | attachment. In particular, no differeincing images are
|
---|
2883 | actually created until <link to="#saveSettings"/> is called to
|
---|
2884 | commit all changed settings.</note>
|
---|
2885 |
|
---|
2886 | </desc>
|
---|
2887 | <param name="diskID" type="uuid" dir="in">
|
---|
2888 | <desc>UUID of the hard disk to attach.</desc>
|
---|
2889 | </param>
|
---|
2890 | <param name="controller" type="DiskControllerType" dir="in">
|
---|
2891 | <desc>Controller to attach the hard disk to.</desc>
|
---|
2892 | </param>
|
---|
2893 | <param name="device" type="long" dir="in">
|
---|
2894 | <desc>Device slot to attach the hard disk to.</desc>
|
---|
2895 | </param>
|
---|
2896 | </method>
|
---|
2897 |
|
---|
2898 | <method name="getHardDisk" const="yes">
|
---|
2899 | <desc>
|
---|
2900 | Returns the hard disk attached to the
|
---|
2901 | given controller under the specified device number.
|
---|
2902 | </desc>
|
---|
2903 | <param name="controller" type="DiskControllerType" dir="in"/>
|
---|
2904 | <param name="deviceNumber" type="long" dir="in"/>
|
---|
2905 | <param name="hardDisk" type="IHardDisk" dir="return"/>
|
---|
2906 | </method>
|
---|
2907 |
|
---|
2908 | <method name="detachHardDisk">
|
---|
2909 | <desc>
|
---|
2910 |
|
---|
2911 | Detaches the hard disk drive attached to the given device slot
|
---|
2912 | of the given controller.
|
---|
2913 |
|
---|
2914 | See <link to="IHardDisk"/> for detailed information about
|
---|
2915 | attaching hard disks.
|
---|
2916 |
|
---|
2917 | <note>You cannot detach a hard disk from a running
|
---|
2918 | machine.</note>
|
---|
2919 |
|
---|
2920 | <note>
|
---|
2921 | Detaching a hard disk from a machine creates a <i>lazy</i>
|
---|
2922 | detachment. In particular, if the detached hard disk is a
|
---|
2923 | differencing hard disk, it is not actually deleted until
|
---|
2924 | <link to="#saveSettings"/> is called to commit all changed settings.
|
---|
2925 | Keep in mind, that doing <link to="#saveSettings"/> will
|
---|
2926 | <b>physically delete</b> all detached differencing hard disks,
|
---|
2927 | so be careful.
|
---|
2928 | </note>
|
---|
2929 |
|
---|
2930 | </desc>
|
---|
2931 | <param name="controller" type="DiskControllerType" dir="in">
|
---|
2932 | <desc>Controller to dettach the hard disk from.</desc>
|
---|
2933 | </param>
|
---|
2934 | <param name="device" type="long" dir="in">
|
---|
2935 | <desc>Device slot to dettach the hard disk from.</desc>
|
---|
2936 | </param>
|
---|
2937 | </method>
|
---|
2938 |
|
---|
2939 | <method name="getNetworkAdapter" const="yes">
|
---|
2940 | <desc>
|
---|
2941 | Returns the network adapter associated with the given slot.
|
---|
2942 | Slots are numbered sequentially, starting with zero. The total
|
---|
2943 | number of adapters per every machine is defined by the
|
---|
2944 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
2945 | so the maximum slot number is one less than that property's value.
|
---|
2946 | </desc>
|
---|
2947 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2948 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
2949 | </method>
|
---|
2950 |
|
---|
2951 | <method name="getSerialPort" const="yes">
|
---|
2952 | <desc>
|
---|
2953 | Returns the serial port associated with the given slot.
|
---|
2954 | Slots are numbered sequentially, starting with zero. The total
|
---|
2955 | number of serial ports per every machine is defined by the
|
---|
2956 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
2957 | so the maximum slot number is one less than that property's value.
|
---|
2958 | </desc>
|
---|
2959 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2960 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
2961 | </method>
|
---|
2962 |
|
---|
2963 | <method name="getParallelPort" const="yes">
|
---|
2964 | <desc>
|
---|
2965 | Returns the parallel port associated with the given slot.
|
---|
2966 | Slots are numbered sequentially, starting with zero. The total
|
---|
2967 | number of parallel ports per every machine is defined by the
|
---|
2968 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
2969 | so the maximum slot number is one less than that property's value.
|
---|
2970 | </desc>
|
---|
2971 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2972 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
2973 | </method>
|
---|
2974 |
|
---|
2975 | <method name="getNextExtraDataKey">
|
---|
2976 | <desc>
|
---|
2977 | Returns the machine-specific extra data key name following the
|
---|
2978 | supplied key.
|
---|
2979 |
|
---|
2980 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
2981 | returned in @a nextKey if the supplied key is the last key. When
|
---|
2982 | supplying @c NULL for the @a key, the first key item is returned in @a
|
---|
2983 | nextKey (if there is any). @a nextValue is an optional parameter and
|
---|
2984 | if supplied, the next key's value is returned in it.
|
---|
2985 | </desc>
|
---|
2986 | <param name="key" type="wstring" dir="in">
|
---|
2987 | <desc>Name of the data key to follow.</desc>
|
---|
2988 | </param>
|
---|
2989 | <param name="nextKey" type="wstring" dir="out">
|
---|
2990 | <desc>Name of the next data key.</desc>
|
---|
2991 | </param>
|
---|
2992 | <param name="nextValue" type="wstring" dir="out">
|
---|
2993 | <desc>Value of the next data key.</desc>
|
---|
2994 | </param>
|
---|
2995 | </method>
|
---|
2996 |
|
---|
2997 | <method name="getExtraData">
|
---|
2998 | <desc>
|
---|
2999 | Returns associated machine-specific extra data.
|
---|
3000 |
|
---|
3001 | If the reuqested data @a key does not exist, this function will
|
---|
3002 | succeed and return @c NULL in the @a value argument.
|
---|
3003 | </desc>
|
---|
3004 | <param name="key" type="wstring" dir="in">
|
---|
3005 | <desc>Name of the data key to get.</desc>
|
---|
3006 | </param>
|
---|
3007 | <param name="value" type="wstring" dir="return">
|
---|
3008 | <desc>Value of the requested data key.</desc>
|
---|
3009 | </param>
|
---|
3010 | </method>
|
---|
3011 |
|
---|
3012 | <method name="setExtraData">
|
---|
3013 | <desc>
|
---|
3014 | Sets associated machine-specific extra data.
|
---|
3015 |
|
---|
3016 | If you pass @c NULL as a key @a vaule, the given @a key will be
|
---|
3017 | deleted.
|
---|
3018 |
|
---|
3019 | <note>
|
---|
3020 | Before performing the actual data change, this method will ask all
|
---|
3021 | registered callbacks using the
|
---|
3022 | <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
|
---|
3023 | notification for a permission. If one of the callbacks refuses the
|
---|
3024 | new value, the change will not be performed.
|
---|
3025 | </note>
|
---|
3026 | <note>
|
---|
3027 | On success, the
|
---|
3028 | <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
|
---|
3029 | is called to inform all registered callbacks about a successful data
|
---|
3030 | change.
|
---|
3031 | </note>
|
---|
3032 | <note>
|
---|
3033 | This method can be called outside the machine session and therefore
|
---|
3034 | it's a caller's responsibility to handle possible race conditions
|
---|
3035 | when several clients change the same key at the same time.
|
---|
3036 | </note>
|
---|
3037 | </desc>
|
---|
3038 | <param name="key" type="wstring" dir="in">
|
---|
3039 | <desc>Name of the data key to set.</desc>
|
---|
3040 | </param>
|
---|
3041 | <param name="value" type="wstring" dir="in">
|
---|
3042 | <desc>Value to assign to the key.</desc>
|
---|
3043 | </param>
|
---|
3044 | </method>
|
---|
3045 |
|
---|
3046 | <method name="saveSettings">
|
---|
3047 | <desc>
|
---|
3048 | Saves any changes to machine settings made since the session
|
---|
3049 | has been opened or a new machine has been created, or since the
|
---|
3050 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
3051 | For registered machines, new settings become visible to all
|
---|
3052 | other VirtualBox clients after successful invocation of this
|
---|
3053 | method.
|
---|
3054 | <note>
|
---|
3055 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
3056 | notification event after the configuration has been successfully
|
---|
3057 | saved (only for registered machines).
|
---|
3058 | </note>
|
---|
3059 | <note>
|
---|
3060 | Calling this method is only valid on instances returned
|
---|
3061 | by <link to="ISession::machine"/> and on new machines
|
---|
3062 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
3063 | yet registered, or on unregistered machines after calling
|
---|
3064 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
3065 | </note>
|
---|
3066 | </desc>
|
---|
3067 | </method>
|
---|
3068 |
|
---|
3069 | <method name="discardSettings">
|
---|
3070 | <desc>
|
---|
3071 | Discards any changes to the machine settings made since the session
|
---|
3072 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
3073 | or <link to="#discardSettings"/>.
|
---|
3074 | <note>
|
---|
3075 | Calling this method is only valid on instances returned
|
---|
3076 | by <link to="ISession::machine"/> and on new machines
|
---|
3077 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
3078 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
3079 | yet registered, or on unregistered machines after calling
|
---|
3080 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
3081 | </note>
|
---|
3082 | </desc>
|
---|
3083 | </method>
|
---|
3084 |
|
---|
3085 | <method name="deleteSettings">
|
---|
3086 | <desc>
|
---|
3087 | Deletes the settings file of this machine from disk.
|
---|
3088 | The machine must not be registered in order for this operation
|
---|
3089 | to succeed.
|
---|
3090 | <note>
|
---|
3091 | <link to="#settingsModified"/> will return TRUE after this
|
---|
3092 | method successfully returns.
|
---|
3093 | </note>
|
---|
3094 | <note>
|
---|
3095 | Calling this method is only valid on instances returned
|
---|
3096 | by <link to="ISession::machine"/> and on new machines
|
---|
3097 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
3098 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
3099 | yet registered, or on unregistered machines after calling
|
---|
3100 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
3101 | </note>
|
---|
3102 | <note>
|
---|
3103 | The deleted machine settings file can be restored (saved again)
|
---|
3104 | by calling <link to="#saveSettings"/>.
|
---|
3105 | </note>
|
---|
3106 | </desc>
|
---|
3107 | </method>
|
---|
3108 |
|
---|
3109 | <method name="getSnapshot">
|
---|
3110 | <desc>
|
---|
3111 | Returns a snapshot of this machine with the given UUID.
|
---|
3112 | A <tt>null</tt> UUID can be used to obtain the first snapshot
|
---|
3113 | taken on this machine. This is useful if you want to traverse
|
---|
3114 | the whole tree of snapshots starting from the root.
|
---|
3115 | </desc>
|
---|
3116 | <param name="id" type="uuid" dir="in">
|
---|
3117 | <desc>UUID of the snapshot to get</desc>
|
---|
3118 | </param>
|
---|
3119 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
3120 | <desc>Snapshot object with the given UUID.</desc>
|
---|
3121 | </param>
|
---|
3122 | </method>
|
---|
3123 |
|
---|
3124 | <method name="findSnapshot">
|
---|
3125 | <desc>
|
---|
3126 | Returns a snapshot of this machine with the given name.
|
---|
3127 | </desc>
|
---|
3128 | <param name="name" type="wstring" dir="in">
|
---|
3129 | <desc>Name of the snapshot to find</desc>
|
---|
3130 | </param>
|
---|
3131 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
3132 | <desc>Snapshot object with the given name.</desc>
|
---|
3133 | </param>
|
---|
3134 | </method>
|
---|
3135 |
|
---|
3136 | <method name="setCurrentSnapshot">
|
---|
3137 | <desc>
|
---|
3138 | Sets the current snapshot of this machine.
|
---|
3139 | <note>
|
---|
3140 | In the current implementation, this operation is not
|
---|
3141 | implemented.
|
---|
3142 | </note>
|
---|
3143 | </desc>
|
---|
3144 | <param name="id" type="uuid" dir="in">
|
---|
3145 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
3146 | </param>
|
---|
3147 | </method>
|
---|
3148 |
|
---|
3149 | <method name="createSharedFolder">
|
---|
3150 | <desc>
|
---|
3151 | Creates a new permanent shared folder by associating the given logical
|
---|
3152 | name with the given host path, adds it to the collection of shared
|
---|
3153 | folders and starts sharing it. Refer to the description of
|
---|
3154 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
3155 | </desc>
|
---|
3156 | <param name="name" type="wstring" dir="in">
|
---|
3157 | <desc>Unique logical name of the shared folder.</desc>
|
---|
3158 | </param>
|
---|
3159 | <param name="hostPath" type="wstring" dir="in">
|
---|
3160 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
3161 | </param>
|
---|
3162 | <param name="writable" type="boolean" dir="in">
|
---|
3163 | <desc>Whether the share is writable or readonly</desc>
|
---|
3164 | </param>
|
---|
3165 | </method>
|
---|
3166 |
|
---|
3167 | <method name="removeSharedFolder">
|
---|
3168 | <desc>
|
---|
3169 | Removes the permanent shared folder with the given name previously
|
---|
3170 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
3171 | shared folders and stops sharing it.
|
---|
3172 | </desc>
|
---|
3173 | <param name="name" type="wstring" dir="in">
|
---|
3174 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
3175 | </param>
|
---|
3176 | </method>
|
---|
3177 |
|
---|
3178 | <method name="canShowConsoleWindow">
|
---|
3179 | <desc>
|
---|
3180 | Returns @c true if the VM console process can activate the
|
---|
3181 | console window and bring it to foreground on the desktop of
|
---|
3182 | the host PC.
|
---|
3183 | <note>
|
---|
3184 | This method will fail if a session for this machine is not
|
---|
3185 | currently open.
|
---|
3186 | </note>
|
---|
3187 | </desc>
|
---|
3188 | <param name="canShow" type="boolean" dir="return">
|
---|
3189 | <desc>
|
---|
3190 | @c true if the console window can be shown and @c
|
---|
3191 | false otherwise.
|
---|
3192 | </desc>
|
---|
3193 | </param>
|
---|
3194 | </method>
|
---|
3195 |
|
---|
3196 | <method name="showConsoleWindow">
|
---|
3197 | <desc>
|
---|
3198 | Activates the console window and brings it to foreground on
|
---|
3199 | the desktop of the host PC. Many modern window managers on
|
---|
3200 | many platforms implement some sort of focus stealing
|
---|
3201 | prevention logic, so that it may be impossible to activate
|
---|
3202 | a window without the help of the currently active
|
---|
3203 | application. In this case, this method will return a non-zero
|
---|
3204 | identifier that represents the top-level window of the VM
|
---|
3205 | console process. The caller, if it represents a currently
|
---|
3206 | active process, is responsible to use this identifier (in a
|
---|
3207 | platform-dependent manner) to perform actual window
|
---|
3208 | activation.
|
---|
3209 | <note>
|
---|
3210 | This method will fail if a session for this machine is not
|
---|
3211 | currently open.
|
---|
3212 | </note>
|
---|
3213 | </desc>
|
---|
3214 | <param name="winId" type="unsigned long long" dir="return">
|
---|
3215 | <desc>
|
---|
3216 | Platform-dependent identifier of the top-level VM console
|
---|
3217 | window, or zero if this method has performed all actions
|
---|
3218 | necessary to implement the <i>show window</i> semantics for
|
---|
3219 | the given platform and/or VirtualBox front-end.
|
---|
3220 | </desc>
|
---|
3221 | </param>
|
---|
3222 | </method>
|
---|
3223 |
|
---|
3224 | </interface>
|
---|
3225 |
|
---|
3226 | <!--
|
---|
3227 | // IConsole
|
---|
3228 | /////////////////////////////////////////////////////////////////////////
|
---|
3229 | -->
|
---|
3230 |
|
---|
3231 | <interface
|
---|
3232 | name="IConsoleCallback" extends="$unknown"
|
---|
3233 | uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
|
---|
3234 | wsmap="suppress"
|
---|
3235 | >
|
---|
3236 |
|
---|
3237 | <method name="onMousePointerShapeChange">
|
---|
3238 | <desc>
|
---|
3239 | Notification when the guest mouse pointer shape has
|
---|
3240 | changed. The new shape data is given.
|
---|
3241 | </desc>
|
---|
3242 | <param name="visible" type="boolean" dir="in">
|
---|
3243 | <desc>
|
---|
3244 | Flag whether the pointer is visible.
|
---|
3245 | </desc>
|
---|
3246 | </param>
|
---|
3247 | <param name="alpha" type="boolean" dir="in">
|
---|
3248 | <desc>
|
---|
3249 | Flag whether the pointer has an alpha channel.
|
---|
3250 | </desc>
|
---|
3251 | </param>
|
---|
3252 | <param name="xHot" type="unsigned long" dir="in">
|
---|
3253 | <desc>
|
---|
3254 | The pointer hot spot x coordinate.
|
---|
3255 | </desc>
|
---|
3256 | </param>
|
---|
3257 | <param name="yHot" type="unsigned long" dir="in">
|
---|
3258 | <desc>
|
---|
3259 | The pointer hot spot y coordinate.
|
---|
3260 | </desc>
|
---|
3261 | </param>
|
---|
3262 | <param name="width" type="unsigned long" dir="in">
|
---|
3263 | <desc>
|
---|
3264 | Width of the pointer shape in pixels.
|
---|
3265 | </desc>
|
---|
3266 | </param>
|
---|
3267 | <param name="height" type="unsigned long" dir="in">
|
---|
3268 | <desc>
|
---|
3269 | Height of the pointer shape in pixels.
|
---|
3270 | </desc>
|
---|
3271 | </param>
|
---|
3272 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
3273 | <desc>
|
---|
3274 | Address of the shape buffer.
|
---|
3275 |
|
---|
3276 | The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
|
---|
3277 |
|
---|
3278 | For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
|
---|
3279 | For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
3280 |
|
---|
3281 | AND mask presents for pointers with alpha channel, so if the callback does not
|
---|
3282 | support alpha, the pointer could be displayed as a normal color pointer.
|
---|
3283 |
|
---|
3284 | The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
|
---|
3285 | therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
|
---|
3286 | end of any scanline are undefined.
|
---|
3287 |
|
---|
3288 | The XOR mask follows the AND mask on the next 4 bytes aligned offset:
|
---|
3289 | <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>
|
---|
3290 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
3291 | XOR mask scanlines have no gap between them and size of XOR mask is:
|
---|
3292 | <tt>cXor = width * 4 * height</tt>.
|
---|
3293 |
|
---|
3294 | <note>
|
---|
3295 | If 'shape' is equal to 0, only pointer visibility is being changed.
|
---|
3296 | </note>
|
---|
3297 | </desc>
|
---|
3298 | </param>
|
---|
3299 | </method>
|
---|
3300 |
|
---|
3301 | <method name="onMouseCapabilityChange">
|
---|
3302 | <desc>
|
---|
3303 | Notification when the mouse capabilities reported by the
|
---|
3304 | guest have changed. The new capabilities are passed.
|
---|
3305 | </desc>
|
---|
3306 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
3307 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
3308 | </method>
|
---|
3309 |
|
---|
3310 | <method name="onKeyboardLedsChange">
|
---|
3311 | <desc>
|
---|
3312 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
3313 | to alter the state of the keyboard LEDs.
|
---|
3314 | </desc>
|
---|
3315 | <param name="numLock" type="boolean" dir="in"/>
|
---|
3316 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
3317 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
3318 | </method>
|
---|
3319 |
|
---|
3320 | <method name="onStateChange">
|
---|
3321 | <desc>
|
---|
3322 | Notification when the execution state of the machine has changed.
|
---|
3323 | The new state will be given.
|
---|
3324 | </desc>
|
---|
3325 | <param name="state" type="MachineState" dir="in"/>
|
---|
3326 | </method>
|
---|
3327 |
|
---|
3328 | <method name="onAdditionsStateChange">
|
---|
3329 | <desc>
|
---|
3330 | Notification when a Guest Additions property changes.
|
---|
3331 | Interested callees should query IGuest attributes to
|
---|
3332 | find out what has changed.
|
---|
3333 | </desc>
|
---|
3334 | </method>
|
---|
3335 |
|
---|
3336 | <method name="onDVDDriveChange">
|
---|
3337 | <desc>
|
---|
3338 | Notification when a property of the
|
---|
3339 | virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
|
---|
3340 | Interested callees should use IDVDDrive methods to find out what has
|
---|
3341 | changed.
|
---|
3342 | </desc>
|
---|
3343 | </method>
|
---|
3344 |
|
---|
3345 | <method name="onFloppyDriveChange">
|
---|
3346 | <desc>
|
---|
3347 | Notification when a property of the
|
---|
3348 | virtual <link to="IMachine::FloppyDrive">floppy drive</link> changes.
|
---|
3349 | Interested callees should use IFloppyDrive methods to find out what
|
---|
3350 | has changed.
|
---|
3351 | </desc>
|
---|
3352 | </method>
|
---|
3353 |
|
---|
3354 | <method name="onNetworkAdapterChange">
|
---|
3355 | <desc>
|
---|
3356 | Notification when a property of one of the
|
---|
3357 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
3358 | changes. Interested callees should use INetworkAdapter methods and
|
---|
3359 | attributes to find out what has changed.
|
---|
3360 | </desc>
|
---|
3361 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
3362 | <desc>Network adapter that is subject to change.</desc>
|
---|
3363 | </param>
|
---|
3364 | </method>
|
---|
3365 |
|
---|
3366 | <method name="onSerialPortChange">
|
---|
3367 | <desc>
|
---|
3368 | Notification when a property of one of the
|
---|
3369 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
3370 | Interested callees should use ISerialPort methods and attributes
|
---|
3371 | to find out what has changed.
|
---|
3372 | </desc>
|
---|
3373 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
3374 | <desc>Serial port that is subject to change.</desc>
|
---|
3375 | </param>
|
---|
3376 | </method>
|
---|
3377 |
|
---|
3378 | <method name="onParallelPortChange">
|
---|
3379 | <desc>
|
---|
3380 | Notification when a property of one of the
|
---|
3381 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
3382 | changes. Interested callees should use ISerialPort methods and
|
---|
3383 | attributes to find out what has changed.
|
---|
3384 | </desc>
|
---|
3385 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
3386 | <desc>Parallel port that is subject to change.</desc>
|
---|
3387 | </param>
|
---|
3388 | </method>
|
---|
3389 |
|
---|
3390 | <method name="onVRDPServerChange">
|
---|
3391 | <desc>
|
---|
3392 | Notification when a property of the
|
---|
3393 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
3394 | Interested callees should use IVRDPServer methods and attributes to
|
---|
3395 | find out what has changed.
|
---|
3396 | </desc>
|
---|
3397 | </method>
|
---|
3398 |
|
---|
3399 | <method name="onUSBControllerChange">
|
---|
3400 | <desc>
|
---|
3401 | Notification when a property of the virtual
|
---|
3402 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
3403 | Interested callees should use IUSBController methods and attributes to
|
---|
3404 | find out what has changed.
|
---|
3405 | </desc>
|
---|
3406 | </method>
|
---|
3407 |
|
---|
3408 | <method name="onUSBDeviceStateChange">
|
---|
3409 | <desc>
|
---|
3410 | Notification when a USB device is attached to or detached from
|
---|
3411 | the virtual USB controller.
|
---|
3412 |
|
---|
3413 | This notification is sent as a result of the indirect
|
---|
3414 | request to attach the device because it matches one of the
|
---|
3415 | machine USB filters, or as a result of the direct request
|
---|
3416 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
3417 | <link to="IConsole::detachUSBDevice"/>.
|
---|
3418 |
|
---|
3419 | This notification is sent in case of both a succeeded and a
|
---|
3420 | failed request completion. When the request succeeds, the @a
|
---|
3421 | error parameter is @c null, and the given device has been
|
---|
3422 | already added to (when @a attached is @c true) or removed from
|
---|
3423 | (when @a attached is @c false) the collection represented by
|
---|
3424 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
3425 | doesn't change and the @a error perameter represents the error
|
---|
3426 | message describing the failure.
|
---|
3427 |
|
---|
3428 | </desc>
|
---|
3429 | <param name="device" type="IUSBDevice" dir="in">
|
---|
3430 | <desc>Device that is subject to state change.</desc>
|
---|
3431 | </param>
|
---|
3432 | <param name="attached" type="boolean" dir="in">
|
---|
3433 | <desc>
|
---|
3434 | <tt>true</tt> if the device was attached
|
---|
3435 | and <tt>false</tt> otherwise.
|
---|
3436 | </desc>
|
---|
3437 | </param>
|
---|
3438 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
3439 | <desc>
|
---|
3440 | <tt>null</tt> on success or an error message object on
|
---|
3441 | failure.
|
---|
3442 | </desc>
|
---|
3443 | </param>
|
---|
3444 | </method>
|
---|
3445 |
|
---|
3446 | <method name="onSharedFolderChange">
|
---|
3447 | <desc>
|
---|
3448 | Notification when a shared folder is added or removed.
|
---|
3449 | The @a scope argument defines one of three scopes:
|
---|
3450 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
3451 | (<link to="Scope::Global">Global</link>),
|
---|
3452 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
3453 | the machine (<link to="Scope::Machine">Machine</link>) or <link
|
---|
3454 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
3455 | machine (<link to="Scope::Session">Session</link>). Interested callees
|
---|
3456 | should use query the corresponding collections to find out what has
|
---|
3457 | changed.
|
---|
3458 | </desc>
|
---|
3459 | <param name="scope" type="Scope" dir="in">
|
---|
3460 | <desc>Sope of the notification.</desc>
|
---|
3461 | </param>
|
---|
3462 | </method>
|
---|
3463 |
|
---|
3464 | <method name="onRuntimeError">
|
---|
3465 | <desc>
|
---|
3466 | Notification when an error happens during the virtual
|
---|
3467 | machine execution.
|
---|
3468 |
|
---|
3469 | There are three kinds of runtime errors:
|
---|
3470 | <ul>
|
---|
3471 | <li><i>fatal</i></li>
|
---|
3472 | <li><i>non-fatal with retry</i></li>
|
---|
3473 | <li><i>non-fatal warnings</i></li>
|
---|
3474 | </ul>
|
---|
3475 |
|
---|
3476 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
3477 | to <tt>true</tt>. In case of fatal errors, the virtual machine
|
---|
3478 | execution is always paused before calling this notification, and
|
---|
3479 | the notification handler is supposed either to immediately save
|
---|
3480 | the virtual machine state using <link to="IConsole::saveState()"/>
|
---|
3481 | or power it off using <link to="IConsole::powerDown()"/>.
|
---|
3482 | Resuming the execution can lead to unpredictable results.
|
---|
3483 |
|
---|
3484 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
3485 | @a fatal parameter set to <tt>false</tt>. If the virtual machine
|
---|
3486 | is in the Paused state by the time the error notification is
|
---|
3487 | received, it means that the user can <i>try to resume</i> the machine
|
---|
3488 | execution after attempting to solve the probem that caused the
|
---|
3489 | error. In this case, the notification handler is supposed
|
---|
3490 | to show an appropriate message to the user (depending on the
|
---|
3491 | value of the @a id parameter) that offers several actions such
|
---|
3492 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
3493 | wants to retry, the notification handler should continue
|
---|
3494 | the machine execution using the <link to="IConsole::resume()"/>
|
---|
3495 | call. If the machine execution is not Paused during this
|
---|
3496 | notification, then it means this notification is a <i>warning</i>
|
---|
3497 | (for example, about a fatal condition that can happen very soon);
|
---|
3498 | no immediate action is required from the user, the machine
|
---|
3499 | continues its normal execution.
|
---|
3500 |
|
---|
3501 | Note that in either case the notification handler
|
---|
3502 | <b>must not</b> perform any action directly on a thread
|
---|
3503 | where this notification is called. Everything it is allowed to
|
---|
3504 | do is to post a message to another thread that will then talk
|
---|
3505 | to the user and take the corresponding action.
|
---|
3506 |
|
---|
3507 | Currently, the following error identificators are known:
|
---|
3508 | <ul>
|
---|
3509 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
3510 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
3511 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
3512 | </ul>
|
---|
3513 |
|
---|
3514 | <note>
|
---|
3515 | This notification is not designed to be implemented by
|
---|
3516 | more than one callback at a time. If you have multiple
|
---|
3517 | IConsoleCallback instances registered on the given
|
---|
3518 | IConsole object, make sure you simply do nothing but
|
---|
3519 | return @c S_OK from all but one of them that does actual
|
---|
3520 | user notification and performs necessary actions.
|
---|
3521 | </note>
|
---|
3522 |
|
---|
3523 | </desc>
|
---|
3524 | <param name="fatal" type="boolean" dir="in">
|
---|
3525 | <desc>Whether the error is fatal or not</desc>
|
---|
3526 | </param>
|
---|
3527 | <param name="id" type="wstring" dir="in">
|
---|
3528 | <desc>Error identificator</desc>
|
---|
3529 | </param>
|
---|
3530 | <param name="message" type="wstring" dir="in">
|
---|
3531 | <desc>Optional error message</desc>
|
---|
3532 | </param>
|
---|
3533 | </method>
|
---|
3534 |
|
---|
3535 | <method name="onCanShowWindow">
|
---|
3536 | <desc>
|
---|
3537 | Notification when a call to
|
---|
3538 | <link to="IMachine::canShowConsoleWindow()"/> is made by a
|
---|
3539 | front-end to check if a subsequent call to
|
---|
3540 | <link to="IMachine::showConsoleWindow()"/> can succeed.
|
---|
3541 |
|
---|
3542 | The callee should give an answer appropriate to the current
|
---|
3543 | machine state in the @a canShow argument. This answer must
|
---|
3544 | remain valid at least until the next
|
---|
3545 | <link to="IConsole::state">machine state</link> change.
|
---|
3546 |
|
---|
3547 | <note>
|
---|
3548 | This notification is not designed to be implemented by
|
---|
3549 | more than one callback at a time. If you have multiple
|
---|
3550 | IConsoleCallback instances registered on the given
|
---|
3551 | IConsole object, make sure you simply do nothing but
|
---|
3552 | return @c true and @c S_OK from all but one of them that
|
---|
3553 | actually manages console window activation.
|
---|
3554 | </note>
|
---|
3555 | </desc>
|
---|
3556 | <param name="canShow" type="boolean" dir="return">
|
---|
3557 | <desc>
|
---|
3558 | @c true if the console window can be shown and @c
|
---|
3559 | false otherwise.
|
---|
3560 | </desc>
|
---|
3561 | </param>
|
---|
3562 | </method>
|
---|
3563 |
|
---|
3564 | <method name="onShowWindow">
|
---|
3565 | <desc>
|
---|
3566 | Notification when a call to
|
---|
3567 | <link to="IMachine::showConsoleWindow()"/>
|
---|
3568 | requests the console window to be activated and brought to
|
---|
3569 | foreground on the desktop of the host PC.
|
---|
3570 |
|
---|
3571 | This notification should cause the VM console process to
|
---|
3572 | perform the requested action as described above. If it is
|
---|
3573 | impossible to do it at a time of this notification, this
|
---|
3574 | method should return a failure.
|
---|
3575 |
|
---|
3576 | Note that many modern window managers on many platforms
|
---|
3577 | implement some sort of focus stealing prevention logic, so
|
---|
3578 | that it may be impossible to activate a window without the
|
---|
3579 | help of the currently active application (which is supposedly
|
---|
3580 | an initiator of this notification). In this case, this method
|
---|
3581 | must return a non-zero identifier that represents the
|
---|
3582 | top-level window of the VM console process. The caller, if it
|
---|
3583 | represents a currently active process, is responsible to use
|
---|
3584 | this identifier (in a platform-dependent manner) to perform
|
---|
3585 | actual window activation.
|
---|
3586 |
|
---|
3587 | This method must set @a winId to zero if it has performed all
|
---|
3588 | actions necessary to complete the request and the console
|
---|
3589 | window is now active and in foreground, to indicate that no
|
---|
3590 | further action is required on the caller's side.
|
---|
3591 |
|
---|
3592 | <note>
|
---|
3593 | This notification is not designed to be implemented by
|
---|
3594 | more than one callback at a time. If you have multiple
|
---|
3595 | IConsoleCallback instances registered on the given
|
---|
3596 | IConsole object, make sure you simply do nothing but
|
---|
3597 | return@c S_OK from all but one of them that actually
|
---|
3598 | manages console window activation.
|
---|
3599 | </note>
|
---|
3600 | </desc>
|
---|
3601 | <param name="winId" type="unsigned long long" dir="return">
|
---|
3602 | <desc>
|
---|
3603 | Platform-dependent identifier of the top-level VM console
|
---|
3604 | window, or zero if this method has performed all actions
|
---|
3605 | necessary to implement the <i>show window</i> semantics for
|
---|
3606 | the given platform and/or this VirtualBox front-end.
|
---|
3607 | </desc>
|
---|
3608 | </param>
|
---|
3609 | </method>
|
---|
3610 |
|
---|
3611 | </interface>
|
---|
3612 |
|
---|
3613 | <interface
|
---|
3614 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
3615 | uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
|
---|
3616 | wsmap="struct"
|
---|
3617 | >
|
---|
3618 | <attribute name="active" type="boolean" readonly="yes">
|
---|
3619 | <desc>
|
---|
3620 | Whether the remote display connection is active.
|
---|
3621 | </desc>
|
---|
3622 | </attribute>
|
---|
3623 |
|
---|
3624 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
3625 | <desc>
|
---|
3626 | How many times a client connected.
|
---|
3627 | </desc>
|
---|
3628 | </attribute>
|
---|
3629 |
|
---|
3630 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
3631 | <desc>
|
---|
3632 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
3633 | </desc>
|
---|
3634 | </attribute>
|
---|
3635 |
|
---|
3636 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
3637 | <desc>
|
---|
3638 | When the last connection was terminated or the current time, if
|
---|
3639 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
3640 | </desc>
|
---|
3641 | </attribute>
|
---|
3642 |
|
---|
3643 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
3644 | <desc>
|
---|
3645 | How many bytes were sent in last or current, if still active, connection.
|
---|
3646 | </desc>
|
---|
3647 | </attribute>
|
---|
3648 |
|
---|
3649 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
3650 | <desc>
|
---|
3651 | How many bytes were sent in all connections.
|
---|
3652 | </desc>
|
---|
3653 | </attribute>
|
---|
3654 |
|
---|
3655 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
3656 | <desc>
|
---|
3657 | How many bytes were received in last or current, if still active, connection.
|
---|
3658 | </desc>
|
---|
3659 | </attribute>
|
---|
3660 |
|
---|
3661 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
3662 | <desc>
|
---|
3663 | How many bytes were received in all connections.
|
---|
3664 | </desc>
|
---|
3665 | </attribute>
|
---|
3666 |
|
---|
3667 | <attribute name="user" type="wstring" readonly="yes">
|
---|
3668 | <desc>
|
---|
3669 | Login user name supplied by the client.
|
---|
3670 | </desc>
|
---|
3671 | </attribute>
|
---|
3672 |
|
---|
3673 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
3674 | <desc>
|
---|
3675 | Login domain name supplied by the client.
|
---|
3676 | </desc>
|
---|
3677 | </attribute>
|
---|
3678 |
|
---|
3679 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
3680 | <desc>
|
---|
3681 | The client name supplied by the client.
|
---|
3682 | </desc>
|
---|
3683 | </attribute>
|
---|
3684 |
|
---|
3685 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
3686 | <desc>
|
---|
3687 | The IP address of the client.
|
---|
3688 | </desc>
|
---|
3689 | </attribute>
|
---|
3690 |
|
---|
3691 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
3692 | <desc>
|
---|
3693 | The client software version number.
|
---|
3694 | </desc>
|
---|
3695 | </attribute>
|
---|
3696 |
|
---|
3697 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
3698 | <desc>
|
---|
3699 | Public key exchange method used when connection was established.
|
---|
3700 | Values: 0 - RDP4 public key exchange scheme.
|
---|
3701 | 1 - X509 sertificates were sent to client.
|
---|
3702 | </desc>
|
---|
3703 | </attribute>
|
---|
3704 |
|
---|
3705 | </interface>
|
---|
3706 |
|
---|
3707 | <interface
|
---|
3708 | name="IConsole" extends="$unknown"
|
---|
3709 | uuid="d5a1cbda-f5d7-4824-9afe-d640c94c7dcf"
|
---|
3710 | wsmap="managed"
|
---|
3711 | >
|
---|
3712 | <desc>
|
---|
3713 | The IConsole interface represents an interface to control virtual
|
---|
3714 | machine execution.
|
---|
3715 |
|
---|
3716 | The console object that implements the IConsole interface is obtained
|
---|
3717 | from a session object after the session for the given machine has been
|
---|
3718 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
3719 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
3720 | <link to="IVirtualBox::openExistingSession"/> methdods.
|
---|
3721 |
|
---|
3722 | Methods of the IConsole interface allow the caller to query the current
|
---|
3723 | virtual machine execution state, pause the machine or power it down, save
|
---|
3724 | the machine state or take a snapshot, attach and detach removable media
|
---|
3725 | and so on.
|
---|
3726 |
|
---|
3727 | <see>ISession</see>
|
---|
3728 | </desc>
|
---|
3729 |
|
---|
3730 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
3731 | <desc>
|
---|
3732 | Machine object this console is sessioned with.
|
---|
3733 | <note>
|
---|
3734 | This is a convenience property, it has the same value as
|
---|
3735 | <link to="ISession::machine"/> of the corresponding session
|
---|
3736 | object.
|
---|
3737 | </note>
|
---|
3738 | </desc>
|
---|
3739 | </attribute>
|
---|
3740 |
|
---|
3741 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
3742 | <desc>
|
---|
3743 | Current execution state of the machine.
|
---|
3744 | <note>
|
---|
3745 | This property always returns the same value as the corresponding
|
---|
3746 | property of the IMachine object this console is sessioned with.
|
---|
3747 | For the process that owns (executes) the VM, this is the
|
---|
3748 | preferable way of querying the VM state, because no IPC
|
---|
3749 | calls are made.
|
---|
3750 | </note>
|
---|
3751 | </desc>
|
---|
3752 | </attribute>
|
---|
3753 |
|
---|
3754 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
3755 | <desc>Guest object.</desc>
|
---|
3756 | </attribute>
|
---|
3757 |
|
---|
3758 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
3759 | <desc>
|
---|
3760 | Virtual keyboard object.
|
---|
3761 | <note>
|
---|
3762 | If the machine is not running, any attempt to use
|
---|
3763 | the returned object will result in an error.
|
---|
3764 | </note>
|
---|
3765 | </desc>
|
---|
3766 | </attribute>
|
---|
3767 |
|
---|
3768 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
3769 | <desc>
|
---|
3770 | Virtual mouse object.
|
---|
3771 | <note>
|
---|
3772 | If the machine is not running, any attempt to use
|
---|
3773 | the returned object will result in an error.
|
---|
3774 | </note>
|
---|
3775 | </desc>
|
---|
3776 | </attribute>
|
---|
3777 |
|
---|
3778 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
3779 | <desc>Virtual display object.
|
---|
3780 | <note>
|
---|
3781 | If the machine is not running, any attempt to use
|
---|
3782 | the returned object will result in an error.
|
---|
3783 | </note>
|
---|
3784 | </desc>
|
---|
3785 | </attribute>
|
---|
3786 |
|
---|
3787 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
3788 | <desc>Debugging interface.</desc>
|
---|
3789 | </attribute>
|
---|
3790 |
|
---|
3791 | <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
|
---|
3792 | <desc>
|
---|
3793 | Collection of USB devices currently attached to the virtual
|
---|
3794 | USB controller.
|
---|
3795 | <note>
|
---|
3796 | The collection is empty if the machine is not running.
|
---|
3797 | </note>
|
---|
3798 | </desc>
|
---|
3799 | </attribute>
|
---|
3800 |
|
---|
3801 | <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
3802 | <desc>
|
---|
3803 | List of USB devices currently attached to the remote VRDP client.
|
---|
3804 | Once a new device is physically attached to the remote host computer,
|
---|
3805 | it appears in this list and remains there until detached.
|
---|
3806 | </desc>
|
---|
3807 | </attribute>
|
---|
3808 |
|
---|
3809 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
3810 | <desc>
|
---|
3811 | Collection of shared folders for the current session. These folders
|
---|
3812 | are called transient shared folders because they are available to the
|
---|
3813 | guest OS running inside the associated virtual machine only for the
|
---|
3814 | duration of the session (as opposed to
|
---|
3815 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
3816 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
3817 | these folders are automatically discarded.
|
---|
3818 |
|
---|
3819 | New shared folders are added to the collection using
|
---|
3820 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
3821 | removed using <link to="#removeSharedFolder"/>.
|
---|
3822 | </desc>
|
---|
3823 | </attribute>
|
---|
3824 |
|
---|
3825 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
3826 | <desc>
|
---|
3827 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
3828 | </desc>
|
---|
3829 | </attribute>
|
---|
3830 |
|
---|
3831 | <method name="powerUp">
|
---|
3832 | <desc>
|
---|
3833 | Starts the virtual machine execution using the current machine
|
---|
3834 | state (i.e. its current execution state, current settings and
|
---|
3835 | current hard disks).
|
---|
3836 |
|
---|
3837 | If the machine is powered off or aborted, the execution will
|
---|
3838 | start from the beginning (as if the real hardware were just
|
---|
3839 | powered on).
|
---|
3840 |
|
---|
3841 | If the machine is in the <link to="MachineState::Saved"/> state,
|
---|
3842 | it will continue its execution the point where the state has
|
---|
3843 | beem saved.
|
---|
3844 |
|
---|
3845 | <see>#saveState</see>
|
---|
3846 | </desc>
|
---|
3847 | <param name="progress" type="IProgress" dir="return">
|
---|
3848 | <desc>Progress object to track the operation completion.</desc>
|
---|
3849 | </param>
|
---|
3850 | </method>
|
---|
3851 |
|
---|
3852 | <method name="powerDown">
|
---|
3853 | <desc>
|
---|
3854 | Stops the virtual machine execution.
|
---|
3855 | After this operation completes, the machine will go to the
|
---|
3856 | PoweredOff state.
|
---|
3857 | </desc>
|
---|
3858 | </method>
|
---|
3859 |
|
---|
3860 | <method name="reset">
|
---|
3861 | <desc>Resets the virtual machine.</desc>
|
---|
3862 | </method>
|
---|
3863 |
|
---|
3864 | <method name="pause">
|
---|
3865 | <desc>Pauses the virtual machine execution.</desc>
|
---|
3866 | </method>
|
---|
3867 |
|
---|
3868 | <method name="resume">
|
---|
3869 | <desc>Resumes the virtual machine execution.</desc>
|
---|
3870 | </method>
|
---|
3871 |
|
---|
3872 | <method name="powerButton">
|
---|
3873 | <desc>Send the ACPI power button event to the guest.</desc>
|
---|
3874 | </method>
|
---|
3875 |
|
---|
3876 | <method name="sleepButton">
|
---|
3877 | <desc>Send the ACPI sleep button event to the guest.</desc>
|
---|
3878 | </method>
|
---|
3879 |
|
---|
3880 | <method name="getPowerButtonHandled">
|
---|
3881 | <desc>Check if the last power button event was handled by guest.</desc>
|
---|
3882 | <param name="handled" type="boolean" dir="return"/>
|
---|
3883 | </method>
|
---|
3884 |
|
---|
3885 | <method name="saveState">
|
---|
3886 | <desc>
|
---|
3887 | Saves the current execution state of a running virtual machine
|
---|
3888 | and stops its executiuon.
|
---|
3889 |
|
---|
3890 | After this operation completes, the machine will go to the
|
---|
3891 | Saved state. Next time it is powered up, this state will
|
---|
3892 | be restored and the machine will continue its execution from
|
---|
3893 | the place where it was saved.
|
---|
3894 |
|
---|
3895 | This operation differs from taking a snapshot to the effect
|
---|
3896 | that it doesn't create new differencing hard disks. Also, once
|
---|
3897 | the machine is powered up from the state saved using this method,
|
---|
3898 | the saved state is deleted, so it will be impossible to return
|
---|
3899 | to this state later.
|
---|
3900 |
|
---|
3901 | <note>
|
---|
3902 | On success, this method implicitly calls
|
---|
3903 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
3904 | settings (including runtime changes to the DVD drive, etc.).
|
---|
3905 | Together with the impossibility to change any VM settings when it is
|
---|
3906 | in the Saved state, this guarantees the adequate hardware
|
---|
3907 | configuration of the machine when it is restored from the saved
|
---|
3908 | state file.
|
---|
3909 | </note>
|
---|
3910 |
|
---|
3911 | <note>
|
---|
3912 | The machine must be in the Running or Paused state, otherwise
|
---|
3913 | the operation will fail.
|
---|
3914 | </note>
|
---|
3915 |
|
---|
3916 | <see><link to="#takeSnapshot"/></see>
|
---|
3917 | </desc>
|
---|
3918 | <param name="progress" type="IProgress" dir="return">
|
---|
3919 | <desc>Progress object to track the operation completion.</desc>
|
---|
3920 | </param>
|
---|
3921 | </method>
|
---|
3922 |
|
---|
3923 | <method name="adoptSavedState">
|
---|
3924 | <desc>
|
---|
3925 | Associates the given saved state file to the virtual machine.
|
---|
3926 |
|
---|
3927 | On success, the machine will go to the Saved state. Next time it is
|
---|
3928 | powered up, it will be restored from the adopted saved state and
|
---|
3929 | continue execution from the place where the saved state file was
|
---|
3930 | created.
|
---|
3931 |
|
---|
3932 | The specified saved state file path may be full or relative to the
|
---|
3933 | folder the VM normally saves the state to (usually,
|
---|
3934 | <link to="IMachine::snapshotFolder"/>).
|
---|
3935 |
|
---|
3936 | <note>
|
---|
3937 | It's a caller's responsibility to make sure the given saved state
|
---|
3938 | file is compatible with the settings of this virtual machine that
|
---|
3939 | represent its virtual hardware (memory size, hard disk configuration
|
---|
3940 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
3941 | is undefined.
|
---|
3942 | </note>
|
---|
3943 | </desc>
|
---|
3944 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3945 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3946 | </param>
|
---|
3947 | </method>
|
---|
3948 |
|
---|
3949 | <method name="discardSavedState">
|
---|
3950 | <desc>
|
---|
3951 | Discards (deletes) the saved state of the virtual machine
|
---|
3952 | previously created by <link to="#saveState"/>. Next time the
|
---|
3953 | machine is powered up, a clean boot will occur.
|
---|
3954 | <note>
|
---|
3955 | This operation is equivalent to resetting or powering off
|
---|
3956 | the machine without doing a proper shutdown in the guest OS.
|
---|
3957 | </note>
|
---|
3958 | </desc>
|
---|
3959 | </method>
|
---|
3960 |
|
---|
3961 | <method name="getDeviceActivity">
|
---|
3962 | <desc>
|
---|
3963 | Gets the current activity type of a given device or device group.
|
---|
3964 | </desc>
|
---|
3965 | <param name="type" type="DeviceType" dir="in"/>
|
---|
3966 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
3967 | </method>
|
---|
3968 |
|
---|
3969 | <method name="attachUSBDevice">
|
---|
3970 | <desc>
|
---|
3971 | Attaches a host USB device with the given UUID to the
|
---|
3972 | USB controller of the virtual machine.
|
---|
3973 |
|
---|
3974 | The device needs to be in one of the following states:
|
---|
3975 | <link to="USBDeviceState::Busy">Busy</link>,
|
---|
3976 | <link to="USBDeviceState::Available">Available</link> or
|
---|
3977 | <link to="USBDeviceState::Held">Held</link>,
|
---|
3978 | otherwise an error is immediately returned.
|
---|
3979 |
|
---|
3980 | When the device state is
|
---|
3981 | <link to="USBDeviceState::Busy">Busy</link>, an error may also
|
---|
3982 | be returned if the host computer refuses to release it for some reason.
|
---|
3983 |
|
---|
3984 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
3985 | </desc>
|
---|
3986 | <param name="id" type="uuid" dir="in">
|
---|
3987 | <desc>UUID of the host USB device to attach.</desc>
|
---|
3988 | </param>
|
---|
3989 | </method>
|
---|
3990 |
|
---|
3991 | <method name="detachUSBDevice">
|
---|
3992 | <desc>
|
---|
3993 | Detaches an USB device with the given UUID from the USB controller
|
---|
3994 | oif the virtual machine.
|
---|
3995 |
|
---|
3996 | After this method succeeds, the VirtualBox server reinitiates
|
---|
3997 | all USB filters as if the device were just physically attached
|
---|
3998 | to the host, but filters of this machine are ignored to avoid
|
---|
3999 | a possible automatic reattachment.
|
---|
4000 |
|
---|
4001 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
4002 | </desc>
|
---|
4003 | <param name="id" type="uuid" dir="in">
|
---|
4004 | <desc>UUID of the USB device to detach.</desc>
|
---|
4005 | </param>
|
---|
4006 | <param name="device" type="IUSBDevice" dir="return">
|
---|
4007 | <desc>Detached USB device.</desc>
|
---|
4008 | </param>
|
---|
4009 | </method>
|
---|
4010 |
|
---|
4011 | <method name="createSharedFolder">
|
---|
4012 | <desc>
|
---|
4013 | Creates a transient new shared folder by associating the given logical
|
---|
4014 | name with the given host path, adds it to the collection of shared
|
---|
4015 | folders and starts sharing it. Refer to the description of
|
---|
4016 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
4017 | </desc>
|
---|
4018 | <param name="name" type="wstring" dir="in">
|
---|
4019 | <desc>Unique logical name of the shared folder.</desc>
|
---|
4020 | </param>
|
---|
4021 | <param name="hostPath" type="wstring" dir="in">
|
---|
4022 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
4023 | </param>
|
---|
4024 | <param name="writable" type="boolean" dir="in">
|
---|
4025 | <desc>Whether the share is writable or readonly</desc>
|
---|
4026 | </param>
|
---|
4027 | </method>
|
---|
4028 |
|
---|
4029 | <method name="removeSharedFolder">
|
---|
4030 | <desc>
|
---|
4031 | Removes a transient shared folder with the given name previously
|
---|
4032 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
4033 | shared folders and stops sharing it.
|
---|
4034 | </desc>
|
---|
4035 | <param name="name" type="wstring" dir="in">
|
---|
4036 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
4037 | </param>
|
---|
4038 | </method>
|
---|
4039 |
|
---|
4040 | <method name="takeSnapshot">
|
---|
4041 | <desc>
|
---|
4042 | Saves the current execution state and all settings of the
|
---|
4043 | machine and creates differencing images for all
|
---|
4044 | normal (non-independent) hard disks.
|
---|
4045 |
|
---|
4046 | This method can be called for a PoweredOff, Saved, Running or
|
---|
4047 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
4048 | offline <link to="ISnapshot">snapshot</link> is created,
|
---|
4049 | in all other cases -- an online snapshot.
|
---|
4050 |
|
---|
4051 | The taken snapshot is always based on the
|
---|
4052 | <link to="IMachine::currentSnapshot">current
|
---|
4053 | snapshot</link> of the associated virtual machine and becomes
|
---|
4054 | a new current snapshot.
|
---|
4055 |
|
---|
4056 | <note>
|
---|
4057 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
4058 | save all current machine settings before taking an offline snapshot.
|
---|
4059 | </note>
|
---|
4060 |
|
---|
4061 | <see>ISnapshot, <link to="#saveState"/></see>
|
---|
4062 | </desc>
|
---|
4063 | <param name="name" type="wstring" dir="in">
|
---|
4064 | <desc>Short name for the snapshot.</desc>
|
---|
4065 | </param>
|
---|
4066 | <param name="description" type="wstring" dir="in">
|
---|
4067 | <desc>Optional description of the snapshot.</desc>
|
---|
4068 | </param>
|
---|
4069 | <param name="progress" type="IProgress" dir="return">
|
---|
4070 | <desc>Progress object to track the operation completion.</desc>
|
---|
4071 | </param>
|
---|
4072 | </method>
|
---|
4073 |
|
---|
4074 | <method name="discardSnapshot">
|
---|
4075 | <desc>
|
---|
4076 |
|
---|
4077 | Starts discarding the specified snapshot. The execution state
|
---|
4078 | and settings of the associated machine stored in the snapshot
|
---|
4079 | will be deleted. The contents of all differencing hard disks of
|
---|
4080 | this snapshot will be merged with the contents of their
|
---|
4081 | dependent child hard disks to keep the, disks valid (in other
|
---|
4082 | words, all changes represented by hard disks being discarded
|
---|
4083 | will be propagated to their child hard disks). After that, this
|
---|
4084 | snapshot's differencing hard disks will be deleted. The parent
|
---|
4085 | of this snapshot will become a new parent for all its child
|
---|
4086 | snapshots.
|
---|
4087 |
|
---|
4088 | If the discarded snapshot is the current one, its parent
|
---|
4089 | snapshot will become a new current snapshot. The current machine
|
---|
4090 | state is not directly affected in this case, except that
|
---|
4091 | currently attached differencing hard disks based on hard disks
|
---|
4092 | of the discarded snapshot will be also merged as described
|
---|
4093 | above.
|
---|
4094 |
|
---|
4095 | If the discarded snapshot is the first one (the root snapshot)
|
---|
4096 | and it has exactly one child snapshot, this child snapshot will
|
---|
4097 | become the first snapshot after discarding. If there are no
|
---|
4098 | children at all (i.e. the first snapshot is the only snapshot of
|
---|
4099 | the machine), both the current and the first snapshot of the
|
---|
4100 | machine will be set to null. In all other cases, the first
|
---|
4101 | snapshot cannot be discarded.
|
---|
4102 |
|
---|
4103 | You cannot discard the snapshot if it
|
---|
4104 | stores <link to="HardDiskType::Normal">normal</link> (non-differencing)
|
---|
4105 | hard disks that have differencing hard disks based on them. Snapshots of
|
---|
4106 | such kind can be discarded only when every normal hard disk has either
|
---|
4107 | no children at all or exactly one child. In the former case, the normal
|
---|
4108 | hard disk simply becomes unused (i.e. not attached to any VM). In the
|
---|
4109 | latter case, it receives all the changes strored in the child hard disk,
|
---|
4110 | and then it replaces the child hard disk in the configuration of the
|
---|
4111 | corresponding snapshot or machine.
|
---|
4112 |
|
---|
4113 | Also, you cannot discard the snapshot if it stores hard disks
|
---|
4114 | (of any type) having differencing child hard disks that belong
|
---|
4115 | to other machines. Such snapshots can be only discarded after
|
---|
4116 | you discard all snapshots of other machines containing "foreign"
|
---|
4117 | child disks, or detach these "foreign" child disks from machines
|
---|
4118 | they are attached to.
|
---|
4119 |
|
---|
4120 | One particular example of the snapshot storing normal hard disks
|
---|
4121 | is the first snapshot of a virtual machine that had normal hard
|
---|
4122 | disks attached when taking the snapshot. Be careful when
|
---|
4123 | discarding such snapshots because this implicitly commits
|
---|
4124 | changes (made since the snapshot being discarded has been taken)
|
---|
4125 | to normal hard disks (as described above), which may be not what
|
---|
4126 | you want.
|
---|
4127 |
|
---|
4128 | The virtual machine is put to
|
---|
4129 | the <link to="MachineState::Discarding">Discarding</link> state until
|
---|
4130 | the discard operation is completed.
|
---|
4131 |
|
---|
4132 | <note>
|
---|
4133 | The machine must not be running, otherwise the operation
|
---|
4134 | will fail.
|
---|
4135 | </note>
|
---|
4136 |
|
---|
4137 | <note>
|
---|
4138 | Child hard disks of all normal hard disks of the discarded snapshot
|
---|
4139 | must be <link to="IHardDisk::accessible">accessible</link> for this
|
---|
4140 | operation to succeed. In particular, this means that all virtual
|
---|
4141 | machines, whose hard disks are directly or indirectly based on the
|
---|
4142 | hard disks of discarded snapshot, must be powered off.
|
---|
4143 | </note>
|
---|
4144 | <note>
|
---|
4145 | Merging hard disk contents can be very time and disk space
|
---|
4146 | consuming, if these disks are big in size and have many
|
---|
4147 | children. However, if the snapshot being discarded is the last
|
---|
4148 | (head) snapshot on the branch, the operation will be rather
|
---|
4149 | quick.
|
---|
4150 | </note>
|
---|
4151 | <note>
|
---|
4152 | Note that discarding the current snapshot
|
---|
4153 | will imlicitly call <link to="IMachine::saveSettings()"/> to
|
---|
4154 | make all current machine settings permanent.
|
---|
4155 | </note>
|
---|
4156 | </desc>
|
---|
4157 | <param name="id" type="uuid" dir="in">
|
---|
4158 | <desc>UUID of the snapshot to discard.</desc>
|
---|
4159 | </param>
|
---|
4160 | <param name="progress" type="IProgress" dir="return">
|
---|
4161 | <desc>Progress object to track the operation completion.</desc>
|
---|
4162 | </param>
|
---|
4163 | </method>
|
---|
4164 |
|
---|
4165 | <method name="discardCurrentState">
|
---|
4166 | <desc>
|
---|
4167 | This operation is similar to <link to="#discardSnapshot()"/> but
|
---|
4168 | affects the current machine state. This means that the state stored in
|
---|
4169 | the current snapshot will become a new current state, and all current
|
---|
4170 | settings of the machine and changes stored in differencing hard disks
|
---|
4171 | will be lost.
|
---|
4172 |
|
---|
4173 | After this operation is successfully completed, new empty differencing
|
---|
4174 | hard disks are created for all normal hard disks of the machine.
|
---|
4175 |
|
---|
4176 | If the current snapshot of the machine is an online snapshot, the
|
---|
4177 | machine will go to the <link to="MachineState::Saved"> saved
|
---|
4178 | state</link>, so that the next time it is powered on, the execution
|
---|
4179 | state will be restored from the current snapshot.
|
---|
4180 |
|
---|
4181 | <note>
|
---|
4182 | The machine must not be running, otherwise the operation will fail.
|
---|
4183 | </note>
|
---|
4184 |
|
---|
4185 | <note>
|
---|
4186 | If the machine state is <link to="MachineState::Saved">Saved</link>
|
---|
4187 | prior to this operation, the saved state file will be implicitly
|
---|
4188 | discarded (as if <link to="IConsole::discardSavedState()"/> were
|
---|
4189 | called).
|
---|
4190 | </note>
|
---|
4191 |
|
---|
4192 | </desc>
|
---|
4193 | <param name="progress" type="IProgress" dir="return">
|
---|
4194 | <desc>Progress object to track the operation completion.</desc>
|
---|
4195 | </param>
|
---|
4196 | </method>
|
---|
4197 |
|
---|
4198 | <method name="discardCurrentSnapshotAndState">
|
---|
4199 | <desc>
|
---|
4200 |
|
---|
4201 | This method is equivalent to
|
---|
4202 | doing <link to="#discardSnapshot">discardSnapshot</link>
|
---|
4203 | (<link
|
---|
4204 | to="IMachine::currentSnapshot">currentSnapshot</link>.<link
|
---|
4205 | to="ISnapshot::id">id()</link>, ...) followed by
|
---|
4206 | <link to="#discardCurrentState()"/>.
|
---|
4207 |
|
---|
4208 | As a result, the machine will be fully restored from the
|
---|
4209 | snapshot preceeding the current snapshot, while both the current
|
---|
4210 | snapshot and the current machine state will be discarded.
|
---|
4211 |
|
---|
4212 | If the current snapshot is the first snapshot of the machine (i.e. it
|
---|
4213 | has the only snapshot), the current machine state will be
|
---|
4214 | discarded <b>before</b> discarding the snapshot. In other words, the
|
---|
4215 | machine will be restored from its last snapshot, before discarding
|
---|
4216 | it. This differs from performing a single
|
---|
4217 | <link to="#discardSnapshot()"/> call (note that no
|
---|
4218 | <link to="#discardCurrentState()"/> will be possible after it) to the
|
---|
4219 | effect that the latter will preserve the current state instead of
|
---|
4220 | discarding it.
|
---|
4221 |
|
---|
4222 | Unless explicitly mentioned otherwise, all remarks and
|
---|
4223 | limitations of the above two methods also apply to this method.
|
---|
4224 |
|
---|
4225 | <note>
|
---|
4226 | The machine must not be running, otherwise the operation
|
---|
4227 | will fail.
|
---|
4228 | </note>
|
---|
4229 |
|
---|
4230 | <note>
|
---|
4231 | If the machine state is <link to="MachineState::Saved">Saved</link>
|
---|
4232 | prior to this operation, the saved state file will be implicitly
|
---|
4233 | discarded (as if <link to="IConsole::discardSavedState()"/> were
|
---|
4234 | called).</note>
|
---|
4235 |
|
---|
4236 | <note>
|
---|
4237 | This method is more efficient than calling two above
|
---|
4238 | methods separately: it requires less IPC calls and provides
|
---|
4239 | a single progress object.
|
---|
4240 | </note>
|
---|
4241 |
|
---|
4242 | </desc>
|
---|
4243 | <param name="progress" type="IProgress" dir="return">
|
---|
4244 | <desc>Progress object to track the operation completion.</desc>
|
---|
4245 | </param>
|
---|
4246 | </method>
|
---|
4247 |
|
---|
4248 | <method name="registerCallback">
|
---|
4249 | <desc>
|
---|
4250 | Registers a new console callback on this instance. The methods of the
|
---|
4251 | callback interface will be called by this instance when the appropriate
|
---|
4252 | event occurs.
|
---|
4253 | </desc>
|
---|
4254 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
4255 | </method>
|
---|
4256 |
|
---|
4257 | <method name="unregisterCallback">
|
---|
4258 | <desc>
|
---|
4259 | Unregisters the console callback previously registered using
|
---|
4260 | <link to="#registerCallback"/>.
|
---|
4261 | </desc>
|
---|
4262 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
4263 | </method>
|
---|
4264 |
|
---|
4265 | </interface>
|
---|
4266 |
|
---|
4267 | <!--
|
---|
4268 | // IHost
|
---|
4269 | /////////////////////////////////////////////////////////////////////////
|
---|
4270 | -->
|
---|
4271 |
|
---|
4272 | <interface
|
---|
4273 | name="IHostDVDDrive" extends="$unknown"
|
---|
4274 | uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
|
---|
4275 | wsmap="managed"
|
---|
4276 | >
|
---|
4277 | <desc>
|
---|
4278 | The IHostDVDDrive interface represents the physical CD/DVD drive
|
---|
4279 | hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
|
---|
4280 | </desc>
|
---|
4281 |
|
---|
4282 | <attribute name="name" type="wstring" readonly="yes">
|
---|
4283 | <desc>
|
---|
4284 | Returns the platform-specific device identifier.
|
---|
4285 | On DOS-like platforms, it is a drive name (e.g. R:).
|
---|
4286 | On Unix-like platforms, it is a device name (e.g. /dev/hdc).
|
---|
4287 | </desc>
|
---|
4288 | </attribute>
|
---|
4289 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4290 | <desc>
|
---|
4291 | Returns a human readable description for the drive. This
|
---|
4292 | description usually contains the product and vendor name. A
|
---|
4293 | @c null string is returned if the description is not available.
|
---|
4294 | </desc>
|
---|
4295 | </attribute>
|
---|
4296 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
4297 | <desc>
|
---|
4298 | Returns the unique device identifier for the drive. This
|
---|
4299 | attribute is reserved for future use instead of
|
---|
4300 | <link to="#name"/>. Currently it is not used and may return
|
---|
4301 | @c null on some platforms.
|
---|
4302 | </desc>
|
---|
4303 | </attribute>
|
---|
4304 |
|
---|
4305 | </interface>
|
---|
4306 |
|
---|
4307 | <enumerator
|
---|
4308 | name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
|
---|
4309 | uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
|
---|
4310 | />
|
---|
4311 |
|
---|
4312 | <collection
|
---|
4313 | name="IHostDVDDriveCollection" type="IHostDVDDrive"
|
---|
4314 | enumerator="IHostDVDDriveEnumerator"
|
---|
4315 | uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
|
---|
4316 | readonly="yes"
|
---|
4317 | >
|
---|
4318 | <method name="findByName">
|
---|
4319 | <desc>
|
---|
4320 | Searches this collection for a host drive with the given name.
|
---|
4321 | <note>
|
---|
4322 | The method returns an error if the given name does not
|
---|
4323 | correspond to any host drive in the collection.
|
---|
4324 | </note>
|
---|
4325 | </desc>
|
---|
4326 | <param name="name" type="wstring" dir="in">
|
---|
4327 | <desc>Name of the host drive to search for</desc>
|
---|
4328 | </param>
|
---|
4329 | <param name="drive" type="IHostDVDDrive" dir="return">
|
---|
4330 | <desc>Found host drive object</desc>
|
---|
4331 | </param>
|
---|
4332 | </method>
|
---|
4333 | </collection>
|
---|
4334 |
|
---|
4335 | <interface
|
---|
4336 | name="IHostFloppyDrive" extends="$unknown"
|
---|
4337 | uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
|
---|
4338 | wsmap="managed"
|
---|
4339 | >
|
---|
4340 | <desc>
|
---|
4341 | The IHostFloppyDrive interface represents the physical floppy drive
|
---|
4342 | hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
|
---|
4343 | </desc>
|
---|
4344 | <attribute name="name" type="wstring" readonly="yes">
|
---|
4345 | <desc>
|
---|
4346 | Returns the platform-specific device identifier.
|
---|
4347 | On DOS-like platforms, it is a drive name (e.g. A:).
|
---|
4348 | On Unix-like platforms, it is a device name (e.g. /dev/fd0).
|
---|
4349 | </desc>
|
---|
4350 | </attribute>
|
---|
4351 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4352 | <desc>
|
---|
4353 | Returns a human readable description for the drive. This
|
---|
4354 | description usually contains the product and vendor name. A
|
---|
4355 | @c null string is returned if the description is not available.
|
---|
4356 | </desc>
|
---|
4357 | </attribute>
|
---|
4358 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
4359 | <desc>
|
---|
4360 | Returns the unique device identifier for the drive. This
|
---|
4361 | attribute is reserved for future use instead of
|
---|
4362 | <link to="#name"/>. Currently it is not used and may return
|
---|
4363 | @c null on some platforms.
|
---|
4364 | </desc>
|
---|
4365 | </attribute>
|
---|
4366 | </interface>
|
---|
4367 |
|
---|
4368 | <enumerator
|
---|
4369 | name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
|
---|
4370 | uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
|
---|
4371 | />
|
---|
4372 |
|
---|
4373 | <collection
|
---|
4374 | name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
|
---|
4375 | enumerator="IHostFloppyDriveEnumerator"
|
---|
4376 | uuid="fd84bb86-c59a-4037-a557-755ff263a460"
|
---|
4377 | readonly="yes"
|
---|
4378 | >
|
---|
4379 | <method name="findByName">
|
---|
4380 | <desc>
|
---|
4381 | Searches this collection for a host drive with the given name.
|
---|
4382 | <note>
|
---|
4383 | The method returns an error if the given name does not
|
---|
4384 | correspond to any host drive in the collection.
|
---|
4385 | </note>
|
---|
4386 | </desc>
|
---|
4387 | <param name="name" type="wstring" dir="in">
|
---|
4388 | <desc>Name of the host drive to search for</desc>
|
---|
4389 | </param>
|
---|
4390 | <param name="drive" type="IHostFloppyDrive" dir="return">
|
---|
4391 | <desc>Found host drive object</desc>
|
---|
4392 | </param>
|
---|
4393 | </method>
|
---|
4394 | </collection>
|
---|
4395 |
|
---|
4396 | <if target="midl">
|
---|
4397 | <interface
|
---|
4398 | name="IHostNetworkInterface" extends="$unknown"
|
---|
4399 | uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
|
---|
4400 | wsmap="managed"
|
---|
4401 | >
|
---|
4402 | <attribute name="name" type="wstring" readonly="yes">
|
---|
4403 | <desc>Returns the host network interface name.</desc>
|
---|
4404 | </attribute>
|
---|
4405 |
|
---|
4406 | <attribute name="id" type="uuid" readonly="yes">
|
---|
4407 | <desc>Returns the interface UUID.</desc>
|
---|
4408 | </attribute>
|
---|
4409 | </interface>
|
---|
4410 |
|
---|
4411 | <enumerator
|
---|
4412 | name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
|
---|
4413 | uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
|
---|
4414 | />
|
---|
4415 |
|
---|
4416 | <collection
|
---|
4417 | name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
|
---|
4418 | enumerator="IHostNetworkInterfaceEnumerator"
|
---|
4419 | uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
|
---|
4420 | readonly="yes"
|
---|
4421 | >
|
---|
4422 | <method name="findByName">
|
---|
4423 | <desc>
|
---|
4424 | Searches this collection for a host network interface with the given name.
|
---|
4425 | <note>
|
---|
4426 | The method returns an error if the given name does not
|
---|
4427 | correspond to any host network interface in the collection.
|
---|
4428 | </note>
|
---|
4429 | </desc>
|
---|
4430 | <param name="name" type="wstring" dir="in">
|
---|
4431 | <desc>Name of the host network interface to search for.</desc>
|
---|
4432 | </param>
|
---|
4433 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
4434 | <desc>Found host network interface object.</desc>
|
---|
4435 | </param>
|
---|
4436 | </method>
|
---|
4437 | <method name="findById">
|
---|
4438 | <desc>
|
---|
4439 | Searches this collection for a host network interface with the given GUID.
|
---|
4440 | <note>
|
---|
4441 | The method returns an error if the given GUID does not
|
---|
4442 | correspond to any host network interface in the collection.
|
---|
4443 | </note>
|
---|
4444 | </desc>
|
---|
4445 | <param name="id" type="uuid" dir="in">
|
---|
4446 | <desc>GUID of the host network interface to search for.</desc>
|
---|
4447 | </param>
|
---|
4448 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
4449 | <desc>Found host network interface object.</desc>
|
---|
4450 | </param>
|
---|
4451 | </method>
|
---|
4452 | </collection>
|
---|
4453 | </if>
|
---|
4454 |
|
---|
4455 | <interface
|
---|
4456 | name="IHost" extends="$unknown"
|
---|
4457 | uuid="81729c26-1aec-46f5-b7c0-cc7364738fdb"
|
---|
4458 | wsmap="managed"
|
---|
4459 | >
|
---|
4460 | <desc>
|
---|
4461 | The IHost interface represents the physical machine that this VirtualBox
|
---|
4462 | installation runs on.
|
---|
4463 |
|
---|
4464 | An object implementing this interface is returned by the
|
---|
4465 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
4466 | read-only information about the host's physical hardware (such as what
|
---|
4467 | processors, and disks are available, what the host operating system is,
|
---|
4468 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
4469 | such as global USB device filters and host interface networking.
|
---|
4470 |
|
---|
4471 | </desc>
|
---|
4472 | <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
|
---|
4473 | <desc>List of DVD drives available on the host.</desc>
|
---|
4474 | </attribute>
|
---|
4475 |
|
---|
4476 | <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
|
---|
4477 | <desc>List of floppy drives available on the host.</desc>
|
---|
4478 | </attribute>
|
---|
4479 |
|
---|
4480 | <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
4481 | <desc>
|
---|
4482 | List of USB devices currently attached to the host.
|
---|
4483 | Once a new device is physically attached to the host computer,
|
---|
4484 | it appears in this list and remains there until detached.
|
---|
4485 |
|
---|
4486 | <note>
|
---|
4487 | This method may set a @ref com_warnings "warning result code".
|
---|
4488 | </note>
|
---|
4489 | <note>
|
---|
4490 | If USB functionality is not avaliable in the given edition of
|
---|
4491 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4492 | </note>
|
---|
4493 | </desc>
|
---|
4494 | </attribute>
|
---|
4495 |
|
---|
4496 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
|
---|
4497 | <desc>
|
---|
4498 | List of USB device filters in action.
|
---|
4499 | When a new device is physically attached to the host computer,
|
---|
4500 | filters from this list are applied to it (in order they are stored
|
---|
4501 | in the list). The first matched filter will determine the
|
---|
4502 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
4503 | performed on the device.
|
---|
4504 |
|
---|
4505 | Unless the device is ignored by these filters, filters of all
|
---|
4506 | currently running virtual machines
|
---|
4507 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
4508 |
|
---|
4509 | <note>
|
---|
4510 | This method may set a @ref com_warnings "warning result code".
|
---|
4511 | </note>
|
---|
4512 | <note>
|
---|
4513 | If USB functionality is not avaliable in the given edition of
|
---|
4514 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4515 | </note>
|
---|
4516 |
|
---|
4517 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
4518 | </desc>
|
---|
4519 | </attribute>
|
---|
4520 |
|
---|
4521 | <if target="midl">
|
---|
4522 | <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
|
---|
4523 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
4524 | </attribute>
|
---|
4525 | </if>
|
---|
4526 |
|
---|
4527 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
4528 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
4529 | </attribute>
|
---|
4530 |
|
---|
4531 | <attribute name="processorSpeed" type="unsigned long" readonly="yes">
|
---|
4532 | <desc>(Approximate) speed of the host CPU in Megahertz.</desc>
|
---|
4533 | </attribute>
|
---|
4534 |
|
---|
4535 | <attribute name="processorDescription" type="wstring" readonly="yes">
|
---|
4536 | <desc>Description string of the host CPU.</desc>
|
---|
4537 | </attribute>
|
---|
4538 |
|
---|
4539 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
4540 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
4541 | </attribute>
|
---|
4542 |
|
---|
4543 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
4544 | <desc>Available system memory in the host system.</desc>
|
---|
4545 | </attribute>
|
---|
4546 |
|
---|
4547 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
4548 | <desc>Name of the host system's operating system.</desc>
|
---|
4549 | </attribute>
|
---|
4550 |
|
---|
4551 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
4552 | <desc>Host operating system's version string.</desc>
|
---|
4553 | </attribute>
|
---|
4554 |
|
---|
4555 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
4556 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
4557 | </attribute>
|
---|
4558 |
|
---|
4559 | <if target="midl">
|
---|
4560 | <method name="createHostNetworkInterface">
|
---|
4561 | <desc>
|
---|
4562 | Creates a new adapter for Host Interface Networking.
|
---|
4563 | </desc>
|
---|
4564 | <param name="name" type="wstring" dir="in">
|
---|
4565 | <desc>
|
---|
4566 | Adapter name.
|
---|
4567 | </desc>
|
---|
4568 | </param>
|
---|
4569 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
4570 | <desc>
|
---|
4571 | Created host interface object.
|
---|
4572 | </desc>
|
---|
4573 | </param>
|
---|
4574 | <param name="progress" type="IProgress" dir="return">
|
---|
4575 | <desc>
|
---|
4576 | Progress object to track the operation completion.
|
---|
4577 | </desc>
|
---|
4578 | </param>
|
---|
4579 | </method>
|
---|
4580 | <method name="removeHostNetworkInterface">
|
---|
4581 | <desc>
|
---|
4582 | Removes the given host network interface.
|
---|
4583 | </desc>
|
---|
4584 | <param name="id" type="uuid" dir="in">
|
---|
4585 | <desc>
|
---|
4586 | Adapter GUID.
|
---|
4587 | </desc>
|
---|
4588 | </param>
|
---|
4589 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
4590 | <desc>
|
---|
4591 | Removed host interface object.
|
---|
4592 | </desc>
|
---|
4593 | </param>
|
---|
4594 | <param name="progress" type="IProgress" dir="return">
|
---|
4595 | <desc>
|
---|
4596 | Progress object to track the operation completion.
|
---|
4597 | </desc>
|
---|
4598 | </param>
|
---|
4599 | </method>
|
---|
4600 | </if>
|
---|
4601 |
|
---|
4602 | <method name="createUSBDeviceFilter">
|
---|
4603 | <desc>
|
---|
4604 | Creates a new USB device filter. All attributes except
|
---|
4605 | the filter name are set to <tt>null</tt> (any match),
|
---|
4606 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
4607 |
|
---|
4608 | The created filter can be added to the list of filters using
|
---|
4609 | <link to="#insertUSBDeviceFilter()"/>.
|
---|
4610 |
|
---|
4611 | <see>#USBDeviceFilters</see>
|
---|
4612 | </desc>
|
---|
4613 | <param name="name" type="wstring" dir="in">
|
---|
4614 | <desc>
|
---|
4615 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
4616 | for more info.
|
---|
4617 | </desc>
|
---|
4618 | </param>
|
---|
4619 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
4620 | <desc>Created filter object.</desc>
|
---|
4621 | </param>
|
---|
4622 | </method>
|
---|
4623 |
|
---|
4624 | <method name="insertUSBDeviceFilter">
|
---|
4625 | <desc>
|
---|
4626 | Inserts the given USB device to the specified position
|
---|
4627 | in the list of filters.
|
---|
4628 |
|
---|
4629 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
4630 | position is equal to or greater than the number of elements in
|
---|
4631 | the list, the filter is added to the end of the collection.
|
---|
4632 |
|
---|
4633 | <note>
|
---|
4634 | Duplicates are not allowed, so an attempt to insert a
|
---|
4635 | filter that is already in the list, will return an
|
---|
4636 | error.
|
---|
4637 | </note>
|
---|
4638 | <note>
|
---|
4639 | This method may set a @ref com_warnings "warning result code".
|
---|
4640 | </note>
|
---|
4641 | <note>
|
---|
4642 | If USB functionality is not avaliable in the given edition of
|
---|
4643 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4644 | </note>
|
---|
4645 |
|
---|
4646 | <see>#USBDeviceFilters</see>
|
---|
4647 | </desc>
|
---|
4648 | <param name="position" type="unsigned long" dir="in">
|
---|
4649 | <desc>Position to insert the filter to.</desc>
|
---|
4650 | </param>
|
---|
4651 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
4652 | <desc>USB device filter to insert.</desc>
|
---|
4653 | </param>
|
---|
4654 | </method>
|
---|
4655 |
|
---|
4656 | <method name="removeUSBDeviceFilter">
|
---|
4657 | <desc>
|
---|
4658 | Removes a USB device filter from the specified position in the
|
---|
4659 | list of filters.
|
---|
4660 |
|
---|
4661 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
4662 | position equal to or greater than the number of elements in
|
---|
4663 | the list will produce an error.
|
---|
4664 |
|
---|
4665 | <note>
|
---|
4666 | This method may set a @ref com_warnings "warning result code".
|
---|
4667 | </note>
|
---|
4668 | <note>
|
---|
4669 | If USB functionality is not avaliable in the given edition of
|
---|
4670 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4671 | </note>
|
---|
4672 |
|
---|
4673 | <see>#USBDeviceFilters</see>
|
---|
4674 | </desc>
|
---|
4675 | <param name="position" type="unsigned long" dir="in">
|
---|
4676 | <desc>Position to remove the filter from.</desc>
|
---|
4677 | </param>
|
---|
4678 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
4679 | <desc>Removed USB device filter.</desc>
|
---|
4680 | </param>
|
---|
4681 | </method>
|
---|
4682 |
|
---|
4683 | </interface>
|
---|
4684 |
|
---|
4685 | <!--
|
---|
4686 | // ISystemProperties
|
---|
4687 | /////////////////////////////////////////////////////////////////////////
|
---|
4688 | -->
|
---|
4689 |
|
---|
4690 | <interface
|
---|
4691 | name="ISystemProperties"
|
---|
4692 | extends="$unknown"
|
---|
4693 | uuid="12c2e31e-247f-4d51-82e5-5b9d4a6c7d5b"
|
---|
4694 | wsmap="struct"
|
---|
4695 | >
|
---|
4696 | <desc>
|
---|
4697 | The ISystemProperties interface represents global properties
|
---|
4698 | of the given VirtualBox installation.
|
---|
4699 |
|
---|
4700 | These properties define limits and default values for various
|
---|
4701 | attributes and parameters.
|
---|
4702 |
|
---|
4703 | Most of the properties are read-only, but some can be changed by
|
---|
4704 | a user.
|
---|
4705 | </desc>
|
---|
4706 |
|
---|
4707 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
4708 | <desc>Minium guest system memory in Megabytes.</desc>
|
---|
4709 | </attribute>
|
---|
4710 |
|
---|
4711 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
4712 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
4713 | </attribute>
|
---|
4714 |
|
---|
4715 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
4716 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
4717 | </attribute>
|
---|
4718 |
|
---|
4719 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
4720 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
4721 | </attribute>
|
---|
4722 |
|
---|
4723 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
4724 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
4725 | </attribute>
|
---|
4726 |
|
---|
4727 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
4728 | <desc>
|
---|
4729 | Number of network adapters associated with every
|
---|
4730 | <link to="IMachine"/> instance.
|
---|
4731 | </desc>
|
---|
4732 | </attribute>
|
---|
4733 |
|
---|
4734 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
4735 | <desc>
|
---|
4736 | Number of serial ports associated with every
|
---|
4737 | <link to="IMachine"/> instance.
|
---|
4738 | </desc>
|
---|
4739 | </attribute>
|
---|
4740 |
|
---|
4741 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
4742 | <desc>
|
---|
4743 | Number of parallel ports associated with every
|
---|
4744 | <link to="IMachine"/> instance.
|
---|
4745 | </desc>
|
---|
4746 | </attribute>
|
---|
4747 |
|
---|
4748 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
4749 | <desc>
|
---|
4750 | Maximum device position in the boot order. This value corresponds
|
---|
4751 | to the total number of devices a machine can boot from, to make it
|
---|
4752 | possible to include all possible devices to the boot list.
|
---|
4753 | <see><link to="IMachine::setBootOrder()"/></see>
|
---|
4754 | </desc>
|
---|
4755 | </attribute>
|
---|
4756 |
|
---|
4757 | <attribute name="defaultVDIFolder" type="wstring">
|
---|
4758 | <desc>
|
---|
4759 | Full path to the default directory used to create new or open
|
---|
4760 | existing virtual disk images when an image file name contains no
|
---|
4761 | path.
|
---|
4762 |
|
---|
4763 | The initial value of this property is
|
---|
4764 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
4765 | VirtualBox_home</link><tt>>/VDI</tt>.
|
---|
4766 |
|
---|
4767 | <note>
|
---|
4768 | Setting this property to <tt>null</tt> will restore the
|
---|
4769 | initial value.
|
---|
4770 | </note>
|
---|
4771 | <note>
|
---|
4772 | When settings this property, the specified path can be
|
---|
4773 | absolute (full path) or relative
|
---|
4774 | to the <link to="IVirtualBox::homeFolder">
|
---|
4775 | VirtualBox home directory</link>.
|
---|
4776 | When reading this property, a full path is
|
---|
4777 | always returned.
|
---|
4778 | </note>
|
---|
4779 | <note>
|
---|
4780 | The specified path may not exist, it will be created
|
---|
4781 | when necessary.
|
---|
4782 | </note>
|
---|
4783 |
|
---|
4784 | <see>
|
---|
4785 | <link to="IVirtualBox::createHardDisk()"/>,
|
---|
4786 | <link to="IVirtualBox::openVirtualDiskImage()"/>
|
---|
4787 | </see>
|
---|
4788 | </desc>
|
---|
4789 | </attribute>
|
---|
4790 |
|
---|
4791 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
4792 | <desc>
|
---|
4793 | Full path to the default directory used to create new or open
|
---|
4794 | existing machines when a settings file name contains no
|
---|
4795 | path.
|
---|
4796 |
|
---|
4797 | The initial value of this property is
|
---|
4798 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
4799 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
4800 |
|
---|
4801 | <note>
|
---|
4802 | Setting this property to <tt>null</tt> will restore the
|
---|
4803 | initial value.
|
---|
4804 | </note>
|
---|
4805 | <note>
|
---|
4806 | When settings this property, the specified path can be
|
---|
4807 | absolute (full path) or relative
|
---|
4808 | to the <link to="IVirtualBox::homeFolder">
|
---|
4809 | VirtualBox home directory</link>.
|
---|
4810 | When reading this property, a full path is
|
---|
4811 | always returned.
|
---|
4812 | </note>
|
---|
4813 | <note>
|
---|
4814 | The specified path may not exist, it will be created
|
---|
4815 | when necessary.
|
---|
4816 | </note>
|
---|
4817 |
|
---|
4818 | <see>
|
---|
4819 | <link to="IVirtualBox::createMachine()"/>,
|
---|
4820 | <link to="IVirtualBox::openMachine()"/>
|
---|
4821 | </see>
|
---|
4822 | </desc>
|
---|
4823 | </attribute>
|
---|
4824 |
|
---|
4825 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
4826 | <desc>
|
---|
4827 | Library that provides authentication for VRDP clients. The library
|
---|
4828 | is used if a virtual machine's authentication type is set to "external"
|
---|
4829 | in the VM RemoteDisplay configuration.
|
---|
4830 |
|
---|
4831 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
4832 | A full path can be specified; if not, then the library must reside on the
|
---|
4833 | system's default library path.
|
---|
4834 |
|
---|
4835 | The default value of this property is <tt>VRDPAuth</tt>. There is a library
|
---|
4836 | of that name in one of the default VirtualBox library directories.
|
---|
4837 |
|
---|
4838 | For details about VirtualBox authentication libraries and how to implement
|
---|
4839 | them, please refer to the VirtualBox manual.
|
---|
4840 |
|
---|
4841 | <note>
|
---|
4842 | Setting this property to <tt>null</tt> will restore the
|
---|
4843 | initial value.
|
---|
4844 | </note>
|
---|
4845 | </desc>
|
---|
4846 | </attribute>
|
---|
4847 |
|
---|
4848 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
4849 | <desc>
|
---|
4850 | Library that provides authentication for webservice clients. The library
|
---|
4851 | is used if a virtual machine's authentication type is set to "external"
|
---|
4852 | in the VM RemoteDisplay configuration and will be called from
|
---|
4853 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
4854 |
|
---|
4855 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
4856 | there is no per-VM setting for this, as the webservice is a global
|
---|
4857 | resource (if it is running). Only for this setting (for the webservice),
|
---|
4858 | setting this value to a literal "null" string disables authentication,
|
---|
4859 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
4860 | no matter what user name and password are supplied.
|
---|
4861 |
|
---|
4862 | The initial value of this property is <tt>VRDPAuth</tt>,
|
---|
4863 | meaning that the webservice will use the same authentication
|
---|
4864 | library that is used by default for VBoxVRDP (again, see
|
---|
4865 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
4866 | The format and calling convetion of authentication libraries
|
---|
4867 | is the same for the webservice as it is for VBoxVRDP.
|
---|
4868 |
|
---|
4869 | </desc>
|
---|
4870 | </attribute>
|
---|
4871 |
|
---|
4872 | <attribute name="HWVirtExEnabled" type="boolean">
|
---|
4873 | <desc>
|
---|
4874 | This specifies the default value for hardware virtualization
|
---|
4875 | extensions. If enabled, virtual machines will make use of
|
---|
4876 | hardware virtualization extensions such as Intel VT-x and
|
---|
4877 | AMD SVM by default. This value can be overridden by each VM
|
---|
4878 | using their <link to="IMachine::HWVirtExEnabled" /> property.
|
---|
4879 | </desc>
|
---|
4880 | </attribute>
|
---|
4881 |
|
---|
4882 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
4883 | <desc>
|
---|
4884 | This value specifies how many old release log files are kept.
|
---|
4885 | </desc>
|
---|
4886 | </attribute>
|
---|
4887 | </interface>
|
---|
4888 |
|
---|
4889 | <!--
|
---|
4890 | // IGuest
|
---|
4891 | /////////////////////////////////////////////////////////////////////////
|
---|
4892 | -->
|
---|
4893 |
|
---|
4894 | <interface
|
---|
4895 | name="IGuestOSType" extends="$unknown"
|
---|
4896 | uuid="da94f478-1f37-4726-b750-2235950dc2fe"
|
---|
4897 | wsmap="struct"
|
---|
4898 | >
|
---|
4899 | <attribute name="id" type="wstring" readonly="yes">
|
---|
4900 | <desc>Guest OS identifier string.</desc>
|
---|
4901 | </attribute>
|
---|
4902 |
|
---|
4903 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4904 | <desc>Human readable description of the guest OS.</desc>
|
---|
4905 | </attribute>
|
---|
4906 |
|
---|
4907 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
4908 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
4909 | </attribute>
|
---|
4910 |
|
---|
4911 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
4912 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
4913 | </attribute>
|
---|
4914 |
|
---|
4915 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
4916 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
4917 | </attribute>
|
---|
4918 | </interface>
|
---|
4919 |
|
---|
4920 |
|
---|
4921 | <enumerator
|
---|
4922 | name="IGuestOSTypeEnumerator" type="IGuestOSType"
|
---|
4923 | uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
|
---|
4924 | />
|
---|
4925 |
|
---|
4926 | <collection
|
---|
4927 | name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
|
---|
4928 | uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
|
---|
4929 | readonly="yes"
|
---|
4930 | />
|
---|
4931 |
|
---|
4932 | <interface
|
---|
4933 | name="IGuest" extends="$unknown"
|
---|
4934 | uuid="c101f037-b03d-4bd4-bd25-381123980be2"
|
---|
4935 | wsmap="suppress"
|
---|
4936 | >
|
---|
4937 | <desc>
|
---|
4938 | The IGuest interface represents information about the operating system
|
---|
4939 | running inside the virtual machine. Used in
|
---|
4940 | <link to="IConsole::guest"/>.
|
---|
4941 |
|
---|
4942 | IGuest provides information about the guest operating system, whether
|
---|
4943 | Guest Additions are installed and other OS-specific virtual machine
|
---|
4944 | properties.
|
---|
4945 | </desc>
|
---|
4946 |
|
---|
4947 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
4948 | <desc>
|
---|
4949 | Identifier of the Guest OS type as reported by the Guest
|
---|
4950 | Additions.
|
---|
4951 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4952 | an IGuestOSType object representing details about the given
|
---|
4953 | Guest OS type.
|
---|
4954 | <note>
|
---|
4955 | If Guest Additions are not installed, this value will be
|
---|
4956 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
4957 | </note>
|
---|
4958 | </desc>
|
---|
4959 | </attribute>
|
---|
4960 |
|
---|
4961 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
4962 | <desc>
|
---|
4963 | Flag whether the Guest Additions are installed and active
|
---|
4964 | in which case their version will be returned by the
|
---|
4965 | <link to="#additionsVersion"/> property.
|
---|
4966 | </desc>
|
---|
4967 | </attribute>
|
---|
4968 |
|
---|
4969 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
4970 | <desc>
|
---|
4971 | Version of the Guest Additions (3 decimal numbers separated
|
---|
4972 | by dots) or empty when the Additions are not installed. The
|
---|
4973 | Additions may also report a version but yet not be active as
|
---|
4974 | the version might be refused by VirtualBox (incompatible) or
|
---|
4975 | other failures occured.
|
---|
4976 | </desc>
|
---|
4977 | </attribute>
|
---|
4978 |
|
---|
4979 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
4980 | <desc>
|
---|
4981 | Flag whether seamless guest display rendering (seamless desktop
|
---|
4982 | integration) is supported.
|
---|
4983 | </desc>
|
---|
4984 | </attribute>
|
---|
4985 |
|
---|
4986 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
4987 | <desc>Guest system memory balloon size in megabytes.</desc>
|
---|
4988 | </attribute>
|
---|
4989 |
|
---|
4990 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
4991 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
4992 | </attribute>
|
---|
4993 |
|
---|
4994 | <method name="setCredentials">
|
---|
4995 | <desc>
|
---|
4996 | Store login credentials that can be queried by guest operating
|
---|
4997 | systems with Additions installed. The credentials are transient
|
---|
4998 | to the session and the guest may also choose to erase them. Note
|
---|
4999 | that the caller cannot determine whether the guest operating system
|
---|
5000 | has queried or made use of the credentials.
|
---|
5001 | </desc>
|
---|
5002 | <param name="userName" type="wstring" dir="in">
|
---|
5003 | <desc>User name string, can be empty</desc>
|
---|
5004 | </param>
|
---|
5005 | <param name="password" type="wstring" dir="in">
|
---|
5006 | <desc>Password string, can be empty</desc>
|
---|
5007 | </param>
|
---|
5008 | <param name="domain" type="wstring" dir="in">
|
---|
5009 | <desc>Domain name (guest logon scheme specific), can be emtpy</desc>
|
---|
5010 | </param>
|
---|
5011 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
5012 | <desc>
|
---|
5013 | Flag whether the guest should alternatively allow the user to
|
---|
5014 | interactively specify different credentials. This flag might
|
---|
5015 | not be supported by all versions of the Additions.
|
---|
5016 | </desc>
|
---|
5017 | </param>
|
---|
5018 | </method>
|
---|
5019 |
|
---|
5020 | <method name="getStatistic">
|
---|
5021 | <desc>
|
---|
5022 | Query specified guest statistics as reported by the VirtualBox Additions.
|
---|
5023 | </desc>
|
---|
5024 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
5025 | <desc>Virtual CPU id; not relevant for all statistic types</desc>
|
---|
5026 | </param>
|
---|
5027 | <param name="statistic" type="GuestStatisticType" dir="in">
|
---|
5028 | <desc>Statistic type.</desc>
|
---|
5029 | </param>
|
---|
5030 | <param name="statVal" type="unsigned long" dir="out">
|
---|
5031 | <desc>Statistics value</desc>
|
---|
5032 | </param>
|
---|
5033 | </method>
|
---|
5034 |
|
---|
5035 | </interface>
|
---|
5036 |
|
---|
5037 |
|
---|
5038 | <!--
|
---|
5039 | // IProgress
|
---|
5040 | /////////////////////////////////////////////////////////////////////////
|
---|
5041 | -->
|
---|
5042 |
|
---|
5043 | <enumerator
|
---|
5044 | name="IProgressEnumerator" type="IProgress"
|
---|
5045 | uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
|
---|
5046 | />
|
---|
5047 |
|
---|
5048 | <collection
|
---|
5049 | name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
|
---|
5050 | uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
|
---|
5051 | readonly="yes"
|
---|
5052 | />
|
---|
5053 |
|
---|
5054 | <interface
|
---|
5055 | name="IProgress" extends="$unknown"
|
---|
5056 | uuid="10CC03A1-717E-429b-992D-C67B56175A51"
|
---|
5057 | wsmap="managed"
|
---|
5058 | >
|
---|
5059 | <desc>
|
---|
5060 | The IProgress interface represents a task progress object that allows
|
---|
5061 | to wait for the completion of some asynchronous task.
|
---|
5062 |
|
---|
5063 | The task consists of one or more operations that run sequentially,
|
---|
5064 | one after one. There is an individual percent of completion of the
|
---|
5065 | current operation and the percent of completion of the task as a
|
---|
5066 | whole. Similarly, you can wait for the completion of a particular
|
---|
5067 | operation or for the completion of the whole task.
|
---|
5068 |
|
---|
5069 | Every operation is identified by a number (starting from 0)
|
---|
5070 | and has a separate description.
|
---|
5071 | </desc>
|
---|
5072 |
|
---|
5073 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5074 | <desc>ID of the task.</desc>
|
---|
5075 | </attribute>
|
---|
5076 |
|
---|
5077 | <attribute name="description" type="wstring" readonly="yes">
|
---|
5078 | <desc>Description of the task.</desc>
|
---|
5079 | </attribute>
|
---|
5080 |
|
---|
5081 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
5082 | <desc>Initiator of the task.</desc>
|
---|
5083 | </attribute>
|
---|
5084 |
|
---|
5085 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
5086 | <desc>Whether the task can be interrupted.</desc>
|
---|
5087 | </attribute>
|
---|
5088 |
|
---|
5089 | <attribute name="percent" type="long" readonly="yes">
|
---|
5090 | <desc>
|
---|
5091 | Current task progress value in percent.
|
---|
5092 | This value depends on how many operations are already complete.
|
---|
5093 | </desc>
|
---|
5094 | </attribute>
|
---|
5095 |
|
---|
5096 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
5097 | <desc>Whether the task has been completed.</desc>
|
---|
5098 | </attribute>
|
---|
5099 |
|
---|
5100 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
5101 | <desc>Whether the task has been canceled.</desc>
|
---|
5102 | </attribute>
|
---|
5103 |
|
---|
5104 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
5105 | <desc>
|
---|
5106 | Result code of the progress task.
|
---|
5107 | Valid only if <link to="#completed"/> is true.
|
---|
5108 | </desc>
|
---|
5109 | </attribute>
|
---|
5110 |
|
---|
5111 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
5112 | <desc>
|
---|
5113 | Extended information about the unsuccessful result of the
|
---|
5114 | progress operation. May be NULL when no extended information
|
---|
5115 | is available.
|
---|
5116 | Valid only if <link to="#completed"/> is true and
|
---|
5117 | <link to="#resultCode"/> indicates a failure.
|
---|
5118 | </desc>
|
---|
5119 | </attribute>
|
---|
5120 |
|
---|
5121 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
5122 | <desc>
|
---|
5123 | Number of operations this task is divided into.
|
---|
5124 | Every task consists of at least one operation.
|
---|
5125 | </desc>
|
---|
5126 | </attribute>
|
---|
5127 |
|
---|
5128 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
5129 | <desc>Number of the operation being currently executed.</desc>
|
---|
5130 | </attribute>
|
---|
5131 |
|
---|
5132 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
5133 | <desc>
|
---|
5134 | Description of the operation being currently executed.
|
---|
5135 | </desc>
|
---|
5136 | </attribute>
|
---|
5137 |
|
---|
5138 | <attribute name="operationPercent" type="long" readonly="yes">
|
---|
5139 | <desc>Current operation progress value in percent.</desc>
|
---|
5140 | </attribute>
|
---|
5141 |
|
---|
5142 | <method name="waitForCompletion">
|
---|
5143 | <desc>
|
---|
5144 | Waits until the task is done (including all operations) with a
|
---|
5145 | given timeout.
|
---|
5146 | </desc>
|
---|
5147 | <param name="timeout" type="long" dir="in">
|
---|
5148 | <desc>
|
---|
5149 | Timeout value in milliseconds.
|
---|
5150 | Specify -1 for an indefinite wait.
|
---|
5151 | </desc>
|
---|
5152 | </param>
|
---|
5153 | </method>
|
---|
5154 |
|
---|
5155 | <method name="waitForOperationCompletion">
|
---|
5156 | <desc>
|
---|
5157 | Waits until the given operation is done with a given timeout.
|
---|
5158 | </desc>
|
---|
5159 | <param name="operation" type="unsigned long" dir="in">
|
---|
5160 | <desc>
|
---|
5161 | Number of the operation to wait for.
|
---|
5162 | Must be less than <link to="#operationCount"/>.
|
---|
5163 | </desc>
|
---|
5164 | </param>
|
---|
5165 | <param name="timeout" type="long" dir="in">
|
---|
5166 | <desc>
|
---|
5167 | Timeout value in milliseconds.
|
---|
5168 | Specify -1 for an indefinite wait.
|
---|
5169 | </desc>
|
---|
5170 | </param>
|
---|
5171 | </method>
|
---|
5172 |
|
---|
5173 | <method name="cancel">
|
---|
5174 | <desc>
|
---|
5175 | Cancels the task.
|
---|
5176 | <note>
|
---|
5177 | If <link to="#cancelable"/> is <tt>false</tt>, then
|
---|
5178 | this method will fail.
|
---|
5179 | </note>
|
---|
5180 | </desc>
|
---|
5181 | </method>
|
---|
5182 |
|
---|
5183 | </interface>
|
---|
5184 |
|
---|
5185 |
|
---|
5186 | <!--
|
---|
5187 | // ISnapshot
|
---|
5188 | /////////////////////////////////////////////////////////////////////////
|
---|
5189 | -->
|
---|
5190 |
|
---|
5191 | <enumerator
|
---|
5192 | name="ISnapshotEnumerator" type="ISnapshot"
|
---|
5193 | uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
|
---|
5194 | />
|
---|
5195 |
|
---|
5196 | <collection
|
---|
5197 | name="ISnapshotCollection" type="ISnapshot"
|
---|
5198 | enumerator="ISnapshotEnumerator"
|
---|
5199 | uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
|
---|
5200 | readonly="yes"
|
---|
5201 | />
|
---|
5202 |
|
---|
5203 | <interface
|
---|
5204 | name="ISnapshot" extends="$unknown"
|
---|
5205 | uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
|
---|
5206 | wsmap="managed"
|
---|
5207 | >
|
---|
5208 | <desc>
|
---|
5209 | The ISnapshot interface represents a snapshot of the virtual
|
---|
5210 | machine.
|
---|
5211 |
|
---|
5212 | The <i>snapshot</i> stores all the information about a virtual
|
---|
5213 | machine necessary to bring it to exactly the same state as it was at
|
---|
5214 | the time of taking the snapshot. The snapshot includes:
|
---|
5215 |
|
---|
5216 | <ul>
|
---|
5217 | <li>all settings of the virtual machine (i.e. its hardware
|
---|
5218 | configuration: RAM size, attached hard disks, etc.)
|
---|
5219 | </li>
|
---|
5220 | <li>the execution state of the virtual machine (memory contents,
|
---|
5221 | CPU state, etc.).
|
---|
5222 | </li>
|
---|
5223 | </ul>
|
---|
5224 |
|
---|
5225 | Snapshots can be <i>offline</i> (taken when the VM is powered off)
|
---|
5226 | or <i>online</i> (taken when the VM is running). The execution
|
---|
5227 | state of the offline snapshot is called a <i>zero execution state</i>
|
---|
5228 | (it doesn't actually contain any information about memory contents
|
---|
5229 | or the CPU state, assuming that all hardware is just powered off).
|
---|
5230 |
|
---|
5231 | <h3>Snapshot branches</h3>
|
---|
5232 |
|
---|
5233 | Snapshots can be chained. Chained snapshots form a branch where
|
---|
5234 | every next snapshot is based on the previous one. This chaining is
|
---|
5235 | mostly related to hard disk branching (see <link to="IHardDisk"/>
|
---|
5236 | description). This means that every time a new snapshot is created,
|
---|
5237 | a new differencing hard disk is implicitly created for all normal
|
---|
5238 | hard disks attached to the given virtual machine. This allows to
|
---|
5239 | fully restore hard disk contents when the machine is later reverted
|
---|
5240 | to a particular snapshot.
|
---|
5241 |
|
---|
5242 | In the current implelemtation, multiple snapshot branches within one
|
---|
5243 | virtual machine are not allowed. Every machine has a signle branch,
|
---|
5244 | and <link to="IConsole::takeSnapshot()"/> operation adds a new
|
---|
5245 | snapshot to the top of that branch.
|
---|
5246 |
|
---|
5247 | Existings snapshots can be discarded using
|
---|
5248 | <link to="IConsole::discardSnapshot()"/>.
|
---|
5249 |
|
---|
5250 | <h3>Current snapshot</h3>
|
---|
5251 |
|
---|
5252 | Every virtual machine has a current snapshot, identified by
|
---|
5253 | <link to="IMachine::currentSnapshot"/>. This snapshot is used as
|
---|
5254 | a base for the <i>current machine state</i> (see below), to the effect
|
---|
5255 | that all normal hard disks of the machine and its execution
|
---|
5256 | state are based on this snapshot.
|
---|
5257 |
|
---|
5258 | In the current implementation, the current snapshot is always the
|
---|
5259 | last taken snapshot (i.e. the head snapshot on the branch) and it
|
---|
5260 | cannot be changed.
|
---|
5261 |
|
---|
5262 | The current snapshot is <tt>null</tt> if the machine doesn't have
|
---|
5263 | snapshots at all; in this case the current machine state is just
|
---|
5264 | current settings of this machine plus its current execution state.
|
---|
5265 |
|
---|
5266 | <h3>Current machine state</h3>
|
---|
5267 |
|
---|
5268 | The current machine state is what represened by IMachine instances got
|
---|
5269 | directly from IVirtualBox
|
---|
5270 | using <link
|
---|
5271 | to="IVirtualBox::getMachine()">getMachine()</link>, <link
|
---|
5272 | to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as opposed
|
---|
5273 | to instances returned by <link to="ISnapshot::machine"/>). This state
|
---|
5274 | is always used when the machine is <link to="IConsole::powerUp"> powered
|
---|
5275 | on</link>.
|
---|
5276 |
|
---|
5277 | The current machine state also includes the current execution state.
|
---|
5278 | If the machine is being currently executed
|
---|
5279 | (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
|
---|
5280 | and above), its execution state is just what's happening now.
|
---|
5281 | If it is powered off (<link to="MachineState::PoweredOff"/> or
|
---|
5282 | <link to="MachineState::Aborted"/>), it has a zero execution state.
|
---|
5283 | If the machine is saved (<link to="MachineState::Saved"/>), its
|
---|
5284 | execution state is what saved in the execution state file
|
---|
5285 | (<link to="IMachine::stateFilePath"/>).
|
---|
5286 |
|
---|
5287 | If the machine is in the saved state, then, next time it is powered
|
---|
5288 | on, its execution state will be fully restored from the saved state
|
---|
5289 | file and the execution will continue from the point where the state
|
---|
5290 | was saved.
|
---|
5291 |
|
---|
5292 | Similarly to snapshots, the current machine state can be discarded
|
---|
5293 | using <link to="IConsole::discardCurrentState()"/>.
|
---|
5294 |
|
---|
5295 | <h3>Taking and discarding snapshots</h3>
|
---|
5296 |
|
---|
5297 | The table below briefly explains the meaning of every snapshot
|
---|
5298 | operation:
|
---|
5299 |
|
---|
5300 | <table>
|
---|
5301 | <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
|
---|
5302 |
|
---|
5303 | <tr><td><link to="IConsole::takeSnapshot()"/></td>
|
---|
5304 |
|
---|
5305 | <td>Save the current state of the virtual machine, including all
|
---|
5306 | settings, contents of normal hard disks and the current modifications
|
---|
5307 | to immutable hard disks (for online snapshots)</td>
|
---|
5308 |
|
---|
5309 | <td>The current state is not changed (the machine will continue
|
---|
5310 | execution if it is being executed when the snapshot is
|
---|
5311 | taken)</td></tr>
|
---|
5312 |
|
---|
5313 | <tr><td><link to="IConsole::discardSnapshot()"/></td>
|
---|
5314 |
|
---|
5315 | <td>Forget the state of the virtual machine stored in the snapshot:
|
---|
5316 | dismiss all saved settings and delete the saved execution state (for
|
---|
5317 | online snapshots)</td>
|
---|
5318 |
|
---|
5319 | <td>Other snapshots (including child snapshots, if any) and the
|
---|
5320 | current state are not directly affected</td></tr>
|
---|
5321 |
|
---|
5322 | <tr><td><link to="IConsole::discardCurrentState()"/></td>
|
---|
5323 |
|
---|
5324 | <td>Restore the current state of the virtual machine from the state
|
---|
5325 | stored in the current snapshot, including all settings and hard disk
|
---|
5326 | contents</td>
|
---|
5327 |
|
---|
5328 | <td>The current state of the machine existed prior to this operation
|
---|
5329 | is lost</td></tr>
|
---|
5330 |
|
---|
5331 | <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
|
---|
5332 |
|
---|
5333 | <td>Completely revert the virtual machine to the state it was in
|
---|
5334 | before the current snapshot has been taken</td>
|
---|
5335 |
|
---|
5336 | <td>The current state, as well as the current snapshot, are
|
---|
5337 | lost</td></tr>
|
---|
5338 |
|
---|
5339 | </table>
|
---|
5340 |
|
---|
5341 | </desc>
|
---|
5342 |
|
---|
5343 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5344 | <desc>UUID of the snapshot.</desc>
|
---|
5345 | </attribute>
|
---|
5346 |
|
---|
5347 | <attribute name="name" type="wstring">
|
---|
5348 | <desc>Short name of the snapshot.</desc>
|
---|
5349 | </attribute>
|
---|
5350 |
|
---|
5351 | <attribute name="description" type="wstring">
|
---|
5352 | <desc>Optional description of the snapshot.</desc>
|
---|
5353 | </attribute>
|
---|
5354 |
|
---|
5355 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
5356 | <desc>
|
---|
5357 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
5358 | </desc>
|
---|
5359 | </attribute>
|
---|
5360 |
|
---|
5361 | <attribute name="online" type="boolean" readonly="yes">
|
---|
5362 | <desc>
|
---|
5363 | <tt>true</tt> if this snapshot is an online snapshot and
|
---|
5364 | <tt>false</tt> otherwise.
|
---|
5365 |
|
---|
5366 | <note>
|
---|
5367 | When this attribute is <tt>true</tt>, the
|
---|
5368 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
5369 | <link to="#machine"/> object associated with this snapshot
|
---|
5370 | will point to the saved state file. Otherwise, it will be
|
---|
5371 | <tt>null</tt>.
|
---|
5372 | </note>
|
---|
5373 | </desc>
|
---|
5374 | </attribute>
|
---|
5375 |
|
---|
5376 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
5377 | <desc>
|
---|
5378 | Virtual machine this snapshot is taken on. This object
|
---|
5379 | stores all settings the machine had when taking this snapshot.
|
---|
5380 | <note>
|
---|
5381 | The returned machine object is immutable, i.e. no
|
---|
5382 | any settings can be changed.
|
---|
5383 | </note>
|
---|
5384 | </desc>
|
---|
5385 | </attribute>
|
---|
5386 |
|
---|
5387 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
5388 | <desc>
|
---|
5389 | Parent snapshot (a snapshot this one is based on).
|
---|
5390 | <note>
|
---|
5391 | It's not an error to read this attribute on a snapshot
|
---|
5392 | that doesn't have a parent -- a null object will be
|
---|
5393 | returned to indicate this.
|
---|
5394 | </note>
|
---|
5395 | </desc>
|
---|
5396 | </attribute>
|
---|
5397 |
|
---|
5398 | <attribute name="children" type="ISnapshotCollection" readonly="yes">
|
---|
5399 | <desc>
|
---|
5400 | Child snapshots (all snapshots having this one as a parent).
|
---|
5401 | <note>
|
---|
5402 | In the current implementation, there can be only one
|
---|
5403 | child snapshot, or no children at all, meaning this is the
|
---|
5404 | last (head) snapshot.
|
---|
5405 | </note>
|
---|
5406 | </desc>
|
---|
5407 | </attribute>
|
---|
5408 |
|
---|
5409 | </interface>
|
---|
5410 |
|
---|
5411 | <!--
|
---|
5412 | // IHardDisk
|
---|
5413 | /////////////////////////////////////////////////////////////////////////
|
---|
5414 | -->
|
---|
5415 |
|
---|
5416 | <enum
|
---|
5417 | name="HardDiskStorageType"
|
---|
5418 | uuid="48138584-ad99-479d-a36f-eb82a7663685"
|
---|
5419 | >
|
---|
5420 | <desc>
|
---|
5421 | Virtual hard disk storage type.
|
---|
5422 | <see>IHardDisk</see>
|
---|
5423 | </desc>
|
---|
5424 |
|
---|
5425 | <const name="VirtualDiskImage" value="0">
|
---|
5426 | <desc>
|
---|
5427 | Virtual Disk Image, VDI (a regular file in the file
|
---|
5428 | system of the host OS, see <link to="IVirtualDiskImage"/>)
|
---|
5429 | </desc>
|
---|
5430 | </const>
|
---|
5431 | <const name="ISCSIHardDisk" value="1">
|
---|
5432 | <desc>
|
---|
5433 | iSCSI Remote Disk (a disk accessed via the Internet
|
---|
5434 | SCSI protocol over a TCP/IP network, see
|
---|
5435 | <link to="IISCSIHardDisk"/>)
|
---|
5436 | </desc>
|
---|
5437 | </const>
|
---|
5438 | <const name="VMDKImage" value="2">
|
---|
5439 | <desc>
|
---|
5440 | VMware Virtual Machine Disk image (a regular file in the file
|
---|
5441 | system of the host OS, see <link to="IVMDKImage"/>)
|
---|
5442 | </desc>
|
---|
5443 | </const>
|
---|
5444 | <const name="CustomHardDisk" value="3">
|
---|
5445 | <desc>
|
---|
5446 | Disk formats supported through plugins (see
|
---|
5447 | <link to="ICustomHardDisk"/>)
|
---|
5448 | </desc>
|
---|
5449 | </const>
|
---|
5450 | <const name="VHDImage" value="4">
|
---|
5451 | <desc>
|
---|
5452 | Virtual PC Virtual Machine Disk image (a regular file in the file
|
---|
5453 | system of the host OS, see <link to="IVHDImage"/>)
|
---|
5454 | </desc>
|
---|
5455 | </const>
|
---|
5456 | </enum>
|
---|
5457 |
|
---|
5458 | <enum
|
---|
5459 | name="HardDiskType"
|
---|
5460 | uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
|
---|
5461 | >
|
---|
5462 | <desc>
|
---|
5463 | Virtual hard disk type.
|
---|
5464 | <see>IHardDisk</see>
|
---|
5465 | </desc>
|
---|
5466 |
|
---|
5467 | <const name="Normal" value="0">
|
---|
5468 | <desc>
|
---|
5469 | Normal hard disk (attached directly or indirectly, preserved
|
---|
5470 | when taking snapshots).
|
---|
5471 | </desc>
|
---|
5472 | </const>
|
---|
5473 | <const name="Immutable" value="1">
|
---|
5474 | <desc>
|
---|
5475 | Immutable hard disk (attached indirectly, changes are wiped out
|
---|
5476 | after powering off the virtual machine).
|
---|
5477 | </desc>
|
---|
5478 | </const>
|
---|
5479 | <const name="Writethrough" value="2">
|
---|
5480 | <desc>
|
---|
5481 | Write through hard disk (attached directly, ignored when
|
---|
5482 | taking snapshots).
|
---|
5483 | </desc>
|
---|
5484 | </const>
|
---|
5485 | </enum>
|
---|
5486 |
|
---|
5487 | <interface
|
---|
5488 | name="IHardDiskAttachment" extends="$unknown"
|
---|
5489 | uuid="c0ffe596-21c6-4797-8d8a-b47b66881e7a"
|
---|
5490 | wsmap="struct"
|
---|
5491 | >
|
---|
5492 | <attribute name="hardDisk" type="IHardDisk" readonly="yes">
|
---|
5493 | <desc>Harddisk object this attachment is about.</desc>
|
---|
5494 | </attribute>
|
---|
5495 |
|
---|
5496 | <attribute name="controller" type="DiskControllerType" readonly="yes">
|
---|
5497 | <desc>Disk controller ID of this attachment.</desc>
|
---|
5498 | </attribute>
|
---|
5499 |
|
---|
5500 | <attribute name="deviceNumber" type="long" readonly="yes">
|
---|
5501 | <desc>Device number of the attachment.</desc>
|
---|
5502 | </attribute>
|
---|
5503 |
|
---|
5504 | </interface>
|
---|
5505 |
|
---|
5506 | <enumerator
|
---|
5507 | name="IHardDiskAttachmentEnumerator" type="IHardDiskAttachment"
|
---|
5508 | uuid="9955e486-2f0b-432a-99e4-0ebbd338875e"
|
---|
5509 | />
|
---|
5510 |
|
---|
5511 | <collection
|
---|
5512 | name="IHardDiskAttachmentCollection" type="IHardDiskAttachment"
|
---|
5513 | enumerator="IHardDiskAttachmentEnumerator"
|
---|
5514 | uuid="8f727842-bb77-45d4-92de-4ec14bf613c9"
|
---|
5515 | readonly="yes"
|
---|
5516 | />
|
---|
5517 |
|
---|
5518 | <enumerator
|
---|
5519 | name="IHardDiskEnumerator" type="IHardDisk"
|
---|
5520 | uuid="b976f97b-cdb8-47e3-9860-084031cbd533"
|
---|
5521 | />
|
---|
5522 |
|
---|
5523 | <collection
|
---|
5524 | name="IHardDiskCollection" type="IHardDisk"
|
---|
5525 | enumerator="IHardDiskEnumerator"
|
---|
5526 | uuid="43EAC2BC-5C61-40fa-BC38-46DE2C7DB6BB"
|
---|
5527 | readonly="yes"
|
---|
5528 | />
|
---|
5529 |
|
---|
5530 | <interface
|
---|
5531 | name="IHardDisk" extends="$unknown"
|
---|
5532 | uuid="FD443EC1-000F-4F5B-9282-D72760A66916"
|
---|
5533 | wsmap="managed"
|
---|
5534 | >
|
---|
5535 | <desc>
|
---|
5536 | The IHardDisk interface represents a virtual hard disk drive
|
---|
5537 | used by virtual machines.
|
---|
5538 |
|
---|
5539 | The virtual hard disk drive virtualizes the hard disk hardware and
|
---|
5540 | looks like a regular hard disk inside the virtual machine and
|
---|
5541 | the guest OS.
|
---|
5542 |
|
---|
5543 | <h3>Storage Types</h3>
|
---|
5544 |
|
---|
5545 | The <link to="HardDiskStorageType">storage type</link> of the
|
---|
5546 | virtual hard disk determines where and how it stores its data
|
---|
5547 | (sectors). Currently, the following storage types are supported:
|
---|
5548 |
|
---|
5549 | <ul>
|
---|
5550 |
|
---|
5551 | <li>
|
---|
5552 | <i>Virtual Disk Image (VDI)</i>, a regular file in the file system
|
---|
5553 | of the host OS (represented by the <link to="IVirtualDiskImage"/>
|
---|
5554 | interface). This file has a special format optimized so that unused
|
---|
5555 | sectors of data occupy much less space than on a physical hard disk.
|
---|
5556 | </li>
|
---|
5557 |
|
---|
5558 | <li>
|
---|
5559 | <i>iSCSI Remote Disk</i>, a disk accessed via the Internet SCSI
|
---|
5560 | protocol over a TCP/IP network link (represented by the
|
---|
5561 | <link to="IISCSIHardDisk"/> interface).
|
---|
5562 | </li>
|
---|
5563 |
|
---|
5564 | <li>
|
---|
5565 | <i>VMware VMDK image</i>, a regular file in the file system of the
|
---|
5566 | host OS (represented by the <link to="IVMDKImage"/> interface).
|
---|
5567 | Note that the regular file may be just a descriptor referring to
|
---|
5568 | further files, so don't make assumptions about the OS representation
|
---|
5569 | of a VMDK image.
|
---|
5570 | </li>
|
---|
5571 |
|
---|
5572 | <li>
|
---|
5573 | <i>Custom HardDisk</i>, a disk accessed via a plugin which is loaded
|
---|
5574 | when the disk is accessed (represented by the
|
---|
5575 | <link to="ICustomHardDisk"/> interface).
|
---|
5576 | </li>
|
---|
5577 |
|
---|
5578 | <li>
|
---|
5579 | <i>Virtual PC VHD Image</i>, a regular file in the file system of the
|
---|
5580 | host OS (represented by the <link to="IVHDImage"/> interface).
|
---|
5581 | </li>
|
---|
5582 |
|
---|
5583 | </ul>
|
---|
5584 |
|
---|
5585 | The storage type of the particular hard disk object is indicated by
|
---|
5586 | the <link to="#storageType"/> property.
|
---|
5587 |
|
---|
5588 | Each storage type is represented by its own interface (as shown
|
---|
5589 | above), that allows to query and set properties and perform
|
---|
5590 | operations specific to that storage type. When an IHardDisk object
|
---|
5591 | reports it uses some particular storage type, it also guaranteed to
|
---|
5592 | support the corresponding interface which you can query. And vice
|
---|
5593 | versa, every object that supports a storage-specific interface, also
|
---|
5594 | supports IHardDisk.
|
---|
5595 |
|
---|
5596 | <h3>Virtual Hard Disk Types</h3>
|
---|
5597 |
|
---|
5598 | The <link to="HardDiskType">type</link> of the virtual hard disk
|
---|
5599 | determines how it is attached to the virtual machine when you call
|
---|
5600 | <link to="IMachine::attachHardDisk()"/> and what happens to it when
|
---|
5601 | a <link to="ISnapshot">snapshot</link> of the virtual machine is
|
---|
5602 | taken.
|
---|
5603 |
|
---|
5604 | There are three types of virtual hard disks:
|
---|
5605 |
|
---|
5606 | <ul>
|
---|
5607 | <li><i>Normal</i></li>
|
---|
5608 | <li><i>Immutable</i></li>
|
---|
5609 | <li><i>Writethrough</i></li>
|
---|
5610 | </ul>
|
---|
5611 |
|
---|
5612 | The virtual disk type is indicated by the <link to="#type"/>
|
---|
5613 | property. Each of the above types is described in detail further
|
---|
5614 | down.
|
---|
5615 |
|
---|
5616 | There is also a forth, "hidden" virtual disk type:
|
---|
5617 | <i>Differencing</i>. It is "hidden" because you cannot directly
|
---|
5618 | create hard disks of this type -- they are automatically created by
|
---|
5619 | VirtualBox when necessary.
|
---|
5620 |
|
---|
5621 | <b>Differencing Hard Disks</b>
|
---|
5622 |
|
---|
5623 | Unlike disks of other types (that are similar to real hard disks),
|
---|
5624 | the differencing hard disk does not store the full range of data
|
---|
5625 | sectors. Instead, it stores only a subset of sectors of some other
|
---|
5626 | disk that were changed since the differencing hard disk has been
|
---|
5627 | created. Thus, every differencing hard disk has a parent hard disk
|
---|
5628 | it is linked to, and represents the difference between the initial
|
---|
5629 | and the current hard disk state. A differencing hard disk can be
|
---|
5630 | linked to another differencing hard disk -- this way, differencing
|
---|
5631 | hard disks can form a branch of changes. More over, a given virtual
|
---|
5632 | hard disk can have more than one differencing hard disk linked to
|
---|
5633 | it.
|
---|
5634 |
|
---|
5635 | A disk the differencing hard disk is linked to (or, in other words,
|
---|
5636 | based on) is called a <i>parent</i> hard disk and is accessible through
|
---|
5637 | the <link to="#parent"/> property. Similarly, all existing differencing
|
---|
5638 | hard disks for a given parent hard disk are called its <i>child</i> hard
|
---|
5639 | disks (and accessible through the <link to="#children"/> property).
|
---|
5640 |
|
---|
5641 | All differencing hard disks use Virtual Disk Image files to store
|
---|
5642 | changed sectors. They have the <link to="#type"/> property set to
|
---|
5643 | Normal, but can be easily distinguished from normal hard disks using
|
---|
5644 | the <link to="#parent"/> property: all differencing hard disks have
|
---|
5645 | a parent, while all normal hard disks don't.
|
---|
5646 |
|
---|
5647 | When the virtual machine makes an attempt to read a sector that is
|
---|
5648 | missing in a differencing hard disk, its parent is accessed to
|
---|
5649 | resolve the sector in question. This process continues until the
|
---|
5650 | sector is found, or until the root hard disk is encountered, which
|
---|
5651 | always contains all sectors. As a consequence,
|
---|
5652 |
|
---|
5653 | <ul>
|
---|
5654 |
|
---|
5655 | <li>
|
---|
5656 | The virtual hard disk geometry seen by the guest OS is
|
---|
5657 | always defined by the root hard disk.
|
---|
5658 | </li>
|
---|
5659 |
|
---|
5660 | <li>
|
---|
5661 | All hard disks on a branch, up to the root, must be
|
---|
5662 | <link to="#accessible"/> for a given differencing hard disk in order
|
---|
5663 | to let it function properly when the virtual machine is
|
---|
5664 | running.
|
---|
5665 | </li>
|
---|
5666 |
|
---|
5667 | </ul>
|
---|
5668 |
|
---|
5669 | Differencing hard disks can be implicitly created by VirtualBox in
|
---|
5670 | the following cases:
|
---|
5671 |
|
---|
5672 | <ul>
|
---|
5673 |
|
---|
5674 | <li>
|
---|
5675 | When a hard disk is <i>indirectly</i> attached to the virtual
|
---|
5676 | machine using <link to="IMachine::attachHardDisk()"/>. In this
|
---|
5677 | case, all disk writes performed by the guest OS will go to the
|
---|
5678 | created diffferencing hard disk, as opposed to the
|
---|
5679 | <i>direct</i> attachment, where all changes are written to the
|
---|
5680 | attached hard disk itself.
|
---|
5681 | </li>
|
---|
5682 |
|
---|
5683 | <li>
|
---|
5684 | When a <link to="ISnapshot">snapshot</link> of the virtual machine
|
---|
5685 | is taken. After that, disk writes to hard disks the differencing
|
---|
5686 | ones have been created for, will be directed to those differencing
|
---|
5687 | hard disks, to preserve the contents of the original disks.
|
---|
5688 | </li>
|
---|
5689 |
|
---|
5690 | </ul>
|
---|
5691 |
|
---|
5692 | Whether to create a differencing hard disk or not depends on the
|
---|
5693 | type of the hard disk attached to the virtual machine. This is
|
---|
5694 | explained below.
|
---|
5695 |
|
---|
5696 | Note that in the current implementation, only the
|
---|
5697 | <link to="VirtualDiskImage"/> storage type is used to
|
---|
5698 | represent differencing hard disks. In other words, all
|
---|
5699 | differencing hard disks are <link to="IVirtualDiskImage"/>
|
---|
5700 | objects.
|
---|
5701 |
|
---|
5702 | <b>Normal Hard Disks</b>
|
---|
5703 |
|
---|
5704 | Normal hard disks are the most commonly used virtual hard disk. A
|
---|
5705 | normal hard disk is attached to the machine directly if it is not
|
---|
5706 | already attached to some other machine. Otherwise, an attempt to
|
---|
5707 | make an indirect attachment through a differencing hard disk will be
|
---|
5708 | made. This attempt will fail if the hard disk is attached to a
|
---|
5709 | virtual machine without snapshots (because it's impossible to create
|
---|
5710 | a differencing hard disk based on a hard disk that is subject to
|
---|
5711 | change).
|
---|
5712 |
|
---|
5713 | When an indirect attachment takes place, in the simplest case, where
|
---|
5714 | the machine the hard disk is being attached to doesn't have
|
---|
5715 | snapshots, the differencing hard disk will be based on the normal
|
---|
5716 | hard disk being attached. Otherwise, the first (i.e. the most
|
---|
5717 | recent) descendant of the given normal hard disk found in the
|
---|
5718 | current snapshot branch (starting from the current snapshot and
|
---|
5719 | going up to the root) will be actually used as a base.
|
---|
5720 |
|
---|
5721 | Note that when you detach an indirectly attached hard disk from the
|
---|
5722 | machine, the created differencing hard disk image is simply
|
---|
5723 | <b>deleted</b>, so <b>all changes are lost</b>. If you attach the
|
---|
5724 | same disk again, a clean differencing disk will be created based on
|
---|
5725 | the most recent child, as described above.
|
---|
5726 |
|
---|
5727 | When taking a snapshot, the contents of all normal hard disks (and
|
---|
5728 | all differencing disks whose roots are normal hard disks) currently
|
---|
5729 | attached to the virtual machine is preserved by creating
|
---|
5730 | differencing hard disks based on them.
|
---|
5731 |
|
---|
5732 | <b>Immutable Hard Disks</b>
|
---|
5733 |
|
---|
5734 | Immutable hard disks can be used to provide a sort of read-only
|
---|
5735 | access. An immutable hard disk is always attached indirectly. The
|
---|
5736 | created differencing hard disk is automatically wiped out (recreated
|
---|
5737 | from scratch) every time you power off the virtual machine. Thus,
|
---|
5738 | the contents of the immutable disk remains unchanged between runs.
|
---|
5739 |
|
---|
5740 | Detaching an immutable hard disk deletes the differencing disk
|
---|
5741 | created for it, with the same effect as in case with normal hard
|
---|
5742 | disks.
|
---|
5743 |
|
---|
5744 | When taking a snapshot, the differencing part of the immutable
|
---|
5745 | hard disk is cloned (i.e. copied to a separate Virtual Disk Image
|
---|
5746 | file) without any changes. This is necessary to preserve the exact
|
---|
5747 | virtual machine state when you create an online snapshot.
|
---|
5748 |
|
---|
5749 | <b>Writethrough Hard Disks</b>
|
---|
5750 |
|
---|
5751 | Hard disks of this type are always attached directly. This means
|
---|
5752 | that every given writethrough hard disk can be attached only to one
|
---|
5753 | virtual machine at a time.
|
---|
5754 |
|
---|
5755 | It is impossible to take a snapshot of a virtual machine with the
|
---|
5756 | writethrough hard disk attached, because taking a snapshot implies
|
---|
5757 | saving the execution state and preserving the contents of all hard
|
---|
5758 | disks, but writethrough hard disks cannot be preserved. Preserving
|
---|
5759 | hard disk contents is necessary to ensure the guest OS stored in the
|
---|
5760 | snapshot will get the same hard disk state when restored, which is
|
---|
5761 | especially important when it has open file handles or when there are
|
---|
5762 | cached files and directories stored in memory.
|
---|
5763 |
|
---|
5764 | <h3>Creating, Opening and Registering Hard Disks</h3>
|
---|
5765 |
|
---|
5766 | Non-differencing hard disks are either created from scratch using
|
---|
5767 | <link to="IVirtualBox::createHardDisk()"/> or opened from a VDI file
|
---|
5768 | using <link to="IVirtualBox::openVirtualDiskImage()"/> (only for hard
|
---|
5769 | disks using the VirtualDiskImage storage type). Once a hard disk is
|
---|
5770 | created or opened, it needs to be registered using
|
---|
5771 | <link to="IVirtualBox::registerHardDisk()"/> to make it available for
|
---|
5772 | attaching to virtual machines. See the documentation of individual
|
---|
5773 | interfaces for various storage types to get more information.
|
---|
5774 |
|
---|
5775 | Differencing hard disks are never created explicitly and cannot
|
---|
5776 | be registered or unregistered; they are automatically registered
|
---|
5777 | upon creation and deregistered when deleted.
|
---|
5778 |
|
---|
5779 | <h3>More about Indirect Hard Disk Attachments</h3>
|
---|
5780 |
|
---|
5781 | Normally, when you attach a hard disk to the virtual machine, and then
|
---|
5782 | query the corresponding attachment using
|
---|
5783 | <link to="IMachine::getHardDisk()"/> or
|
---|
5784 | <link to="IMachine::hardDiskAttachments"/> you will get the same hard
|
---|
5785 | disk object, whose UUID you passed earlier to
|
---|
5786 | <link to="IMachine::attachHardDisk()"/>. However, when an indirect
|
---|
5787 | attachment takes place, calling <link to="IMachine::getHardDisk()"/>
|
---|
5788 | will return a differencing hard disk object, that is either based on the
|
---|
5789 | attached hard disk or on another differencing hard disk, the attached
|
---|
5790 | hard disk is eventually a root for (as described above). In both cases
|
---|
5791 | the returned hard disk object is the object the virtual machine actually
|
---|
5792 | uses to perform disk writes to.
|
---|
5793 |
|
---|
5794 | Regardless of whether the attachment is direct or indirect, the
|
---|
5795 | <link to="#machineId"/> property of the attached disk will contain an
|
---|
5796 | UUID of the machine object <link to="IMachine::attachHardDisk()"/>
|
---|
5797 | has been called on.
|
---|
5798 |
|
---|
5799 | Note that both <link to="IMachine::attachHardDisk()"/> and
|
---|
5800 | <link to="IMachine::detachHardDisk()"/> are <i>lazy</i> operations. In
|
---|
5801 | particular, this means that when an indirect attachment is made,
|
---|
5802 | differencing hard disks are not created until machine settings are
|
---|
5803 | committed using <link to="IMachine::saveSettings()"/>. Similarly, when a
|
---|
5804 | differencing hard disk is detached, it is not deleted until
|
---|
5805 | <link to="IMachine::saveSettings()"/> is called. Calling
|
---|
5806 | <link to="IMachine::discardSettings()"/> cancels all lazy attachments or
|
---|
5807 | detachments made since the last commit and effectively restores the
|
---|
5808 | previous set of hard disks.
|
---|
5809 |
|
---|
5810 | <h3>Hard Disk Accessibility</h3>
|
---|
5811 |
|
---|
5812 | The <link to="#accessible"/> attribute of the hard disk object
|
---|
5813 | defines the accessibility state of the respective hard disk storage
|
---|
5814 | (for example, the VDI file for IVirtualDiskImage objects). If the
|
---|
5815 | value of this attribute is <tt>false</tt> then some hard disk
|
---|
5816 | attributes may contain invalid or outdated values (for example, the
|
---|
5817 | virtual or the actual hard disk size) until a new accessibility
|
---|
5818 | check is done that returns <tt>true</tt> (see the attribute
|
---|
5819 | description for more details).
|
---|
5820 |
|
---|
5821 | <note>
|
---|
5822 | Because of the possible slowness of the accessibility check,
|
---|
5823 | it is not implicitly performed upon the VirtualBox server startup
|
---|
5824 | (to prevent the application freeze). In partcular, this means that
|
---|
5825 | if you try to read hard disk properties that depend on the
|
---|
5826 | accessibility state without first reading the value of the
|
---|
5827 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
5828 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
5829 | </note>
|
---|
5830 |
|
---|
5831 | </desc>
|
---|
5832 |
|
---|
5833 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5834 | <desc>
|
---|
5835 |
|
---|
5836 | UUID of the hard disk. For newly created hard disk objects,
|
---|
5837 | this value is a randomly generated UUID.
|
---|
5838 |
|
---|
5839 | </desc>
|
---|
5840 | </attribute>
|
---|
5841 |
|
---|
5842 | <attribute name="description" type="wstring">
|
---|
5843 | <desc>
|
---|
5844 |
|
---|
5845 | Optional description of the hard disk. For a newly created hard
|
---|
5846 | disk, this value is <tt>null</tt>.
|
---|
5847 |
|
---|
5848 | <note>For some storage types, reading this property is
|
---|
5849 | meaningless when <link to="#accessible"/> is <tt>false</tt>.
|
---|
5850 | Also, you cannot assign it a new value in this case.</note>
|
---|
5851 |
|
---|
5852 | </desc>
|
---|
5853 | </attribute>
|
---|
5854 |
|
---|
5855 | <attribute name="storageType" type="HardDiskStorageType" readonly="yes">
|
---|
5856 | <desc>
|
---|
5857 |
|
---|
5858 | Storage type of this hard disk.
|
---|
5859 |
|
---|
5860 | Storage type is defined when you open or create a new hard disk
|
---|
5861 | object.
|
---|
5862 |
|
---|
5863 | </desc>
|
---|
5864 | </attribute>
|
---|
5865 |
|
---|
5866 | <attribute name="location" type="wstring" readonly="yes">
|
---|
5867 | <desc>
|
---|
5868 |
|
---|
5869 | Storage location of this hard disk. The returned string serves
|
---|
5870 | for informational purposes only. To access detailed information
|
---|
5871 | about the storage, query the appropriate storage-specific
|
---|
5872 | interface.
|
---|
5873 |
|
---|
5874 | </desc>
|
---|
5875 | </attribute>
|
---|
5876 |
|
---|
5877 | <attribute name="type" type="HardDiskType">
|
---|
5878 | <desc>
|
---|
5879 |
|
---|
5880 | Type (behavior) of this hard disk. For a newly created or opened hard
|
---|
5881 | disk, this value is <link to="HardDiskType::Normal"/>.
|
---|
5882 |
|
---|
5883 | <note>
|
---|
5884 | In the current implementation, this property can be
|
---|
5885 | changed only on an unregistered hard disk object. This may be
|
---|
5886 | changed later.
|
---|
5887 | </note>
|
---|
5888 |
|
---|
5889 | </desc>
|
---|
5890 | </attribute>
|
---|
5891 |
|
---|
5892 | <attribute name="parent" type="IHardDisk" readonly="yes">
|
---|
5893 | <desc>
|
---|
5894 |
|
---|
5895 | Parent of this hard disk (a hard disk this one is directly based
|
---|
5896 | on).
|
---|
5897 |
|
---|
5898 | Only differencing hard disks have parents, so a <tt>null</tt>
|
---|
5899 | object is returned for a hard disk of any other type.
|
---|
5900 | </desc>
|
---|
5901 | </attribute>
|
---|
5902 |
|
---|
5903 | <attribute name="children" type="IHardDiskCollection" readonly="yes">
|
---|
5904 | <desc>
|
---|
5905 |
|
---|
5906 | Children of this hard disk (all differencing hard disks for
|
---|
5907 | those this one is a parent). An empty collection is returned, if
|
---|
5908 | this hard disk doesn't have any children.
|
---|
5909 |
|
---|
5910 | </desc>
|
---|
5911 | </attribute>
|
---|
5912 |
|
---|
5913 | <attribute name="root" type="IHardDisk" readonly="yes">
|
---|
5914 | <desc>
|
---|
5915 |
|
---|
5916 | Root hard disk of this hard disk. If this hard disk is a
|
---|
5917 | differencing hard disk, its root hard disk is the first disk on
|
---|
5918 | the branch. For all other types of hard disks, this property
|
---|
5919 | returns the hard disk object itself (i.e. the same object you
|
---|
5920 | read this property on).
|
---|
5921 |
|
---|
5922 | </desc>
|
---|
5923 | </attribute>
|
---|
5924 |
|
---|
5925 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
5926 | <desc>
|
---|
5927 |
|
---|
5928 | Whether the hard disk storage is currently accessible or not.
|
---|
5929 | The storage, for example, can be unaccessible if it doesn't exist
|
---|
5930 | or if it is placed on a network resource that is not available
|
---|
5931 | by the time this attribute is read.
|
---|
5932 |
|
---|
5933 | In the current implementation, the value of this property is
|
---|
5934 | also <tt>false</tt> if this hard disk is attached to a running
|
---|
5935 | virtual machine.
|
---|
5936 |
|
---|
5937 | The accessibility check is performed automatically every time
|
---|
5938 | this attribute is read. You should keep it in mind that this check
|
---|
5939 | may be slow and can block the calling thread for a long time (for
|
---|
5940 | example, if the network resourse where the hard disk storage is
|
---|
5941 | located is down).
|
---|
5942 |
|
---|
5943 | The following attributes of the hard disk object are considered
|
---|
5944 | to be invalid when this attribute is <tt>false</tt>:
|
---|
5945 | <ul>
|
---|
5946 | <li><link to="#size"/></li>
|
---|
5947 | <li><link to="#actualSize"/></li>
|
---|
5948 | </ul>
|
---|
5949 | Individual hard disk storage type interfaces may define
|
---|
5950 | additional attributes that depend on the accessibility state.
|
---|
5951 | </desc>
|
---|
5952 | </attribute>
|
---|
5953 |
|
---|
5954 | <attribute name="allAccessible" type="boolean" readonly="yes">
|
---|
5955 | <desc>
|
---|
5956 |
|
---|
5957 | Whether the whole hard disk branch, starting from this image and
|
---|
5958 | going through its ancestors up to the root, is accessible or
|
---|
5959 | not.
|
---|
5960 |
|
---|
5961 | This property makes sense only for differencing hard disks. For
|
---|
5962 | all other types of hard disks it returns the same value as
|
---|
5963 | <link to="#accessible"/>.
|
---|
5964 |
|
---|
5965 | </desc>
|
---|
5966 | </attribute>
|
---|
5967 |
|
---|
5968 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
5969 | <desc>
|
---|
5970 |
|
---|
5971 | String describing the reason of inaccessibility of this hard
|
---|
5972 | disk after the last call to <link to="#accessible"/> that
|
---|
5973 | returned <tt>false</tt>. A <tt>null</tt> value of this property
|
---|
5974 | means that the last accessibility check returned <tt>true</tt>.
|
---|
5975 |
|
---|
5976 | </desc>
|
---|
5977 | </attribute>
|
---|
5978 |
|
---|
5979 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
5980 | <desc>
|
---|
5981 |
|
---|
5982 | Logical size of this hard disk (in megabytes), as reported to the
|
---|
5983 | guest OS running inside the vurtual machine this disk is
|
---|
5984 | attached to. The logical size is defined when the hard disk is
|
---|
5985 | created.
|
---|
5986 |
|
---|
5987 | <note>Reading this property on a differencing hard disk will
|
---|
5988 | return the size of its root hard disk.</note>
|
---|
5989 |
|
---|
5990 | <note>Reading this property is meaningless when
|
---|
5991 | <link to="#accessible"/> is <tt>false</tt></note>
|
---|
5992 |
|
---|
5993 | </desc>
|
---|
5994 | </attribute>
|
---|
5995 |
|
---|
5996 | <attribute name="actualSize" type="unsigned long long" readonly="yes">
|
---|
5997 | <desc>
|
---|
5998 |
|
---|
5999 | Physical size of the storage used to store hard disk data (in
|
---|
6000 | bytes). This size is usually less than the logical size of the
|
---|
6001 | hard disk, depending on the storage type and on the size
|
---|
6002 | optimization method used for that storage.
|
---|
6003 |
|
---|
6004 | <note>Reading this property is meaningless when
|
---|
6005 | <link to="#accessible"/> is <tt>false</tt></note>
|
---|
6006 |
|
---|
6007 | </desc>
|
---|
6008 | </attribute>
|
---|
6009 |
|
---|
6010 | <attribute name="machineId" type="uuid" readonly="yes">
|
---|
6011 | <desc>
|
---|
6012 |
|
---|
6013 | UUID of the machine this hard disk is attached to (or a
|
---|
6014 | <tt>null</tt> UUID if it is not attached).
|
---|
6015 |
|
---|
6016 | <note>Immutable hard disks are never attached directly, so this
|
---|
6017 | attribute is always <tt>null</tt> in this case.</note>
|
---|
6018 |
|
---|
6019 | </desc>
|
---|
6020 | </attribute>
|
---|
6021 |
|
---|
6022 | <attribute name="snapshotId" type="uuid" readonly="yes">
|
---|
6023 | <desc>
|
---|
6024 |
|
---|
6025 | UUID of the <link to="ISnapshot">snapshot</link> this hard disk
|
---|
6026 | is associated with (or <tt>null</tt> UUID if it is not
|
---|
6027 | associated with any snapshot).
|
---|
6028 |
|
---|
6029 | <note>
|
---|
6030 | This attribute is always <tt>null</tt> if <link to="#machineId"/>
|
---|
6031 | is <tt>null</tt>.
|
---|
6032 | </note>
|
---|
6033 |
|
---|
6034 | <note>
|
---|
6035 | Writethrough hard disks are always attached directly and cannot be
|
---|
6036 | involved when taking snapshots, so this attribute is meaningless and
|
---|
6037 | therefore always <tt>null</tt>.
|
---|
6038 | </note>
|
---|
6039 |
|
---|
6040 | </desc>
|
---|
6041 | </attribute>
|
---|
6042 |
|
---|
6043 | <method name="cloneToImage">
|
---|
6044 |
|
---|
6045 | <desc>
|
---|
6046 |
|
---|
6047 | Starts creating a clone of this hard disk. The cloned hard disk
|
---|
6048 | will use the specified Virtual Disk Image file as a storage and
|
---|
6049 | will contain exactly the same sector data as the hard disk being
|
---|
6050 | cloned, except that a new UUID for the clone will be randomly
|
---|
6051 | generated.
|
---|
6052 |
|
---|
6053 | The specified image file path can be absolute (full path) or
|
---|
6054 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
6055 | home directory</link>. If only a file name without any path is
|
---|
6056 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
6057 | default VDI folder</link> will be used as a path to the image
|
---|
6058 | file.
|
---|
6059 |
|
---|
6060 | It is an error to use the object returned in the @a image
|
---|
6061 | parameter until the returned @a progress object reports success.
|
---|
6062 |
|
---|
6063 | <note>In the current implementation, only non-differencing hard
|
---|
6064 | disks can be cloned.</note>
|
---|
6065 |
|
---|
6066 | </desc>
|
---|
6067 |
|
---|
6068 | <param name="filePath" type="wstring" dir="in">
|
---|
6069 | <desc>Path to a file where to store the cloned hard disk.</desc>
|
---|
6070 | </param>
|
---|
6071 | <param name="image" type="IVirtualDiskImage" dir="out">
|
---|
6072 | <desc>Cloned hard disk object.</desc>
|
---|
6073 | </param>
|
---|
6074 | <param name="progress" type="IProgress" dir="return">
|
---|
6075 | <desc>Progress object to track the operation completion.</desc>
|
---|
6076 | </param>
|
---|
6077 |
|
---|
6078 | </method>
|
---|
6079 |
|
---|
6080 | </interface>
|
---|
6081 |
|
---|
6082 | <!--
|
---|
6083 | // IVirtualDiskImage
|
---|
6084 | /////////////////////////////////////////////////////////////////////////
|
---|
6085 | -->
|
---|
6086 |
|
---|
6087 | <interface
|
---|
6088 | name="IVirtualDiskImage" extends="$unknown"
|
---|
6089 | uuid="a8265b5a-0d20-4a46-a02f-65693a4e8239"
|
---|
6090 | wsmap="managed"
|
---|
6091 | >
|
---|
6092 |
|
---|
6093 | <desc>
|
---|
6094 | The IVirtualDiskImage interface represent a specific type of
|
---|
6095 | <link to="IHardDisk" /> that uses VDI image files.
|
---|
6096 |
|
---|
6097 | The Virtual Disk Image (VDI) format is VirtualBox's native format for
|
---|
6098 | hard disk containers.
|
---|
6099 |
|
---|
6100 | Objects that support this interface also support the
|
---|
6101 | <link to="IHardDisk"/> interface.
|
---|
6102 |
|
---|
6103 | Hard disks using virtual disk images can be either opened using
|
---|
6104 | <link to="IVirtualBox::openHardDisk()"/> or created from
|
---|
6105 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
6106 |
|
---|
6107 | When a new hard disk object is created from scratch, an image file for it
|
---|
6108 | is not automatically created. To do it, you need to specify a
|
---|
6109 | valid <link to="#filePath">file path</link>, and call
|
---|
6110 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
6111 | When it is done, the hard disk object can be registered by calling
|
---|
6112 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
6113 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
6114 | virtual machines.
|
---|
6115 |
|
---|
6116 | The <link to="IHardDisk::description">description</link> of the
|
---|
6117 | Virtual Disk Image is stored in the image file. For this reason,
|
---|
6118 | changing the value of this property requires the hard disk to be
|
---|
6119 | <link to="IHardDisk::accessible">accessible</link>. The description
|
---|
6120 | of a registered hard disk can be changed only if a virtual machine
|
---|
6121 | using it is not running.
|
---|
6122 |
|
---|
6123 | </desc>
|
---|
6124 |
|
---|
6125 | <attribute name="filePath" type="wstring">
|
---|
6126 | <desc>
|
---|
6127 |
|
---|
6128 | Full file name of the virtual disk image of this hard disk. For
|
---|
6129 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6130 |
|
---|
6131 | When assigning a new path, it can be absolute (full path) or relative
|
---|
6132 | to the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
6133 | directory</link>. If only a file name without any path is given,
|
---|
6134 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
6135 | folder</link> will be used as a path to the image file.
|
---|
6136 |
|
---|
6137 | When reading this propery, a full path is always returned.
|
---|
6138 |
|
---|
6139 | <note>
|
---|
6140 | This property cannot be changed when <link to="#created"/>
|
---|
6141 | returns <tt>true</tt>.
|
---|
6142 | </note>
|
---|
6143 |
|
---|
6144 | </desc>
|
---|
6145 | </attribute>
|
---|
6146 |
|
---|
6147 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6148 | <desc>
|
---|
6149 |
|
---|
6150 | Whether the virual disk image is created or not. For newly
|
---|
6151 | created hard disk objects or after a successful invocation of
|
---|
6152 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6153 | <link to="#createFixedImage()"/> or <link
|
---|
6154 | to="#createDynamicImage()"/> is called.
|
---|
6155 |
|
---|
6156 | </desc>
|
---|
6157 | </attribute>
|
---|
6158 |
|
---|
6159 | <method name="createDynamicImage">
|
---|
6160 |
|
---|
6161 | <desc>
|
---|
6162 |
|
---|
6163 | Starts creating a dymically expanding hard disk image in the
|
---|
6164 | background. The previous image associated with this object, if
|
---|
6165 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6166 | the operation will fail.
|
---|
6167 |
|
---|
6168 | <note>After the returned progress object reports that the
|
---|
6169 | operation is complete, this hard disk object can be
|
---|
6170 | <link to="IVirtualBox::registerHardDisk()">registered</link>
|
---|
6171 | within this VirtualBox installation.</note>
|
---|
6172 |
|
---|
6173 | </desc>
|
---|
6174 |
|
---|
6175 | <param name="size" type="unsigned long long" dir="in">
|
---|
6176 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6177 | </param>
|
---|
6178 | <param name="progress" type="IProgress" dir="return">
|
---|
6179 | <desc>Progress object to track the operation completion.</desc>
|
---|
6180 | </param>
|
---|
6181 |
|
---|
6182 | </method>
|
---|
6183 |
|
---|
6184 | <method name="createFixedImage">
|
---|
6185 | <desc>
|
---|
6186 |
|
---|
6187 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6188 | previous image, if any, must be deleted using
|
---|
6189 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6190 |
|
---|
6191 | <note>
|
---|
6192 | After the returned progress object reports that the
|
---|
6193 | operation is complete, this hard disk object can be
|
---|
6194 | <link to="IVirtualBox::registerHardDisk()">registered</link>
|
---|
6195 | within this VirtualBox installation.
|
---|
6196 | </note>
|
---|
6197 |
|
---|
6198 | </desc>
|
---|
6199 |
|
---|
6200 | <param name="size" type="unsigned long long" dir="in">
|
---|
6201 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6202 | </param>
|
---|
6203 | <param name="progress" type="IProgress" dir="return">
|
---|
6204 | <desc>Progress object to track the operation completion.</desc>
|
---|
6205 | </param>
|
---|
6206 |
|
---|
6207 | </method>
|
---|
6208 |
|
---|
6209 | <method name="deleteImage">
|
---|
6210 | <desc>
|
---|
6211 |
|
---|
6212 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6213 | registered within this VirtualBox installation, otherwise the
|
---|
6214 | operation will fail.
|
---|
6215 |
|
---|
6216 | <note>
|
---|
6217 | After this operation succeeds, it will be impossible to
|
---|
6218 | register the hard disk until the image file is created
|
---|
6219 | again.
|
---|
6220 | </note>
|
---|
6221 |
|
---|
6222 | <note>
|
---|
6223 | This operation is valid only for non-differencing hard disks, after
|
---|
6224 | they are unregistered using
|
---|
6225 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6226 | </note>
|
---|
6227 |
|
---|
6228 | </desc>
|
---|
6229 | </method>
|
---|
6230 |
|
---|
6231 | </interface>
|
---|
6232 |
|
---|
6233 | <!--
|
---|
6234 | // IISCSIHardDisk
|
---|
6235 | /////////////////////////////////////////////////////////////////////////
|
---|
6236 | -->
|
---|
6237 |
|
---|
6238 | <interface
|
---|
6239 | name="IISCSIHardDisk" extends="$unknown"
|
---|
6240 | uuid="003f6ca9-3257-4ef9-99c9-c66ce44576cb"
|
---|
6241 | wsmap="managed"
|
---|
6242 | >
|
---|
6243 |
|
---|
6244 | <desc>
|
---|
6245 | THe IISCSIHardDisk interface represents a specific type of
|
---|
6246 | <link to="IHardDisk"/> that uses iSCSI.
|
---|
6247 |
|
---|
6248 | The IISCSIHardDisk interface represents <link to="IHardDisk">virtual
|
---|
6249 | hard disks</link> that use the Internet SCSI (iSCSI) protocol to store
|
---|
6250 | hard disk data on remote machines.
|
---|
6251 |
|
---|
6252 | Objects that support this interface also support the
|
---|
6253 | <link to="IHardDisk"/> interface.
|
---|
6254 |
|
---|
6255 | iSCSI hard disks can be created using
|
---|
6256 | <link to="IVirtualBox::createHardDisk()"/>. When a new hard disk object
|
---|
6257 | is created, all its properties are uninitialized. After you assign some
|
---|
6258 | meaningful values to them, the hard disk object can be registered by
|
---|
6259 | calling <link to="IVirtualBox::registerHardDisk()"/> and
|
---|
6260 | then <link to="IMachine::attachHardDisk()">attached</link> to virtual
|
---|
6261 | machines.
|
---|
6262 |
|
---|
6263 | The <link to="IHardDisk::description">description</link>
|
---|
6264 | of the iSCSI hard disk is stored in the VirtualBox
|
---|
6265 | configuration file, so it can be changed (at appropriate
|
---|
6266 | times) even when
|
---|
6267 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6268 | <tt>false</tt>. However, the hard disk must not be
|
---|
6269 | attached to a running virtual machine.
|
---|
6270 |
|
---|
6271 | <note>
|
---|
6272 | In the current imlementation, the type of all iSCSI hard disks
|
---|
6273 | is <link to="HardDiskType::Writethrough">Writethrough</link>
|
---|
6274 | and cannot be changed.
|
---|
6275 | </note>
|
---|
6276 |
|
---|
6277 | </desc>
|
---|
6278 |
|
---|
6279 | <attribute name="server" type="wstring">
|
---|
6280 | <desc>
|
---|
6281 |
|
---|
6282 | iSCSI Server name (either a host name or an IP address). For
|
---|
6283 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6284 |
|
---|
6285 | </desc>
|
---|
6286 | </attribute>
|
---|
6287 |
|
---|
6288 | <attribute name="port" type="unsigned short">
|
---|
6289 | <desc>
|
---|
6290 |
|
---|
6291 | iSCSI Server port. For newly created hard disk objects, this
|
---|
6292 | value is <tt>0</tt>, which means the default port.
|
---|
6293 |
|
---|
6294 | </desc>
|
---|
6295 | </attribute>
|
---|
6296 |
|
---|
6297 | <attribute name="target" type="wstring">
|
---|
6298 | <desc>
|
---|
6299 |
|
---|
6300 | iSCSI target name. For newly created hard disk objects, this
|
---|
6301 | value is <tt>null</tt>.
|
---|
6302 |
|
---|
6303 | </desc>
|
---|
6304 | </attribute>
|
---|
6305 |
|
---|
6306 | <attribute name="lun" type="unsigned long long">
|
---|
6307 | <desc>
|
---|
6308 |
|
---|
6309 | Logical unit number for this iSCSI disk. For newly created hard
|
---|
6310 | disk objects, this value is <tt>0</tt>.
|
---|
6311 |
|
---|
6312 | </desc>
|
---|
6313 | </attribute>
|
---|
6314 |
|
---|
6315 | <attribute name="userName" type="wstring">
|
---|
6316 | <desc>
|
---|
6317 |
|
---|
6318 | User name for accessing this iSCSI disk. For newly created hard
|
---|
6319 | disk objects, this value is <tt>null</tt>.
|
---|
6320 |
|
---|
6321 | </desc>
|
---|
6322 | </attribute>
|
---|
6323 |
|
---|
6324 | <attribute name="password" type="wstring">
|
---|
6325 | <desc>
|
---|
6326 |
|
---|
6327 | User password for accessing this iSCSI disk. For newly created
|
---|
6328 | hard disk objects, this value is <tt>null</tt>.
|
---|
6329 |
|
---|
6330 | </desc>
|
---|
6331 | </attribute>
|
---|
6332 |
|
---|
6333 | </interface>
|
---|
6334 |
|
---|
6335 | <!--
|
---|
6336 | // IVMDKImage
|
---|
6337 | /////////////////////////////////////////////////////////////////////////
|
---|
6338 | -->
|
---|
6339 |
|
---|
6340 | <interface
|
---|
6341 | name="IVMDKImage" extends="$unknown"
|
---|
6342 | uuid="178398f5-8559-4fee-979e-420af5b53eef"
|
---|
6343 | wsmap="managed"
|
---|
6344 | >
|
---|
6345 | <desc>
|
---|
6346 | The IVMDKImage interface represents a specific type of
|
---|
6347 | <link to="IHardDisk"/> that uses VMDK image files.
|
---|
6348 |
|
---|
6349 | The Virtual Machine Disk (VMDK) format is the industry standard format
|
---|
6350 | for virtual hard disk image files, which VirtualBox supports besides its
|
---|
6351 | own native VDI format.
|
---|
6352 |
|
---|
6353 | Objects that support this interface also support the
|
---|
6354 | <link to="IHardDisk"/> interface.
|
---|
6355 |
|
---|
6356 | Hard disks using VMDK images can be either opened using
|
---|
6357 | <link to="IVirtualBox::openHardDisk()"/> or created from
|
---|
6358 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
6359 |
|
---|
6360 | When a new hard disk object is created from scratch, an image file for it
|
---|
6361 | is not automatically created. To do it, you need to specify a
|
---|
6362 | valid <link to="#filePath">file path</link>, and call
|
---|
6363 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
6364 | When it is done, the hard disk object can be registered by calling
|
---|
6365 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
6366 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
6367 | virtual machines.
|
---|
6368 |
|
---|
6369 | The <link to="IHardDisk::description">description</link>
|
---|
6370 | of the VMDK hard disk is stored in the VirtualBox
|
---|
6371 | configuration file, so it can be changed (at appropriate
|
---|
6372 | times) even when
|
---|
6373 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6374 | <tt>false</tt>. However, the hard disk must not be
|
---|
6375 | attached to a running virtual machine.
|
---|
6376 |
|
---|
6377 | <note>
|
---|
6378 | In the current imlementation, the type of all VMDK hard disks
|
---|
6379 | is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot
|
---|
6380 | be changed.
|
---|
6381 | </note>
|
---|
6382 |
|
---|
6383 | </desc>
|
---|
6384 |
|
---|
6385 | <attribute name="filePath" type="wstring">
|
---|
6386 | <desc>
|
---|
6387 |
|
---|
6388 | Full file name of the VMDK image of this hard disk. For
|
---|
6389 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6390 |
|
---|
6391 | When assigning a new path, it can be absolute (full path) or relative
|
---|
6392 | to the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
6393 | directory</link>. If only a file name without any path is given,
|
---|
6394 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
6395 | folder</link> will be used as a path to the image file.
|
---|
6396 |
|
---|
6397 | When reading this propery, a full path is always returned.
|
---|
6398 |
|
---|
6399 | <note>
|
---|
6400 | This property cannot be changed when <link to="#created"/>
|
---|
6401 | returns <tt>true</tt>.
|
---|
6402 | </note>
|
---|
6403 |
|
---|
6404 | </desc>
|
---|
6405 | </attribute>
|
---|
6406 |
|
---|
6407 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6408 | <desc>
|
---|
6409 |
|
---|
6410 | Whether the virual disk image is created or not. For newly created
|
---|
6411 | hard disk objects or after a successful invocation of
|
---|
6412 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6413 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
|
---|
6414 | is called.
|
---|
6415 |
|
---|
6416 | </desc>
|
---|
6417 | </attribute>
|
---|
6418 |
|
---|
6419 | <method name="createDynamicImage">
|
---|
6420 |
|
---|
6421 | <desc>
|
---|
6422 |
|
---|
6423 | Starts creating a dymically expanding hard disk image in the
|
---|
6424 | background. The previous image associated with this object, if
|
---|
6425 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6426 | the operation will fail.
|
---|
6427 |
|
---|
6428 | <note>
|
---|
6429 | After the returned progress object reports that the
|
---|
6430 | operation is complete, this hard disk object can be
|
---|
6431 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6432 | this VirtualBox installation.
|
---|
6433 | </note>
|
---|
6434 |
|
---|
6435 | </desc>
|
---|
6436 |
|
---|
6437 | <param name="size" type="unsigned long long" dir="in">
|
---|
6438 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6439 | </param>
|
---|
6440 | <param name="progress" type="IProgress" dir="return">
|
---|
6441 | <desc>Progress object to track the operation completion.</desc>
|
---|
6442 | </param>
|
---|
6443 |
|
---|
6444 | </method>
|
---|
6445 |
|
---|
6446 | <method name="createFixedImage">
|
---|
6447 | <desc>
|
---|
6448 |
|
---|
6449 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6450 | previous image, if any, must be deleted using
|
---|
6451 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6452 |
|
---|
6453 | <note>
|
---|
6454 | After the returned progress object reports that the
|
---|
6455 | operation is complete, this hard disk object can be
|
---|
6456 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6457 | this VirtualBox installation.
|
---|
6458 | </note>
|
---|
6459 |
|
---|
6460 | </desc>
|
---|
6461 |
|
---|
6462 | <param name="size" type="unsigned long long" dir="in">
|
---|
6463 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6464 | </param>
|
---|
6465 | <param name="progress" type="IProgress" dir="return">
|
---|
6466 | <desc>Progress object to track the operation completion.</desc>
|
---|
6467 | </param>
|
---|
6468 |
|
---|
6469 | </method>
|
---|
6470 |
|
---|
6471 | <method name="deleteImage">
|
---|
6472 | <desc>
|
---|
6473 |
|
---|
6474 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6475 | registered within this VirtualBox installation, otherwise the
|
---|
6476 | operation will fail.
|
---|
6477 |
|
---|
6478 | <note>
|
---|
6479 | After this operation succeeds, it will be impossible to register the
|
---|
6480 | hard disk until the image file is created again.
|
---|
6481 | </note>
|
---|
6482 |
|
---|
6483 | <note>
|
---|
6484 | This operation is valid only for non-differencing hard disks, after
|
---|
6485 | they are unregistered using
|
---|
6486 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6487 | </note>
|
---|
6488 |
|
---|
6489 | </desc>
|
---|
6490 | </method>
|
---|
6491 |
|
---|
6492 | </interface>
|
---|
6493 |
|
---|
6494 | <!--
|
---|
6495 | // ICustomHardDisk
|
---|
6496 | /////////////////////////////////////////////////////////////////////////
|
---|
6497 | -->
|
---|
6498 |
|
---|
6499 | <interface
|
---|
6500 | name="ICustomHardDisk" extends="$unknown"
|
---|
6501 | uuid="a7b0236d-3ff4-47c0-a4aa-ddc4ddc1141a"
|
---|
6502 | wsmap="managed"
|
---|
6503 | >
|
---|
6504 | <desc>
|
---|
6505 | The ICustomHardDisk interface represents a specific type of
|
---|
6506 | <link to="IHardDisk" /> that is supported through a third-party plugin.
|
---|
6507 |
|
---|
6508 | This interface allows to add support for custom hard disk formats to
|
---|
6509 | VirtualBox.
|
---|
6510 |
|
---|
6511 | Objects that support this interface also support the
|
---|
6512 | <link to="IHardDisk"/> interface.
|
---|
6513 |
|
---|
6514 | Hard disks using custom hard disk formats can be either opened using
|
---|
6515 | <link to="IVirtualBox::openHardDisk()"/> or created from scratch using
|
---|
6516 | <link to="IVirtualBox::createHardDisk()"/>.
|
---|
6517 |
|
---|
6518 | When a new hard disk object is created from scratch, an image file for
|
---|
6519 | it is not automatically created. To do it, you need to specify a
|
---|
6520 | valid <link to="#location">location</link>, and call
|
---|
6521 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
6522 | When it is done, the hard disk object can be registered by calling
|
---|
6523 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
6524 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
6525 | virtual machines.
|
---|
6526 |
|
---|
6527 | The <link to="IHardDisk::description">description</link>
|
---|
6528 | of the hard disk is stored in the VirtualBox
|
---|
6529 | configuration file, so it can be changed (at appropriate
|
---|
6530 | times) even when
|
---|
6531 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6532 | <tt>false</tt>. However, the hard disk must not be
|
---|
6533 | attached to a running virtual machine.
|
---|
6534 |
|
---|
6535 | </desc>
|
---|
6536 |
|
---|
6537 | <attribute name="location" type="wstring">
|
---|
6538 | <desc>
|
---|
6539 |
|
---|
6540 | Location of this custom hard disk. For
|
---|
6541 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6542 |
|
---|
6543 | The format of the location string is plugin-dependent. In case if the
|
---|
6544 | plugin uses a regular file in the local file system to store hard disk
|
---|
6545 | data, then the location is a file path and the following rules apply:
|
---|
6546 | <ul>
|
---|
6547 | <li>
|
---|
6548 | when assigning a new path, it must be absolute (full path) or
|
---|
6549 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
6550 | home directory</link>. If only a file name without any path is
|
---|
6551 | given, the <link to="ISystemProperties::defaultVDIFolder"> default
|
---|
6552 | VDI folder</link> will be used as a path to the image file.
|
---|
6553 | </li>
|
---|
6554 | <li>
|
---|
6555 | When reading this propery, a full path is always returned.
|
---|
6556 | </li>
|
---|
6557 | </ul>
|
---|
6558 |
|
---|
6559 | <note>
|
---|
6560 | This property cannot be changed when <link to="#created"/>
|
---|
6561 | returns <tt>true</tt>.
|
---|
6562 | </note>
|
---|
6563 |
|
---|
6564 | </desc>
|
---|
6565 | </attribute>
|
---|
6566 |
|
---|
6567 | <attribute name="format" type="wstring" readonly="yes">
|
---|
6568 | <desc>
|
---|
6569 |
|
---|
6570 | The plugin name of the image file.
|
---|
6571 |
|
---|
6572 | </desc>
|
---|
6573 | </attribute>
|
---|
6574 |
|
---|
6575 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6576 | <desc>
|
---|
6577 |
|
---|
6578 | Whether the virual disk image is created or not. For newly created
|
---|
6579 | hard disk objects or after a successful invocation of
|
---|
6580 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6581 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
|
---|
6582 | is called.
|
---|
6583 |
|
---|
6584 | </desc>
|
---|
6585 | </attribute>
|
---|
6586 |
|
---|
6587 | <method name="createDynamicImage">
|
---|
6588 |
|
---|
6589 | <desc>
|
---|
6590 |
|
---|
6591 | Starts creating a dymically expanding hard disk image in the
|
---|
6592 | background. The previous image associated with this object, if
|
---|
6593 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6594 | the operation will fail.
|
---|
6595 |
|
---|
6596 | <note>
|
---|
6597 | After the returned progress object reports that the
|
---|
6598 | operation is complete, this hard disk object can be
|
---|
6599 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6600 | this VirtualBox installation.
|
---|
6601 | </note>
|
---|
6602 |
|
---|
6603 | </desc>
|
---|
6604 |
|
---|
6605 | <param name="size" type="unsigned long long" dir="in">
|
---|
6606 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6607 | </param>
|
---|
6608 | <param name="progress" type="IProgress" dir="return">
|
---|
6609 | <desc>Progress object to track the operation completion.</desc>
|
---|
6610 | </param>
|
---|
6611 |
|
---|
6612 | </method>
|
---|
6613 |
|
---|
6614 | <method name="createFixedImage">
|
---|
6615 | <desc>
|
---|
6616 |
|
---|
6617 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6618 | previous image, if any, must be deleted using
|
---|
6619 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6620 |
|
---|
6621 | <note>
|
---|
6622 | After the returned progress object reports that the
|
---|
6623 | operation is complete, this hard disk object can be
|
---|
6624 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6625 | this VirtualBox installation.
|
---|
6626 | </note>
|
---|
6627 |
|
---|
6628 | </desc>
|
---|
6629 |
|
---|
6630 | <param name="size" type="unsigned long long" dir="in">
|
---|
6631 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6632 | </param>
|
---|
6633 | <param name="progress" type="IProgress" dir="return">
|
---|
6634 | <desc>Progress object to track the operation completion.</desc>
|
---|
6635 | </param>
|
---|
6636 |
|
---|
6637 | </method>
|
---|
6638 |
|
---|
6639 | <method name="deleteImage">
|
---|
6640 | <desc>
|
---|
6641 |
|
---|
6642 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6643 | registered within this VirtualBox installation, otherwise the
|
---|
6644 | operation will fail.
|
---|
6645 |
|
---|
6646 | <note>
|
---|
6647 | After this operation succeeds, it will be impossible to register the
|
---|
6648 | hard disk until the image file is created again.
|
---|
6649 | </note>
|
---|
6650 |
|
---|
6651 | <note>
|
---|
6652 | This operation is valid only for non-differencing hard disks, after
|
---|
6653 | they are unregistered using
|
---|
6654 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6655 | </note>
|
---|
6656 |
|
---|
6657 | </desc>
|
---|
6658 | </method>
|
---|
6659 |
|
---|
6660 | </interface>
|
---|
6661 |
|
---|
6662 | <!--
|
---|
6663 | // IVHDImage
|
---|
6664 | /////////////////////////////////////////////////////////////////////////
|
---|
6665 | -->
|
---|
6666 |
|
---|
6667 | <interface
|
---|
6668 | name="IVHDImage" extends="$unknown"
|
---|
6669 | uuid="163b88c3-7552-424a-8205-daf17a004747"
|
---|
6670 | wsmap="managed"
|
---|
6671 | >
|
---|
6672 | <desc>
|
---|
6673 |
|
---|
6674 | The IVHDImage interface represents <link to="IHardDisk">virtual hard
|
---|
6675 | disks</link> that use Virtual PC Virtual Machine Disk image files to store
|
---|
6676 | hard disk data.
|
---|
6677 |
|
---|
6678 | Hard disks using VHD images can be either opened using
|
---|
6679 | <link to="IVirtualBox::openHardDisk()"/> or created from
|
---|
6680 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
6681 |
|
---|
6682 | Objects that support this interface also support the
|
---|
6683 | <link to="IHardDisk"/> interface.
|
---|
6684 |
|
---|
6685 | When a new hard disk object is created from scatch, an image file for it
|
---|
6686 | is not automatically created. To do it, you need to specify a
|
---|
6687 | valid <link to="#filePath">file path</link>, and call
|
---|
6688 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
6689 | When it is done, the hard disk object can be registered by calling
|
---|
6690 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
6691 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
6692 | virtual machines.
|
---|
6693 |
|
---|
6694 | The <link to="IHardDisk::description">description</link>
|
---|
6695 | of the VHD hard disk is stored in the VirtualBox
|
---|
6696 | configuration file, so it can be changed (at appropriate
|
---|
6697 | times) even when
|
---|
6698 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6699 | <tt>false</tt>. However, the hard disk must not be
|
---|
6700 | attached to a running virtual machine.
|
---|
6701 |
|
---|
6702 | <note>
|
---|
6703 | In the current imlementation, the type of all VHD hard disks
|
---|
6704 | is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot
|
---|
6705 | be changed.
|
---|
6706 | </note>
|
---|
6707 |
|
---|
6708 | </desc>
|
---|
6709 |
|
---|
6710 | <attribute name="filePath" type="wstring">
|
---|
6711 | <desc>
|
---|
6712 |
|
---|
6713 | Full file name of the VHD image of this hard disk. For
|
---|
6714 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6715 |
|
---|
6716 | When assigning a new path, it can be absolute (full path) or relative
|
---|
6717 | to the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
6718 | directory</link>. If only a file name without any path is given,
|
---|
6719 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
6720 | folder</link> will be used as a path to the image file.
|
---|
6721 |
|
---|
6722 | When reading this propery, a full path is always returned.
|
---|
6723 |
|
---|
6724 | <note>
|
---|
6725 | This property cannot be changed when <link to="#created"/>
|
---|
6726 | returns <tt>true</tt>. In this case, the specified file name can be
|
---|
6727 | absolute (full path) or relative to
|
---|
6728 | the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
6729 | directory</link>. If only a file name without any path is given,
|
---|
6730 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
6731 | folder</link> will be used as a path to the image file.
|
---|
6732 | </note>
|
---|
6733 |
|
---|
6734 | </desc>
|
---|
6735 | </attribute>
|
---|
6736 |
|
---|
6737 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6738 | <desc>
|
---|
6739 |
|
---|
6740 | Whether the virual disk image is created or not. For newly created
|
---|
6741 | hard disk objects or after a successful invocation of
|
---|
6742 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6743 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
|
---|
6744 | is called.
|
---|
6745 |
|
---|
6746 | </desc>
|
---|
6747 | </attribute>
|
---|
6748 |
|
---|
6749 | <method name="createDynamicImage">
|
---|
6750 |
|
---|
6751 | <desc>
|
---|
6752 |
|
---|
6753 | Starts creating a dymically expanding hard disk image in the
|
---|
6754 | background. The previous image associated with this object, if
|
---|
6755 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6756 | the operation will fail.
|
---|
6757 |
|
---|
6758 | <note>
|
---|
6759 | After the returned progress object reports that the
|
---|
6760 | operation is complete, this hard disk object can be
|
---|
6761 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6762 | this VirtualBox installation.
|
---|
6763 | </note>
|
---|
6764 |
|
---|
6765 | </desc>
|
---|
6766 |
|
---|
6767 | <param name="size" type="unsigned long long" dir="in">
|
---|
6768 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6769 | </param>
|
---|
6770 | <param name="progress" type="IProgress" dir="return">
|
---|
6771 | <desc>Progress object to track the operation completion.</desc>
|
---|
6772 | </param>
|
---|
6773 |
|
---|
6774 | </method>
|
---|
6775 |
|
---|
6776 | <method name="createFixedImage">
|
---|
6777 | <desc>
|
---|
6778 |
|
---|
6779 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6780 | previous image, if any, must be deleted using
|
---|
6781 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6782 |
|
---|
6783 | <note>
|
---|
6784 | After the returned progress object reports that the
|
---|
6785 | operation is complete, this hard disk object can be
|
---|
6786 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6787 | this VirtualBox installation.
|
---|
6788 | </note>
|
---|
6789 |
|
---|
6790 | </desc>
|
---|
6791 |
|
---|
6792 | <param name="size" type="unsigned long long" dir="in">
|
---|
6793 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6794 | </param>
|
---|
6795 | <param name="progress" type="IProgress" dir="return">
|
---|
6796 | <desc>Progress object to track the operation completion.</desc>
|
---|
6797 | </param>
|
---|
6798 |
|
---|
6799 | </method>
|
---|
6800 |
|
---|
6801 | <method name="deleteImage">
|
---|
6802 | <desc>
|
---|
6803 |
|
---|
6804 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6805 | registered within this VirtualBox installation, otherwise the
|
---|
6806 | operation will fail.
|
---|
6807 |
|
---|
6808 | <note>
|
---|
6809 | After this operation succeeds, it will be impossible to register the
|
---|
6810 | hard disk until the image file is created again.
|
---|
6811 | </note>
|
---|
6812 |
|
---|
6813 | <note>
|
---|
6814 | This operation is valid only for non-differencing hard disks, after
|
---|
6815 | they are unregistered using
|
---|
6816 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6817 | </note>
|
---|
6818 |
|
---|
6819 | </desc>
|
---|
6820 | </method>
|
---|
6821 |
|
---|
6822 | </interface>
|
---|
6823 |
|
---|
6824 | <!--
|
---|
6825 | // IDVDImage
|
---|
6826 | /////////////////////////////////////////////////////////////////////////
|
---|
6827 | -->
|
---|
6828 |
|
---|
6829 | <enumerator
|
---|
6830 | name="IDVDImageEnumerator" type="IDVDImage"
|
---|
6831 | uuid="9BE77C8D-E1BE-4bf2-A67B-B4DD3D2B0F28"
|
---|
6832 | />
|
---|
6833 |
|
---|
6834 | <collection
|
---|
6835 | name="IDVDImageCollection" type="IDVDImage"
|
---|
6836 | enumerator="IDVDImageEnumerator"
|
---|
6837 | uuid="AE7053FA-ADD2-4ea4-AFCF-24D5F8DDED64"
|
---|
6838 | readonly="yes"
|
---|
6839 | >
|
---|
6840 | <method name="findByPath">
|
---|
6841 | <desc>
|
---|
6842 | Searches this collection for a DVD image with the given disk path.
|
---|
6843 | <note>
|
---|
6844 | The method returns an error if the given name does not
|
---|
6845 | correspond to any DVD image in the collection.
|
---|
6846 | </note>
|
---|
6847 | </desc>
|
---|
6848 | <param name="path" type="wstring" dir="in">
|
---|
6849 | <desc>Name of the DVD image's file system location.</desc>
|
---|
6850 | </param>
|
---|
6851 | <param name="image" type="IDVDImage" dir="return">
|
---|
6852 | <desc>Found DVD image object</desc>
|
---|
6853 | </param>
|
---|
6854 | </method>
|
---|
6855 | </collection>
|
---|
6856 |
|
---|
6857 | <interface
|
---|
6858 | name="IDVDImage" extends="$unknown"
|
---|
6859 | uuid="140FFF03-E479-4194-8562-ABC4F8171009"
|
---|
6860 | wsmap="managed"
|
---|
6861 | >
|
---|
6862 | <desc>
|
---|
6863 |
|
---|
6864 | The IDVDImage interface represents a file containing the image
|
---|
6865 | of the DVD or CD disk.
|
---|
6866 |
|
---|
6867 | <h3>Image Accessibility</h3>
|
---|
6868 |
|
---|
6869 | The <link to="#accessible"/> attribute of the image object
|
---|
6870 | defines the accessibility state of the image file. If the
|
---|
6871 | value of this attribute is <tt>false</tt> then some image
|
---|
6872 | attributes may contain invalid or outdated values (for example, the
|
---|
6873 | the image file size) until a new accessibility
|
---|
6874 | check is done that returns <tt>true</tt>.
|
---|
6875 |
|
---|
6876 | <note>
|
---|
6877 | Because of the possible slowness of the accessibility check,
|
---|
6878 | it is not implicitly performed upon the VirtualBox server startup
|
---|
6879 | (to prevent the application freeze). In partcular, this means that
|
---|
6880 | if you try to read image properties that depend on the
|
---|
6881 | accessibility state without first reading the value of the
|
---|
6882 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
6883 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
6884 | </note>
|
---|
6885 |
|
---|
6886 | </desc>
|
---|
6887 | <attribute name="id" type="uuid" readonly="yes">
|
---|
6888 | <desc>UUID of the CD/DVD image.</desc>
|
---|
6889 | </attribute>
|
---|
6890 |
|
---|
6891 | <attribute name="filePath" type="wstring" readonly="yes">
|
---|
6892 | <desc>Full file name of the CD/DVD image.</desc>
|
---|
6893 | </attribute>
|
---|
6894 |
|
---|
6895 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
6896 | <desc>
|
---|
6897 |
|
---|
6898 | Whether the CD/DVD image is currently accessible or not.
|
---|
6899 | The image, for example, can be unaccessible if it is placed
|
---|
6900 | on a network share that is not available by the time
|
---|
6901 | this property is read.
|
---|
6902 |
|
---|
6903 | The accessibility check is performed automatically every time
|
---|
6904 | this attribute is read. You should keep it in mind that this check
|
---|
6905 | may be slow and can block the calling thread for a long time (for
|
---|
6906 | example, if the network share where the image is located is down).
|
---|
6907 |
|
---|
6908 | The following attributes of the image object are considered
|
---|
6909 | to be invalid when this attribute is <tt>false</tt>:
|
---|
6910 | <ul>
|
---|
6911 | <li><link to="#size"/></li>
|
---|
6912 | </ul>
|
---|
6913 |
|
---|
6914 | </desc>
|
---|
6915 | </attribute>
|
---|
6916 |
|
---|
6917 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
6918 | <desc>Size of the ISO image in bytes.</desc>
|
---|
6919 | </attribute>
|
---|
6920 |
|
---|
6921 | </interface>
|
---|
6922 |
|
---|
6923 |
|
---|
6924 | <!--
|
---|
6925 | // IDVDDrive
|
---|
6926 | /////////////////////////////////////////////////////////////////////////
|
---|
6927 | -->
|
---|
6928 |
|
---|
6929 | <interface
|
---|
6930 | name="IDVDDrive" extends="$unknown"
|
---|
6931 | uuid="d9bd101a-8079-4fb9-bad1-31bf32482b75"
|
---|
6932 | wsmap="managed"
|
---|
6933 | >
|
---|
6934 | <desc>
|
---|
6935 | The IDVDDrive interface represents the virtual CD/DVD drive of the
|
---|
6936 | virtual machine. Used in <link to="IMachine::DVDDrive"/>.
|
---|
6937 | </desc>
|
---|
6938 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
6939 | <desc>Current drive state.</desc>
|
---|
6940 | </attribute>
|
---|
6941 |
|
---|
6942 | <attribute name="passthrough" type="boolean">
|
---|
6943 | <desc>
|
---|
6944 | When a host drive is mounted and passthrough is enabled
|
---|
6945 | the guest will be able to directly send SCSI commands to
|
---|
6946 | the host drive. This enables the guest to use CD/DVD writers
|
---|
6947 | but is potentially dangerous.
|
---|
6948 | </desc>
|
---|
6949 | </attribute>
|
---|
6950 |
|
---|
6951 | <method name="mountImage">
|
---|
6952 | <desc>Mounts the specified image.</desc>
|
---|
6953 | <param name="imageId" type="uuid" dir="in"/>
|
---|
6954 | </method>
|
---|
6955 |
|
---|
6956 | <method name="captureHostDrive">
|
---|
6957 | <desc>Captures the specified host drive.</desc>
|
---|
6958 | <param name="drive" type="IHostDVDDrive" dir="in"/>
|
---|
6959 | </method>
|
---|
6960 |
|
---|
6961 | <method name="unmount">
|
---|
6962 | <desc>Unmounts the currently mounted image/device.</desc>
|
---|
6963 | </method>
|
---|
6964 |
|
---|
6965 | <method name="getImage">
|
---|
6966 | <desc>Gets the currently mounted image ID.</desc>
|
---|
6967 | <param name="image" type="IDVDImage" dir="return"/>
|
---|
6968 | </method>
|
---|
6969 |
|
---|
6970 | <method name="getHostDrive">
|
---|
6971 | <desc>Gets the currently mounted image ID.</desc>
|
---|
6972 | <param name="drive" type="IHostDVDDrive" dir="return"/>
|
---|
6973 | </method>
|
---|
6974 |
|
---|
6975 | </interface>
|
---|
6976 |
|
---|
6977 | <!--
|
---|
6978 | // IFloppyImage
|
---|
6979 | /////////////////////////////////////////////////////////////////////////
|
---|
6980 | -->
|
---|
6981 |
|
---|
6982 | <enumerator
|
---|
6983 | name="IFloppyImageEnumerator" type="IFloppyImage"
|
---|
6984 | uuid="902C4089-76B7-41f1-91E8-49A261A28A2C"
|
---|
6985 | />
|
---|
6986 |
|
---|
6987 | <collection
|
---|
6988 | name="IFloppyImageCollection" type="IFloppyImage"
|
---|
6989 | enumerator="IFloppyImageEnumerator"
|
---|
6990 | uuid="327A8928-8572-446e-AD9A-18FE30E81F3F"
|
---|
6991 | readonly="yes">
|
---|
6992 | <method name="findByPath">
|
---|
6993 | <desc>
|
---|
6994 | Searches this collection for a floppy image with the given disk path.
|
---|
6995 | <note>
|
---|
6996 | The method returns an error if the given name does not
|
---|
6997 | correspond to any floppy image in the collection.
|
---|
6998 | </note>
|
---|
6999 | </desc>
|
---|
7000 | <param name="path" type="wstring" dir="in">
|
---|
7001 | <desc>Name of the floppy image's file system location.</desc>
|
---|
7002 | </param>
|
---|
7003 | <param name="image" type="IFloppyImage" dir="return">
|
---|
7004 | <desc>Found Floppy image object</desc>
|
---|
7005 | </param>
|
---|
7006 | </method>
|
---|
7007 | </collection>
|
---|
7008 |
|
---|
7009 | <interface
|
---|
7010 | name="IFloppyImage" extends="$unknown"
|
---|
7011 | uuid="CC696755-EA98-4ffe-9DC5-C003047034AB"
|
---|
7012 | wsmap="managed"
|
---|
7013 | >
|
---|
7014 | <desc>
|
---|
7015 |
|
---|
7016 | The IFloppyImage interface represents a file containing the image
|
---|
7017 | of a floppy disk.
|
---|
7018 |
|
---|
7019 | <h3>Image Accessibility</h3>
|
---|
7020 |
|
---|
7021 | The <link to="#accessible"/> attribute of the image object
|
---|
7022 | defines the accessibility state of the image file. If the
|
---|
7023 | value of this attribute is <tt>false</tt> then some image
|
---|
7024 | attributes may contain invalid or outdated values (for example, the
|
---|
7025 | the image file size) until a new accessibility
|
---|
7026 | check is done that returns <tt>true</tt>.
|
---|
7027 |
|
---|
7028 | <note>
|
---|
7029 | Because of the possible slowness of the accessibility check,
|
---|
7030 | it is not implicitly performed upon the VirtualBox server startup
|
---|
7031 | (to prevent the application freeze). In partcular, this means that
|
---|
7032 | if you try to read image properties that depend on the
|
---|
7033 | accessibility state without first reading the value of the
|
---|
7034 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
7035 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
7036 | </note>
|
---|
7037 |
|
---|
7038 | </desc>
|
---|
7039 | <attribute name="id" type="uuid" readonly="yes">
|
---|
7040 | <desc>UUID of the floppy image.</desc>
|
---|
7041 | </attribute>
|
---|
7042 |
|
---|
7043 | <attribute name="filePath" type="wstring" readonly="yes">
|
---|
7044 | <desc>Full file name of the floppy image.</desc>
|
---|
7045 | </attribute>
|
---|
7046 |
|
---|
7047 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
7048 | <desc>
|
---|
7049 |
|
---|
7050 | Whether the floppy image is currently accessible or not.
|
---|
7051 | The image, for example, can be unaccessible if it is placed
|
---|
7052 | on a network share that is not available by the time
|
---|
7053 | this property is read.
|
---|
7054 |
|
---|
7055 | The accessibility check is performed automatically every time
|
---|
7056 | this attribute is read. You should keep it in mind that this check
|
---|
7057 | may be slow and can block the calling thread for a long time (for
|
---|
7058 | example, if the network share where the image is located is down).
|
---|
7059 |
|
---|
7060 | The following attributes of the image object are considered
|
---|
7061 | to be invalid when this attribute is <tt>false</tt>:
|
---|
7062 | <ul>
|
---|
7063 | <li><link to="#size"/></li>
|
---|
7064 | </ul>
|
---|
7065 |
|
---|
7066 | </desc>
|
---|
7067 | </attribute>
|
---|
7068 |
|
---|
7069 | <attribute name="size" type="unsigned long" readonly="yes">
|
---|
7070 | <desc>Size of the floppy image in bytes.</desc>
|
---|
7071 | </attribute>
|
---|
7072 |
|
---|
7073 | </interface>
|
---|
7074 |
|
---|
7075 |
|
---|
7076 | <!--
|
---|
7077 | // IFloppyDrive
|
---|
7078 | /////////////////////////////////////////////////////////////////////////
|
---|
7079 | -->
|
---|
7080 |
|
---|
7081 | <interface
|
---|
7082 | name="IFloppyDrive" extends="$unknown"
|
---|
7083 | uuid="E9318F71-78D2-4b00-863C-B7CB0030A2D9"
|
---|
7084 | wsmap="managed"
|
---|
7085 | >
|
---|
7086 | <desc>
|
---|
7087 | The IFloppyDrive interface represents the virtual floppy drive of the
|
---|
7088 | virtual machine. Used in <link to="IMachine::FloppyDrive" />.
|
---|
7089 | </desc>
|
---|
7090 |
|
---|
7091 | <attribute name="enabled" type="boolean">
|
---|
7092 | <desc>
|
---|
7093 | Flag whether the floppy drive is enabled. If it is disabled,
|
---|
7094 | the floppy drive will not be reported to the guest.
|
---|
7095 | </desc>
|
---|
7096 | </attribute>
|
---|
7097 |
|
---|
7098 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
7099 | <desc>Current drive state.</desc>
|
---|
7100 | </attribute>
|
---|
7101 |
|
---|
7102 | <method name="mountImage">
|
---|
7103 | <desc>Mounts the specified image.</desc>
|
---|
7104 | <param name="imageId" type="uuid" dir="in"/>
|
---|
7105 | </method>
|
---|
7106 |
|
---|
7107 | <method name="captureHostDrive">
|
---|
7108 | <desc>Captures the specified host drive.</desc>
|
---|
7109 | <param name="drive" type="IHostFloppyDrive" dir="in"/>
|
---|
7110 | </method>
|
---|
7111 |
|
---|
7112 | <method name="unmount">
|
---|
7113 | <desc>Unmounts the currently mounted image/device.</desc>
|
---|
7114 | </method>
|
---|
7115 |
|
---|
7116 | <method name="getImage">
|
---|
7117 | <desc>Gets the currently mounted image ID.</desc>
|
---|
7118 | <param name="image" type="IFloppyImage" dir="return"/>
|
---|
7119 | </method>
|
---|
7120 |
|
---|
7121 | <method name="getHostDrive">
|
---|
7122 | <desc>Gets the currently mounted image ID.</desc>
|
---|
7123 | <param name="drive" type="IHostFloppyDrive" dir="return"/>
|
---|
7124 | </method>
|
---|
7125 |
|
---|
7126 | </interface>
|
---|
7127 |
|
---|
7128 |
|
---|
7129 | <!--
|
---|
7130 | // IKeyboard
|
---|
7131 | /////////////////////////////////////////////////////////////////////////
|
---|
7132 | -->
|
---|
7133 |
|
---|
7134 | <interface
|
---|
7135 | name="IKeyboard" extends="$unknown"
|
---|
7136 | uuid="FD443EC1-000A-4F5B-9282-D72760A66916"
|
---|
7137 | wsmap="managed"
|
---|
7138 | >
|
---|
7139 | <desc>
|
---|
7140 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
7141 | in <link to="IConsole::keyboard"/>.
|
---|
7142 |
|
---|
7143 | Through this interface, the virtual machine's virtual keyboard can be controlled. One
|
---|
7144 | can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it.
|
---|
7145 | </desc>
|
---|
7146 | <method name="putScancode">
|
---|
7147 | <desc>Sends a scancode to the keyboard.</desc>
|
---|
7148 | <param name="scancode" type="long" dir="in"/>
|
---|
7149 | </method>
|
---|
7150 |
|
---|
7151 | <method name="putScancodes">
|
---|
7152 | <desc>Sends an array of scancode to the keyboard.</desc>
|
---|
7153 | <param name="scancodes" type="long" dir="in" array="count"/>
|
---|
7154 | <param name="count" type="unsigned long" dir="in"/>
|
---|
7155 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
7156 | </method>
|
---|
7157 |
|
---|
7158 | <method name="putCAD">
|
---|
7159 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
|
---|
7160 | </method>
|
---|
7161 |
|
---|
7162 | </interface>
|
---|
7163 |
|
---|
7164 |
|
---|
7165 | <!--
|
---|
7166 | // IMouse
|
---|
7167 | /////////////////////////////////////////////////////////////////////////
|
---|
7168 | -->
|
---|
7169 |
|
---|
7170 | <enum
|
---|
7171 | name="MouseButtonState"
|
---|
7172 | uuid="03131722-2EC5-4173-9794-0DACA46673EF"
|
---|
7173 | >
|
---|
7174 | <desc>
|
---|
7175 | Mouse button state.
|
---|
7176 | </desc>
|
---|
7177 |
|
---|
7178 | <const name="LeftButton" value="0x01"/>
|
---|
7179 | <const name="RightButton" value="0x02"/>
|
---|
7180 | <const name="MiddleButton" value="0x04"/>
|
---|
7181 | <const name="WheelUp" value="0x08"/>
|
---|
7182 | <const name="WheelDown" value="0x10"/>
|
---|
7183 | <const name="MouseStateMask" value="0x1F"/>
|
---|
7184 | </enum>
|
---|
7185 |
|
---|
7186 | <interface
|
---|
7187 | name="IMouse" extends="$unknown"
|
---|
7188 | uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
|
---|
7189 | wsmap="managed"
|
---|
7190 | >
|
---|
7191 | <desc>
|
---|
7192 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
7193 | <link to="IConsole::mouse"/>.
|
---|
7194 |
|
---|
7195 | Through this interface, the virtual machine's virtual mouse can be
|
---|
7196 | controlled.
|
---|
7197 | </desc>
|
---|
7198 |
|
---|
7199 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
7200 | <desc>
|
---|
7201 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
7202 | or not.
|
---|
7203 | <note>
|
---|
7204 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
7205 | in order to enable absolute mouse positioning support.
|
---|
7206 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
7207 | callback to be instantly informed about changes of this attribute
|
---|
7208 | during virtual machine execution.
|
---|
7209 | </note>
|
---|
7210 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
7211 | </desc>
|
---|
7212 | </attribute>
|
---|
7213 |
|
---|
7214 | <method name="putMouseEvent">
|
---|
7215 | <desc>
|
---|
7216 | Initiates a mouse event using relative pointer movements
|
---|
7217 | along x and y axis.
|
---|
7218 | </desc>
|
---|
7219 |
|
---|
7220 | <param name="dx" type="long" dir="in">
|
---|
7221 | <desc>
|
---|
7222 | Amout of pixels the mouse should move to the right.
|
---|
7223 | Negative values move the mouse to the left.
|
---|
7224 | </desc>
|
---|
7225 | </param>
|
---|
7226 | <param name="dy" type="long" dir="in">
|
---|
7227 | <desc>
|
---|
7228 | Amout of pixels the mouse should move downwards.
|
---|
7229 | Negative values move the mouse upwards.
|
---|
7230 | </desc>
|
---|
7231 | </param>
|
---|
7232 | <param name="dz" type="long" dir="in">
|
---|
7233 | <desc>
|
---|
7234 | Amount of mouse wheel moves.
|
---|
7235 | Positive values describe clockwize wheel rotations,
|
---|
7236 | negative values describe counterclockwise rotations.
|
---|
7237 | </desc>
|
---|
7238 | </param>
|
---|
7239 | <param name="buttonState" type="long" dir="in">
|
---|
7240 | <desc>
|
---|
7241 | The current state of mouse buttons. Every bit represents
|
---|
7242 | a mouse button as follows:
|
---|
7243 | <table>
|
---|
7244 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
7245 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
7246 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
7247 | </table>
|
---|
7248 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
7249 | otherwise it is released.
|
---|
7250 | </desc>
|
---|
7251 | </param>
|
---|
7252 | </method>
|
---|
7253 |
|
---|
7254 | <method name="putMouseEventAbsolute">
|
---|
7255 | <desc>
|
---|
7256 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
7257 | These coordinates are expressed in pixels and
|
---|
7258 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
7259 | corner of the virtual display.
|
---|
7260 |
|
---|
7261 | <note>
|
---|
7262 | This method will have effect only if absolute mouse
|
---|
7263 | positioning is supported by the guest OS.
|
---|
7264 | </note>
|
---|
7265 |
|
---|
7266 | <see><link to="#absoluteSupported"/></see>
|
---|
7267 | </desc>
|
---|
7268 |
|
---|
7269 | <param name="x" type="long" dir="in">
|
---|
7270 | <desc>
|
---|
7271 | X coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
7272 | </desc>
|
---|
7273 | </param>
|
---|
7274 | <param name="y" type="long" dir="in">
|
---|
7275 | <desc>
|
---|
7276 | Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
7277 | </desc>
|
---|
7278 | </param>
|
---|
7279 | <param name="dz" type="long" dir="in">
|
---|
7280 | <desc>
|
---|
7281 | Amout of mouse wheel moves.
|
---|
7282 | Positive values describe clockwize wheel rotations,
|
---|
7283 | negative values describe counterclockwise rotations.
|
---|
7284 | </desc>
|
---|
7285 | </param>
|
---|
7286 | <param name="buttonState" type="long" dir="in">
|
---|
7287 | <desc>
|
---|
7288 | The current state of mouse buttons. Every bit represents
|
---|
7289 | a mouse button as follows:
|
---|
7290 | <table>
|
---|
7291 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
7292 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
7293 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
7294 | </table>
|
---|
7295 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
7296 | otherwise it is released.
|
---|
7297 | </desc>
|
---|
7298 | </param>
|
---|
7299 | </method>
|
---|
7300 |
|
---|
7301 | </interface>
|
---|
7302 |
|
---|
7303 | <!--
|
---|
7304 | // IDisplay
|
---|
7305 | /////////////////////////////////////////////////////////////////////////
|
---|
7306 | -->
|
---|
7307 |
|
---|
7308 | <enum
|
---|
7309 | name="FramebufferAccelerationOperation"
|
---|
7310 | uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
|
---|
7311 | >
|
---|
7312 | <desc>
|
---|
7313 | Framebuffer acceleration operation.
|
---|
7314 | </desc>
|
---|
7315 |
|
---|
7316 | <const name="SolidFillAcceleration" value="1"/>
|
---|
7317 | <const name="ScreenCopyAcceleration" value="2"/>
|
---|
7318 | </enum>
|
---|
7319 |
|
---|
7320 | <enum
|
---|
7321 | name="FramebufferPixelFormat"
|
---|
7322 | uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d"
|
---|
7323 | >
|
---|
7324 | <desc>
|
---|
7325 | Format of the video memory buffer. Constants represented by this enum can
|
---|
7326 | be used to test for particular values of <link
|
---|
7327 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
7328 | to="IFramebuffer::requestResize()"/>.
|
---|
7329 |
|
---|
7330 | See also www.fourcc.org for more informantion about FOURCC pixel formats.
|
---|
7331 | </desc>
|
---|
7332 |
|
---|
7333 | <const name="Opaque" value="0xFFFFFFFF">
|
---|
7334 | <desc>
|
---|
7335 | Unknown buffer format. The user may not assume any particular
|
---|
7336 | format of the buffer.
|
---|
7337 | </desc>
|
---|
7338 | </const>
|
---|
7339 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
7340 | <desc>
|
---|
7341 | Basic RGB format. <link to="IFramebuffer::bitsPerPixel"/> determines
|
---|
7342 | the bit layout.
|
---|
7343 | </desc>
|
---|
7344 | </const>
|
---|
7345 | </enum>
|
---|
7346 |
|
---|
7347 | <interface
|
---|
7348 | name="IFramebuffer" extends="$unknown"
|
---|
7349 | uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
|
---|
7350 | wsmap="suppress"
|
---|
7351 | >
|
---|
7352 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
7353 | <desc>Address of the start byte of the framebuffer.</desc>
|
---|
7354 | </attribute>
|
---|
7355 |
|
---|
7356 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
7357 | <desc>Framebuffer width, in pixels.</desc>
|
---|
7358 | </attribute>
|
---|
7359 |
|
---|
7360 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
7361 | <desc>Framebuffer height, in pixels.</desc>
|
---|
7362 | </attribute>
|
---|
7363 |
|
---|
7364 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
7365 | <desc>
|
---|
7366 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
7367 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
7368 | are: 8, 15, 16, 24 and 32.
|
---|
7369 | </desc>
|
---|
7370 | </attribute>
|
---|
7371 |
|
---|
7372 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
7373 | <desc>
|
---|
7374 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
7375 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
7376 | size of the scan line must be aligned to 32 bits.
|
---|
7377 | </desc>
|
---|
7378 | </attribute>
|
---|
7379 |
|
---|
7380 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
7381 | <desc>
|
---|
7382 | Framebuffer pixel format. It's either one of the values defined by <link
|
---|
7383 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
7384 | <note>
|
---|
7385 | This attribute must never return <link
|
---|
7386 | to="PixelFormat::Opaque"/> -- the format of the buffer
|
---|
7387 | <link to="#address"/> points to must be always known.
|
---|
7388 | </note>
|
---|
7389 | </desc>
|
---|
7390 | </attribute>
|
---|
7391 |
|
---|
7392 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
7393 | <desc>
|
---|
7394 | Defines whether this framebuffer uses the virtual video card's memory
|
---|
7395 | buffer (guest VRAM) directly or not. See <link
|
---|
7396 | to="IFramebuffer::requestResize()"/> for more information.
|
---|
7397 | </desc>
|
---|
7398 | </attribute>
|
---|
7399 |
|
---|
7400 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
7401 | <desc>
|
---|
7402 | Hint from the framebuffer about how much of the standard
|
---|
7403 | screen height it wants to use for itself. This information is
|
---|
7404 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
7405 | so that it can use it for determining its video mode table. It
|
---|
7406 | is not guaranteed that the guest respects the value.
|
---|
7407 | </desc>
|
---|
7408 | </attribute>
|
---|
7409 |
|
---|
7410 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
7411 | <desc>
|
---|
7412 | An alpha-blended overlay which is superposed over the framebuffer.
|
---|
7413 | The initial purpose is to allow the display of icons providing
|
---|
7414 | information about the VM state, including disk activity, in front
|
---|
7415 | ends which do not have other means of doing that. The overlay is
|
---|
7416 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
7417 | of its own, and any changes made to it are not guaranteed to be
|
---|
7418 | visible until the affected portion of IFramebuffer is updated. The
|
---|
7419 | overlay can be created lazily the first time it is requested. This
|
---|
7420 | attribute can also return NULL to signal that the overlay is not
|
---|
7421 | implemented.
|
---|
7422 | </desc>
|
---|
7423 | </attribute>
|
---|
7424 |
|
---|
7425 | <method name="lock">
|
---|
7426 | <desc>
|
---|
7427 | Locks the framebuffer.
|
---|
7428 | Gets called by the IDisplay object where this framebuffer is
|
---|
7429 | bound to.
|
---|
7430 | </desc>
|
---|
7431 | </method>
|
---|
7432 |
|
---|
7433 | <method name="unlock">
|
---|
7434 | <desc>
|
---|
7435 | Unlocks the framebuffer.
|
---|
7436 | Gets called by the IDisplay object where this framebuffer is
|
---|
7437 | bound to.
|
---|
7438 | </desc>
|
---|
7439 | </method>
|
---|
7440 |
|
---|
7441 | <method name="notifyUpdate">
|
---|
7442 | <desc>
|
---|
7443 | Informs about an update.
|
---|
7444 | Gets called by the display object where this buffer is
|
---|
7445 | registered.
|
---|
7446 | </desc>
|
---|
7447 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7448 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7449 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7450 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7451 | <param name="finished" type="boolean" dir="return"/>
|
---|
7452 | </method>
|
---|
7453 |
|
---|
7454 | <method name="requestResize">
|
---|
7455 | <desc>
|
---|
7456 | Requests a size and pixel format change.
|
---|
7457 |
|
---|
7458 | There are two modes of working with the video buffer of the virtual
|
---|
7459 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
7460 | implementation allocates a memory buffer for the requested display mode
|
---|
7461 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
7462 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
7463 | by the virtual machine. This buffer represents the video memory of the
|
---|
7464 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
7465 | usually faster because the implementation gets a raw pointer to the
|
---|
7466 | guest VRAM buffer which it can directly use for visualising the contents
|
---|
7467 | of the virtual display, as opposed to the indirect mode where the
|
---|
7468 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
7469 | the implementation every time a display update occurs.
|
---|
7470 |
|
---|
7471 | It is important to note that the direct mode is really fast only when
|
---|
7472 | the implementation uses the given guest VRAM buffer directly, for
|
---|
7473 | example, by blitting it to the window representing the virtual machine's
|
---|
7474 | display, which saves at least one copy operation comparing to the
|
---|
7475 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
7476 | always possible: the format and the color depth of this buffer may be
|
---|
7477 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
7478 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
7479 | the indirect mode (that is always available) should be used as a
|
---|
7480 | fallback: when the guest VRAM contents are copied to the
|
---|
7481 | implementation-provided memory buffer, color and format conversion is
|
---|
7482 | done authomatically by the underlying code.
|
---|
7483 |
|
---|
7484 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
7485 | available or not. If @a pixelFormat is <link
|
---|
7486 | to="PixelFormat::Opaque"/> then direct access to the guest
|
---|
7487 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
|
---|
7488 | bytesPerLine parameters must be ignored and the implementation must use
|
---|
7489 | the indirect mode (where it provides its own buffer in one of the
|
---|
7490 | supported formats). In all other cases, @a pixelFormat together with @a
|
---|
7491 | bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
7492 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
7493 | free to choose which mode to use. To indicate that this framebuffer uses
|
---|
7494 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
7495 | attribute must return <tt>true</tt> and <link to="#address"/> must
|
---|
7496 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
7497 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
7498 | chosen.
|
---|
7499 |
|
---|
7500 | The @a width and @a height parameters represent the size of the
|
---|
7501 | requested display mode in both modes. In case of indirect mode, the
|
---|
7502 | provided memory buffer should be big enough to store data of the given
|
---|
7503 | display mode. In case of direct mode, it is guaranteed that the given @a
|
---|
7504 | VRAM buffer contains enough space to represent the display mode of the
|
---|
7505 | given size. Note that this framebuffer's <link to="#width"/> and <link
|
---|
7506 | to="#height"/> attributes must return exactly the same values as
|
---|
7507 | passed to this method after the resize is completed (see below).
|
---|
7508 |
|
---|
7509 | The @a finished output parameter determines if the implementation has
|
---|
7510 | finished resizing the framebuffer or not. If, for some reason, the
|
---|
7511 | resize cannot be finished immediately during this call, @a finished
|
---|
7512 | must be set to @c false, and the implementation must call
|
---|
7513 | <link to="IDisplay::resizeCompleted()"/> after it has returned from
|
---|
7514 | this method as soon as possible. If @a finished is @c false, the
|
---|
7515 | machine will not call any framebuffer methods until
|
---|
7516 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
7517 |
|
---|
7518 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
7519 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
7520 | this framebuffer must return exactly the same values as specified in the
|
---|
7521 | parameters of this method, after the resize is completed. If the
|
---|
7522 | indirect mode is chosen, these attributes must return values describing
|
---|
7523 | the format of the implementation's own memory buffer <link
|
---|
7524 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
7525 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
7526 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
7527 | to="PixelFormat::Opaque"/> regardless of the selected mode.
|
---|
7528 |
|
---|
7529 | <note>
|
---|
7530 | This method is called by the IDisplay object under the
|
---|
7531 | <link to="#lock()"/> provided by this IFramebuffer
|
---|
7532 | implementation. If this method returns @c false in @a finished, then
|
---|
7533 | this lock is not released until
|
---|
7534 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
7535 | </note>
|
---|
7536 | </desc>
|
---|
7537 | <param name="screenId" type="unsigned long" dir="in">
|
---|
7538 | <desc>
|
---|
7539 | Logical screen number. Must be used in the corresponding call to
|
---|
7540 | <link to="IDisplay::resizeCompleted()"/> if this call is made.
|
---|
7541 | </desc>
|
---|
7542 | </param>
|
---|
7543 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
7544 | <desc>
|
---|
7545 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
7546 | See also <link to="FramebufferPixelFormat"/>.
|
---|
7547 | </desc>
|
---|
7548 | </param>
|
---|
7549 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
7550 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
7551 | </param>
|
---|
7552 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
7553 | <desc>Color depth, bits per pixel.</desc>
|
---|
7554 | </param>
|
---|
7555 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
7556 | <desc>Size of one scan line, in bytes.</desc>
|
---|
7557 | </param>
|
---|
7558 | <param name="width" type="unsigned long" dir="in">
|
---|
7559 | <desc>Width of the guest display, in pixels.</desc>
|
---|
7560 | </param>
|
---|
7561 | <param name="height" type="unsigned long" dir="in">
|
---|
7562 | <desc>Height of the guest display, in pixels.</desc>
|
---|
7563 | </param>
|
---|
7564 | <param name="finished" type="boolean" dir="return">
|
---|
7565 | <desc>
|
---|
7566 | Can the VM start using the new framebuffer immediately
|
---|
7567 | after this method returns or it should wait for
|
---|
7568 | <link to="IDisplay::resizeCompleted()"/>.
|
---|
7569 | </desc>
|
---|
7570 | </param>
|
---|
7571 | </method>
|
---|
7572 |
|
---|
7573 | <method name="operationSupported">
|
---|
7574 | <desc>
|
---|
7575 | Returns whether the given acceleration operation is supported
|
---|
7576 | by the IFramebuffer implementation. If not, the display object
|
---|
7577 | will not attempt to call the corresponding IFramebuffer entry
|
---|
7578 | point. Even if an operation is indicated to supported, the
|
---|
7579 | IFramebuffer implementation always has the option to return non
|
---|
7580 | supported from the corresponding acceleration method in which
|
---|
7581 | case the operation will be performed by the display engine. This
|
---|
7582 | allows for reduced IFramebuffer implementation complexity where
|
---|
7583 | only common cases are handled.
|
---|
7584 | </desc>
|
---|
7585 | <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
|
---|
7586 | <param name="supported" type="boolean" dir="return"/>
|
---|
7587 | </method>
|
---|
7588 |
|
---|
7589 | <method name="videoModeSupported">
|
---|
7590 | <desc>
|
---|
7591 | Returns whether the framebuffer implementation is willing to
|
---|
7592 | support a given video mode. In case it is not able to render
|
---|
7593 | the video mode (or for some reason not willing), it should
|
---|
7594 | return false. Usually this method is called when the guest
|
---|
7595 | asks the VMM device whether a given video mode is supported
|
---|
7596 | so the information returned is directly exposed to the guest.
|
---|
7597 | It is important that this method returns very quickly.
|
---|
7598 | </desc>
|
---|
7599 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7600 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7601 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
7602 | <param name="supported" type="boolean" dir="return"/>
|
---|
7603 | </method>
|
---|
7604 |
|
---|
7605 | <method name="solidFill">
|
---|
7606 | <desc>
|
---|
7607 | Fills the specified rectangle on screen with a solid color.
|
---|
7608 | </desc>
|
---|
7609 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7610 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7611 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7612 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7613 | <param name="color" type="unsigned long" dir="in"/>
|
---|
7614 | <param name="handled" type="boolean" dir="return"/>
|
---|
7615 | </method>
|
---|
7616 |
|
---|
7617 | <method name="copyScreenBits">
|
---|
7618 | <desc>
|
---|
7619 | Copies specified rectangle on the screen.
|
---|
7620 | </desc>
|
---|
7621 | <param name="xDst" type="unsigned long" dir="in"/>
|
---|
7622 | <param name="yDst" type="unsigned long" dir="in"/>
|
---|
7623 | <param name="xSrc" type="unsigned long" dir="in"/>
|
---|
7624 | <param name="ySrc" type="unsigned long" dir="in"/>
|
---|
7625 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7626 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7627 | <param name="handled" type="boolean" dir="return"/>
|
---|
7628 | </method>
|
---|
7629 |
|
---|
7630 | <method name="getVisibleRegion">
|
---|
7631 | <desc>
|
---|
7632 | Returns the visible region of this framebuffer.
|
---|
7633 |
|
---|
7634 | If the @a rectangles parameter is <tt>NULL</tt> then the value of the
|
---|
7635 | @a count parameter is ignored and the number of elements necessary to
|
---|
7636 | describe the current visible region is returned in @a countCopied.
|
---|
7637 |
|
---|
7638 | If @a rectangles is not <tt>NULL</tt> but @a count is less
|
---|
7639 | than the required number of elements to store region data, the method
|
---|
7640 | will report a failure. If @a count is equal or greater than the
|
---|
7641 | required number of elements, then the actual number of elements copied
|
---|
7642 | to the provided array will be returned in @a countCopied.
|
---|
7643 |
|
---|
7644 | <note>
|
---|
7645 | The address of the provided array must be in the process space of
|
---|
7646 | this IFramebuffer object.
|
---|
7647 | </note>
|
---|
7648 | </desc>
|
---|
7649 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
7650 | <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
|
---|
7651 | </param>
|
---|
7652 | <param name="count" type="unsigned long" dir="in">
|
---|
7653 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
7654 | </param>
|
---|
7655 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
7656 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
7657 | </param>
|
---|
7658 | </method>
|
---|
7659 |
|
---|
7660 | <method name="setVisibleRegion">
|
---|
7661 | <desc>
|
---|
7662 | Suggests a new visible region to this framebuffer. This region
|
---|
7663 | represents the area of the VM display which is a union of regions of
|
---|
7664 | all top-level windows of the guest operating system running inside the
|
---|
7665 | VM (if the Guest Additions for this system support this
|
---|
7666 | functionality). This information may be used by the frontends to
|
---|
7667 | implement the seamless desktop integration feature.
|
---|
7668 |
|
---|
7669 | <note>
|
---|
7670 | The address of the provided array must be in the process space of
|
---|
7671 | this IFramebuffer object.
|
---|
7672 | </note>
|
---|
7673 | <note>
|
---|
7674 | The IFramebuffer implementation must make a copy of the provided
|
---|
7675 | array of rectangles.
|
---|
7676 | </note>
|
---|
7677 | </desc>
|
---|
7678 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
7679 | <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
|
---|
7680 | </param>
|
---|
7681 | <param name="count" type="unsigned long" dir="in">
|
---|
7682 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
7683 | </param>
|
---|
7684 | </method>
|
---|
7685 |
|
---|
7686 | </interface>
|
---|
7687 |
|
---|
7688 | <interface
|
---|
7689 | name="IFramebufferOverlay" extends="IFrameBuffer"
|
---|
7690 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
7691 | wsmap="suppress"
|
---|
7692 | >
|
---|
7693 | <desc>
|
---|
7694 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
7695 | for displaying status icons above an IFramebuffer. It is always created
|
---|
7696 | not visible, so that it must be explicitly shown. It only covers a
|
---|
7697 | portion of the IFramebuffer, determined by its width, height and
|
---|
7698 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
7699 | that order) format, and may be written to directly. Do re-read the
|
---|
7700 | width though, after setting it, as it may be adjusted (increased) to
|
---|
7701 | make it more suitable for the front end.
|
---|
7702 | </desc>
|
---|
7703 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
7704 | <desc>X position of the overlay, relative to the framebuffer.</desc>
|
---|
7705 | </attribute>
|
---|
7706 |
|
---|
7707 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
7708 | <desc>Y position of the overlay, relative to the framebuffer.</desc>
|
---|
7709 | </attribute>
|
---|
7710 |
|
---|
7711 | <attribute name="visible" type="boolean" readonly="no">
|
---|
7712 | <desc>
|
---|
7713 | Whether the overlay is currently visible.
|
---|
7714 | </desc>
|
---|
7715 | </attribute>
|
---|
7716 |
|
---|
7717 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
7718 | <desc>
|
---|
7719 | The global alpha value for the overlay. This may or may not be
|
---|
7720 | supported by a given front end.
|
---|
7721 | </desc>
|
---|
7722 | </attribute>
|
---|
7723 |
|
---|
7724 | <method name="move">
|
---|
7725 | <desc>
|
---|
7726 | Changes the overlay's position relative to the IFramebuffer.
|
---|
7727 | </desc>
|
---|
7728 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7729 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7730 | </method>
|
---|
7731 |
|
---|
7732 | </interface>
|
---|
7733 |
|
---|
7734 | <interface
|
---|
7735 | name="IDisplay" extends="$unknown"
|
---|
7736 | uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
|
---|
7737 | wsmap="suppress"
|
---|
7738 | >
|
---|
7739 | <desc>
|
---|
7740 | The IDisplay interface represents the virtual machine's display.
|
---|
7741 |
|
---|
7742 | The object implementing this interface is contained in each
|
---|
7743 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
7744 | output of the virtual machine.
|
---|
7745 |
|
---|
7746 | The virtual display supports pluggable output targets represented by the
|
---|
7747 | IFramebuffer interface. Examples of the output target are a window on
|
---|
7748 | the host computer or an RDP sessoin's display on a remote computer.
|
---|
7749 | </desc>
|
---|
7750 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
7751 | <desc>Current display width.</desc>
|
---|
7752 | </attribute>
|
---|
7753 |
|
---|
7754 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
7755 | <desc>Current display height.</desc>
|
---|
7756 | </attribute>
|
---|
7757 |
|
---|
7758 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
7759 | <desc>
|
---|
7760 | Current guest display color depth. Note that this may differ
|
---|
7761 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
7762 | </desc>
|
---|
7763 | </attribute>
|
---|
7764 |
|
---|
7765 | <method name="setupInternalFramebuffer">
|
---|
7766 | <desc>
|
---|
7767 | Prepares an internally managed framebuffer.
|
---|
7768 | </desc>
|
---|
7769 | <param name="depth" type="unsigned long" dir="in"/>
|
---|
7770 | </method>
|
---|
7771 |
|
---|
7772 | <method name="lockFramebuffer">
|
---|
7773 | <desc>
|
---|
7774 | Requests access to the internal framebuffer.
|
---|
7775 | </desc>
|
---|
7776 | <param name="address" type="octet" mod="ptr" dir="return"/>
|
---|
7777 | </method>
|
---|
7778 |
|
---|
7779 | <method name="unlockFramebuffer">
|
---|
7780 | <desc>
|
---|
7781 | Releases access to the internal framebuffer.
|
---|
7782 | </desc>
|
---|
7783 | </method>
|
---|
7784 |
|
---|
7785 | <method name="registerExternalFramebuffer">
|
---|
7786 | <desc>
|
---|
7787 | Registers an external framebuffer.
|
---|
7788 | </desc>
|
---|
7789 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
7790 | </method>
|
---|
7791 |
|
---|
7792 | <method name="setFramebuffer">
|
---|
7793 | <desc>
|
---|
7794 | Sets the framebuffer for given screen.
|
---|
7795 | </desc>
|
---|
7796 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
7797 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
7798 | </method>
|
---|
7799 |
|
---|
7800 | <method name="getFramebuffer">
|
---|
7801 | <desc>
|
---|
7802 | Queries the framebuffer for given screen.
|
---|
7803 | </desc>
|
---|
7804 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
7805 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
7806 | <param name="xOrigin" type="long" dir="out"/>
|
---|
7807 | <param name="yOrigin" type="long" dir="out"/>
|
---|
7808 | </method>
|
---|
7809 |
|
---|
7810 | <method name="setVideoModeHint">
|
---|
7811 | <desc>
|
---|
7812 | Asks VirtualBox to request the given video mode from
|
---|
7813 | the guest. This is just a hint and it cannot be guaranteed
|
---|
7814 | that the requested resolution will be used. Guest Additions
|
---|
7815 | are required for the request to be seen by guests. The caller
|
---|
7816 | should issue the request and wait for a resolution change and
|
---|
7817 | after a timeout retry.
|
---|
7818 |
|
---|
7819 | Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
|
---|
7820 | parameters means that the corresponding values should be taken from the
|
---|
7821 | current video mode (i.e. left unchanged).
|
---|
7822 |
|
---|
7823 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
7824 | parameter specifies the number of the guest display to send the hint to:
|
---|
7825 | <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
|
---|
7826 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
7827 | must be <tt>0</tt>.
|
---|
7828 |
|
---|
7829 | </desc>
|
---|
7830 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7831 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7832 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
7833 | <param name="display" type="unsigned long" dir="in"/>
|
---|
7834 | </method>
|
---|
7835 |
|
---|
7836 | <method name="setSeamlessMode">
|
---|
7837 | <desc>
|
---|
7838 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
7839 | integration) mode.
|
---|
7840 | <note>
|
---|
7841 | Calling this method has no effect if <link
|
---|
7842 | to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
|
---|
7843 | </note>
|
---|
7844 | </desc>
|
---|
7845 | <param name="enabled" type="boolean" dir="in"/>
|
---|
7846 | </method>
|
---|
7847 |
|
---|
7848 | <method name="takeScreenShot">
|
---|
7849 | <desc>
|
---|
7850 | Takes a screen shot of the requested size and copies it to the
|
---|
7851 | 32-bpp buffer allocated by the caller.
|
---|
7852 | </desc>
|
---|
7853 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
7854 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7855 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7856 | </method>
|
---|
7857 |
|
---|
7858 | <method name="drawToScreen">
|
---|
7859 | <desc>
|
---|
7860 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
7861 | to the given point on the VM display.
|
---|
7862 | </desc>
|
---|
7863 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
7864 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7865 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7866 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7867 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7868 | </method>
|
---|
7869 |
|
---|
7870 | <method name="invalidateAndUpdate">
|
---|
7871 | <desc>
|
---|
7872 | Does a full invalidation of the VM display and instructs the VM
|
---|
7873 | to update it.
|
---|
7874 | </desc>
|
---|
7875 | </method>
|
---|
7876 |
|
---|
7877 | <method name="resizeCompleted">
|
---|
7878 | <desc>
|
---|
7879 | Signals that a framebuffer has completed the resize operation.
|
---|
7880 | </desc>
|
---|
7881 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
7882 | </method>
|
---|
7883 |
|
---|
7884 | <method name="updateCompleted">
|
---|
7885 | <desc>
|
---|
7886 | Signals that a framebuffer has completed the update operation.
|
---|
7887 | </desc>
|
---|
7888 | </method>
|
---|
7889 |
|
---|
7890 | </interface>
|
---|
7891 |
|
---|
7892 | <!--
|
---|
7893 | // INetworkAdapter
|
---|
7894 | /////////////////////////////////////////////////////////////////////////
|
---|
7895 | -->
|
---|
7896 |
|
---|
7897 | <enum
|
---|
7898 | name="NetworkAttachmentType"
|
---|
7899 | uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
|
---|
7900 | >
|
---|
7901 | <desc>
|
---|
7902 | Network attachment type.
|
---|
7903 | </desc>
|
---|
7904 |
|
---|
7905 | <const name="Null" value="0">
|
---|
7906 | <desc><tt>null</tt> value. Also means "not attached".</desc>
|
---|
7907 | </const>
|
---|
7908 | <const name="NAT" value="1"/>
|
---|
7909 | <const name="HostInterface" value="2"/>
|
---|
7910 | <const name="Internal" value="3"/>
|
---|
7911 | </enum>
|
---|
7912 |
|
---|
7913 | <enum
|
---|
7914 | name="NetworkAdapterType"
|
---|
7915 | uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
|
---|
7916 | >
|
---|
7917 | <desc>
|
---|
7918 | Network adapter type.
|
---|
7919 | </desc>
|
---|
7920 |
|
---|
7921 | <const name="Null" value="0">
|
---|
7922 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
7923 | </const>
|
---|
7924 | <const name="Am79C970A" value="1"/>
|
---|
7925 | <const name="Am79C973" value="2"/>
|
---|
7926 | <const name="I82540EM" value="3"/>
|
---|
7927 | </enum>
|
---|
7928 |
|
---|
7929 | <interface
|
---|
7930 | name="INetworkAdapter" extends="$unknown"
|
---|
7931 | uuid="78dfc978-ecb0-44ee-8b20-54549dd4539e"
|
---|
7932 | wsmap="managed"
|
---|
7933 | >
|
---|
7934 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
7935 | <desc>
|
---|
7936 | Type of the virtual network adapter. Depending on this value,
|
---|
7937 | VirtualBox will provide a different virtual network hardware
|
---|
7938 | to the guest.
|
---|
7939 | </desc>
|
---|
7940 | </attribute>
|
---|
7941 |
|
---|
7942 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
7943 | <desc>
|
---|
7944 | Slot number this adapter is plugged into. Corresponds to
|
---|
7945 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
7946 | to obtain this instance.
|
---|
7947 | </desc>
|
---|
7948 | </attribute>
|
---|
7949 |
|
---|
7950 | <attribute name="enabled" type="boolean">
|
---|
7951 | <desc>
|
---|
7952 | Flag whether the network adapter is present in the
|
---|
7953 | guest system. If disabled, the virtual guest hardware will
|
---|
7954 | not contain this network adapter. Can only be changed when
|
---|
7955 | the VM is not running.
|
---|
7956 | </desc>
|
---|
7957 | </attribute>
|
---|
7958 |
|
---|
7959 | <attribute name="MACAddress" type="wstring">
|
---|
7960 | <desc>
|
---|
7961 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
7962 | it to NULL, VirtualBox will generate a unique MAC address.
|
---|
7963 | </desc>
|
---|
7964 | </attribute>
|
---|
7965 |
|
---|
7966 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
7967 |
|
---|
7968 | <attribute name="hostInterface" type="wstring">
|
---|
7969 | <desc>
|
---|
7970 | Name of the Host Network Interface that is currently in use. NULL will be returned
|
---|
7971 | if no device has been allocated. On Linux, setting this refers to a permanent TAP
|
---|
7972 | device. However, a file descriptor has precedence over the interface name on Linux.
|
---|
7973 | Note that when VBox allocates a TAP device, this property will not be set, i.e. the
|
---|
7974 | interface name would have to be determined using the file descriptor and /proc/self/fd.
|
---|
7975 | </desc>
|
---|
7976 | </attribute>
|
---|
7977 |
|
---|
7978 | <if target="xpidl">
|
---|
7979 | <attribute name="TAPFileDescriptor" type="long">
|
---|
7980 | <desc>
|
---|
7981 | File descriptor of the TAP device. It can either be setup by the caller
|
---|
7982 | which has to supply an existing valid file handle allocated in the parent
|
---|
7983 | process of the VM process or allocated by VirtualBox. The value is -1 if it
|
---|
7984 | has not been defined. This property is non persistent, i.e. it will not be
|
---|
7985 | stored in the VM's configuration data and thus has to be set at each startup.
|
---|
7986 | </desc>
|
---|
7987 | </attribute>
|
---|
7988 | <attribute name="TAPSetupApplication" type="wstring">
|
---|
7989 | <desc>
|
---|
7990 | Application to start to configure the TAP device.
|
---|
7991 | It is being passed two parameters, 1) the file handle (as ascii),
|
---|
7992 | 2) the TAP device name if it is available.
|
---|
7993 | </desc>
|
---|
7994 | </attribute>
|
---|
7995 | <attribute name="TAPTerminateApplication" type="wstring">
|
---|
7996 | <desc>
|
---|
7997 | Application to start before closing a TAP device.
|
---|
7998 | It is being passed two parameters, 1) the file handle (as ascii),
|
---|
7999 | 2) the TAP device name if it is available.
|
---|
8000 | </desc>
|
---|
8001 | </attribute>
|
---|
8002 | </if>
|
---|
8003 |
|
---|
8004 | <attribute name="internalNetwork" type="wstring">
|
---|
8005 | <desc>
|
---|
8006 | Name of the internal network the VM is attached to.
|
---|
8007 | </desc>
|
---|
8008 | </attribute>
|
---|
8009 |
|
---|
8010 | <attribute name="cableConnected" type="boolean">
|
---|
8011 | <desc>
|
---|
8012 | Flag whether the adapter reports the cable as connected or not.
|
---|
8013 | It can be used to report offline situations to a VM.
|
---|
8014 | </desc>
|
---|
8015 | </attribute>
|
---|
8016 |
|
---|
8017 | <attribute name="lineSpeed" type="unsigned long">
|
---|
8018 | <desc>
|
---|
8019 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
8020 | </desc>
|
---|
8021 | </attribute>
|
---|
8022 |
|
---|
8023 | <attribute name="traceEnabled" type="boolean">
|
---|
8024 | <desc>
|
---|
8025 | Flag whether network traffic from/to the network card should be traced.
|
---|
8026 | Can only be toggled when the VM is turned off.
|
---|
8027 | </desc>
|
---|
8028 | </attribute>
|
---|
8029 |
|
---|
8030 | <attribute name="traceFile" type="wstring">
|
---|
8031 | <desc>
|
---|
8032 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
8033 | will be used.
|
---|
8034 | </desc>
|
---|
8035 | </attribute>
|
---|
8036 |
|
---|
8037 | <method name="attachToNAT">
|
---|
8038 | <desc>
|
---|
8039 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
8040 | </desc>
|
---|
8041 | </method>
|
---|
8042 |
|
---|
8043 | <method name="attachToHostInterface">
|
---|
8044 | <desc>
|
---|
8045 | Attach the network adapter to a host interface. On Linux, the TAP
|
---|
8046 | setup application will be executed if configured and unless a device
|
---|
8047 | name and/or file descriptor has been set, a new TAP interface will be
|
---|
8048 | created.
|
---|
8049 | </desc>
|
---|
8050 | </method>
|
---|
8051 |
|
---|
8052 | <method name="attachToInternalNetwork">
|
---|
8053 | <desc>
|
---|
8054 | Attach the network adapter to an internal network.
|
---|
8055 | </desc>
|
---|
8056 | </method>
|
---|
8057 |
|
---|
8058 | <method name="detach">
|
---|
8059 | <desc>
|
---|
8060 | Detach the network adapter
|
---|
8061 | </desc>
|
---|
8062 | </method>
|
---|
8063 | </interface>
|
---|
8064 |
|
---|
8065 |
|
---|
8066 | <!--
|
---|
8067 | // ISerialPort
|
---|
8068 | /////////////////////////////////////////////////////////////////////////
|
---|
8069 | -->
|
---|
8070 |
|
---|
8071 | <enum
|
---|
8072 | name="PortMode"
|
---|
8073 | uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
|
---|
8074 | >
|
---|
8075 | <desc>
|
---|
8076 | The PortMode enumeration represents possible communicaton modes for
|
---|
8077 | the virtual serial port device.
|
---|
8078 | </desc>
|
---|
8079 |
|
---|
8080 | <const name="Disconnected" value="0">
|
---|
8081 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
8082 | </const>
|
---|
8083 | <const name="HostPipe" value="1">
|
---|
8084 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
8085 | </const>
|
---|
8086 | <const name="HostDevice" value="2">
|
---|
8087 | <desc>Virtual device is attached to a host device.</desc>
|
---|
8088 | </const>
|
---|
8089 | </enum>
|
---|
8090 |
|
---|
8091 | <interface
|
---|
8092 | name="ISerialPort" extends="$unknown"
|
---|
8093 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
8094 | wsmap="managed"
|
---|
8095 | >
|
---|
8096 |
|
---|
8097 | <desc>
|
---|
8098 | The ISerialPort interface represents the virtual serial port device.
|
---|
8099 |
|
---|
8100 | The virtual serial port device acts like an ordinary serial port
|
---|
8101 | inside the virtual machine. This device communicates to the real
|
---|
8102 | serial port hardware in one of two modes: host pipe or host device.
|
---|
8103 |
|
---|
8104 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
8105 | the host computer that represents a serial port. The #server attribute
|
---|
8106 | determines if this pipe is created by the virtual machine process at
|
---|
8107 | machine startup or it must already exist before starting machine
|
---|
8108 | execution.
|
---|
8109 |
|
---|
8110 | In host device mode, the #path attribute specifies the name of the
|
---|
8111 | serial port device on the host computer.
|
---|
8112 |
|
---|
8113 | There is also a third communication mode: the disconnected mode. In this
|
---|
8114 | mode, the guest OS running inside the virtual machine will be able to
|
---|
8115 | detect the serial port, but all port write operations will be discarded
|
---|
8116 | and all port read operations will return no data.
|
---|
8117 |
|
---|
8118 | <see>IMachine::getSerialPort</see>
|
---|
8119 | </desc>
|
---|
8120 |
|
---|
8121 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
8122 | <desc>
|
---|
8123 | Slot number this serial port is plugged into. Corresponds to
|
---|
8124 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
8125 | to obtain this instance.
|
---|
8126 | </desc>
|
---|
8127 | </attribute>
|
---|
8128 |
|
---|
8129 | <attribute name="enabled" type="boolean">
|
---|
8130 | <desc>
|
---|
8131 | Flag whether the serial port is enabled. If disabled,
|
---|
8132 | the serial port will not be reported to the guest OS.
|
---|
8133 | </desc>
|
---|
8134 | </attribute>
|
---|
8135 |
|
---|
8136 | <attribute name="IOBase" type="unsigned long">
|
---|
8137 | <desc>Base I/O address of the serial port.</desc>
|
---|
8138 | </attribute>
|
---|
8139 |
|
---|
8140 | <attribute name="IRQ" type="unsigned long">
|
---|
8141 | <desc>IRQ number of the serial port.</desc>
|
---|
8142 | </attribute>
|
---|
8143 |
|
---|
8144 | <attribute name="hostMode" type="PortMode">
|
---|
8145 | <desc>How is this port connected to the host.</desc>
|
---|
8146 | </attribute>
|
---|
8147 |
|
---|
8148 | <attribute name="server" type="boolean">
|
---|
8149 | <desc>
|
---|
8150 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
8151 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
8152 | used only when #hostMode is PortMode::HostPipePort.
|
---|
8153 | </desc>
|
---|
8154 | </attribute>
|
---|
8155 |
|
---|
8156 | <attribute name="path" type="wstring">
|
---|
8157 | <desc>
|
---|
8158 | Path to the serial port's pipe on the host when #hostMode is
|
---|
8159 | PortMode::HostPipePort, or the host serial device name when #hostMode
|
---|
8160 | is PortMode::HostDevicePort. In either of the above cases, setting a
|
---|
8161 | @c null or an empty string as the attribute's value will result into
|
---|
8162 | an error. Otherwise, the value of this property is ignored.
|
---|
8163 | </desc>
|
---|
8164 | </attribute>
|
---|
8165 |
|
---|
8166 | </interface>
|
---|
8167 |
|
---|
8168 | <!--
|
---|
8169 | // IParallelPort
|
---|
8170 | /////////////////////////////////////////////////////////////////////////
|
---|
8171 | -->
|
---|
8172 |
|
---|
8173 | <interface
|
---|
8174 | name="IParallelPort" extends="$unknown"
|
---|
8175 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
8176 | wsmap="managed"
|
---|
8177 | >
|
---|
8178 |
|
---|
8179 | <desc>
|
---|
8180 | The IParallelPort interface represents the virtual parallel port device.
|
---|
8181 |
|
---|
8182 | The virtual parallel port device acts like an ordinary parallel port
|
---|
8183 | inside the virtual machine. This device communicates to the real
|
---|
8184 | parallel port hardware using the name of the parallel device on the host
|
---|
8185 | computer specified in the #path attribute.
|
---|
8186 |
|
---|
8187 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
8188 | IRQ number that will be reported to the guest operating system and used
|
---|
8189 | to operate the given parallel port from within the virtual machine.
|
---|
8190 |
|
---|
8191 | <see>IMachine::getParallelPort</see>
|
---|
8192 | </desc>
|
---|
8193 |
|
---|
8194 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
8195 | <desc>
|
---|
8196 | Slot number this parallel port is plugged into. Corresponds to
|
---|
8197 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
8198 | to obtain this instance.
|
---|
8199 | </desc>
|
---|
8200 | </attribute>
|
---|
8201 |
|
---|
8202 | <attribute name="enabled" type="boolean">
|
---|
8203 | <desc>
|
---|
8204 | Flag whether the parallel port is enabled. If disabled,
|
---|
8205 | the parallel port will not be reported to the guest OS.
|
---|
8206 | </desc>
|
---|
8207 | </attribute>
|
---|
8208 |
|
---|
8209 | <attribute name="IOBase" type="unsigned long">
|
---|
8210 | <desc>Base I/O address of the parallel port.</desc>
|
---|
8211 | </attribute>
|
---|
8212 |
|
---|
8213 | <attribute name="IRQ" type="unsigned long">
|
---|
8214 | <desc>IRQ number of the parallel port.</desc>
|
---|
8215 | </attribute>
|
---|
8216 |
|
---|
8217 | <attribute name="path" type="wstring">
|
---|
8218 | <desc>
|
---|
8219 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
8220 | @c null or an empty string as this attribute's value will result into
|
---|
8221 | an error.
|
---|
8222 | </desc>
|
---|
8223 | </attribute>
|
---|
8224 |
|
---|
8225 | </interface>
|
---|
8226 |
|
---|
8227 |
|
---|
8228 | <!--
|
---|
8229 | // IMachineDebugger
|
---|
8230 | /////////////////////////////////////////////////////////////////////////
|
---|
8231 | -->
|
---|
8232 |
|
---|
8233 | <interface
|
---|
8234 | name="IMachineDebugger" extends="$unknown"
|
---|
8235 | uuid="b3a02721-556a-4481-9d47-052a3f8cff90"
|
---|
8236 | wsmap="suppress"
|
---|
8237 | >
|
---|
8238 | <method name="resetStats">
|
---|
8239 | <desc>
|
---|
8240 | Reset VM statistics.
|
---|
8241 | </desc>
|
---|
8242 | <param name="pattern" type="wstring" dir="in">
|
---|
8243 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
8244 | </param>
|
---|
8245 | </method>
|
---|
8246 |
|
---|
8247 | <method name="dumpStats">
|
---|
8248 | <desc>
|
---|
8249 | Dumps VM statistics.
|
---|
8250 | </desc>
|
---|
8251 | <param name="pattern" type="wstring" dir="in">
|
---|
8252 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
8253 | </param>
|
---|
8254 | </method>
|
---|
8255 |
|
---|
8256 | <method name="getStats">
|
---|
8257 | <desc>
|
---|
8258 | Get the VM statistics in a XMLish format.
|
---|
8259 | </desc>
|
---|
8260 | <param name="pattern" type="wstring" dir="in">
|
---|
8261 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
8262 | </param>
|
---|
8263 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
8264 | <desc>Whether to include the descriptions.</desc>
|
---|
8265 | </param>
|
---|
8266 | <param name="stats" type="wstring" dir="out">
|
---|
8267 | <desc>The XML document containing the statistics.</desc>
|
---|
8268 | </param>
|
---|
8269 | </method>
|
---|
8270 |
|
---|
8271 | <attribute name="singlestep" type="boolean">
|
---|
8272 | <desc>Switch for enabling singlestepping.</desc>
|
---|
8273 | </attribute>
|
---|
8274 |
|
---|
8275 | <attribute name="recompileUser" type="boolean">
|
---|
8276 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
8277 | </attribute>
|
---|
8278 |
|
---|
8279 | <attribute name="recompileSupervisor" type="boolean">
|
---|
8280 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
8281 | </attribute>
|
---|
8282 |
|
---|
8283 | <attribute name="PATMEnabled" type="boolean">
|
---|
8284 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
8285 | </attribute>
|
---|
8286 |
|
---|
8287 | <attribute name="CSAMEnabled" type="boolean">
|
---|
8288 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
8289 | </attribute>
|
---|
8290 |
|
---|
8291 | <attribute name="logEnabled" type="boolean">
|
---|
8292 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
8293 | </attribute>
|
---|
8294 |
|
---|
8295 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
8296 | <desc>
|
---|
8297 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
8298 | virtualization extensions
|
---|
8299 | </desc>
|
---|
8300 | </attribute>
|
---|
8301 |
|
---|
8302 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
8303 | <desc>
|
---|
8304 | The rate at which the virtual time runs expressed as a percentage.
|
---|
8305 | The accepted range is 2% to 20000%.
|
---|
8306 | </desc>
|
---|
8307 | </attribute>
|
---|
8308 |
|
---|
8309 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
8310 |
|
---|
8311 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
8312 | <desc>
|
---|
8313 | Gets the VM handle. This is only for internal use while
|
---|
8314 | we carve the details of this interface.
|
---|
8315 | </desc>
|
---|
8316 | </attribute>
|
---|
8317 |
|
---|
8318 | </interface>
|
---|
8319 |
|
---|
8320 | <!--
|
---|
8321 | // IUSBController
|
---|
8322 | /////////////////////////////////////////////////////////////////////////
|
---|
8323 | -->
|
---|
8324 |
|
---|
8325 | <interface
|
---|
8326 | name="IUSBController" extends="$unknown"
|
---|
8327 | uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
|
---|
8328 | wsmap="managed"
|
---|
8329 | >
|
---|
8330 | <attribute name="enabled" type="boolean">
|
---|
8331 | <desc>
|
---|
8332 | Flag whether the USB controller is present in the
|
---|
8333 | guest system. If disabled, the virtual guest hardware will
|
---|
8334 | not contain any USB controller. Can only be changed when
|
---|
8335 | the VM is powered off.
|
---|
8336 | </desc>
|
---|
8337 | </attribute>
|
---|
8338 |
|
---|
8339 | <attribute name="enabledEhci" type="boolean">
|
---|
8340 | <desc>
|
---|
8341 | Flag whether the USB EHCI controller is present in the
|
---|
8342 | guest system. If disabled, the virtual guest hardware will
|
---|
8343 | not contain a USB EHCI controller. Can only be changed when
|
---|
8344 | the VM is powered off.
|
---|
8345 | </desc>
|
---|
8346 | </attribute>
|
---|
8347 |
|
---|
8348 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
8349 | <desc>
|
---|
8350 | USB standard version which the controller implements.
|
---|
8351 | This is a BCD which means that the major version is in the
|
---|
8352 | high byte and minor version is in the low byte.
|
---|
8353 | </desc>
|
---|
8354 | </attribute>
|
---|
8355 |
|
---|
8356 | <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
|
---|
8357 | <desc>
|
---|
8358 | List of USB device filters associated with the machine.
|
---|
8359 |
|
---|
8360 | If the machine is currently running, these filters are activated
|
---|
8361 | every time a new (supported) USB device is attached to the host
|
---|
8362 | computer that was not ignored by global filters
|
---|
8363 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
8364 |
|
---|
8365 | These filters are also activated when the machine is powered up.
|
---|
8366 | They are run against a list of all currently available USB
|
---|
8367 | devices (in states
|
---|
8368 | <link to="USBDeviceState::Available">Available</link>,
|
---|
8369 | <link to="USBDeviceState::Busy">Busy</link>,
|
---|
8370 | <link to="USBDeviceState::Held">Held</link>) that were not previously
|
---|
8371 | ignored by global filters.
|
---|
8372 |
|
---|
8373 | If at least one filter matches the USB device in question, this
|
---|
8374 | device is automatically captured (attached to) the virtual USB
|
---|
8375 | controller of this machine.
|
---|
8376 |
|
---|
8377 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
8378 | </desc>
|
---|
8379 | </attribute>
|
---|
8380 |
|
---|
8381 | <method name="createDeviceFilter">
|
---|
8382 | <desc>
|
---|
8383 | Creates a new USB device filter. All attributes except
|
---|
8384 | the filter name are set to <tt>null</tt> (any match),
|
---|
8385 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
8386 |
|
---|
8387 | The created filter can then be added to the list of filters using
|
---|
8388 | <link to="#insertDeviceFilter()"/>.
|
---|
8389 |
|
---|
8390 | <see>#deviceFilters</see>
|
---|
8391 | </desc>
|
---|
8392 | <param name="name" type="wstring" dir="in">
|
---|
8393 | <desc>
|
---|
8394 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
8395 | for more info.
|
---|
8396 | </desc>
|
---|
8397 | </param>
|
---|
8398 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
8399 | <desc>Created filter object.</desc>
|
---|
8400 | </param>
|
---|
8401 | </method>
|
---|
8402 |
|
---|
8403 | <method name="insertDeviceFilter">
|
---|
8404 | <desc>
|
---|
8405 | Inserts the given USB device to the specified position
|
---|
8406 | in the list of filters.
|
---|
8407 |
|
---|
8408 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
8409 | position is equal to or greater than the number of elements in
|
---|
8410 | the list, the filter is added to the end of the collection.
|
---|
8411 |
|
---|
8412 | <note>
|
---|
8413 | Duplicates are not allowed, so an attempt to inster a
|
---|
8414 | filter that is already in the collection, will return an
|
---|
8415 | error.
|
---|
8416 | </note>
|
---|
8417 |
|
---|
8418 | <see>#deviceFilters</see>
|
---|
8419 | </desc>
|
---|
8420 | <param name="position" type="unsigned long" dir="in">
|
---|
8421 | <desc>Position to insert the filter to.</desc>
|
---|
8422 | </param>
|
---|
8423 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
8424 | <desc>USB device filter to insert.</desc>
|
---|
8425 | </param>
|
---|
8426 | </method>
|
---|
8427 |
|
---|
8428 | <method name="removeDeviceFilter">
|
---|
8429 | <desc>
|
---|
8430 | Removes a USB device filter from the specified position in the
|
---|
8431 | list of filters.
|
---|
8432 |
|
---|
8433 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
8434 | position equal to or greater than the number of elements in
|
---|
8435 | the list will produce an error.
|
---|
8436 |
|
---|
8437 | <see>#deviceFilters</see>
|
---|
8438 | </desc>
|
---|
8439 | <param name="position" type="unsigned long" dir="in">
|
---|
8440 | <desc>Position to remove the filter from.</desc>
|
---|
8441 | </param>
|
---|
8442 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
8443 | <desc>Removed USB device filter.</desc>
|
---|
8444 | </param>
|
---|
8445 | </method>
|
---|
8446 |
|
---|
8447 | </interface>
|
---|
8448 |
|
---|
8449 |
|
---|
8450 | <!--
|
---|
8451 | // IUSBDevice
|
---|
8452 | /////////////////////////////////////////////////////////////////////////
|
---|
8453 | -->
|
---|
8454 |
|
---|
8455 | <enumerator
|
---|
8456 | name="IUSBDeviceEnumerator" type="IUSBDevice"
|
---|
8457 | uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
|
---|
8458 | />
|
---|
8459 |
|
---|
8460 | <collection
|
---|
8461 | name="IUSBDeviceCollection" type="IUSBDevice"
|
---|
8462 | enumerator="IUSBDeviceEnumerator"
|
---|
8463 | uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
|
---|
8464 | readonly="yes"
|
---|
8465 | >
|
---|
8466 | <method name="findById">
|
---|
8467 | <desc>
|
---|
8468 | Searches this collection for a USB device with the given UUID.
|
---|
8469 | <note>
|
---|
8470 | The method returns an error if the given UUID does not
|
---|
8471 | correspond to any USB device in the collection.
|
---|
8472 | </note>
|
---|
8473 | <see>IUSBDevice::id</see>
|
---|
8474 | </desc>
|
---|
8475 | <param name="id" type="uuid" dir="in">
|
---|
8476 | <desc>UUID of the USB device to search for.</desc>
|
---|
8477 | </param>
|
---|
8478 | <param name="device" type="IUSBDevice" dir="return">
|
---|
8479 | <desc>Found USB device object.</desc>
|
---|
8480 | </param>
|
---|
8481 | </method>
|
---|
8482 |
|
---|
8483 | <method name="findByAddress">
|
---|
8484 | <desc>
|
---|
8485 | Searches this collection for a USB device with the given
|
---|
8486 | host address.
|
---|
8487 | <note>
|
---|
8488 | The method returns an error if the given address does not
|
---|
8489 | correspond to any USB device in the collection.
|
---|
8490 | </note>
|
---|
8491 | <see>IUSBDevice::address</see>
|
---|
8492 | </desc>
|
---|
8493 | <param name="name" type="wstring" dir="in">
|
---|
8494 | <desc>
|
---|
8495 | Address of the USB device (as assigned by the host) to
|
---|
8496 | search for.
|
---|
8497 | </desc>
|
---|
8498 | </param>
|
---|
8499 | <param name="device" type="IUSBDevice" dir="return">
|
---|
8500 | <desc>Found USB device object.</desc>
|
---|
8501 | </param>
|
---|
8502 | </method>
|
---|
8503 |
|
---|
8504 | </collection>
|
---|
8505 |
|
---|
8506 | <interface
|
---|
8507 | name="IUSBDevice" extends="$unknown"
|
---|
8508 | uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
|
---|
8509 | wsmap="managed"
|
---|
8510 | >
|
---|
8511 | <desc>
|
---|
8512 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
8513 | virtual machine.
|
---|
8514 |
|
---|
8515 | A collection of objects implementing this interface is stored in the
|
---|
8516 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
8517 | attached to a running virtual machine's USB controller.
|
---|
8518 | </desc>
|
---|
8519 |
|
---|
8520 | <attribute name="id" type="uuid" readonly="yes">
|
---|
8521 | <desc>
|
---|
8522 | Unique USB device ID. This ID is built from #vendorId,
|
---|
8523 | #productId, #revision and #serialNumber.
|
---|
8524 | </desc>
|
---|
8525 | </attribute>
|
---|
8526 |
|
---|
8527 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
8528 | <desc>Vendor ID.</desc>
|
---|
8529 | </attribute>
|
---|
8530 |
|
---|
8531 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
8532 | <desc>Product ID.</desc>
|
---|
8533 | </attribute>
|
---|
8534 |
|
---|
8535 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
8536 | <desc>
|
---|
8537 | Product revision number. This is a packed BCD represented as
|
---|
8538 | unsigned short. The high byte is the integer part and the low
|
---|
8539 | byte is the decimal.
|
---|
8540 | </desc>
|
---|
8541 | </attribute>
|
---|
8542 |
|
---|
8543 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
8544 | <desc>Manufacturer string.</desc>
|
---|
8545 | </attribute>
|
---|
8546 |
|
---|
8547 | <attribute name="product" type="wstring" readonly="yes">
|
---|
8548 | <desc>Product string.</desc>
|
---|
8549 | </attribute>
|
---|
8550 |
|
---|
8551 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
8552 | <desc>Serial number string.</desc>
|
---|
8553 | </attribute>
|
---|
8554 |
|
---|
8555 | <attribute name="address" type="wstring" readonly="yes">
|
---|
8556 | <desc>Host specific address of the device.</desc>
|
---|
8557 | </attribute>
|
---|
8558 |
|
---|
8559 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
8560 | <desc>
|
---|
8561 | Host USB port number the device is physically
|
---|
8562 | coonected to.
|
---|
8563 | </desc>
|
---|
8564 | </attribute>
|
---|
8565 |
|
---|
8566 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
8567 | <desc>
|
---|
8568 | The major USB version of the device - 1 or 2.
|
---|
8569 | </desc>
|
---|
8570 | </attribute>
|
---|
8571 |
|
---|
8572 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
8573 | <desc>
|
---|
8574 | The major USB version of the host USB port the device is
|
---|
8575 | physically coonected to - 1 or 2. For devices not connected to
|
---|
8576 | anything this will have the same value as the version attribute.
|
---|
8577 | </desc>
|
---|
8578 | </attribute>
|
---|
8579 |
|
---|
8580 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
8581 | <desc>
|
---|
8582 | Whether the device is physically connected to a remote VRDP
|
---|
8583 | client or to a local host machine.
|
---|
8584 | </desc>
|
---|
8585 | </attribute>
|
---|
8586 |
|
---|
8587 | </interface>
|
---|
8588 |
|
---|
8589 |
|
---|
8590 | <!--
|
---|
8591 | // IUSBDeviceFilter
|
---|
8592 | /////////////////////////////////////////////////////////////////////////
|
---|
8593 | -->
|
---|
8594 |
|
---|
8595 | <enumerator
|
---|
8596 | name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
|
---|
8597 | uuid="d5109c61-93e7-4726-926b-0dee1020da56"
|
---|
8598 | />
|
---|
8599 |
|
---|
8600 | <collection
|
---|
8601 | name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
|
---|
8602 | enumerator="IUSBDeviceFilterEnumerator"
|
---|
8603 | uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
|
---|
8604 | readonly="yes"
|
---|
8605 | />
|
---|
8606 |
|
---|
8607 | <interface
|
---|
8608 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
8609 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
8610 | wsmap="managed"
|
---|
8611 | >
|
---|
8612 | <desc>
|
---|
8613 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
8614 | to perform actions on a group of USB devices.
|
---|
8615 |
|
---|
8616 | This type of filters is used by running virtual machines to
|
---|
8617 | automatically capture selected USB devices once they are physically
|
---|
8618 | attached to the host computer.
|
---|
8619 |
|
---|
8620 | A USB device is matched to the given device filter if and only if all
|
---|
8621 | attributes of the device match the corresponding attributes of the
|
---|
8622 | filter (that is, attributes are joined together using the logical AND
|
---|
8623 | operation). On the other hand, all together, filters in the list of
|
---|
8624 | filters carry the semantics of the logical OR operation. So if it is
|
---|
8625 | desirable to create a match like "this vendor id OR this product id",
|
---|
8626 | one needs to create two filters and specify "any match" (see below)
|
---|
8627 | for unused attributes.
|
---|
8628 |
|
---|
8629 | All filter attributes used for matching are strings. Each string
|
---|
8630 | is an expression representing a set of values of the corresponding
|
---|
8631 | device attribute, that will match the given filter. Currently, the
|
---|
8632 | following filtering expressions are supported:
|
---|
8633 |
|
---|
8634 | <ul>
|
---|
8635 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
8636 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
8637 | The format of the string is:
|
---|
8638 |
|
---|
8639 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
8640 |
|
---|
8641 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
8642 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
8643 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
8644 | is ommitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
8645 | is assumed; if <tt>n</tt> is ommitted after a dash, the maximum
|
---|
8646 | possible integer is assummed.
|
---|
8647 | </li>
|
---|
8648 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
8649 | boolean device attributes. The format of the string is:
|
---|
8650 |
|
---|
8651 | <tt>true|false|yes|no|0|1</tt>
|
---|
8652 |
|
---|
8653 | </li>
|
---|
8654 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
8655 | device attribute. Any string that does't start with <tt>int:</tt>
|
---|
8656 | represents the exact match. String device attributes are compared to
|
---|
8657 | this string including case of symbols. Integer attributes are first
|
---|
8658 | converted to a string (see individual filter attributes) and then
|
---|
8659 | compared ignoring case.
|
---|
8660 |
|
---|
8661 | </li>
|
---|
8662 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
8663 | will match the given filter. An empty or <tt>null</tt> string is
|
---|
8664 | used to construct this type of filtering expressions.
|
---|
8665 |
|
---|
8666 | </li>
|
---|
8667 | </ul>
|
---|
8668 |
|
---|
8669 | <note>
|
---|
8670 | On the Windows host platform, interval filters are not currently
|
---|
8671 | available. Also all string filter attributes
|
---|
8672 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
8673 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
8674 | <i>any match</i> no matter what string expression is specified.
|
---|
8675 | </note>
|
---|
8676 |
|
---|
8677 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
8678 | </desc>
|
---|
8679 |
|
---|
8680 | <attribute name="name" type="wstring">
|
---|
8681 | <desc>
|
---|
8682 | Visible name for this filter.
|
---|
8683 | This name is used to visually distungish one filter from another,
|
---|
8684 | so it can neither be <tt>null</tt> nor an empty string.
|
---|
8685 | </desc>
|
---|
8686 | </attribute>
|
---|
8687 |
|
---|
8688 | <attribute name="active" type="boolean">
|
---|
8689 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
8690 | </attribute>
|
---|
8691 |
|
---|
8692 | <attribute name="vendorId" type="wstring">
|
---|
8693 | <desc>
|
---|
8694 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
8695 | The string representation for the <i>exact matching</i>
|
---|
8696 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
8697 | (including leading zeroes).
|
---|
8698 | </desc>
|
---|
8699 | </attribute>
|
---|
8700 |
|
---|
8701 | <attribute name="productId" type="wstring">
|
---|
8702 | <desc>
|
---|
8703 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
8704 | The string representation for the <i>exact matching</i>
|
---|
8705 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
8706 | (including leading zeroes).
|
---|
8707 | </desc>
|
---|
8708 | </attribute>
|
---|
8709 |
|
---|
8710 | <attribute name="revision" type="wstring">
|
---|
8711 | <desc>
|
---|
8712 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
8713 | filter. The string representation for the <i>exact matching</i>
|
---|
8714 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
8715 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
8716 | decimal digit of its fractional part (including leading and
|
---|
8717 | trailing zeroes).
|
---|
8718 | Note that for interval filters, it's best to use the hexadecimal
|
---|
8719 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
8720 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
8721 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
8722 | </desc>
|
---|
8723 | </attribute>
|
---|
8724 |
|
---|
8725 | <attribute name="manufacturer" type="wstring">
|
---|
8726 | <desc>
|
---|
8727 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
8728 | </desc>
|
---|
8729 | </attribute>
|
---|
8730 |
|
---|
8731 | <attribute name="product" type="wstring">
|
---|
8732 | <desc>
|
---|
8733 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
8734 | </desc>
|
---|
8735 | </attribute>
|
---|
8736 |
|
---|
8737 | <attribute name="serialNumber" type="wstring">
|
---|
8738 | <desc>
|
---|
8739 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
8740 | </desc>
|
---|
8741 | </attribute>
|
---|
8742 |
|
---|
8743 | <attribute name="port" type="wstring">
|
---|
8744 | <desc>
|
---|
8745 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
8746 | </desc>
|
---|
8747 | </attribute>
|
---|
8748 |
|
---|
8749 | <attribute name="remote" type="wstring">
|
---|
8750 | <desc>
|
---|
8751 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
8752 | <note>
|
---|
8753 | This filter makes sense only for machine USB filters,
|
---|
8754 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
8755 | </note>
|
---|
8756 | </desc>
|
---|
8757 | </attribute>
|
---|
8758 |
|
---|
8759 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
8760 | <desc>
|
---|
8761 | This is an advanced option for hiding one or more USB interfaces
|
---|
8762 | from the guest. The value is a bitmask where the bits that are set
|
---|
8763 | means the corresponding USB interface should be hidden, masked off
|
---|
8764 | if you like.
|
---|
8765 | This feature only works on Linux hosts.
|
---|
8766 | </desc>
|
---|
8767 | </attribute>
|
---|
8768 |
|
---|
8769 | </interface>
|
---|
8770 |
|
---|
8771 |
|
---|
8772 | <!--
|
---|
8773 | // IHostUSBDevice
|
---|
8774 | /////////////////////////////////////////////////////////////////////////
|
---|
8775 | -->
|
---|
8776 |
|
---|
8777 | <enum
|
---|
8778 | name="USBDeviceState"
|
---|
8779 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
8780 | >
|
---|
8781 | <desc>
|
---|
8782 | USB device state. This enumeration represents all possible states
|
---|
8783 | of the USB device physically attached to the host computer regarding
|
---|
8784 | its state on the host computer and availability to guest computers
|
---|
8785 | (all currently running virtual machines).
|
---|
8786 |
|
---|
8787 | Once a supported USB device is attached to the host, global USB
|
---|
8788 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
8789 | either ignore the device, or put ot to #Held state, or do nothing. Unless
|
---|
8790 | the device is ignored by global filters, filters of all currently running
|
---|
8791 | guests (<link to="IUSBController::deviceFilters"/>) are activated that can
|
---|
8792 | put it to #Captured state.
|
---|
8793 |
|
---|
8794 | If the device was ignored by global filters, or didn't match
|
---|
8795 | any filters at all (including guest ones), it is handled by the host
|
---|
8796 | in a normal way. In this case, the device state is determined by
|
---|
8797 | the host and can be one of #Unavailable, #Busy or #Available, depending on
|
---|
8798 | the current device usage.
|
---|
8799 |
|
---|
8800 | Besides auto-capturing based on filters, the device can be manually
|
---|
8801 | captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
|
---|
8802 | state is #Busy, #Available or #Held.
|
---|
8803 |
|
---|
8804 | <note>
|
---|
8805 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
8806 | states #Busy and #Available are applicable only to the Linux version of
|
---|
8807 | the product. This also means that (<link
|
---|
8808 | to="IConsole::attachUSBDevice()"/>) can only succeed on Win32 if
|
---|
8809 | the device state is #USBDeviceHeld.
|
---|
8810 | </note>
|
---|
8811 |
|
---|
8812 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
8813 | </desc>
|
---|
8814 |
|
---|
8815 | <const name="NotSupported" value="0">
|
---|
8816 | <desc>
|
---|
8817 | Not supported by the VirtualBox server, not available to guests.
|
---|
8818 | </desc>
|
---|
8819 | </const>
|
---|
8820 | <const name="Unavailable" value="1">
|
---|
8821 | <desc>
|
---|
8822 | Being used by the host computer exclusively,
|
---|
8823 | not available to guests.
|
---|
8824 | </desc>
|
---|
8825 | </const>
|
---|
8826 | <const name="Busy" value="2">
|
---|
8827 | <desc>
|
---|
8828 | Being used by the host computer, potentially available to guests.
|
---|
8829 | </desc>
|
---|
8830 | </const>
|
---|
8831 | <const name="Available" value="3">
|
---|
8832 | <desc>
|
---|
8833 | Not used by the host computer, available to guests.
|
---|
8834 | The host computer can also start using the device at any time.
|
---|
8835 | </desc>
|
---|
8836 | </const>
|
---|
8837 | <const name="Held" value="4">
|
---|
8838 | <desc>
|
---|
8839 | Held by the VirtualBox server (ignored by the host computer),
|
---|
8840 | available to guests.
|
---|
8841 | </desc>
|
---|
8842 | </const>
|
---|
8843 | <const name="Captured" value="5">
|
---|
8844 | <desc>
|
---|
8845 | Captured by one of the guest computers, not available
|
---|
8846 | to anybody else.
|
---|
8847 | </desc>
|
---|
8848 | </const>
|
---|
8849 | </enum>
|
---|
8850 |
|
---|
8851 | <enumerator
|
---|
8852 | name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
|
---|
8853 | uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
|
---|
8854 | />
|
---|
8855 |
|
---|
8856 | <collection
|
---|
8857 | name="IHostUSBDeviceCollection" type="IHostUSBDevice"
|
---|
8858 | enumerator="IHostUSBDeviceEnumerator"
|
---|
8859 | uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
|
---|
8860 | readonly="yes"
|
---|
8861 | >
|
---|
8862 | <method name="findById">
|
---|
8863 | <desc>
|
---|
8864 | Searches this collection for a USB device with the given UUID.
|
---|
8865 | <note>
|
---|
8866 | The method returns an error if the given UUID does not
|
---|
8867 | correspond to any USB device in the collection.
|
---|
8868 | </note>
|
---|
8869 | <see>IHostUSBDevice::id</see>
|
---|
8870 | </desc>
|
---|
8871 | <param name="id" type="uuid" dir="in">
|
---|
8872 | <desc>UUID of the USB device to search for.</desc>
|
---|
8873 | </param>
|
---|
8874 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
8875 | <desc>Found USB device object.</desc>
|
---|
8876 | </param>
|
---|
8877 | </method>
|
---|
8878 |
|
---|
8879 | <method name="findByAddress">
|
---|
8880 | <desc>
|
---|
8881 | Searches this collection for a USB device with the given
|
---|
8882 | host address.
|
---|
8883 | <note>
|
---|
8884 | The method returns an error if the given address does not
|
---|
8885 | correspond to any USB device in the collection.
|
---|
8886 | </note>
|
---|
8887 | <see>IHostUSBDevice::address</see>
|
---|
8888 | </desc>
|
---|
8889 | <param name="name" type="wstring" dir="in">
|
---|
8890 | <desc>
|
---|
8891 | Address of the USB device (as assigned by the host) to
|
---|
8892 | search for.
|
---|
8893 | </desc>
|
---|
8894 | </param>
|
---|
8895 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
8896 | <desc>Found USB device object.</desc>
|
---|
8897 | </param>
|
---|
8898 | </method>
|
---|
8899 |
|
---|
8900 | </collection>
|
---|
8901 |
|
---|
8902 | <interface
|
---|
8903 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
8904 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
8905 | wsmap="managed"
|
---|
8906 | >
|
---|
8907 | <desc>
|
---|
8908 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
8909 | to the host computer.
|
---|
8910 |
|
---|
8911 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
8912 | <link to="#state"/> property that holds the courrent state of the USB
|
---|
8913 | device.
|
---|
8914 |
|
---|
8915 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
8916 | </desc>
|
---|
8917 |
|
---|
8918 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
8919 | <desc>
|
---|
8920 | Current state of the device.
|
---|
8921 | </desc>
|
---|
8922 | </attribute>
|
---|
8923 |
|
---|
8924 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
8925 |
|
---|
8926 | </interface>
|
---|
8927 |
|
---|
8928 |
|
---|
8929 | <!--
|
---|
8930 | // IHostUSBDeviceFilter
|
---|
8931 | /////////////////////////////////////////////////////////////////////////
|
---|
8932 | -->
|
---|
8933 |
|
---|
8934 | <enum
|
---|
8935 | name="USBDeviceFilterAction"
|
---|
8936 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
8937 | >
|
---|
8938 | <desc>
|
---|
8939 | Actions for host USB device filters.
|
---|
8940 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
8941 | </desc>
|
---|
8942 |
|
---|
8943 | <const name="Null" value="0">
|
---|
8944 | <desc><tt>null</tt> value. Never used by the API.</desc>
|
---|
8945 | </const>
|
---|
8946 | <const name="Ignore" value="1">
|
---|
8947 | <desc>Ignore the matched USB device.</desc>
|
---|
8948 | </const>
|
---|
8949 | <const name="Hold" value="2">
|
---|
8950 | <desc>Hold the matched USB device.</desc>
|
---|
8951 | </const>
|
---|
8952 | </enum>
|
---|
8953 |
|
---|
8954 | <enumerator
|
---|
8955 | name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
|
---|
8956 | uuid="ff735211-903e-4642-9c37-189eb44579fe"
|
---|
8957 | />
|
---|
8958 |
|
---|
8959 | <collection
|
---|
8960 | name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
|
---|
8961 | enumerator="IHostUSBDeviceFilterEnumerator"
|
---|
8962 | uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
|
---|
8963 | readonly="yes"
|
---|
8964 | />
|
---|
8965 |
|
---|
8966 | <interface
|
---|
8967 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
8968 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
8969 | wsmap="managed"
|
---|
8970 | >
|
---|
8971 | <desc>
|
---|
8972 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
8973 | physical USB device used by the host computer. Used indirectly in
|
---|
8974 | <link to="IHost::USBDeviceFilters"/>.
|
---|
8975 |
|
---|
8976 | Using filters of this type, the host computer determines the initial
|
---|
8977 | state of the USB device after it is physically attached to the
|
---|
8978 | host's USB controller.
|
---|
8979 |
|
---|
8980 | <note>
|
---|
8981 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
8982 | filters, because it makes sense only for
|
---|
8983 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
8984 | </note>
|
---|
8985 |
|
---|
8986 | <see>IHost::USBDeviceFilters</see>
|
---|
8987 | </desc>
|
---|
8988 |
|
---|
8989 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
8990 | <desc>
|
---|
8991 | Action performed by the host when an attached USB device
|
---|
8992 | matches this filter.
|
---|
8993 | </desc>
|
---|
8994 | </attribute>
|
---|
8995 |
|
---|
8996 | </interface>
|
---|
8997 |
|
---|
8998 | <!--
|
---|
8999 | // IAudioAdapter
|
---|
9000 | /////////////////////////////////////////////////////////////////////////
|
---|
9001 | -->
|
---|
9002 |
|
---|
9003 | <enum
|
---|
9004 | name="AudioDriverType"
|
---|
9005 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
9006 | >
|
---|
9007 | <desc>
|
---|
9008 | Host audio driver type.
|
---|
9009 | </desc>
|
---|
9010 |
|
---|
9011 | <const name="Null" value="0">
|
---|
9012 | <desc><tt>null</tt> value. Also means "dummy audio driver".</desc>
|
---|
9013 | </const>
|
---|
9014 | <const name="WINMM" value="1"/>
|
---|
9015 | <const name="OSS" value="2"/>
|
---|
9016 | <const name="ALSA" value="3"/>
|
---|
9017 | <const name="DSOUND" value="4"/>
|
---|
9018 | <const name="Core" value="5"/>
|
---|
9019 | <const name="MMPM" value="6"/>
|
---|
9020 | <const name="Pulse" value="7"/>
|
---|
9021 | </enum>
|
---|
9022 |
|
---|
9023 | <enum
|
---|
9024 | name="AudioControllerType"
|
---|
9025 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
9026 | >
|
---|
9027 | <desc>
|
---|
9028 | Virtual audio controller type.
|
---|
9029 | </desc>
|
---|
9030 |
|
---|
9031 | <const name="AC97" value="0"/>
|
---|
9032 | <const name="SB16" value="1"/>
|
---|
9033 | </enum>
|
---|
9034 |
|
---|
9035 | <interface
|
---|
9036 | name="IAudioAdapter" extends="$unknown"
|
---|
9037 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
9038 | wsmap="struct"
|
---|
9039 | >
|
---|
9040 | <desc>
|
---|
9041 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
9042 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
9043 | </desc>
|
---|
9044 | <attribute name="enabled" type="boolean">
|
---|
9045 | <desc>
|
---|
9046 | Flag whether the audio adapter is present in the
|
---|
9047 | guest system. If disabled, the virtual guest hardware will
|
---|
9048 | not contain any audio adapter. Can only be changed when
|
---|
9049 | the VM is not running.
|
---|
9050 | </desc>
|
---|
9051 | </attribute>
|
---|
9052 | <attribute name="audioController" type="AudioControllerType">
|
---|
9053 | <desc>
|
---|
9054 | The audio hardware we emulate.
|
---|
9055 | </desc>
|
---|
9056 | </attribute>
|
---|
9057 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
9058 | <desc>
|
---|
9059 | Audio driver the adapter is connected to. This setting
|
---|
9060 | can only be changed when the VM is not running.
|
---|
9061 | </desc>
|
---|
9062 | </attribute>
|
---|
9063 | </interface>
|
---|
9064 |
|
---|
9065 | <!--
|
---|
9066 | // IVRDPServer
|
---|
9067 | /////////////////////////////////////////////////////////////////////////
|
---|
9068 | -->
|
---|
9069 |
|
---|
9070 | <enum
|
---|
9071 | name="VRDPAuthType"
|
---|
9072 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
9073 | >
|
---|
9074 | <desc>
|
---|
9075 | VRDP authentication type.
|
---|
9076 | </desc>
|
---|
9077 |
|
---|
9078 | <const name="Null" value="0">
|
---|
9079 | <desc><tt>null</tt> value. Also means "no authentication".</desc>
|
---|
9080 | </const>
|
---|
9081 | <const name="External" value="1"/>
|
---|
9082 | <const name="Guest" value="2"/>
|
---|
9083 | </enum>
|
---|
9084 |
|
---|
9085 | <interface
|
---|
9086 | name="IVRDPServer" extends="$unknown"
|
---|
9087 | uuid="ed9d31ae-867f-45fc-b727-6740084d1883"
|
---|
9088 | wsmap="struct"
|
---|
9089 | >
|
---|
9090 | <attribute name="enabled" type="boolean">
|
---|
9091 | <desc>VRDP server status.</desc>
|
---|
9092 | </attribute>
|
---|
9093 |
|
---|
9094 | <attribute name="port" type="unsigned long">
|
---|
9095 | <desc>
|
---|
9096 | VRDP server port number.
|
---|
9097 | <note>
|
---|
9098 | Setting the value of this property to <tt>0</tt> will reset the port
|
---|
9099 | number to the default value which is
|
---|
9100 | currently <tt>3389</tt>. Reading this property will always return a
|
---|
9101 | real port number, even after it has been set to <tt>0</tt> (in which
|
---|
9102 | case the default port is returned).
|
---|
9103 | </note>
|
---|
9104 | </desc>
|
---|
9105 | </attribute>
|
---|
9106 |
|
---|
9107 | <attribute name="netAddress" type="wstring">
|
---|
9108 | <desc>VRDP server address.</desc>
|
---|
9109 | </attribute>
|
---|
9110 |
|
---|
9111 | <attribute name="authType" type="VRDPAuthType">
|
---|
9112 | <desc>VRDP authentication method.</desc>
|
---|
9113 | </attribute>
|
---|
9114 |
|
---|
9115 | <attribute name="authTimeout" type="unsigned long">
|
---|
9116 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
9117 | </attribute>
|
---|
9118 |
|
---|
9119 | <attribute name="allowMultiConnection" type="boolean">
|
---|
9120 | <desc>
|
---|
9121 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
9122 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
9123 | </desc>
|
---|
9124 | </attribute>
|
---|
9125 |
|
---|
9126 | </interface>
|
---|
9127 |
|
---|
9128 |
|
---|
9129 | <!--
|
---|
9130 | // ISharedFolder
|
---|
9131 | /////////////////////////////////////////////////////////////////////////
|
---|
9132 | -->
|
---|
9133 |
|
---|
9134 | <enumerator
|
---|
9135 | name="ISharedFolderEnumerator" type="ISharedFolder"
|
---|
9136 | uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
|
---|
9137 | />
|
---|
9138 |
|
---|
9139 | <collection
|
---|
9140 | name="ISharedFolderCollection" type="ISharedFolder"
|
---|
9141 | enumerator="ISharedFolderEnumerator"
|
---|
9142 | uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
|
---|
9143 | readonly="yes">
|
---|
9144 |
|
---|
9145 | <method name="findByName">
|
---|
9146 | <desc>
|
---|
9147 | Searches this collection for a shared folder with the given logical
|
---|
9148 | name.
|
---|
9149 | <note>
|
---|
9150 | The method returns an error if the given name does not correspond to
|
---|
9151 | any shared folder in the collection.
|
---|
9152 | </note>
|
---|
9153 | </desc>
|
---|
9154 | <param name="name" type="wstring" dir="in">
|
---|
9155 | <desc>Logical name of the shared folder to search for</desc>
|
---|
9156 | </param>
|
---|
9157 | <param name="sharedFolder" type="ISharedFolder" dir="return">
|
---|
9158 | <desc>Found shared folder object</desc>
|
---|
9159 | </param>
|
---|
9160 | </method>
|
---|
9161 |
|
---|
9162 | </collection>
|
---|
9163 |
|
---|
9164 | <interface
|
---|
9165 | name="ISharedFolder" extends="$unknown"
|
---|
9166 | uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
|
---|
9167 | wsmap="struct"
|
---|
9168 | >
|
---|
9169 | <desc>
|
---|
9170 | The ISharedFolder interface represents a folder in the host computer's
|
---|
9171 | file system accessible from the guest OS running inside a virtual
|
---|
9172 | machine using an associated logical name.
|
---|
9173 |
|
---|
9174 | There are three types of shared folders:
|
---|
9175 | <ul>
|
---|
9176 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
9177 | folders available to all virtual machines.</li>
|
---|
9178 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
9179 | VM-specific shared folders available to the given virtual machine at
|
---|
9180 | startup.</li>
|
---|
9181 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
9182 | VM-specific shared folders created in the session context (for
|
---|
9183 | example, when the virtual machine is running) and automatically
|
---|
9184 | discarded when the session is closed (the VM is powered off).</li>
|
---|
9185 | </ul>
|
---|
9186 |
|
---|
9187 | Logical names of shared folders must be unique within the given scope
|
---|
9188 | (global, permanent or transient). However, they do not need to be unique
|
---|
9189 | across scopes. In this case, the definitioin of the shared folder in a
|
---|
9190 | more specific scope takes precedence over definitions in all other
|
---|
9191 | scopes. The order of precedence is (more specific to more general):
|
---|
9192 | <ol>
|
---|
9193 | <li>Transient definitions</li>
|
---|
9194 | <li>Permanent definitions</li>
|
---|
9195 | <li>Global definitions</li>
|
---|
9196 | </ol>
|
---|
9197 |
|
---|
9198 | For example, if MyMachine has a shared folder named
|
---|
9199 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then cretaing a
|
---|
9200 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
9201 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
9202 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
9203 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
9204 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
9205 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
9206 | the prevoious (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
9207 | to <tt>C:\\</tt> if it still exists.
|
---|
9208 |
|
---|
9209 | Note that permanent and transient shared folders of different machines
|
---|
9210 | are in different name spaces, so they don't overlap and don't need to
|
---|
9211 | have unique logical names.
|
---|
9212 |
|
---|
9213 | <note>
|
---|
9214 | Global shared folders are not implemented in the current vesion of the
|
---|
9215 | product.
|
---|
9216 | </note>
|
---|
9217 | </desc>
|
---|
9218 |
|
---|
9219 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9220 | <desc>Logical name of the shared folder.</desc>
|
---|
9221 | </attribute>
|
---|
9222 |
|
---|
9223 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
9224 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
9225 | </attribute>
|
---|
9226 |
|
---|
9227 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
9228 | <desc>
|
---|
9229 | Whether the folder defined by the host path is currently
|
---|
9230 | accessible or not.
|
---|
9231 | For example, the folder can be unaccessible if it is placed
|
---|
9232 | on the network share that is not available by the time
|
---|
9233 | this property is read.
|
---|
9234 | </desc>
|
---|
9235 | </attribute>
|
---|
9236 |
|
---|
9237 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
9238 | <desc>
|
---|
9239 | Whether the folder defined by the host path is writable or
|
---|
9240 | not.
|
---|
9241 | </desc>
|
---|
9242 | </attribute>
|
---|
9243 |
|
---|
9244 | </interface>
|
---|
9245 |
|
---|
9246 | <!--
|
---|
9247 | // ISession
|
---|
9248 | /////////////////////////////////////////////////////////////////////////
|
---|
9249 | -->
|
---|
9250 |
|
---|
9251 | <interface
|
---|
9252 | name="IInternalSessionControl" extends="$unknown"
|
---|
9253 | uuid="37838967-2430-4bb1-8acc-1b5b2c383d44"
|
---|
9254 | internal="yes"
|
---|
9255 | wsmap="suppress"
|
---|
9256 | >
|
---|
9257 | <method name="getPID">
|
---|
9258 | <desc>PID of the process that has created this Session object.
|
---|
9259 | </desc>
|
---|
9260 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
9261 | </method>
|
---|
9262 |
|
---|
9263 | <method name="getRemoteConsole">
|
---|
9264 | <desc>Returns the console object suitable for remote control.</desc>
|
---|
9265 | <param name="console" type="IConsole" dir="return"/>
|
---|
9266 | </method>
|
---|
9267 |
|
---|
9268 | <method name="assignMachine">
|
---|
9269 | <desc>
|
---|
9270 | Assigns the machine object associated with this direct-type
|
---|
9271 | session or informs the session that it will be a remote one
|
---|
9272 | (if machine = NULL).
|
---|
9273 | </desc>
|
---|
9274 | <param name="machine" type="IMachine" dir="in"/>
|
---|
9275 | </method>
|
---|
9276 |
|
---|
9277 | <method name="assignRemoteMachine">
|
---|
9278 | <desc>
|
---|
9279 | Assigns the machine and the (remote) console object associated with
|
---|
9280 | this remote-type session.
|
---|
9281 | </desc>
|
---|
9282 | <param name="machine" type="IMachine" dir="in"/>
|
---|
9283 | <param name="console" type="IConsole" dir="in"/>
|
---|
9284 | </method>
|
---|
9285 |
|
---|
9286 | <method name="updateMachineState">
|
---|
9287 | <desc>
|
---|
9288 | Updates the machine state in the VM process.
|
---|
9289 | Must be called only in certain cases
|
---|
9290 | (see the method implementation).
|
---|
9291 | </desc>
|
---|
9292 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
9293 | </method>
|
---|
9294 |
|
---|
9295 | <method name="uninitialize">
|
---|
9296 | <desc>
|
---|
9297 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
9298 | the corresponding remote session when the direct session dies
|
---|
9299 | or gets closed.
|
---|
9300 | </desc>
|
---|
9301 | </method>
|
---|
9302 |
|
---|
9303 | <method name="onDVDDriveChange">
|
---|
9304 | <desc>
|
---|
9305 | Triggered when settings of the DVD drive object of the
|
---|
9306 | associated virtual machine have changed.
|
---|
9307 | </desc>
|
---|
9308 | </method>
|
---|
9309 |
|
---|
9310 | <method name="onFloppyDriveChange">
|
---|
9311 | <desc>
|
---|
9312 | Triggered when settings of the floppy drive object of the
|
---|
9313 | associated virtual machine have changed.
|
---|
9314 | </desc>
|
---|
9315 | </method>
|
---|
9316 |
|
---|
9317 | <method name="onNetworkAdapterChange">
|
---|
9318 | <desc>
|
---|
9319 | Triggered when settions of a network adapter of the
|
---|
9320 | associated virtual machine have changed.
|
---|
9321 | </desc>
|
---|
9322 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
9323 | </method>
|
---|
9324 |
|
---|
9325 | <method name="onSerialPortChange">
|
---|
9326 | <desc>
|
---|
9327 | Triggered when settions of a serial port of the
|
---|
9328 | associated virtual machine have changed.
|
---|
9329 | </desc>
|
---|
9330 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
9331 | </method>
|
---|
9332 |
|
---|
9333 | <method name="onParallelPortChange">
|
---|
9334 | <desc>
|
---|
9335 | Triggered when settings of a parallel port of the
|
---|
9336 | associated virtual machine have changed.
|
---|
9337 | </desc>
|
---|
9338 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
9339 | </method>
|
---|
9340 |
|
---|
9341 | <method name="onVRDPServerChange">
|
---|
9342 | <desc>
|
---|
9343 | Triggered when settings of the VRDP server object of the
|
---|
9344 | associated virtual machine have changed.
|
---|
9345 | </desc>
|
---|
9346 | </method>
|
---|
9347 |
|
---|
9348 | <method name="onUSBControllerChange">
|
---|
9349 | <desc>
|
---|
9350 | Triggered when settings of the USB controller object of the
|
---|
9351 | associated virtual machine have changed.
|
---|
9352 | </desc>
|
---|
9353 | </method>
|
---|
9354 |
|
---|
9355 | <method name="onSharedFolderChange">
|
---|
9356 | <desc>
|
---|
9357 | Triggered when a permanent (global or machine) shared folder has been
|
---|
9358 | created or removed.
|
---|
9359 | <note>
|
---|
9360 | We don't pass shared folder parameters in this notification because
|
---|
9361 | the order in which parallel notifications are delivered is not defined,
|
---|
9362 | therefore it could happen that these parameters were outdated by the
|
---|
9363 | time of processing this notification.
|
---|
9364 | </note>
|
---|
9365 | </desc>
|
---|
9366 | <param name="global" type="boolean" dir="in"/>
|
---|
9367 | </method>
|
---|
9368 |
|
---|
9369 | <method name="onUSBDeviceAttach">
|
---|
9370 | <desc>
|
---|
9371 | Triggered when a request to capture a USB device (as a result
|
---|
9372 | of matched USB filters or direct call to
|
---|
9373 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
9374 | A @c null @a error object means success, otherwise it
|
---|
9375 | describes a failure.
|
---|
9376 | </desc>
|
---|
9377 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
9378 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
9379 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
9380 | </method>
|
---|
9381 |
|
---|
9382 | <method name="onUSBDeviceDetach">
|
---|
9383 | <desc>
|
---|
9384 | Triggered when a request to release the USB device (as a result
|
---|
9385 | of machine termination or direct call to
|
---|
9386 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
9387 | A @c null @a error object means success, otherwise it
|
---|
9388 | </desc>
|
---|
9389 | <param name="id" type="uuid" dir="in"/>
|
---|
9390 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
9391 | </method>
|
---|
9392 |
|
---|
9393 | <method name="onShowWindow">
|
---|
9394 | <desc>
|
---|
9395 | Called by <link to="IMachine::canShowConsoleWindow()"/> and by
|
---|
9396 | <link to="IMachine::showConsoleWindow()"/> in order to notify
|
---|
9397 | console callbacks
|
---|
9398 | <link to="IConsoleCallback::onCanShowWindow()"/>
|
---|
9399 | and <link to="IConsoleCallback::onShowWindow()"/>.
|
---|
9400 | </desc>
|
---|
9401 | <param name="check" type="boolean" dir="in"/>
|
---|
9402 | <param name="canShow" type="boolean" dir="out"/>
|
---|
9403 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
9404 | </method>
|
---|
9405 |
|
---|
9406 | </interface>
|
---|
9407 |
|
---|
9408 | <interface
|
---|
9409 | name="ISession" extends="$dispatched"
|
---|
9410 | uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
|
---|
9411 | wsmap="managed"
|
---|
9412 | >
|
---|
9413 | <desc>
|
---|
9414 | The ISession interface represents a serialization primitive for virtual
|
---|
9415 | machines.
|
---|
9416 |
|
---|
9417 | Within VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
9418 | (for example, change its settings or start execution), an instance of
|
---|
9419 | the ISession interface is required. One first creates a local session
|
---|
9420 | object that implements the ISession interface and then passes the
|
---|
9421 | created object with the method call that opens the given session and
|
---|
9422 | thus initiates the machine manipulation. The session serves several
|
---|
9423 | purposes: it identifies to the inter-process VirtualBox code which
|
---|
9424 | process is currently working with the virtual machine, and it ensures
|
---|
9425 | that there are no incompatible requests from several processes for the
|
---|
9426 | same virtual machine.
|
---|
9427 |
|
---|
9428 | How sessions objects are used depends on whether you use the Main API
|
---|
9429 | via COM or via the web service:
|
---|
9430 |
|
---|
9431 | <ul>
|
---|
9432 | <li>When using the COM API directly, an object of the Session class from the
|
---|
9433 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
9434 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
9435 | This object will then act as a local session object in further calls to open
|
---|
9436 | a session.
|
---|
9437 | </li>
|
---|
9438 |
|
---|
9439 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
9440 | one session object automatically when <link to="IWebsessionManager::logon" />
|
---|
9441 | is called. A managed object reference to that session object can be retrieved by
|
---|
9442 | calling <link to="IWebsessionManager::getSessionObject" />. This session object
|
---|
9443 | reference can then be used to open sessions.
|
---|
9444 | </li>
|
---|
9445 | </ul>
|
---|
9446 |
|
---|
9447 | Sessions are mainly used in two variations:
|
---|
9448 |
|
---|
9449 | <ul>
|
---|
9450 | <li>
|
---|
9451 | To start a virtual machine in a separate process, one would call
|
---|
9452 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
9453 | object as its first parameter. This session then identifies the caller
|
---|
9454 | and lets him control the started machine (for example, pause machine
|
---|
9455 | execution or power it down) as well as be notified about machine
|
---|
9456 | execution state changes.
|
---|
9457 | </li>
|
---|
9458 |
|
---|
9459 | <li>To alter machine settings, or to start machine execution within the
|
---|
9460 | current process, one needs to open a direct session for the machine first by
|
---|
9461 | calling <link to="IVirtualBox::openSession"/>. While a direct session
|
---|
9462 | is open within one process, no any other process may open another direct
|
---|
9463 | session for the same machine. This prevents the machine from being changed
|
---|
9464 | by other processes while it is running or while the machine is being configured.
|
---|
9465 | </li>
|
---|
9466 | </ul>
|
---|
9467 |
|
---|
9468 | One also can attach to an existing direct session alreay opened by
|
---|
9469 | another process (for example, in order to send a control request to the
|
---|
9470 | virtual machine such as the pause or the reset request). This is done by
|
---|
9471 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
9472 |
|
---|
9473 | <note>
|
---|
9474 | Unless you are trying to write a new VirtualBox front-end that
|
---|
9475 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
9476 | frontends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
9477 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
9478 | session only to change virtual machine settings. If you simply want to
|
---|
9479 | start virtual machine execution using one of the existing frontends
|
---|
9480 | (for example the VirtualBox GUI frontend), use
|
---|
9481 | <link to="IVirtualBox::openRemoteSession"/>. In the latter case, on
|
---|
9482 | sucess, the machine will be powered up for you by the front-end so you
|
---|
9483 | don't need to call <link to="IConsole::powerUp"/> too.
|
---|
9484 | </note>
|
---|
9485 | </desc>
|
---|
9486 |
|
---|
9487 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
9488 | <desc>Current state of this session.</desc>
|
---|
9489 | </attribute>
|
---|
9490 |
|
---|
9491 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
9492 | <desc>
|
---|
9493 | Type of this session. The value of this attribute is valid only
|
---|
9494 | if the session is currently open (i.e. its #state is SessionType::SessionOpen),
|
---|
9495 | otherwise an error will be returned.
|
---|
9496 | </desc>
|
---|
9497 | </attribute>
|
---|
9498 |
|
---|
9499 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
9500 | <desc>Machine object associated with this session.</desc>
|
---|
9501 | </attribute>
|
---|
9502 |
|
---|
9503 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
9504 | <desc>Console object associated with this session.</desc>
|
---|
9505 | </attribute>
|
---|
9506 |
|
---|
9507 | <method name="close">
|
---|
9508 | <desc>
|
---|
9509 | Closes this session.
|
---|
9510 | <note>
|
---|
9511 | If a direct session for a machine opened with
|
---|
9512 | <link to="IVirtualBox::openSession()"/> is not explicitly
|
---|
9513 | closed when the application terminates, the state of the
|
---|
9514 | machine will be set to <link to="MachineState::Aborted"/>
|
---|
9515 | on the server. Generally, it is recommended to close all
|
---|
9516 | open sessions explicitly before terminating the application
|
---|
9517 | (no matter what is the reason of the termination).
|
---|
9518 | </note>
|
---|
9519 | </desc>
|
---|
9520 | </method>
|
---|
9521 |
|
---|
9522 | </interface>
|
---|
9523 |
|
---|
9524 | <if target="wsdl">
|
---|
9525 |
|
---|
9526 | <!--
|
---|
9527 | // IManagedObjectRef
|
---|
9528 | /////////////////////////////////////////////////////////////////////////
|
---|
9529 | -->
|
---|
9530 |
|
---|
9531 | <interface
|
---|
9532 | name="IManagedObjectRef" extends="$unknown"
|
---|
9533 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
9534 | internal="yes"
|
---|
9535 | wsmap="managed"
|
---|
9536 | wscpp="hardcoded"
|
---|
9537 | >
|
---|
9538 | <desc>
|
---|
9539 | Webservice only: Managed object reference.
|
---|
9540 |
|
---|
9541 | Only within the webservice, a managed object reference (which is really
|
---|
9542 | an opaque number) allows a webservice client to address an object
|
---|
9543 | that lives in the address space of the webservice server.
|
---|
9544 |
|
---|
9545 | Behind each managed object reference, there is a COM object that lives
|
---|
9546 | in the webservice server's address space. The COM object is not freed
|
---|
9547 | until the managed object reference is released, either by an explicit
|
---|
9548 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
9549 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
9550 | all objects created during the webservice session.
|
---|
9551 |
|
---|
9552 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
9553 | webservice representation of that method will instead return a
|
---|
9554 | managed object reference, which can then be used to invoke methods
|
---|
9555 | on that object.
|
---|
9556 | </desc>
|
---|
9557 |
|
---|
9558 | <method name="getInterfaceName">
|
---|
9559 | <desc>
|
---|
9560 | Returns the name of the interface that this managed object represents,
|
---|
9561 | for example, "IMachine", as a string.
|
---|
9562 | </desc>
|
---|
9563 | <param name="return" type="wstring" dir="return"/>
|
---|
9564 | </method>
|
---|
9565 |
|
---|
9566 | <method name="release">
|
---|
9567 | <desc>
|
---|
9568 | Releases this managed object reference and frees the resources that
|
---|
9569 | were allocated for it in the webservice server process. After calling
|
---|
9570 | this method, the identifier of the reference can no longer be used.
|
---|
9571 | </desc>
|
---|
9572 | </method>
|
---|
9573 |
|
---|
9574 | </interface>
|
---|
9575 |
|
---|
9576 | <!--
|
---|
9577 | // IWebsessionManager
|
---|
9578 | /////////////////////////////////////////////////////////////////////////
|
---|
9579 | -->
|
---|
9580 |
|
---|
9581 | <interface
|
---|
9582 | name="IWebsessionManager" extends="$unknown"
|
---|
9583 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
9584 | internal="yes"
|
---|
9585 | wsmap="global"
|
---|
9586 | wscpp="hardcoded"
|
---|
9587 | >
|
---|
9588 | <desc>
|
---|
9589 | Webservice only: Websession manager. This provides essential services
|
---|
9590 | to webservice clients.
|
---|
9591 | </desc>
|
---|
9592 | <method name="logon">
|
---|
9593 | <desc>
|
---|
9594 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
9595 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
9596 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
9597 | interface, in one way or the other.
|
---|
9598 | </desc>
|
---|
9599 | <param name="username" type="wstring" dir="in"/>
|
---|
9600 | <param name="password" type="wstring" dir="in"/>
|
---|
9601 | <param name="return" type="wstring" dir="return"/>
|
---|
9602 | </method>
|
---|
9603 |
|
---|
9604 | <method name="getSessionObject">
|
---|
9605 | <desc>
|
---|
9606 | Returns a managed object reference to the internal ISession object that was created
|
---|
9607 | for this web service session when the client logged on.
|
---|
9608 |
|
---|
9609 | <see>ISession</see>
|
---|
9610 | </desc>
|
---|
9611 | <param name="refIVirtualBox" type="wstring" dir="in"/>
|
---|
9612 | <param name="return" type="wstring" dir="return"/>
|
---|
9613 | </method>
|
---|
9614 |
|
---|
9615 | <method name="logoff">
|
---|
9616 | <desc>
|
---|
9617 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
9618 | and destroys all resources associated with the session (most importantly, all
|
---|
9619 | managed objects created in the server while the session was active).
|
---|
9620 | </desc>
|
---|
9621 | <param name="refIVirtualBox" type="wstring" dir="in"/>
|
---|
9622 | </method>
|
---|
9623 |
|
---|
9624 | </interface>
|
---|
9625 |
|
---|
9626 | </if>
|
---|
9627 |
|
---|
9628 | <module name="VBoxSVC" context="LocalServer">
|
---|
9629 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
9630 | namespace="virtualbox.org">
|
---|
9631 | <interface name="IVirtualBox" default="yes"/>
|
---|
9632 | </class>
|
---|
9633 | </module>
|
---|
9634 |
|
---|
9635 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
9636 | <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
|
---|
9637 | namespace="virtualbox.org">
|
---|
9638 | <interface name="ISession" default="yes"/>
|
---|
9639 | </class>
|
---|
9640 | </module>
|
---|
9641 |
|
---|
9642 | </library>
|
---|
9643 |
|
---|
9644 | </idl>
|
---|