VirtualBox

source: vbox/trunk/src/VBox/Main/idl/VirtualBox.xidl@ 6382

Last change on this file since 6382 was 6382, checked in by vboxsync, 17 years ago

backed out again, needs build fixes on Windows

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 336.2 KB
Line 
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="TriStateBool"
101 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
102 >
103 <desc>
104 This represents a 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="InvalidMachineState" value="0">
122 <desc>
123 Invalid machine state. This state is never used by the virtual machine
124 and may be used as a <tt>null</tt> value for state
125 variables.
126 </desc>
127 </const>
128 <const name="PoweredOff" value="1">
129 <desc>
130 The machine is not running.
131 </desc>
132 </const>
133 <const name="Saved" value="2">
134 <desc>
135 The machine is not currently running, but the execution state
136 of the machine has been saved to an external file when it
137 was running.
138 <note>
139 No any machine settings can be altered when the machine
140 is in this state.
141 </note>
142 </desc>
143 </const>
144 <const name="Aborted" value="3">
145 <desc>
146 A process that run the machine has abnormally terminated.
147 Other than that, this value is equivalent to #PoweredOff.
148 </desc>
149 </const>
150 <const name="Running" value="4">
151 <desc>
152 The machine is currently being executed.
153 <note>
154 This value can be used in comparison expressions:
155 all state values below it describe a virtual machine that is
156 not currently being executed (i.e., it is completely out of
157 action).
158 </note>
159 <note>
160 For whoever decides to touch this enum: In order to keep the
161 aforementioned comparisons valid, this state must immediately
162 preceed the Paused state.
163 </note>
164 </desc>
165 </const>
166 <const name="Paused" value="5">
167 <desc>
168 The execution of the machine has been paused.
169 <note>
170 This value can be used in comparison expressions: all state values
171 above it represent unstable states of the running virtual
172 machine. Unless explicitly stated otherwise, no machine settings can
173 be altered when it is in one of the unstable sates.
174 </note>
175 <note>
176 For whoever decides to touch this enum: In order to keep the
177 aforementioned comparisons valid, this state must immediately
178 follow the Running state.
179 </note>
180 </desc>
181 </const>
182 <const name="Stuck" value="6">
183 <desc>
184 The execution of the machine has reached the Guru Meditaion
185 condition. This condition indicates an internal VMM failure which may
186 happen as a result of either an unhandled low-level virtual hardware
187 exception or one of the recompiler exceptions (such as
188 the <i>too-many-traps</i> condition).
189 </desc>
190 </const>
191 <const name="Starting" value="7">
192 <desc>
193 The machine is being started after
194 <link to="IConsole::powerUp">powering it on</link> from a
195 zero execution state.
196 </desc>
197 </const>
198 <const name="Stopping" value="8">
199 <desc>
200 The machine is being normally stopped
201 (after explicitly <link to="IConsole::powerDown">powering it off</link>,
202 or after the guest OS has initiated a shutdown sequence).
203 </desc>
204 </const>
205 <const name="Saving" value="9">
206 <desc>
207 The machine is saving its execution state to a file as a
208 result of calling <link to="IConsole::saveState"/> or an online
209 snapshot of the machine is being taken using
210 <link to="IConsole::takeSnapshot"/>.
211 </desc>
212 </const>
213 <const name="Restoring" value="10">
214 <desc>
215 The execution state of the machine is being restored from a file
216 after <link to="IConsole::powerUp">powering it on</link> from
217 a saved execution state.
218 </desc>
219 </const>
220 <const name="Discarding" value="11">
221 <desc>
222 A snapshot of the machine is being discarded after calling
223 <link to="IConsole::discardSnapshot"/> or its current state is
224 being discarded after <link to="IConsole::discardCurrentState"/>.
225 </desc>
226 </const>
227 </enum>
228
229 <enum
230 name="SessionState"
231 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
232 >
233 <desc>
234 Session state. This enumeration represents possible values of
235 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
236 attributes. Idividual value descriptions contain the appropriate
237 meaning for every case.
238 </desc>
239
240 <const name="InvalidSessionState" value="0"/>
241 <const name="SessionClosed" value="1">
242 <desc>
243 The machine has no open sessions (<link to="IMachine::sessionState"/>);
244 the session is closed (<link to="ISession::state"/>)
245 </desc>
246 </const>
247 <const name="SessionOpen" value="2">
248 <desc>
249 The machine has an open direct session (<link to="IMachine::sessionState"/>);
250 the session is open (<link to="ISession::state"/>)
251 </desc>
252 </const>
253 <const name="SessionSpawning" value="3">
254 <desc>
255 A new (direct) session is being opened for the machine
256 as a result of <link to="IVirtualBox::openRemoteSession()"/>
257 call (<link to="IMachine::sessionState"/>);
258 the session is currently being opened
259 as a result of <link to="IVirtualBox::openRemoteSession()"/>
260 call (<link to="ISession::state"/>)
261 </desc>
262 </const>
263 <const name="SessionClosing" value="4">
264 <desc>
265 The direct session is being closed (<link to="IMachine::sessionState"/>);
266 the session is being closed (<link to="ISession::state"/>)
267 </desc>
268 </const>
269 </enum>
270
271 <enum
272 name="SessionType"
273 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
274 >
275 <desc>
276 Session type. This enumeration represents possible values of the
277 <link to="ISession::type"/> attribute.
278 </desc>
279
280 <const name="InvalidSessionType" value="0"/>
281 <const name="DirectSession" value="1">
282 <desc>
283 Direct session
284 (opened by <link to="IVirtualBox::openSession()"/>)
285 </desc>
286 </const>
287 <const name="RemoteSession" value="2">
288 <desc>
289 Remote session
290 (opened by <link to="IVirtualBox::openRemoteSession()"/>)
291 </desc>
292 </const>
293 <const name="ExistingSession" 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="NoDevice" value="0">
309 <desc>
310 No Device. This value is not used by
311 <link to="IConsole::getDeviceActivity"/>
312 </desc>
313 </const>
314 <const name="FloppyDevice" value="1">
315 <desc>Floppy device.</desc>
316 </const>
317 <const name="DVDDevice" value="2">
318 <desc>CD/DVD-ROM device.</desc>
319 </const>
320 <const name="HardDiskDevice" value="3">
321 <desc>Hard disk device.</desc>
322 </const>
323 <const name="NetworkDevice" value="4">
324 <desc>Network device.</desc>
325 </const>
326 <const name="USBDevice" value="5">
327 <desc>USB device.</desc>
328 </const>
329 <const name="SharedFolderDevice" value="6">
330 <desc>Shared folder device.</desc>
331 </const>
332 </enum>
333
334 <enum
335 name="DeviceActivity"
336 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
337 >
338 <const name="InvalidActivity" value="0"/>
339 <const name="DeviceIdle" value="1"/>
340 <const name="DeviceReading" value="2"/>
341 <const name="DeviceWriting" value="3"/>
342 </enum>
343
344 <enum
345 name="ResourceUsage"
346 uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809"
347 >
348 <desc>
349 Usage type constants for
350 <link to="IVirtualBox::getDVDImageUsage"/> and
351 <link to="IVirtualBox::getFloppyImageUsage"/>.
352 </desc>
353 <const name="InvalidUsage" value="0"/>
354 <const name="PermanentUsage" value="1">
355 <desc>
356 Scopes the VMs that use the resource permanently
357 (the information about this usage is stored in the VM
358 settings file).
359 </desc>
360 </const>
361 <const name="TemporaryUsage" value="2">
362 <desc>
363 Scopes the VMs that are temporarily using the resource
364 (the information about the usage is not yet saved in the VM
365 settings file). Temporary usage can take place only in the
366 context of an open session.
367 </desc>
368 </const>
369 <const name="AllUsage" value="3">
370 <desc>
371 Combines PermanentUsage and TemporaryUsage.
372 </desc>
373 </const>
374 </enum>
375
376 <enum
377 name="DiskControllerType"
378 uuid="1115b810-2ee7-4ebd-8b39-92e98c9a2b48"
379 >
380 <const name="InvalidController" value="0"/>
381 <const name="IDE0Controller" value="1"/>
382 <const name="IDE1Controller" value="2"/>
383 </enum>
384
385 <enum
386 name="ClipboardMode"
387 uuid="33364716-4008-4701-8f14-be0fa3d62950"
388 >
389 <const name="ClipDisabled" value="0"/>
390 <const name="ClipHostToGuest" value="1"/>
391 <const name="ClipGuestToHost" value="2"/>
392 <const name="ClipBidirectional" value="3"/>
393 </enum>
394
395 <enum
396 name="Scope"
397 uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
398 >
399 <desc>
400 Scope of the operation.
401
402 A generic enumeration used in various methods to define the action or
403 argument scope.
404 </desc>
405 <const name="GlobalScope" value="0"/>
406 <const name="MachineScope" value="1"/>
407 <const name="SessionScope" value="2"/>
408 </enum>
409
410 <enum
411 name="GuestStatisticType"
412 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
413 >
414 <const name="CPULoad_Idle" value="0">
415 <desc>
416 Idle CPU load (0-100%) for last interval.
417 </desc>
418 </const>
419 <const name="CPULoad_Kernel" value="1">
420 <desc>
421 Kernel CPU load (0-100%) for last interval.
422 </desc>
423 </const>
424 <const name="CPULoad_User" value="2">
425 <desc>
426 User CPU load (0-100%) for last interval.
427 </desc>
428 </const>
429 <const name="Threads" value="3">
430 <desc>
431 Total number of threads in the system.
432 </desc>
433 </const>
434 <const name="Processes" value="4">
435 <desc>
436 Total number of processes in the system.
437 </desc>
438 </const>
439 <const name="Handles" value="5">
440 <desc>
441 Total number of handles in the system.
442 </desc>
443 </const>
444 <const name="MemoryLoad" value="6">
445 <desc>
446 Memory load (0-100%).
447 </desc>
448 </const>
449 <const name="PhysMemTotal" value="7">
450 <desc>
451 Total physical memory in megabytes.
452 </desc>
453 </const>
454 <const name="PhysMemAvailable" value="8">
455 <desc>
456 Free physical memory in megabytes.
457 </desc>
458 </const>
459 <const name="PhysMemBalloon" value="9">
460 <desc>
461 Ballooned physical memory in megabytes.
462 </desc>
463 </const>
464 <const name="MemCommitTotal" value="10">
465 <desc>
466 Total amount of memory in the committed state in megabytes.
467 </desc>
468 </const>
469 <const name="MemKernelTotal" value="11">
470 <desc>
471 Total amount of memory used by the guest OS's kernel in megabytes.
472 </desc>
473 </const>
474 <const name="MemKernelPaged" value="12">
475 <desc>
476 Total amount of paged memory used by the guest OS's kernel in megabytes.
477 </desc>
478 </const>
479 <const name="MemKernelNonpaged" value="13">
480 <desc>
481 Total amount of nonpaged memory used by the guest OS's kernel in megabytes.
482 </desc>
483 </const>
484 <const name="MemSystemCache" value="14">
485 <desc>
486 Total amount of memory used by the guest OS's system cache in megabytes.
487 </desc>
488 </const>
489 <const name="PageFileSize" value="15">
490 <desc>
491 Pagefile size in megabytes.
492 </desc>
493 </const>
494 <const name="SampleNumber" value="16">
495 <desc>
496 Statistics sample number
497 </desc>
498 </const>
499 <const name="MaxVal" value="17"/>
500 </enum>
501
502 <!--
503 // IVirtualBoxErrorInfo
504 /////////////////////////////////////////////////////////////////////////
505 -->
506
507 <interface
508 name="IVirtualBoxErrorInfo" extends="$errorinfo"
509 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
510 supportsErrorInfo="no"
511 wsmap="suppress"
512 >
513 <desc>
514 The IVirtualBoxErrorInfo interface represent extended error information.
515
516 Such extended error information can be set by VirtualBox components
517 after unsuccessful method invocation. This can then be returned to the
518 client in addition to a plain result code.
519
520 In MS COM, this interface extends the IErrorInfo interface,
521 in XPCOM, it extends the nsIException interface. In both cases,
522 it provides a set of common attributes to retrieve error
523 information.
524
525 Sometimes invocation of some component's method may involve
526 methods of other components that may also fail (independently of
527 this method's failure), or a series of non-fatal errors may
528 precede a fatal error that causes method failure. In cases like
529 that, it may be desirable to preserve information about all errors
530 happened during method invocation and deliver it to the
531 caller. The <link to="#next"/> attribute is intended specifically
532 for this purpose and allows to represent a chain of errors through
533 a single IVirtualBoxErrorInfo instance set after method
534 invocation. Note that errors are stored to a chain in the reverse
535 order, i.e. the initial error object you query right after method
536 invocation is the last error set by the callee, the object it
537 points to in the @a next attribute is the previous error and so
538 on, up to the first error (which is the last in the chain).
539 </desc>
540
541 <attribute name="resultCode" type="result" readonly="yes">
542 <desc>
543 Result code of the error.
544 Usually, it will be the same as the result code returned
545 by the method that provided this error information, but not
546 always. For example, on Win32, CoCreateInstance() will most
547 likely return E_NOINTERFACE upon unsuccessful component
548 instantiation attempt, but not the value the component factory
549 returned.
550 <note>
551 In MS COM, there is no equivalent.
552 In XPCOM, it is the same as nsIException::result.
553 </note>
554 </desc>
555 </attribute>
556
557 <attribute name="interfaceID" type="uuid" readonly="yes">
558 <desc>
559 UUID of the interface that defined the error.
560 <note>
561 In MS COM, it is the same as IErrorInfo::GetGUID.
562 In XPCOM, there is no equivalent.
563 </note>
564 </desc>
565 </attribute>
566
567 <attribute name="component" type="wstring" readonly="yes">
568 <desc>
569 Name of the component that generated the error.
570 <note>
571 In MS COM, it is the same as IErrorInfo::GetSource.
572 In XPCOM, there is no equivalent.
573 </note>
574 </desc>
575 </attribute>
576
577 <attribute name="text" type="wstring" readonly="yes">
578 <desc>
579 Text description of the error.
580 <note>
581 In MS COM, it is the same as IErrorInfo::GetDescription.
582 In XPCOM, it is the same as nsIException::message.
583 </note>
584 </desc>
585 </attribute>
586
587 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
588 <desc>
589 Next error object if there is any, or @c null otherwise.
590 <note>
591 In MS COM, there is no equivalent.
592 In XPCOM, it is the same as nsIException::inner.
593 </note>
594 </desc>
595 </attribute>
596
597 </interface>
598
599
600 <!--
601 // IVirtualBox
602 /////////////////////////////////////////////////////////////////////////
603 -->
604
605 <interface
606 name="IVirtualBoxCallback" extends="$unknown"
607 uuid="ee95ffc2-b6c6-4ce8-9e9e-ceadbb5019fe"
608 wsmap="suppress"
609 >
610 <method name="onMachineStateChange">
611 <desc>
612 The execution state of the given machine has changed.
613 <see>IMachine::state</see>
614 </desc>
615 <param name="machineId" type="uuid" dir="in">
616 <desc>ID of the machine this event relates to.</desc>
617 </param>
618 <param name="state" type="MachineState" dir="in">
619 <desc>New execution state.</desc>
620 </param>
621 </method>
622
623 <method name="onMachineDataChange">
624 <desc>
625 Any of the settings of the given machine has changed.
626 </desc>
627 <param name="machineId" type="uuid" dir="in">
628 <desc>ID of the machine this event relates to.</desc>
629 </param>
630 </method>
631
632 <method name="onExtraDataCanChange">
633 <desc>
634 Notification when someone tries to change extra data for
635 either the given machine or (if null) global extra data.
636 This gives the chance to veto against changes.
637 </desc>
638 <param name="machineId" type="uuid" dir="in">
639 <desc>
640 ID of the machine this event relates to
641 (null ID for global extra data change requests).
642 </desc>
643 </param>
644 <param name="key" type="wstring" dir="in">
645 <desc>
646 Extra data key for the attempted write.
647 </desc>
648 </param>
649 <param name="value" type="wstring" dir="in">
650 <desc>
651 Extra data value for the given key.
652 </desc>
653 </param>
654 <param name="error" type="wstring" dir="out">
655 <desc>
656 Optional error message describing the reason of the
657 veto (ignored if this notification returns @c true).
658 </desc>
659 </param>
660 <param name="allowChange" type="boolean" dir="return">
661 <desc>
662 Flag to indicate whether the callee agrees (@ true)
663 or vetoes against the change (@ false).
664 </desc>
665 </param>
666 </method>
667
668 <method name="onExtraDataChange">
669 <desc>
670 Notification when machine specific or global extra data
671 has changed.
672 </desc>
673 <param name="machineId" type="uuid" dir="in">
674 <desc>
675 ID of the machine this event relates to.
676 Null for global extra data changes.
677 </desc>
678 </param>
679 <param name="key" type="wstring" dir="in">
680 <desc>
681 Extra data key that has changed.
682 </desc>
683 </param>
684 <param name="value" type="wstring" dir="in">
685 <desc>
686 Extra data value for the given key.
687 </desc>
688 </param>
689 </method>
690
691 <method name="onMediaRegistered">
692 <desc>
693 The given media was registered or unregistered
694 within this VirtualBox installation.
695
696 The @a mediaType parameter describes what type of
697 media the specified @a mediaId refers to. Possible
698 values are:
699
700 - <link to="HardDiskDevice"/>: the media is a hard disk
701 that, if registered, can be obtained using the
702 <link to="IVirtualBox::getHardDisk"/> call.
703 - <link to="DVDDevice"/>: the media is a CD/DVD image
704 that, if registered, can be obtained using the
705 <link to="IVirtualBox::getDVDImage"/> call.
706 - <link to="FloppyDevice"/>: the media is a Floppy image
707 that, if registered, can be obtained using the
708 <link to="IVirtualBox::getFloppyImage"/> call.
709
710 Note that if this is a deregistration notification,
711 there is no way to access the object representing the
712 unregistered media. It is supposed that the
713 application will do required cleanup based on the @a
714 mediaId value.
715 </desc>
716 <param name="mediaId" type="uuid" dir="in">
717 <desc>ID of the media this event relates to.</desc>
718 </param>
719 <param name="mediaType" type="DeviceType" dir="in">
720 <desc>Type of the media this event relates to.</desc>
721 </param>
722 <param name="registered" type="boolean" dir="in">
723 <desc>
724 If true, the media was registered, otherwise it was
725 unregistered.
726 </desc>
727 </param>
728 </method>
729
730 <method name="onMachineRegistered">
731 <desc>
732 The given machine was registered or unregistered
733 within this VirtualBox installation.
734 </desc>
735 <param name="machineId" type="uuid" dir="in">
736 <desc>ID of the machine this event relates to.</desc>
737 </param>
738 <param name="registered" type="boolean" dir="in">
739 <desc>
740 If true, the machine was registered, otherwise it was
741 unregistered.
742 </desc>
743 </param>
744 </method>
745
746 <method name="onSessionStateChange">
747 <desc>
748 The state of the session for the given machine was changed.
749 <see>IMachine::sessionState</see>
750 </desc>
751 <param name="machineId" type="uuid" dir="in">
752 <desc>ID of the machine this event relates to.</desc>
753 </param>
754 <param name="state" type="SessionState" dir="in">
755 <desc>New session state.</desc>
756 </param>
757 </method>
758
759 <method name="onSnapshotTaken">
760 <desc>
761 A new snapshot of the machine has been taken.
762 <see>ISnapshot</see>
763 </desc>
764 <param name="machineId" type="uuid" dir="in">
765 <desc>ID of the machine this event relates to.</desc>
766 </param>
767 <param name="snapshotId" type="uuid" dir="in">
768 <desc>ID of the new snapshot.</desc>
769 </param>
770 </method>
771
772 <method name="onSnapshotDiscarded">
773 <desc>
774 Snapshot of the given machine has been discarded.
775
776 <note>
777 This notification is delivered <b>after</b> the snapshot
778 object has been uninitialized on the server (so that any
779 attempt to call its methods will return an error).
780 </note>
781
782 <see>ISnapshot</see>
783 </desc>
784 <param name="machineId" type="uuid" dir="in">
785 <desc>ID of the machine this event relates to.</desc>
786 </param>
787 <param name="snapshotId" type="uuid" dir="in">
788 <desc>
789 ID of the discarded snapshot. <tt>null</tt> means the
790 current machine state has been discarded (restored from
791 the current snapshot).
792 </desc>
793 </param>
794 </method>
795
796 <method name="onSnapshotChange">
797 <desc>
798 Snapshot properties (name and/or description) have been changed.
799 <see>ISnapshot</see>
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="snapshotId" type="uuid" dir="in">
805 <desc>ID of the changed snapshot.</desc>
806 </param>
807 </method>
808
809 </interface>
810
811 <interface
812 name="IVirtualBox" extends="$dispatched"
813 uuid="64f652cb-7fdf-482d-ae19-4dbb289a5ca0"
814 wsmap="managed"
815 >
816 <desc> The main interface exposed by the product that provides virtual
817 machine management.
818
819 An instance of IVirtualBox is required for the product to do anything
820 useful. Even though the interface does not expose this, internally, IVirtualBox
821 is implemented as a singleton and actually lives in the process of the
822 VirtualBox server (VBoxSVC.exe). This makes sure that IVirtualBox can
823 track the state of all virtual machines on a particular host, regardless
824 of which frontend started them.
825
826 To enumerate all the virtual machines on the host, use the <link to="IVirtualBox::machines" />
827 attribute.</desc>
828
829 <attribute name="version" type="wstring" readonly="yes">
830 <desc>
831 A string representing the version number of the product. The
832 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
833 last number represents the build number and will frequently change.
834 </desc>
835 </attribute>
836
837 <attribute name="homeFolder" type="wstring" readonly="yes">
838 <desc>
839 Full path to the directory where the global settings file,
840 <tt>VirtualBox.xml</tt>, is stored.
841
842 In this version of VirtualBox, the value of this property is
843 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
844 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
845 as determined by the host OS), and cannot be changed.
846
847 This path is also used as the base to resolve relative paths in
848 places where relative paths are allowed (unless otherwise
849 expressly indicated).
850 </desc>
851 </attribute>
852
853 <attribute name="host" type="IHost" readonly="yes">
854 <desc>Associated host object.</desc>
855 </attribute>
856
857 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
858 <desc>Associated system information object.</desc>
859 </attribute>
860
861 <attribute name="machines" type="IMachineCollection" readonly="yes"/>
862
863 <attribute name="hardDisks" type="IHardDiskCollection" readonly="yes">
864 <desc>
865 A collection of hard disk objects registered within this
866 VirtualBox instance.
867 This collection contains only "top-level" (basic or independent)
868 hard disk images, but not differencing ones. All differencing
869 images of the given top-level image (i.e. all its children) can
870 be enumerated using <link to="IHardDisk::children"/>.
871 </desc>
872 </attribute>
873
874 <attribute name="DVDImages" type="IDVDImageCollection" readonly="yes"/>
875
876 <attribute name="FloppyImages" type="IFloppyImageCollection" readonly="yes"/>
877
878 <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
879
880 <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
881
882 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
883 <desc>
884 Collection of global shared folders. Global shared folders are
885 available to all virtual machines.
886
887 New shared folders are added to the collection using
888 <link to="#createSharedFolder"/>. Existing shared folders can be
889 removed using <link to="#removeSharedFolder"/>.
890
891 <note>
892 In the current version of the product, global shared folders are not
893 implemented and therefore this collection is always empty.
894 </note>
895 </desc>
896 </attribute>
897
898 <method name="createMachine">
899 <desc>
900 Creates a new virtual machine.
901
902 Every machine has a <i>settings file</i> that is used to store
903 the machine configuration. This file is stored in the directory
904 called <i>machine settings subfolder</i>. Both the subfolder
905 and the settings file have the same name that corresponds to the
906 name of the virtual machine. You can specify where
907 to create the machine settings subfolder using the @a
908 baseFolder argument. The base folder can be absolute (full path)
909 or relative to the <link to="IVirtualBox::homeFolder">
910 VirtualBox home directory</link>.
911
912 If a null or empty string is given as the base folder (which is
913 recommended), the <link to="ISystemProperties::defaultMachineFolder">
914 default machine settings folder</link> will be used as the base
915 folder to create the machine settings subfolder and file. In
916 any case, the full path to the settings file will look like:
917 <pre>
918 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml</pre>
919
920 Optionally the UUID of the machine can be predefined. If this is
921 not desired (i.e. a new UUID should be generated), pass just an
922 empty or null UUID.
923
924 Note that the configuration of the newly created machine is not
925 saved to disk (and therefore no settings subfolder and file are
926 created) until <link to="IMachine::saveSettings()"/> is called.
927
928 You should also specify a valid name for the machine.
929 See the <link to="IMachine::name"/> property
930 description for more details about the machine name.
931
932 The created machine remains
933 unregistered until you call <link to="#registerMachine()"/>.
934
935 <note>
936 There is no way to change the name of the settings file or
937 subfolder of the created machine directly.
938 </note>
939 </desc>
940 <param name="baseFolder" type="wstring" dir="in">
941 <desc>
942 Name of the folder where to create the machine settings
943 subfolder containing the settings file.
944 </desc>
945 </param>
946 <param name="name" type="wstring" dir="in">
947 <desc>Machine name.</desc>
948 </param>
949 <param name="id" type="uuid" dir="in">
950 <desc>
951 UUID of the newly created VM, when non-null or non-empty.
952 Otherwise a UUID is automatically generated.
953 </desc>
954 </param>
955 <param name="machine" type="IMachine" dir="return">
956 <desc>Created machine object.</desc>
957 </param>
958 </method>
959
960 <method name="createLegacyMachine">
961 <desc>
962 Creates a new virtual machine in "legacy" mode, using the
963 specified settings file to store machine settings.
964
965 As opposed to machines created by <link to="#createMachine()"/>,
966 the settings file of the machine created in "legacy" mode
967 is not automatically renamed when the machine name is
968 changed -- it will always remain the same as specified in this
969 method call.
970
971 The specified settings file name can be absolute
972 (full path) or relative to the <link to="IVirtualBox::homeFolder">
973 VirtualBox home directory</link>. If the file name doesn't
974 contain an extension, the default extension (.xml) will be
975 appended.
976
977 Optionally the UUID of the machine can be predefined. If this is
978 not desired (i.e. a new UUID should be generated), pass just an
979 empty or null UUID.
980
981 Note that the configuration of the newly created machine is not
982 saved to disk (and therefore no settings file is created)
983 until <link to="IMachine::saveSettings()"/> is called. If the
984 specified settings file already exists,
985 <link to="IMachine::saveSettings()"/> will return an error.
986
987 You should also specify a valid name for the machine.
988 See the <link to="IMachine::name"/> property
989 description for more details about the machine name.
990
991 The created machine remains
992 unregistered until you call <link to="#registerMachine()"/>.
993
994 @deprecated This method may be removed later. It is better
995 to use <link to="IVirtualBox::createMachine()"/>.
996
997 <note>
998 There is no way to change the name of the settings file
999 of the created machine.
1000 </note>
1001 </desc>
1002 <param name="settingsFile" type="wstring" dir="in">
1003 <desc>
1004 Name of the file where to store machine settings.
1005 </desc>
1006 </param>
1007 <param name="name" type="wstring" dir="in">
1008 <desc>Machine name.</desc>
1009 </param>
1010 <param name="id" type="uuid" dir="in">
1011 <desc>
1012 UUID of the newly created VM, when non-null or non-empty.
1013 Otherwise a UUID is automatically generated.
1014 </desc>
1015 </param>
1016 <param name="machine" type="IMachine" dir="return">
1017 <desc>Created machine object.</desc>
1018 </param>
1019 </method>
1020
1021 <method name="openMachine">
1022 <desc>
1023 Opens a virtual machine from the existing settings file.
1024 The opened machine remains unregistered until you call
1025 <link to="#registerMachine()"/>.
1026
1027 The specified settings file name can be absolute
1028 (full path) or relative to the <link to="IVirtualBox::homeFolder">
1029 VirtualBox home directory</link>. This file must exist
1030 and must be a valid machine settings file whose contents
1031 will be used to construct the machine object.
1032
1033 @deprecated Will be removed soon.
1034 </desc>
1035 <param name="settingsFile" type="wstring" dir="in">
1036 <desc>
1037 Name of the machine settings file.
1038 </desc>
1039 </param>
1040 <param name="machine" type="IMachine" dir="return">
1041 <desc>Opened machine object.</desc>
1042 </param>
1043 <note>
1044 <link to="IMachine::settingsModified"/> will return
1045 false for the created machine, until any of machine settigs
1046 are changed.
1047 </note>
1048 </method>
1049
1050 <method name="registerMachine">
1051 <desc>
1052
1053 Registers the machine previously created using
1054 <link to="#createMachine()"/> or opened using
1055 <link to="#openMachine()"/> within this VirtualBox installation. After
1056 successful method invocation, the
1057 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1058 to all registered callbacks.
1059
1060 <note>
1061 This method implicitly calls <link to="IMachine::saveSettings"/>
1062 to save all current machine settings before registering it.
1063 </note>
1064
1065 </desc>
1066 <param name="machine" type="IMachine" dir="in"/>
1067 </method>
1068
1069 <method name="getMachine">
1070 <desc>
1071 Attempts to find a virtual machine given its UUID.
1072 To look up a machine by name, use <link to="IVirtualBox::findMachine" /> instead.
1073 </desc>
1074 <param name="id" type="uuid" dir="in"/>
1075 <param name="machine" type="IMachine" dir="return"/>
1076 </method>
1077
1078 <method name="findMachine">
1079 <desc>
1080 Attempts to find a virtual machine given its name.
1081 To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> instead.
1082 </desc>
1083 <param name="name" type="wstring" dir="in"/>
1084 <param name="machine" type="IMachine" dir="return"/>
1085 </method>
1086
1087 <method name="unregisterMachine">
1088 <desc>
1089
1090 Unregisters the machine previously registered using
1091 <link to="#registerMachine"/>. After successful method invocation, the
1092 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
1093 to all registered callbacks.
1094
1095 <note>
1096 The specified machine must not be in the Saved state, have an open
1097 (or a spawning) direct session associated with it, have snapshots or
1098 have hard disks attached.
1099 </note>
1100
1101 <note>
1102 This method implicitly calls <link to="IMachine::saveSettings"/> to
1103 save all current machine settings before unregistering it.
1104 </note>
1105
1106 <note>
1107 If the given machine is inaccessible (see
1108 <link to="IMachine::accessible"/>), it will be unregistered and
1109 fully uninitialized right afterwards. As a result, the returned
1110 machine object will be unusable and an attempt to call
1111 <b>any</b> method will return the "Object not ready" error.
1112 </note>
1113
1114 </desc>
1115 <param name="id" type="uuid" dir="in">
1116 <desc>UUID of the machine to unregister.</desc>
1117 </param>
1118 <param name="machine" type="IMachine" dir="return">
1119 <desc>Unregistered machine object.</desc>
1120 </param>
1121 </method>
1122
1123 <method name="createHardDisk">
1124 <desc>
1125
1126 Creates a new unregistered hard disk that will use the given
1127 storage type.
1128
1129 Most properties of the created hard disk object are
1130 uninitialized. Valid values must be assigned to them (and probalby
1131 some actions performed) to make the actual usage of this hard disk
1132 (<link to="#registerHardDisk()">register</link>, attach to a virtual
1133 machine, etc.). See the description of <link to="IHardDisk"/> and
1134 descriptions of storage type specific interfaces for more information.
1135
1136 <note>
1137 For hard disks using
1138 the <link
1139 to="HardDiskStorageType::VirtualDiskImage">VirtualDiskImage</link>
1140 storage type, an image file is not actually created until you call
1141 <link to="IVirtualDiskImage::createDynamicImage()"/> or
1142 <link to="IVirtualDiskImage::createFixedImage()"/>.
1143 </note>
1144
1145 </desc>
1146
1147 <param name="storageType" type="HardDiskStorageType" dir="in">
1148 <desc>Storage type of the hard disk image to create.</desc>
1149 </param>
1150 <param name="hardDisk" type="IHardDisk" dir="return">
1151 <desc>Created hard disk object of the given storage type.</desc>
1152 </param>
1153
1154 </method>
1155
1156 <method name="openHardDisk">
1157 <desc>
1158
1159 Opens a hard disk from an existing location.
1160
1161 This method tries to guess the
1162 <link to="HardDiskStorageType">hard disk storage type</link> from the
1163 format of the location string and from the contents of the resource the
1164 location points to. Currently, a <i>file path</i> is the only
1165 supported format for the location string which must point to either a
1166 VDI file or to a VMDK file. On success, an IHardDisk object will be
1167 returned that also implements the corresponding interface
1168 (IVirtualDiskImage or IVMDKImage, respectively). The
1169 <link to="IHardDisk::storageType"/> property may also be used to
1170 determine the storage type of the returned object (instead of trying
1171 to query one of these interfaces).
1172
1173 <note>
1174 The specified file path can be absolute (full path) or relative to
1175 the <link to="IVirtualBox::homeFolder">VirtualBox home
1176 directory</link>. If only a file name without any path is given,
1177 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
1178 folder</link> will be used as a path to the image file.
1179 </note>
1180
1181 The opened hard disk remains unregistered
1182 until <link to="#registerHardDisk()"/> is called.
1183
1184 </desc>
1185
1186 <param name="location" type="wstring" dir="in">
1187 <desc>
1188 Location of the resource that contains a valid hard disk.
1189 </desc>
1190 </param>
1191 <param name="hardDisk" type="IHardDisk" dir="return">
1192 <desc>Opened hard disk object.</desc>
1193 </param>
1194 </method>
1195
1196 <method name="openVirtualDiskImage">
1197 <desc>
1198
1199 Opens a hard disk from an existing Virtual Disk Image file.
1200 The opened hard disk remains unregistered
1201 until <link to="#registerHardDisk()"/> is called.
1202
1203 @deprecated Use <link to="IVirtualBox::openHardDisk()"/> instead.
1204
1205 <note>Opening differencing images is not supported.</note>
1206
1207 <note>The specified file path can be absolute (full path) or
1208 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1209 home directory</link>. If only a file name without any path is
1210 given, the <link to="ISystemProperties::defaultVDIFolder">
1211 default VDI folder</link> will be used as a path to the image
1212 file.</note>
1213
1214 </desc>
1215
1216 <param name="filePath" type="wstring" dir="in">
1217 <desc>
1218 Name of the file that contains a valid Virtual Disk Image.
1219 </desc>
1220 </param>
1221 <param name="image" type="IVirtualDiskImage" dir="return">
1222 <desc>Opened hard disk object.</desc>
1223 </param>
1224 </method>
1225
1226 <method name="registerHardDisk">
1227 <desc>
1228
1229 Registers the given hard disk within this VirtualBox
1230 installation. The hard disk must not be registered, must be
1231 <link to="IHardDisk::accessible"/> and must not be a
1232 differencing hard disk, otherwise the registration will fail.
1233
1234 </desc>
1235 <param name="hardDisk" type="IHardDisk" dir="in">
1236 <desc>Hard disk object to register.</desc>
1237 </param>
1238 </method>
1239
1240 <method name="getHardDisk" const="yes">
1241 <desc>
1242 Returns the registered hard disk with the given UUID.
1243 </desc>
1244 <param name="id" type="uuid" dir="in">
1245 <desc>UUID of the hard disk to look for.</desc>
1246 </param>
1247 <param name="hardDisk" type="IHardDisk" dir="return">
1248 <desc>Found hard disk object.</desc>
1249 </param>
1250 </method>
1251
1252 <method name="findHardDisk">
1253 <desc>
1254
1255 Returns a registered hard disk that uses the given location to
1256 store data. The search is done by comparing the
1257 value of the @a location argument to the
1258 <link to="IHardDisk::location"/> attribute of each registered
1259 hard disk.
1260
1261 For locations repesented by file paths (such as VDI and VMDK
1262 images), the specified location can be either an absolute file
1263 path or a path relative to
1264 the <link to="IVirtualBox::homeFolder"> VirtualBox home
1265 directory</link>. If only a file name without any path is
1266 given, the <link to="ISystemProperties::defaultVDIFolder">
1267 default VDI folder</link> will be used as a path to construct
1268 the absolute image file name to search for. Note that on host
1269 systems with case sensitive filesystems, a case sensitive
1270 comparison is performed, otherwise the case of symbols in the
1271 file path is ignored.
1272
1273 </desc>
1274 <param name="location" type="wstring" dir="in">
1275 <desc>Hard disk location specification to search for.</desc>
1276 </param>
1277 <param name="hardDisk" type="IHardDisk" dir="return">
1278 <desc>Found hard disk object.</desc>
1279 </param>
1280 </method>
1281
1282 <method name="findVirtualDiskImage">
1283 <desc>
1284
1285 Returns a registered hard disk that uses the given image file.
1286
1287 @deprecated Use <link to="IVirtualBox::findHardDisk()"/> instead.
1288
1289 <note>The specified file path can be absolute (full path) or
1290 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1291 home directory</link>. If only a file name without any path is
1292 given, the <link to="ISystemProperties::defaultVDIFolder">
1293 default VDI folder</link> will be used as a path to the image
1294 file.</note>
1295
1296 <note>On host systems with case sensitive filesystems, a case
1297 sensitive comparison is performed, otherwise the case of symbols
1298 in the file path is ignored.</note>
1299
1300 </desc>
1301 <param name="filePath" type="wstring" dir="in">
1302 <desc>Virtual Disk Image file path to look for.</desc>
1303 </param>
1304 <param name="image" type="IVirtualDiskImage" dir="return">
1305 <desc>Found hard disk object.</desc>
1306 </param>
1307 </method>
1308
1309 <method name="unregisterHardDisk">
1310 <desc>
1311 Unregisters a hard disk previously registered using
1312 <link to="#registerHardDisk()"/>.
1313 <note>
1314 The specified hard disk must not be attached to any of
1315 the existing virtual machines and must not have children
1316 (differencing) hard disks.
1317 </note>
1318 </desc>
1319 <param name="id" type="uuid" dir="in">
1320 <desc>UUID of the hard disk to unregister.</desc>
1321 </param>
1322 <param name="hardDisk" type="IHardDisk" dir="return">
1323 <desc>Unregistered hard disk object.</desc>
1324 </param>
1325 </method>
1326
1327 <method name="openDVDImage">
1328 <desc>
1329 Opens the CD/DVD image contained in the specified file of
1330 the supported format and assigns it the given UUID. The opened
1331 image remains unregistered
1332 until <link to="#registerDVDImage()"/> is called.
1333 </desc>
1334 <param name="filePath" type="wstring" dir="in">
1335 <desc>
1336 Full name of the file that contains a valid
1337 CD/DVD image. Currently, only ISO images are supported.
1338 <note>
1339 The specified file name can be absolute or relative
1340 to the <link to="IVirtualBox::homeFolder">
1341 VirtualBox home directory</link>.
1342 </note>
1343 </desc>
1344 </param>
1345 <param name="id" type="uuid" dir="in">
1346 <desc>
1347 UUID to assign to the given image file within this
1348 VirtualBox installation. If an empty (null) UUID is
1349 specified, the system will randomly generate an UUID.
1350 </desc>
1351 </param>
1352 <param name="image" type="IDVDImage" dir="return">
1353 <desc>Opened CD/DVD image object.</desc>
1354 </param>
1355 </method>
1356
1357 <method name="registerDVDImage">
1358 <desc>
1359 Registers a CD/DVD image within this VirtualBox
1360 installation. The image must not be registered and must not
1361 be associated with the same image file as any of the already
1362 registered images, otherwise the registration will fail.
1363 </desc>
1364 <param name="image" type="IDVDImage" dir="in">
1365 <desc>CD/DVD image object to register.</desc>
1366 </param>
1367 </method>
1368
1369 <method name="getDVDImage">
1370 <desc>
1371 Returns a registered CD/DVD image with the given UUID.
1372 </desc>
1373 <param name="id" type="uuid" dir="in">
1374 <desc>UUID of the image to look for.</desc>
1375 </param>
1376 <param name="image" type="IDVDImage" dir="return">
1377 <desc>Found CD/DVD image object.</desc>
1378 </param>
1379 </method>
1380
1381 <method name="findDVDImage">
1382 <desc>
1383 Returns a registered CD/DVD image with the given image file.
1384 <note>
1385 On host systems with case sensitive filesystems, a case
1386 sensitive comparison is performed, otherwise the case of
1387 symbols in the file path is ignored.
1388 </note>
1389 </desc>
1390 <param name="filePath" type="wstring" dir="in">
1391 <desc>CD/DVD image file path to look for.</desc>
1392 </param>
1393 <param name="image" type="IDVDImage" dir="return">
1394 <desc>Found CD/DVD image object.</desc>
1395 </param>
1396 </method>
1397
1398 <method name="getDVDImageUsage">
1399 <desc>
1400 Returns the list of of UUIDs of all virtual machines that use
1401 the given CD/DVD image.
1402 </desc>
1403 <param name="id" type="uuid" dir="in">
1404 <desc>UUID of the image to get the usage information for.</desc>
1405 </param>
1406 <param name="usage" type="ResourceUsage" dir="in">
1407 <desc>Type of the usage (permanent, temporary or all).</desc>
1408 </param>
1409 <param name="machineIDs" type="wstring" dir="return">
1410 <desc>
1411 List of UUIDs of all machines that use the given image
1412 in the way specified by the usage parameter.
1413 The list is returned as a string containing UUIDs separated
1414 by spaces. A null string means that the image is not used.
1415 <note>
1416 When the usage type is <link to="ResourceUsage::AllUsage"/>
1417 and the image is used by the VM both permanently
1418 and temporarily, the VM's UUID will be present only
1419 once in the list.
1420 </note>
1421 </desc>
1422 </param>
1423 </method>
1424
1425 <method name="unregisterDVDImage">
1426 <desc>
1427 Unregisters the CD/DVD image previously registered using
1428 <link to="#registerDVDImage()"/>.
1429 <note>
1430 The specified image must not be mounted to any of
1431 the existing virtual machines.
1432 </note>
1433 </desc>
1434 <param name="id" type="uuid" dir="in">
1435 <desc>UUID of the CD/DVD image to unregister.</desc>
1436 </param>
1437 <param name="image" type="IDVDImage" dir="return">
1438 <desc>Unregistered image object.</desc>
1439 </param>
1440 </method>
1441
1442 <method name="openFloppyImage">
1443 <desc>
1444 Opens a floppy image contained in the specified file of
1445 the supported format and assigns it the given UUID. The opened
1446 image remains unregistered
1447 until <link to="#registerFloppyImage()"/> is called.
1448 </desc>
1449 <param name="filePath" type="wstring" dir="in">
1450 <desc>
1451 Full name of the file that contains a valid
1452 floppy image.
1453 <note>
1454 The specified file name can be absolute or relative
1455 to the <link to="IVirtualBox::homeFolder">
1456 VirtualBox home directory</link>.
1457 </note>
1458 </desc>
1459 </param>
1460 <param name="id" type="uuid" dir="in">
1461 <desc>
1462 UUID to assign to the given image file within this
1463 VirtualBox installation. If an empty (null) UUID is
1464 specified, the system will randomly generate an UUID.
1465 </desc>
1466 </param>
1467 <param name="image" type="IFloppyImage" dir="return">
1468 <desc>Opened CD/DVD image object.</desc>
1469 </param>
1470 </method>
1471
1472 <method name="registerFloppyImage">
1473 <desc>
1474 Registers a floppy image within this VirtualBox
1475 installation. The image must not be registered and must not
1476 be associated with the same image file as any of the already
1477 registered images, otherwise the registration will fail.
1478 </desc>
1479 <param name="image" type="IFloppyImage" dir="in">
1480 <desc>Floppy image object to register.</desc>
1481 </param>
1482 </method>
1483
1484 <method name="getFloppyImage">
1485 <desc>
1486 Returns a registered floppy image with the given UUID.
1487 </desc>
1488 <param name="id" type="uuid" dir="in">
1489 <desc>UUID of the image to look for.</desc>
1490 </param>
1491 <param name="image" type="IFloppyImage" dir="return">
1492 <desc>Found floppy image object.</desc>
1493 </param>
1494 </method>
1495
1496 <method name="findFloppyImage">
1497 <desc>
1498 Returns a registered floppy image with the given image file.
1499 <note>
1500 On host systems with case sensitive filesystems, a case
1501 sensitive comparison is performed, otherwise the case of
1502 symbols in the file path is ignored.
1503 </note>
1504 </desc>
1505 <param name="filePath" type="wstring" dir="in">
1506 <desc>Floppy image file path to look for.</desc>
1507 </param>
1508 <param name="image" type="IFloppyImage" dir="return">
1509 <desc>Found floppy image object.</desc>
1510 </param>
1511 </method>
1512
1513 <method name="getFloppyImageUsage">
1514 <desc>
1515 Returns the list of of UUIDs of all virtual machines that use
1516 the given floppy image.
1517 </desc>
1518 <param name="id" type="uuid" dir="in">
1519 <desc>UUID of the image to get the usage information for.</desc>
1520 </param>
1521 <param name="usage" type="ResourceUsage" dir="in">
1522 <desc>Type of the usage (permanent, temporary or all).</desc>
1523 </param>
1524 <param name="machineIDs" type="wstring" dir="return">
1525 <desc>
1526 List of UUIDs of all machines that use the given image
1527 in the way specified by the usage parameter.
1528 The list is returned as a string containing UUIDs separated
1529 by spaces. A null string means that the image is not used.
1530 <note>
1531 When the usage type is <link to="ResourceUsage::AllUsage"/>
1532 and the image is used by the VM both permanently
1533 and temporarily, the VM's UUID will be present only
1534 once in the list.
1535 </note>
1536 </desc>
1537 </param>
1538 </method>
1539
1540 <method name="unregisterFloppyImage">
1541 <desc>
1542 Unregisters the floppy image previously registered using
1543 <link to="#registerFloppyImage()"/>.
1544 <note>
1545 The specified image must not be mounted to any of
1546 the existing virtual machines.
1547 </note>
1548 </desc>
1549 <param name="id" type="uuid" dir="in">
1550 <desc>UUID of the floppy image to unregister.</desc>
1551 </param>
1552 <param name="image" type="IFloppyImage" dir="return">
1553 <desc>Unregistered image object.</desc>
1554 </param>
1555 </method>
1556
1557 <method name="getGuestOSType">
1558 <param name="id" type="wstring" dir="in"/>
1559 <param name="type" type="IGuestOSType" dir="return"/>
1560 </method>
1561
1562 <method name="createSharedFolder">
1563 <desc>
1564 Creates a new global shared folder by associating the given logical
1565 name with the given host path, adds it to the collection of shared
1566 folders and starts sharing it. Refer to the description of
1567 <link to="ISharedFolder"/> to read more about logical names.
1568 </desc>
1569 <param name="name" type="wstring" dir="in">
1570 <desc>Unique logical name of the shared folder.</desc>
1571 </param>
1572 <param name="hostPath" type="wstring" dir="in">
1573 <desc>Full path to the shared folder in the host file system.</desc>
1574 </param>
1575 </method>
1576
1577 <method name="removeSharedFolder">
1578 <desc>
1579 Removes the global shared folder with the given name previously
1580 created by <link to="#createSharedFolder"/> from the collection of
1581 shared folders and stops sharing it.
1582 </desc>
1583 <param name="name" type="wstring" dir="in">
1584 <desc>Logical name of the shared folder to remove.</desc>
1585 </param>
1586 </method>
1587
1588 <method name="getNextExtraDataKey">
1589 <desc>
1590 Returns the global extra data key name following the supplied key.
1591
1592 An error is returned if the supplied @a key does not exist. @c NULL is
1593 returned in @a nextKey if the supplied key is the last key. When
1594 supplying @c NULL for the @a key, the first key item is returned in @a
1595 nextKey (if there is any). @a nextValue is an optional parameter and
1596 if supplied, the next key's value is returned in it.
1597 </desc>
1598 <param name="key" type="wstring" dir="in">
1599 <desc>Name of the data key to follow.</desc>
1600 </param>
1601 <param name="nextKey" type="wstring" dir="out">
1602 <desc>Name of the next data key.</desc>
1603 </param>
1604 <param name="nextValue" type="wstring" dir="out">
1605 <desc>Value of the next data key.</desc>
1606 </param>
1607 </method>
1608
1609 <method name="getExtraData">
1610 <desc>
1611 Returns associated global extra data.
1612
1613 If the reuqested data @a key does not exist, this function will
1614 succeed and return @c NULL in the @a value argument.
1615 </desc>
1616 <param name="key" type="wstring" dir="in">
1617 <desc>Name of the data key to get.</desc>
1618 </param>
1619 <param name="value" type="wstring" dir="return">
1620 <desc>Value of the requested data key.</desc>
1621 </param>
1622 </method>
1623
1624 <method name="setExtraData">
1625 <desc>
1626 Sets associated global extra data.
1627
1628 If you pass @c NULL as a key @a vaule, the given @a key will be
1629 deleted.
1630
1631 <note>
1632 Before performing the actual data change, this method will ask all
1633 registered callbacks using the
1634 <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
1635 notification for a permission. If one of the callbacks refuses the
1636 new value, the change will not be performed.
1637 </note>
1638 <note>
1639 On success, the
1640 <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
1641 is called to inform all registered callbacks about a successful data
1642 change.
1643 </note>
1644 </desc>
1645 <param name="key" type="wstring" dir="in">
1646 <desc>Name of the data key to set.</desc>
1647 </param>
1648 <param name="value" type="wstring" dir="in">
1649 <desc>Value to assign to the key.</desc>
1650 </param>
1651 </method>
1652
1653 <method name="openSession">
1654 <desc>
1655 Opens a new direct session with the given virtual machine.
1656
1657 Within the direct session context, it is possible to change
1658 all VM settings, as well as to execute the VM in the process
1659 space of the session object. There can be only one direct
1660 session open at a time for every virtual machine.
1661
1662 Upon successful return, the session object can be used to
1663 get access to the machine and to the VM console.
1664 </desc>
1665 <param name="session" type="ISession" dir="in">
1666 <desc>
1667 Session object that will represent the opened session after
1668 successful method invocation. This object must not represent
1669 the already open session.
1670 <note>
1671 This session will be automatically closed if the
1672 VirtualBox server is terminated for some reason.
1673 </note>
1674 </desc>
1675 </param>
1676 <param name="machineId" type="uuid" dir="in">
1677 <desc>ID of the virtual machine to open a session with.</desc>
1678 </param>
1679 </method>
1680
1681 <method name="openRemoteSession">
1682 <desc>
1683 Opens a new remote session with the given virtual
1684 machine.
1685
1686 Opening a remote session causes the VirtualBox server to start a new
1687 process that opens a direct session with the given VM. The remote
1688 session provides some level of control over the VM execution to the
1689 caller (using the IConsole interface); however, within the remote
1690 session context, not all VM settings are available for modification.
1691
1692 This operation can take some time, so the progress object
1693 is returned to let the caller be informed when the session is
1694 actually open. Until then, the remote session object remains in
1695 the closed state and accessing the machine or its console through
1696 it is invalid.
1697
1698 Currently supported session types (values of the @a type
1699 argument) are:
1700 <ul>
1701 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
1702 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
1703 </ul>
1704
1705 The @a environment argument is a string containing definitions of
1706 environment variables in the following format:
1707 @code
1708 NAME[=VALUE]\n
1709 NAME[=VALUE]\n
1710 ...
1711 @endcode
1712 where <tt>\\n</tt> is the new line character. These environment
1713 variables will be appended to the environment of the VirtualBox server
1714 process. If an environment variable exists both in the server process
1715 and in this list, the value from this list takes precedence over the
1716 server's variable. If the value of the environment variable is
1717 omitted, this variable will be removed from the resulting environment.
1718 If the environment string is @c null, the server environment is
1719 inherited by the started process as is.
1720
1721 <note>
1722 It is an error to open a remote session with the machine
1723 that already has an open direct session or waits until the
1724 previous request to open the remote session is completed
1725 (see <link to="IMachine::sessionState"/>).
1726 </note>
1727
1728 <note>
1729 The opened @a session will be automatically closed when
1730 the corresponding direct session dies or gets closed.
1731 </note>
1732
1733 <see>openExistingSession</see>
1734 </desc>
1735 <param name="session" type="ISession" dir="in">
1736 <desc>
1737 Session object that will represent the opened remote session
1738 after successful method invocation (this object must not
1739 represent an already open session).
1740 </desc>
1741 </param>
1742 <param name="machineId" type="uuid" dir="in">
1743 <desc>ID of the virtual machine to open a session with.</desc>
1744 </param>
1745 <param name="type" type="wstring" dir="in">
1746 <desc>
1747 Type of the remote session (case sensitive).
1748 </desc>
1749 </param>
1750 <param name="environment" type="wstring" dir="in">
1751 <desc>
1752 Environment to pass to the opened session (may be @c null).
1753 </desc>
1754 </param>
1755 <param name="progress" type="IProgress" dir="return">
1756 <desc>Progress object to track the operation completion.</desc>
1757 </param>
1758 </method>
1759
1760 <method name="openExistingSession">
1761 <desc>
1762 Opens a new remote session with the virtual machine for
1763 which a direct session is already open.
1764
1765 The remote session provides some level of control over the VM
1766 execution (using the IConsole interface) to the caller; however,
1767 within the remote session context, not all VM settings are available
1768 for modification.
1769
1770 As opposed to <link to="#openRemoteSession()"/>, the number of
1771 remote sessions opened this way is not limited by the API
1772
1773 <note>
1774 It is an error to open a remote session with the machine that
1775 doesn't have an open direct session.
1776 </note>
1777
1778 <see>openRemoteSession</see>
1779 </desc>
1780 <param name="session" type="ISession" dir="in">
1781 <desc>
1782 Session object that will represent the open remote session
1783 after successful method invocation. This object must not
1784 represent an already open session.
1785 <note>
1786 This session will be automatically closed when the peer
1787 (direct) session dies or gets closed.
1788 </note>
1789 </desc>
1790 </param>
1791 <param name="machineId" type="uuid" dir="in">
1792 <desc>ID of the virtual machine to open a session with.</desc>
1793 </param>
1794 </method>
1795
1796 <method name="registerCallback">
1797 <desc>
1798 Registers a new global VirtualBox callback. The methods of the given
1799 callback object will be called by VirtualBox when an appropriate
1800 event occurs.
1801 </desc>
1802 <param name="callback" type="IVirtualBoxCallback" dir="in">
1803 <desc>Callback object to register.</desc>
1804 </param>
1805 </method>
1806
1807 <method name="unregisterCallback">
1808 <desc>
1809 Unregisters the previously registered global VirtualBox callback.
1810 </desc>
1811 <param name="callback" type="IVirtualBoxCallback" dir="in">
1812 <desc>Callback object to unregister.</desc>
1813 </param>
1814 </method>
1815
1816 <method name="waitForPropertyChange">
1817 <desc>
1818 Blocks the caller until any of the properties represented by the @a
1819 what argument changes the value or until the given timeout interval
1820 expires.
1821
1822 The @a what argument is a comma separated list of propertiy masks that
1823 describe properties the caller is interested in. The property mask is
1824 a string in the following format:
1825
1826 @code
1827 [[group.]subgroup.]name
1828 @endcode
1829
1830 where @c name is the property name and @c group, @c subgroup are zero
1831 or or more property group specifiers. Each element (group or name) in
1832 the property mask may be either a latin string or an asterisk symbol
1833 (@c "*") which is used to match any string for the given element. A
1834 property mask that doesn't contain asterisk symbols represents a
1835 single fully qualified property name.
1836
1837 Groups in the fully qualified property name go from more generic (the
1838 left-most part) to more specific (the right-most part). The first
1839 element is usually a name of the object the property belongs to. The
1840 second element may be either a property name, or a child object name,
1841 or an index if the preceeding element names an object which is one of
1842 many objects of the same type. This way, property names form a
1843 hierarchy of properties. Here are some examples of property names:
1844
1845 <table>
1846 <tr>
1847 <td><tt>VirtualBox.version</tt></td>
1848 <td><link to="IVirtualBox::version"/> property</td>
1849 </tr>
1850 <tr>
1851 <td><tt>Machine.&lt;UUID&gt;.name</tt></td>
1852 <td><link to="IMachine::name"/> property of the machine with the
1853 given UUID</td>
1854 </tr>
1855 </table>
1856
1857 Most property names directly correspond to the properties of objects
1858 (components) provided by the VirtualBox library and may be used to
1859 track changes to these properties. However, there may be
1860 pseudo-property names that don't correspond to any existing object's
1861 property directly, as well as there may be object properties that
1862 don't have a corresponding property name that is understood by this
1863 method, and therefore changes to such properties cannot be
1864 tracked. See individual object's property descrcriptions to get a
1865 fully qualified property name that can be used with this method (if
1866 any).
1867
1868 There is a special property mask @c "*" (i.e. a string consisting of a
1869 single asterisk symbol) that can be used to match all properties.
1870 Below are more examples of property masks:
1871
1872 <table>
1873 <tr>
1874 <td><tt>VirtualBox.*</tt></td>
1875 <td>Track all properties of the VirtualBox object</td>
1876 </tr>
1877 <tr>
1878 <td><tt>Machine.*.name</tt></td>
1879 <td>Track changes to the <link to="IMachine::name"/> property of
1880 all registered virtual machines</td>
1881 </tr>
1882 </table>
1883
1884 </desc>
1885 <param name="what" type="wstring" dir="in">
1886 <desc>Comma separated list of property masks.</desc>
1887 </param>
1888 <param name="timeout" type="unsigned long" dir="in">
1889 <desc>
1890 Wait timeout in milliseconds.
1891 Specify -1 for an indefinite wait.
1892 </desc>
1893 </param>
1894 <param name="changed" type="wstring" dir="out">
1895 <desc>
1896 Comma separated list of properties that have been changed and caused
1897 this method to return to the caller.
1898 </desc>
1899 </param>
1900 <param name="values" type="wstring" dir="out">
1901 <desc>Reserved, not currently used.</desc>
1902 </param>
1903 </method>
1904
1905 </interface>
1906
1907 <!--
1908 // IMachine
1909 /////////////////////////////////////////////////////////////////////////
1910 -->
1911
1912 <enumerator
1913 name="IMachineEnumerator" type="IMachine"
1914 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
1915 />
1916
1917 <collection
1918 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
1919 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
1920 readonly="yes"
1921 />
1922
1923 <interface
1924 name="IInternalMachineControl" extends="$unknown"
1925 uuid="1063893c-4c38-4304-aee9-73e072c181cc"
1926 internal="yes"
1927 wsmap="suppress"
1928 >
1929 <method name="updateState">
1930 <desc>
1931 Updates the VM state.
1932 <note>
1933 This operation will also update the settings file with
1934 the correct information about the saved state file
1935 and delete this file from disk when appropriate.
1936 </note>
1937 </desc>
1938 <param name="state" type="MachineState" dir="in"/>
1939 </method>
1940
1941 <method name="getIPCId">
1942 <param name="id" type="wstring" dir="return"/>
1943 </method>
1944
1945 <method name="runUSBDeviceFilters">
1946 <desc>
1947 Asks the server to run USB devices filters of the associated
1948 machine against the given USB device and tell if there is
1949 a match.
1950 <note>
1951 Intended to be used only for remote USB devices. Local
1952 ones don't require to call this method (this is done
1953 implicitly by the Host and USBProxyService).
1954 </note>
1955 </desc>
1956 <param name="device" type="IUSBDevice" dir="in"/>
1957 <param name="matched" type="boolean" dir="out"/>
1958 <param name="maskedInterfaces" type="unsigned long" dir="out"/>
1959 </method>
1960
1961 <method name="captureUSBDevice">
1962 <desc>
1963 Requests a capture of the given host USB device.
1964 When the request is completed, the VM process will
1965 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
1966 notification.
1967 </desc>
1968 <param name="id" type="uuid" dir="in"/>
1969 </method>
1970
1971 <method name="detachUSBDevice">
1972 <desc>
1973 Notification that a VM is going to detach (done = false) or has
1974 already detached (done = true) the given USB device.
1975 When the done = true request is completed, the VM process will
1976 get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
1977 notification.
1978 <note>
1979 In the done = true case, the server must run its own filters
1980 and filters of all VMs but this one on the detached device
1981 as if it were just attached to the host computer.
1982 </note>
1983 </desc>
1984 <param name="id" type="uuid" dir="in"/>
1985 <param name="done" type="boolean" dir="in"/>
1986 </method>
1987
1988 <method name="autoCaptureUSBDevices">
1989 <desc>
1990 Requests a capture all matching USB devices attached to the host.
1991 When the request is completed, the VM process will
1992 get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
1993 notification per every captured device.
1994 </desc>
1995 </method>
1996
1997 <method name="detachAllUSBDevices">
1998 <desc>
1999 Notification that a VM that is being powered down. The done
2000 parameter indicates whether which stage of the power down
2001 we're at. When done = false the VM is announcing its
2002 intentions, while when done = true the VM is reporting
2003 what it has done.
2004 <note>
2005 In the done = true case, the server must run its own filters
2006 and filters of all VMs but this one on all detach devices as
2007 if they were just attached to the host computer.
2008 </note>
2009 </desc>
2010 <param name="done" type="boolean" dir="in"/>
2011 </method>
2012
2013 <method name="onSessionEnd">
2014 <desc>
2015 Triggered by the given session object when the session is about
2016 to close normally.
2017 </desc>
2018 <param name="session" type="ISession" dir="in">
2019 <desc>Session that is being closed</desc>
2020 </param>
2021 <param name="progress" type="IProgress" dir="return">
2022 <desc>
2023 Used to wait until the corresponding machine is actually
2024 deassociated from the given session on the server.
2025 Returned only when this session is a direct one.
2026 </desc>
2027 </param>
2028 </method>
2029
2030 <method name="beginSavingState">
2031 <desc>
2032 Called by the VM process to inform the server it wants to
2033 save the current state and stop the VM execution.
2034 </desc>
2035 <param name="progress" type="IProgress" dir="in">
2036 <desc>
2037 Progress object created by the VM process to wait until
2038 the state is saved.
2039 </desc>
2040 </param>
2041 <param name="stateFilePath" type="wstring" dir="out">
2042 <desc>
2043 File path the VM process must save the execution state to.
2044 </desc>
2045 </param>
2046 </method>
2047
2048 <method name="endSavingState">
2049 <desc>
2050 Called by the VM process to inform the server that saving
2051 the state previously requested by #beginSavingState is either
2052 successfully finished or there was a failure.
2053 </desc>
2054
2055 <param name="success" type="boolean" dir="in">
2056 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
2057 </param>
2058 </method>
2059
2060 <method name="adoptSavedState">
2061 <desc>
2062 Gets called by IConsole::adoptSavedState.
2063 </desc>
2064 <param name="savedStateFile" type="wstring" dir="in">
2065 <desc>Path to the saved state file to adopt.</desc>
2066 </param>
2067 </method>
2068
2069 <method name="beginTakingSnapshot">
2070 <desc>
2071 Called by the VM process to inform the server it wants to
2072 take a snapshot.
2073 </desc>
2074 <param name="initiator" type="IConsole" dir="in">
2075 <desc>The console object that initiated this call.</desc>
2076 </param>
2077 <param name="name" type="wstring" dir="in">
2078 <desc>Snapshot name</desc>
2079 </param>
2080 <param name="description" type="wstring" dir="in">
2081 <desc>Snapshot description</desc>
2082 </param>
2083 <param name="progress" type="IProgress" dir="in">
2084 <desc>
2085 Progress object created by the VM process to wait until
2086 the state is saved (only for online snapshots).
2087 </desc>
2088 </param>
2089 <param name="stateFilePath" type="wstring" dir="out">
2090 <desc>
2091 File path the VM process must save the execution state to.
2092 </desc>
2093 </param>
2094 <param name="serverProgress" type="IProgress" dir="out">
2095 <desc>
2096 Progress object created by the server process to wait until
2097 the snapshot is taken (VDI diff creation, etc.).
2098 </desc>
2099 </param>
2100 </method>
2101
2102 <method name="endTakingSnapshot">
2103 <desc>
2104 Called by the VM process to inform the server that the snapshot
2105 previously requested by #beginTakingSnapshot is either
2106 successfully taken or there was a failure.
2107 </desc>
2108
2109 <param name="success" type="boolean" dir="in">
2110 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
2111 </param>
2112 </method>
2113
2114 <method name="discardSnapshot">
2115 <desc>
2116 Gets called by IConsole::discardSnapshot.
2117 </desc>
2118 <param name="initiator" type="IConsole" dir="in">
2119 <desc>The console object that initiated this call.</desc>
2120 </param>
2121 <param name="id" type="uuid" dir="in">
2122 <desc>UUID of the snapshot to discard.</desc>
2123 </param>
2124 <param name="machineState" type="MachineState" dir="out">
2125 <desc>New machine state after this operation is started.</desc>
2126 </param>
2127 <param name="progress" type="IProgress" dir="return">
2128 <desc>Progress object to track the operation completion.</desc>
2129 </param>
2130 </method>
2131
2132 <method name="discardCurrentState">
2133 <desc>
2134 Gets called by IConsole::discardCurrentState.
2135 </desc>
2136 <param name="initiator" type="IConsole" dir="in">
2137 <desc>The console object that initiated this call.</desc>
2138 </param>
2139 <param name="machineState" type="MachineState" dir="out">
2140 <desc>New machine state after this operation is started.</desc>
2141 </param>
2142 <param name="progress" type="IProgress" dir="return">
2143 <desc>Progress object to track the operation completion.</desc>
2144 </param>
2145 </method>
2146
2147 <method name="discardCurrentSnapshotAndState">
2148 <desc>
2149 Gets called by IConsole::discardCurrentSnapshotAndState.
2150 </desc>
2151 <param name="initiator" type="IConsole" dir="in">
2152 <desc>The console object that initiated this call.</desc>
2153 </param>
2154 <param name="machineState" type="MachineState" dir="out">
2155 <desc>New machine state after this operation is started.</desc>
2156 </param>
2157 <param name="progress" type="IProgress" dir="return">
2158 <desc>Progress object to track the operation completion.</desc>
2159 </param>
2160 </method>
2161
2162 </interface>
2163
2164 <enum
2165 name="BIOSBootMenuMode"
2166 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
2167 >
2168 <desc>
2169 This represents the BIOS boot menu state.
2170 </desc>
2171
2172 <const name="Disabled" value="0"/>
2173 <const name="MenuOnly" value="1"/>
2174 <const name="MessageAndMenu" value="2"/>
2175 </enum>
2176
2177 <enum
2178 name="IDEControllerType"
2179 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
2180 >
2181 <const name="InvalidIDEControllerType" value="0"/>
2182 <const name="IDEControllerPIIX3" value="1"/>
2183 <const name="IDEControllerPIIX4" value="2"/>
2184 </enum>
2185
2186 <interface
2187 name="IBIOSSettings" extends="$unknown"
2188 uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
2189 wsmap="struct"
2190 >
2191 <desc>
2192 The IBIOSSettings interface represents BIOS settings of the virtual
2193 machine. Used in <link to="IMachine::BIOSSettings" />.
2194 </desc>
2195 <attribute name="logoFadeIn" type="boolean">
2196 <desc>Fade in flag for BIOS logo animation.</desc>
2197 </attribute>
2198
2199 <attribute name="logoFadeOut" type="boolean">
2200 <desc>Fade out flag for BIOS logo animation.</desc>
2201 </attribute>
2202
2203 <attribute name="logoDisplayTime" type="unsigned long">
2204 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
2205 </attribute>
2206
2207 <attribute name="logoImagePath" type="wstring">
2208 <desc>Local file system path for external BIOS image.</desc>
2209 </attribute>
2210
2211 <attribute name="bootMenuMode" type="BIOSBootMenuMode">
2212 <desc>Mode of the BIOS boot device menu.</desc>
2213 </attribute>
2214
2215 <attribute name="ACPIEnabled" type="boolean">
2216 <desc>ACPI support flag.</desc>
2217 </attribute>
2218
2219 <attribute name="IOAPICEnabled" type="boolean">
2220 <desc>
2221 IO APIC support flag. If set, VirtualBox will provide an IO APIC
2222 and support IRQs above 15.
2223 </desc>
2224 </attribute>
2225
2226 <attribute name="timeOffset" type="long long">
2227 <desc>
2228 Offset in milliseconds from the host system time. This allows for
2229 guests running with a different system date/time than the host.
2230 It is equivalent to setting the system date/time in the BIOS other
2231 than it's not an absolute value but a relative one. Guest Additions
2232 time synchronization also honors this offset.
2233 </desc>
2234 </attribute>
2235
2236 <attribute name="PXEDebugEnabled" type="boolean">
2237 <desc>
2238 PXE debug logging flag. If set, VirtualBox will write extensive
2239 PXE trace information to the release log.
2240 </desc>
2241 </attribute>
2242
2243 <attribute name="IDEControllerType" type="IDEControllerType">
2244 <desc>
2245 Type of the virtual IDE controller. Depending on this value,
2246 VirtualBox will provide different virtual IDE hardware
2247 devices to the guest.
2248 </desc>
2249 </attribute>
2250
2251 </interface>
2252
2253 <interface
2254 name="IMachine" extends="$unknown"
2255 uuid="2830ce8c-be5b-4660-b8d5-65d913005b4f"
2256 wsmap="managed"
2257 >
2258 <desc>
2259 The IMachine interface represents a virtual machine, or guest, created
2260 in VirtualBox.
2261
2262 This interface is used in two contexts. First of all, a collection of
2263 objects implementing this interface is stored in the
2264 <link to="IVirtualBox::machines"/> attribute which lists all the virtual
2265 machines that are currently registered with this VirtualBox
2266 installation. Also, once a session has been opened for the given virtual
2267 machine (e.g. the virtual machine is running), the machine object
2268 associated with the open session can be queried from the session object;
2269 see <link to="ISession"/> for details.
2270
2271 The main role of this interface is to expose the settings of the virtual
2272 machine and provide methods to change various aspects of the virtual
2273 machine's configuration. For machine objects stored in the
2274 <link to="IVirtualBox::machines"/> collection, all attributes are
2275 read-only unless explicitely stated otherwise in individual attribute
2276 and method descriptions. In order to change a machine setting, a session
2277 for this machine must be opened using one of
2278 <link to="IVirtualBox::openSession"/>,
2279 <link to="IVirtualBox::openRemoteSession"/> or
2280 <link to="IVirtualBox::openExistingSession"/> methdods. After the
2281 session has been successfully opened, a mutable machine object needs to
2282 be queried from the session object and then the desired settings changes
2283 can be applied to the returned object using IMachine attributes and
2284 methods. See the ISession interface description for more information
2285 about sessions.
2286
2287 Note that the IMachine interface does not provide methods to control
2288 virtual machine execution (such as start the machine, or power it
2289 down) -- these methods are grouped in a separate IConsole
2290 interface. Refer to the IConsole interface description to get more
2291 information about this topic.
2292
2293 <see>ISession, IConsole</see>
2294 </desc>
2295
2296 <attribute name="parent" type="IVirtualBox" readonly="yes">
2297 <desc>Associated parent obect.</desc>
2298 </attribute>
2299
2300 <attribute name="accessible" type="boolean" readonly="yes">
2301 <desc>
2302 Whether this virtual machine is currently accessible or not.
2303
2304 The machine is considered to be inaccessible when:
2305 <ul>
2306 <li>It is a registered virtual machine, and
2307 </li>
2308 <li>Its settings file is inaccessible (for example, it is
2309 located on a network share that is not accessible during
2310 VirtualBox startup, or becomes inaccessible later, or if
2311 the settings file can be read but is invalid).
2312 </li>
2313 </ul>
2314
2315 Otherwise, the value of this property is always <tt>true</tt>.
2316
2317 Every time this property is read, the accessibility state of
2318 this machine is re-evaluated. If the returned value is |false|,
2319 the <link to="#accessError"/> property may be used to get the
2320 detailed error information describing the reason of
2321 inaccessibility.
2322
2323 When the machine is inaccessible, only the following properties
2324 can be used on it:
2325 <ul>
2326 <li><link to="#parent"/></li>
2327 <li><link to="#id"/></li>
2328 <li><link to="#settingsFilePath"/></li>
2329 <li><link to="#accessible"/></li>
2330 <li><link to="#accessError"/></li>
2331 </ul>
2332
2333 An attempt to access any other property or method will return
2334 an error.
2335
2336 The only possible action you can perform on an inaccessible
2337 machine is to unregister it using the
2338 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
2339 for the accessibility state once more by querying this
2340 property).
2341
2342 <note>
2343 In the current implementation, once this property returns
2344 <tt>true</tt>, the machine will never become inaccessible
2345 later, even if its settings file cannot be successfully
2346 read/written any more (at least, until the VirtualBox
2347 server is restarted). This limitation may be removed in
2348 future releases.
2349 </note>
2350 </desc>
2351 </attribute>
2352
2353 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
2354 <desc>
2355 Error information describing the reason of machine
2356 inaccessibility.
2357
2358 Reading this property is only valid after the last call to
2359 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
2360 machine is currently unaccessible). Otherwise, a null
2361 IVirtualBoxErrorInfo object will be returned.
2362 </desc>
2363 </attribute>
2364
2365 <attribute name="name" type="wstring">
2366 <desc>
2367 Name of the virtual machine.
2368
2369 Besides being used for human-readable identification purposes
2370 everywhere in VirtualBox, the virtual machine name is also used
2371 as a name of the machine's settings file and as a name of the
2372 subdirectory this settings file resides in. Thus, every time you
2373 change the value of this property, the settings file will be
2374 renamed once you call <link to="#saveSettings()"/> to confirm the
2375 change. The containing subdirectory will be also renamed, but
2376 only if it has exactly the same name as the settings file
2377 itself prior to changing this property (for backward compatibility
2378 with previous API releases). The above implies the following
2379 limitations:
2380 <ul>
2381 <li>The machine name cannot be empty.</li>
2382 <li>The machine name can contain only characters that are valid
2383 file name characters according to the rules of the file
2384 system used to store VirtualBox configuration.</li>
2385 <li>You cannot have two or more machines with the same name
2386 if they use the same subdirectory for storing the machine
2387 settings files.</li>
2388 <li>You cannot change the name of the machine if it is running,
2389 or if any file in the directory containing the settings file
2390 is being used by another running machine or by any other
2391 process in the host operating system at a time when
2392 <link to="#saveSettings()"/> is called.
2393 </li>
2394 </ul>
2395 If any of the above limitations are hit, <link to="#saveSettings()"/>
2396 will return an appropriate error message explaining the exact
2397 reason and the changes you made to this machine will not be
2398 saved.
2399 <note>
2400 For "legacy" machines created using the
2401 <link to="IVirtualBox::createLegacyMachine()"/> call,
2402 the above naming limitations do not apply because the
2403 machine name does not affect the settings file name.
2404 The settings file name remains the same as it was specified
2405 during machine creation and never changes.
2406 </note>
2407 </desc>
2408 </attribute>
2409
2410 <attribute name="description" type="wstring">
2411 <desc>
2412 Description of the virtual machine.
2413
2414 The description attribute can contain any text and is
2415 typically used to describe the hardware and software
2416 configuration of the virtual machine in detail (i.e. network
2417 settings, versions of the installed software and so on).
2418 </desc>
2419 </attribute>
2420
2421 <attribute name="id" type="uuid" readonly="yes">
2422 <desc>UUID of the virtual machine.</desc>
2423 </attribute>
2424
2425 <attribute name="OSTypeId" type="wstring">
2426 <desc>
2427 User-defined identifier of the Guest OS type.
2428 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
2429 an IGuestOSType object representing details about the given
2430 Guest OS type.
2431 <note>
2432 This value may differ from the value returned by
2433 <link to="IGuest::OSTypeId"/> if Guest Additions are
2434 installed to the guest OS.
2435 </note>
2436 </desc>
2437 </attribute>
2438
2439 <attribute name="memorySize" type="unsigned long">
2440 <desc>System memory size in megabytes.</desc>
2441 </attribute>
2442
2443 <attribute name="memoryBalloonSize" type="unsigned long">
2444 <desc>Initial memory balloon size in megabytes.</desc>
2445 </attribute>
2446
2447 <attribute name="statisticsUpdateInterval" type="unsigned long">
2448 <desc>Initial interval to update guest statistics in seconds.</desc>
2449 </attribute>
2450
2451 <attribute name="VRAMSize" type="unsigned long">
2452 <desc>Video memory size in megabytes.</desc>
2453 </attribute>
2454
2455 <attribute name="MonitorCount" type="unsigned long">
2456 <desc>
2457 Number of virtual monitors.
2458 <note>
2459 Only effective on Windows XP and later guests with
2460 Guest Additions installed.
2461 </note>
2462 </desc>
2463 </attribute>
2464
2465 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
2466 <desc>Object containing all BIOS settings.</desc>
2467 </attribute>
2468
2469 <attribute name="HWVirtExEnabled" type="TriStateBool">
2470 <desc>
2471 This setting determines whether VirtualBox will try to make use of
2472 the host CPU's hardware virtualization extensions such as Intel VT-x
2473 and AMD SVM. Note that in case such extensions are not available,
2474 they will not be used.
2475 </desc>
2476 </attribute>
2477
2478 <attribute name="snapshotFolder" type="wstring">
2479 <desc>
2480 Full path to the directory used to store snapshot data
2481 (difrerencing hard disks and saved state files) of this machine.
2482
2483 The initial value of this property is
2484 <tt>&lt;</tt><link to="#settingsFilePath">
2485 path_to_settings_file</link><tt>&gt;/&lt;</tt>
2486 <link to="#id">machine_uuid</link>
2487 <tt>&gt;</tt>.
2488
2489 Currently, it is an error to try to change this property on
2490 a machine that has snapshots (because this would require to
2491 move possibly large files to a different location).
2492 A separate method will be available for this purpose later.
2493
2494 <note>
2495 Setting this property to <tt>null</tt> will restore the
2496 initial value.
2497 </note>
2498 <note>
2499 When setting this property, the specified path can be
2500 absolute (full path) or relative to the directory where the
2501 <link to="#settingsFilePath">machine settings file</link>
2502 is located. When reading this property, a full path is
2503 always returned.
2504 </note>
2505 <note>
2506 The specified path may not exist, it will be created
2507 when necessary.
2508 </note>
2509 </desc>
2510 </attribute>
2511
2512 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
2513 <desc>VRDP server object.</desc>
2514 </attribute>
2515
2516 <attribute name="hardDiskAttachments" type="IHardDiskAttachmentCollection" readonly="yes">
2517 <desc>Collection of hard disks attached to the machine.</desc>
2518 </attribute>
2519
2520 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
2521 <desc>Associated DVD drive object.</desc>
2522 </attribute>
2523
2524 <attribute name="FloppyDrive" type="IFloppyDrive" readonly="yes">
2525 <desc>Associated floppy drive object.</desc>
2526 </attribute>
2527
2528 <attribute name="USBController" type="IUSBController" readonly="yes">
2529 <desc>Associated USB controller object.</desc>
2530 </attribute>
2531
2532 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
2533 <desc>Associated audio adapter, always present.</desc>
2534 </attribute>
2535
2536 <attribute name="settingsFilePath" type="wstring" readonly="yes">
2537 <desc>
2538 Full name of the file containing machine settings data.
2539 </desc>
2540 </attribute>
2541
2542 <attribute name="settingsModified" type="boolean" readonly="yes">
2543 <desc>
2544 Whether the settings of this machine have been modified
2545 (but neither yet saved nor discarded).
2546 <note>
2547 Reading this property is only valid on instances returned
2548 by <link to="ISession::machine"/> and on new machines
2549 created by <link to="IVirtualBox::createMachine"/> or opened
2550 by <link to="IVirtualBox::openMachine"/> but not
2551 yet registered, or on unregistered machines after calling
2552 <link to="IVirtualBox::unregisterMachine"/>. For all other
2553 cases, the settigs can never be modified.
2554 </note>
2555 <note>
2556 For newly created unregistered machines, the value of this
2557 property is always TRUE until <link to="#saveSettings"/>
2558 is called (no matter if any machine settings have been
2559 changed after the creation or not). For opened machines
2560 the value is set to FALSE (and then follows to normal rules).
2561 </note>
2562 </desc>
2563 </attribute>
2564
2565 <attribute name="sessionState" type="SessionState" readonly="yes">
2566 <desc>Current session state for this machine.</desc>
2567 </attribute>
2568
2569 <attribute name="sessionType" type="wstring" readonly="yes">
2570 <desc>
2571 Type of the session. If <link to="#sessionState"/> is
2572 SessionSpawning or SessionOpen, this attribute contains the
2573 same value as passed to the
2574 <link to="IVirtualBox::openRemoteSession()"/> method in the @a
2575 type parameter. If the session was opened directly using
2576 <link to="IVirtualBox::openSession()"/>, or if
2577 <link to="#sessionState"/> is SessionClosed, the value of this
2578 attribute is @c null.
2579 </desc>
2580 </attribute>
2581
2582 <attribute name="sessionPid" type="unsigned long" readonly="yes">
2583 <desc>
2584 Identifier of the session process. This attribute contains the
2585 platform-dependent identifier of the process that has opened a
2586 direct session for this machine using the
2587 <link to="IVirtualBox::openSession()"/> call. The returned value
2588 is only valid if <link to="#sessionState"/> is SessionOpen or
2589 SessionClosing (i.e. a session is currently open or being
2590 closed) by the time this property is read.
2591 </desc>
2592 </attribute>
2593
2594 <attribute name="state" type="MachineState" readonly="yes">
2595 <desc>Current execution state of this machine.</desc>
2596 </attribute>
2597
2598 <attribute name="lastStateChange" type="long long" readonly="yes">
2599 <desc>
2600 Time stamp of the last execution state change,
2601 in milliseconds since 1970-01-01 UTC.
2602 </desc>
2603 </attribute>
2604
2605 <attribute name="stateFilePath" type="wstring" readonly="yes">
2606 <desc>
2607 Full path to the file that stores the execution state of
2608 the machine when it is in the <link to="MachineState::Saved"/>
2609 state.
2610 <note>
2611 When the machine is not in the Saved state, this attribute
2612 <tt>null</tt>.
2613 </note>
2614 </desc>
2615 </attribute>
2616
2617 <attribute name="logFolder" type="wstring" readonly="yes">
2618 <desc>
2619 Full path to the folder that stores a set of rotated log files
2620 recorded during machine execution. The most recent log file is
2621 named <tt>VBox.log</tt>, the previous log file is
2622 named <tt>VBox.log.1</tt> and so on (upto <tt>VBox.log.3</tt>
2623 in the current version).
2624 </desc>
2625 </attribute>
2626
2627 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
2628 <desc>
2629 Current snapshot of this machine.
2630 <note>
2631 A <tt>null</tt> object is returned if the machine doesn't
2632 have snapshots.
2633 </note>
2634 <see><link to="ISnapshot"/></see>
2635 </desc>
2636 </attribute>
2637
2638 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
2639 <desc>
2640 Number of snapshots taken on this machine. Zero means the
2641 machine doesn't have any snapshots.
2642 </desc>
2643 </attribute>
2644
2645 <attribute name="currentStateModified" type="boolean" readonly="yes">
2646 <desc>
2647 Returns <tt>true</tt> if the current state of the machine is not
2648 identical to the state stored in the current snapshot.
2649
2650 The current state is identical to the current snapshot right
2651 after one of the following calls are made:
2652 <ul>
2653 <li><link to="IConsole::discardCurrentState"/> or
2654 <link to="IConsole::discardCurrentSnapshotAndState"/>
2655 </li>
2656 <li><link to="IConsole::takeSnapshot"/> (issued on a
2657 powered off or saved machine, for which
2658 <link to="#settingsModified"/> returns <tt>false</tt>)
2659 </li>
2660 <li><link to="IMachine::setCurrentSnapshot"/>
2661 </li>
2662 </ul>
2663
2664 The current state remains identical until one of the following
2665 happens:
2666 <ul>
2667 <li>settings of the machine are changed</li>
2668 <li>the saved state is discarded</li>
2669 <li>the current snapshot is discarded</li>
2670 <li>an attempt to execute the machine is made</li>
2671 </ul>
2672
2673 <note>
2674 For machines that don't have snapshots, this property is
2675 always <tt>false</tt>.
2676 </note>
2677 </desc>
2678 </attribute>
2679
2680 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
2681 <desc>
2682 Collection of shared folders for this machine (permanent shared
2683 folders). These folders are shared automatically at machine startup
2684 and available only to the guest OS installed within this machine.
2685
2686 New shared folders are added to the collection using
2687 <link to="#createSharedFolder"/>. Existing shared folders can be
2688 removed using <link to="#removeSharedFolder"/>.
2689 </desc>
2690 </attribute>
2691
2692 <attribute name="clipboardMode" type="ClipboardMode">
2693 <desc>
2694 Synchronization mode between the host OS clipboard
2695 and the guest OS clipboard.
2696 </desc>
2697 </attribute>
2698
2699 <method name="setBootOrder">
2700 <desc>
2701 Puts the given device to the specified position in
2702 the boot order.
2703
2704 To indicate that no device is associated with the given position,
2705 <link to="DeviceType::NoDevice"/> should be used.
2706
2707 @todo setHardDiskBootOrder(), setNetworkBootOrder()
2708 </desc>
2709 <param name="position" type="unsigned long" dir="in">
2710 <desc>
2711 Position in the boot order (<tt>1</tt> to the total number of
2712 devices the machine can boot from, as returned by
2713 <link to="ISystemProperties::maxBootPosition"/>).
2714 </desc>
2715 </param>
2716 <param name="device" type="DeviceType" dir="in">
2717 <desc>
2718 The type of the device used to boot at the given position.
2719 </desc>
2720 </param>
2721 </method>
2722
2723 <method name="getBootOrder" const="yes">
2724 <desc>
2725 Returns the device type that occupies the specified
2726 position in the boot order.
2727
2728 @todo [remove?]
2729 If the machine can have more than one device of the returned type
2730 (such as hard disks), then a separate method should be used to
2731 retrieve the individual device that occupies the given position.
2732
2733 If here are no devices at the given position, then
2734 <link to="DeviceType::NoDevice"/> is returned.
2735
2736 @todo getHardDiskBootOrder(), getNetworkBootOrder()
2737 </desc>
2738 <param name="order" type="unsigned long" dir="in">
2739 <desc>
2740 Position in the boot order (<tt>1</tt> to the total number of
2741 devices the machine can boot from, as returned by
2742 <link to="ISystemProperties::maxBootPosition"/>).
2743 </desc>
2744 </param>
2745 <param name="device" type="DeviceType" dir="return">
2746 <desc>
2747 Device at the given position.
2748 </desc>
2749 </param>
2750 </method>
2751
2752 <method name="attachHardDisk">
2753 <desc>
2754
2755 Attaches a virtual hard disk identified by the given UUID to the
2756 given device slot of the given controller. The specified device
2757 must not have another disk attached and the given hard disk must
2758 not be already attached to this machine.
2759
2760 See <link to="IHardDisk"/> for detailed information about
2761 attaching hard disks.
2762
2763 <note>You cannot attach a hard disk to a running machine. Also,
2764 you cannot attach a hard disk to a newly created machine until
2765 it is registered.</note>
2766
2767 <note>Attaching a hard disk to a machine creates a <i>lazy</i>
2768 attachment. In particular, no differeincing images are
2769 actually created until <link to="#saveSettings"/> is called to
2770 commit all changed settings.</note>
2771
2772 </desc>
2773 <param name="diskID" type="uuid" dir="in">
2774 <desc>UUID of the hard disk to attach.</desc>
2775 </param>
2776 <param name="controller" type="DiskControllerType" dir="in">
2777 <desc>Controller to attach the hard disk to.</desc>
2778 </param>
2779 <param name="device" type="long" dir="in">
2780 <desc>Device slot to attach the hard disk to.</desc>
2781 </param>
2782 </method>
2783
2784 <method name="getHardDisk" const="yes">
2785 <desc>
2786 Returns the hard disk attached to the
2787 given controller under the specified device number.
2788 </desc>
2789 <param name="controller" type="DiskControllerType" dir="in"/>
2790 <param name="deviceNumber" type="long" dir="in"/>
2791 <param name="hardDisk" type="IHardDisk" dir="return"/>
2792 </method>
2793
2794 <method name="detachHardDisk">
2795 <desc>
2796
2797 Detaches the hard disk drive attached to the given device slot
2798 of the given controller.
2799
2800 See <link to="IHardDisk"/> for detailed information about
2801 attaching hard disks.
2802
2803 <note>You cannot detach a hard disk from a running
2804 machine.</note>
2805
2806 <note>
2807 Detaching a hard disk from a machine creates a <i>lazy</i>
2808 detachment. In particular, if the detached hard disk is a
2809 differencing hard disk, it is not actually deleted until
2810 <link to="#saveSettings"/> is called to commit all changed settings.
2811 Keep in mind, that doing <link to="#saveSettings"/> will
2812 <b>physically delete</b> all detached differencing hard disks,
2813 so be careful.
2814 </note>
2815
2816 </desc>
2817 <param name="controller" type="DiskControllerType" dir="in">
2818 <desc>Controller to dettach the hard disk from.</desc>
2819 </param>
2820 <param name="device" type="long" dir="in">
2821 <desc>Device slot to dettach the hard disk from.</desc>
2822 </param>
2823 </method>
2824
2825 <method name="getNetworkAdapter" const="yes">
2826 <desc>
2827 Returns the network adapter associated with the given slot.
2828 Slots are numbered sequentially, starting with zero. The total
2829 number of adapters per every machine is defined by the
2830 <link to="ISystemProperties::networkAdapterCount"/> property,
2831 so the maximum slot number is one less than that property's value.
2832 </desc>
2833 <param name="slot" type="unsigned long" dir="in"/>
2834 <param name="adapter" type="INetworkAdapter" dir="return"/>
2835 </method>
2836
2837 <method name="getSerialPort" const="yes">
2838 <desc>
2839 Returns the serial port associated with the given slot.
2840 Slots are numbered sequentially, starting with zero. The total
2841 number of serial ports per every machine is defined by the
2842 <link to="ISystemProperties::serialPortCount"/> property,
2843 so the maximum slot number is one less than that property's value.
2844 </desc>
2845 <param name="slot" type="unsigned long" dir="in"/>
2846 <param name="port" type="ISerialPort" dir="return"/>
2847 </method>
2848
2849 <method name="getParallelPort" const="yes">
2850 <desc>
2851 Returns the parallel port associated with the given slot.
2852 Slots are numbered sequentially, starting with zero. The total
2853 number of parallel ports per every machine is defined by the
2854 <link to="ISystemProperties::parallelPortCount"/> property,
2855 so the maximum slot number is one less than that property's value.
2856 </desc>
2857 <param name="slot" type="unsigned long" dir="in"/>
2858 <param name="port" type="IParallelPort" dir="return"/>
2859 </method>
2860
2861 <method name="getNextExtraDataKey">
2862 <desc>
2863 Returns the machine-specific extra data key name following the
2864 supplied key.
2865
2866 An error is returned if the supplied @a key does not exist. @c NULL is
2867 returned in @a nextKey if the supplied key is the last key. When
2868 supplying @c NULL for the @a key, the first key item is returned in @a
2869 nextKey (if there is any). @a nextValue is an optional parameter and
2870 if supplied, the next key's value is returned in it.
2871 </desc>
2872 <param name="key" type="wstring" dir="in">
2873 <desc>Name of the data key to follow.</desc>
2874 </param>
2875 <param name="nextKey" type="wstring" dir="out">
2876 <desc>Name of the next data key.</desc>
2877 </param>
2878 <param name="nextValue" type="wstring" dir="out">
2879 <desc>Value of the next data key.</desc>
2880 </param>
2881 </method>
2882
2883 <method name="getExtraData">
2884 <desc>
2885 Returns associated machine-specific extra data.
2886
2887 If the reuqested data @a key does not exist, this function will
2888 succeed and return @c NULL in the @a value argument.
2889 </desc>
2890 <param name="key" type="wstring" dir="in">
2891 <desc>Name of the data key to get.</desc>
2892 </param>
2893 <param name="value" type="wstring" dir="return">
2894 <desc>Value of the requested data key.</desc>
2895 </param>
2896 </method>
2897
2898 <method name="setExtraData">
2899 <desc>
2900 Sets associated machine-specific extra data.
2901
2902 If you pass @c NULL as a key @a vaule, the given @a key will be
2903 deleted.
2904
2905 <note>
2906 Before performing the actual data change, this method will ask all
2907 registered callbacks using the
2908 <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
2909 notification for a permission. If one of the callbacks refuses the
2910 new value, the change will not be performed.
2911 </note>
2912 <note>
2913 On success, the
2914 <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
2915 is called to inform all registered callbacks about a successful data
2916 change.
2917 </note>
2918 <note>
2919 This method can be called outside the machine session and therefore
2920 it's a caller's responsibility to handle possible race conditions
2921 when several clients change the same key at the same time.
2922 </note>
2923 </desc>
2924 <param name="key" type="wstring" dir="in">
2925 <desc>Name of the data key to set.</desc>
2926 </param>
2927 <param name="value" type="wstring" dir="in">
2928 <desc>Value to assign to the key.</desc>
2929 </param>
2930 </method>
2931
2932 <method name="saveSettings">
2933 <desc>
2934 Saves any changes to machine settings made since the session
2935 has been opened or a new machine has been created, or since the
2936 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
2937 For registered machines, new settings become visible to all
2938 other VirtualBox clients after successful invocation of this
2939 method.
2940 <note>
2941 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
2942 notification event after the configuration has been successfully
2943 saved (only for registered machines).
2944 </note>
2945 <note>
2946 Calling this method is only valid on instances returned
2947 by <link to="ISession::machine"/> and on new machines
2948 created by <link to="IVirtualBox::createMachine"/> but not
2949 yet registered, or on unregistered machines after calling
2950 <link to="IVirtualBox::unregisterMachine"/>.
2951 </note>
2952 </desc>
2953 </method>
2954
2955 <method name="discardSettings">
2956 <desc>
2957 Discards any changes to the machine settings made since the session
2958 has been opened or since the last call to <link to="#saveSettings"/>
2959 or <link to="#discardSettings"/>.
2960 <note>
2961 Calling this method is only valid on instances returned
2962 by <link to="ISession::machine"/> and on new machines
2963 created by <link to="IVirtualBox::createMachine"/> or
2964 opened by <link to="IVirtualBox::openMachine"/> but not
2965 yet registered, or on unregistered machines after calling
2966 <link to="IVirtualBox::unregisterMachine"/>.
2967 </note>
2968 </desc>
2969 </method>
2970
2971 <method name="deleteSettings">
2972 <desc>
2973 Deletes the settings file of this machine from disk.
2974 The machine must not be registered in order for this operation
2975 to succeed.
2976 <note>
2977 <link to="#settingsModified"/> will return TRUE after this
2978 method successfully returns.
2979 </note>
2980 <note>
2981 Calling this method is only valid on instances returned
2982 by <link to="ISession::machine"/> and on new machines
2983 created by <link to="IVirtualBox::createMachine"/> or
2984 opened by <link to="IVirtualBox::openMachine"/> but not
2985 yet registered, or on unregistered machines after calling
2986 <link to="IVirtualBox::unregisterMachine"/>.
2987 </note>
2988 <note>
2989 The deleted machine settings file can be restored (saved again)
2990 by calling <link to="#saveSettings"/>.
2991 </note>
2992 </desc>
2993 </method>
2994
2995 <method name="getSnapshot">
2996 <desc>
2997 Returns a snapshot of this machine with the given UUID.
2998 A <tt>null</tt> UUID can be used to obtain the first snapshot
2999 taken on this machine. This is useful if you want to traverse
3000 the whole tree of snapshots starting from the root.
3001 </desc>
3002 <param name="id" type="uuid" dir="in">
3003 <desc>UUID of the snapshot to get</desc>
3004 </param>
3005 <param name="snapshot" type="ISnapshot" dir="return">
3006 <desc>Snapshot object with the given UUID.</desc>
3007 </param>
3008 </method>
3009
3010 <method name="findSnapshot">
3011 <desc>
3012 Returns a snapshot of this machine with the given name.
3013 </desc>
3014 <param name="name" type="wstring" dir="in">
3015 <desc>Name of the snapshot to find</desc>
3016 </param>
3017 <param name="snapshot" type="ISnapshot" dir="return">
3018 <desc>Snapshot object with the given name.</desc>
3019 </param>
3020 </method>
3021
3022 <method name="setCurrentSnapshot">
3023 <desc>
3024 Sets the current snapshot of this machine.
3025 <note>
3026 In the current implementation, this operation is not
3027 implemented.
3028 </note>
3029 </desc>
3030 <param name="id" type="uuid" dir="in">
3031 <desc>UUID of the snapshot to set as the current snapshot.</desc>
3032 </param>
3033 </method>
3034
3035 <method name="createSharedFolder">
3036 <desc>
3037 Creates a new permanent shared folder by associating the given logical
3038 name with the given host path, adds it to the collection of shared
3039 folders and starts sharing it. Refer to the description of
3040 <link to="ISharedFolder"/> to read more about logical names.
3041 </desc>
3042 <param name="name" type="wstring" dir="in">
3043 <desc>Unique logical name of the shared folder.</desc>
3044 </param>
3045 <param name="hostPath" type="wstring" dir="in">
3046 <desc>Full path to the shared folder in the host file system.</desc>
3047 </param>
3048 </method>
3049
3050 <method name="removeSharedFolder">
3051 <desc>
3052 Removes the permanent shared folder with the given name previously
3053 created by <link to="#createSharedFolder"/> from the collection of
3054 shared folders and stops sharing it.
3055 </desc>
3056 <param name="name" type="wstring" dir="in">
3057 <desc>Logical name of the shared folder to remove.</desc>
3058 </param>
3059 </method>
3060
3061 <method name="canShowConsoleWindow">
3062 <desc>
3063 Returns @c true if the VM console process can activate the
3064 console window and bring it to foreground on the desktop of
3065 the host PC.
3066 <note>
3067 This method will fail if a session for this machine is not
3068 currently open.
3069 </note>
3070 </desc>
3071 <param name="canShow" type="boolean" dir="return">
3072 <desc>
3073 @c true if the console window can be shown and @c
3074 false otherwise.
3075 </desc>
3076 </param>
3077 </method>
3078
3079 <method name="showConsoleWindow">
3080 <desc>
3081 Activates the console window and brings it to foreground on
3082 the desktop of the host PC. Many modern window managers on
3083 many platforms implement some sort of focus stealing
3084 prevention logic, so that it may be impossible to activate
3085 a window without the help of the currently active
3086 application. In this case, this method will return a non-zero
3087 identifier that represents the top-level window of the VM
3088 console process. The caller, if it represents a currently
3089 active process, is responsible to use this identifier (in a
3090 platform-dependent manner) to perform actual window
3091 activation.
3092 <note>
3093 This method will fail if a session for this machine is not
3094 currently open.
3095 </note>
3096 </desc>
3097 <param name="winId" type="unsigned long long" dir="return">
3098 <desc>
3099 Platform-dependent identifier of the top-level VM console
3100 window, or zero if this method has performed all actions
3101 necessary to implement the <i>show window</i> semantics for
3102 the given platform and/or VirtualBox front-end.
3103 </desc>
3104 </param>
3105 </method>
3106
3107 </interface>
3108
3109 <!--
3110 // IConsole
3111 /////////////////////////////////////////////////////////////////////////
3112 -->
3113
3114 <interface
3115 name="IConsoleCallback" extends="$unknown"
3116 uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
3117 wsmap="suppress"
3118 >
3119
3120 <method name="onMousePointerShapeChange">
3121 <desc>
3122 Notification when the guest mouse pointer shape has
3123 changed. The new shape data is given.
3124 </desc>
3125 <param name="visible" type="boolean" dir="in">
3126 <desc>
3127 Flag whether the pointer is visible.
3128 </desc>
3129 </param>
3130 <param name="alpha" type="boolean" dir="in">
3131 <desc>
3132 Flag whether the pointer has an alpha channel.
3133 </desc>
3134 </param>
3135 <param name="xHot" type="unsigned long" dir="in">
3136 <desc>
3137 The pointer hot spot x coordinate.
3138 </desc>
3139 </param>
3140 <param name="yHot" type="unsigned long" dir="in">
3141 <desc>
3142 The pointer hot spot y coordinate.
3143 </desc>
3144 </param>
3145 <param name="width" type="unsigned long" dir="in">
3146 <desc>
3147 Width of the pointer shape in pixels.
3148 </desc>
3149 </param>
3150 <param name="height" type="unsigned long" dir="in">
3151 <desc>
3152 Height of the pointer shape in pixels.
3153 </desc>
3154 </param>
3155 <param name="shape" type="octet" mod="ptr" dir="in">
3156 <desc>
3157 Address of the shape buffer.
3158
3159 The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
3160
3161 For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
3162 For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
3163
3164 AND mask presents for pointers with alpha channel, so if the callback does not
3165 support alpha, the pointer could be displayed as a normal color pointer.
3166
3167 The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
3168 therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
3169 end of any scanline are undefined.
3170
3171 The XOR mask follows the AND mask on the next 4 bytes aligned offset:
3172 <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>
3173 Bytes in the gap between the AND and the XOR mask are undefined.
3174 XOR mask scanlines have no gap between them and size of XOR mask is:
3175 <tt>cXor = width * 4 * height</tt>.
3176
3177 <note>
3178 If 'shape' is equal to 0, only pointer visibility is being changed.
3179 </note>
3180 </desc>
3181 </param>
3182 </method>
3183
3184 <method name="onMouseCapabilityChange">
3185 <desc>
3186 Notification when the mouse capabilities reported by the
3187 guest have changed. The new capabilities are passed.
3188 </desc>
3189 <param name="supportsAbsolute" type="boolean" dir="in"/>
3190 <param name="needsHostCursor" type="boolean" dir="in"/>
3191 </method>
3192
3193 <method name="onKeyboardLedsChange">
3194 <desc>
3195 Notification when the guest OS executes the KBD_CMD_SET_LEDS command
3196 to alter the state of the keyboard LEDs.
3197 </desc>
3198 <param name="numLock" type="boolean" dir="in"/>
3199 <param name="capsLock" type="boolean" dir="in"/>
3200 <param name="scrollLock" type="boolean" dir="in"/>
3201 </method>
3202
3203 <method name="onStateChange">
3204 <desc>
3205 Notification when the execution state of the machine has changed.
3206 The new state will be given.
3207 </desc>
3208 <param name="state" type="MachineState" dir="in"/>
3209 </method>
3210
3211 <method name="onAdditionsStateChange">
3212 <desc>
3213 Notification when a Guest Additions property changes.
3214 Interested callees should query IGuest attributes to
3215 find out what has changed.
3216 </desc>
3217 </method>
3218
3219 <method name="onDVDDriveChange">
3220 <desc>
3221 Notification when a property of the
3222 virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
3223 Interested callees should use IDVDDrive methods to find out what has
3224 changed.
3225 </desc>
3226 </method>
3227
3228 <method name="onFloppyDriveChange">
3229 <desc>
3230 Notification when a property of the
3231 virtual <link to="IMachine::FloppyDrive">floppy drive</link> changes.
3232 Interested callees should use IFloppyDrive methods to find out what
3233 has changed.
3234 </desc>
3235 </method>
3236
3237 <method name="onNetworkAdapterChange">
3238 <desc>
3239 Notification when a property of one of the
3240 virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
3241 changes. Interested callees should use INetworkAdapter methods and
3242 attributes to find out what has changed.
3243 </desc>
3244 <param name="networkAdapter" type="INetworkAdapter" dir="in">
3245 <desc>Network adapter that is subject to change.</desc>
3246 </param>
3247 </method>
3248
3249 <method name="onSerialPortChange">
3250 <desc>
3251 Notification when a property of one of the
3252 virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
3253 Interested callees should use ISerialPort methods and attributes
3254 to find out what has changed.
3255 </desc>
3256 <param name="serialPort" type="ISerialPort" dir="in">
3257 <desc>Serial port that is subject to change.</desc>
3258 </param>
3259 </method>
3260
3261 <method name="onParallelPortChange">
3262 <desc>
3263 Notification when a property of one of the
3264 virtual <link to="IMachine::getParallelPort">parallel ports</link>
3265 changes. Interested callees should use ISerialPort methods and
3266 attributes to find out what has changed.
3267 </desc>
3268 <param name="parallelPort" type="IParallelPort" dir="in">
3269 <desc>Parallel port that is subject to change.</desc>
3270 </param>
3271 </method>
3272
3273 <method name="onVRDPServerChange">
3274 <desc>
3275 Notification when a property of the
3276 <link to="IMachine::VRDPServer">VRDP server</link> changes.
3277 Interested callees should use IVRDPServer methods and attributes to
3278 find out what has changed.
3279 </desc>
3280 </method>
3281
3282 <method name="onUSBControllerChange">
3283 <desc>
3284 Notification when a property of the virtual
3285 <link to="IMachine::USBController">USB controller</link> changes.
3286 Interested callees should use IUSBController methods and attributes to
3287 find out what has changed.
3288 </desc>
3289 </method>
3290
3291 <method name="onUSBDeviceStateChange">
3292 <desc>
3293 Notification when a USB device is attached to or detached from
3294 the virtual USB controller.
3295
3296 This notification is sent as a result of the indirect
3297 request to attach the device because it matches one of the
3298 machine USB filters, or as a result of the direct request
3299 issued by <link to="IConsole::attachUSBDevice"/> or
3300 <link to="IConsole::detachUSBDevice"/>.
3301
3302 This notification is sent in case of both a succeeded and a
3303 failed request completion. When the request succeeds, the @a
3304 error parameter is @c null, and the given device has been
3305 already added to (when @a attached is @c true) or removed from
3306 (when @a attached is @c false) the collection represented by
3307 <link to="IConsole::USBDevices"/>. On failure, the collection
3308 doesn't change and the @a error perameter represents the error
3309 message describing the failure.
3310
3311 </desc>
3312 <param name="device" type="IUSBDevice" dir="in">
3313 <desc>Device that is subject to state change.</desc>
3314 </param>
3315 <param name="attached" type="boolean" dir="in">
3316 <desc>
3317 <tt>true</tt> if the device was attached
3318 and <tt>false</tt> otherwise.
3319 </desc>
3320 </param>
3321 <param name="error" type="IVirtualBoxErrorInfo" dir="in">
3322 <desc>
3323 <tt>null</tt> on success or an error message object on
3324 failure.
3325 </desc>
3326 </param>
3327 </method>
3328
3329 <method name="onSharedFolderChange">
3330 <desc>
3331 Notification when a shared folder is added or removed.
3332 The @a scope argument defines one of three scopes:
3333 <link to="IVirtualBox::sharedFolders">global shared folders</link>
3334 (<link to="Scope::GlobalScope">GlobalScope</link>),
3335 <link to="IMachine::sharedFolders">permanent shared folders</link> of
3336 the machine (<link to="Scope::MachineScope">MachineScope</link>)
3337 or <link to="IConsole::sharedFolders">transient shared folders</link>
3338 of the machine
3339 (<link to="Scope::SessionScope">SessionScope</link>). Interested
3340 callees should use query the corresponding collections to find out
3341 what has changed.
3342 </desc>
3343 <param name="scope" type="Scope" dir="in">
3344 <desc>Sope of the notification.</desc>
3345 </param>
3346 </method>
3347
3348 <method name="onRuntimeError">
3349 <desc>
3350 Notification when an error happens during the virtual
3351 machine execution.
3352
3353 There are three kinds of runtime errors:
3354 <ul>
3355 <li><i>fatal</i></li>
3356 <li><i>non-fatal with retry</i></li>
3357 <li><i>non-fatal warnings</i></li>
3358 </ul>
3359
3360 <b>Fatal</b> errors are indicated by the @a fatal parameter set
3361 to <tt>true</tt>. In case of fatal errors, the virtual machine
3362 execution is always paused before calling this notification, and
3363 the notification handler is supposed either to immediately save
3364 the virtual machine state using <link to="IConsole::saveState()"/>
3365 or power it off using <link to="IConsole::powerDown()"/>.
3366 Resuming the execution can lead to unpredictable results.
3367
3368 <b>Non-fatal</b> errors and warnings are indicated by the
3369 @a fatal parameter set to <tt>false</tt>. If the virtual machine
3370 is in the Paused state by the time the error notification is
3371 received, it means that the user can <i>try to resume</i> the machine
3372 execution after attempting to solve the probem that caused the
3373 error. In this case, the notification handler is supposed
3374 to show an appropriate message to the user (depending on the
3375 value of the @a id parameter) that offers several actions such
3376 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
3377 wants to retry, the notification handler should continue
3378 the machine execution using the <link to="IConsole::resume()"/>
3379 call. If the machine execution is not Paused during this
3380 notification, then it means this notification is a <i>warning</i>
3381 (for example, about a fatal condition that can happen very soon);
3382 no immediate action is required from the user, the machine
3383 continues its normal execution.
3384
3385 Note that in either case the notification handler
3386 <b>must not</b> perform any action directly on a thread
3387 where this notification is called. Everything it is allowed to
3388 do is to post a message to another thread that will then talk
3389 to the user and take the corresponding action.
3390
3391 Currently, the following error identificators are known:
3392 <ul>
3393 <li><tt>"HostMemoryLow"</tt></li>
3394 <li><tt>"HostAudioNotResponding"</tt></li>
3395 <li><tt>"VDIStorageFull"</tt></li>
3396 </ul>
3397
3398 <note>
3399 This notification is not designed to be implemented by
3400 more than one callback at a time. If you have multiple
3401 IConsoleCallback instances registered on the given
3402 IConsole object, make sure you simply do nothing but
3403 return @c S_OK from all but one of them that does actual
3404 user notification and performs necessary actions.
3405 </note>
3406
3407 </desc>
3408 <param name="fatal" type="boolean" dir="in">
3409 <desc>Whether the error is fatal or not</desc>
3410 </param>
3411 <param name="id" type="wstring" dir="in">
3412 <desc>Error identificator</desc>
3413 </param>
3414 <param name="message" type="wstring" dir="in">
3415 <desc>Optional error message</desc>
3416 </param>
3417 </method>
3418
3419 <method name="onCanShowWindow">
3420 <desc>
3421 Notification when a call to
3422 <link to="IMachine::canShowConsoleWindow()"/> is made by a
3423 front-end to check if a subsequent call to
3424 <link to="IMachine::showConsoleWindow()"/> can succeed.
3425
3426 The callee should give an answer appropriate to the current
3427 machine state in the @a canShow argument. This answer must
3428 remain valid at least until the next
3429 <link to="IConsole::state">machine state</link> change.
3430
3431 <note>
3432 This notification is not designed to be implemented by
3433 more than one callback at a time. If you have multiple
3434 IConsoleCallback instances registered on the given
3435 IConsole object, make sure you simply do nothing but
3436 return @c true and @c S_OK from all but one of them that
3437 actually manages console window activation.
3438 </note>
3439 </desc>
3440 <param name="canShow" type="boolean" dir="return">
3441 <desc>
3442 @c true if the console window can be shown and @c
3443 false otherwise.
3444 </desc>
3445 </param>
3446 </method>
3447
3448 <method name="onShowWindow">
3449 <desc>
3450 Notification when a call to
3451 <link to="IMachine::showConsoleWindow()"/>
3452 requests the console window to be activated and brought to
3453 foreground on the desktop of the host PC.
3454
3455 This notification should cause the VM console process to
3456 perform the requested action as described above. If it is
3457 impossible to do it at a time of this notification, this
3458 method should return a failure.
3459
3460 Note that many modern window managers on many platforms
3461 implement some sort of focus stealing prevention logic, so
3462 that it may be impossible to activate a window without the
3463 help of the currently active application (which is supposedly
3464 an initiator of this notification). In this case, this method
3465 must return a non-zero identifier that represents the
3466 top-level window of the VM console process. The caller, if it
3467 represents a currently active process, is responsible to use
3468 this identifier (in a platform-dependent manner) to perform
3469 actual window activation.
3470
3471 This method must set @a winId to zero if it has performed all
3472 actions necessary to complete the request and the console
3473 window is now active and in foreground, to indicate that no
3474 further action is required on the caller's side.
3475
3476 <note>
3477 This notification is not designed to be implemented by
3478 more than one callback at a time. If you have multiple
3479 IConsoleCallback instances registered on the given
3480 IConsole object, make sure you simply do nothing but
3481 return@c S_OK from all but one of them that actually
3482 manages console window activation.
3483 </note>
3484 </desc>
3485 <param name="winId" type="unsigned long long" dir="return">
3486 <desc>
3487 Platform-dependent identifier of the top-level VM console
3488 window, or zero if this method has performed all actions
3489 necessary to implement the <i>show window</i> semantics for
3490 the given platform and/or this VirtualBox front-end.
3491 </desc>
3492 </param>
3493 </method>
3494
3495 </interface>
3496
3497 <interface
3498 name="IRemoteDisplayInfo" extends="$unknown"
3499 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
3500 wsmap="struct"
3501 >
3502 <attribute name="active" type="boolean" readonly="yes">
3503 <desc>
3504 Whether the remote display connection is active.
3505 </desc>
3506 </attribute>
3507
3508 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
3509 <desc>
3510 How many times a client connected.
3511 </desc>
3512 </attribute>
3513
3514 <attribute name="beginTime" type="long long" readonly="yes">
3515 <desc>
3516 When the last connection was established, in milliseconds since 1970-01-01 UTC.
3517 </desc>
3518 </attribute>
3519
3520 <attribute name="endTime" type="long long" readonly="yes">
3521 <desc>
3522 When the last connection was terminated or the current time, if
3523 connection is still active, in milliseconds since 1970-01-01 UTC.
3524 </desc>
3525 </attribute>
3526
3527 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
3528 <desc>
3529 How many bytes were sent in last or current, if still active, connection.
3530 </desc>
3531 </attribute>
3532
3533 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
3534 <desc>
3535 How many bytes were sent in all connections.
3536 </desc>
3537 </attribute>
3538
3539 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
3540 <desc>
3541 How many bytes were received in last or current, if still active, connection.
3542 </desc>
3543 </attribute>
3544
3545 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
3546 <desc>
3547 How many bytes were received in all connections.
3548 </desc>
3549 </attribute>
3550
3551 <attribute name="user" type="wstring" readonly="yes">
3552 <desc>
3553 Login user name supplied by the client.
3554 </desc>
3555 </attribute>
3556
3557 <attribute name="domain" type="wstring" readonly="yes">
3558 <desc>
3559 Login domain name supplied by the client.
3560 </desc>
3561 </attribute>
3562
3563 <attribute name="clientName" type="wstring" readonly="yes">
3564 <desc>
3565 The client name supplied by the client.
3566 </desc>
3567 </attribute>
3568
3569 <attribute name="clientIP" type="wstring" readonly="yes">
3570 <desc>
3571 The IP address of the client.
3572 </desc>
3573 </attribute>
3574
3575 <attribute name="clientVersion" type="unsigned long" readonly="yes">
3576 <desc>
3577 The client software version number.
3578 </desc>
3579 </attribute>
3580
3581 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
3582 <desc>
3583 Public key exchange method used when connection was established.
3584 Values: 0 - RDP4 public key exchange scheme.
3585 1 - X509 sertificates were sent to client.
3586 </desc>
3587 </attribute>
3588
3589 </interface>
3590
3591 <interface
3592 name="IConsole" extends="$unknown"
3593 uuid="d5a1cbda-f5d7-4824-9afe-d640c94c7dcf"
3594 wsmap="managed"
3595 >
3596 <desc>
3597 The IConsole interface represents an interface to control virtual
3598 machine execution.
3599
3600 The console object that implements the IConsole interface is obtained
3601 from a session object after the session for the given machine has been
3602 opened using one of <link to="IVirtualBox::openSession"/>,
3603 <link to="IVirtualBox::openRemoteSession"/> or
3604 <link to="IVirtualBox::openExistingSession"/> methdods.
3605
3606 Methods of the IConsole interface allow the caller to query the current
3607 virtual machine execution state, pause the machine or power it down, save
3608 the machine state or take a snapshot, attach and detach removable media
3609 and so on.
3610
3611 <see>ISession</see>
3612 </desc>
3613
3614 <attribute name="machine" type="IMachine" readonly="yes">
3615 <desc>
3616 Machine object this console is sessioned with.
3617 <note>
3618 This is a convenience property, it has the same value as
3619 <link to="ISession::machine"/> of the corresponding session
3620 object.
3621 </note>
3622 </desc>
3623 </attribute>
3624
3625 <attribute name="state" type="MachineState" readonly="yes">
3626 <desc>
3627 Current execution state of the machine.
3628 <note>
3629 This property always returns the same value as the corresponding
3630 property of the IMachine object this console is sessioned with.
3631 For the process that owns (executes) the VM, this is the
3632 preferable way of querying the VM state, because no IPC
3633 calls are made.
3634 </note>
3635 </desc>
3636 </attribute>
3637
3638 <attribute name="guest" type="IGuest" readonly="yes">
3639 <desc>Guest object.</desc>
3640 </attribute>
3641
3642 <attribute name="keyboard" type="IKeyboard" readonly="yes">
3643 <desc>
3644 Virtual keyboard object.
3645 <note>
3646 If the machine is not running, any attempt to use
3647 the returned object will result in an error.
3648 </note>
3649 </desc>
3650 </attribute>
3651
3652 <attribute name="mouse" type="IMouse" readonly="yes">
3653 <desc>
3654 Virtual mouse object.
3655 <note>
3656 If the machine is not running, any attempt to use
3657 the returned object will result in an error.
3658 </note>
3659 </desc>
3660 </attribute>
3661
3662 <attribute name="display" type="IDisplay" readonly="yes">
3663 <desc>Virtual display object.
3664 <note>
3665 If the machine is not running, any attempt to use
3666 the returned object will result in an error.
3667 </note>
3668 </desc>
3669 </attribute>
3670
3671 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
3672 <desc>Debugging interface.</desc>
3673 </attribute>
3674
3675 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
3676 <desc>
3677 Collection of USB devices currently attached to the virtual
3678 USB controller.
3679 <note>
3680 The collection is empty if the machine is not running.
3681 </note>
3682 </desc>
3683 </attribute>
3684
3685 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
3686 <desc>
3687 List of USB devices currently attached to the remote VRDP client.
3688 Once a new device is physically attached to the remote host computer,
3689 it appears in this list and remains there until detached.
3690 </desc>
3691 </attribute>
3692
3693 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
3694 <desc>
3695 Collection of shared folders for the current session. These folders
3696 are called transient shared folders because they are available to the
3697 guest OS running inside the associated virtual machine only for the
3698 duration of the session (as opposed to
3699 <link to="IMachine::sharedFolders"/> which represent permanent shared
3700 folders). When the session is closed (e.g. the machine is powered down),
3701 these folders are automatically discarded.
3702
3703 New shared folders are added to the collection using
3704 <link to="#createSharedFolder"/>. Existing shared folders can be
3705 removed using <link to="#removeSharedFolder"/>.
3706 </desc>
3707 </attribute>
3708
3709 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
3710 <desc>
3711 Interface that provides information on Remote Display (VRDP) connection.
3712 </desc>
3713 </attribute>
3714
3715 <method name="powerUp">
3716 <desc>
3717 Starts the virtual machine execution using the current machine
3718 state (i.e. its current execution state, current settings and
3719 current hard disks).
3720
3721 If the machine is powered off or aborted, the execution will
3722 start from the beginning (as if the real hardware were just
3723 powered on).
3724
3725 If the machine is in the <link to="MachineState::Saved"/> state,
3726 it will continue its execution the point where the state has
3727 beem saved.
3728
3729 <see>#saveState</see>
3730 </desc>
3731 <param name="progress" type="IProgress" dir="return">
3732 <desc>Progress object to track the operation completion.</desc>
3733 </param>
3734 </method>
3735
3736 <method name="powerDown">
3737 <desc>
3738 Stops the virtual machine execution.
3739 After this operation completes, the machine will go to the
3740 PoweredOff state.
3741 </desc>
3742 </method>
3743
3744 <method name="reset">
3745 <desc>Resets the virtual machine.</desc>
3746 </method>
3747
3748 <method name="pause">
3749 <desc>Pauses the virtual machine execution.</desc>
3750 </method>
3751
3752 <method name="resume">
3753 <desc>Resumes the virtual machine execution.</desc>
3754 </method>
3755
3756 <method name="powerButton">
3757 <desc>Send the ACPI power button event to the guest.</desc>
3758 </method>
3759
3760 <method name="sleepButton">
3761 <desc>Send the ACPI sleep button event to the guest.</desc>
3762 </method>
3763
3764 <method name="saveState">
3765 <desc>
3766 Saves the current execution state of a running virtual machine
3767 and stops its executiuon.
3768
3769 After this operation completes, the machine will go to the
3770 Saved state. Next time it is powered up, this state will
3771 be restored and the machine will continue its execution from
3772 the place where it was saved.
3773
3774 This operation differs from taking a snapshot to the effect
3775 that it doesn't create new differencing hard disks. Also, once
3776 the machine is powered up from the state saved using this method,
3777 the saved state is deleted, so it will be impossible to return
3778 to this state later.
3779
3780 <note>
3781 On success, this method implicitly calls
3782 <link to="IMachine::saveSettings"/> to save all current machine
3783 settings (including runtime changes to the DVD drive, etc.).
3784 Together with the impossibility to change any VM settings when it is
3785 in the Saved state, this guarantees the adequate hardware
3786 configuration of the machine when it is restored from the saved
3787 state file.
3788 </note>
3789
3790 <note>
3791 The machine must be in the Running or Paused state, otherwise
3792 the operation will fail.
3793 </note>
3794
3795 <see><link to="#takeSnapshot"/></see>
3796 </desc>
3797 <param name="progress" type="IProgress" dir="return">
3798 <desc>Progress object to track the operation completion.</desc>
3799 </param>
3800 </method>
3801
3802 <method name="adoptSavedState">
3803 <desc>
3804 Associates the given saved state file to the virtual machine.
3805
3806 On success, the machine will go to the Saved state. Next time it is
3807 powered up, it will be restored from the adopted saved state and
3808 continue execution from the place where the saved state file was
3809 created.
3810
3811 The specified saved state file path may be full or relative to the
3812 folder the VM normally saves the state to (usually,
3813 <link to="IMachine::snapshotFolder"/>).
3814
3815 <note>
3816 It's a caller's responsibility to make sure the given saved state
3817 file is compatible with the settings of this virtual machine that
3818 represent its virtual hardware (memory size, hard disk configuration
3819 etc.). If there is a mismatch, the behavior of the virtual machine
3820 is undefined.
3821 </note>
3822 </desc>
3823 <param name="savedStateFile" type="wstring" dir="in">
3824 <desc>Path to the saved state file to adopt.</desc>
3825 </param>
3826 </method>
3827
3828 <method name="discardSavedState">
3829 <desc>
3830 Discards (deletes) the saved state of the virtual machine
3831 previously created by <link to="#saveState"/>. Next time the
3832 machine is powered up, a clean boot will occur.
3833 <note>
3834 This operation is equivalent to resetting or powering off
3835 the machine without doing a proper shutdown in the guest OS.
3836 </note>
3837 </desc>
3838 </method>
3839
3840 <method name="getDeviceActivity">
3841 <desc>
3842 Gets the current activity type of a given device or device group.
3843 </desc>
3844 <param name="type" type="DeviceType" dir="in"/>
3845 <param name="activity" type="DeviceActivity" dir="return"/>
3846 </method>
3847
3848 <method name="attachUSBDevice">
3849 <desc>
3850 Attaches a host USB device with the given UUID to the
3851 USB controller of the virtual machine.
3852
3853 The device needs to be in one of the following states:
3854 <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
3855 <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link> or
3856 <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>,
3857 otherwise an error is immediately returned.
3858
3859 When the device state is
3860 <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
3861 an error may also be returned if the host computer
3862 refuses to release it for some reason.
3863
3864 <see>IUSBController::deviceFilters, USBDeviceState</see>
3865 </desc>
3866 <param name="id" type="uuid" dir="in">
3867 <desc>UUID of the host USB device to attach.</desc>
3868 </param>
3869 </method>
3870
3871 <method name="detachUSBDevice">
3872 <desc>
3873 Detaches an USB device with the given UUID from the USB controller
3874 oif the virtual machine.
3875
3876 After this method succeeds, the VirtualBox server reinitiates
3877 all USB filters as if the device were just physically attached
3878 to the host, but filters of this machine are ignored to avoid
3879 a possible automatic reattachment.
3880
3881 <see>IUSBController::deviceFilters, USBDeviceState</see>
3882 </desc>
3883 <param name="id" type="uuid" dir="in">
3884 <desc>UUID of the USB device to detach.</desc>
3885 </param>
3886 <param name="device" type="IUSBDevice" dir="return">
3887 <desc>Detached USB device.</desc>
3888 </param>
3889 </method>
3890
3891 <method name="createSharedFolder">
3892 <desc>
3893 Creates a transient new shared folder by associating the given logical
3894 name with the given host path, adds it to the collection of shared
3895 folders and starts sharing it. Refer to the description of
3896 <link to="ISharedFolder"/> to read more about logical names.
3897 </desc>
3898 <param name="name" type="wstring" dir="in">
3899 <desc>Unique logical name of the shared folder.</desc>
3900 </param>
3901 <param name="hostPath" type="wstring" dir="in">
3902 <desc>Full path to the shared folder in the host file system.</desc>
3903 </param>
3904 </method>
3905
3906 <method name="removeSharedFolder">
3907 <desc>
3908 Removes a transient shared folder with the given name previously
3909 created by <link to="#createSharedFolder"/> from the collection of
3910 shared folders and stops sharing it.
3911 </desc>
3912 <param name="name" type="wstring" dir="in">
3913 <desc>Logical name of the shared folder to remove.</desc>
3914 </param>
3915 </method>
3916
3917 <method name="takeSnapshot">
3918 <desc>
3919 Saves the current execution state and all settings of the
3920 machine and creates differencing images for all
3921 normal (non-independent) hard disks.
3922
3923 This method can be called for a PoweredOff, Saved, Running or
3924 Paused virtual machine. When the machine is PoweredOff, an
3925 offline <link to="ISnapshot">snapshot</link> is created,
3926 in all other cases -- an online snapshot.
3927
3928 The taken snapshot is always based on the
3929 <link to="IMachine::currentSnapshot">current
3930 snapshot</link> of the associated virtual machine and becomes
3931 a new current snapshot.
3932
3933 <note>
3934 This method implicitly calls <link to="IMachine::saveSettings"/> to
3935 save all current machine settings before taking an offline snapshot.
3936 </note>
3937
3938 <see>ISnapshot, <link to="#saveState"/></see>
3939 </desc>
3940 <param name="name" type="wstring" dir="in">
3941 <desc>Short name for the snapshot.</desc>
3942 </param>
3943 <param name="description" type="wstring" dir="in">
3944 <desc>Optional description of the snapshot.</desc>
3945 </param>
3946 <param name="progress" type="IProgress" dir="return">
3947 <desc>Progress object to track the operation completion.</desc>
3948 </param>
3949 </method>
3950
3951 <method name="discardSnapshot">
3952 <desc>
3953
3954 Starts discarding the specified snapshot. The execution state
3955 and settings of the associated machine stored in the snapshot
3956 will be deleted. The contents of all differencing hard disks of
3957 this snapshot will be merged with the contents of their
3958 dependent child hard disks to keep the, disks valid (in other
3959 words, all changes represented by hard disks being discarded
3960 will be propagated to their child hard disks). After that, this
3961 snapshot's differencing hard disks will be deleted. The parent
3962 of this snapshot will become a new parent for all its child
3963 snapshots.
3964
3965 If the discarded snapshot is the current one, its parent
3966 snapshot will become a new current snapshot. The current machine
3967 state is not directly affected in this case, except that
3968 currently attached differencing hard disks based on hard disks
3969 of the discarded snapshot will be also merged as described
3970 above.
3971
3972 If the discarded snapshot is the first one (the root snapshot)
3973 and it has exactly one child snapshot, this child snapshot will
3974 become the first snapshot after discarding. If there are no
3975 children at all (i.e. the first snapshot is the only snapshot of
3976 the machine), both the current and the first snapshot of the
3977 machine will be set to null. In all other cases, the first
3978 snapshot cannot be discarded.
3979
3980 You cannot discard the snapshot if it
3981 stores <link to="HardDiskType::NormalHardDisk">normal</link>
3982 (non-differencing) hard disks that have differencing hard disks based
3983 on them. Snapshots of such kind can be discarded only when every
3984 normal hard disk has either no children at all or exactly one
3985 child. In the former case, the normal hard disk simply becomes unused
3986 (i.e. not attached to any VM). In the latter case, it receives all the
3987 changes strored in the child hard disk, and then it replaces the child
3988 hard disk in the configuration of the corresponding snapshot or
3989 machine.
3990
3991 Also, you cannot discard the snapshot if it stores hard disks
3992 (of any type) having differencing child hard disks that belong
3993 to other machines. Such snapshots can be only discarded after
3994 you discard all snapshots of other machines containing "foreign"
3995 child disks, or detach these "foreign" child disks from machines
3996 they are attached to.
3997
3998 One particular example of the snapshot storing normal hard disks
3999 is the first snapshot of a virtual machine that had normal hard
4000 disks attached when taking the snapshot. Be careful when
4001 discarding such snapshots because this implicitly commits
4002 changes (made since the snapshot being discarded has been taken)
4003 to normal hard disks (as described above), which may be not what
4004 you want.
4005
4006 The virtual machine is put to
4007 the <link to="MachineState::Discarding">Discarding</link> state until
4008 the discard operation is completed.
4009
4010 <note>
4011 The machine must not be running, otherwise the operation
4012 will fail.
4013 </note>
4014
4015 <note>
4016 Child hard disks of all normal hard disks of the discarded snapshot
4017 must be <link to="IHardDisk::accessible">accessible</link> for this
4018 operation to succeed. In particular, this means that all virtual
4019 machines, whose hard disks are directly or indirectly based on the
4020 hard disks of discarded snapshot, must be powered off.
4021 </note>
4022 <note>
4023 Merging hard disk contents can be very time and disk space
4024 consuming, if these disks are big in size and have many
4025 children. However, if the snapshot being discarded is the last
4026 (head) snapshot on the branch, the operation will be rather
4027 quick.
4028 </note>
4029 <note>
4030 Note that discarding the current snapshot
4031 will imlicitly call <link to="IMachine::saveSettings()"/> to
4032 make all current machine settings permanent.
4033 </note>
4034 </desc>
4035 <param name="id" type="uuid" dir="in">
4036 <desc>UUID of the snapshot to discard.</desc>
4037 </param>
4038 <param name="progress" type="IProgress" dir="return">
4039 <desc>Progress object to track the operation completion.</desc>
4040 </param>
4041 </method>
4042
4043 <method name="discardCurrentState">
4044 <desc>
4045 This operation is similar to <link to="#discardSnapshot()"/> but
4046 affects the current machine state. This means that the state stored in
4047 the current snapshot will become a new current state, and all current
4048 settings of the machine and changes stored in differencing hard disks
4049 will be lost.
4050
4051 After this operation is successfully completed, new empty differencing
4052 hard disks are created for all normal hard disks of the machine.
4053
4054 If the current snapshot of the machine is an online snapshot, the
4055 machine will go to the <link to="MachineState::Saved"> saved
4056 state</link>, so that the next time it is powered on, the execution
4057 state will be restored from the current snapshot.
4058
4059 <note>
4060 The machine must not be running, otherwise the operation will fail.
4061 </note>
4062
4063 <note>
4064 If the machine state is <link to="MachineState::Saved">Saved</link>
4065 prior to this operation, the saved state file will be implicitly
4066 discarded (as if <link to="IConsole::discardSavedState()"/> were
4067 called).
4068 </note>
4069
4070 </desc>
4071 <param name="progress" type="IProgress" dir="return">
4072 <desc>Progress object to track the operation completion.</desc>
4073 </param>
4074 </method>
4075
4076 <method name="discardCurrentSnapshotAndState">
4077 <desc>
4078
4079 This method is equivalent to
4080 doing <link to="#discardSnapshot">discardSnapshot</link>
4081 (<link
4082 to="IMachine::currentSnapshot">currentSnapshot</link>.<link
4083 to="ISnapshot::id">id()</link>, ...) followed by
4084 <link to="#discardCurrentState()"/>.
4085
4086 As a result, the machine will be fully restored from the
4087 snapshot preceeding the current snapshot, while both the current
4088 snapshot and the current machine state will be discarded.
4089
4090 If the current snapshot is the first snapshot of the machine (i.e. it
4091 has the only snapshot), the current machine state will be
4092 discarded <b>before</b> discarding the snapshot. In other words, the
4093 machine will be restored from its last snapshot, before discarding
4094 it. This differs from performing a single
4095 <link to="#discardSnapshot()"/> call (note that no
4096 <link to="#discardCurrentState()"/> will be possible after it) to the
4097 effect that the latter will preserve the current state instead of
4098 discarding it.
4099
4100 Unless explicitly mentioned otherwise, all remarks and
4101 limitations of the above two methods also apply to this method.
4102
4103 <note>
4104 The machine must not be running, otherwise the operation
4105 will fail.
4106 </note>
4107
4108 <note>
4109 If the machine state is <link to="MachineState::Saved">Saved</link>
4110 prior to this operation, the saved state file will be implicitly
4111 discarded (as if <link to="IConsole::discardSavedState()"/> were
4112 called).</note>
4113
4114 <note>
4115 This method is more efficient than calling two above
4116 methods separately: it requires less IPC calls and provides
4117 a single progress object.
4118 </note>
4119
4120 </desc>
4121 <param name="progress" type="IProgress" dir="return">
4122 <desc>Progress object to track the operation completion.</desc>
4123 </param>
4124 </method>
4125
4126 <method name="registerCallback">
4127 <desc>
4128 Registers a new console callback on this instance. The methods of the
4129 callback interface will be called by this instance when the appropriate
4130 event occurs.
4131 </desc>
4132 <param name="callback" type="IConsoleCallback" dir="in"/>
4133 </method>
4134
4135 <method name="unregisterCallback">
4136 <desc>
4137 Unregisters the console callback previously registered using
4138 <link to="#registerCallback"/>.
4139 </desc>
4140 <param name="callback" type="IConsoleCallback" dir="in"/>
4141 </method>
4142
4143 </interface>
4144
4145 <!--
4146 // IHost
4147 /////////////////////////////////////////////////////////////////////////
4148 -->
4149
4150 <interface
4151 name="IHostDVDDrive" extends="$unknown"
4152 uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
4153 wsmap="managed"
4154 >
4155 <desc>
4156 The IHostDVDDrive interface represents the physical CD/DVD drive
4157 hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
4158 </desc>
4159
4160 <attribute name="name" type="wstring" readonly="yes">
4161 <desc>
4162 Returns the platform-specific device identifier.
4163 On DOS-like platforms, it is a drive name (e.g. R:).
4164 On Unix-like platforms, it is a device name (e.g. /dev/hdc).
4165 </desc>
4166 </attribute>
4167 <attribute name="description" type="wstring" readonly="yes">
4168 <desc>
4169 Returns a human readable description for the drive. This
4170 description usually contains the product and vendor name. A
4171 @c null string is returned if the description is not available.
4172 </desc>
4173 </attribute>
4174 <attribute name="udi" type="wstring" readonly="yes">
4175 <desc>
4176 Returns the unique device identifier for the drive. This
4177 attribute is reserved for future use instead of
4178 <link to="#name"/>. Currently it is not used and may return
4179 @c null on some platforms.
4180 </desc>
4181 </attribute>
4182
4183 </interface>
4184
4185 <enumerator
4186 name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
4187 uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
4188 />
4189
4190 <collection
4191 name="IHostDVDDriveCollection" type="IHostDVDDrive"
4192 enumerator="IHostDVDDriveEnumerator"
4193 uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
4194 readonly="yes"
4195 >
4196 <method name="findByName">
4197 <desc>
4198 Searches this collection for a host drive with the given name.
4199 <note>
4200 The method returns an error if the given name does not
4201 correspond to any host drive in the collection.
4202 </note>
4203 </desc>
4204 <param name="name" type="wstring" dir="in">
4205 <desc>Name of the host drive to search for</desc>
4206 </param>
4207 <param name="drive" type="IHostDVDDrive" dir="return">
4208 <desc>Found host drive object</desc>
4209 </param>
4210 </method>
4211 </collection>
4212
4213 <interface
4214 name="IHostFloppyDrive" extends="$unknown"
4215 uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
4216 wsmap="managed"
4217 >
4218 <desc>
4219 The IHostFloppyDrive interface represents the physical floppy drive
4220 hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
4221 </desc>
4222 <attribute name="name" type="wstring" readonly="yes">
4223 <desc>
4224 Returns the platform-specific device identifier.
4225 On DOS-like platforms, it is a drive name (e.g. A:).
4226 On Unix-like platforms, it is a device name (e.g. /dev/fd0).
4227 </desc>
4228 </attribute>
4229 <attribute name="description" type="wstring" readonly="yes">
4230 <desc>
4231 Returns a human readable description for the drive. This
4232 description usually contains the product and vendor name. A
4233 @c null string is returned if the description is not available.
4234 </desc>
4235 </attribute>
4236 <attribute name="udi" type="wstring" readonly="yes">
4237 <desc>
4238 Returns the unique device identifier for the drive. This
4239 attribute is reserved for future use instead of
4240 <link to="#name"/>. Currently it is not used and may return
4241 @c null on some platforms.
4242 </desc>
4243 </attribute>
4244 </interface>
4245
4246 <enumerator
4247 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
4248 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
4249 />
4250
4251 <collection
4252 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
4253 enumerator="IHostFloppyDriveEnumerator"
4254 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
4255 readonly="yes"
4256 >
4257 <method name="findByName">
4258 <desc>
4259 Searches this collection for a host drive with the given name.
4260 <note>
4261 The method returns an error if the given name does not
4262 correspond to any host drive in the collection.
4263 </note>
4264 </desc>
4265 <param name="name" type="wstring" dir="in">
4266 <desc>Name of the host drive to search for</desc>
4267 </param>
4268 <param name="drive" type="IHostFloppyDrive" dir="return">
4269 <desc>Found host drive object</desc>
4270 </param>
4271 </method>
4272 </collection>
4273
4274<if target="midl">
4275 <interface
4276 name="IHostNetworkInterface" extends="$unknown"
4277 uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
4278 wsmap="managed"
4279 >
4280 <attribute name="name" type="wstring" readonly="yes">
4281 <desc>Returns the host network interface name.</desc>
4282 </attribute>
4283
4284 <attribute name="id" type="uuid" readonly="yes">
4285 <desc>Returns the interface UUID.</desc>
4286 </attribute>
4287 </interface>
4288
4289 <enumerator
4290 name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
4291 uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
4292 />
4293
4294 <collection
4295 name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
4296 enumerator="IHostNetworkInterfaceEnumerator"
4297 uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
4298 readonly="yes"
4299 >
4300 <method name="findByName">
4301 <desc>
4302 Searches this collection for a host network interface with the given name.
4303 <note>
4304 The method returns an error if the given name does not
4305 correspond to any host network interface in the collection.
4306 </note>
4307 </desc>
4308 <param name="name" type="wstring" dir="in">
4309 <desc>Name of the host network interface to search for.</desc>
4310 </param>
4311 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
4312 <desc>Found host network interface object.</desc>
4313 </param>
4314 </method>
4315 <method name="findById">
4316 <desc>
4317 Searches this collection for a host network interface with the given GUID.
4318 <note>
4319 The method returns an error if the given GUID does not
4320 correspond to any host network interface in the collection.
4321 </note>
4322 </desc>
4323 <param name="id" type="uuid" dir="in">
4324 <desc>GUID of the host network interface to search for.</desc>
4325 </param>
4326 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
4327 <desc>Found host network interface object.</desc>
4328 </param>
4329 </method>
4330 </collection>
4331</if>
4332
4333 <interface
4334 name="IHost" extends="$unknown"
4335 uuid="81729c26-1aec-46f5-b7c0-cc7364738fdb"
4336 wsmap="managed"
4337 >
4338 <desc>
4339 The IHost interface represents the physical machine that this VirtualBox
4340 installation runs on.
4341
4342 An object implementing this interface is returned by the
4343 <link to="IVirtualBox::host" /> attribute. This interface contains
4344 read-only information about the host's physical hardware (such as what
4345 processors, and disks are available, what the host operating system is,
4346 and so on) and also allows for manipulating some of the host's hardware,
4347 such as global USB device filters and host interface networking.
4348
4349 </desc>
4350 <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
4351 <desc>List of DVD drives available on the host.</desc>
4352 </attribute>
4353
4354 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
4355 <desc>List of floppy drives available on the host.</desc>
4356 </attribute>
4357
4358 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
4359 <desc>
4360 List of USB devices currently attached to the host.
4361 Once a new device is physically attached to the host computer,
4362 it appears in this list and remains there until detached.
4363 </desc>
4364 </attribute>
4365
4366 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
4367 <desc>
4368 List of USB device filters in action.
4369 When a new device is physically attached to the host computer,
4370 filters from this list are applied to it (in order they are stored
4371 in the list). The first matched filter will determine the
4372 <link to="IHostUSBDeviceFilter::action">action</link>
4373 performed on the device.
4374
4375 Unless the device is ignored by these filters, filters of all
4376 currently running virtual machines
4377 (<link to="IUSBController::deviceFilters"/>) are applied to it.
4378
4379 <see>IHostUSBDeviceFilter, USBDeviceState</see>
4380 </desc>
4381 </attribute>
4382
4383<if target="midl">
4384 <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
4385 <desc>List of host network interfaces currently defined on the host.</desc>
4386 </attribute>
4387</if>
4388
4389 <attribute name="processorCount" type="unsigned long" readonly="yes">
4390 <desc>Number of (logical) CPUs installed in the host system.</desc>
4391 </attribute>
4392
4393 <attribute name="processorSpeed" type="unsigned long" readonly="yes">
4394 <desc>(Approximate) speed of the host CPU in Megahertz.</desc>
4395 </attribute>
4396
4397 <attribute name="processorDescription" type="wstring" readonly="yes">
4398 <desc>Description string of the host CPU.</desc>
4399 </attribute>
4400
4401 <attribute name="memorySize" type="unsigned long" readonly="yes">
4402 <desc>Amount of system memory in megabytes installed in the host system.</desc>
4403 </attribute>
4404
4405 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
4406 <desc>Available system memory in the host system.</desc>
4407 </attribute>
4408
4409 <attribute name="operatingSystem" type="wstring" readonly="yes">
4410 <desc>Name of the host system's operating system.</desc>
4411 </attribute>
4412
4413 <attribute name="OSVersion" type="wstring" readonly="yes">
4414 <desc>Host operating system's version string.</desc>
4415 </attribute>
4416
4417 <attribute name="UTCTime" type="long long" readonly="yes">
4418 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
4419 </attribute>
4420
4421<if target="midl">
4422 <method name="createHostNetworkInterface">
4423 <desc>
4424 Creates a new adapter for Host Interface Networking.
4425 </desc>
4426 <param name="name" type="wstring" dir="in">
4427 <desc>
4428 Adapter name.
4429 </desc>
4430 </param>
4431 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
4432 <desc>
4433 Created host interface object.
4434 </desc>
4435 </param>
4436 <param name="progress" type="IProgress" dir="return">
4437 <desc>
4438 Progress object to track the operation completion.
4439 </desc>
4440 </param>
4441 </method>
4442 <method name="removeHostNetworkInterface">
4443 <desc>
4444 Removes the given host network interface.
4445 </desc>
4446 <param name="id" type="uuid" dir="in">
4447 <desc>
4448 Adapter GUID.
4449 </desc>
4450 </param>
4451 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
4452 <desc>
4453 Removed host interface object.
4454 </desc>
4455 </param>
4456 <param name="progress" type="IProgress" dir="return">
4457 <desc>
4458 Progress object to track the operation completion.
4459 </desc>
4460 </param>
4461 </method>
4462</if>
4463
4464 <method name="createUSBDeviceFilter">
4465 <desc>
4466 Creates a new USB device filter. All attributes except
4467 the filter name are set to <tt>null</tt> (any match),
4468 <i>active</i> is <tt>false</tt> (the filter is not active).
4469
4470 The created filter can be added to the list of filters using
4471 <link to="#insertUSBDeviceFilter()"/>.
4472
4473 <see>#USBDeviceFilters</see>
4474 </desc>
4475 <param name="name" type="wstring" dir="in">
4476 <desc>
4477 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
4478 for more info.
4479 </desc>
4480 </param>
4481 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
4482 <desc>Created filter object.</desc>
4483 </param>
4484 </method>
4485
4486 <method name="insertUSBDeviceFilter">
4487 <desc>
4488 Inserts the given USB device to the specified position
4489 in the list of filters.
4490
4491 Positions are numbered starting from <tt>0</tt>. If the specified
4492 position is equal to or greater than the number of elements in
4493 the list, the filter is added to the end of the collection.
4494
4495 <note>
4496 Duplicates are not allowed, so an attempt to insert a
4497 filter that is already in the list, will return an
4498 error.
4499 </note>
4500
4501 <see>#USBDeviceFilters</see>
4502 </desc>
4503 <param name="position" type="unsigned long" dir="in">
4504 <desc>Position to insert the filter to.</desc>
4505 </param>
4506 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
4507 <desc>USB device filter to insert.</desc>
4508 </param>
4509 </method>
4510
4511 <method name="removeUSBDeviceFilter">
4512 <desc>
4513 Removes a USB device filter from the specified position in the
4514 list of filters.
4515
4516 Positions are numbered starting from <tt>0</tt>. Specifying a
4517 position equal to or greater than the number of elements in
4518 the list will produce an error.
4519
4520 <see>#USBDeviceFilters</see>
4521 </desc>
4522 <param name="position" type="unsigned long" dir="in">
4523 <desc>Position to remove the filter from.</desc>
4524 </param>
4525 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
4526 <desc>Removed USB device filter.</desc>
4527 </param>
4528 </method>
4529
4530 </interface>
4531
4532 <!--
4533 // ISystemProperties
4534 /////////////////////////////////////////////////////////////////////////
4535 -->
4536
4537 <interface
4538 name="ISystemProperties"
4539 extends="$unknown"
4540 uuid="12c2e31e-247f-4d51-82e5-5b9d4a6c7d5b"
4541 wsmap="struct"
4542 >
4543 <desc>
4544 The ISystemProperties interface represents global properties
4545 of the given VirtualBox installation.
4546
4547 These properties define limits and default values for various
4548 attributes and parameters.
4549
4550 Most of the properties are read-only, but some can be changed by
4551 a user.
4552 </desc>
4553
4554 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
4555 <desc>Minium guest system memory in Megabytes.</desc>
4556 </attribute>
4557
4558 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
4559 <desc>Maximum guest system memory in Megabytes.</desc>
4560 </attribute>
4561
4562 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
4563 <desc>Minimum guest video memory in Megabytes.</desc>
4564 </attribute>
4565
4566 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
4567 <desc>Maximum guest video memory in Megabytes.</desc>
4568 </attribute>
4569
4570 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
4571 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
4572 </attribute>
4573
4574 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
4575 <desc>
4576 Number of network adapters associated with every
4577 <link to="IMachine"/> instance.
4578 </desc>
4579 </attribute>
4580
4581 <attribute name="serialPortCount" type="unsigned long" readonly="yes">
4582 <desc>
4583 Number of serial ports associated with every
4584 <link to="IMachine"/> instance.
4585 </desc>
4586 </attribute>
4587
4588 <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
4589 <desc>
4590 Number of parallel ports associated with every
4591 <link to="IMachine"/> instance.
4592 </desc>
4593 </attribute>
4594
4595 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
4596 <desc>
4597 Maximum device position in the boot order. This value corresponds
4598 to the total number of devices a machine can boot from, to make it
4599 possible to include all possible devices to the boot list.
4600 <see><link to="IMachine::setBootOrder()"/></see>
4601 </desc>
4602 </attribute>
4603
4604 <attribute name="defaultVDIFolder" type="wstring">
4605 <desc>
4606 Full path to the default directory used to create new or open
4607 existing virtual disk images when an image file name contains no
4608 path.
4609
4610 The initial value of this property is
4611 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
4612 VirtualBox_home</link><tt>&gt;/VDI</tt>.
4613
4614 <note>
4615 Setting this property to <tt>null</tt> will restore the
4616 initial value.
4617 </note>
4618 <note>
4619 When settings this property, the specified path can be
4620 absolute (full path) or relative
4621 to the <link to="IVirtualBox::homeFolder">
4622 VirtualBox home directory</link>.
4623 When reading this property, a full path is
4624 always returned.
4625 </note>
4626 <note>
4627 The specified path may not exist, it will be created
4628 when necessary.
4629 </note>
4630
4631 <see>
4632 <link to="IVirtualBox::createHardDisk()"/>,
4633 <link to="IVirtualBox::openVirtualDiskImage()"/>
4634 </see>
4635 </desc>
4636 </attribute>
4637
4638 <attribute name="defaultMachineFolder" type="wstring">
4639 <desc>
4640 Full path to the default directory used to create new or open
4641 existing machines when a settings file name contains no
4642 path.
4643
4644 The initial value of this property is
4645 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
4646 VirtualBox_home</link><tt>&gt;/Machines</tt>.
4647
4648 <note>
4649 Setting this property to <tt>null</tt> will restore the
4650 initial value.
4651 </note>
4652 <note>
4653 When settings this property, the specified path can be
4654 absolute (full path) or relative
4655 to the <link to="IVirtualBox::homeFolder">
4656 VirtualBox home directory</link>.
4657 When reading this property, a full path is
4658 always returned.
4659 </note>
4660 <note>
4661 The specified path may not exist, it will be created
4662 when necessary.
4663 </note>
4664
4665 <see>
4666 <link to="IVirtualBox::createMachine()"/>,
4667 <link to="IVirtualBox::openMachine()"/>
4668 </see>
4669 </desc>
4670 </attribute>
4671
4672 <attribute name="remoteDisplayAuthLibrary" type="wstring">
4673 <desc>
4674 Library that provides authentication for VRDP clients. The library
4675 is used if a virtual machine's authentication type is set to "external"
4676 in the VM RemoteDisplay configuration.
4677
4678 The system library extension (".DLL" or ".so") must be omitted.
4679 A full path can be specified; if not, then the library must reside on the
4680 system's default library path.
4681
4682 The default value of this property is <tt>VRDPAuth</tt>. There is a library
4683 of that name in one of the default VirtualBox library directories.
4684
4685 For details about VirtualBox authentication libraries and how to implement
4686 them, please refer to the VirtualBox manual.
4687
4688 <note>
4689 Setting this property to <tt>null</tt> will restore the
4690 initial value.
4691 </note>
4692 </desc>
4693 </attribute>
4694
4695 <attribute name="webServiceAuthLibrary" type="wstring">
4696 <desc>
4697 Library that provides authentication for webservice clients. The library
4698 is used if a virtual machine's authentication type is set to "external"
4699 in the VM RemoteDisplay configuration and will be called from
4700 within the <link to="IWebsessionManager::logon" /> implementation.
4701
4702 As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
4703 there is no per-VM setting for this, as the webservice is a global
4704 resource (if it is running). Only for this setting (for the webservice),
4705 setting this value to a literal "null" string disables authentication,
4706 meaning that <link to="IWebsessionManager::logon" /> will always succeed,
4707 no matter what user name and password are supplied.
4708
4709 The initial value of this property is <tt>VRDPAuth</tt>,
4710 meaning that the webservice will use the same authentication
4711 library that is used by default for VBoxVRDP (again, see
4712 <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
4713 The format and calling convetion of authentication libraries
4714 is the same for the webservice as it is for VBoxVRDP.
4715
4716 </desc>
4717 </attribute>
4718
4719 <attribute name="HWVirtExEnabled" type="boolean">
4720 <desc>
4721 This specifies the default value for hardware virtualization
4722 extensions. If enabled, virtual machines will make use of
4723 hardware virtualization extensions such as Intel VT-x and
4724 AMD SVM by default. This value can be overridden by each VM
4725 using their <link to="IMachine::HWVirtExEnabled" /> property.
4726 </desc>
4727 </attribute>
4728
4729 <attribute name="LogHistoryCount" type="unsigned long">
4730 <desc>
4731 This value specifies how many old release log files are kept.
4732 </desc>
4733 </attribute>
4734 </interface>
4735
4736 <!--
4737 // IGuest
4738 /////////////////////////////////////////////////////////////////////////
4739 -->
4740
4741 <interface
4742 name="IGuestOSType" extends="$unknown"
4743 uuid="da94f478-1f37-4726-b750-2235950dc2fe"
4744 wsmap="struct"
4745 >
4746 <attribute name="id" type="wstring" readonly="yes">
4747 <desc>Guest OS identifier string.</desc>
4748 </attribute>
4749
4750 <attribute name="description" type="wstring" readonly="yes">
4751 <desc>Human readable description of the guest OS.</desc>
4752 </attribute>
4753
4754 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
4755 <desc>Recommended RAM size in Megabytes.</desc>
4756 </attribute>
4757
4758 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
4759 <desc>Recommended video RAM size in Megabytes.</desc>
4760 </attribute>
4761
4762 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
4763 <desc>Recommended hard disk size in Megabytes.</desc>
4764 </attribute>
4765 </interface>
4766
4767
4768 <enumerator
4769 name="IGuestOSTypeEnumerator" type="IGuestOSType"
4770 uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
4771 />
4772
4773 <collection
4774 name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
4775 uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
4776 readonly="yes"
4777 />
4778
4779 <interface
4780 name="IGuest" extends="$unknown"
4781 uuid="c101f037-b03d-4bd4-bd25-381123980be2"
4782 wsmap="suppress"
4783 >
4784 <desc>
4785 The IGuest interface represents information about the operating system
4786 running inside the virtual machine. Used in
4787 <link to="IConsole::guest"/>.
4788
4789 IGuest provides information about the guest operating system, whether
4790 Guest Additions are installed and other OS-specific virtual machine
4791 properties.
4792 </desc>
4793
4794 <attribute name="OSTypeId" type="wstring" readonly="yes">
4795 <desc>
4796 Identifier of the Guest OS type as reported by the Guest
4797 Additions.
4798 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4799 an IGuestOSType object representing details about the given
4800 Guest OS type.
4801 <note>
4802 If Guest Additions are not installed, this value will be
4803 the same as <link to="IMachine::OSTypeId"/>.
4804 </note>
4805 </desc>
4806 </attribute>
4807
4808 <attribute name="additionsActive" type="boolean" readonly="yes">
4809 <desc>
4810 Flag whether the Guest Additions are installed and active
4811 in which case their version will be returned by the
4812 <link to="#additionsVersion"/> property.
4813 </desc>
4814 </attribute>
4815
4816 <attribute name="additionsVersion" type="wstring" readonly="yes">
4817 <desc>
4818 Version of the Guest Additions (3 decimal numbers separated
4819 by dots) or empty when the Additions are not installed. The
4820 Additions may also report a version but yet not be active as
4821 the version might be refused by VirtualBox (incompatible) or
4822 other failures occured.
4823 </desc>
4824 </attribute>
4825
4826 <attribute name="supportsSeamless" type="boolean" readonly="yes">
4827 <desc>
4828 Flag whether seamless guest display rendering (seamless desktop
4829 integration) is supported.
4830 </desc>
4831 </attribute>
4832
4833 <attribute name="memoryBalloonSize" type="unsigned long">
4834 <desc>Guest system memory balloon size in megabytes.</desc>
4835 </attribute>
4836
4837 <attribute name="statisticsUpdateInterval" type="unsigned long">
4838 <desc>Interval to update guest statistics in seconds.</desc>
4839 </attribute>
4840
4841 <method name="setCredentials">
4842 <desc>
4843 Store login credentials that can be queried by guest operating
4844 systems with Additions installed. The credentials are transient
4845 to the session and the guest may also choose to erase them. Note
4846 that the caller cannot determine whether the guest operating system
4847 has queried or made use of the credentials.
4848 </desc>
4849 <param name="userName" type="wstring" dir="in">
4850 <desc>User name string, can be empty</desc>
4851 </param>
4852 <param name="password" type="wstring" dir="in">
4853 <desc>Password string, can be empty</desc>
4854 </param>
4855 <param name="domain" type="wstring" dir="in">
4856 <desc>Domain name (guest logon scheme specific), can be emtpy</desc>
4857 </param>
4858 <param name="allowInteractiveLogon" type="boolean" dir="in">
4859 <desc>
4860 Flag whether the guest should alternatively allow the user to
4861 interactively specify different credentials. This flag might
4862 not be supported by all versions of the Additions.
4863 </desc>
4864 </param>
4865 </method>
4866
4867 <method name="getStatistic">
4868 <desc>
4869 Query specified guest statistics as reported by the VirtualBox Additions.
4870 </desc>
4871 <param name="cpuId" type="unsigned long" dir="in">
4872 <desc>Virtual CPU id; not relevant for all statistic types</desc>
4873 </param>
4874 <param name="statistic" type="GuestStatisticType" dir="in">
4875 <desc>Statistic type.</desc>
4876 </param>
4877 <param name="statVal" type="unsigned long" dir="out">
4878 <desc>Statistics value</desc>
4879 </param>
4880 </method>
4881
4882 </interface>
4883
4884
4885 <!--
4886 // IProgress
4887 /////////////////////////////////////////////////////////////////////////
4888 -->
4889
4890 <enumerator
4891 name="IProgressEnumerator" type="IProgress"
4892 uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
4893 />
4894
4895 <collection
4896 name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
4897 uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
4898 readonly="yes"
4899 />
4900
4901 <interface
4902 name="IProgress" extends="$unknown"
4903 uuid="10CC03A1-717E-429b-992D-C67B56175A51"
4904 wsmap="managed"
4905 >
4906 <desc>
4907 The IProgress interface represents a task progress object that allows
4908 to wait for the completion of some asynchronous task.
4909
4910 The task consists of one or more operations that run sequentially,
4911 one after one. There is an individual percent of completion of the
4912 current operation and the percent of completion of the task as a
4913 whole. Similarly, you can wait for the completion of a particular
4914 operation or for the completion of the whole task.
4915
4916 Every operation is identified by a number (starting from 0)
4917 and has a separate description.
4918 </desc>
4919
4920 <attribute name="id" type="uuid" readonly="yes">
4921 <desc>ID of the task.</desc>
4922 </attribute>
4923
4924 <attribute name="description" type="wstring" readonly="yes">
4925 <desc>Description of the task.</desc>
4926 </attribute>
4927
4928 <attribute name="initiator" type="$unknown" readonly="yes">
4929 <desc>Initiator of the task.</desc>
4930 </attribute>
4931
4932 <attribute name="cancelable" type="boolean" readonly="yes">
4933 <desc>Whether the task can be interrupted.</desc>
4934 </attribute>
4935
4936 <attribute name="percent" type="long" readonly="yes">
4937 <desc>
4938 Current task progress value in percent.
4939 This value depends on how many operations are already complete.
4940 </desc>
4941 </attribute>
4942
4943 <attribute name="completed" type="boolean" readonly="yes">
4944 <desc>Whether the task has been completed.</desc>
4945 </attribute>
4946
4947 <attribute name="canceled" type="boolean" readonly="yes">
4948 <desc>Whether the task has been canceled.</desc>
4949 </attribute>
4950
4951 <attribute name="resultCode" type="result" readonly="yes">
4952 <desc>
4953 Result code of the progress task.
4954 Valid only if <link to="#completed"/> is true.
4955 </desc>
4956 </attribute>
4957
4958 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
4959 <desc>
4960 Extended information about the unsuccessful result of the
4961 progress operation. May be NULL when no extended information
4962 is available.
4963 Valid only if <link to="#completed"/> is true and
4964 <link to="#resultCode"/> indicates a failure.
4965 </desc>
4966 </attribute>
4967
4968 <attribute name="operationCount" type="unsigned long" readonly="yes">
4969 <desc>
4970 Number of operations this task is divided into.
4971 Every task consists of at least one operation.
4972 </desc>
4973 </attribute>
4974
4975 <attribute name="operation" type="unsigned long" readonly="yes">
4976 <desc>Number of the operation being currently executed.</desc>
4977 </attribute>
4978
4979 <attribute name="operationDescription" type="wstring" readonly="yes">
4980 <desc>
4981 Description of the operation being currently executed.
4982 </desc>
4983 </attribute>
4984
4985 <attribute name="operationPercent" type="long" readonly="yes">
4986 <desc>Current operation progress value in percent.</desc>
4987 </attribute>
4988
4989 <method name="waitForCompletion">
4990 <desc>
4991 Waits until the task is done (including all operations) with a
4992 given timeout.
4993 </desc>
4994 <param name="timeout" type="long" dir="in">
4995 <desc>
4996 Timeout value in milliseconds.
4997 Specify -1 for an indefinite wait.
4998 </desc>
4999 </param>
5000 </method>
5001
5002 <method name="waitForOperationCompletion">
5003 <desc>
5004 Waits until the given operation is done with a given timeout.
5005 </desc>
5006 <param name="operation" type="unsigned long" dir="in">
5007 <desc>
5008 Number of the operation to wait for.
5009 Must be less than <link to="#operationCount"/>.
5010 </desc>
5011 </param>
5012 <param name="timeout" type="long" dir="in">
5013 <desc>
5014 Timeout value in milliseconds.
5015 Specify -1 for an indefinite wait.
5016 </desc>
5017 </param>
5018 </method>
5019
5020 <method name="cancel">
5021 <desc>
5022 Cancels the task.
5023 <note>
5024 If <link to="#cancelable"/> is <tt>false</tt>, then
5025 this method will fail.
5026 </note>
5027 </desc>
5028 </method>
5029
5030 </interface>
5031
5032
5033 <!--
5034 // ISnapshot
5035 /////////////////////////////////////////////////////////////////////////
5036 -->
5037
5038 <enumerator
5039 name="ISnapshotEnumerator" type="ISnapshot"
5040 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
5041 />
5042
5043 <collection
5044 name="ISnapshotCollection" type="ISnapshot"
5045 enumerator="ISnapshotEnumerator"
5046 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
5047 readonly="yes"
5048 />
5049
5050 <interface
5051 name="ISnapshot" extends="$unknown"
5052 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
5053 wsmap="managed"
5054 >
5055 <desc>
5056 The ISnapshot interface represents a snapshot of the virtual
5057 machine.
5058
5059 The <i>snapshot</i> stores all the information about a virtual
5060 machine necessary to bring it to exactly the same state as it was at
5061 the time of taking the snapshot. The snapshot includes:
5062
5063 <ul>
5064 <li>all settings of the virtual machine (i.e. its hardware
5065 configuration: RAM size, attached hard disks, etc.)
5066 </li>
5067 <li>the execution state of the virtual machine (memory contents,
5068 CPU state, etc.).
5069 </li>
5070 </ul>
5071
5072 Snapshots can be <i>offline</i> (taken when the VM is powered off)
5073 or <i>online</i> (taken when the VM is running). The execution
5074 state of the offline snapshot is called a <i>zero execution state</i>
5075 (it doesn't actually contain any information about memory contents
5076 or the CPU state, assuming that all hardware is just powered off).
5077
5078 <h3>Snapshot branches</h3>
5079
5080 Snapshots can be chained. Chained snapshots form a branch where
5081 every next snapshot is based on the previous one. This chaining is
5082 mostly related to hard disk branching (see <link to="IHardDisk"/>
5083 description). This means that every time a new snapshot is created,
5084 a new differencing hard disk is implicitly created for all normal
5085 hard disks attached to the given virtual machine. This allows to
5086 fully restore hard disk contents when the machine is later reverted
5087 to a particular snapshot.
5088
5089 In the current implelemtation, multiple snapshot branches within one
5090 virtual machine are not allowed. Every machine has a signle branch,
5091 and <link to="IConsole::takeSnapshot()"/> operation adds a new
5092 snapshot to the top of that branch.
5093
5094 Existings snapshots can be discarded using
5095 <link to="IConsole::discardSnapshot()"/>.
5096
5097 <h3>Current snapshot</h3>
5098
5099 Every virtual machine has a current snapshot, identified by
5100 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
5101 a base for the <i>current machine state</i> (see below), to the effect
5102 that all normal hard disks of the machine and its execution
5103 state are based on this snapshot.
5104
5105 In the current implementation, the current snapshot is always the
5106 last taken snapshot (i.e. the head snapshot on the branch) and it
5107 cannot be changed.
5108
5109 The current snapshot is <tt>null</tt> if the machine doesn't have
5110 snapshots at all; in this case the current machine state is just
5111 current settings of this machine plus its current execution state.
5112
5113 <h3>Current machine state</h3>
5114
5115 The current machine state is what represened by IMachine instances got
5116 directly from IVirtualBox
5117 using <link
5118 to="IVirtualBox::getMachine()">getMachine()</link>, <link
5119 to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as opposed
5120 to instances returned by <link to="ISnapshot::machine"/>). This state
5121 is always used when the machine is <link to="IConsole::powerUp"> powered
5122 on</link>.
5123
5124 The current machine state also includes the current execution state.
5125 If the machine is being currently executed
5126 (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
5127 and above), its execution state is just what's happening now.
5128 If it is powered off (<link to="MachineState::PoweredOff"/> or
5129 <link to="MachineState::Aborted"/>), it has a zero execution state.
5130 If the machine is saved (<link to="MachineState::Saved"/>), its
5131 execution state is what saved in the execution state file
5132 (<link to="IMachine::stateFilePath"/>).
5133
5134 If the machine is in the saved state, then, next time it is powered
5135 on, its execution state will be fully restored from the saved state
5136 file and the execution will continue from the point where the state
5137 was saved.
5138
5139 Similarly to snapshots, the current machine state can be discarded
5140 using <link to="IConsole::discardCurrentState()"/>.
5141
5142 <h3>Taking and discarding snapshots</h3>
5143
5144 The table below briefly explains the meaning of every snapshot
5145 operation:
5146
5147 <table>
5148 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
5149
5150 <tr><td><link to="IConsole::takeSnapshot()"/></td>
5151
5152 <td>Save the current state of the virtual machine, including all
5153 settings, contents of normal hard disks and the current modifications
5154 to immutable hard disks (for online snapshots)</td>
5155
5156 <td>The current state is not changed (the machine will continue
5157 execution if it is being executed when the snapshot is
5158 taken)</td></tr>
5159
5160 <tr><td><link to="IConsole::discardSnapshot()"/></td>
5161
5162 <td>Forget the state of the virtual machine stored in the snapshot:
5163 dismiss all saved settings and delete the saved execution state (for
5164 online snapshots)</td>
5165
5166 <td>Other snapshots (including child snapshots, if any) and the
5167 current state are not directly affected</td></tr>
5168
5169 <tr><td><link to="IConsole::discardCurrentState()"/></td>
5170
5171 <td>Restore the current state of the virtual machine from the state
5172 stored in the current snapshot, including all settings and hard disk
5173 contents</td>
5174
5175 <td>The current state of the machine existed prior to this operation
5176 is lost</td></tr>
5177
5178 <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
5179
5180 <td>Completely revert the virtual machine to the state it was in
5181 before the current snapshot has been taken</td>
5182
5183 <td>The current state, as well as the current snapshot, are
5184 lost</td></tr>
5185
5186 </table>
5187
5188 </desc>
5189
5190 <attribute name="id" type="uuid" readonly="yes">
5191 <desc>UUID of the snapshot.</desc>
5192 </attribute>
5193
5194 <attribute name="name" type="wstring">
5195 <desc>Short name of the snapshot.</desc>
5196 </attribute>
5197
5198 <attribute name="description" type="wstring">
5199 <desc>Optional description of the snapshot.</desc>
5200 </attribute>
5201
5202 <attribute name="timeStamp" type="long long" readonly="yes">
5203 <desc>
5204 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
5205 </desc>
5206 </attribute>
5207
5208 <attribute name="online" type="boolean" readonly="yes">
5209 <desc>
5210 <tt>true</tt> if this snapshot is an online snapshot and
5211 <tt>false</tt> otherwise.
5212
5213 <note>
5214 When this attribute is <tt>true</tt>, the
5215 <link to="IMachine::stateFilePath"/> attribute of the
5216 <link to="#machine"/> object associated with this snapshot
5217 will point to the saved state file. Otherwise, it will be
5218 <tt>null</tt>.
5219 </note>
5220 </desc>
5221 </attribute>
5222
5223 <attribute name="machine" type="IMachine" readonly="yes">
5224 <desc>
5225 Virtual machine this snapshot is taken on. This object
5226 stores all settings the machine had when taking this snapshot.
5227 <note>
5228 The returned machine object is immutable, i.e. no
5229 any settings can be changed.
5230 </note>
5231 </desc>
5232 </attribute>
5233
5234 <attribute name="parent" type="ISnapshot" readonly="yes">
5235 <desc>
5236 Parent snapshot (a snapshot this one is based on).
5237 <note>
5238 It's not an error to read this attribute on a snapshot
5239 that doesn't have a parent -- a null object will be
5240 returned to indicate this.
5241 </note>
5242 </desc>
5243 </attribute>
5244
5245 <attribute name="children" type="ISnapshotCollection" readonly="yes">
5246 <desc>
5247 Child snapshots (all snapshots having this one as a parent).
5248 <note>
5249 In the current implementation, there can be only one
5250 child snapshot, or no children at all, meaning this is the
5251 last (head) snapshot.
5252 </note>
5253 </desc>
5254 </attribute>
5255
5256 </interface>
5257
5258 <!--
5259 // IHardDisk
5260 /////////////////////////////////////////////////////////////////////////
5261 -->
5262
5263 <enum
5264 name="HardDiskStorageType"
5265 uuid="48138584-ad99-479d-a36f-eb82a7663685"
5266 >
5267 <desc>
5268 Virtual hard disk storage type.
5269 <see>IHardDisk</see>
5270 </desc>
5271 <const name="VirtualDiskImage" value="0">
5272 <desc>
5273 Virtual Disk Image, VDI (a regular file in the file
5274 system of the host OS, see <link to="IVirtualDiskImage"/>)
5275 </desc>
5276 </const>
5277 <const name="ISCSIHardDisk" value="1">
5278 <desc>
5279 iSCSI Remote Disk (a disk accessed via the Internet
5280 SCSI protocol over a TCP/IP network, see
5281 <link to="IISCSIHardDisk"/>)
5282 </desc>
5283 </const>
5284 <const name="VMDKImage" value="2">
5285 <desc>
5286 VMware Virtual Machine Disk image (a regular file in the file
5287 system of the host OS, see <link to="IVMDKImage"/>)
5288 </desc>
5289 </const>
5290 <const name="CustomHardDisk" value="3">
5291 <desc>
5292 Disk formats supported through plugins (see
5293 <link to="ICustomHardDisk"/>)
5294 </desc>
5295 </const>
5296 <const name="VHDImage" value="4">
5297 <desc>
5298 Virtual PC Virtual Machine Disk image (a regular file in the file
5299 system of the host OS, see <link to="IVHDImage"/>)
5300 </desc>
5301 </const>
5302 </enum>
5303
5304 <enum
5305 name="HardDiskType"
5306 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
5307 >
5308 <desc>
5309 Virtual hard disk type.
5310 <see>IHardDisk</see>
5311 </desc>
5312 <const name="NormalHardDisk" value="0">
5313 <desc>
5314 Normal hard disk (attached directly or indirectly, preserved
5315 when taking snapshots).
5316 </desc>
5317 </const>
5318 <const name="ImmutableHardDisk" value="1">
5319 <desc>
5320 Immutable hard disk (attached indirectly, changes are wiped out
5321 after powering off the virtual machine).
5322 </desc>
5323 </const>
5324 <const name="WritethroughHardDisk" value="2">
5325 <desc>
5326 Write through hard disk (attached directly, ignored when
5327 taking snapshots).
5328 </desc>
5329 </const>
5330 </enum>
5331
5332 <interface
5333 name="IHardDiskAttachment" extends="$unknown"
5334 uuid="c0ffe596-21c6-4797-8d8a-b47b66881e7a"
5335 wsmap="struct"
5336 >
5337 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
5338 <desc>Harddisk object this attachment is about.</desc>
5339 </attribute>
5340
5341 <attribute name="controller" type="DiskControllerType" readonly="yes">
5342 <desc>Disk controller ID of this attachment.</desc>
5343 </attribute>
5344
5345 <attribute name="deviceNumber" type="long" readonly="yes">
5346 <desc>Device number of the attachment.</desc>
5347 </attribute>
5348
5349 </interface>
5350
5351 <enumerator
5352 name="IHardDiskAttachmentEnumerator" type="IHardDiskAttachment"
5353 uuid="9955e486-2f0b-432a-99e4-0ebbd338875e"
5354 />
5355
5356 <collection
5357 name="IHardDiskAttachmentCollection" type="IHardDiskAttachment"
5358 enumerator="IHardDiskAttachmentEnumerator"
5359 uuid="8f727842-bb77-45d4-92de-4ec14bf613c9"
5360 readonly="yes"
5361 />
5362
5363 <enumerator
5364 name="IHardDiskEnumerator" type="IHardDisk"
5365 uuid="b976f97b-cdb8-47e3-9860-084031cbd533"
5366 />
5367
5368 <collection
5369 name="IHardDiskCollection" type="IHardDisk"
5370 enumerator="IHardDiskEnumerator"
5371 uuid="43EAC2BC-5C61-40fa-BC38-46DE2C7DB6BB"
5372 readonly="yes"
5373 />
5374
5375 <interface
5376 name="IHardDisk" extends="$unknown"
5377 uuid="FD443EC1-000F-4F5B-9282-D72760A66916"
5378 wsmap="managed"
5379 >
5380 <desc>
5381 The IHardDisk interface represents a virtual hard disk drive
5382 used by virtual machines.
5383
5384 The virtual hard disk drive virtualizes the hard disk hardware and
5385 looks like a regular hard disk inside the virtual machine and
5386 the guest OS.
5387
5388 <h3>Storage Types</h3>
5389
5390 The <link to="HardDiskStorageType">storage type</link> of the
5391 virtual hard disk determines where and how it stores its data
5392 (sectors). Currently, the following storage types are supported:
5393
5394 <ul>
5395
5396 <li>
5397 <i>Virtual Disk Image (VDI)</i>, a regular file in the file system
5398 of the host OS (represented by the <link to="IVirtualDiskImage"/>
5399 interface). This file has a special format optimized so that unused
5400 sectors of data occupy much less space than on a physical hard disk.
5401 </li>
5402
5403 <li>
5404 <i>iSCSI Remote Disk</i>, a disk accessed via the Internet SCSI
5405 protocol over a TCP/IP network link (represented by the
5406 <link to="IISCSIHardDisk"/> interface).
5407 </li>
5408
5409 <li>
5410 <i>VMware VMDK image</i>, a regular file in the file system of the
5411 host OS (represented by the <link to="IVMDKImage"/> interface).
5412 Note that the regular file may be just a descriptor referring to
5413 further files, so don't make assumptions about the OS representation
5414 of a VMDK image.
5415 </li>
5416
5417 <li>
5418 <i>Custom HardDisk</i>, a disk accessed via a plugin which is loaded
5419 when the disk is accessed (represented by the
5420 <link to="ICustomHardDisk"/> interface).
5421 </li>
5422
5423 <li>
5424 <i>Virtual PC VHD Image</i>, a regular file in the file system of the
5425 host OS (represented by the <link to="IVHDImage"/> interface).
5426 </li>
5427
5428 </ul>
5429
5430 The storage type of the particular hard disk object is indicated by
5431 the <link to="#storageType"/> property.
5432
5433 Each storage type is represented by its own interface (as shown
5434 above), that allows to query and set properties and perform
5435 operations specific to that storage type. When an IHardDisk object
5436 reports it uses some particular storage type, it also guaranteed to
5437 support the corresponding interface which you can query. And vice
5438 versa, every object that supports a storage-specific interface, also
5439 supports IHardDisk.
5440
5441 <h3>Virtual Hard Disk Types</h3>
5442
5443 The <link to="HardDiskType">type</link> of the virtual hard disk
5444 determines how it is attached to the virtual machine when you call
5445 <link to="IMachine::attachHardDisk()"/> and what happens to it when
5446 a <link to="ISnapshot">snapshot</link> of the virtual machine is
5447 taken.
5448
5449 There are three types of virtual hard disks:
5450
5451 <ul>
5452 <li><i>Normal</i></li>
5453 <li><i>Immutable</i></li>
5454 <li><i>Writethrough</i></li>
5455 </ul>
5456
5457 The virtual disk type is indicated by the <link to="#type"/>
5458 property. Each of the above types is described in detail further
5459 down.
5460
5461 There is also a forth, "hidden" virtual disk type:
5462 <i>Differencing</i>. It is "hidden" because you cannot directly
5463 create hard disks of this type -- they are automatically created by
5464 VirtualBox when necessary.
5465
5466 <b>Differencing Hard Disks</b>
5467
5468 Unlike disks of other types (that are similar to real hard disks),
5469 the differencing hard disk does not store the full range of data
5470 sectors. Instead, it stores only a subset of sectors of some other
5471 disk that were changed since the differencing hard disk has been
5472 created. Thus, every differencing hard disk has a parent hard disk
5473 it is linked to, and represents the difference between the initial
5474 and the current hard disk state. A differencing hard disk can be
5475 linked to another differencing hard disk -- this way, differencing
5476 hard disks can form a branch of changes. More over, a given virtual
5477 hard disk can have more than one differencing hard disk linked to
5478 it.
5479
5480 A disk the differencing hard disk is linked to (or, in other words,
5481 based on) is called a <i>parent</i> hard disk and is accessible through
5482 the <link to="#parent"/> property. Similarly, all existing differencing
5483 hard disks for a given parent hard disk are called its <i>child</i> hard
5484 disks (and accessible through the <link to="#children"/> property).
5485
5486 All differencing hard disks use Virtual Disk Image files to store
5487 changed sectors. They have the <link to="#type"/> property set to
5488 Normal, but can be easily distinguished from normal hard disks using
5489 the <link to="#parent"/> property: all differencing hard disks have
5490 a parent, while all normal hard disks don't.
5491
5492 When the virtual machine makes an attempt to read a sector that is
5493 missing in a differencing hard disk, its parent is accessed to
5494 resolve the sector in question. This process continues until the
5495 sector is found, or until the root hard disk is encountered, which
5496 always contains all sectors. As a consequence,
5497
5498 <ul>
5499
5500 <li>
5501 The virtual hard disk geometry seen by the guest OS is
5502 always defined by the root hard disk.
5503 </li>
5504
5505 <li>
5506 All hard disks on a branch, up to the root, must be
5507 <link to="#accessible"/> for a given differencing hard disk in order
5508 to let it function properly when the virtual machine is
5509 running.
5510 </li>
5511
5512 </ul>
5513
5514 Differencing hard disks can be implicitly created by VirtualBox in
5515 the following cases:
5516
5517 <ul>
5518
5519 <li>
5520 When a hard disk is <i>indirectly</i> attached to the virtual
5521 machine using <link to="IMachine::attachHardDisk()"/>. In this
5522 case, all disk writes performed by the guest OS will go to the
5523 created diffferencing hard disk, as opposed to the
5524 <i>direct</i> attachment, where all changes are written to the
5525 attached hard disk itself.
5526 </li>
5527
5528 <li>
5529 When a <link to="ISnapshot">snapshot</link> of the virtual machine
5530 is taken. After that, disk writes to hard disks the differencing
5531 ones have been created for, will be directed to those differencing
5532 hard disks, to preserve the contents of the original disks.
5533 </li>
5534
5535 </ul>
5536
5537 Whether to create a differencing hard disk or not depends on the
5538 type of the hard disk attached to the virtual machine. This is
5539 explained below.
5540
5541 Note that in the current implementation, only the
5542 <link to="VirtualDiskImage"/> storage type is used to
5543 represent differencing hard disks. In other words, all
5544 differencing hard disks are <link to="IVirtualDiskImage"/>
5545 objects.
5546
5547 <b>Normal Hard Disks</b>
5548
5549 Normal hard disks are the most commonly used virtual hard disk. A
5550 normal hard disk is attached to the machine directly if it is not
5551 already attached to some other machine. Otherwise, an attempt to
5552 make an indirect attachment through a differencing hard disk will be
5553 made. This attempt will fail if the hard disk is attached to a
5554 virtual machine without snapshots (because it's impossible to create
5555 a differencing hard disk based on a hard disk that is subject to
5556 change).
5557
5558 When an indirect attachment takes place, in the simplest case, where
5559 the machine the hard disk is being attached to doesn't have
5560 snapshots, the differencing hard disk will be based on the normal
5561 hard disk being attached. Otherwise, the first (i.e. the most
5562 recent) descendant of the given normal hard disk found in the
5563 current snapshot branch (starting from the current snapshot and
5564 going up to the root) will be actually used as a base.
5565
5566 Note that when you detach an indirectly attached hard disk from the
5567 machine, the created differencing hard disk image is simply
5568 <b>deleted</b>, so <b>all changes are lost</b>. If you attach the
5569 same disk again, a clean differencing disk will be created based on
5570 the most recent child, as described above.
5571
5572 When taking a snapshot, the contents of all normal hard disks (and
5573 all differencing disks whose roots are normal hard disks) currently
5574 attached to the virtual machine is preserved by creating
5575 differencing hard disks based on them.
5576
5577 <b>Immutable Hard Disks</b>
5578
5579 Immutable hard disks can be used to provide a sort of read-only
5580 access. An immutable hard disk is always attached indirectly. The
5581 created differencing hard disk is automatically wiped out (recreated
5582 from scratch) every time you power off the virtual machine. Thus,
5583 the contents of the immutable disk remains unchanged between runs.
5584
5585 Detaching an immutable hard disk deletes the differencing disk
5586 created for it, with the same effect as in case with normal hard
5587 disks.
5588
5589 When taking a snapshot, the differencing part of the immutable
5590 hard disk is cloned (i.e. copied to a separate Virtual Disk Image
5591 file) without any changes. This is necessary to preserve the exact
5592 virtual machine state when you create an online snapshot.
5593
5594 <b>Writethrough Hard Disks</b>
5595
5596 Hard disks of this type are always attached directly. This means
5597 that every given writethrough hard disk can be attached only to one
5598 virtual machine at a time.
5599
5600 It is impossible to take a snapshot of a virtual machine with the
5601 writethrough hard disk attached, because taking a snapshot implies
5602 saving the execution state and preserving the contents of all hard
5603 disks, but writethrough hard disks cannot be preserved. Preserving
5604 hard disk contents is necessary to ensure the guest OS stored in the
5605 snapshot will get the same hard disk state when restored, which is
5606 especially important when it has open file handles or when there are
5607 cached files and directories stored in memory.
5608
5609 <h3>Creating, Opening and Registering Hard Disks</h3>
5610
5611 Non-differencing hard disks are either created from scratch using
5612 <link to="IVirtualBox::createHardDisk()"/> or opened from a VDI file
5613 using <link to="IVirtualBox::openVirtualDiskImage()"/> (only for hard
5614 disks using the VirtualDiskImage storage type). Once a hard disk is
5615 created or opened, it needs to be registered using
5616 <link to="IVirtualBox::registerHardDisk()"/> to make it available for
5617 attaching to virtual machines. See the documentation of individual
5618 interfaces for various storage types to get more information.
5619
5620 Differencing hard disks are never created explicitly and cannot
5621 be registered or unregistered; they are automatically registered
5622 upon creation and deregistered when deleted.
5623
5624 <h3>More about Indirect Hard Disk Attachments</h3>
5625
5626 Normally, when you attach a hard disk to the virtual machine, and then
5627 query the corresponding attachment using
5628 <link to="IMachine::getHardDisk()"/> or
5629 <link to="IMachine::hardDiskAttachments"/> you will get the same hard
5630 disk object, whose UUID you passed earlier to
5631 <link to="IMachine::attachHardDisk()"/>. However, when an indirect
5632 attachment takes place, calling <link to="IMachine::getHardDisk()"/>
5633 will return a differencing hard disk object, that is either based on the
5634 attached hard disk or on another differencing hard disk, the attached
5635 hard disk is eventually a root for (as described above). In both cases
5636 the returned hard disk object is the object the virtual machine actually
5637 uses to perform disk writes to.
5638
5639 Regardless of whether the attachment is direct or indirect, the
5640 <link to="#machineId"/> property of the attached disk will contain an
5641 UUID of the machine object <link to="IMachine::attachHardDisk()"/>
5642 has been called on.
5643
5644 Note that both <link to="IMachine::attachHardDisk()"/> and
5645 <link to="IMachine::detachHardDisk()"/> are <i>lazy</i> operations. In
5646 particular, this means that when an indirect attachment is made,
5647 differencing hard disks are not created until machine settings are
5648 committed using <link to="IMachine::saveSettings()"/>. Similarly, when a
5649 differencing hard disk is detached, it is not deleted until
5650 <link to="IMachine::saveSettings()"/> is called. Calling
5651 <link to="IMachine::discardSettings()"/> cancels all lazy attachments or
5652 detachments made since the last commit and effectively restores the
5653 previous set of hard disks.
5654
5655 <h3>Hard Disk Accessibility</h3>
5656
5657 The <link to="#accessible"/> attribute of the hard disk object
5658 defines the accessibility state of the respective hard disk storage
5659 (for example, the VDI file for IVirtualDiskImage objects). If the
5660 value of this attribute is <tt>false</tt> then some hard disk
5661 attributes may contain invalid or outdated values (for example, the
5662 virtual or the actual hard disk size) until a new accessibility
5663 check is done that returns <tt>true</tt> (see the attribute
5664 description for more details).
5665
5666 <note>
5667 Because of the possible slowness of the accessibility check,
5668 it is not implicitly performed upon the VirtualBox server startup
5669 (to prevent the application freeze). In partcular, this means that
5670 if you try to read hard disk properties that depend on the
5671 accessibility state without first reading the value of the
5672 <link to="#accessible"/> attribute and ensuring it's value is
5673 <tt>true</tt>, you will get wrong (zero) values.
5674 </note>
5675
5676 </desc>
5677
5678 <attribute name="id" type="uuid" readonly="yes">
5679 <desc>
5680
5681 UUID of the hard disk. For newly created hard disk objects,
5682 this value is a randomly generated UUID.
5683
5684 </desc>
5685 </attribute>
5686
5687 <attribute name="description" type="wstring">
5688 <desc>
5689
5690 Optional description of the hard disk. For a newly created hard
5691 disk, this value is <tt>null</tt>.
5692
5693 <note>For some storage types, reading this property is
5694 meaningless when <link to="#accessible"/> is <tt>false</tt>.
5695 Also, you cannot assign it a new value in this case.</note>
5696
5697 </desc>
5698 </attribute>
5699
5700 <attribute name="storageType" type="HardDiskStorageType" readonly="yes">
5701 <desc>
5702
5703 Storage type of this hard disk.
5704
5705 Storage type is defined when you open or create a new hard disk
5706 object.
5707
5708 </desc>
5709 </attribute>
5710
5711 <attribute name="location" type="wstring" readonly="yes">
5712 <desc>
5713
5714 Storage location of this hard disk. The returned string serves
5715 for informational purposes only. To access detailed information
5716 about the storage, query the appropriate storage-specific
5717 interface.
5718
5719 </desc>
5720 </attribute>
5721
5722 <attribute name="type" type="HardDiskType">
5723 <desc>
5724
5725 Type (behavior) of this hard disk. For a newly created or opened hard
5726 disk, this value is <link to="HardDiskType::NormalHardDisk"/>.
5727
5728 <note>
5729 In the current implementation, this property can be
5730 changed only on an unregistered hard disk object. This may be
5731 changed later.
5732 </note>
5733
5734 </desc>
5735 </attribute>
5736
5737 <attribute name="parent" type="IHardDisk" readonly="yes">
5738 <desc>
5739
5740 Parent of this hard disk (a hard disk this one is directly based
5741 on).
5742
5743 Only differencing hard disks have parents, so a <tt>null</tt>
5744 object is returned for a hard disk of any other type.
5745 </desc>
5746 </attribute>
5747
5748 <attribute name="children" type="IHardDiskCollection" readonly="yes">
5749 <desc>
5750
5751 Children of this hard disk (all differencing hard disks for
5752 those this one is a parent). An empty collection is returned, if
5753 this hard disk doesn't have any children.
5754
5755 </desc>
5756 </attribute>
5757
5758 <attribute name="root" type="IHardDisk" readonly="yes">
5759 <desc>
5760
5761 Root hard disk of this hard disk. If this hard disk is a
5762 differencing hard disk, its root hard disk is the first disk on
5763 the branch. For all other types of hard disks, this property
5764 returns the hard disk object itself (i.e. the same object you
5765 read this property on).
5766
5767 </desc>
5768 </attribute>
5769
5770 <attribute name="accessible" type="boolean" readonly="yes">
5771 <desc>
5772
5773 Whether the hard disk storage is currently accessible or not.
5774 The storage, for example, can be unaccessible if it doesn't exist
5775 or if it is placed on a network resource that is not available
5776 by the time this attribute is read.
5777
5778 In the current implementation, the value of this property is
5779 also <tt>false</tt> if this hard disk is attached to a running
5780 virtual machine.
5781
5782 The accessibility check is performed automatically every time
5783 this attribute is read. You should keep it in mind that this check
5784 may be slow and can block the calling thread for a long time (for
5785 example, if the network resourse where the hard disk storage is
5786 located is down).
5787
5788 The following attributes of the hard disk object are considered
5789 to be invalid when this attribute is <tt>false</tt>:
5790 <ul>
5791 <li><link to="#size"/></li>
5792 <li><link to="#actualSize"/></li>
5793 </ul>
5794 Individual hard disk storage type interfaces may define
5795 additional attributes that depend on the accessibility state.
5796 </desc>
5797 </attribute>
5798
5799 <attribute name="allAccessible" type="boolean" readonly="yes">
5800 <desc>
5801
5802 Whether the whole hard disk branch, starting from this image and
5803 going through its ancestors up to the root, is accessible or
5804 not.
5805
5806 This property makes sense only for differencing hard disks. For
5807 all other types of hard disks it returns the same value as
5808 <link to="#accessible"/>.
5809
5810 </desc>
5811 </attribute>
5812
5813 <attribute name="lastAccessError" type="wstring" readonly="yes">
5814 <desc>
5815
5816 String describing the reason of inaccessibility of this hard
5817 disk after the last call to <link to="#accessible"/> that
5818 returned <tt>false</tt>. A <tt>null</tt> value of this property
5819 means that the last accessibility check returned <tt>true</tt>.
5820
5821 </desc>
5822 </attribute>
5823
5824 <attribute name="size" type="unsigned long long" readonly="yes">
5825 <desc>
5826
5827 Logical size of this hard disk (in megabytes), as reported to the
5828 guest OS running inside the vurtual machine this disk is
5829 attached to. The logical size is defined when the hard disk is
5830 created.
5831
5832 <note>Reading this property on a differencing hard disk will
5833 return the size of its root hard disk.</note>
5834
5835 <note>Reading this property is meaningless when
5836 <link to="#accessible"/> is <tt>false</tt></note>
5837
5838 </desc>
5839 </attribute>
5840
5841 <attribute name="actualSize" type="unsigned long long" readonly="yes">
5842 <desc>
5843
5844 Physical size of the storage used to store hard disk data (in
5845 bytes). This size is usually less than the logical size of the
5846 hard disk, depending on the storage type and on the size
5847 optimization method used for that storage.
5848
5849 <note>Reading this property is meaningless when
5850 <link to="#accessible"/> is <tt>false</tt></note>
5851
5852 </desc>
5853 </attribute>
5854
5855 <attribute name="machineId" type="uuid" readonly="yes">
5856 <desc>
5857
5858 UUID of the machine this hard disk is attached to (or a
5859 <tt>null</tt> UUID if it is not attached).
5860
5861 <note>Immutable hard disks are never attached directly, so this
5862 attribute is always <tt>null</tt> in this case.</note>
5863
5864 </desc>
5865 </attribute>
5866
5867 <attribute name="snapshotId" type="uuid" readonly="yes">
5868 <desc>
5869
5870 UUID of the <link to="ISnapshot">snapshot</link> this hard disk
5871 is associated with (or <tt>null</tt> UUID if it is not
5872 associated with any snapshot).
5873
5874 <note>
5875 This attribute is always <tt>null</tt> if <link to="#machineId"/>
5876 is <tt>null</tt>.
5877 </note>
5878
5879 <note>
5880 Writethrough hard disks are always attached directly and cannot be
5881 involved when taking snapshots, so this attribute is meaningless and
5882 therefore always <tt>null</tt>.
5883 </note>
5884
5885 </desc>
5886 </attribute>
5887
5888 <method name="cloneToImage">
5889
5890 <desc>
5891
5892 Starts creating a clone of this hard disk. The cloned hard disk
5893 will use the specified Virtual Disk Image file as a storage and
5894 will contain exactly the same sector data as the hard disk being
5895 cloned, except that a new UUID for the clone will be randomly
5896 generated.
5897
5898 The specified image file path can be absolute (full path) or
5899 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
5900 home directory</link>. If only a file name without any path is
5901 given, the <link to="ISystemProperties::defaultVDIFolder">
5902 default VDI folder</link> will be used as a path to the image
5903 file.
5904
5905 It is an error to use the object returned in the @a image
5906 parameter until the returned @a progress object reports success.
5907
5908 <note>In the current implementation, only non-differencing hard
5909 disks can be cloned.</note>
5910
5911 </desc>
5912
5913 <param name="filePath" type="wstring" dir="in">
5914 <desc>Path to a file where to store the cloned hard disk.</desc>
5915 </param>
5916 <param name="image" type="IVirtualDiskImage" dir="out">
5917 <desc>Cloned hard disk object.</desc>
5918 </param>
5919 <param name="progress" type="IProgress" dir="return">
5920 <desc>Progress object to track the operation completion.</desc>
5921 </param>
5922
5923 </method>
5924
5925 </interface>
5926
5927 <!--
5928 // IVirtualDiskImage
5929 /////////////////////////////////////////////////////////////////////////
5930 -->
5931
5932 <interface
5933 name="IVirtualDiskImage" extends="$unknown"
5934 uuid="a8265b5a-0d20-4a46-a02f-65693a4e8239"
5935 wsmap="managed"
5936 >
5937
5938 <desc>
5939 The IVirtualDiskImage interface represent a specific type of
5940 <link to="IHardDisk" /> that uses VDI image files.
5941
5942 The Virtual Disk Image (VDI) format is VirtualBox's native format for
5943 hard disk containers.
5944
5945 Objects that support this interface also support the
5946 <link to="IHardDisk"/> interface.
5947
5948 Hard disks using virtual disk images can be either opened using
5949 <link to="IVirtualBox::openHardDisk()"/> or created from
5950 scratch using <link to="IVirtualBox::createHardDisk()"/>.
5951
5952 When a new hard disk object is created from scratch, an image file for it
5953 is not automatically created. To do it, you need to specify a
5954 valid <link to="#filePath">file path</link>, and call
5955 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
5956 When it is done, the hard disk object can be registered by calling
5957 <link to="IVirtualBox::registerHardDisk()"/> and then
5958 <link to="IMachine::attachHardDisk()">attached</link> to
5959 virtual machines.
5960
5961 The <link to="IHardDisk::description">description</link> of the
5962 Virtual Disk Image is stored in the image file. For this reason,
5963 changing the value of this property requires the hard disk to be
5964 <link to="IHardDisk::accessible">accessible</link>. The description
5965 of a registered hard disk can be changed only if a virtual machine
5966 using it is not running.
5967
5968 </desc>
5969
5970 <attribute name="filePath" type="wstring">
5971 <desc>
5972
5973 Full file name of the virtual disk image of this hard disk. For
5974 newly created hard disk objects, this value is <tt>null</tt>.
5975
5976 When assigning a new path, it can be absolute (full path) or relative
5977 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
5978 directory</link>. If only a file name without any path is given,
5979 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
5980 folder</link> will be used as a path to the image file.
5981
5982 When reading this propery, a full path is always returned.
5983
5984 <note>
5985 This property cannot be changed when <link to="#created"/>
5986 returns <tt>true</tt>.
5987 </note>
5988
5989 </desc>
5990 </attribute>
5991
5992 <attribute name="created" type="boolean" readonly="yes">
5993 <desc>
5994
5995 Whether the virual disk image is created or not. For newly
5996 created hard disk objects or after a successful invocation of
5997 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
5998 <link to="#createFixedImage()"/> or <link
5999 to="#createDynamicImage()"/> is called.
6000
6001 </desc>
6002 </attribute>
6003
6004 <method name="createDynamicImage">
6005
6006 <desc>
6007
6008 Starts creating a dymically expanding hard disk image in the
6009 background. The previous image associated with this object, if
6010 any, must be deleted using <link to="#deleteImage"/>, otherwise
6011 the operation will fail.
6012
6013 <note>After the returned progress object reports that the
6014 operation is complete, this hard disk object can be
6015 <link to="IVirtualBox::registerHardDisk()">registered</link>
6016 within this VirtualBox installation.</note>
6017
6018 </desc>
6019
6020 <param name="size" type="unsigned long long" dir="in">
6021 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6022 </param>
6023 <param name="progress" type="IProgress" dir="return">
6024 <desc>Progress object to track the operation completion.</desc>
6025 </param>
6026
6027 </method>
6028
6029 <method name="createFixedImage">
6030 <desc>
6031
6032 Starts creating a fixed-size hard disk image in the background. The
6033 previous image, if any, must be deleted using
6034 <link to="#deleteImage"/>, otherwise the operation will fail.
6035
6036 <note>
6037 After the returned progress object reports that the
6038 operation is complete, this hard disk object can be
6039 <link to="IVirtualBox::registerHardDisk()">registered</link>
6040 within this VirtualBox installation.
6041 </note>
6042
6043 </desc>
6044
6045 <param name="size" type="unsigned long long" dir="in">
6046 <desc>Logical size of the hard disk in megabytes.</desc>
6047 </param>
6048 <param name="progress" type="IProgress" dir="return">
6049 <desc>Progress object to track the operation completion.</desc>
6050 </param>
6051
6052 </method>
6053
6054 <method name="deleteImage">
6055 <desc>
6056
6057 Deletes the existing hard disk image. The hard disk must not be
6058 registered within this VirtualBox installation, otherwise the
6059 operation will fail.
6060
6061 <note>
6062 After this operation succeeds, it will be impossible to
6063 register the hard disk until the image file is created
6064 again.
6065 </note>
6066
6067 <note>
6068 This operation is valid only for non-differencing hard disks, after
6069 they are unregistered using
6070 <link to="IVirtualBox::unregisterHardDisk()"/>.
6071 </note>
6072
6073 </desc>
6074 </method>
6075
6076 </interface>
6077
6078 <!--
6079 // IISCSIHardDisk
6080 /////////////////////////////////////////////////////////////////////////
6081 -->
6082
6083 <interface
6084 name="IISCSIHardDisk" extends="$unknown"
6085 uuid="003f6ca9-3257-4ef9-99c9-c66ce44576cb"
6086 wsmap="managed"
6087 >
6088
6089 <desc>
6090 THe IISCSIHardDisk interface represents a specific type of
6091 <link to="IHardDisk"/> that uses iSCSI.
6092
6093 The IISCSIHardDisk interface represents <link to="IHardDisk">virtual
6094 hard disks</link> that use the Internet SCSI (iSCSI) protocol to store
6095 hard disk data on remote machines.
6096
6097 Objects that support this interface also support the
6098 <link to="IHardDisk"/> interface.
6099
6100 iSCSI hard disks can be created using
6101 <link to="IVirtualBox::createHardDisk()"/>. When a new hard disk object
6102 is created, all its properties are uninitialized. After you assign some
6103 meaningful values to them, the hard disk object can be registered by
6104 calling <link to="IVirtualBox::registerHardDisk()"/> and
6105 then <link to="IMachine::attachHardDisk()">attached</link> to virtual
6106 machines.
6107
6108 The <link to="IHardDisk::description">description</link>
6109 of the iSCSI hard disk is stored in the VirtualBox
6110 configuration file, so it can be changed (at appropriate
6111 times) even when
6112 <link to="IHardDisk::accessible">accessible</link> returns
6113 <tt>false</tt>. However, the hard disk must not be
6114 attached to a running virtual machine.
6115
6116 <note>
6117 In the current imlementation, the type of all iSCSI hard disks
6118 is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
6119 and cannot be changed.
6120 </note>
6121
6122 </desc>
6123
6124 <attribute name="server" type="wstring">
6125 <desc>
6126
6127 iSCSI Server name (either a host name or an IP address). For
6128 newly created hard disk objects, this value is <tt>null</tt>.
6129
6130 </desc>
6131 </attribute>
6132
6133 <attribute name="port" type="unsigned short">
6134 <desc>
6135
6136 iSCSI Server port. For newly created hard disk objects, this
6137 value is <tt>0</tt>, which means the default port.
6138
6139 </desc>
6140 </attribute>
6141
6142 <attribute name="target" type="wstring">
6143 <desc>
6144
6145 iSCSI target name. For newly created hard disk objects, this
6146 value is <tt>null</tt>.
6147
6148 </desc>
6149 </attribute>
6150
6151 <attribute name="lun" type="unsigned long long">
6152 <desc>
6153
6154 Logical unit number for this iSCSI disk. For newly created hard
6155 disk objects, this value is <tt>0</tt>.
6156
6157 </desc>
6158 </attribute>
6159
6160 <attribute name="userName" type="wstring">
6161 <desc>
6162
6163 User name for accessing this iSCSI disk. For newly created hard
6164 disk objects, this value is <tt>null</tt>.
6165
6166 </desc>
6167 </attribute>
6168
6169 <attribute name="password" type="wstring">
6170 <desc>
6171
6172 User password for accessing this iSCSI disk. For newly created
6173 hard disk objects, this value is <tt>null</tt>.
6174
6175 </desc>
6176 </attribute>
6177
6178 </interface>
6179
6180 <!--
6181 // IVMDKImage
6182 /////////////////////////////////////////////////////////////////////////
6183 -->
6184
6185 <interface
6186 name="IVMDKImage" extends="$unknown"
6187 uuid="178398f5-8559-4fee-979e-420af5b53eef"
6188 wsmap="managed"
6189 >
6190 <desc>
6191 The IVMDKImage interface represents a specific type of
6192 <link to="IHardDisk"/> that uses VMDK image files.
6193
6194 The Virtual Machine Disk (VMDK) format is the industry standard format
6195 for virtual hard disk image files, which VirtualBox supports besides its
6196 own native VDI format.
6197
6198 Objects that support this interface also support the
6199 <link to="IHardDisk"/> interface.
6200
6201 Hard disks using VMDK images can be either opened using
6202 <link to="IVirtualBox::openHardDisk()"/> or created from
6203 scratch using <link to="IVirtualBox::createHardDisk()"/>.
6204
6205 When a new hard disk object is created from scratch, an image file for it
6206 is not automatically created. To do it, you need to specify a
6207 valid <link to="#filePath">file path</link>, and call
6208 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6209 When it is done, the hard disk object can be registered by calling
6210 <link to="IVirtualBox::registerHardDisk()"/> and then
6211 <link to="IMachine::attachHardDisk()">attached</link> to
6212 virtual machines.
6213
6214 The <link to="IHardDisk::description">description</link>
6215 of the VMDK hard disk is stored in the VirtualBox
6216 configuration file, so it can be changed (at appropriate
6217 times) even when
6218 <link to="IHardDisk::accessible">accessible</link> returns
6219 <tt>false</tt>. However, the hard disk must not be
6220 attached to a running virtual machine.
6221
6222 <note>
6223 In the current imlementation, the type of all VMDK hard disks
6224 is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
6225 and cannot be changed.
6226 </note>
6227
6228 </desc>
6229
6230 <attribute name="filePath" type="wstring">
6231 <desc>
6232
6233 Full file name of the VMDK image of this hard disk. For
6234 newly created hard disk objects, this value is <tt>null</tt>.
6235
6236 When assigning a new path, it can be absolute (full path) or relative
6237 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
6238 directory</link>. If only a file name without any path is given,
6239 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
6240 folder</link> will be used as a path to the image file.
6241
6242 When reading this propery, a full path is always returned.
6243
6244 <note>
6245 This property cannot be changed when <link to="#created"/>
6246 returns <tt>true</tt>.
6247 </note>
6248
6249 </desc>
6250 </attribute>
6251
6252 <attribute name="created" type="boolean" readonly="yes">
6253 <desc>
6254
6255 Whether the virual disk image is created or not. For newly created
6256 hard disk objects or after a successful invocation of
6257 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
6258 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
6259 is called.
6260
6261 </desc>
6262 </attribute>
6263
6264 <method name="createDynamicImage">
6265
6266 <desc>
6267
6268 Starts creating a dymically expanding hard disk image in the
6269 background. The previous image associated with this object, if
6270 any, must be deleted using <link to="#deleteImage"/>, otherwise
6271 the operation will fail.
6272
6273 <note>
6274 After the returned progress object reports that the
6275 operation is complete, this hard disk object can be
6276 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6277 this VirtualBox installation.
6278 </note>
6279
6280 </desc>
6281
6282 <param name="size" type="unsigned long long" dir="in">
6283 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6284 </param>
6285 <param name="progress" type="IProgress" dir="return">
6286 <desc>Progress object to track the operation completion.</desc>
6287 </param>
6288
6289 </method>
6290
6291 <method name="createFixedImage">
6292 <desc>
6293
6294 Starts creating a fixed-size hard disk image in the background. The
6295 previous image, if any, must be deleted using
6296 <link to="#deleteImage"/>, otherwise the operation will fail.
6297
6298 <note>
6299 After the returned progress object reports that the
6300 operation is complete, this hard disk object can be
6301 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6302 this VirtualBox installation.
6303 </note>
6304
6305 </desc>
6306
6307 <param name="size" type="unsigned long long" dir="in">
6308 <desc>Logical size of the hard disk in megabytes.</desc>
6309 </param>
6310 <param name="progress" type="IProgress" dir="return">
6311 <desc>Progress object to track the operation completion.</desc>
6312 </param>
6313
6314 </method>
6315
6316 <method name="deleteImage">
6317 <desc>
6318
6319 Deletes the existing hard disk image. The hard disk must not be
6320 registered within this VirtualBox installation, otherwise the
6321 operation will fail.
6322
6323 <note>
6324 After this operation succeeds, it will be impossible to register the
6325 hard disk until the image file is created again.
6326 </note>
6327
6328 <note>
6329 This operation is valid only for non-differencing hard disks, after
6330 they are unregistered using
6331 <link to="IVirtualBox::unregisterHardDisk()"/>.
6332 </note>
6333
6334 </desc>
6335 </method>
6336
6337 </interface>
6338
6339 <!--
6340 // ICustomHardDisk
6341 /////////////////////////////////////////////////////////////////////////
6342 -->
6343
6344 <interface
6345 name="ICustomHardDisk" extends="$unknown"
6346 uuid="a7b0236d-3ff4-47c0-a4aa-ddc4ddc1141a"
6347 wsmap="managed"
6348 >
6349 <desc>
6350 The ICustomHardDisk interface represents a specific type of
6351 <link to="IHardDisk" /> that is supported through a third-party plugin.
6352
6353 This interface allows to add support for custom hard disk formats to
6354 VirtualBox.
6355
6356 Objects that support this interface also support the
6357 <link to="IHardDisk"/> interface.
6358
6359 Hard disks using custom hard disk formats can be either opened using
6360 <link to="IVirtualBox::openHardDisk()"/> or created from scratch using
6361 <link to="IVirtualBox::createHardDisk()"/>.
6362
6363 When a new hard disk object is created from scratch, an image file for
6364 it is not automatically created. To do it, you need to specify a
6365 valid <link to="#location">location</link>, and call
6366 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6367 When it is done, the hard disk object can be registered by calling
6368 <link to="IVirtualBox::registerHardDisk()"/> and then
6369 <link to="IMachine::attachHardDisk()">attached</link> to
6370 virtual machines.
6371
6372 The <link to="IHardDisk::description">description</link>
6373 of the hard disk is stored in the VirtualBox
6374 configuration file, so it can be changed (at appropriate
6375 times) even when
6376 <link to="IHardDisk::accessible">accessible</link> returns
6377 <tt>false</tt>. However, the hard disk must not be
6378 attached to a running virtual machine.
6379
6380 </desc>
6381
6382 <attribute name="location" type="wstring">
6383 <desc>
6384
6385 Location of this custom hard disk. For
6386 newly created hard disk objects, this value is <tt>null</tt>.
6387
6388 The format of the location string is plugin-dependent. In case if the
6389 plugin uses a regular file in the local file system to store hard disk
6390 data, then the location is a file path and the following rules apply:
6391 <ul>
6392 <li>
6393 when assigning a new path, it must be absolute (full path) or
6394 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
6395 home directory</link>. If only a file name without any path is
6396 given, the <link to="ISystemProperties::defaultVDIFolder"> default
6397 VDI folder</link> will be used as a path to the image file.
6398 </li>
6399 <li>
6400 When reading this propery, a full path is always returned.
6401 </li>
6402 </ul>
6403
6404 <note>
6405 This property cannot be changed when <link to="#created"/>
6406 returns <tt>true</tt>.
6407 </note>
6408
6409 </desc>
6410 </attribute>
6411
6412 <attribute name="format" type="wstring" readonly="yes">
6413 <desc>
6414
6415 The plugin name of the image file.
6416
6417 </desc>
6418 </attribute>
6419
6420 <attribute name="created" type="boolean" readonly="yes">
6421 <desc>
6422
6423 Whether the virual disk image is created or not. For newly created
6424 hard disk objects or after a successful invocation of
6425 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
6426 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
6427 is called.
6428
6429 </desc>
6430 </attribute>
6431
6432 <method name="createDynamicImage">
6433
6434 <desc>
6435
6436 Starts creating a dymically expanding hard disk image in the
6437 background. The previous image associated with this object, if
6438 any, must be deleted using <link to="#deleteImage"/>, otherwise
6439 the operation will fail.
6440
6441 <note>
6442 After the returned progress object reports that the
6443 operation is complete, this hard disk object can be
6444 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6445 this VirtualBox installation.
6446 </note>
6447
6448 </desc>
6449
6450 <param name="size" type="unsigned long long" dir="in">
6451 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6452 </param>
6453 <param name="progress" type="IProgress" dir="return">
6454 <desc>Progress object to track the operation completion.</desc>
6455 </param>
6456
6457 </method>
6458
6459 <method name="createFixedImage">
6460 <desc>
6461
6462 Starts creating a fixed-size hard disk image in the background. The
6463 previous image, if any, must be deleted using
6464 <link to="#deleteImage"/>, otherwise the operation will fail.
6465
6466 <note>
6467 After the returned progress object reports that the
6468 operation is complete, this hard disk object can be
6469 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6470 this VirtualBox installation.
6471 </note>
6472
6473 </desc>
6474
6475 <param name="size" type="unsigned long long" dir="in">
6476 <desc>Logical size of the hard disk in megabytes.</desc>
6477 </param>
6478 <param name="progress" type="IProgress" dir="return">
6479 <desc>Progress object to track the operation completion.</desc>
6480 </param>
6481
6482 </method>
6483
6484 <method name="deleteImage">
6485 <desc>
6486
6487 Deletes the existing hard disk image. The hard disk must not be
6488 registered within this VirtualBox installation, otherwise the
6489 operation will fail.
6490
6491 <note>
6492 After this operation succeeds, it will be impossible to register the
6493 hard disk until the image file is created again.
6494 </note>
6495
6496 <note>
6497 This operation is valid only for non-differencing hard disks, after
6498 they are unregistered using
6499 <link to="IVirtualBox::unregisterHardDisk()"/>.
6500 </note>
6501
6502 </desc>
6503 </method>
6504
6505 </interface>
6506
6507 <!--
6508 // IVHDImage
6509 /////////////////////////////////////////////////////////////////////////
6510 -->
6511
6512 <interface
6513 name="IVHDImage" extends="$unknown"
6514 uuid="163b88c3-7552-424a-8205-daf17a004747"
6515 wsmap="managed"
6516 >
6517 <desc>
6518
6519 The IVHDImage interface represents <link to="IHardDisk">virtual hard
6520 disks</link> that use Virtual PC Virtual Machine Disk image files to store
6521 hard disk data.
6522
6523 Hard disks using VHD images can be either opened using
6524 <link to="IVirtualBox::openHardDisk()"/> or created from
6525 scratch using <link to="IVirtualBox::createHardDisk()"/>.
6526
6527 Objects that support this interface also support the
6528 <link to="IHardDisk"/> interface.
6529
6530 When a new hard disk object is created from scatch, an image file for it
6531 is not automatically created. To do it, you need to specify a
6532 valid <link to="#filePath">file path</link>, and call
6533 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
6534 When it is done, the hard disk object can be registered by calling
6535 <link to="IVirtualBox::registerHardDisk()"/> and then
6536 <link to="IMachine::attachHardDisk()">attached</link> to
6537 virtual machines.
6538
6539 The <link to="IHardDisk::description">description</link>
6540 of the VHD hard disk is stored in the VirtualBox
6541 configuration file, so it can be changed (at appropriate
6542 times) even when
6543 <link to="IHardDisk::accessible">accessible</link> returns
6544 <tt>false</tt>. However, the hard disk must not be
6545 attached to a running virtual machine.
6546
6547 <note>
6548 In the current imlementation, the type of all VHD hard disks
6549 is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
6550 and cannot be changed.
6551 </note>
6552
6553 </desc>
6554
6555 <attribute name="filePath" type="wstring">
6556 <desc>
6557
6558 Full file name of the VHD image of this hard disk. For
6559 newly created hard disk objects, this value is <tt>null</tt>.
6560
6561 When assigning a new path, it can be absolute (full path) or relative
6562 to the <link to="IVirtualBox::homeFolder"> VirtualBox home
6563 directory</link>. If only a file name without any path is given,
6564 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
6565 folder</link> will be used as a path to the image file.
6566
6567 When reading this propery, a full path is always returned.
6568
6569 <note>
6570 This property cannot be changed when <link to="#created"/>
6571 returns <tt>true</tt>. In this case, the specified file name can be
6572 absolute (full path) or relative to
6573 the <link to="IVirtualBox::homeFolder"> VirtualBox home
6574 directory</link>. If only a file name without any path is given,
6575 the <link to="ISystemProperties::defaultVDIFolder"> default VDI
6576 folder</link> will be used as a path to the image file.
6577 </note>
6578
6579 </desc>
6580 </attribute>
6581
6582 <attribute name="created" type="boolean" readonly="yes">
6583 <desc>
6584
6585 Whether the virual disk image is created or not. For newly created
6586 hard disk objects or after a successful invocation of
6587 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
6588 <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
6589 is called.
6590
6591 </desc>
6592 </attribute>
6593
6594 <method name="createDynamicImage">
6595
6596 <desc>
6597
6598 Starts creating a dymically expanding hard disk image in the
6599 background. The previous image associated with this object, if
6600 any, must be deleted using <link to="#deleteImage"/>, otherwise
6601 the operation will fail.
6602
6603 <note>
6604 After the returned progress object reports that the
6605 operation is complete, this hard disk object can be
6606 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6607 this VirtualBox installation.
6608 </note>
6609
6610 </desc>
6611
6612 <param name="size" type="unsigned long long" dir="in">
6613 <desc>Maximum logical size of the hard disk in megabytes.</desc>
6614 </param>
6615 <param name="progress" type="IProgress" dir="return">
6616 <desc>Progress object to track the operation completion.</desc>
6617 </param>
6618
6619 </method>
6620
6621 <method name="createFixedImage">
6622 <desc>
6623
6624 Starts creating a fixed-size hard disk image in the background. The
6625 previous image, if any, must be deleted using
6626 <link to="#deleteImage"/>, otherwise the operation will fail.
6627
6628 <note>
6629 After the returned progress object reports that the
6630 operation is complete, this hard disk object can be
6631 <link to="IVirtualBox::registerHardDisk()">registered</link> within
6632 this VirtualBox installation.
6633 </note>
6634
6635 </desc>
6636
6637 <param name="size" type="unsigned long long" dir="in">
6638 <desc>Logical size of the hard disk in megabytes.</desc>
6639 </param>
6640 <param name="progress" type="IProgress" dir="return">
6641 <desc>Progress object to track the operation completion.</desc>
6642 </param>
6643
6644 </method>
6645
6646 <method name="deleteImage">
6647 <desc>
6648
6649 Deletes the existing hard disk image. The hard disk must not be
6650 registered within this VirtualBox installation, otherwise the
6651 operation will fail.
6652
6653 <note>
6654 After this operation succeeds, it will be impossible to register the
6655 hard disk until the image file is created again.
6656 </note>
6657
6658 <note>
6659 This operation is valid only for non-differencing hard disks, after
6660 they are unregistered using
6661 <link to="IVirtualBox::unregisterHardDisk()"/>.
6662 </note>
6663
6664 </desc>
6665 </method>
6666
6667 </interface>
6668
6669 <!--
6670 // IDVDImage
6671 /////////////////////////////////////////////////////////////////////////
6672 -->
6673
6674 <enumerator
6675 name="IDVDImageEnumerator" type="IDVDImage"
6676 uuid="9BE77C8D-E1BE-4bf2-A67B-B4DD3D2B0F28"
6677 />
6678
6679 <collection
6680 name="IDVDImageCollection" type="IDVDImage"
6681 enumerator="IDVDImageEnumerator"
6682 uuid="AE7053FA-ADD2-4ea4-AFCF-24D5F8DDED64"
6683 readonly="yes"
6684 >
6685 <method name="findByPath">
6686 <desc>
6687 Searches this collection for a DVD image with the given disk path.
6688 <note>
6689 The method returns an error if the given name does not
6690 correspond to any DVD image in the collection.
6691 </note>
6692 </desc>
6693 <param name="path" type="wstring" dir="in">
6694 <desc>Name of the DVD image's file system location.</desc>
6695 </param>
6696 <param name="image" type="IDVDImage" dir="return">
6697 <desc>Found DVD image object</desc>
6698 </param>
6699 </method>
6700 </collection>
6701
6702 <interface
6703 name="IDVDImage" extends="$unknown"
6704 uuid="140FFF03-E479-4194-8562-ABC4F8171009"
6705 wsmap="managed"
6706 >
6707 <desc>
6708
6709 The IDVDImage interface represents a file containing the image
6710 of the DVD or CD disk.
6711
6712 <h3>Image Accessibility</h3>
6713
6714 The <link to="#accessible"/> attribute of the image object
6715 defines the accessibility state of the image file. If the
6716 value of this attribute is <tt>false</tt> then some image
6717 attributes may contain invalid or outdated values (for example, the
6718 the image file size) until a new accessibility
6719 check is done that returns <tt>true</tt>.
6720
6721 <note>
6722 Because of the possible slowness of the accessibility check,
6723 it is not implicitly performed upon the VirtualBox server startup
6724 (to prevent the application freeze). In partcular, this means that
6725 if you try to read image properties that depend on the
6726 accessibility state without first reading the value of the
6727 <link to="#accessible"/> attribute and ensuring it's value is
6728 <tt>true</tt>, you will get wrong (zero) values.
6729 </note>
6730
6731 </desc>
6732 <attribute name="id" type="uuid" readonly="yes">
6733 <desc>UUID of the CD/DVD image.</desc>
6734 </attribute>
6735
6736 <attribute name="filePath" type="wstring" readonly="yes">
6737 <desc>Full file name of the CD/DVD image.</desc>
6738 </attribute>
6739
6740 <attribute name="accessible" type="boolean" readonly="yes">
6741 <desc>
6742
6743 Whether the CD/DVD image is currently accessible or not.
6744 The image, for example, can be unaccessible if it is placed
6745 on a network share that is not available by the time
6746 this property is read.
6747
6748 The accessibility check is performed automatically every time
6749 this attribute is read. You should keep it in mind that this check
6750 may be slow and can block the calling thread for a long time (for
6751 example, if the network share where the image is located is down).
6752
6753 The following attributes of the image object are considered
6754 to be invalid when this attribute is <tt>false</tt>:
6755 <ul>
6756 <li><link to="#size"/></li>
6757 </ul>
6758
6759 </desc>
6760 </attribute>
6761
6762 <attribute name="size" type="unsigned long long" readonly="yes">
6763 <desc>Size of the ISO image in bytes.</desc>
6764 </attribute>
6765
6766 </interface>
6767
6768
6769 <!--
6770 // IDVDDrive
6771 /////////////////////////////////////////////////////////////////////////
6772 -->
6773
6774 <enum
6775 name="DriveState"
6776 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
6777 >
6778 <const name="InvalidDriveState" value="0"/>
6779 <const name="NotMounted" value="1"/>
6780 <const name="ImageMounted" value="2"/>
6781 <const name="HostDriveCaptured" value="3"/>
6782 </enum>
6783
6784 <interface
6785 name="IDVDDrive" extends="$unknown"
6786 uuid="d9bd101a-8079-4fb9-bad1-31bf32482b75"
6787 wsmap="managed"
6788 >
6789 <desc>
6790 The IDVDDrive interface represents the virtual CD/DVD drive of the
6791 virtual machine. Used in <link to="IMachine::DVDDrive"/>.
6792 </desc>
6793 <attribute name="state" type="DriveState" readonly="yes">
6794 <desc>Current drive state.</desc>
6795 </attribute>
6796
6797 <attribute name="passthrough" type="boolean">
6798 <desc>
6799 When a host drive is mounted and passthrough is enabled
6800 the guest will be able to directly send SCSI commands to
6801 the host drive. This enables the guest to use CD/DVD writers
6802 but is potentially dangerous.
6803 </desc>
6804 </attribute>
6805
6806 <method name="mountImage">
6807 <desc>Mounts the specified image.</desc>
6808 <param name="imageId" type="uuid" dir="in"/>
6809 </method>
6810
6811 <method name="captureHostDrive">
6812 <desc>Captures the specified host drive.</desc>
6813 <param name="drive" type="IHostDVDDrive" dir="in"/>
6814 </method>
6815
6816 <method name="unmount">
6817 <desc>Unmounts the currently mounted image/device.</desc>
6818 </method>
6819
6820 <method name="getImage">
6821 <desc>Gets the currently mounted image ID.</desc>
6822 <param name="image" type="IDVDImage" dir="return"/>
6823 </method>
6824
6825 <method name="getHostDrive">
6826 <desc>Gets the currently mounted image ID.</desc>
6827 <param name="drive" type="IHostDVDDrive" dir="return"/>
6828 </method>
6829
6830 </interface>
6831
6832 <!--
6833 // IFloppyImage
6834 /////////////////////////////////////////////////////////////////////////
6835 -->
6836
6837 <enumerator
6838 name="IFloppyImageEnumerator" type="IFloppyImage"
6839 uuid="902C4089-76B7-41f1-91E8-49A261A28A2C"
6840 />
6841
6842 <collection
6843 name="IFloppyImageCollection" type="IFloppyImage"
6844 enumerator="IFloppyImageEnumerator"
6845 uuid="327A8928-8572-446e-AD9A-18FE30E81F3F"
6846 readonly="yes">
6847 <method name="findByPath">
6848 <desc>
6849 Searches this collection for a floppy image with the given disk path.
6850 <note>
6851 The method returns an error if the given name does not
6852 correspond to any floppy image in the collection.
6853 </note>
6854 </desc>
6855 <param name="path" type="wstring" dir="in">
6856 <desc>Name of the floppy image's file system location.</desc>
6857 </param>
6858 <param name="image" type="IFloppyImage" dir="return">
6859 <desc>Found Floppy image object</desc>
6860 </param>
6861 </method>
6862 </collection>
6863
6864 <interface
6865 name="IFloppyImage" extends="$unknown"
6866 uuid="CC696755-EA98-4ffe-9DC5-C003047034AB"
6867 wsmap="managed"
6868 >
6869 <desc>
6870
6871 The IFloppyImage interface represents a file containing the image
6872 of a floppy disk.
6873
6874 <h3>Image Accessibility</h3>
6875
6876 The <link to="#accessible"/> attribute of the image object
6877 defines the accessibility state of the image file. If the
6878 value of this attribute is <tt>false</tt> then some image
6879 attributes may contain invalid or outdated values (for example, the
6880 the image file size) until a new accessibility
6881 check is done that returns <tt>true</tt>.
6882
6883 <note>
6884 Because of the possible slowness of the accessibility check,
6885 it is not implicitly performed upon the VirtualBox server startup
6886 (to prevent the application freeze). In partcular, this means that
6887 if you try to read image properties that depend on the
6888 accessibility state without first reading the value of the
6889 <link to="#accessible"/> attribute and ensuring it's value is
6890 <tt>true</tt>, you will get wrong (zero) values.
6891 </note>
6892
6893 </desc>
6894 <attribute name="id" type="uuid" readonly="yes">
6895 <desc>UUID of the floppy image.</desc>
6896 </attribute>
6897
6898 <attribute name="filePath" type="wstring" readonly="yes">
6899 <desc>Full file name of the floppy image.</desc>
6900 </attribute>
6901
6902 <attribute name="accessible" type="boolean" readonly="yes">
6903 <desc>
6904
6905 Whether the floppy image is currently accessible or not.
6906 The image, for example, can be unaccessible if it is placed
6907 on a network share that is not available by the time
6908 this property is read.
6909
6910 The accessibility check is performed automatically every time
6911 this attribute is read. You should keep it in mind that this check
6912 may be slow and can block the calling thread for a long time (for
6913 example, if the network share where the image is located is down).
6914
6915 The following attributes of the image object are considered
6916 to be invalid when this attribute is <tt>false</tt>:
6917 <ul>
6918 <li><link to="#size"/></li>
6919 </ul>
6920
6921 </desc>
6922 </attribute>
6923
6924 <attribute name="size" type="unsigned long" readonly="yes">
6925 <desc>Size of the floppy image in bytes.</desc>
6926 </attribute>
6927
6928 </interface>
6929
6930
6931 <!--
6932 // IFloppyDrive
6933 /////////////////////////////////////////////////////////////////////////
6934 -->
6935
6936 <interface
6937 name="IFloppyDrive" extends="$unknown"
6938 uuid="E9318F71-78D2-4b00-863C-B7CB0030A2D9"
6939 wsmap="managed"
6940 >
6941 <desc>
6942 The IFloppyDrive interface represents the virtual floppy drive of the
6943 virtual machine. Used in <link to="IMachine::FloppyDrive" />.
6944 </desc>
6945
6946 <attribute name="enabled" type="boolean">
6947 <desc>
6948 Flag whether the floppy drive is enabled. If it is disabled,
6949 the floppy drive will not be reported to the guest.
6950 </desc>
6951 </attribute>
6952
6953 <attribute name="state" type="DriveState" readonly="yes">
6954 <desc>Current drive state.</desc>
6955 </attribute>
6956
6957 <method name="mountImage">
6958 <desc>Mounts the specified image.</desc>
6959 <param name="imageId" type="uuid" dir="in"/>
6960 </method>
6961
6962 <method name="captureHostDrive">
6963 <desc>Captures the specified host drive.</desc>
6964 <param name="drive" type="IHostFloppyDrive" dir="in"/>
6965 </method>
6966
6967 <method name="unmount">
6968 <desc>Unmounts the currently mounted image/device.</desc>
6969 </method>
6970
6971 <method name="getImage">
6972 <desc>Gets the currently mounted image ID.</desc>
6973 <param name="image" type="IFloppyImage" dir="return"/>
6974 </method>
6975
6976 <method name="getHostDrive">
6977 <desc>Gets the currently mounted image ID.</desc>
6978 <param name="drive" type="IHostFloppyDrive" dir="return"/>
6979 </method>
6980
6981 </interface>
6982
6983
6984 <!--
6985 // IKeyboard
6986 /////////////////////////////////////////////////////////////////////////
6987 -->
6988
6989 <interface
6990 name="IKeyboard" extends="$unknown"
6991 uuid="FD443EC1-000A-4F5B-9282-D72760A66916"
6992 wsmap="managed"
6993 >
6994 <desc>
6995 The IKeyboard interface represents the virtual machine's keyboard. Used
6996 in <link to="IConsole::keyboard"/>.
6997
6998 Through this interface, the virtual machine's virtual keyboard can be controlled. One
6999 can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it.
7000 </desc>
7001 <method name="putScancode">
7002 <desc>Sends a scancode to the keyboard.</desc>
7003 <param name="scancode" type="long" dir="in"/>
7004 </method>
7005
7006 <method name="putScancodes">
7007 <desc>Sends an array of scancode to the keyboard.</desc>
7008 <param name="scancodes" type="long" dir="in" array="count"/>
7009 <param name="count" type="unsigned long" dir="in"/>
7010 <param name="codesStored" type="unsigned long" dir="return"/>
7011 </method>
7012
7013 <method name="putCAD">
7014 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
7015 </method>
7016
7017 </interface>
7018
7019
7020 <!--
7021 // IMouse
7022 /////////////////////////////////////////////////////////////////////////
7023 -->
7024
7025 <enum
7026 name="MouseButtonState"
7027 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
7028 >
7029 <const name="LeftButton" value="0x01"/>
7030 <const name="RightButton" value="0x02"/>
7031 <const name="MiddleButton" value="0x04"/>
7032 <const name="WheelUp" value="0x08"/>
7033 <const name="WheelDown" value="0x10"/>
7034 <const name="MouseStateMask" value="0x1F"/>
7035 </enum>
7036
7037 <interface
7038 name="IMouse" extends="$unknown"
7039 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
7040 wsmap="managed"
7041 >
7042 <desc>
7043 The IMouse interface represents the virtual machine's mouse. Used in
7044 <link to="IConsole::mouse"/>.
7045
7046 Through this interface, the virtual machine's virtual mouse can be
7047 controlled.
7048 </desc>
7049
7050 <attribute name="absoluteSupported" type="boolean" readonly="yes">
7051 <desc>
7052 Whether the guest OS supports absolute mouse pointer positioning
7053 or not.
7054 <note>
7055 VirtualBox Guest Tools need to be installed to the guest OS
7056 in order to enable absolute mouse positioning support.
7057 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
7058 callback to be instantly informed about changes of this attribute
7059 during virtual machine execution.
7060 </note>
7061 <see><link to="#putMouseEventAbsolute"/></see>
7062 </desc>
7063 </attribute>
7064
7065 <method name="putMouseEvent">
7066 <desc>
7067 Initiates a mouse event using relative pointer movements
7068 along x and y axis.
7069 </desc>
7070
7071 <param name="dx" type="long" dir="in">
7072 <desc>
7073 Amout of pixels the mouse should move to the right.
7074 Negative values move the mouse to the left.
7075 </desc>
7076 </param>
7077 <param name="dy" type="long" dir="in">
7078 <desc>
7079 Amout of pixels the mouse should move downwards.
7080 Negative values move the mouse upwards.
7081 </desc>
7082 </param>
7083 <param name="dz" type="long" dir="in">
7084 <desc>
7085 Amount of mouse wheel moves.
7086 Positive values describe clockwize wheel rotations,
7087 negative values describe counterclockwise rotations.
7088 </desc>
7089 </param>
7090 <param name="buttonState" type="long" dir="in">
7091 <desc>
7092 The current state of mouse buttons. Every bit represents
7093 a mouse button as follows:
7094 <table>
7095 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
7096 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
7097 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
7098 </table>
7099 A value of <tt>1</tt> means the corresponding button is pressed.
7100 otherwise it is released.
7101 </desc>
7102 </param>
7103 </method>
7104
7105 <method name="putMouseEventAbsolute">
7106 <desc>
7107 Positions the mouse pointer using absolute x and y coordinates.
7108 These coordinates are expressed in pixels and
7109 start from <tt>[1,1]</tt> which corresponds to the top left
7110 corner of the virtual display.
7111
7112 <note>
7113 This method will have effect only if absolute mouse
7114 positioning is supported by the guest OS.
7115 </note>
7116
7117 <see><link to="#absoluteSupported"/></see>
7118 </desc>
7119
7120 <param name="x" type="long" dir="in">
7121 <desc>
7122 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
7123 </desc>
7124 </param>
7125 <param name="y" type="long" dir="in">
7126 <desc>
7127 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
7128 </desc>
7129 </param>
7130 <param name="dz" type="long" dir="in">
7131 <desc>
7132 Amout of mouse wheel moves.
7133 Positive values describe clockwize wheel rotations,
7134 negative values describe counterclockwise rotations.
7135 </desc>
7136 </param>
7137 <param name="buttonState" type="long" dir="in">
7138 <desc>
7139 The current state of mouse buttons. Every bit represents
7140 a mouse button as follows:
7141 <table>
7142 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
7143 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
7144 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
7145 </table>
7146 A value of <tt>1</tt> means the corresponding button is pressed.
7147 otherwise it is released.
7148 </desc>
7149 </param>
7150 </method>
7151
7152 </interface>
7153
7154 <!--
7155 // IDisplay
7156 /////////////////////////////////////////////////////////////////////////
7157 -->
7158
7159 <enum
7160 name="FramebufferAccelerationOperation"
7161 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
7162 >
7163 <const name="SolidFillAcceleration" value="1"/>
7164 <const name="ScreenCopyAcceleration" value="2"/>
7165 </enum>
7166
7167 <enum
7168 name="FramebufferPixelFormat"
7169 uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d"
7170 >
7171 <desc>
7172 Format of the video memory buffer. Constants represented by this enum can
7173 be used to test for particular values of <link
7174 to="IFramebuffer::pixelFormat"/>. See also <link
7175 to="IFramebuffer::requestResize()"/>.
7176
7177 See also www.fourcc.org for more informantion about FOURCC pixel formats.
7178 </desc>
7179 <const name="PixelFormatOpaque" value="0xFFFFFFFF">
7180 <desc>
7181 Unknown buffer format. The user may not assume any particular
7182 format of the buffer.
7183 </desc>
7184 </const>
7185 <const name="FOURCC_RGB" value="0x32424752">
7186 <desc>
7187 Basic RGB format. <link to="IFramebuffer::bitsPerPixel"/> determines
7188 the bit layout.
7189 </desc>
7190 </const>
7191 </enum>
7192
7193 <interface
7194 name="IFramebuffer" extends="$unknown"
7195 uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
7196 wsmap="suppress"
7197 >
7198 <attribute name="address" type="octet" mod="ptr" readonly="yes">
7199 <desc>Address of the start byte of the framebuffer.</desc>
7200 </attribute>
7201
7202 <attribute name="width" type="unsigned long" readonly="yes">
7203 <desc>Framebuffer width, in pixels.</desc>
7204 </attribute>
7205
7206 <attribute name="height" type="unsigned long" readonly="yes">
7207 <desc>Framebuffer height, in pixels.</desc>
7208 </attribute>
7209
7210 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
7211 <desc>
7212 Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
7213 to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, valid values
7214 are: 8, 15, 16, 24 and 32.
7215 </desc>
7216 </attribute>
7217
7218 <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
7219 <desc>
7220 Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
7221 to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, the
7222 size of the scan line must be aligned to 32 bits.
7223 </desc>
7224 </attribute>
7225
7226 <attribute name="pixelFormat" type="unsigned long" readonly="yes">
7227 <desc>
7228 Framebuffer pixel format. It's either one of the values defined by <link
7229 to="FramebufferPixelFormat"/> or a raw FOURCC code.
7230 <note>
7231 This attribute must never return <link
7232 to="PixelFormat::PixelFormatOpaque"/> -- the format of the buffer
7233 <link to="#address"/> points to must be always known.
7234 </note>
7235 </desc>
7236 </attribute>
7237
7238 <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
7239 <desc>
7240 Defines whether this framebuffer uses the virtual video card's memory
7241 buffer (guest VRAM) directly or not. See <link
7242 to="IFramebuffer::requestResize()"/> for more information.
7243 </desc>
7244 </attribute>
7245
7246 <attribute name="heightReduction" type="unsigned long" readonly="yes">
7247 <desc>
7248 Hint from the framebuffer about how much of the standard
7249 screen height it wants to use for itself. This information is
7250 exposed to the guest through the VESA BIOS and VMMDev interface
7251 so that it can use it for determining its video mode table. It
7252 is not guaranteed that the guest respects the value.
7253 </desc>
7254 </attribute>
7255
7256 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
7257 <desc>
7258 An alpha-blended overlay which is superposed over the framebuffer.
7259 The initial purpose is to allow the display of icons providing
7260 information about the VM state, including disk activity, in front
7261 ends which do not have other means of doing that. The overlay is
7262 designed to controlled exclusively by IDisplay. It has no locking
7263 of its own, and any changes made to it are not guaranteed to be
7264 visible until the affected portion of IFramebuffer is updated. The
7265 overlay can be created lazily the first time it is requested. This
7266 attribute can also return NULL to signal that the overlay is not
7267 implemented.
7268 </desc>
7269 </attribute>
7270
7271 <method name="lock">
7272 <desc>
7273 Locks the framebuffer.
7274 Gets called by the IDisplay object where this framebuffer is
7275 bound to.
7276 </desc>
7277 </method>
7278
7279 <method name="unlock">
7280 <desc>
7281 Unlocks the framebuffer.
7282 Gets called by the IDisplay object where this framebuffer is
7283 bound to.
7284 </desc>
7285 </method>
7286
7287 <method name="notifyUpdate">
7288 <desc>
7289 Informs about an update.
7290 Gets called by the display object where this buffer is
7291 registered.
7292 </desc>
7293 <param name="x" type="unsigned long" dir="in"/>
7294 <param name="y" type="unsigned long" dir="in"/>
7295 <param name="width" type="unsigned long" dir="in"/>
7296 <param name="height" type="unsigned long" dir="in"/>
7297 <param name="finished" type="boolean" dir="return"/>
7298 </method>
7299
7300 <method name="requestResize">
7301 <desc>
7302 Requests a size and pixel format change.
7303
7304 There are two modes of working with the video buffer of the virtual
7305 machine. The <i>indirect</i> mode implies that the IFramebuffer
7306 implementation allocates a memory buffer for the requested display mode
7307 and provides it to the virtual machine. In <i>direct</i> mode, the
7308 IFramebuffer implementation uses the memory buffer allocated and owned
7309 by the virtual machine. This buffer represents the video memory of the
7310 emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
7311 usually faster because the implementation gets a raw pointer to the
7312 guest VRAM buffer which it can directly use for visualising the contents
7313 of the virtual display, as opposed to the indirect mode where the
7314 contents of guest VRAM are copied to the memory buffer provided by
7315 the implementation every time a display update occurs.
7316
7317 It is important to note that the direct mode is really fast only when
7318 the implementation uses the given guest VRAM buffer directly, for
7319 example, by blitting it to the window representing the virtual machine's
7320 display, which saves at least one copy operation comparing to the
7321 indirect mode. However, using the guest VRAM buffer directly is not
7322 always possible: the format and the color depth of this buffer may be
7323 not supported by the target window, or it may be unknown (opaque) as in
7324 case of text or non-linear multi-plane VGA video modes. In this case,
7325 the indirect mode (that is always available) should be used as a
7326 fallback: when the guest VRAM contents are copied to the
7327 implementation-provided memory buffer, color and format conversion is
7328 done authomatically by the underlying code.
7329
7330 The @a pixelFormat parameter defines whether the direct mode is
7331 available or not. If @a pixelFormat is <link
7332 to="PixelFormat::PixelFormatOpaque"/> then direct access to the guest
7333 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
7334 bytesPerLine parameters must be ignored and the implementation must use
7335 the indirect mode (where it provides its own buffer in one of the
7336 supported formats). In all other cases, @a pixelFormat together with @a
7337 bitsPerPixel and @a bytesPerLine define the format of the video memory
7338 buffer pointed to by the @a VRAM parameter and the implementation is
7339 free to choose which mode to use. To indicate that this framebuffer uses
7340 the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
7341 attribute must return <tt>true</tt> and <link to="#address"/> must
7342 return exactly the same address that is passed in the @a VRAM parameter
7343 of this method; otherwise it is assumed that the indirect strategy is
7344 chosen.
7345
7346 The @a width and @a height parameters represent the size of the
7347 requested display mode in both modes. In case of indirect mode, the
7348 provided memory buffer should be big enough to store data of the given
7349 display mode. In case of direct mode, it is guaranteed that the given @a
7350 VRAM buffer contains enough space to represent the display mode of the
7351 given size. Note that this framebuffer's <link to="#width"/> and <link
7352 to="#height"/> attributes must return exactly the same values as
7353 passed to this method after the resize is completed (see below).
7354
7355 The @a finished output parameter determines if the implementation has
7356 finished resizing the framebuffer or not. If, for some reason, the
7357 resize cannot be finished immediately during this call, @a finished
7358 must be set to @c false, and the implementation must call
7359 <link to="IDisplay::resizeCompleted()"/> after it has returned from
7360 this method as soon as possible. If @a finished is @c false, the
7361 machine will not call any framebuffer methods until
7362 <link to="IDisplay::resizeCompleted()"/> is called.
7363
7364 Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
7365 <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
7366 this framebuffer must return exactly the same values as specified in the
7367 parameters of this method, after the resize is completed. If the
7368 indirect mode is chosen, these attributes must return values describing
7369 the format of the implementation's own memory buffer <link
7370 to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
7371 value must always correlate with <link to="#pixelFormat"/>. Note that
7372 the <link to="#pixelFormat"/> attribute must never return <link
7373 to="PixelFormat::PixelFormatOpaque"/> regardless of the selected mode.
7374
7375 <note>
7376 This method is called by the IDisplay object under the
7377 <link to="#lock()"/> provided by this IFramebuffer
7378 implementation. If this method returns @c false in @a finished, then
7379 this lock is not released until
7380 <link to="IDisplay::resizeCompleted()"/> is called.
7381 </note>
7382 </desc>
7383 <param name="screenId" type="unsigned long" dir="in">
7384 <desc>
7385 Logical screen number. Must be used in the corresponding call to
7386 <link to="IDisplay::resizeCompleted()"/> if this call is made.
7387 </desc>
7388 </param>
7389 <param name="pixelFormat" type="unsigned long" dir="in">
7390 <desc>
7391 Pixel format of the memory buffer pointed to by @a VRAM.
7392 See also <link to="FramebufferPixelFormat"/>.
7393 </desc>
7394 </param>
7395 <param name="VRAM" type="octet" mod="ptr" dir="in">
7396 <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
7397 </param>
7398 <param name="bitsPerPixel" type="unsigned long" dir="in">
7399 <desc>Color depth, bits per pixel.</desc>
7400 </param>
7401 <param name="bytesPerLine" type="unsigned long" dir="in">
7402 <desc>Size of one scan line, in bytes.</desc>
7403 </param>
7404 <param name="width" type="unsigned long" dir="in">
7405 <desc>Width of the guest display, in pixels.</desc>
7406 </param>
7407 <param name="height" type="unsigned long" dir="in">
7408 <desc>Height of the guest display, in pixels.</desc>
7409 </param>
7410 <param name="finished" type="boolean" dir="return">
7411 <desc>
7412 Can the VM start using the new framebuffer immediately
7413 after this method returns or it should wait for
7414 <link to="IDisplay::resizeCompleted()"/>.
7415 </desc>
7416 </param>
7417 </method>
7418
7419 <method name="operationSupported">
7420 <desc>
7421 Returns whether the given acceleration operation is supported
7422 by the IFramebuffer implementation. If not, the display object
7423 will not attempt to call the corresponding IFramebuffer entry
7424 point. Even if an operation is indicated to supported, the
7425 IFramebuffer implementation always has the option to return non
7426 supported from the corresponding acceleration method in which
7427 case the operation will be performed by the display engine. This
7428 allows for reduced IFramebuffer implementation complexity where
7429 only common cases are handled.
7430 </desc>
7431 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
7432 <param name="supported" type="boolean" dir="return"/>
7433 </method>
7434
7435 <method name="videoModeSupported">
7436 <desc>
7437 Returns whether the framebuffer implementation is willing to
7438 support a given video mode. In case it is not able to render
7439 the video mode (or for some reason not willing), it should
7440 return false. Usually this method is called when the guest
7441 asks the VMM device whether a given video mode is supported
7442 so the information returned is directly exposed to the guest.
7443 It is important that this method returns very quickly.
7444 </desc>
7445 <param name="width" type="unsigned long" dir="in"/>
7446 <param name="height" type="unsigned long" dir="in"/>
7447 <param name="bpp" type="unsigned long" dir="in"/>
7448 <param name="supported" type="boolean" dir="return"/>
7449 </method>
7450
7451 <method name="solidFill">
7452 <desc>
7453 Fills the specified rectangle on screen with a solid color.
7454 </desc>
7455 <param name="x" type="unsigned long" dir="in"/>
7456 <param name="y" type="unsigned long" dir="in"/>
7457 <param name="width" type="unsigned long" dir="in"/>
7458 <param name="height" type="unsigned long" dir="in"/>
7459 <param name="color" type="unsigned long" dir="in"/>
7460 <param name="handled" type="boolean" dir="return"/>
7461 </method>
7462
7463 <method name="copyScreenBits">
7464 <desc>
7465 Copies specified rectangle on the screen.
7466 </desc>
7467 <param name="xDst" type="unsigned long" dir="in"/>
7468 <param name="yDst" type="unsigned long" dir="in"/>
7469 <param name="xSrc" type="unsigned long" dir="in"/>
7470 <param name="ySrc" type="unsigned long" dir="in"/>
7471 <param name="width" type="unsigned long" dir="in"/>
7472 <param name="height" type="unsigned long" dir="in"/>
7473 <param name="handled" type="boolean" dir="return"/>
7474 </method>
7475
7476 <method name="getVisibleRegion">
7477 <desc>
7478 Returns the visible region of this framebuffer.
7479
7480 If the @a rectangles parameter is <tt>NULL</tt> then the value of the
7481 @a count parameter is ignored and the number of elements necessary to
7482 describe the current visible region is returned in @a countCopied.
7483
7484 If @a rectangles is not <tt>NULL</tt> but @a count is less
7485 than the required number of elements to store region data, the method
7486 will report a failure. If @a count is equal or greater than the
7487 required number of elements, then the actual number of elements copied
7488 to the provided array will be returned in @a countCopied.
7489
7490 <note>
7491 The address of the provided array must be in the process space of
7492 this IFramebuffer object.
7493 </note>
7494 </desc>
7495 <param name="rectangles" type="octet" mod="ptr" dir="in">
7496 <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
7497 </param>
7498 <param name="count" type="unsigned long" dir="in">
7499 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
7500 </param>
7501 <param name="countCopied" type="unsigned long" dir="return">
7502 <desc>Number of elements copied to the @a rectangles array.</desc>
7503 </param>
7504 </method>
7505
7506 <method name="setVisibleRegion">
7507 <desc>
7508 Suggests a new visible region to this framebuffer. This region
7509 represents the area of the VM display which is a union of regions of
7510 all top-level windows of the guest operating system running inside the
7511 VM (if the Guest Additions for this system support this
7512 functionality). This information may be used by the frontends to
7513 implement the seamless desktop integration feature.
7514
7515 <note>
7516 The address of the provided array must be in the process space of
7517 this IFramebuffer object.
7518 </note>
7519 <note>
7520 The IFramebuffer implementation must make a copy of the provided
7521 array of rectangles.
7522 </note>
7523 </desc>
7524 <param name="rectangles" type="octet" mod="ptr" dir="in">
7525 <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
7526 </param>
7527 <param name="count" type="unsigned long" dir="in">
7528 <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
7529 </param>
7530 </method>
7531
7532 </interface>
7533
7534 <interface
7535 name="IFramebufferOverlay" extends="IFrameBuffer"
7536 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
7537 wsmap="suppress"
7538 >
7539 <desc>
7540 The IFramebufferOverlay interface represents an alpha blended overlay
7541 for displaying status icons above an IFramebuffer. It is always created
7542 not visible, so that it must be explicitly shown. It only covers a
7543 portion of the IFramebuffer, determined by its width, height and
7544 co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
7545 that order) format, and may be written to directly. Do re-read the
7546 width though, after setting it, as it may be adjusted (increased) to
7547 make it more suitable for the front end.
7548 </desc>
7549 <attribute name="x" type="unsigned long" readonly="yes">
7550 <desc>X position of the overlay, relative to the framebuffer.</desc>
7551 </attribute>
7552
7553 <attribute name="y" type="unsigned long" readonly="yes">
7554 <desc>Y position of the overlay, relative to the framebuffer.</desc>
7555 </attribute>
7556
7557 <attribute name="visible" type="boolean" readonly="no">
7558 <desc>
7559 Whether the overlay is currently visible.
7560 </desc>
7561 </attribute>
7562
7563 <attribute name="alpha" type="unsigned long" readonly="no">
7564 <desc>
7565 The global alpha value for the overlay. This may or may not be
7566 supported by a given front end.
7567 </desc>
7568 </attribute>
7569
7570 <method name="move">
7571 <desc>
7572 Changes the overlay's position relative to the IFramebuffer.
7573 </desc>
7574 <param name="x" type="unsigned long" dir="in"/>
7575 <param name="y" type="unsigned long" dir="in"/>
7576 </method>
7577
7578 </interface>
7579
7580 <interface
7581 name="IDisplay" extends="$unknown"
7582 uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
7583 wsmap="suppress"
7584 >
7585 <desc>
7586 The IDisplay interface represents the virtual machine's display.
7587
7588 The object implementing this interface is contained in each
7589 <link to="IConsole::display"/> attribute and represents the visual
7590 output of the virtual machine.
7591
7592 The virtual display supports pluggable output targets represented by the
7593 IFramebuffer interface. Examples of the output target are a window on
7594 the host computer or an RDP sessoin's display on a remote computer.
7595 </desc>
7596 <attribute name="width" type="unsigned long" readonly="yes">
7597 <desc>Current display width.</desc>
7598 </attribute>
7599
7600 <attribute name="height" type="unsigned long" readonly="yes">
7601 <desc>Current display height.</desc>
7602 </attribute>
7603
7604 <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
7605 <desc>
7606 Current guest display color depth. Note that this may differ
7607 from <link to="IFramebuffer::bitsPerPixel"/>.
7608 </desc>
7609 </attribute>
7610
7611 <method name="setupInternalFramebuffer">
7612 <desc>
7613 Prepares an internally managed framebuffer.
7614 </desc>
7615 <param name="depth" type="unsigned long" dir="in"/>
7616 </method>
7617
7618 <method name="lockFramebuffer">
7619 <desc>
7620 Requests access to the internal framebuffer.
7621 </desc>
7622 <param name="address" type="octet" mod="ptr" dir="return"/>
7623 </method>
7624
7625 <method name="unlockFramebuffer">
7626 <desc>
7627 Releases access to the internal framebuffer.
7628 </desc>
7629 </method>
7630
7631 <method name="registerExternalFramebuffer">
7632 <desc>
7633 Registers an external framebuffer.
7634 </desc>
7635 <param name="framebuffer" type="IFramebuffer" dir="in"/>
7636 </method>
7637
7638 <method name="setFramebuffer">
7639 <desc>
7640 Sets the framebuffer for given screen.
7641 </desc>
7642 <param name="screenId" type="unsigned long" dir="in"/>
7643 <param name="framebuffer" type="IFramebuffer" dir="in"/>
7644 </method>
7645
7646 <method name="getFramebuffer">
7647 <desc>
7648 Queries the framebuffer for given screen.
7649 </desc>
7650 <param name="screenId" type="unsigned long" dir="in"/>
7651 <param name="framebuffer" type="IFramebuffer" dir="out"/>
7652 <param name="xOrigin" type="long" dir="out"/>
7653 <param name="yOrigin" type="long" dir="out"/>
7654 </method>
7655
7656 <method name="setVideoModeHint">
7657 <desc>
7658 Asks VirtualBox to request the given video mode from
7659 the guest. This is just a hint and it cannot be guaranteed
7660 that the requested resolution will be used. Guest Additions
7661 are required for the request to be seen by guests. The caller
7662 should issue the request and wait for a resolution change and
7663 after a timeout retry.
7664
7665 Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
7666 parameters means that the corresponding values should be taken from the
7667 current video mode (i.e. left unchanged).
7668
7669 If the guest OS supports multi-monitor configuration then the @a display
7670 parameter specifies the number of the guest display to send the hint to:
7671 <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
7672 so on. If the multi-monitor configuration is not supported, @a display
7673 must be <tt>0</tt>.
7674
7675 </desc>
7676 <param name="width" type="unsigned long" dir="in"/>
7677 <param name="height" type="unsigned long" dir="in"/>
7678 <param name="bitsPerPixel" type="unsigned long" dir="in"/>
7679 <param name="display" type="unsigned long" dir="in"/>
7680 </method>
7681
7682 <method name="setSeamlessMode">
7683 <desc>
7684 Enables or disables seamless guest display rendering (seamless desktop
7685 integration) mode.
7686 <note>
7687 Calling this method has no effect if <link
7688 to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
7689 </note>
7690 </desc>
7691 <param name="enabled" type="boolean" dir="in"/>
7692 </method>
7693
7694 <method name="takeScreenShot">
7695 <desc>
7696 Takes a screen shot of the requested size and copies it to the
7697 32-bpp buffer allocated by the caller.
7698 </desc>
7699 <param name="address" type="octet" mod="ptr" dir="in"/>
7700 <param name="width" type="unsigned long" dir="in"/>
7701 <param name="height" type="unsigned long" dir="in"/>
7702 </method>
7703
7704 <method name="drawToScreen">
7705 <desc>
7706 Draws a 32-bpp image of the specified size from the given buffer
7707 to the given point on the VM display.
7708 </desc>
7709 <param name="address" type="octet" mod="ptr" dir="in"/>
7710 <param name="x" type="unsigned long" dir="in"/>
7711 <param name="y" type="unsigned long" dir="in"/>
7712 <param name="width" type="unsigned long" dir="in"/>
7713 <param name="height" type="unsigned long" dir="in"/>
7714 </method>
7715
7716 <method name="invalidateAndUpdate">
7717 <desc>
7718 Does a full invalidation of the VM display and instructs the VM
7719 to update it.
7720 </desc>
7721 </method>
7722
7723 <method name="resizeCompleted">
7724 <desc>
7725 Signals that a framebuffer has completed the resize operation.
7726 </desc>
7727 <param name="screenId" type="unsigned long" dir="in"/>
7728 </method>
7729
7730 <method name="updateCompleted">
7731 <desc>
7732 Signals that a framebuffer has completed the update operation.
7733 </desc>
7734 </method>
7735
7736 </interface>
7737
7738 <!--
7739 // INetworkAdapter
7740 /////////////////////////////////////////////////////////////////////////
7741 -->
7742
7743 <enum
7744 name="NetworkAttachmentType"
7745 uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
7746 >
7747 <const name="NoNetworkAttachment" value="0"/>
7748 <const name="NATNetworkAttachment" value="1"/>
7749 <const name="HostInterfaceNetworkAttachment" value="2"/>
7750 <const name="InternalNetworkAttachment" value="3"/>
7751 </enum>
7752
7753 <enum
7754 name="NetworkAdapterType"
7755 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
7756 >
7757 <const name="InvalidNetworkAdapterType" value="0"/>
7758 <const name="NetworkAdapterAm79C970A" value="1"/>
7759 <const name="NetworkAdapterAm79C973" value="2"/>
7760 <const name="NetworkAdapter82540EM" value="3"/>
7761 </enum>
7762
7763 <interface
7764 name="INetworkAdapter" extends="$unknown"
7765 uuid="78dfc978-ecb0-44ee-8b20-54549dd4539e"
7766 wsmap="managed"
7767 >
7768 <attribute name="adapterType" type="NetworkAdapterType">
7769 <desc>
7770 Type of the virtual network adapter. Depending on this value,
7771 VirtualBox will provide a different virtual network hardware
7772 to the guest.
7773 </desc>
7774 </attribute>
7775
7776 <attribute name="slot" type="unsigned long" readonly="yes">
7777 <desc>
7778 Slot number this adapter is plugged into. Corresponds to
7779 the value you pass to <link to="IMachine::getNetworkAdapter"/>
7780 to obtain this instance.
7781 </desc>
7782 </attribute>
7783
7784 <attribute name="enabled" type="boolean">
7785 <desc>
7786 Flag whether the network adapter is present in the
7787 guest system. If disabled, the virtual guest hardware will
7788 not contain this network adapter. Can only be changed when
7789 the VM is not running.
7790 </desc>
7791 </attribute>
7792
7793 <attribute name="MACAddress" type="wstring">
7794 <desc>
7795 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
7796 it to NULL, VirtualBox will generate a unique MAC address.
7797 </desc>
7798 </attribute>
7799
7800 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
7801
7802 <attribute name="hostInterface" type="wstring">
7803 <desc>
7804 Name of the Host Network Interface that is currently in use. NULL will be returned
7805 if no device has been allocated. On Linux, setting this refers to a permanent TAP
7806 device. However, a file descriptor has precedence over the interface name on Linux.
7807 Note that when VBox allocates a TAP device, this property will not be set, i.e. the
7808 interface name would have to be determined using the file descriptor and /proc/self/fd.
7809 </desc>
7810 </attribute>
7811
7812<if target="xpidl">
7813 <attribute name="TAPFileDescriptor" type="long">
7814 <desc>
7815 File descriptor of the TAP device. It can either be setup by the caller
7816 which has to supply an existing valid file handle allocated in the parent
7817 process of the VM process or allocated by VirtualBox. The value is -1 if it
7818 has not been defined. This property is non persistent, i.e. it will not be
7819 stored in the VM's configuration data and thus has to be set at each startup.
7820 </desc>
7821 </attribute>
7822 <attribute name="TAPSetupApplication" type="wstring">
7823 <desc>
7824 Application to start to configure the TAP device.
7825 It is being passed two parameters, 1) the file handle (as ascii),
7826 2) the TAP device name if it is available.
7827 </desc>
7828 </attribute>
7829 <attribute name="TAPTerminateApplication" type="wstring">
7830 <desc>
7831 Application to start before closing a TAP device.
7832 It is being passed two parameters, 1) the file handle (as ascii),
7833 2) the TAP device name if it is available.
7834 </desc>
7835 </attribute>
7836</if>
7837
7838 <attribute name="internalNetwork" type="wstring">
7839 <desc>
7840 Name of the internal network the VM is attached to.
7841 </desc>
7842 </attribute>
7843
7844 <attribute name="cableConnected" type="boolean">
7845 <desc>
7846 Flag whether the adapter reports the cable as connected or not.
7847 It can be used to report offline situations to a VM.
7848 </desc>
7849 </attribute>
7850
7851 <attribute name="lineSpeed" type="unsigned long">
7852 <desc>
7853 Line speed reported by custom drivers, in units of 1 kbps.
7854 </desc>
7855 </attribute>
7856
7857 <attribute name="traceEnabled" type="boolean">
7858 <desc>
7859 Flag whether network traffic from/to the network card should be traced.
7860 Can only be toggled when the VM is turned off.
7861 </desc>
7862 </attribute>
7863
7864 <attribute name="traceFile" type="wstring">
7865 <desc>
7866 Filename where a network trace will be stored. If not set, VBox-pid.pcap
7867 will be used.
7868 </desc>
7869 </attribute>
7870
7871 <method name="attachToNAT">
7872 <desc>
7873 Attach the network adapter to the Network Address Translation (NAT) interface.
7874 </desc>
7875 </method>
7876
7877 <method name="attachToHostInterface">
7878 <desc>
7879 Attach the network adapter to a host interface. On Linux, the TAP
7880 setup application will be executed if configured and unless a device
7881 name and/or file descriptor has been set, a new TAP interface will be
7882 created.
7883 </desc>
7884 </method>
7885
7886 <method name="attachToInternalNetwork">
7887 <desc>
7888 Attach the network adapter to an internal network.
7889 </desc>
7890 </method>
7891
7892 <method name="detach">
7893 <desc>
7894 Detach the network adapter
7895 </desc>
7896 </method>
7897 </interface>
7898
7899
7900 <!--
7901 // ISerialPort
7902 /////////////////////////////////////////////////////////////////////////
7903 -->
7904
7905 <enum
7906 name="PortMode"
7907 uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
7908 >
7909 <desc>
7910 The PortMode enumeration represents possible communicaton modes for
7911 the virtual serial port device.
7912 </desc>
7913
7914 <const name="DisconnectedPort" value="0">
7915 <desc>Virtual device is not attached to any real host device.</desc>
7916 </const>
7917 <const name="HostPipePort" value="1">
7918 <desc>Virtual device is attached to a host pipe.</desc>
7919 </const>
7920 <const name="HostDevicePort" value="2">
7921 <desc>Virtual device is attached to a host device.</desc>
7922 </const>
7923 </enum>
7924
7925 <interface
7926 name="ISerialPort" extends="$unknown"
7927 uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
7928 wsmap="managed"
7929 >
7930
7931 <desc>
7932 The ISerialPort interface represents the virtual serial port device.
7933
7934 The virtual serial port device acts like an ordinary serial port
7935 inside the virtual machine. This device communicates to the real
7936 serial port hardware in one of two modes: host pipe or host device.
7937
7938 In host pipe mode, the #path attribute specifies the path to the pipe on
7939 the host computer that represents a serial port. The #server attribute
7940 determines if this pipe is created by the virtual machine process at
7941 machine startup or it must already exist before starting machine
7942 execution.
7943
7944 In host device mode, the #path attribute specifies the name of the
7945 serial port device on the host computer.
7946
7947 There is also a third communication mode: the disconnected mode. In this
7948 mode, the guest OS running inside the virtual machine will be able to
7949 detect the serial port, but all port write operations will be discarded
7950 and all port read operations will return no data.
7951
7952 <see>IMachine::getSerialPort</see>
7953 </desc>
7954
7955 <attribute name="slot" type="unsigned long" readonly="yes">
7956 <desc>
7957 Slot number this serial port is plugged into. Corresponds to
7958 the value you pass to <link to="IMachine::getSerialPort"/>
7959 to obtain this instance.
7960 </desc>
7961 </attribute>
7962
7963 <attribute name="enabled" type="boolean">
7964 <desc>
7965 Flag whether the serial port is enabled. If disabled,
7966 the serial port will not be reported to the guest OS.
7967 </desc>
7968 </attribute>
7969
7970 <attribute name="IOBase" type="unsigned long">
7971 <desc>Base I/O address of the serial port.</desc>
7972 </attribute>
7973
7974 <attribute name="IRQ" type="unsigned long">
7975 <desc>IRQ number of the serial port.</desc>
7976 </attribute>
7977
7978 <attribute name="hostMode" type="PortMode">
7979 <desc>How is this port connected to the host.</desc>
7980 </attribute>
7981
7982 <attribute name="server" type="boolean">
7983 <desc>
7984 Flag whether this serial port acts as a server (creates a new pipe on
7985 the host) or as a client (uses the existing pipe). This attribute is
7986 used only when #hostMode is PortMode::HostPipePort.
7987 </desc>
7988 </attribute>
7989
7990 <attribute name="path" type="wstring">
7991 <desc>
7992 Path to the serial port's pipe on the host when #hostMode is
7993 PortMode::HostPipePort, or the host serial device name when #hostMode
7994 is PortMode::HostDevicePort. In either of the above cases, setting a
7995 @c null or an empty string as the attribute's value will result into
7996 an error. Otherwise, the value of this property is ignored.
7997 </desc>
7998 </attribute>
7999
8000 </interface>
8001
8002 <!--
8003 // IParallelPort
8004 /////////////////////////////////////////////////////////////////////////
8005 -->
8006
8007 <interface
8008 name="IParallelPort" extends="$unknown"
8009 uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
8010 wsmap="managed"
8011 >
8012
8013 <desc>
8014 The IParallelPort interface represents the virtual parallel port device.
8015
8016 The virtual parallel port device acts like an ordinary parallel port
8017 inside the virtual machine. This device communicates to the real
8018 parallel port hardware using the name of the parallel device on the host
8019 computer specified in the #path attribute.
8020
8021 Each virtual parallel port device is assigned a base I/O address and an
8022 IRQ number that will be reported to the guest operating system and used
8023 to operate the given parallel port from within the virtual machine.
8024
8025 <see>IMachine::getParallelPort</see>
8026 </desc>
8027
8028 <attribute name="slot" type="unsigned long" readonly="yes">
8029 <desc>
8030 Slot number this parallel port is plugged into. Corresponds to
8031 the value you pass to <link to="IMachine::getParallelPort"/>
8032 to obtain this instance.
8033 </desc>
8034 </attribute>
8035
8036 <attribute name="enabled" type="boolean">
8037 <desc>
8038 Flag whether the parallel port is enabled. If disabled,
8039 the parallel port will not be reported to the guest OS.
8040 </desc>
8041 </attribute>
8042
8043 <attribute name="IOBase" type="unsigned long">
8044 <desc>Base I/O address of the parallel port.</desc>
8045 </attribute>
8046
8047 <attribute name="IRQ" type="unsigned long">
8048 <desc>IRQ number of the parallel port.</desc>
8049 </attribute>
8050
8051 <attribute name="path" type="wstring">
8052 <desc>
8053 Host parallel device name. If this parallel port is enabled, setting a
8054 @c null or an empty string as this attribute's value will result into
8055 an error.
8056 </desc>
8057 </attribute>
8058
8059 </interface>
8060
8061
8062 <!--
8063 // IMachineDebugger
8064 /////////////////////////////////////////////////////////////////////////
8065 -->
8066
8067 <interface
8068 name="IMachineDebugger" extends="$unknown"
8069 uuid="b3a02721-556a-4481-9d47-052a3f8cff90"
8070 wsmap="suppress"
8071 >
8072 <method name="resetStats">
8073 <desc>
8074 Reset VM statistics.
8075 </desc>
8076 <param name="pattern" type="wstring" dir="in">
8077 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8078 </param>
8079 </method>
8080
8081 <method name="dumpStats">
8082 <desc>
8083 Dumps VM statistics.
8084 </desc>
8085 <param name="pattern" type="wstring" dir="in">
8086 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8087 </param>
8088 </method>
8089
8090 <method name="getStats">
8091 <desc>
8092 Get the VM statistics in a XMLish format.
8093 </desc>
8094 <param name="pattern" type="wstring" dir="in">
8095 <desc>The selection pattern. A bit similar to filename globbing.</desc>
8096 </param>
8097 <param name="withDescriptions" type="boolean" dir="in">
8098 <desc>Whether to include the descriptions.</desc>
8099 </param>
8100 <param name="stats" type="wstring" dir="out">
8101 <desc>The XML document containing the statistics.</desc>
8102 </param>
8103 </method>
8104
8105 <attribute name="singlestep" type="boolean">
8106 <desc>Switch for enabling singlestepping.</desc>
8107 </attribute>
8108
8109 <attribute name="recompileUser" type="boolean">
8110 <desc>Switch for forcing code recompilation for user mode code.</desc>
8111 </attribute>
8112
8113 <attribute name="recompileSupervisor" type="boolean">
8114 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
8115 </attribute>
8116
8117 <attribute name="PATMEnabled" type="boolean">
8118 <desc>Switch for enabling and disabling the PATM component.</desc>
8119 </attribute>
8120
8121 <attribute name="CSAMEnabled" type="boolean">
8122 <desc>Switch for enabling and disabling the CSAM component.</desc>
8123 </attribute>
8124
8125 <attribute name="logEnabled" type="boolean">
8126 <desc>Switch for enabling and disabling logging.</desc>
8127 </attribute>
8128
8129 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
8130 <desc>
8131 Flag indicating whether the VM is currently making use of CPU hardware
8132 virtualization extensions
8133 </desc>
8134 </attribute>
8135
8136 <attribute name="virtualTimeRate" type="unsigned long">
8137 <desc>
8138 The rate at which the virtual time runs expressed as a percentage.
8139 The accepted range is 2% to 20000%.
8140 </desc>
8141 </attribute>
8142
8143 <!-- @todo method for setting log flags, groups and destination! -->
8144
8145 <attribute name="VM" type="unsigned long long" readonly="yes">
8146 <desc>
8147 Gets the VM handle. This is only for internal use while
8148 we carve the details of this interface.
8149 </desc>
8150 </attribute>
8151
8152 </interface>
8153
8154 <!--
8155 // IUSBController
8156 /////////////////////////////////////////////////////////////////////////
8157 -->
8158
8159 <interface
8160 name="IUSBController" extends="$unknown"
8161 uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
8162 wsmap="managed"
8163 >
8164 <attribute name="enabled" type="boolean">
8165 <desc>
8166 Flag whether the USB controller is present in the
8167 guest system. If disabled, the virtual guest hardware will
8168 not contain any USB controller. Can only be changed when
8169 the VM is powered off.
8170 </desc>
8171 </attribute>
8172
8173 <attribute name="enabledEhci" type="boolean">
8174 <desc>
8175 Flag whether the USB EHCI controller is present in the
8176 guest system. If disabled, the virtual guest hardware will
8177 not contain a USB EHCI controller. Can only be changed when
8178 the VM is powered off.
8179 </desc>
8180 </attribute>
8181
8182 <attribute name="USBStandard" type="unsigned short" readonly="yes">
8183 <desc>
8184 USB standard version which the controller implements.
8185 This is a BCD which means that the major version is in the
8186 high byte and minor version is in the low byte.
8187 </desc>
8188 </attribute>
8189
8190 <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
8191 <desc>
8192 List of USB device filters associated with the machine.
8193
8194 If the machine is currently running, these filters are activated
8195 every time a new (supported) USB device is attached to the host
8196 computer that was not ignored by global filters
8197 (<link to="IHost::USBDeviceFilters"/>).
8198
8199 These filters are also activated when the machine is powered up.
8200 They are run against a list of all currently available USB
8201 devices (in states
8202 <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link>,
8203 <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
8204 <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>)
8205 that were not previously ignored by global filters.
8206
8207 If at least one filter matches the USB device in question, this
8208 device is automatically captured (attached to) the virtual USB
8209 controller of this machine.
8210
8211 <see>IUSBDeviceFilter, ::IUSBController</see>
8212 </desc>
8213 </attribute>
8214
8215 <method name="createDeviceFilter">
8216 <desc>
8217 Creates a new USB device filter. All attributes except
8218 the filter name are set to <tt>null</tt> (any match),
8219 <i>active</i> is <tt>false</tt> (the filter is not active).
8220
8221 The created filter can then be added to the list of filters using
8222 <link to="#insertDeviceFilter()"/>.
8223
8224 <see>#deviceFilters</see>
8225 </desc>
8226 <param name="name" type="wstring" dir="in">
8227 <desc>
8228 Filter name. See <link to="IUSBDeviceFilter::name"/>
8229 for more info.
8230 </desc>
8231 </param>
8232 <param name="filter" type="IUSBDeviceFilter" dir="return">
8233 <desc>Created filter object.</desc>
8234 </param>
8235 </method>
8236
8237 <method name="insertDeviceFilter">
8238 <desc>
8239 Inserts the given USB device to the specified position
8240 in the list of filters.
8241
8242 Positions are numbered starting from <tt>0</tt>. If the specified
8243 position is equal to or greater than the number of elements in
8244 the list, the filter is added to the end of the collection.
8245
8246 <note>
8247 Duplicates are not allowed, so an attempt to inster a
8248 filter that is already in the collection, will return an
8249 error.
8250 </note>
8251
8252 <see>#deviceFilters</see>
8253 </desc>
8254 <param name="position" type="unsigned long" dir="in">
8255 <desc>Position to insert the filter to.</desc>
8256 </param>
8257 <param name="filter" type="IUSBDeviceFilter" dir="in">
8258 <desc>USB device filter to insert.</desc>
8259 </param>
8260 </method>
8261
8262 <method name="removeDeviceFilter">
8263 <desc>
8264 Removes a USB device filter from the specified position in the
8265 list of filters.
8266
8267 Positions are numbered starting from <tt>0</tt>. Specifying a
8268 position equal to or greater than the number of elements in
8269 the list will produce an error.
8270
8271 <see>#deviceFilters</see>
8272 </desc>
8273 <param name="position" type="unsigned long" dir="in">
8274 <desc>Position to remove the filter from.</desc>
8275 </param>
8276 <param name="filter" type="IUSBDeviceFilter" dir="return">
8277 <desc>Removed USB device filter.</desc>
8278 </param>
8279 </method>
8280
8281 </interface>
8282
8283
8284 <!--
8285 // IUSBDevice
8286 /////////////////////////////////////////////////////////////////////////
8287 -->
8288
8289 <enumerator
8290 name="IUSBDeviceEnumerator" type="IUSBDevice"
8291 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
8292 />
8293
8294 <collection
8295 name="IUSBDeviceCollection" type="IUSBDevice"
8296 enumerator="IUSBDeviceEnumerator"
8297 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
8298 readonly="yes"
8299 >
8300 <method name="findById">
8301 <desc>
8302 Searches this collection for a USB device with the given UUID.
8303 <note>
8304 The method returns an error if the given UUID does not
8305 correspond to any USB device in the collection.
8306 </note>
8307 <see>IUSBDevice::id</see>
8308 </desc>
8309 <param name="id" type="uuid" dir="in">
8310 <desc>UUID of the USB device to search for.</desc>
8311 </param>
8312 <param name="device" type="IUSBDevice" dir="return">
8313 <desc>Found USB device object.</desc>
8314 </param>
8315 </method>
8316
8317 <method name="findByAddress">
8318 <desc>
8319 Searches this collection for a USB device with the given
8320 host address.
8321 <note>
8322 The method returns an error if the given address does not
8323 correspond to any USB device in the collection.
8324 </note>
8325 <see>IUSBDevice::address</see>
8326 </desc>
8327 <param name="name" type="wstring" dir="in">
8328 <desc>
8329 Address of the USB device (as assigned by the host) to
8330 search for.
8331 </desc>
8332 </param>
8333 <param name="device" type="IUSBDevice" dir="return">
8334 <desc>Found USB device object.</desc>
8335 </param>
8336 </method>
8337
8338 </collection>
8339
8340 <interface
8341 name="IUSBDevice" extends="$unknown"
8342 uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
8343 wsmap="managed"
8344 >
8345 <desc>
8346 The IUSBDevice interface represents a virtual USB device attached to the
8347 virtual machine.
8348
8349 A collection of objects implementing this interface is stored in the
8350 <link to="IConsole::USBDevices"/> attribute which lists all USB devices
8351 attached to a running virtual machine's USB controller.
8352 </desc>
8353
8354 <attribute name="id" type="uuid" readonly="yes">
8355 <desc>
8356 Unique USB device ID. This ID is built from #vendorId,
8357 #productId, #revision and #serialNumber.
8358 </desc>
8359 </attribute>
8360
8361 <attribute name="vendorId" type="unsigned short" readonly="yes">
8362 <desc>Vendor ID.</desc>
8363 </attribute>
8364
8365 <attribute name="productId" type="unsigned short" readonly="yes">
8366 <desc>Product ID.</desc>
8367 </attribute>
8368
8369 <attribute name="revision" type="unsigned short" readonly="yes">
8370 <desc>
8371 Product revision number. This is a packed BCD represented as
8372 unsigned short. The high byte is the integer part and the low
8373 byte is the decimal.
8374 </desc>
8375 </attribute>
8376
8377 <attribute name="manufacturer" type="wstring" readonly="yes">
8378 <desc>Manufacturer string.</desc>
8379 </attribute>
8380
8381 <attribute name="product" type="wstring" readonly="yes">
8382 <desc>Product string.</desc>
8383 </attribute>
8384
8385 <attribute name="serialNumber" type="wstring" readonly="yes">
8386 <desc>Serial number string.</desc>
8387 </attribute>
8388
8389 <attribute name="address" type="wstring" readonly="yes">
8390 <desc>Host specific address of the device.</desc>
8391 </attribute>
8392
8393 <attribute name="port" type="unsigned short" readonly="yes">
8394 <desc>
8395 Host USB port number the device is physically
8396 coonected to.
8397 </desc>
8398 </attribute>
8399
8400 <attribute name="version" type="unsigned short" readonly="yes">
8401 <desc>
8402 The major USB version of the device - 1 or 2.
8403 </desc>
8404 </attribute>
8405
8406 <attribute name="portVersion" type="unsigned short" readonly="yes">
8407 <desc>
8408 The major USB version of the host USB port the device is
8409 physically coonected to - 1 or 2. For devices not connected to
8410 anything this will have the same value as the version attribute.
8411 </desc>
8412 </attribute>
8413
8414 <attribute name="remote" type="boolean" readonly="yes">
8415 <desc>
8416 Whether the device is physically connected to a remote VRDP
8417 client or to a local host machine.
8418 </desc>
8419 </attribute>
8420
8421 </interface>
8422
8423
8424 <!--
8425 // IUSBDeviceFilter
8426 /////////////////////////////////////////////////////////////////////////
8427 -->
8428
8429 <enumerator
8430 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
8431 uuid="d5109c61-93e7-4726-926b-0dee1020da56"
8432 />
8433
8434 <collection
8435 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
8436 enumerator="IUSBDeviceFilterEnumerator"
8437 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
8438 readonly="yes"
8439 />
8440
8441 <interface
8442 name="IUSBDeviceFilter" extends="$unknown"
8443 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
8444 wsmap="managed"
8445 >
8446 <desc>
8447 The IUSBDeviceFilter interface represents an USB device filter used
8448 to perform actions on a group of USB devices.
8449
8450 This type of filters is used by running virtual machines to
8451 automatically capture selected USB devices once they are physically
8452 attached to the host computer.
8453
8454 A USB device is matched to the given device filter if and only if all
8455 attributes of the device match the corresponding attributes of the
8456 filter (that is, attributes are joined together using the logical AND
8457 operation). On the other hand, all together, filters in the list of
8458 filters carry the semantics of the logical OR operation. So if it is
8459 desirable to create a match like "this vendor id OR this product id",
8460 one needs to create two filters and specify "any match" (see below)
8461 for unused attributes.
8462
8463 All filter attributes used for matching are strings. Each string
8464 is an expression representing a set of values of the corresponding
8465 device attribute, that will match the given filter. Currently, the
8466 following filtering expressions are supported:
8467
8468 <ul>
8469 <li><i>Interval filters</i>. Used to specify valid intervals for
8470 integer device attributes (Vendor ID, Product ID and Revision).
8471 The format of the string is:
8472
8473 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
8474
8475 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
8476 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
8477 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
8478 is ommitted before a dash (<tt>-</tt>), the minimum possible integer
8479 is assumed; if <tt>n</tt> is ommitted after a dash, the maximum
8480 possible integer is assummed.
8481 </li>
8482 <li><i>Boolean filters</i>. Used to specify acceptable values for
8483 boolean device attributes. The format of the string is:
8484
8485 <tt>true|false|yes|no|0|1</tt>
8486
8487 </li>
8488 <li><i>Exact match</i>. Used to specify a single value for the given
8489 device attribute. Any string that does't start with <tt>int:</tt>
8490 represents the exact match. String device attributes are compared to
8491 this string including case of symbols. Integer attributes are first
8492 converted to a string (see individual filter attributes) and then
8493 compared ignoring case.
8494
8495 </li>
8496 <li><i>Any match</i>. Any value of the corresponding device attribute
8497 will match the given filter. An empty or <tt>null</tt> string is
8498 used to construct this type of filtering expressions.
8499
8500 </li>
8501 </ul>
8502
8503 <note>
8504 On the Windows host platform, interval filters are not currently
8505 available. Also all string filter attributes
8506 (<link to="#manufacturer"/>, <link to="#product"/>,
8507 <link to="#serialNumber"/>) are ignored, so they behave as
8508 <i>any match</i> no matter what string expression is specified.
8509 </note>
8510
8511 <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
8512 </desc>
8513
8514 <attribute name="name" type="wstring">
8515 <desc>
8516 Visible name for this filter.
8517 This name is used to visually distungish one filter from another,
8518 so it can neither be <tt>null</tt> nor an empty string.
8519 </desc>
8520 </attribute>
8521
8522 <attribute name="active" type="boolean">
8523 <desc>Whether this filter active or has been temporarily disabled.</desc>
8524 </attribute>
8525
8526 <attribute name="vendorId" type="wstring">
8527 <desc>
8528 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
8529 The string representation for the <i>exact matching</i>
8530 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
8531 (including leading zeroes).
8532 </desc>
8533 </attribute>
8534
8535 <attribute name="productId" type="wstring">
8536 <desc>
8537 <link to="IUSBDevice::productId">Product ID</link> filter.
8538 The string representation for the <i>exact matching</i>
8539 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
8540 (including leading zeroes).
8541 </desc>
8542 </attribute>
8543
8544 <attribute name="revision" type="wstring">
8545 <desc>
8546 <link to="IUSBDevice::productId">Product revision number</link>
8547 filter. The string representation for the <i>exact matching</i>
8548 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
8549 of the integer part of the revision, and <tt>F</tt> is the
8550 decimal digit of its fractional part (including leading and
8551 trailing zeroes).
8552 Note that for interval filters, it's best to use the hexadecimal
8553 form, because the revision is stored as a 16 bit packed BCD value;
8554 so the expression <tt>int:0x0100-0x0199</tt> will match any
8555 revision from <tt>1.0</tt> to <tt>1.99</tt>.
8556 </desc>
8557 </attribute>
8558
8559 <attribute name="manufacturer" type="wstring">
8560 <desc>
8561 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
8562 </desc>
8563 </attribute>
8564
8565 <attribute name="product" type="wstring">
8566 <desc>
8567 <link to="IUSBDevice::product">Product</link> filter.
8568 </desc>
8569 </attribute>
8570
8571 <attribute name="serialNumber" type="wstring">
8572 <desc>
8573 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
8574 </desc>
8575 </attribute>
8576
8577 <attribute name="port" type="wstring">
8578 <desc>
8579 <link to="IUSBDevice::port">Host USB port</link> filter.
8580 </desc>
8581 </attribute>
8582
8583 <attribute name="remote" type="wstring">
8584 <desc>
8585 <link to="IUSBDevice::remote">Remote state</link> filter.
8586 <note>
8587 This filter makes sense only for machine USB filters,
8588 i.e. it is ignored by IHostUSBDeviceFilter objects.
8589 </note>
8590 </desc>
8591 </attribute>
8592
8593 <attribute name="maskedInterfaces" type="unsigned long">
8594 <desc>
8595 This is an advanced option for hiding one or more USB interfaces
8596 from the guest. The value is a bitmask where the bits that are set
8597 means the corresponding USB interface should be hidden, masked off
8598 if you like.
8599 This feature only works on Linux hosts.
8600 </desc>
8601 </attribute>
8602
8603 </interface>
8604
8605
8606 <!--
8607 // IHostUSBDevice
8608 /////////////////////////////////////////////////////////////////////////
8609 -->
8610
8611 <enum
8612 name="USBDeviceState"
8613 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
8614 >
8615 <desc>
8616 USB device state. This enumeration represents all possible states
8617 of the USB device physically attached to the host computer regarding
8618 its state on the host computer and availability to guest computers
8619 (all currently running virtual machines).
8620
8621 Once a supported USB device is attached to the host, global USB
8622 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
8623 either ignore the device, or put ot to #USBDeviceHeld state, or do
8624 nothing. Unless the device is ignored by global filters, filters of
8625 all currently running guests (<link to="IUSBController::deviceFilters"/>)
8626 are activated that can put it to #USBDeviceCaptured state.
8627
8628 If the device was ignored by global filters, or didn't match
8629 any filters at all (including guest ones), it is handled by the host
8630 in a normal way. In this case, the device state is determined by
8631 the host and can be one of #USBDeviceUnavailable, #USBDeviceBusy or
8632 #USBDeviceAvailable, depending on the current device usage.
8633
8634 Besides auto-capturing based on filters, the device can be manually
8635 captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
8636 state is #USBDeviceBusy, #USBDeviceAvailable or #USBDeviceHeld.
8637
8638 <note>
8639 Due to differences in USB stack implementations in Linux and Win32,
8640 states #USBDeviceBusy and #USBDeviceAvailable are applicable
8641 only to the Linux version of the product. This also means that
8642 (<link to="IConsole::attachUSBDevice()"/>) can only succeed
8643 on Win32 if the device state is #USBDeviceHeld.
8644 </note>
8645
8646 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
8647 </desc>
8648
8649 <const name="USBDeviceNotSupported" value="0">
8650 <desc>
8651 Not supported by the VirtualBox server, not available to guests.
8652 </desc>
8653 </const>
8654 <const name="USBDeviceUnavailable" value="1">
8655 <desc>
8656 Being used by the host computer exclusively,
8657 not available to guests.
8658 </desc>
8659 </const>
8660 <const name="USBDeviceBusy" value="2">
8661 <desc>
8662 Being used by the host computer, potentially available to guests.
8663 </desc>
8664 </const>
8665 <const name="USBDeviceAvailable" value="3">
8666 <desc>
8667 Not used by the host computer, available to guests.
8668 The host computer can also start using the device at any time.
8669 </desc>
8670 </const>
8671 <const name="USBDeviceHeld" value="4">
8672 <desc>
8673 Held by the VirtualBox server (ignored by the host computer),
8674 available to guests.
8675 </desc>
8676 </const>
8677 <const name="USBDeviceCaptured" value="5">
8678 <desc>
8679 Captured by one of the guest computers, not available
8680 to anybody else.
8681 </desc>
8682 </const>
8683 </enum>
8684
8685 <enumerator
8686 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
8687 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
8688 />
8689
8690 <collection
8691 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
8692 enumerator="IHostUSBDeviceEnumerator"
8693 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
8694 readonly="yes"
8695 >
8696 <method name="findById">
8697 <desc>
8698 Searches this collection for a USB device with the given UUID.
8699 <note>
8700 The method returns an error if the given UUID does not
8701 correspond to any USB device in the collection.
8702 </note>
8703 <see>IHostUSBDevice::id</see>
8704 </desc>
8705 <param name="id" type="uuid" dir="in">
8706 <desc>UUID of the USB device to search for.</desc>
8707 </param>
8708 <param name="device" type="IHostUSBDevice" dir="return">
8709 <desc>Found USB device object.</desc>
8710 </param>
8711 </method>
8712
8713 <method name="findByAddress">
8714 <desc>
8715 Searches this collection for a USB device with the given
8716 host address.
8717 <note>
8718 The method returns an error if the given address does not
8719 correspond to any USB device in the collection.
8720 </note>
8721 <see>IHostUSBDevice::address</see>
8722 </desc>
8723 <param name="name" type="wstring" dir="in">
8724 <desc>
8725 Address of the USB device (as assigned by the host) to
8726 search for.
8727 </desc>
8728 </param>
8729 <param name="device" type="IHostUSBDevice" dir="return">
8730 <desc>Found USB device object.</desc>
8731 </param>
8732 </method>
8733
8734 </collection>
8735
8736 <interface
8737 name="IHostUSBDevice" extends="IUSBDevice"
8738 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
8739 wsmap="managed"
8740 >
8741 <desc>
8742 The IHostUSBDevice interface represents a physical USB device attached
8743 to the host computer.
8744
8745 Besides properties inherited from IUSBDevice, this interface adds the
8746 <link to="#state"/> property that holds the courrent state of the USB
8747 device.
8748
8749 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
8750 </desc>
8751
8752 <attribute name="state" type="USBDeviceState" readonly="yes">
8753 <desc>
8754 Current state of the device.
8755 </desc>
8756 </attribute>
8757
8758 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
8759
8760 </interface>
8761
8762
8763 <!--
8764 // IHostUSBDeviceFilter
8765 /////////////////////////////////////////////////////////////////////////
8766 -->
8767
8768 <enum
8769 name="USBDeviceFilterAction"
8770 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
8771 >
8772 <desc>
8773 Actions for host USB device filters.
8774 <see>IHostUSBDeviceFilter, USBDeviceState</see>
8775 </desc>
8776
8777 <const name="InvalidUSBDeviceFilterAction" value="0"/>
8778 <const name="USBDeviceFilterIgnore" value="1">
8779 <desc>Ignore the matched USB device.</desc>
8780 </const>
8781 <const name="USBDeviceFilterHold" value="2">
8782 <desc>Hold the matched USB device.</desc>
8783 </const>
8784 </enum>
8785
8786 <enumerator
8787 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
8788 uuid="ff735211-903e-4642-9c37-189eb44579fe"
8789 />
8790
8791 <collection
8792 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
8793 enumerator="IHostUSBDeviceFilterEnumerator"
8794 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
8795 readonly="yes"
8796 />
8797
8798 <interface
8799 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
8800 uuid="4cc70246-d74a-400f-8222-3900489c0374"
8801 wsmap="managed"
8802 >
8803 <desc>
8804 The IHostUSBDeviceFilter interface represents a global filter for a
8805 physical USB device used by the host computer. Used indirectly in
8806 <link to="IHost::USBDeviceFilters"/>.
8807
8808 Using filters of this type, the host computer determines the initial
8809 state of the USB device after it is physically attached to the
8810 host's USB controller.
8811
8812 <note>
8813 The <link to="#remote"/> attribute is ignored by this type of
8814 filters, because it makes sense only for
8815 <link to="IUSBController::deviceFilters">machine USB filters</link>.
8816 </note>
8817
8818 <see>IHost::USBDeviceFilters</see>
8819 </desc>
8820
8821 <attribute name="action" type="USBDeviceFilterAction">
8822 <desc>
8823 Action performed by the host when an attached USB device
8824 matches this filter.
8825 </desc>
8826 </attribute>
8827
8828 </interface>
8829
8830 <!--
8831 // IAudioAdapter
8832 /////////////////////////////////////////////////////////////////////////
8833 -->
8834
8835 <enum
8836 name="AudioDriverType"
8837 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
8838 >
8839 <const name="NullAudioDriver" value="0"/>
8840 <const name="WINMMAudioDriver" value="1"/>
8841 <const name="OSSAudioDriver" value="2"/>
8842 <const name="ALSAAudioDriver" value="3"/>
8843 <const name="DSOUNDAudioDriver" value="4"/>
8844 <const name="CoreAudioDriver" value="5"/>
8845 <const name="MMPMAudioDriver" value="6"/>
8846 <const name="PulseAudioDriver" value="7"/>
8847 </enum>
8848
8849 <interface
8850 name="IAudioAdapter" extends="$unknown"
8851 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
8852 wsmap="struct"
8853 >
8854 <desc>
8855 The IAudioAdapter interface represents the virtual audio adapter of
8856 the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
8857 </desc>
8858 <attribute name="enabled" type="boolean">
8859 <desc>
8860 Flag whether the audio adapter is present in the
8861 guest system. If disabled, the virtual guest hardware will
8862 not contain any audio adapter. Can only be changed when
8863 the VM is not running.
8864 </desc>
8865 </attribute>
8866 <attribute name="audioDriver" type="AudioDriverType">
8867 <desc>
8868 Audio driver the adapter is connected to. This setting
8869 can only be changed when the VM is not running.
8870 </desc>
8871 </attribute>
8872 </interface>
8873
8874 <!--
8875 // IVRDPServer
8876 /////////////////////////////////////////////////////////////////////////
8877 -->
8878
8879 <enum
8880 name="VRDPAuthType"
8881 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
8882 >
8883 <const name="VRDPAuthNull" value="0"/>
8884 <const name="VRDPAuthExternal" value="1"/>
8885 <const name="VRDPAuthGuest" value="2"/>
8886 </enum>
8887
8888 <interface
8889 name="IVRDPServer" extends="$unknown"
8890 uuid="ed9d31ae-867f-45fc-b727-6740084d1883"
8891 wsmap="struct"
8892 >
8893 <attribute name="enabled" type="boolean">
8894 <desc>VRDP server status.</desc>
8895 </attribute>
8896
8897 <attribute name="port" type="unsigned long">
8898 <desc>
8899 VRDP server port number.
8900 <note>
8901 Setting the value of this property to <tt>0</tt> will reset the port
8902 number to the default value which is
8903 currently <tt>3389</tt>. Reading this property will always return a
8904 real port number, even after it has been set to <tt>0</tt> (in which
8905 case the default port is returned).
8906 </note>
8907 </desc>
8908 </attribute>
8909
8910 <attribute name="netAddress" type="wstring">
8911 <desc>VRDP server address.</desc>
8912 </attribute>
8913
8914 <attribute name="authType" type="VRDPAuthType">
8915 <desc>VRDP authentication method.</desc>
8916 </attribute>
8917
8918 <attribute name="authTimeout" type="unsigned long">
8919 <desc>Timeout for guest authentication. Milliseconds.</desc>
8920 </attribute>
8921
8922 <attribute name="allowMultiConnection" type="boolean">
8923 <desc>
8924 Flag whether multiple simultaneous connections to the VM are permitted.
8925 Note that this will be replaced by a more powerful mechanism in the future.
8926 </desc>
8927 </attribute>
8928
8929 </interface>
8930
8931
8932 <!--
8933 // ISharedFolder
8934 /////////////////////////////////////////////////////////////////////////
8935 -->
8936
8937 <enumerator
8938 name="ISharedFolderEnumerator" type="ISharedFolder"
8939 uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
8940 />
8941
8942 <collection
8943 name="ISharedFolderCollection" type="ISharedFolder"
8944 enumerator="ISharedFolderEnumerator"
8945 uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
8946 readonly="yes">
8947
8948 <method name="findByName">
8949 <desc>
8950 Searches this collection for a shared folder with the given logical
8951 name.
8952 <note>
8953 The method returns an error if the given name does not correspond to
8954 any shared folder in the collection.
8955 </note>
8956 </desc>
8957 <param name="name" type="wstring" dir="in">
8958 <desc>Logical name of the shared folder to search for</desc>
8959 </param>
8960 <param name="sharedFolder" type="ISharedFolder" dir="return">
8961 <desc>Found shared folder object</desc>
8962 </param>
8963 </method>
8964
8965 </collection>
8966
8967 <interface
8968 name="ISharedFolder" extends="$unknown"
8969 uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
8970 wsmap="struct"
8971 >
8972 <desc>
8973 The ISharedFolder interface represents a folder in the host computer's
8974 file system accessible from the guest OS running inside a virtual
8975 machine using an associated logical name.
8976
8977 There are three types of shared folders:
8978 <ul>
8979 <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
8980 folders available to all virtual machines.</li>
8981 <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
8982 VM-specific shared folders available to the given virtual machine at
8983 startup.</li>
8984 <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
8985 VM-specific shared folders created in the session context (for
8986 example, when the virtual machine is running) and automatically
8987 discarded when the session is closed (the VM is powered off).</li>
8988 </ul>
8989
8990 Logical names of shared folders must be unique within the given scope
8991 (global, permanent or transient). However, they do not need to be unique
8992 across scopes. In this case, the definitioin of the shared folder in a
8993 more specific scope takes precedence over definitions in all other
8994 scopes. The order of precedence is (more specific to more general):
8995 <ol>
8996 <li>Transient definitions</li>
8997 <li>Permanent definitions</li>
8998 <li>Global definitions</li>
8999 </ol>
9000
9001 For example, if MyMachine has a shared folder named
9002 <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then cretaing a
9003 transient shared folder named <tt>C_DRIVE</tt> (that points
9004 to <tt>C:\\\\WINDOWS</tt>) will change the definition
9005 of <tt>C_DRIVE</tt> in the guest OS so
9006 that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
9007 to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
9008 PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
9009 the prevoious (permanent) definition of <tt>C_DRIVE</tt> that points
9010 to <tt>C:\\</tt> if it still exists.
9011
9012 Note that permanent and transient shared folders of different machines
9013 are in different name spaces, so they don't overlap and don't need to
9014 have unique logical names.
9015
9016 <note>
9017 Global shared folders are not implemented in the current vesion of the
9018 product.
9019 </note>
9020 </desc>
9021
9022 <attribute name="name" type="wstring" readonly="yes">
9023 <desc>Logical name of the shared folder.</desc>
9024 </attribute>
9025
9026 <attribute name="hostPath" type="wstring" readonly="yes">
9027 <desc>Full path to the shared folder in the host file system.</desc>
9028 </attribute>
9029
9030 <attribute name="accessible" type="boolean" readonly="yes">
9031 <desc>
9032 Whether the folder defined by the host path is currently
9033 accessible or not.
9034 For example, the folder can be unaccessible if it is placed
9035 on the network share that is not available by the time
9036 this property is read.
9037 </desc>
9038 </attribute>
9039
9040 </interface>
9041
9042 <!--
9043 // ISession
9044 /////////////////////////////////////////////////////////////////////////
9045 -->
9046
9047 <interface
9048 name="IInternalSessionControl" extends="$unknown"
9049 uuid="37838967-2430-4bb1-8acc-1b5b2c383d44"
9050 internal="yes"
9051 wsmap="suppress"
9052 >
9053 <method name="getPID">
9054 <desc>PID of the process that has created this Session object.
9055 </desc>
9056 <param name="pid" type="unsigned long" dir="return"/>
9057 </method>
9058
9059 <method name="getRemoteConsole">
9060 <desc>Returns the console object suitable for remote control.</desc>
9061 <param name="console" type="IConsole" dir="return"/>
9062 </method>
9063
9064 <method name="assignMachine">
9065 <desc>
9066 Assigns the machine object associated with this direct-type
9067 session or informs the session that it will be a remote one
9068 (if machine = NULL).
9069 </desc>
9070 <param name="machine" type="IMachine" dir="in"/>
9071 </method>
9072
9073 <method name="assignRemoteMachine">
9074 <desc>
9075 Assigns the machine and the (remote) console object associated with
9076 this remote-type session.
9077 </desc>
9078 <param name="machine" type="IMachine" dir="in"/>
9079 <param name="console" type="IConsole" dir="in"/>
9080 </method>
9081
9082 <method name="updateMachineState">
9083 <desc>
9084 Updates the machine state in the VM process.
9085 Must be called only in certain cases
9086 (see the method implementation).
9087 </desc>
9088 <param name="aMachineState" type="MachineState" dir="in"/>
9089 </method>
9090
9091 <method name="uninitialize">
9092 <desc>
9093 Uninitializes (closes) this session. Used by VirtualBox to close
9094 the corresponding remote session when the direct session dies
9095 or gets closed.
9096 </desc>
9097 </method>
9098
9099 <method name="onDVDDriveChange">
9100 <desc>
9101 Triggered when settings of the DVD drive object of the
9102 associated virtual machine have changed.
9103 </desc>
9104 </method>
9105
9106 <method name="onFloppyDriveChange">
9107 <desc>
9108 Triggered when settings of the floppy drive object of the
9109 associated virtual machine have changed.
9110 </desc>
9111 </method>
9112
9113 <method name="onNetworkAdapterChange">
9114 <desc>
9115 Triggered when settions of a network adapter of the
9116 associated virtual machine have changed.
9117 </desc>
9118 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
9119 </method>
9120
9121 <method name="onSerialPortChange">
9122 <desc>
9123 Triggered when settions of a serial port of the
9124 associated virtual machine have changed.
9125 </desc>
9126 <param name="serialPort" type="ISerialPort" dir="in"/>
9127 </method>
9128
9129 <method name="onParallelPortChange">
9130 <desc>
9131 Triggered when settings of a parallel port of the
9132 associated virtual machine have changed.
9133 </desc>
9134 <param name="parallelPort" type="IParallelPort" dir="in"/>
9135 </method>
9136
9137 <method name="onVRDPServerChange">
9138 <desc>
9139 Triggered when settings of the VRDP server object of the
9140 associated virtual machine have changed.
9141 </desc>
9142 </method>
9143
9144 <method name="onUSBControllerChange">
9145 <desc>
9146 Triggered when settings of the USB controller object of the
9147 associated virtual machine have changed.
9148 </desc>
9149 </method>
9150
9151 <method name="onSharedFolderChange">
9152 <desc>
9153 Triggered when a permanent (global or machine) shared folder has been
9154 created or removed.
9155 <note>
9156 We don't pass shared folder parameters in this notification because
9157 the order in which parallel notifications are delivered is not defined,
9158 therefore it could happen that these parameters were outdated by the
9159 time of processing this notification.
9160 </note>
9161 </desc>
9162 <param name="global" type="boolean" dir="in"/>
9163 </method>
9164
9165 <method name="onUSBDeviceAttach">
9166 <desc>
9167 Triggered when a request to capture a USB device (as a result
9168 of matched USB filters or direct call to
9169 <link to="IConsole::attachUSBDevice"/>) has completed.
9170 A @c null @a error object means success, otherwise it
9171 describes a failure.
9172 </desc>
9173 <param name="device" type="IUSBDevice" dir="in"/>
9174 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
9175 <param name="maskedInterfaces" type="unsigned long" dir="in"/>
9176 </method>
9177
9178 <method name="onUSBDeviceDetach">
9179 <desc>
9180 Triggered when a request to release the USB device (as a result
9181 of machine termination or direct call to
9182 <link to="IConsole::detachUSBDevice"/>) has completed.
9183 A @c null @a error object means success, otherwise it
9184 </desc>
9185 <param name="id" type="uuid" dir="in"/>
9186 <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
9187 </method>
9188
9189 <method name="onShowWindow">
9190 <desc>
9191 Called by <link to="IMachine::canShowConsoleWindow()"/> and by
9192 <link to="IMachine::showConsoleWindow()"/> in order to notify
9193 console callbacks
9194 <link to="IConsoleCallback::onCanShowWindow()"/>
9195 and <link to="IConsoleCallback::onShowWindow()"/>.
9196 </desc>
9197 <param name="check" type="boolean" dir="in"/>
9198 <param name="canShow" type="boolean" dir="out"/>
9199 <param name="winId" type="unsigned long long" dir="out"/>
9200 </method>
9201
9202 </interface>
9203
9204 <interface
9205 name="ISession" extends="$dispatched"
9206 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
9207 wsmap="managed"
9208 >
9209 <desc>
9210 The ISession interface represents a serialization primitive for virtual
9211 machines.
9212
9213 Within VirtualBox, every time one wishes to manipulate a virtual machine
9214 (for example, change its settings or start execution), an instance of
9215 the ISession interface is required. One first creates a local session
9216 object that implements the ISession interface and then passes the
9217 created object with the method call that opens the given session and
9218 thus initiates the machine manipulation. The session serves several
9219 purposes: it identifies to the inter-process VirtualBox code which
9220 process is currently working with the virtual machine, and it ensures
9221 that there are no incompatible requests from several processes for the
9222 same virtual machine.
9223
9224 When using the COM API directly, an object of the Session class from the
9225 VirtualBox type library needs to be created. This object will then act
9226 as a local session object in further calls to open a session.
9227
9228 In the webservice, the session manager creates one session object during
9229 <link to="IWebsessionManager::logon" /> automatically; a managed object
9230 reference to that session object can be retrieved by calling
9231 <link to="IWebsessionManager::getSessionObject" />.
9232
9233 To start a virtual machine in a separate process, one would call
9234 <link to="IVirtualBox::openRemoteSession"/>, which requires a session
9235 object as its first parameter. This session then identifies the caller
9236 and lets him control the started machine (for example, pause machine
9237 execution or power it down) as well as be notified about machine
9238 execution state changes.
9239
9240 To alter machine settings, or to start machine execution within its own
9241 process, one needs to open a direct session for the machine first by
9242 calling <link to="IVirtualBox::openSession"/>. Once the direct session
9243 is successfully opened within one process, no any other process may open
9244 a direct session for the same machine as long as the successful direct
9245 session remains open. This prevents the machine from being changed by
9246 other processes while it is running or while the machine is being
9247 configured.
9248
9249 One also can attach to an existing direct session alreay opened by
9250 another process (for example, in order to send a control request to the
9251 virtual machine such as the pause or the reset request). This is done by
9252 calling <link to="IVirtualBox::openExistingSession"/>.
9253
9254 In regular COM C++ client code, one can simply create a session object,
9255 for example by calling <tt>createLocalObject().</tt>
9256
9257 <note>
9258 Unless you are trying to write a new VirtualBox front-end that
9259 performs direct machine execution (like the VirtualBox or VBoxSDL
9260 frontends), don't call <link to="IConsole::powerUp"/> in a direct
9261 session opened by <link to="IVirtualBox::openSession"/> and use this
9262 session only to change virtual machine settings. If you simply want to
9263 start virtual machine execution using one of the existing frontends
9264 (for example the VirtualBox GUI frontend), use
9265 <link to="IVirtualBox::openRemoteSession"/>. In the latter case, on
9266 sucess, the machine will be powered up for you by the front-end so you
9267 don't need to call <link to="IConsole::powerUp"/> too.
9268 </note>
9269 </desc>
9270
9271 <attribute name="state" type="SessionState" readonly="yes">
9272 <desc>Current state of this session.</desc>
9273 </attribute>
9274
9275 <attribute name="type" type="SessionType" readonly="yes">
9276 <desc>
9277 Type of this session. The value of this attribute is valid only
9278 if the session is currently open (i.e. its #state is SessionType::SessionOpen),
9279 otherwise an error will be returned.
9280 </desc>
9281 </attribute>
9282
9283 <attribute name="machine" type="IMachine" readonly="yes">
9284 <desc>Machine object associated with this session.</desc>
9285 </attribute>
9286
9287 <attribute name="console" type="IConsole" readonly="yes">
9288 <desc>Console object associated with this session.</desc>
9289 </attribute>
9290
9291 <method name="close">
9292 <desc>
9293 Closes this session.
9294 <note>
9295 If a direct session for a machine opened with
9296 <link to="IVirtualBox::openSession()"/> is not explicitly
9297 closed when the application terminates, the state of the
9298 machine will be set to <link to="MachineState::Aborted"/>
9299 on the server. Generally, it is recommended to close all
9300 open sessions explicitly before terminating the application
9301 (no matter what is the reason of the termination).
9302 </note>
9303 </desc>
9304 </method>
9305
9306 </interface>
9307
9308<if target="wsdl">
9309
9310 <!--
9311 // IManagedObjectRef
9312 /////////////////////////////////////////////////////////////////////////
9313 -->
9314
9315 <interface
9316 name="IManagedObjectRef" extends="$unknown"
9317 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
9318 internal="yes"
9319 wsmap="managed"
9320 wscpp="hardcoded"
9321 >
9322 <desc>
9323 Webservice only: Managed object reference.
9324
9325 Only within the webservice, a managed object reference (which is really
9326 an opaque number) allows a webservice client to address an object
9327 that lives in the address space of the webservice server.
9328
9329 Behind each managed object reference, there is a COM object that lives
9330 in the webservice server's address space. The COM object is not freed
9331 until the managed object reference is released, either by an explicit
9332 call to <link to="IManagedObjectRef::release" /> or by logging off from
9333 the webservice (<link to="IWebsessionManager::logoff" />), which releases
9334 all objects created during the webservice session.
9335
9336 Whenever a method call of the VirtualBox API returns a COM object, the
9337 webservice representation of that method will instead return a
9338 managed object reference, which can then be used to invoke methods
9339 on that object.
9340 </desc>
9341
9342 <method name="getInterfaceName">
9343 <desc>
9344 Returns the name of the interface that this managed object represents,
9345 for example, "IMachine", as a string.
9346 </desc>
9347 <param name="return" type="wstring" dir="return"/>
9348 </method>
9349
9350 <method name="release">
9351 <desc>
9352 Releases this managed object reference and frees the resources that
9353 were allocated for it in the webservice server process. After calling
9354 this method, the identifier of the reference can no longer be used.
9355 </desc>
9356 </method>
9357
9358 </interface>
9359
9360 <!--
9361 // IWebsessionManager
9362 /////////////////////////////////////////////////////////////////////////
9363 -->
9364
9365 <interface
9366 name="IWebsessionManager" extends="$unknown"
9367 uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
9368 internal="yes"
9369 wsmap="global"
9370 wscpp="hardcoded"
9371 >
9372 <desc>
9373 Webservice only: Websession manager. This provides essential services
9374 to webservice clients.
9375 </desc>
9376 <method name="logon">
9377 <desc>
9378 Logs a new client onto the webservice and returns a managed object reference to
9379 the IVirtualBox instance, which the client can then use as a basis to further
9380 queries, since all calls to the VirtualBox API are based on the IVirtualBox
9381 interface, in one way or the other.
9382 </desc>
9383 <param name="username" type="wstring" dir="in"/>
9384 <param name="password" type="wstring" dir="in"/>
9385 <param name="return" type="wstring" dir="return"/>
9386 </method>
9387
9388 <method name="getSessionObject">
9389 <desc>
9390 Returns a managed object reference to the internal ISession object that was created
9391 for this web service session when the client logged on.
9392
9393 <see>ISession</see>
9394 </desc>
9395 <param name="refIVirtualBox" type="wstring" dir="in"/>
9396 <param name="return" type="wstring" dir="return"/>
9397 </method>
9398
9399 <method name="logoff">
9400 <desc>
9401 Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
9402 and destroys all resources associated with the session (most importantly, all
9403 managed objects created in the server while the session was active).
9404 </desc>
9405 <param name="refIVirtualBox" type="wstring" dir="in"/>
9406 </method>
9407
9408 </interface>
9409
9410</if>
9411
9412 <module name="VBoxSVC" context="LocalServer">
9413 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
9414 namespace="virtualbox.org">
9415 <interface name="IVirtualBox" default="yes"/>
9416 </class>
9417 </module>
9418
9419 <module name="VBoxC" context="InprocServer" threadingModel="Free">
9420 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
9421 namespace="virtualbox.org">
9422 <interface name="ISession" default="yes"/>
9423 </class>
9424 </module>
9425
9426</library>
9427
9428</idl>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette