VirtualBox

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

Last change on this file since 2917 was 2917, checked in by vboxsync, 18 years ago

Updated the host DVD code on Linux to use hal for device detection

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 304.0 KB
Line 
1<?xml version="1.0" ?>
2
3<!--
4 * Master declaration for VirtualBox's Main API, represented
5 * by COM/XPCOM and web service interfaces.
6 *
7 * From this document, the build system generates several files
8 * via XSLT that are then used during the build process:
9 *
10 * - out/<platform>/bin/sdk/idl/VirtualBox[_XPCOM].idl, a
11 * COM/XPCOM interface definition file (IDL)
12 *
13 * - out/<platform>/bin/sdk/include/VirtualBox[_XPCOM].h, which
14 * gets included from the include/VBox/com/VirtualBox.h
15 * wrapper, to allow clients to access the COM/XPCOM API;
16 *
17 * - also, another intermediate file that is then used to
18 * produce the official Doxygen documentation of the API.
19 *
20 * - a lot of files for the web service by XSLT stylesheets
21 * in the ../webservice directory; the targets include a
22 * WSDL file that describes the web service and C++ method
23 * mappers that map SOAP messages to COM calls.
24 *
25 * Copyright (C) 2006-2007 InnoTek Systemberatung GmbH
26 *
27 * This file is part of VirtualBox Open Source Edition (OSE), as
28 * available from http://www.virtualbox.org. This file is free software;
29 * you can redistribute it and/or modify it under the terms of the GNU
30 * General Public License as published by the Free Software Foundation,
31 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
32 * distribution. VirtualBox OSE is distributed in the hope that it will
33 * be useful, but WITHOUT ANY WARRANTY of any kind.
34 *
35 * If you received this file as part of a commercial VirtualBox
36 * distribution, then only the terms of your commercial VirtualBox
37 * license agreement apply instead of the previous paragraph.
38-->
39
40<idl>
41
42<if target="midl">
43 <cpp line="enum {"/>
44 <cpp line=" kTypeLibraryMajorVersion = 1,"/>
45 <cpp line=" kTypeLibraryMinorVersion = 0"/>
46 <cpp line="};"/>
47</if>
48
49<if target="xpidl">
50 <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
51 <cpp>
52// currenty, nsISupportsImpl.h lacks the below-like macros
53#ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
54#define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
55 NS_IMPL_THREADSAFE_ADDREF(_class) \
56 NS_IMPL_THREADSAFE_RELEASE(_class) \
57 NS_IMPL_QUERY_INTERFACE1_CI(_class, _interface) \
58 NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
59#endif
60#ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
61#define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
62 NS_IMPL_THREADSAFE_ADDREF(_class) \
63 NS_IMPL_THREADSAFE_RELEASE(_class) \
64 NS_IMPL_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
65 NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
66#endif
67 </cpp>
68</if>
69
70<module
71 name="VirtualBox"
72 uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
73 version="1.3"
74 desc="InnoTek VirtualBox Type Library"
75 supportsErrorInfo="yes"
76>
77
78 <!--
79 // all common enums
80 /////////////////////////////////////////////////////////////////////////
81 -->
82
83 <enum
84 name="TriStateBool"
85 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
86 >
87 <desc>
88 This represents a boolean variable having a third state, default.
89 </desc>
90
91 <const name="False" value="0"/>
92 <const name="True" value="1"/>
93 <const name="Default" value="2"/>
94 </enum>
95
96 <enum
97 name="MachineState"
98 uuid="b8bb15f7-4fa2-4e84-87a8-b4677dd87deb"
99 >
100 <desc>
101 Virtual machine execution state. This enumeration represents possible
102 values of the <link to="IMachine::state"/> attribute.
103 </desc>
104
105 <const name="InvalidMachineState" value="0"/>
106 <const name="PoweredOff" value="1">
107 <desc>
108 The machine is not running.
109 </desc>
110 </const>
111 <const name="Saved" value="2">
112 <desc>
113 The machine is not currently running, but the execution state
114 of the machine has been saved to an external file when it
115 was running.
116 <note>
117 No any machine settings can be altered when the machine
118 is in this state.
119 </note>
120 </desc>
121 </const>
122 <const name="Aborted" value="3">
123 <desc>
124 A process that run the machine has abnormally terminated.
125 Other than that, this value is equivalent to #PoweredOff.
126 </desc>
127 </const>
128 <const name="Running" value="4">
129 <desc>
130 The machine is currently being executed.
131 <note>
132 This value can be used in comparison expressions:
133 all state values below it describe a virtual machine that is
134 not currently being executed (i.e., it is completely out of
135 action).
136 </note>
137 </desc>
138 </const>
139 <const name="Paused" value="5">
140 <desc>
141 The execution of the machine has been paused.
142 <note>
143 This value can be used in comparison expressions:
144 all state values above it represent unstable states of the
145 virtual machine. No any settings can be altered when the
146 VM is in one of the unstable sates.
147 </note>
148 </desc>
149 </const>
150 <const name="Starting" value="6">
151 <desc>
152 The machine is being started after
153 <link to="IConsole::powerUp">powering it on</link> from a
154 zero execution state.
155 </desc>
156 </const>
157 <const name="Stopping" value="7">
158 <desc>
159 The machine is being normally stopped
160 (after explicitly <link to="IConsole::powerDown">powering it off</link>,
161 or after the guest OS has initiated a shutdown sequence).
162 </desc>
163 </const>
164 <const name="Saving" value="8">
165 <desc>
166 The machine is saving its execution state to a file as a
167 result of calling <link to="IConsole::saveState"/> or an online
168 snapshot of the machine is being taken using
169 <link to="IConsole::takeSnapshot"/>.
170 </desc>
171 </const>
172 <const name="Restoring" value="9">
173 <desc>
174 The execution state of the machine is being restored from a file
175 after <link to="IConsole::powerUp">powering it on</link> from
176 a saved execution state.
177 </desc>
178 </const>
179 <const name="Discarding" value="10">
180 <desc>
181 A snapshot of the machine is being discarded after calling
182 <link to="IConsole::discardSnapshot"/> or its current state is
183 being discarded after <link to="IConsole::discardCurrentState"/>.
184 </desc>
185 </const>
186 </enum>
187
188 <enum
189 name="SessionState"
190 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
191 >
192 <desc>
193 Session state. This enumeration represents possible values of
194 <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
195 attributes. Idividual value descriptions contain the appropriate
196 meaning for every case.
197 </desc>
198
199 <const name="InvalidSessionState" value="0"/>
200 <const name="SessionClosed" value="1">
201 <desc>
202 The machine has no open sessions (<link to="IMachine::sessionState"/>);
203 the session is closed (<link to="ISession::state"/>)
204 </desc>
205 </const>
206 <const name="SessionOpen" value="2">
207 <desc>
208 The machine has an open direct session (<link to="IMachine::sessionState"/>);
209 the session is open (<link to="ISession::state"/>)
210 </desc>
211 </const>
212 <const name="SessionSpawning" value="3">
213 <desc>
214 A new (direct) session is being opened for the machine
215 as a result of <link to="IVirtualBox::openRemoteSession()"/>
216 call (<link to="IMachine::sessionState"/>);
217 the session is currently being opened
218 as a result of <link to="IVirtualBox::openRemoteSession()"/>
219 call (<link to="ISession::state"/>)
220 </desc>
221 </const>
222 <const name="SessionClosing" value="4">
223 <desc>
224 The direct session is being closed (<link to="IMachine::sessionState"/>);
225 the session is being closed (<link to="ISession::state"/>)
226 </desc>
227 </const>
228 </enum>
229
230 <enum
231 name="SessionType"
232 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
233 >
234 <desc>
235 Session type. This enumeration represents possible values of the
236 <link to="ISession::type"/> attribute.
237 </desc>
238
239 <const name="InvalidSessionType" value="0"/>
240 <const name="DirectSession" value="1">
241 <desc>
242 Direct session
243 (opened by <link to="IVirtualBox::openSession()"/>)
244 </desc>
245 </const>
246 <const name="RemoteSession" value="2">
247 <desc>
248 Remote session
249 (opened by <link to="IVirtualBox::openRemoteSession()"/>)
250 </desc>
251 </const>
252 <const name="ExistingSession" value="3">
253 <desc>
254 Existing session
255 (opened by <link to="IVirtualBox::openExistingSession()"/>)
256 </desc>
257 </const>
258 </enum>
259
260 <enum
261 name="DeviceType"
262 uuid="8B7F8ADE-E8F7-42a4-9661-9F5092C4DB4C"
263 >
264 <desc>
265 Device type.
266 </desc>
267 <const name="NoDevice" value="0">
268 <desc>
269 No Device. This value is not used by
270 <link to="IConsole::getDeviceActivity"/>
271 </desc>
272 </const>
273 <const name="FloppyDevice" value="1">
274 <desc>Floppy device.</desc>
275 </const>
276 <const name="DVDDevice" value="2">
277 <desc>CD/DVD-ROM device.</desc>
278 </const>
279 <const name="HardDiskDevice" value="3">
280 <desc>Hard disk device.</desc>
281 </const>
282 <const name="NetworkDevice" value="4">
283 <desc>Network device.</desc>
284 </const>
285 <const name="USBDevice" value="5">
286 <desc>USB device.</desc>
287 </const>
288 </enum>
289
290 <enum
291 name="DeviceActivity"
292 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
293 >
294 <const name="InvalidActivity" value="0"/>
295 <const name="DeviceIdle" value="1"/>
296 <const name="DeviceReading" value="2"/>
297 <const name="DeviceWriting" value="3"/>
298 </enum>
299
300 <enum
301 name="ResourceUsage"
302 uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809"
303 >
304 <desc>
305 Usage type constants for
306 <link to="IVirtualBox::getDVDImageUsage"/> and
307 <link to="IVirtualBox::getFloppyImageUsage"/>.
308 </desc>
309 <const name="InvalidUsage" value="0"/>
310 <const name="PermanentUsage" value="1">
311 <desc>
312 Scopes the VMs that use the resource permanently
313 (the information about this usage is stored in the VM
314 settings file).
315 </desc>
316 </const>
317 <const name="TemporaryUsage" value="2">
318 <desc>
319 Scopes the VMs that are temporarily using the resource
320 (the information about the usage is not yet saved in the VM
321 settings file). Temporary usage can take place only in the
322 context of an open session.
323 </desc>
324 </const>
325 <const name="AllUsage" value="3">
326 <desc>
327 Combines PermanentUsage and TemporaryUsage.
328 </desc>
329 </const>
330 </enum>
331
332 <enum
333 name="DiskControllerType"
334 uuid="1115b810-2ee7-4ebd-8b39-92e98c9a2b48"
335 >
336 <const name="InvalidController" value="0"/>
337 <const name="IDE0Controller" value="1"/>
338 <const name="IDE1Controller" value="2"/>
339 </enum>
340
341 <enum
342 name="ClipboardMode"
343 uuid="33364716-4008-4701-8f14-be0fa3d62950"
344 >
345 <const name="ClipDisabled" value="0"/>
346 <const name="ClipHostToGuest" value="1"/>
347 <const name="ClipGuestToHost" value="2"/>
348 <const name="ClipBidirectional" value="3"/>
349 </enum>
350
351 <!--
352 // IVirtualBoxErrorInfo
353 /////////////////////////////////////////////////////////////////////////
354 -->
355
356 <interface
357 name="IVirtualBoxErrorInfo" extends="$errorinfo"
358 uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
359 supportsErrorInfo="no"
360 wsmap="suppress"
361 >
362 <desc>
363 The IVirtualBoxErrorInfo interface represents extended error information
364 that can be set by components after unsuccessful method invocation and
365 returned to the client in addition to the result code.
366
367 In MS COM, this interface extends the IErrorInfo interface,
368 in XPCOM, it extends the nsIException interface. In both cases,
369 it provides a set of common attributes to retrieve error
370 information.
371
372 Sometimes invocation of some component's method may involve
373 methods of other components that may also fail (independently of
374 this method's failure), or a series of non-fatal errors may
375 precede a fatal error that causes method failure. In cases like
376 that, it may be desirable to preserve information about all errors
377 happened during method invocation and deliver it to the
378 caller. The <link to="#next"/> attribute is intended specifically
379 for this purpose and allows to represent a chain of errors through
380 a single IVirtualBoxErrorInfo instance set after method
381 invocation. Note that errors are stored to a chain in the reverse
382 order, i.e. the initial error object you query right after method
383 invocation is the last error set by the callee, the object it
384 points to in the @a next attribute is the previous error and so
385 on, up to the first error (which is the last in the chain).
386 </desc>
387
388 <attribute name="resultCode" type="result" readonly="yes">
389 <desc>
390 Result code of the error.
391 Usually, it will be the same as the result code returned
392 by the method that provided this error information, but not
393 always. For example, on Win32, CoCreateInstance() will most
394 likely return E_NOINTERFACE upon unsuccessful component
395 instantiation attempt, but not the value the component factory
396 returned.
397 <note>
398 In MS COM, there is no equivalent.
399 In XPCOM, it is the same as nsIException::result.
400 </note>
401 </desc>
402 </attribute>
403
404 <attribute name="interfaceID" type="uuid" readonly="yes">
405 <desc>
406 UUID of the interface that defined the error.
407 <note>
408 In MS COM, it is the same as IErrorInfo::GetGUID.
409 In XPCOM, there is no equivalent.
410 </note>
411 </desc>
412 </attribute>
413
414 <attribute name="component" type="wstring" readonly="yes">
415 <desc>
416 Name of the component that generated the error.
417 <note>
418 In MS COM, it is the same as IErrorInfo::GetSource.
419 In XPCOM, there is no equivalent.
420 </note>
421 </desc>
422 </attribute>
423
424 <attribute name="text" type="wstring" readonly="yes">
425 <desc>
426 Text description of the error.
427 <note>
428 In MS COM, it is the same as IErrorInfo::GetDescription.
429 In XPCOM, it is the same as nsIException::message.
430 </note>
431 </desc>
432 </attribute>
433
434 <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
435 <desc>
436 Next error object if there is any, or @c null otherwise.
437 <note>
438 In MS COM, there is no equivalent.
439 In XPCOM, it is the same as nsIException::inner.
440 </note>
441 </desc>
442 </attribute>
443
444 </interface>
445
446
447 <!--
448 // IVirtualBox
449 /////////////////////////////////////////////////////////////////////////
450 -->
451
452 <interface
453 name="IVirtualBoxCallback" extends="$unknown"
454 uuid="ee95ffc2-b6c6-4ce8-9e9e-ceadbb5019fe"
455 wsmap="suppress"
456 >
457 <method name="onMachineStateChange">
458 <desc>
459 The execution state of the given machine has changed.
460 <see>IMachine::state</see>
461 </desc>
462 <param name="machineId" type="uuid" dir="in">
463 <desc>ID of the machine this event relates to.</desc>
464 </param>
465 <param name="state" type="MachineState" dir="in">
466 <desc>New execution state.</desc>
467 </param>
468 </method>
469
470 <method name="onMachineDataChange">
471 <desc>
472 Any of the settings of the given machine has changed.
473 </desc>
474 <param name="machineId" type="uuid" dir="in">
475 <desc>ID of the machine this event relates to.</desc>
476 </param>
477 </method>
478
479 <method name="onExtraDataCanChange">
480 <desc>
481 Notification when someone tries to change extra data for
482 either the given machine or (if null) global extra data.
483 This gives the chance to veto against changes.
484 </desc>
485 <param name="machineId" type="uuid" dir="in">
486 <desc>
487 ID of the machine this event relates to
488 (null ID for global extra data change requests).
489 </desc>
490 </param>
491 <param name="key" type="wstring" dir="in">
492 <desc>
493 Extra data key for the attempted write.
494 </desc>
495 </param>
496 <param name="value" type="wstring" dir="in">
497 <desc>
498 Extra data value for the given key.
499 </desc>
500 </param>
501 <param name="error" type="wstring" dir="out">
502 <desc>
503 Optional error message describing the reason of the
504 veto (ignored if this notification returns @c true).
505 </desc>
506 </param>
507 <param name="allowChange" type="boolean" dir="return">
508 <desc>
509 Flag to indicate whether the callee agrees (@ true)
510 or vetoes against the change (@ false).
511 </desc>
512 </param>
513 </method>
514
515 <method name="onExtraDataChange">
516 <desc>
517 Notification when machine specific or global extra data
518 has changed.
519 </desc>
520 <param name="machineId" type="uuid" dir="in">
521 <desc>
522 ID of the machine this event relates to.
523 Null for global extra data changes.
524 </desc>
525 </param>
526 <param name="key" type="wstring" dir="in">
527 <desc>
528 Extra data key that has changed.
529 </desc>
530 </param>
531 <param name="value" type="wstring" dir="in">
532 <desc>
533 Extra data value for the given key.
534 </desc>
535 </param>
536 </method>
537
538 <method name="onMediaRegistered">
539 <desc>
540 The given media was registered or unregistered
541 within this VirtualBox installation.
542
543 The @a mediaType parameter describes what type of
544 media the specified @a mediaId refers to. Possible
545 values are:
546
547 - <link to="HardDiskDevice"/>: the media is a hard disk
548 that, if registered, can be obtained using the
549 <link to="IVirtualBox::getHardDisk"/> call.
550 - <link to="DVDDevice"/>: the media is a CD/DVD image
551 that, if registered, can be obtained using the
552 <link to="IVirtualBox::getDVDImage"/> call.
553 - <link to="FloppyDevice"/>: the media is a Floppy image
554 that, if registered, can be obtained using the
555 <link to="IVirtualBox::getFloppyImage"/> call.
556
557 Note that if this is a deregistration notification,
558 there is no way to access the object representing the
559 unregistered media. It is supposed that the
560 application will do required cleanup based on the @a
561 mediaId value.
562 </desc>
563 <param name="mediaId" type="uuid" dir="in">
564 <desc>ID of the media this event relates to.</desc>
565 </param>
566 <param name="mediaType" type="DeviceType" dir="in">
567 <desc>Type of the media this event relates to.</desc>
568 </param>
569 <param name="registered" type="boolean" dir="in">
570 <desc>
571 If true, the media was registered, otherwise it was
572 unregistered.
573 </desc>
574 </param>
575 </method>
576
577 <method name="onMachineRegistered">
578 <desc>
579 The given machine was registered or unregistered
580 within this VirtualBox installation.
581 </desc>
582 <param name="machineId" type="uuid" dir="in">
583 <desc>ID of the machine this event relates to.</desc>
584 </param>
585 <param name="registered" type="boolean" dir="in">
586 <desc>
587 If true, the machine was registered, otherwise it was
588 unregistered.
589 </desc>
590 </param>
591 </method>
592
593 <method name="onSessionStateChange">
594 <desc>
595 The state of the session for the given machine was changed.
596 <see>IMachine::sessionState</see>
597 </desc>
598 <param name="machineId" type="uuid" dir="in">
599 <desc>ID of the machine this event relates to.</desc>
600 </param>
601 <param name="state" type="SessionState" dir="in">
602 <desc>New session state.</desc>
603 </param>
604 </method>
605
606 <method name="onSnapshotTaken">
607 <desc>
608 A new snapshot of the machine has been taken.
609 <see>ISnapshot</see>
610 </desc>
611 <param name="machineId" type="uuid" dir="in">
612 <desc>ID of the machine this event relates to.</desc>
613 </param>
614 <param name="snapshotId" type="uuid" dir="in">
615 <desc>ID of the new snapshot.</desc>
616 </param>
617 </method>
618
619 <method name="onSnapshotDiscarded">
620 <desc>
621 Snapshot of the given machine has been discarded.
622
623 <note>
624 This notification is delivered <b>after</b> the snapshot
625 object has been uninitialized on the server (so that any
626 attempt to call its methods will return an error).
627 </note>
628
629 <see>ISnapshot</see>
630 </desc>
631 <param name="machineId" type="uuid" dir="in">
632 <desc>ID of the machine this event relates to.</desc>
633 </param>
634 <param name="snapshotId" type="uuid" dir="in">
635 <desc>
636 ID of the discarded snapshot. <tt>null</tt> means the
637 current machine state has been discarded (restored from
638 the current snapshot).
639 </desc>
640 </param>
641 </method>
642
643 <method name="onSnapshotChange">
644 <desc>
645 Snapshot properties (name and/or description) have been changed.
646 <see>ISnapshot</see>
647 </desc>
648 <param name="machineId" type="uuid" dir="in">
649 <desc>ID of the machine this event relates to.</desc>
650 </param>
651 <param name="snapshotId" type="uuid" dir="in">
652 <desc>ID of the changed snapshot.</desc>
653 </param>
654 </method>
655
656 </interface>
657
658 <interface
659 name="IVirtualBox" extends="$dispatched"
660 uuid="d1a2295c-d257-4a4c-a9a6-843d87db6f45"
661 wsmap="global"
662 >
663 <desc> The main interface exposed by the product that provides virtual
664 machine management.
665
666 An instance of IVirtualBox is required for the product to do anything
667 useful. Even though the interface does not expose this, internally, IVirtualBox
668 is implemented as a singleton and actually lives in the process of the
669 VirtualBox server (VBoxSVC.exe). This makes sure that IVirtualBox can
670 track the state of all virtual machines on a particular host, regardless
671 of which frontend started them.
672
673 To enumerate all the virtual machines on the host, use the <link to="IVirtualBox::machines" />
674 attribute.</desc>
675
676 <attribute name="version" type="wstring" readonly="yes">
677 <desc>
678 A string representing the version number of the product. The
679 format is 3 integer numbers divided by dots (e.g. 1.0.1). The
680 last number represents the build number and will frequently change.
681 </desc>
682 </attribute>
683
684 <attribute name="homeFolder" type="wstring" readonly="yes">
685 <desc>
686 Full path to the directory where the global settings file,
687 <tt>VirtualBox.xml</tt>, is stored.
688
689 In this version of VirtualBox, the value of this property is
690 always <tt>&lt;user_dir&gt;/.VirtualBox</tt> (where
691 <tt>&lt;user_dir&gt;</tt> is the path to the user directory,
692 as determined by the host OS), and cannot be changed.
693
694 This path is also used as the base to resolve relative paths in
695 places where relative paths are allowed (unless otherwise
696 expressly indicated).
697 </desc>
698 </attribute>
699
700 <attribute name="host" type="IHost" readonly="yes">
701 <desc>Associated host object.</desc>
702 </attribute>
703
704 <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
705 <desc>Associated system information object.</desc>
706 </attribute>
707
708 <attribute name="machines" type="IMachineCollection" readonly="yes"/>
709
710 <attribute name="hardDisks" type="IHardDiskCollection" readonly="yes">
711 <desc>
712 A collection of hard disk objects registered within this
713 VirtualBox instance.
714 This collection contains only "top-level" (basic or independent)
715 hard disk images, but not differencing ones. All differencing
716 images of the given top-level image (i.e. all its children) can
717 be enumerated using <link to="IHardDisk::children"/>.
718 </desc>
719 </attribute>
720
721 <attribute name="DVDImages" type="IDVDImageCollection" readonly="yes"/>
722
723 <attribute name="FloppyImages" type="IFloppyImageCollection" readonly="yes"/>
724
725 <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
726
727 <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
728
729 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
730 <desc>
731 Collection of globally shared folders. These folders
732 are shared automatically upon VirtualBox server startup and
733 available only to every virtual machine.
734
735 New folders to share are added to the collection using
736 <link to="#createSharedFolder"/>. An existing shared folder can
737 be removed using <link to="#removeSharedFolder"/>.
738 </desc>
739 </attribute>
740
741 <method name="createMachine">
742 <desc>
743 Creates a new virtual machine.
744
745 Every machine has a <i>settings file</i> that is used to store
746 the machine configuration. This file is stored in the directory
747 called <i>machine settings subfolder</i>. Both the subfolder
748 and the settings file have the same name that corresponds to the
749 name of the virtual machine. You can specify where
750 to create the machine settings subfolder using the @a
751 baseFolder argument. The base folder can be absolute (full path)
752 or relative to the <link to="IVirtualBox::homeFolder">
753 VirtualBox home directory</link>.
754
755 If a null or empty string is given as the base folder (which is
756 recommended), the <link to="ISystemProperties::defaultMachineFolder">
757 default machine settings folder</link> will be used as the base
758 folder to create the machine settings subfolder and file. In
759 any case, the full path to the settings file will look like:
760 <pre>
761 &lt;base_folder&gt;/&lt;machine_name&gt;/&lt;machine_name&gt;.xml</pre>
762
763 Note that the configuration of the newly created machine is not
764 saved to disk (and therefore no settings subfolder and file are
765 created) until <link to="IMachine::saveSettings()"/> is called.
766
767 You should also specify a valid name for the machine.
768 See the <link to="IMachine::name"/> property
769 description for more details about the machine name.
770
771 The created machine remains
772 unregistered until you call <link to="#registerMachine()"/>.
773
774 <note>
775 There is no way to change the name of the settings file or
776 subfolder of the created machine directly.
777 </note>
778 </desc>
779 <param name="baseFolder" type="wstring" dir="in">
780 <desc>
781 Name of the folder where to create the machine settings
782 subfolder containing the settings file.
783 </desc>
784 </param>
785 <param name="name" type="wstring" dir="in">
786 <desc>Machine name.</desc>
787 </param>
788 <param name="machine" type="IMachine" dir="return">
789 <desc>Created machine object.</desc>
790 </param>
791 </method>
792
793 <method name="createLegacyMachine">
794 <desc>
795 Creates a new virtual machine in "legacy" mode, using the
796 specified settings file to store machine settings.
797
798 As opposed to machines created by <link to="#createMachine()"/>,
799 the settings file of the machine created in "legacy" mode
800 is not automatically renamed when the machine name is
801 changed -- it will always remain the same as specified in this
802 method call.
803
804 The specified settings file name can be absolute
805 (full path) or relative to the <link to="IVirtualBox::homeFolder">
806 VirtualBox home directory</link>. If the file name doesn't
807 contain an extension, the default extension (.xml) will be
808 appended.
809
810 Note that the configuration of the newly created machine is not
811 saved to disk (and therefore no settings file is created)
812 until <link to="IMachine::saveSettings()"/> is called. If the
813 specified settings file already exists,
814 <link to="IMachine::saveSettings()"/> will return an error.
815
816 You should also specify a valid name for the machine.
817 See the <link to="IMachine::name"/> property
818 description for more details about the machine name.
819
820 The created machine remains
821 unregistered until you call <link to="#registerMachine()"/>.
822
823 @deprecated This method may be removed later. It is better
824 to use <link to="IVirtualBox::createMachine()"/>.
825
826 <note>
827 There is no way to change the name of the settings file
828 of the created machine.
829 </note>
830 </desc>
831 <param name="settingsFile" type="wstring" dir="in">
832 <desc>
833 Name of the file where to store machine settings.
834 </desc>
835 </param>
836 <param name="name" type="wstring" dir="in">
837 <desc>Machine name.</desc>
838 </param>
839 <param name="machine" type="IMachine" dir="return">
840 <desc>Created machine object.</desc>
841 </param>
842 </method>
843
844 <method name="openMachine">
845 <desc>
846 Opens a virtual machine from the existing settings file.
847 The opened machine remains unregistered until you call
848 <link to="#registerMachine()"/>.
849
850 The specified settings file name can be absolute
851 (full path) or relative to the <link to="IVirtualBox::homeFolder">
852 VirtualBox home directory</link>. This file must exist
853 and must be a valid machine settings file whose contents
854 will be used to construct the machine object.
855
856 @deprecated Will be removed soon.
857 </desc>
858 <param name="settingsFile" type="wstring" dir="in">
859 <desc>
860 Name of the machine settings file.
861 </desc>
862 </param>
863 <param name="machine" type="IMachine" dir="return">
864 <desc>Opened machine object.</desc>
865 </param>
866 <note>
867 <link to="IMachine::settingsModified"/> will return
868 false for the created machine, until any of machine settigs
869 are changed.
870 </note>
871 </method>
872
873 <method name="registerMachine">
874 <desc>
875
876 Registers the machine previously created using <link
877 to="#createMachine()"/> or opened using <link to="#openMachine()"/>
878 within this VirtualBox installation. After successful method
879 invocation, the <link
880 to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
881 to all registered callbacks.
882
883 <note>This method implicitly calls <link
884 to="IMachine::saveSettings"/> to save all current machine
885 settings before registering it.</note>
886
887 </desc>
888 <param name="machine" type="IMachine" dir="in"/>
889 </method>
890
891 <method name="getMachine">
892 <param name="id" type="uuid" dir="in"/>
893 <param name="machine" type="IMachine" dir="return"/>
894 </method>
895
896 <method name="findMachine">
897 <param name="name" type="wstring" dir="in"/>
898 <param name="machine" type="IMachine" dir="return"/>
899 </method>
900
901 <method name="unregisterMachine">
902 <desc>
903
904 Unregisters the machine previously registered using <link
905 to="#registerMachine"/>. After successful method invocation, the
906 <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is
907 sent to all registered callbacks.
908
909 <note> The specified machine must not be in the Saved state,
910 have an open (or a spawning) direct session associated with it,
911 have snapshots or have hard disks attached.</note>
912
913 <note>This method implicitly calls <link
914 to="IMachine::saveSettings"/> to save all current machine
915 settings before unregistering it.</note>
916
917 <note>If the given machine is inaccessible (see
918 <link to="IMachine::accessible"/>), it will be unregistered
919 and fully uninitialized right afterwards. As a result, the
920 returned machine object will be unusable and an attempt to call
921 <b>any</b> method will return the "Object not ready" error.
922 </note>
923
924 </desc>
925 <param name="id" type="uuid" dir="in">
926 <desc>UUID of the machine to unregister.</desc>
927 </param>
928 <param name="machine" type="IMachine" dir="return">
929 <desc>Unregistered machine object.</desc>
930 </param>
931 </method>
932
933 <method name="createHardDisk">
934 <desc>
935
936 Creates a new unregistered hard disk that will use the given
937 storage type.
938
939 Most properties of the created hard disk object are
940 uninitialized. Valid values must be assigned to them (and
941 probalby some actions performed) to make the actual usage of
942 this hard disk (<link to="#registerHardDisk()">register</link>,
943 attach to a virtual machine, etc.). See the description of <link
944 to="IHardDisk"/> and descriptions of storage type specific
945 interfaces for more information.
946
947 <note>For hard disks using the <link
948 to="HardDiskStorageType::VirtualDiskImage">VirtualDiskImage</link>
949 storage type, an image file is not actually created until you
950 call <link to="IVirtualDiskImage::createDynamicImage()"/> or
951 <link to="IVirtualDiskImage::createFixedImage()"/>.</note>
952
953 </desc>
954
955 <param name="storageType" type="HardDiskStorageType" dir="in">
956 <desc>Storage type of the hard disk image to create.</desc>
957 </param>
958 <param name="hardDisk" type="IHardDisk" dir="return">
959 <desc>Created hard disk object of the given storage type.</desc>
960 </param>
961
962 </method>
963
964 <method name="openHardDisk">
965 <desc>
966
967 Opens a hard disk from an existing location.
968
969 This method tries to guess the
970 <link to="HardDiskStorageType">hard disk storage
971 type</link>
972 from the format of the location string and from the
973 contens of the resource the location points
974 to. Currently, a <i>file path</i> is the only supported
975 format for the location string which must point to
976 either a VDI file or to a VMDK file. On success,
977 an IHardDisk object will be returned that also
978 implements the corresponding interface (IVirtualDiskImage
979 or IVMDKImage, respectively). The <link
980 to="IHardDisk::storageType"/> property may also be
981 used to determine the storage type of the returned
982 object (instead of trying to query one of these interfaces).
983
984 <note>The specified file path can be absolute (full path) or
985 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
986 home directory</link>. If only a file name without any path is
987 given, the <link to="ISystemProperties::defaultVDIFolder">
988 default VDI folder</link> will be used as a path to the image
989 file.</note>
990
991 The opened hard disk remains unregistered
992 until <link to="#registerHardDisk()"/> is called.
993
994 </desc>
995
996 <param name="location" type="wstring" dir="in">
997 <desc>
998 Location of the resource that contains a valid hard disk.
999 </desc>
1000 </param>
1001 <param name="hardDisk" type="IHardDisk" dir="return">
1002 <desc>Opened hard disk object.</desc>
1003 </param>
1004 </method>
1005
1006 <method name="openVirtualDiskImage">
1007 <desc>
1008
1009 Opens a hard disk from an existing Virtual Disk Image file.
1010 The opened hard disk remains unregistered
1011 until <link to="#registerHardDisk()"/> is called.
1012
1013 @deprecated Use <link to="IVirtualBox::openHardDisk()"/> instead.
1014
1015 <note>Opening differencing images is not supported.</note>
1016
1017 <note>The specified file path can be absolute (full path) or
1018 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1019 home directory</link>. If only a file name without any path is
1020 given, the <link to="ISystemProperties::defaultVDIFolder">
1021 default VDI folder</link> will be used as a path to the image
1022 file.</note>
1023
1024 </desc>
1025
1026 <param name="filePath" type="wstring" dir="in">
1027 <desc>
1028 Name of the file that contains a valid Virtual Disk Image.
1029 </desc>
1030 </param>
1031 <param name="image" type="IVirtualDiskImage" dir="return">
1032 <desc>Opened hard disk object.</desc>
1033 </param>
1034 </method>
1035
1036 <method name="registerHardDisk">
1037 <desc>
1038
1039 Registers the given hard disk within this VirtualBox
1040 installation. The hard disk must not be registered, must be
1041 <link to="IHardDisk::accessible"/> and must not be a
1042 differencing hard disk, otherwise the registration will fail.
1043
1044 </desc>
1045 <param name="hardDisk" type="IHardDisk" dir="in">
1046 <desc>Hard disk object to register.</desc>
1047 </param>
1048 </method>
1049
1050 <method name="getHardDisk" const="yes">
1051 <desc>
1052 Returns the registered hard disk with the given UUID.
1053 </desc>
1054 <param name="id" type="uuid" dir="in">
1055 <desc>UUID of the hard disk to look for.</desc>
1056 </param>
1057 <param name="hardDisk" type="IHardDisk" dir="return">
1058 <desc>Found hard disk object.</desc>
1059 </param>
1060 </method>
1061
1062 <method name="findHardDisk">
1063 <desc>
1064
1065 Returns a registered hard disk that uses the given location to
1066 store data. The search is done by comparing the
1067 value of the @a location argument to the
1068 <link to="IHardDisk::location"/> attribute of each registered
1069 hard disk.
1070
1071 For locations repesented by file paths (such as VDI and VMDK
1072 images), the specified location can be either an absolute file
1073 path or a path relative to
1074 the <link to="IVirtualBox::homeFolder"> VirtualBox home
1075 directory</link>. If only a file name without any path is
1076 given, the <link to="ISystemProperties::defaultVDIFolder">
1077 default VDI folder</link> will be used as a path to construct
1078 the absolute image file name to search for. Note that on host
1079 systems with case sensitive filesystems, a case sensitive
1080 comparison is performed, otherwise the case of symbols in the
1081 file path is ignored.
1082
1083 </desc>
1084 <param name="location" type="wstring" dir="in">
1085 <desc>Hard disk location specification to search for.</desc>
1086 </param>
1087 <param name="hardDisk" type="IHardDisk" dir="return">
1088 <desc>Found hard disk object.</desc>
1089 </param>
1090 </method>
1091
1092 <method name="findVirtualDiskImage">
1093 <desc>
1094
1095 Returns a registered hard disk that uses the given image file.
1096
1097 @deprecated Use <link to="IVirtualBox::findHardDisk()"/> instead.
1098
1099 <note>The specified file path can be absolute (full path) or
1100 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
1101 home directory</link>. If only a file name without any path is
1102 given, the <link to="ISystemProperties::defaultVDIFolder">
1103 default VDI folder</link> will be used as a path to the image
1104 file.</note>
1105
1106 <note>On host systems with case sensitive filesystems, a case
1107 sensitive comparison is performed, otherwise the case of symbols
1108 in the file path is ignored.</note>
1109
1110 </desc>
1111 <param name="filePath" type="wstring" dir="in">
1112 <desc>Virtual Disk Image file path to look for.</desc>
1113 </param>
1114 <param name="image" type="IVirtualDiskImage" dir="return">
1115 <desc>Found hard disk object.</desc>
1116 </param>
1117 </method>
1118
1119 <method name="unregisterHardDisk">
1120 <desc>
1121 Unregisters a hard disk previously registered using
1122 <link to="#registerHardDisk()"/>.
1123 <note>
1124 The specified hard disk must not be attached to any of
1125 the existing virtual machines and must not have children
1126 (differencing) hard disks.
1127 </note>
1128 </desc>
1129 <param name="id" type="uuid" dir="in">
1130 <desc>UUID of the hard disk to unregister.</desc>
1131 </param>
1132 <param name="hardDisk" type="IHardDisk" dir="return">
1133 <desc>Unregistered hard disk object.</desc>
1134 </param>
1135 </method>
1136
1137 <method name="openDVDImage">
1138 <desc>
1139 Opens the CD/DVD image contained in the specified file of
1140 the supported format and assigns it the given UUID. The opened
1141 image remains unregistered
1142 until <link to="#registerDVDImage()"/> is called.
1143 </desc>
1144 <param name="filePath" type="wstring" dir="in">
1145 <desc>
1146 Full name of the file that contains a valid
1147 CD/DVD image. Currently, only ISO images are supported.
1148 <note>
1149 The specified file name can be absolute or relative
1150 to the <link to="IVirtualBox::homeFolder">
1151 VirtualBox home directory</link>.
1152 </note>
1153 </desc>
1154 </param>
1155 <param name="id" type="uuid" dir="in">
1156 <desc>
1157 UUID to assign to the given image file within this
1158 VirtualBox installation. If an empty (null) UUID is
1159 specified, the system will randomly generate an UUID.
1160 </desc>
1161 </param>
1162 <param name="image" type="IDVDImage" dir="return">
1163 <desc>Opened CD/DVD image object.</desc>
1164 </param>
1165 </method>
1166
1167 <method name="registerDVDImage">
1168 <desc>
1169 Registers a CD/DVD image within this VirtualBox
1170 installation. The image must not be registered and must not
1171 be associated with the same image file as any of the already
1172 registered images, otherwise the registration will fail.
1173 </desc>
1174 <param name="image" type="IDVDImage" dir="in">
1175 <desc>CD/DVD image object to register.</desc>
1176 </param>
1177 </method>
1178
1179 <method name="getDVDImage">
1180 <desc>
1181 Returns a registered CD/DVD image with the given UUID.
1182 </desc>
1183 <param name="id" type="uuid" dir="in">
1184 <desc>UUID of the image to look for.</desc>
1185 </param>
1186 <param name="image" type="IDVDImage" dir="return">
1187 <desc>Found CD/DVD image object.</desc>
1188 </param>
1189 </method>
1190
1191 <method name="findDVDImage">
1192 <desc>
1193 Returns a registered CD/DVD image with the given image file.
1194 <note>
1195 On host systems with case sensitive filesystems, a case
1196 sensitive comparison is performed, otherwise the case of
1197 symbols in the file path is ignored.
1198 </note>
1199 </desc>
1200 <param name="filePath" type="wstring" dir="in">
1201 <desc>CD/DVD image file path to look for.</desc>
1202 </param>
1203 <param name="image" type="IDVDImage" dir="return">
1204 <desc>Found CD/DVD image object.</desc>
1205 </param>
1206 </method>
1207
1208 <method name="getDVDImageUsage">
1209 <desc>
1210 Returns the list of of UUIDs of all virtual machines that use
1211 the given CD/DVD image.
1212 </desc>
1213 <param name="id" type="uuid" dir="in">
1214 <desc>UUID of the image to get the usage information for.</desc>
1215 </param>
1216 <param name="usage" type="ResourceUsage" dir="in">
1217 <desc>Type of the usage (permanent, temporary or all).</desc>
1218 </param>
1219 <param name="machineIDs" type="wstring" dir="return">
1220 <desc>
1221 List of UUIDs of all machines that use the given image
1222 in the way specified by the usage parameter.
1223 The list is returned as a string containing UUIDs separated
1224 by spaces. A null string means that the image is not used.
1225 <note>
1226 When the usage type is <link to="ResourceUsage::AllUsage"/>
1227 and the image is used by the VM both permanently
1228 and temporarily, the VM's UUID will be present only
1229 once in the list.
1230 </note>
1231 </desc>
1232 </param>
1233 </method>
1234
1235 <method name="unregisterDVDImage">
1236 <desc>
1237 Unregisters the CD/DVD image previously registered using
1238 <link to="#registerDVDImage()"/>.
1239 <note>
1240 The specified image must not be mounted to any of
1241 the existing virtual machines.
1242 </note>
1243 </desc>
1244 <param name="id" type="uuid" dir="in">
1245 <desc>UUID of the CD/DVD image to unregister.</desc>
1246 </param>
1247 <param name="image" type="IDVDImage" dir="return">
1248 <desc>Unregistered image object.</desc>
1249 </param>
1250 </method>
1251
1252 <method name="openFloppyImage">
1253 <desc>
1254 Opens a floppy image contained in the specified file of
1255 the supported format and assigns it the given UUID. The opened
1256 image remains unregistered
1257 until <link to="#registerFloppyImage()"/> is called.
1258 </desc>
1259 <param name="filePath" type="wstring" dir="in">
1260 <desc>
1261 Full name of the file that contains a valid
1262 floppy image.
1263 <note>
1264 The specified file name can be absolute or relative
1265 to the <link to="IVirtualBox::homeFolder">
1266 VirtualBox home directory</link>.
1267 </note>
1268 </desc>
1269 </param>
1270 <param name="id" type="uuid" dir="in">
1271 <desc>
1272 UUID to assign to the given image file within this
1273 VirtualBox installation. If an empty (null) UUID is
1274 specified, the system will randomly generate an UUID.
1275 </desc>
1276 </param>
1277 <param name="image" type="IFloppyImage" dir="return">
1278 <desc>Opened CD/DVD image object.</desc>
1279 </param>
1280 </method>
1281
1282 <method name="registerFloppyImage">
1283 <desc>
1284 Registers a floppy image within this VirtualBox
1285 installation. The image must not be registered and must not
1286 be associated with the same image file as any of the already
1287 registered images, otherwise the registration will fail.
1288 </desc>
1289 <param name="image" type="IFloppyImage" dir="in">
1290 <desc>Floppy image object to register.</desc>
1291 </param>
1292 </method>
1293
1294 <method name="getFloppyImage">
1295 <desc>
1296 Returns a registered floppy image with the given UUID.
1297 </desc>
1298 <param name="id" type="uuid" dir="in">
1299 <desc>UUID of the image to look for.</desc>
1300 </param>
1301 <param name="image" type="IFloppyImage" dir="return">
1302 <desc>Found floppy image object.</desc>
1303 </param>
1304 </method>
1305
1306 <method name="findFloppyImage">
1307 <desc>
1308 Returns a registered floppy image with the given image file.
1309 <note>
1310 On host systems with case sensitive filesystems, a case
1311 sensitive comparison is performed, otherwise the case of
1312 symbols in the file path is ignored.
1313 </note>
1314 </desc>
1315 <param name="filePath" type="wstring" dir="in">
1316 <desc>Floppy image file path to look for.</desc>
1317 </param>
1318 <param name="image" type="IFloppyImage" dir="return">
1319 <desc>Found floppy image object.</desc>
1320 </param>
1321 </method>
1322
1323 <method name="getFloppyImageUsage">
1324 <desc>
1325 Returns the list of of UUIDs of all virtual machines that use
1326 the given floppy image.
1327 </desc>
1328 <param name="id" type="uuid" dir="in">
1329 <desc>UUID of the image to get the usage information for.</desc>
1330 </param>
1331 <param name="usage" type="ResourceUsage" dir="in">
1332 <desc>Type of the usage (permanent, temporary or all).</desc>
1333 </param>
1334 <param name="machineIDs" type="wstring" dir="return">
1335 <desc>
1336 List of UUIDs of all machines that use the given image
1337 in the way specified by the usage parameter.
1338 The list is returned as a string containing UUIDs separated
1339 by spaces. A null string means that the image is not used.
1340 <note>
1341 When the usage type is <link to="ResourceUsage::AllUsage"/>
1342 and the image is used by the VM both permanently
1343 and temporarily, the VM's UUID will be present only
1344 once in the list.
1345 </note>
1346 </desc>
1347 </param>
1348 </method>
1349
1350 <method name="unregisterFloppyImage">
1351 <desc>
1352 Unregisters the floppy image previously registered using
1353 <link to="#registerFloppyImage()"/>.
1354 <note>
1355 The specified image must not be mounted to any of
1356 the existing virtual machines.
1357 </note>
1358 </desc>
1359 <param name="id" type="uuid" dir="in">
1360 <desc>UUID of the floppy image to unregister.</desc>
1361 </param>
1362 <param name="image" type="IFloppyImage" dir="return">
1363 <desc>Unregistered image object.</desc>
1364 </param>
1365 </method>
1366
1367 <method name="getGuestOSType">
1368 <param name="id" type="wstring" dir="in"/>
1369 <param name="type" type="IGuestOSType" dir="return"/>
1370 </method>
1371
1372 <method name="createSharedFolder">
1373 <desc>
1374 Creates a new shared folder by associating the given logical
1375 name with the given host path, adds it to the collection of
1376 shared folders and starts sharing it.
1377 Refer to the description of <link to="ISharedFolder"/> to read
1378 about logical name unicity.
1379 </desc>
1380 <param name="name" type="wstring" dir="in">
1381 <desc>Unique logical name of the shared folder.</desc>
1382 </param>
1383 <param name="hostPath" type="wstring" dir="in">
1384 <desc>Full path to the shared folder in the host file system.</desc>
1385 </param>
1386 </method>
1387
1388 <method name="removeSharedFolder">
1389 <desc>
1390 Removes a shared folder with the given name previously created
1391 by <link to="#createSharedFolder"/> from the collection of
1392 shared folders and stops sharing it.
1393 </desc>
1394 <param name="name" type="wstring" dir="in">
1395 <desc>Logical name of the shared folder to remove.</desc>
1396 </param>
1397 </method>
1398
1399 <method name="getNextExtraDataKey">
1400 <desc>
1401 Returns the extra data key name following the supplied key.
1402 An error is returned if the supplied key does not exist.
1403 @c NULL is returned if the supplied key is the last key.
1404 When supplying @c NULL for the key, the first item is returned.
1405 @a nextValue is an optional parameter and if supplied, the next
1406 key's value is returned in it.
1407 </desc>
1408 <param name="key" type="wstring" dir="in">
1409 <desc>Name of the data key to follow.</desc>
1410 </param>
1411 <param name="nextKey" type="wstring" dir="out">
1412 <desc>Name of the next data key.</desc>
1413 </param>
1414 <param name="nextValue" type="wstring" dir="out">
1415 <desc>Value of the next data key.</desc>
1416 </param>
1417 </method>
1418
1419 <method name="getExtraData">
1420 <desc>
1421 Returns associated extra data.
1422 If the reuqested key does not exist, this function will
1423 succeed and return @c null in the @a value argument.
1424 </desc>
1425 <param name="key" type="wstring" dir="in">
1426 <desc>Name of the data key to get.</desc>
1427 </param>
1428 <param name="value" type="wstring" dir="return">
1429 <desc>Value of the requested data key.</desc>
1430 </param>
1431 </method>
1432
1433 <method name="setExtraData">
1434 <desc>
1435 Sets associated extra data.
1436 If you pass @c NULL as a key @a vaule, the given key will be
1437 deleted.
1438 <note>
1439 This method can be called outside a machine session and
1440 therefore it's a caller's responsibility to handle race
1441 condition when several clients change the same key at the
1442 same time.
1443 </note>
1444 </desc>
1445 <param name="key" type="wstring" dir="in">
1446 <desc>Name of the data key to set.</desc>
1447 </param>
1448 <param name="value" type="wstring" dir="in">
1449 <desc>Value to assign to the key.</desc>
1450 </param>
1451 </method>
1452
1453 <method name="openSession">
1454 <desc>
1455 <p>Opens a new direct session with the given virtual machine.
1456 Within the direct session context, it is possible to change
1457 all VM settings, as well as to execute the VM in the process
1458 space of the session object. There can be only one direct
1459 session open at a time for every virtual machine.</p>
1460 <p>Upon successful return, the session object can be used to
1461 get access to the machine and to the VM console.
1462 </p>
1463 </desc>
1464 <param name="session" type="ISession" dir="in">
1465 <desc>
1466 Session object that will represent the opened session after
1467 successful method invocation. This object must not represent
1468 the already open session.
1469 <note>
1470 This session will be automatically closed if the
1471 VirtualBox server is terminated for some reason.
1472 </note>
1473 </desc>
1474 </param>
1475 <param name="machineId" type="uuid" dir="in">
1476 <desc>ID of the virtual machine to open a session with.</desc>
1477 </param>
1478 </method>
1479
1480 <method name="openRemoteSession">
1481 <desc>
1482 <p>Opens a new remote session with the given virtual
1483 machine. Opening the remote session causes the server to start
1484 a new process that opens a direct session with the given VM.
1485 The remote session provides some level of control over the VM
1486 execution (using the IConsole interface) to the caller. Within
1487 the remote session context, it is not possible to change any
1488 static VM settings (such as name, HDD configuration, etc.).</p>
1489 <p>This operation can take some time, so the progress object
1490 is returned to let the caller be informed when the session is
1491 actually open. Until then, the remote session object remains in
1492 the closed state and accessing the machine or its console through
1493 it is invalid.
1494 </p>
1495
1496 Currently supported session types (values of the @a type
1497 parameter) are:
1498 <ul>
1499 <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
1500 <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
1501 </ul>
1502
1503 <note>
1504 It is impossible to open a remote session with the machine
1505 that already has an open direct session or waits until the
1506 previous request to open the remote session is completed
1507 (see <link to="IMachine::sessionState"/>).
1508 </note>
1509
1510 <note>
1511 The opened @a session will be automatically closed when
1512 the corresponding direct session dies or gets closed.
1513 </note>
1514
1515 <see>openExistingSession</see>
1516 </desc>
1517 <param name="session" type="ISession" dir="in">
1518 <desc>
1519 Session object that will represent the opened remote session
1520 after successful method invocation (this object must not
1521 represent an already open session).
1522 </desc>
1523 </param>
1524 <param name="machineId" type="uuid" dir="in">
1525 <desc>ID of the virtual machine to open a session with.</desc>
1526 </param>
1527 <param name="type" type="wstring" dir="in">
1528 <desc>
1529 Type of the remote session (case sensitive).
1530 </desc>
1531 </param>
1532 <param name="progress" type="IProgress" dir="return">
1533 <desc>Progress object to track the operation completion.</desc>
1534 </param>
1535 </method>
1536
1537 <method name="openExistingSession">
1538 <desc>
1539 <p>Opens a new remote session with the virtual machine for
1540 which a direct session is already open.
1541 The remote session provides some level of control over the VM
1542 execution (using the IConsole interface) to the caller. Within
1543 the remote session context, it is not possible to change any
1544 static VM settings (such as name, HDD configuration, etc.).</p>
1545 <p>As opposed to <link to="#openRemoteSession()"/>, the number of
1546 remote sessions opened this way is not limited by the API.</p>
1547 <note>
1548 It is impossible to open a remote session with the machine
1549 that doesn't have an open direct session.
1550 </note>
1551 <see>openRemoteSession</see>
1552 </desc>
1553 <param name="session" type="ISession" dir="in">
1554 <desc>
1555 Session object that will represent the open remote session
1556 after successful method invocation. This object must not
1557 represent an already open session.
1558 <note>
1559 This session will be automatically closed when the peer
1560 (direct) session dies or gets closed.
1561 </note>
1562 </desc>
1563 </param>
1564 <param name="machineId" type="uuid" dir="in">
1565 <desc>ID of the virtual machine to open a session with.</desc>
1566 </param>
1567 </method>
1568
1569 <method name="registerCallback">
1570 <param name="callback" type="IVirtualBoxCallback" dir="in"/>
1571 </method>
1572
1573 <method name="unregisterCallback">
1574 <param name="callback" type="IVirtualBoxCallback" dir="in"/>
1575 </method>
1576
1577 </interface>
1578
1579 <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
1580 namespace="virtualbox.org">
1581 <interface name="IVirtualBox" default="yes"/>
1582 </class>
1583
1584 <!--
1585 // IMachine
1586 /////////////////////////////////////////////////////////////////////////
1587 -->
1588
1589 <enumerator
1590 name="IMachineEnumerator" type="IMachine"
1591 uuid="1b554149-be0a-4465-9252-9ff8f420af55"
1592 />
1593
1594 <collection
1595 name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
1596 uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
1597 readonly="yes"
1598 />
1599
1600 <interface
1601 name="IInternalMachineControl" extends="$unknown"
1602 uuid="F466BF2E-BD6B-4af0-9C08-46DD42B28A44"
1603 internal="yes"
1604 wsmap="suppress"
1605 >
1606 <method name="updateState">
1607 <desc>
1608 Updates the VM state.
1609 <note>
1610 This operation will also update the settings file with
1611 the correct information about the saved state file
1612 and delete this file from disk when appropriate.
1613 </note>
1614 </desc>
1615 <param name="state" type="MachineState" dir="in"/>
1616 </method>
1617
1618 <method name="getIPCId">
1619 <param name="id" type="wstring" dir="return"/>
1620 </method>
1621
1622 <method name="getLogFolder">
1623 <desc>
1624 Returns the full name of the directory where to store
1625 log files created during this machine's executoin.
1626 </desc>
1627 <param name="logFolder" type="wstring" dir="return"/>
1628 </method>
1629
1630 <method name="runUSBDeviceFilters">
1631 <desc>
1632 Asks the server to run USB devices filters of the associated
1633 machine against the given USB device and tell if there is
1634 a match.
1635 <note>
1636 Intended to be used only for remote USB devices. Local
1637 ones don't require to call this method (this is done
1638 implicitly by the Host and USBProxyService).
1639 </note>
1640 </desc>
1641 <param name="device" type="IUSBDevice" dir="in"/>
1642 <param name="matched" type="boolean" dir="return"/>
1643 </method>
1644
1645 <method name="captureUSBDevice">
1646 <desc>
1647 Requests a capture of the given host USB device, and returns
1648 the captured device (as IUSBDevice) to the caller.
1649 <note>
1650 The server must mark the device as USBDeviceCaptured
1651 during this call.
1652
1653 This method must return extended error info in case of any
1654 eroror (<link to="IConsole::detachUSBDevice()"/>) relies
1655 on this.
1656 </note>
1657 </desc>
1658 <param name="id" type="uuid" dir="in"/>
1659 <param name="hostDevice" type="IUSBDevice" dir="return"/>
1660 </method>
1661
1662 <method name="releaseUSBDevice">
1663 <desc>
1664 Releases the given USB device.
1665 <note>
1666 The server must run its own filters and filters of all VMs
1667 but this one on the given device as if it were just attached
1668 to the host computer.
1669 </note>
1670 </desc>
1671 <param name="id" type="uuid" dir="in"/>
1672 </method>
1673
1674 <method name="autoCaptureUSBDevices">
1675 <desc>
1676 Queries the list of available devices that must be auto-captured
1677 according to this VM's filters. Devices returned as IUSBDevice
1678 instances.
1679 <note>
1680 The server must mark all returned devices as USBDeviceCaptured
1681 during this call.
1682 </note>
1683 </desc>
1684 <param name="hostDevices" type="IUSBDeviceCollection" dir="return"/>
1685 </method>
1686
1687 <method name="releaseAllUSBDevices">
1688 <desc>
1689 Releases all USB devices that are captured by this VM because
1690 the VM has been terminated.
1691 <note>
1692 The server must run its own filters and filters of all VMs
1693 but this one on all released devices as if they were just
1694 attached to the host computer.
1695 </note>
1696 </desc>
1697 </method>
1698
1699 <method name="onSessionEnd">
1700 <desc>
1701 Triggered by the given session object when the session is about
1702 to close normally.
1703 </desc>
1704 <param name="session" type="ISession" dir="in">
1705 <desc>Session that is being closed</desc>
1706 </param>
1707 <param name="progress" type="IProgress" dir="return">
1708 <desc>
1709 Used to wait until the corresponding machine is actually
1710 deassociated from the given session on the server.
1711 Returned only when this session is a direct one.
1712 </desc>
1713 </param>
1714 </method>
1715
1716 <method name="beginSavingState">
1717 <desc>
1718 Called by the VM process to inform the server it wants to
1719 save the current state and stop the VM execution.
1720 </desc>
1721 <param name="progress" type="IProgress" dir="in">
1722 <desc>
1723 Progress object created by the VM process to wait until
1724 the state is saved.
1725 </desc>
1726 </param>
1727 <param name="stateFilePath" type="wstring" dir="out">
1728 <desc>
1729 File path the VM process must save the execution state to.
1730 </desc>
1731 </param>
1732 </method>
1733
1734 <method name="endSavingState">
1735 <desc>
1736 Called by the VM process to inform the server that saving
1737 the state previously requested by #beginSavingState is either
1738 successfully finished or there was a failure.
1739 </desc>
1740
1741 <param name="success" type="boolean" dir="in">
1742 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
1743 </param>
1744 </method>
1745
1746 <method name="beginTakingSnapshot">
1747 <desc>
1748 Called by the VM process to inform the server it wants to
1749 take a snapshot.
1750 </desc>
1751 <param name="initiator" type="IConsole" dir="in">
1752 <desc>The console object that initiated this call.</desc>
1753 </param>
1754 <param name="name" type="wstring" dir="in">
1755 <desc>Snapshot name</desc>
1756 </param>
1757 <param name="description" type="wstring" dir="in">
1758 <desc>Snapshot description</desc>
1759 </param>
1760 <param name="progress" type="IProgress" dir="in">
1761 <desc>
1762 Progress object created by the VM process to wait until
1763 the state is saved (only for online snapshots).
1764 </desc>
1765 </param>
1766 <param name="stateFilePath" type="wstring" dir="out">
1767 <desc>
1768 File path the VM process must save the execution state to.
1769 </desc>
1770 </param>
1771 <param name="serverProgress" type="IProgress" dir="out">
1772 <desc>
1773 Progress object created by the server process to wait until
1774 the snapshot is taken (VDI diff creation, etc.).
1775 </desc>
1776 </param>
1777 </method>
1778
1779 <method name="endTakingSnapshot">
1780 <desc>
1781 Called by the VM process to inform the server that the snapshot
1782 previously requested by #beginTakingSnapshot is either
1783 successfully taken or there was a failure.
1784 </desc>
1785
1786 <param name="success" type="boolean" dir="in">
1787 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
1788 </param>
1789 </method>
1790
1791 <method name="discardSnapshot">
1792 <desc>
1793 Gets called by IConsole::discardSnapshot.
1794 </desc>
1795 <param name="initiator" type="IConsole" dir="in">
1796 <desc>The console object that initiated this call.</desc>
1797 </param>
1798 <param name="id" type="uuid" dir="in">
1799 <desc>UUID of the snapshot to discard.</desc>
1800 </param>
1801 <param name="machineState" type="MachineState" dir="out">
1802 <desc>New machine state after this operation is started.</desc>
1803 </param>
1804 <param name="progress" type="IProgress" dir="return">
1805 <desc>Progress object to track the operation completion.</desc>
1806 </param>
1807 </method>
1808
1809 <method name="discardCurrentState">
1810 <desc>
1811 Gets called by IConsole::discardCurrentState.
1812 </desc>
1813 <param name="initiator" type="IConsole" dir="in">
1814 <desc>The console object that initiated this call.</desc>
1815 </param>
1816 <param name="machineState" type="MachineState" dir="out">
1817 <desc>New machine state after this operation is started.</desc>
1818 </param>
1819 <param name="progress" type="IProgress" dir="return">
1820 <desc>Progress object to track the operation completion.</desc>
1821 </param>
1822 </method>
1823
1824 <method name="discardCurrentSnapshotAndState">
1825 <desc>
1826 Gets called by IConsole::discardCurrentSnapshotAndState.
1827 </desc>
1828 <param name="initiator" type="IConsole" dir="in">
1829 <desc>The console object that initiated this call.</desc>
1830 </param>
1831 <param name="machineState" type="MachineState" dir="out">
1832 <desc>New machine state after this operation is started.</desc>
1833 </param>
1834 <param name="progress" type="IProgress" dir="return">
1835 <desc>Progress object to track the operation completion.</desc>
1836 </param>
1837 </method>
1838
1839 </interface>
1840
1841 <enum
1842 name="BIOSBootMenuMode"
1843 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
1844 >
1845 <desc>
1846 This represents the BIOS boot menu state.
1847 </desc>
1848
1849 <const name="Disabled" value="0"/>
1850 <const name="MenuOnly" value="1"/>
1851 <const name="MessageAndMenu" value="2"/>
1852 </enum>
1853
1854 <interface
1855 name="IBIOSSettings" extends="$unknown"
1856 uuid="946b83be-c5aa-4089-859d-db694f57d5ef"
1857 wsmap="struct"
1858 >
1859 <attribute name="LogoFadeIn" type="boolean">
1860 <desc>Fade in flag for BIOS logo animation.</desc>
1861 </attribute>
1862
1863 <attribute name="LogoFadeOut" type="boolean">
1864 <desc>Fade out flag for BIOS logo animation.</desc>
1865 </attribute>
1866
1867 <attribute name="LogoDisplayTime" type="unsigned long">
1868 <desc>BIOS logo display time in milliseconds (0 = default).</desc>
1869 </attribute>
1870
1871 <attribute name="LogoImagePath" type="wstring">
1872 <desc>Local file system path for external BIOS image.</desc>
1873 </attribute>
1874
1875 <attribute name="BootMenuMode" type="BIOSBootMenuMode">
1876 <desc>Mode of the BIOS boot device menu.</desc>
1877 </attribute>
1878
1879 <attribute name="ACPIEnabled" type="boolean">
1880 <desc>ACPI support flag.</desc>
1881 </attribute>
1882
1883 <attribute name="IOAPICEnabled" type="boolean">
1884 <desc>
1885 IO APIC support flag. If set, VirtualBox will provide an IO APIC
1886 and support IRQs above 15.
1887 </desc>
1888 </attribute>
1889
1890 <attribute name="TimeOffset" type="long long">
1891 <desc>
1892 Offset in milliseconds from the host system time. This allows for
1893 guests running with a different system date/time than the host.
1894 It is equivalent to setting the system date/time in the BIOS other
1895 than it's not an absolute value but a relative one. Guest Additions
1896 time synchronization also honors this offset.
1897 </desc>
1898 </attribute>
1899
1900 </interface>
1901
1902 <interface
1903 name="IMachine" extends="$unknown"
1904 uuid="063ad473-992d-479f-ba7e-7a9ae294368c"
1905 wsmap="managed"
1906 >
1907 <attribute name="parent" type="IVirtualBox" readonly="yes">
1908 <desc>Associated parent obect.</desc>
1909 </attribute>
1910
1911 <attribute name="accessible" type="boolean" readonly="yes">
1912 <desc>
1913 Whether this virtual machine is currently accessible or not.
1914
1915 The machine is considered to be inaccessible when:
1916 <ul>
1917 <li>It is a registered virtual machine, and
1918 </li>
1919 <li>Its settings file is inaccessible (for example, it is
1920 located on a network share that is not accessible during
1921 VirtualBox startup, or becomes inaccessible later, or if
1922 the settings file can be read but is invalid).
1923 </li>
1924 </ul>
1925
1926 Otherwise, the value of this property is always <tt>true</tt>.
1927
1928 Every time this property is read, the accessibility state of
1929 this machine is re-evaluated. If the returned value is |false|,
1930 the <link to="#accessError"/> property may be used to get the
1931 detailed error information describing the reason of
1932 inaccessibility.
1933
1934 When the machine is inaccessible, only the following properties
1935 can be used on it:
1936 <ul>
1937 <li><link to="#parent"/></li>
1938 <li><link to="#id"/></li>
1939 <li><link to="#settingsFilePath"/></li>
1940 <li><link to="#accessible"/></li>
1941 <li><link to="#accessError"/></li>
1942 </ul>
1943
1944 An attempt to access any other property or method will return
1945 an error.
1946
1947 The only possible action you can perform on an inaccessible
1948 machine is to unregister it using the
1949 <link to="IVirtualBox::unregisterMachine"/> call (or, to check
1950 for the accessibility state once more by querying this
1951 property).
1952
1953 <note>
1954 In the current implementation, once this property returns
1955 <tt>true</tt>, the machine will never become inaccessible
1956 later, even if its settings file cannot be successfully
1957 read/written any more (at least, until the VirtualBox
1958 server is restarted). This limitation may be removed in
1959 future releases.
1960 </note>
1961 </desc>
1962 </attribute>
1963
1964 <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
1965 <desc>
1966 Error information describing the reason of machine
1967 inaccessibility.
1968
1969 Reading this property is only valid after the last call to
1970 <link to="#accessible"/> returned <tt>false</tt> (i.e. the
1971 machine is currently unaccessible). Otherwise, a null
1972 IVirtualBoxErrorInfo object will be returned.
1973 </desc>
1974 </attribute>
1975
1976 <attribute name="name" type="wstring">
1977 <desc>
1978 Name of the virtual machine.
1979
1980 Besides being used for human-readable identification purposes
1981 everywhere in VirtualBox, the virtual machine name is also used
1982 as a name of the machine's settings file and as a name of the
1983 subdirectory this settings file resides in. Thus, every time you
1984 change the value of this property, the settings file will be
1985 renamed once you call <link to="#saveSettings()"/> to confirm the
1986 change. The containing subdirectory will be also renamed, but
1987 only if it has exactly the same name as the settings file
1988 itself prior to changing this property (for backward compatibility
1989 with previous API releases). The above implies the following
1990 limitations:
1991 <ul>
1992 <li>The machine name cannot be empty.</li>
1993 <li>The machine name can contain only characters that are valid
1994 file name characters according to the rules of the file
1995 system used to store VirtualBox configuration.</li>
1996 <li>You cannot have two or more machines with the same name
1997 if they use the same subdirectory for storing the machine
1998 settings files.</li>
1999 <li>You cannot change the name of the machine if it is running,
2000 or if any file in the directory containing the settings file
2001 is being used by another running machine or by any other
2002 process in the host operating system at a time when
2003 <link to="#saveSettings()"/> is called.
2004 </li>
2005 </ul>
2006 If any of the above limitations are hit, <link to="#saveSettings()"/>
2007 will return an appropriate error message explaining the exact
2008 reason and the changes you made to this machine will not be
2009 saved.
2010 <note>
2011 For "legacy" machines created using the
2012 <link to="IVirtualBox::createLegacyMachine()"/> call,
2013 the above naming limitations do not apply because the
2014 machine name does not affect the settings file name.
2015 The settings file name remains the same as it was specified
2016 during machine creation and never changes.
2017 </note>
2018 </desc>
2019 </attribute>
2020
2021 <attribute name="description" type="wstring">
2022 <desc>
2023 Description of the virtual machine.
2024
2025 The description attribute can contain any text and is
2026 typically used to describe the hardware and software
2027 configuration of the virtual machine in detail (i.e. network
2028 settings, versions of the installed software and so on).
2029 </desc>
2030 </attribute>
2031
2032 <attribute name="id" type="uuid" readonly="yes">
2033 <desc>UUID of the virtual machine.</desc>
2034 </attribute>
2035
2036 <attribute name="OSTypeId" type="wstring">
2037 <desc>
2038 User-defined identifier of the Guest OS type.
2039 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
2040 an IGuestOSType object representing details about the given
2041 Guest OS type.
2042 <note>
2043 This value may differ from the value returned by
2044 <link to="IGuest::OSTypeId"/> if Guest Additions are
2045 installed to the guest OS.
2046 </note>
2047 </desc>
2048 </attribute>
2049
2050 <attribute name="memorySize" type="unsigned long">
2051 <desc>Sytem memory size in megabytes.</desc>
2052 </attribute>
2053
2054 <attribute name="VRAMSize" type="unsigned long">
2055 <desc>Video memory size in megabytes.</desc>
2056 </attribute>
2057
2058 <attribute name="MonitorCount" type="unsigned long">
2059 <desc>
2060 Number of virtual monitors.
2061 <note>
2062 Only effective on Windows XP and later guests with
2063 Guest Additions installed.
2064 </note>
2065 </desc>
2066 </attribute>
2067
2068 <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
2069 <desc>Object containing all BIOS settings.</desc>
2070 </attribute>
2071
2072 <attribute name="HWVirtExEnabled" type="TriStateBool">
2073 <desc>
2074 This setting determines whether VirtualBox will try to make use of
2075 the host CPU's hardware virtualization extensions such as Intel VT-x
2076 and AMD SVM. Note that in case such extensions are not available,
2077 they will not be used.
2078 </desc>
2079 </attribute>
2080
2081 <attribute name="snapshotFolder" type="wstring">
2082 <desc>
2083 Full path to the directory used to store snapshot data
2084 (difrerencing hard disks and saved state files) of this machine.
2085
2086 The initial value of this property is
2087 <tt>&lt;</tt><link to="#settingsFilePath">
2088 path_to_settings_file</link><tt>&gt;/&lt;</tt>
2089 <link to="#id">machine_uuid</link>
2090 <tt>&gt;</tt>.
2091
2092 Currently, it is an error to try to change this property on
2093 a machine that has snapshots (because this would require to
2094 move possibly large files to a different location).
2095 A separate method will be available for this purpose later.
2096
2097 <note>
2098 Setting this property to <tt>null</tt> will restore the
2099 initial value.
2100 </note>
2101 <note>
2102 When setting this property, the specified path can be
2103 absolute (full path) or relative to the directory where the
2104 <link to="#settingsFilePath">machine settings file</link>
2105 is located. When reading this property, a full path is
2106 always returned.
2107 </note>
2108 <note>
2109 The specified path may not exist, it will be created
2110 when necessary.
2111 </note>
2112 </desc>
2113 </attribute>
2114
2115 <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
2116 <desc>VRDP server object.</desc>
2117 </attribute>
2118
2119 <attribute name="hardDiskAttachments" type="IHardDiskAttachmentCollection" readonly="yes">
2120 <desc>Collection of hard disks attached to the machine.</desc>
2121 </attribute>
2122
2123 <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
2124 <desc>Associated DVD drive object.</desc>
2125 </attribute>
2126
2127 <attribute name="FloppyDrive" type="IFloppyDrive" readonly="yes">
2128 <desc>Associated floppy drive object.</desc>
2129 </attribute>
2130
2131 <attribute name="USBController" type="IUSBController" readonly="yes">
2132 <desc>Associated USB controller object.</desc>
2133 </attribute>
2134
2135 <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
2136 <desc>Associated audio adapter, always present.</desc>
2137 </attribute>
2138
2139 <attribute name="settingsFilePath" type="wstring" readonly="yes">
2140 <desc>
2141 Full name of the file containing machine settings data.
2142 </desc>
2143 </attribute>
2144
2145 <attribute name="settingsModified" type="boolean" readonly="yes">
2146 <desc>
2147 Whether the settings of this machine have been modified
2148 (but neither yet saved nor discarded).
2149 <note>
2150 Reading this property is only valid on instances returned
2151 by <link to="ISession::machine"/> and on new machines
2152 created by <link to="IVirtualBox::createMachine"/> or opened
2153 by <link to="IVirtualBox::openMachine"/> but not
2154 yet registered, or on unregistered machines after calling
2155 <link to="IVirtualBox::unregisterMachine"/>. For all other
2156 cases, the settigs can never be modified.
2157 </note>
2158 <note>
2159 For newly created unregistered machines, the value of this
2160 property is always TRUE until <link to="#saveSettings"/>
2161 is called (no matter if any machine settings have been
2162 changed after the creation or not). For opened machines
2163 the value is set to FALSE (and then follows to normal rules).
2164 </note>
2165 </desc>
2166 </attribute>
2167
2168 <attribute name="sessionState" type="SessionState" readonly="yes">
2169 <desc>Current session state for this machine.</desc>
2170 </attribute>
2171
2172 <attribute name="sessionType" type="wstring" readonly="yes">
2173 <desc>
2174 Type of the session. If <link to="#sessionState"/> is
2175 SessionSpawning or SessionOpen, this attribute contains the
2176 same value as passed to the
2177 <link to="IVirtualBox::openRemoteSession()"/> method in the @a
2178 type parameter. If the session was opened directly using
2179 <link to="IVirtualBox::openSession()"/>, or if
2180 <link to="#sessionState"/> is SessionClosed, the value of this
2181 attribute is @c null.
2182 </desc>
2183 </attribute>
2184
2185 <attribute name="sessionPid" type="unsigned long" readonly="yes">
2186 <desc>
2187 Identifier of the session process. This attribute contains the
2188 platform-dependent identifier of the process that has opened a
2189 direct session for this machine using the
2190 <link to="IVirtualBox::openSession()"/> call. The returned value
2191 is only valid if <link to="#sessionState"/> is SessionOpen or
2192 SessionClosing (i.e. a session is currently open or being
2193 closed) by the time this property is read.
2194 </desc>
2195 </attribute>
2196
2197 <attribute name="state" type="MachineState" readonly="yes">
2198 <desc>Current execution state of this machine.</desc>
2199 </attribute>
2200
2201 <attribute name="lastStateChange" type="long long" readonly="yes">
2202 <desc>
2203 Time stamp of the last execution state change,
2204 in milliseconds since 1970-01-01 UTC.
2205 </desc>
2206 </attribute>
2207
2208 <attribute name="stateFilePath" type="wstring" readonly="yes">
2209 <desc>
2210 Full path to the file that stores the execution state of
2211 the machine when it is in the <link to="MachineState::Saved"/>
2212 state.
2213 <note>
2214 When the machine is not in the Saved state, this attribute
2215 <tt>null</tt>.
2216 </note>
2217 </desc>
2218 </attribute>
2219
2220 <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
2221 <desc>
2222 Current snapshot of this machine.
2223 <note>
2224 A <tt>null</tt> object is returned if the machine doesn't
2225 have snapshots.
2226 </note>
2227 <see><link to="ISnapshot"/></see>
2228 </desc>
2229 </attribute>
2230
2231 <attribute name="snapshotCount" type="unsigned long" readonly="yes">
2232 <desc>
2233 Number of snapshots taken on this machine. Zero means the
2234 machine doesn't have any snapshots.
2235 </desc>
2236 </attribute>
2237
2238 <attribute name="currentStateModified" type="boolean" readonly="yes">
2239 <desc>
2240 Returns <tt>true</tt> if the current state of the machine is not
2241 identical to the state stored in the current snapshot.
2242
2243 The current state is identical to the current snapshot right
2244 after one of the following calls are made:
2245 <ul>
2246 <li><link to="IConsole::discardCurrentState"/> or
2247 <link to="IConsole::discardCurrentSnapshotAndState"/>
2248 </li>
2249 <li><link to="IConsole::takeSnapshot"/> (issued on a
2250 powered off or saved machine, for which
2251 <link to="#settingsModified"/> returns <tt>false</tt>)
2252 </li>
2253 <li><link to="IMachine::setCurrentSnapshot"/>
2254 </li>
2255 </ul>
2256
2257 The current state remains identical until one of the following
2258 happens:
2259 <ul>
2260 <li>settings of the machine are changed</li>
2261 <li>the saved state is discarded</li>
2262 <li>the current snapshot is discarded</li>
2263 <li>an attempt to execute the machine is made</li>
2264 </ul>
2265
2266 <note>
2267 For machines that don't have snapshots, this property is
2268 always <tt>false</tt>.
2269 </note>
2270 </desc>
2271 </attribute>
2272
2273 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
2274 <desc>
2275 Collection of shared folders for this machine. These folders
2276 are shared automatically upon machine startup and available only
2277 to the guest OS installed within this machine.
2278
2279 New folders to share are added to the collection using
2280 <link to="#createSharedFolder"/>. An existing shared folder can
2281 be removed using <link to="#removeSharedFolder"/>.
2282 </desc>
2283 </attribute>
2284
2285 <attribute name="clipboardMode" type="ClipboardMode">
2286 <desc>
2287 Synchronization mode between the host OS clipboard
2288 and the guest OS clipboard.
2289 </desc>
2290 </attribute>
2291
2292 <method name="setBootOrder">
2293 <desc>
2294 Puts the given device to the specified position in
2295 the boot order.
2296
2297 @todo [remove?]
2298 If the machine can have more than one device of the given type
2299 (such as hard disks), then a separate method should be used to
2300 specify the boot order for individual devices. Using this method
2301 in such cases will put the first device in the group
2302 (for example, a hard disk attached as Master on the primary
2303 IDE controller) to the given position.
2304
2305 To indicate that no any device is associated with the
2306 given position, <link to="DeviceType::NoDevice"/> should be used.
2307
2308 @todo setHardDiskBootOrder(), setNetworkBootOrder()
2309 </desc>
2310 <param name="position" type="unsigned long" dir="in">
2311 <desc>
2312 Position in the boot order (<tt>1</tt> to the total number of
2313 devices the machine can boot from, as returned by
2314 <link to="ISystemProperties::maxBootPosition"/>).
2315 </desc>
2316 </param>
2317 <param name="device" type="DeviceType" dir="in">
2318 <desc>
2319 The type of the device used to boot at the given position.
2320 </desc>
2321 </param>
2322 </method>
2323
2324 <method name="getBootOrder" const="yes">
2325 <desc>
2326 Returns the device type that occupies the specified
2327 position in the boot order.
2328
2329 @todo [remove?]
2330 If the machine can have more than one device of the returned type
2331 (such as hard disks), then a separate method should be used to
2332 retrieve the individual device that occupies the given position.
2333
2334 If here are no devices at the given position, then
2335 <link to="DeviceType::NoDevice"/> is returned.
2336
2337 @todo getHardDiskBootOrder(), getNetworkBootOrder()
2338 </desc>
2339 <param name="order" type="unsigned long" dir="in">
2340 <desc>
2341 Position in the boot order (<tt>1</tt> to the total number of
2342 devices the machine can boot from, as returned by
2343 <link to="ISystemProperties::maxBootPosition"/>).
2344 </desc>
2345 </param>
2346 <param name="device" type="DeviceType" dir="return">
2347 <desc>
2348 Device at the given position.
2349 </desc>
2350 </param>
2351 </method>
2352
2353 <method name="attachHardDisk">
2354 <desc>
2355
2356 Attaches a virtual hard disk identified by the given UUID to the
2357 given device slot of the given controller. The specified device
2358 must not have another disk attached and the given hard disk must
2359 not be already attached to this machine.
2360
2361 See <link to="IHardDisk"/> for detailed information about
2362 attaching hard disks.
2363
2364 <note>You cannot attach a hard disk to a running machine. Also,
2365 you cannot attach a hard disk to a newly created machine until
2366 it is registered.</note>
2367
2368 <note>Attaching a hard disk to a machine creates a <i>lazy</i>
2369 attachment. In particular, no differeincing images are
2370 actually created until <link to="#saveSettings"/> is called to
2371 commit all changed settings.</note>
2372
2373 </desc>
2374 <param name="diskID" type="uuid" dir="in">
2375 <desc>UUID of the hard disk to attach.</desc>
2376 </param>
2377 <param name="controller" type="DiskControllerType" dir="in">
2378 <desc>Controller to attach the hard disk to.</desc>
2379 </param>
2380 <param name="device" type="long" dir="in">
2381 <desc>Device slot to attach the hard disk to.</desc>
2382 </param>
2383 </method>
2384
2385 <method name="getHardDisk" const="yes">
2386 <desc>
2387 Returns the hard disk attached to the
2388 given controller under the specified device number.
2389 </desc>
2390 <param name="controller" type="DiskControllerType" dir="in"/>
2391 <param name="deviceNumber" type="long" dir="in"/>
2392 <param name="hardDisk" type="IHardDisk" dir="return"/>
2393 </method>
2394
2395 <method name="detachHardDisk">
2396 <desc>
2397
2398 Detaches the hard disk drive attached to the given device slot
2399 of the given controller.
2400
2401 See <link to="IHardDisk"/> for detailed information about
2402 attaching hard disks.
2403
2404 <note>You cannot detach a hard disk from a running
2405 machine.</note>
2406
2407 <note>Detaching a hard disk from a machine creates a <i>lazy</i>
2408 detachment. In particular, if the detached hard disk is a
2409 differencing hard disk, it is not actually deleted until <link
2410 to="#saveSettings"/> is called to commit all changed settings.
2411 Keep in mind, that doing <link to="#saveSettings"/> will
2412 <b>physically delete</b> all detached differencing hard disks,
2413 so be careful.</note>
2414
2415 </desc>
2416 <param name="controller" type="DiskControllerType" dir="in">
2417 <desc>Controller to dettach the hard disk from.</desc>
2418 </param>
2419 <param name="device" type="long" dir="in">
2420 <desc>Device slot to dettach the hard disk from.</desc>
2421 </param>
2422 </method>
2423
2424 <method name="getNetworkAdapter" const="yes">
2425 <desc>
2426 Returns the network adapter associated with the given slot.
2427 Slots are numbered sequentially, starting with zero. The total
2428 number of adapters per every machine is defined by the
2429 <link to="ISystemProperties::networkAdapterCount"/> property,
2430 so the maximum slot number is one less than that property's value.
2431 </desc>
2432 <param name="slot" type="unsigned long" dir="in"/>
2433 <param name="adapter" type="INetworkAdapter" dir="return"/>
2434 </method>
2435
2436 <method name="getNextExtraDataKey">
2437 <desc>
2438 Returns the extra data key name following the supplied key.
2439 An error is returned if the supplied key does not exist.
2440 NULL is returned if the supplied key is the last key.
2441 When supplying NULL for the key, the first item is returned.
2442 NextValue is an optional parameter and if supplied, the next
2443 key's value is returned as well.
2444 </desc>
2445 <param name="key" type="wstring" dir="in"/>
2446 <param name="nextKey" type="wstring" dir="out"/>
2447 <param name="nextValue" type="wstring" dir="out"/>
2448 </method>
2449
2450 <method name="getExtraData">
2451 <desc>Returns associated extra data.</desc>
2452 <param name="key" type="wstring" dir="in"/>
2453 <param name="value" type="wstring" dir="return"/>
2454 </method>
2455
2456 <method name="setExtraData">
2457 <desc>Sets associated extra data.</desc>
2458 <param name="key" type="wstring" dir="in"/>
2459 <param name="value" type="wstring" dir="in"/>
2460 </method>
2461
2462 <method name="saveSettings">
2463 <desc>
2464 Saves any changes to machine settings made since the session
2465 has been opened or a new machine has been created, or since the
2466 last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
2467 For registered machines, new settings become visible to all
2468 other VirtualBox clients after successful invocation of this
2469 method.
2470 <note>
2471 The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
2472 notification event after the configuration has been successfully
2473 saved (only for registered machines).
2474 </note>
2475 <note>
2476 Calling this method is only valid on instances returned
2477 by <link to="ISession::machine"/> and on new machines
2478 created by <link to="IVirtualBox::createMachine"/> but not
2479 yet registered, or on unregistered machines after calling
2480 <link to="IVirtualBox::unregisterMachine"/>.
2481 </note>
2482 </desc>
2483 </method>
2484
2485 <method name="discardSettings">
2486 <desc>
2487 Discards any changes to the machine settings made since the session
2488 has been opened or since the last call to <link to="#saveSettings"/>
2489 or <link to="#discardSettings"/>.
2490 <note>
2491 Calling this method is only valid on instances returned
2492 by <link to="ISession::machine"/> and on new machines
2493 created by <link to="IVirtualBox::createMachine"/> or
2494 opened by <link to="IVirtualBox::openMachine"/> but not
2495 yet registered, or on unregistered machines after calling
2496 <link to="IVirtualBox::unregisterMachine"/>.
2497 </note>
2498 </desc>
2499 </method>
2500
2501 <method name="deleteSettings">
2502 <desc>
2503 Deletes the settings file of this machine from disk.
2504 The machine must not be registered in order for this operation
2505 to succeed.
2506 <note>
2507 <link to="#settingsModified"/> will return TRUE after this
2508 method successfully returns.
2509 </note>
2510 <note>
2511 Calling this method is only valid on instances returned
2512 by <link to="ISession::machine"/> and on new machines
2513 created by <link to="IVirtualBox::createMachine"/> or
2514 opened by <link to="IVirtualBox::openMachine"/> but not
2515 yet registered, or on unregistered machines after calling
2516 <link to="IVirtualBox::unregisterMachine"/>.
2517 </note>
2518 <note>
2519 The deleted machine settings file can be restored (saved again)
2520 by calling <link to="#saveSettings"/>.
2521 </note>
2522 </desc>
2523 </method>
2524
2525 <method name="getSnapshot">
2526 <desc>
2527 Returns a snapshot of this machine with the given UUID.
2528 A <tt>null</tt> UUID can be used to obtain the first snapshot
2529 taken on this machine. This is useful if you want to traverse
2530 the whole tree of snapshots starting from the root.
2531 </desc>
2532 <param name="id" type="uuid" dir="in">
2533 <desc>UUID of the snapshot to get</desc>
2534 </param>
2535 <param name="snapshot" type="ISnapshot" dir="return">
2536 <desc>Snapshot object with the given UUID.</desc>
2537 </param>
2538 </method>
2539
2540 <method name="findSnapshot">
2541 <desc>
2542 Returns a snapshot of this machine with the given name.
2543 </desc>
2544 <param name="name" type="wstring" dir="in">
2545 <desc>Name of the snapshot to find</desc>
2546 </param>
2547 <param name="snapshot" type="ISnapshot" dir="return">
2548 <desc>Snapshot object with the given name.</desc>
2549 </param>
2550 </method>
2551
2552 <method name="setCurrentSnapshot">
2553 <desc>
2554 Sets the current snapshot of this machine.
2555 <note>
2556 In the current implementation, this operation is not
2557 implemented.
2558 </note>
2559 </desc>
2560 <param name="id" type="uuid" dir="in">
2561 <desc>UUID of the snapshot to set as the current snapshot.</desc>
2562 </param>
2563 </method>
2564
2565 <method name="createSharedFolder">
2566 <desc>
2567 Creates a new shared folder by associating the given logical
2568 name with the given host path, adds it to the collection of
2569 shared folders and starts sharing it.
2570 Refer to the description of <link to="ISharedFolder"/> to read
2571 about logical name unicity.
2572 </desc>
2573 <param name="name" type="wstring" dir="in">
2574 <desc>Unique logical name of the shared folder.</desc>
2575 </param>
2576 <param name="hostPath" type="wstring" dir="in">
2577 <desc>Full path to the shared folder in the host file system.</desc>
2578 </param>
2579 </method>
2580
2581 <method name="removeSharedFolder">
2582 <desc>
2583 Removes a shared folder with the given name previously created
2584 by <link to="#createSharedFolder"/> from the collection of
2585 shared folders and stops sharing it.
2586 </desc>
2587 <param name="name" type="wstring" dir="in">
2588 <desc>Logical name of the shared folder to remove.</desc>
2589 </param>
2590 </method>
2591
2592 <method name="canShowConsoleWindow">
2593 <desc>
2594 Returns @c true if the VM console process can activate the
2595 console window and bring it to foreground on the desktop of
2596 the host PC.
2597 <note>
2598 This method will fail if a session for this machine is not
2599 currently open.
2600 </note>
2601 </desc>
2602 <param name="canShow" type="boolean" dir="return">
2603 <desc>
2604 @c true if the console window can be shown and @c
2605 false otherwise.
2606 </desc>
2607 </param>
2608 </method>
2609
2610 <method name="showConsoleWindow">
2611 <desc>
2612 Activates the console window and brings it to foreground on
2613 the desktop of the host PC. Many modern window managers on
2614 many platforms implement some sort of focus stealing
2615 prevention logic, so that it may be impossible to activate
2616 a window without the help of the currently active
2617 application. In this case, this method will return a non-zero
2618 identifier that represents the top-level window of the VM
2619 console process. The caller, if it represents a currently
2620 active process, is responsible to use this identifier (in a
2621 platform-dependent manner) to perform actual window
2622 activation.
2623 <note>
2624 This method will fail if a session for this machine is not
2625 currently open.
2626 </note>
2627 </desc>
2628 <param name="winId" type="unsigned long long" dir="return">
2629 <desc>
2630 Platform-dependent identifier of the top-level VM console
2631 window, or zero if this method has performed all actions
2632 necessary to implement the <i>show window</i> semantics for
2633 the given platform and/or VirtualBox front-end.
2634 </desc>
2635 </param>
2636 </method>
2637
2638 </interface>
2639
2640 <!--
2641 // IConsole
2642 /////////////////////////////////////////////////////////////////////////
2643 -->
2644
2645 <interface
2646 name="IConsoleCallback" extends="$unknown"
2647 uuid="a56eff10-6db9-4985-a12a-039b604b491b"
2648 wsmap="suppress"
2649 >
2650
2651 <method name="onMousePointerShapeChange">
2652 <desc>
2653 Notification when the guest mouse pointer shape has
2654 changed. The new shape data is given.
2655 </desc>
2656 <param name="visible" type="boolean" dir="in">
2657 <desc>
2658 Flag whether the pointer is visible.
2659 </desc>
2660 </param>
2661 <param name="alpha" type="boolean" dir="in">
2662 <desc>
2663 Flag whether the pointer has an alpha channel.
2664 </desc>
2665 </param>
2666 <param name="xHot" type="unsigned long" dir="in">
2667 <desc>
2668 The pointer hot spot x coordinate.
2669 </desc>
2670 </param>
2671 <param name="yHot" type="unsigned long" dir="in">
2672 <desc>
2673 The pointer hot spot y coordinate.
2674 </desc>
2675 </param>
2676 <param name="width" type="unsigned long" dir="in">
2677 <desc>
2678 Width of the pointer shape in pixels.
2679 </desc>
2680 </param>
2681 <param name="height" type="unsigned long" dir="in">
2682 <desc>
2683 Height of the pointer shape in pixels.
2684 </desc>
2685 </param>
2686 <param name="shape" type="octet" mod="ptr" dir="in">
2687 <desc>
2688 Address of the shape buffer.
2689
2690 The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
2691
2692 For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
2693 For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
2694
2695 AND mask presents for pointers with alpha channel, so if the callback does not
2696 support alpha, the pointer could be displayed as a normal color pointer.
2697
2698 The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
2699 therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
2700 end of any scanline are undefined.
2701
2702 The XOR mask follows the AND mask on the next 4 bytes aligned offset:
2703 <tt>uint8_t *pXor = pAnd + (cbAnd + 3) &amp; ~3</tt>
2704 Bytes in the gap between the AND and the XOR mask are undefined.
2705 XOR mask scanlines have no gap between them and size of XOR mask is:
2706 <tt>cXor = width * 4 * height</tt>.
2707
2708 <note>
2709 If 'shape' is equal to 0, only pointer visibility is being changed.
2710 </note>
2711 </desc>
2712 </param>
2713 </method>
2714
2715 <method name="onMouseCapabilityChange">
2716 <desc>
2717 Notification when the mouse capabilities reported by the
2718 guest have changed. The new capabilities are passed.
2719 </desc>
2720 <param name="supportsAbsolute" type="boolean" dir="in"/>
2721 <param name="needsHostCursor" type="boolean" dir="in"/>
2722 </method>
2723
2724 <method name="onKeyboardLedsChange">
2725 <desc>
2726 Notification of the host if the guest executed the KBD_CMD_SET_LEDS
2727 command to alter the state of the keyboard LEDs.
2728 </desc>
2729 <param name="numLock" type="boolean" dir="in"/>
2730 <param name="capsLock" type="boolean" dir="in"/>
2731 <param name="scrollLock" type="boolean" dir="in"/>
2732 </method>
2733
2734 <method name="onStateChange">
2735 <desc>
2736 Notification when the execution state of the machine has changed.
2737 The new state will be given.
2738 </desc>
2739 <param name="state" type="MachineState" dir="in"/>
2740 </method>
2741
2742 <method name="onAdditionsStateChange">
2743 <desc>
2744 Notification when a Guest Additions property changes.
2745 Interested callees should query IGuest's properties to
2746 find out what has changed.
2747 </desc>
2748 </method>
2749
2750 <method name="onRuntimeError">
2751 <desc>
2752 Notification when an error happens during the virtual
2753 machine execution.
2754
2755 There are three kinds of runtime errors:
2756 <ul>
2757 <li><i>fatal</i></li>
2758 <li><i>non-fatal with retry</i></li>
2759 <li><i>non-fatal warnings</i></li>
2760 </ul>
2761
2762 <b>Fatal</b> errors are indicated by the @a fatal parameter set
2763 to <tt>true</tt>. In case of fatal errors, the virtual machine
2764 execution is always paused before calling this notification, and
2765 the notification handler is supposed either to immediately save
2766 the virtual machine state using <link to="IConsole::saveState()"/>
2767 or power it off using <link to="IConsole::powerDown()"/>.
2768 Resuming the execution can lead to unpredictable results.
2769
2770 <b>Non-fatal</b> errors and warnings are indicated by the
2771 @a fatal parameter set to <tt>false</tt>. If the virtual machine
2772 is in the Paused state by the time the error notification is
2773 received, it means that the user can <i>try to resume</i> the machine
2774 execution after attempting to solve the probem that caused the
2775 error. In this case, the notification handler is supposed
2776 to show an appropriate message to the user (depending on the
2777 value of the @a id parameter) that offers several actions such
2778 as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
2779 wants to retry, the notification handler should continue
2780 the machine execution using the <link to="IConsole::resume()"/>
2781 call. If the machine execution is not Paused during this
2782 notification, then it means this notification is a <i>warning</i>
2783 (for example, about a fatal condition that can happen very soon);
2784 no immediate action is required from the user, the machine
2785 continues its normal execution.
2786
2787 Note that in either case the notification handler
2788 <b>must not</b> perform any action directly on a thread
2789 where this notification is called. Everything it is allowed to
2790 do is to post a message to another thread that will then talk
2791 to the user and take the corresponding action.
2792
2793 Currently, the following error identificators are known:
2794 <ul>
2795 <li><tt>"HostMemoryLow"</tt></li>
2796 <li><tt>"HostAudioNotResponding"</tt></li>
2797 <li><tt>"VDIStorageFull"</tt></li>
2798 </ul>
2799
2800 <note>
2801 This notification is not designed to be implemented by
2802 more than one callback at a time. If you have multiple
2803 IConsoleCallback instances registered on the given
2804 IConsole object, make sure you simply do nothing but
2805 return @c S_OK from all but one of them that does actual
2806 user notification and performs necessary actions.
2807 </note>
2808
2809 </desc>
2810 <param name="fatal" type="boolean" dir="in">
2811 <desc>Whether the error is fatal or not</desc>
2812 </param>
2813 <param name="id" type="wstring" dir="in">
2814 <desc>Error identificator</desc>
2815 </param>
2816 <param name="message" type="wstring" dir="in">
2817 <desc>Optional error message</desc>
2818 </param>
2819 </method>
2820
2821 <method name="onCanShowWindow">
2822 <desc>
2823 Notification when a call to
2824 <link to="IMachine::canShowConsoleWindow()"/> is made by a
2825 front-end to check if a subsequent call to
2826 <link to="IMachine::showConsoleWindow()"/> can succeed.
2827
2828 The callee should give an answer appropriate to the current
2829 machine state in the @a canShow argument. This answer must
2830 remain valid at least until the next
2831 <link to="IConsole::state">machine state</link> change.
2832
2833 <note>
2834 This notification is not designed to be implemented by
2835 more than one callback at a time. If you have multiple
2836 IConsoleCallback instances registered on the given
2837 IConsole object, make sure you simply do nothing but
2838 return @c true and @c S_OK from all but one of them that
2839 actually manages console window activation.
2840 </note>
2841 </desc>
2842 <param name="canShow" type="boolean" dir="return">
2843 <desc>
2844 @c true if the console window can be shown and @c
2845 false otherwise.
2846 </desc>
2847 </param>
2848 </method>
2849
2850 <method name="onShowWindow">
2851 <desc>
2852 Notification when a call to
2853 <link to="IMachine::showConsoleWindow()"/>
2854 requests the console window to be activated and brought to
2855 foreground on the desktop of the host PC.
2856
2857 This notification should cause the VM console process to
2858 perform the requested action as described above. If it is
2859 impossible to do it at a time of this notification, this
2860 method should return a failure.
2861
2862 Note that many modern window managers on many platforms
2863 implement some sort of focus stealing prevention logic, so
2864 that it may be impossible to activate a window without the
2865 help of the currently active application (which is supposedly
2866 an initiator of this notification). In this case, this method
2867 must return a non-zero identifier that represents the
2868 top-level window of the VM console process. The caller, if it
2869 represents a currently active process, is responsible to use
2870 this identifier (in a platform-dependent manner) to perform
2871 actual window activation.
2872
2873 This method must set @a winId to zero if it has performed all
2874 actions necessary to complete the request and the console
2875 window is now active and in foreground, to indicate that no
2876 further action is required on the caller's side.
2877
2878 <note>
2879 This notification is not designed to be implemented by
2880 more than one callback at a time. If you have multiple
2881 IConsoleCallback instances registered on the given
2882 IConsole object, make sure you simply do nothing but
2883 return@c S_OK from all but one of them that actually
2884 manages console window activation.
2885 </note>
2886 </desc>
2887 <param name="winId" type="unsigned long long" dir="return">
2888 <desc>
2889 Platform-dependent identifier of the top-level VM console
2890 window, or zero if this method has performed all actions
2891 necessary to implement the <i>show window</i> semantics for
2892 the given platform and/or this VirtualBox front-end.
2893 </desc>
2894 </param>
2895 </method>
2896
2897 </interface>
2898
2899 <interface
2900 name="IRemoteDisplayInfo" extends="$unknown"
2901 uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
2902 wsmap="struct"
2903 >
2904 <attribute name="active" type="boolean" readonly="yes">
2905 <desc>
2906 Whether the remote display connection is active.
2907 </desc>
2908 </attribute>
2909
2910 <attribute name="numberOfClients" type="unsigned long" readonly="yes">
2911 <desc>
2912 How many times a client connected.
2913 </desc>
2914 </attribute>
2915
2916 <attribute name="beginTime" type="long long" readonly="yes">
2917 <desc>
2918 When the last connection was established, in milliseconds since 1970-01-01 UTC.
2919 </desc>
2920 </attribute>
2921
2922 <attribute name="endTime" type="long long" readonly="yes">
2923 <desc>
2924 When the last connection was terminated or the current time, if
2925 connection is still active, in milliseconds since 1970-01-01 UTC.
2926 </desc>
2927 </attribute>
2928
2929 <attribute name="bytesSent" type="unsigned long long" readonly="yes">
2930 <desc>
2931 How many bytes were sent in last or current, if still active, connection.
2932 </desc>
2933 </attribute>
2934
2935 <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
2936 <desc>
2937 How many bytes were sent in all connections.
2938 </desc>
2939 </attribute>
2940
2941 <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
2942 <desc>
2943 How many bytes were received in last or current, if still active, connection.
2944 </desc>
2945 </attribute>
2946
2947 <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
2948 <desc>
2949 How many bytes were received in all connections.
2950 </desc>
2951 </attribute>
2952
2953 <attribute name="user" type="wstring" readonly="yes">
2954 <desc>
2955 Login user name supplied by the client.
2956 </desc>
2957 </attribute>
2958
2959 <attribute name="domain" type="wstring" readonly="yes">
2960 <desc>
2961 Login domain name supplied by the client.
2962 </desc>
2963 </attribute>
2964
2965 <attribute name="clientName" type="wstring" readonly="yes">
2966 <desc>
2967 The client name supplied by the client.
2968 </desc>
2969 </attribute>
2970
2971 <attribute name="clientIP" type="wstring" readonly="yes">
2972 <desc>
2973 The IP address of the client.
2974 </desc>
2975 </attribute>
2976
2977 <attribute name="clientVersion" type="unsigned long" readonly="yes">
2978 <desc>
2979 The client software version number.
2980 </desc>
2981 </attribute>
2982
2983 <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
2984 <desc>
2985 Public key exchange method used when connection was established.
2986 Values: 0 - RDP4 public key exchange scheme.
2987 1 - X509 sertificates were sent to client.
2988 </desc>
2989 </attribute>
2990
2991 </interface>
2992
2993 <interface
2994 name="IConsole" extends="$unknown"
2995 uuid="1DEA5C4B-0753-4193-B909-22330F64EC45"
2996 wsmap="managed"
2997 >
2998 <attribute name="machine" type="IMachine" readonly="yes">
2999 <desc>
3000 Machine object this console is sessioned with.
3001 <note>
3002 This is a convenience property, it has the same value as
3003 <link to="ISession::machine"/> of the corresponding session
3004 object.
3005 </note>
3006 </desc>
3007 </attribute>
3008
3009 <attribute name="state" type="MachineState" readonly="yes">
3010 <desc>
3011 Current execution state of the machine.
3012 <note>
3013 This property always returns the same value as the corresponding
3014 property of the IMachine object this console is sessioned with.
3015 For the process, that owns (executes) the VM, this is the
3016 preferrable way of quierying the VM state, because no IPC
3017 calls are made.
3018 </note>
3019 </desc>
3020 </attribute>
3021
3022 <attribute name="guest" type="IGuest" readonly="yes">
3023 <desc>Guest object.</desc>
3024 </attribute>
3025
3026 <attribute name="keyboard" type="IKeyboard" readonly="yes">
3027 <desc>
3028 Virtual keyboard object.
3029 <note>
3030 If the machine is not running, any attempt to use
3031 the returned object will result in an error.
3032 </note>
3033 </desc>
3034 </attribute>
3035
3036 <attribute name="mouse" type="IMouse" readonly="yes">
3037 <desc>
3038 Virtual mouse object.
3039 <note>
3040 If the machine is not running, any attempt to use
3041 the returned object will result in an error.
3042 </note>
3043 </desc>
3044 </attribute>
3045
3046 <attribute name="display" type="IDisplay" readonly="yes">
3047 <desc>Virtual display object.
3048 <note>
3049 If the machine is not running, any attempt to use
3050 the returned object will result in an error.
3051 </note>
3052 </desc>
3053 </attribute>
3054
3055 <attribute name="debugger" type="IMachineDebugger" readonly="yes">
3056 <desc>Debugging interface.</desc>
3057 </attribute>
3058
3059 <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
3060 <desc>
3061 Collection of USB devices currently attached to the virtual
3062 USB controller.
3063 <note>
3064 The collection is empty if the machine is not running.
3065 </note>
3066 </desc>
3067 </attribute>
3068
3069 <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
3070 <desc>
3071 List of USB devices currently attached to the remote VRDP client.
3072 Once a new device is physically attached to the remote host computer,
3073 it appears in this list and remains there until detached.
3074 </desc>
3075 </attribute>
3076
3077 <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
3078 <desc>
3079 Collection of shared folders for the current session.
3080 This collection is initially empty and is cleared once the
3081 session is closed. On other words, this collection represents
3082 transient shares (as opposed to <link to="IMachine::sharedFolders"/>
3083 that stores permanent shares stored in the settings file).
3084
3085 New folders to share are added to the collection using
3086 <link to="#createSharedFolder"/>. An existing shared folder can
3087 be removed using <link to="#removeSharedFolder"/>.
3088 </desc>
3089 </attribute>
3090
3091 <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
3092 <desc>
3093 Interface that provides information on Remote Display (VRDP) connection.
3094 </desc>
3095 </attribute>
3096
3097 <method name="powerUp">
3098 <desc>
3099 Starts the virtual machine execution using the current machine
3100 state (i.e. its current execution state, current settings and
3101 current hard disks).
3102
3103 If the machine is powered off or aborted, the execution will
3104 start from the beginning (as if the real hardware were just
3105 powered on).
3106
3107 If the machine is in the <link to="MachineState::Saved"/> state,
3108 it will continue its execution the point where the state has
3109 beem saved.
3110
3111 <see>#saveState</see>
3112 </desc>
3113 <param name="progress" type="IProgress" dir="return">
3114 <desc>Progress object to track the operation completion.</desc>
3115 </param>
3116 </method>
3117
3118 <method name="powerDown">
3119 <desc>
3120 Stops the virtual machine execution.
3121 After this operation completes, the machine will go to the
3122 PoweredOff state.
3123 </desc>
3124 </method>
3125
3126 <method name="reset">
3127 <desc>Resets the virtual machine.</desc>
3128 </method>
3129
3130 <method name="pause">
3131 <desc>Pauses the virtual machine execution.</desc>
3132 </method>
3133
3134 <method name="resume">
3135 <desc>Resumes the virtual machine execution.</desc>
3136 </method>
3137
3138 <method name="powerButton">
3139 <desc>Send the ACPI power button event to the guest.</desc>
3140 </method>
3141
3142 <method name="saveState">
3143 <desc>
3144 Saves the current execution state of a running virtual machine
3145 and stops its executiuon.
3146
3147 After this operation completes, the machine will go to the
3148 Saved state. Next time it is powered up, this state will
3149 be restored and the machine will continue its execution from
3150 the place where it was saved.
3151
3152 This operation differs from taking a snapshot to the effect
3153 that it doesn't create new differencing hard disks. Also, once
3154 the machine is powered up from the state saved using this method,
3155 the saved state is deleted, so it will be impossible to return
3156 to this state later.
3157
3158 <note>On success, this method implicitly calls <link
3159 to="IMachine::saveSettings"/> to save all current machine
3160 settings (including runtime changes to the DVD drive, etc.).
3161 Together with the impossibility to change any VM settings when
3162 it is in the Saved state, this guarantees the adequate hardware
3163 configuration of the machine when it is restored from the saved
3164 state file.</note>
3165
3166 <note>
3167 The machine must be in the Running or Paused state, otherwise
3168 the operation will fail.
3169 </note>
3170
3171 <see><link to="#takeSnapshot"/></see>
3172 </desc>
3173 <param name="progress" type="IProgress" dir="return">
3174 <desc>Progress object to track the operation completion.</desc>
3175 </param>
3176 </method>
3177
3178 <method name="discardSavedState">
3179 <desc>
3180 Discards (deletes) the saved state of the virtual machine
3181 previously created by <link to="#saveState"/>. Next time the
3182 machine is powered up, a clean boot will occur.
3183 <note>
3184 This operation is equivalent to resetting or powering off
3185 the machine without doing a proper shutdown in the guest OS.
3186 </note>
3187 </desc>
3188 </method>
3189
3190 <method name="getDeviceActivity">
3191 <desc>
3192 Gets the current activity type of a given device or device group.
3193 </desc>
3194 <param name="type" type="DeviceType" dir="in"/>
3195 <param name="activity" type="DeviceActivity" dir="return"/>
3196 </method>
3197
3198 <method name="attachUSBDevice">
3199 <desc>
3200 Attaches a host USB device with the given UUID to the
3201 USB controller of the virtual machine.
3202
3203 The device needs to be in one of the following states:
3204 <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
3205 <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link> or
3206 <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>,
3207 otherwise an error is immediately returned.
3208
3209 When the device state is
3210 <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
3211 an error may also be returned if the host computer
3212 refuses to release it for some reason.
3213
3214 <see>IUSBController::DeviceFilters, USBDeviceState</see>
3215 </desc>
3216 <param name="id" type="uuid" dir="in">
3217 <desc>UUID of the host USB device to attach.</desc>
3218 </param>
3219 </method>
3220
3221 <method name="detachUSBDevice">
3222 <desc>
3223 Detaches an USB device with the given UUID from the USB controller
3224 oif the virtual machine.
3225
3226 After this method succeeds, the VirtualBox server reinitiates
3227 all USB filters as if the device were just physically attached
3228 to the host, but filters of this machine are ignored to avoid
3229 a possible automatic reattachment.
3230
3231 <see>IUSBController::DeviceFilters, USBDeviceState</see>
3232 </desc>
3233 <param name="id" type="uuid" dir="in">
3234 <desc>UUID of the USB device to detach.</desc>
3235 </param>
3236 <param name="device" type="IUSBDevice" dir="return">
3237 <desc>Detached USB device.</desc>
3238 </param>
3239 </method>
3240
3241 <method name="createSharedFolder">
3242 <desc>
3243 Creates a new shared folder by associating the given logical
3244 name with the given host path, adds it to the collection of
3245 shared folders and starts sharing it.
3246 Refer to the description of <link to="ISharedFolder"/> to read
3247 about logical name unicity.
3248 </desc>
3249 <param name="name" type="wstring" dir="in">
3250 <desc>Unique logical name of the shared folder.</desc>
3251 </param>
3252 <param name="hostPath" type="wstring" dir="in">
3253 <desc>Full path to the shared folder in the host file system.</desc>
3254 </param>
3255 </method>
3256
3257 <method name="removeSharedFolder">
3258 <desc>
3259 Removes a shared folder with the given name previously created
3260 by <link to="#createSharedFolder"/> from the collection of
3261 shared folders and stops sharing it.
3262 </desc>
3263 <param name="name" type="wstring" dir="in">
3264 <desc>Logical name of the shared folder to remove.</desc>
3265 </param>
3266 </method>
3267
3268 <method name="takeSnapshot">
3269 <desc>
3270 Saves the current execution state and all settings of the
3271 machine and creates differencing images for all
3272 normal (non-independent) hard disks.
3273
3274 This method can be called for a PoweredOff, Saved, Running or
3275 Paused virtual machine. When the machine is PoweredOff, an
3276 offline <link to="ISnapshot">snapshot</link> is created,
3277 in all other cases -- an online snapshot.
3278
3279 The taken snapshot is always based on the
3280 <link to="IMachine::currentSnapshot">current
3281 snapshot</link> of the associated virtual machine and becomes
3282 a new current snapshot.
3283
3284 <note>This method implicitly calls <link
3285 to="IMachine::saveSettings"/> to save all current machine
3286 settings before taking an offline snapshot.</note>
3287
3288 <see>ISnapshot, <link to="#saveState"/></see>
3289 </desc>
3290 <param name="name" type="wstring" dir="in">
3291 <desc>Short name for the snapshot.</desc>
3292 </param>
3293 <param name="description" type="wstring" dir="in">
3294 <desc>Optional description of the snapshot.</desc>
3295 </param>
3296 <param name="progress" type="IProgress" dir="return">
3297 <desc>Progress object to track the operation completion.</desc>
3298 </param>
3299 </method>
3300
3301 <method name="discardSnapshot">
3302 <desc>
3303
3304 Starts discarding the specified snapshot. The execution state
3305 and settings of the associated machine stored in the snapshot
3306 will be deleted. The contents of all differencing hard disks of
3307 this snapshot will be merged with the contents of their
3308 dependent child hard disks to keep the, disks valid (in other
3309 words, all changes represented by hard disks being discarded
3310 will be propagated to their child hard disks). After that, this
3311 snapshot's differencing hard disks will be deleted. The parent
3312 of this snapshot will become a new parent for all its child
3313 snapshots.
3314
3315 If the discarded snapshot is the current one, its parent
3316 snapshot will become a new current snapshot. The current machine
3317 state is not directly affected in this case, except that
3318 currently attached differencing hard disks based on hard disks
3319 of the discarded snapshot will be also merged as described
3320 above.
3321
3322 If the discarded snapshot is the first one (the root snapshot)
3323 and it has exactly one child snapshot, this child snapshot will
3324 become the first snapshot after discarding. If there are no
3325 children at all (i.e. the first snapshot is the only snapshot of
3326 the machine), both the current and the first snapshot of the
3327 machine will be set to null. In all other cases, the first
3328 snapshot cannot be discarded.
3329
3330 You cannot discard the snapshot if it stores <link
3331 to="HardDiskType::NormalHardDisk">normal</link>
3332 (non-differencing) hard disks that have differencing hard disks
3333 based on them. Snapshots of such kind can be discarded only when
3334 every normal hard disk has either no children at all or exactly
3335 one child. In the former case, the normal hard disk simply
3336 becomes unused (i.e. not attached to any VM). In the latter
3337 case, it receives all the changes strored in the child hard
3338 disk, and then it replaces the child hard disk in the
3339 configuration of the corresponding snapshot or machine.
3340
3341 Also, you cannot discard the snapshot if it stores hard disks
3342 (of any type) having differencing child hard disks that belong
3343 to other machines. Such snapshots can be only discarded after
3344 you discard all snapshots of other machines containing "foreign"
3345 child disks, or detach these "foreign" child disks from machines
3346 they are attached to.
3347
3348 One particular example of the snapshot storing normal hard disks
3349 is the first snapshot of a virtual machine that had normal hard
3350 disks attached when taking the snapshot. Be careful when
3351 discarding such snapshots because this implicitly commits
3352 changes (made since the snapshot being discarded has been taken)
3353 to normal hard disks (as described above), which may be not what
3354 you want.
3355
3356 The virtual machine is put to the <link
3357 to="MachineState::Discarding">Discarding</link> state until the
3358 discard operation is completed.
3359
3360 <note>The machine must not be running, otherwise the operation
3361 will fail.</note>
3362
3363 <note>
3364 Child hard disks of all normal hard disks of the
3365 discarded snapshot must be <link to="IHardDisk::accessible">
3366 accessible</link> for this operation to succeed.
3367 In particular, this means that all virtual machines,
3368 whose hard disks are directly or indirectly based on
3369 the hard disks of discarded snapshot, must be powered off.
3370 </note>
3371 <note>
3372 Merging hard disk contents can be very time and disk space
3373 consuming, if these disks are big in size and have many
3374 children. However, if the snapshot being discarded is the last
3375 (head) snapshot on the branch, the operation will be rather
3376 quick.
3377 </note>
3378 <note>
3379 Note that discarding the current snapshot
3380 will imlicitly call <link to="IMachine::saveSettings()"/> to
3381 make all current machine settings permanent.
3382 </note>
3383 </desc>
3384 <param name="id" type="uuid" dir="in">
3385 <desc>UUID of the snapshot to discard.</desc>
3386 </param>
3387 <param name="progress" type="IProgress" dir="return">
3388 <desc>Progress object to track the operation completion.</desc>
3389 </param>
3390 </method>
3391
3392 <method name="discardCurrentState">
3393 <desc>
3394 This operation is similar to <link to="#discardSnapshot()"/> but
3395 affects the current machine state. This means that the state stored
3396 in the current snapshot will become a new current state, and
3397 all current settings of the machine and changes stored in
3398 differencing hard disks will be lost.
3399
3400 After this operation is successfully completed, new empty
3401 differencing hard disks are created for all normal hard disks
3402 of the machine.
3403
3404 If the current snapshot of the machine is an online snapshot,
3405 the machine will go to the <link to="MachineState::Saved">
3406 saved state</link>, so that the next time it is powered on,
3407 the execution state will be restored from the current snapshot.
3408
3409 <note>The machine must not be running, otherwise the operation
3410 will fail.</note>
3411
3412 <note>If the machine state is <link
3413 to="MachineState::Saved">Saved</link> prior to this operation,
3414 the saved state file will be implicitly discarded (as if <link
3415 to="IConsole::discardSavedState()"/> were called).</note>
3416
3417 </desc>
3418 <param name="progress" type="IProgress" dir="return">
3419 <desc>Progress object to track the operation completion.</desc>
3420 </param>
3421 </method>
3422
3423 <method name="discardCurrentSnapshotAndState">
3424 <desc>
3425
3426 This method is equivalent to doing <link
3427 to="#discardSnapshot">discardSnapshot</link> (<link
3428 to="IMachine::currentSnapshot">currentSnapshot</link>.<link
3429 to="ISnapshot::id">id()</link>, ...) followed by <link
3430 to="#discardCurrentState()"/>.
3431
3432 As a result, the machine will be fully restored from the
3433 snapshot preceeding the current snapshot, while both the current
3434 snapshot and the current machine state will be discarded.
3435
3436 If the current snapshot is the first snapshot of the machine
3437 (i.e. it has the only snapshot), the current machine state will
3438 be discarded <b>before</b> discarding the snapshot. In other
3439 words, the machine will be restored from its last snapshot,
3440 before discarding it. This differs from performing a single
3441 <link to="#discardSnapshot()"/> call (note that no <link
3442 to="#discardCurrentState()"/> will be possible after it) to the
3443 effect that the latter will preserve the current state instead
3444 of discarding it.
3445
3446 Unless explicitly mentioned otherwise, all remarks and
3447 limitations of the above two methods also apply to this method.
3448
3449 <note>The machine must not be running, otherwise the operation
3450 will fail.</note>
3451
3452 <note>If the machine state is <link
3453 to="MachineState::Saved">Saved</link> prior to this operation,
3454 the saved state file will be implicitly discarded (as if <link
3455 to="IConsole::discardSavedState()"/> were called).</note>
3456
3457 <note>
3458 This method is more efficient than calling two above
3459 methods separately: it requires less IPC calls and provides
3460 a single progress object.
3461 </note>
3462
3463 </desc>
3464 <param name="progress" type="IProgress" dir="return">
3465 <desc>Progress object to track the operation completion.</desc>
3466 </param>
3467 </method>
3468
3469 <method name="registerCallback">
3470 <desc>
3471 Registers a new console callback on this instance. The methods of the
3472 callback interface will be called by this instance when the appropriate
3473 event occurs.
3474 </desc>
3475 <param name="callback" type="IConsoleCallback" dir="in"/>
3476 </method>
3477
3478 <method name="unregisterCallback">
3479 <desc>
3480 Unregisters the console callback previously registered using
3481 <link to="#registerCallback"/>.
3482 </desc>
3483 <param name="callback" type="IConsoleCallback" dir="in"/>
3484 </method>
3485
3486 </interface>
3487
3488 <!--
3489 // IHost
3490 /////////////////////////////////////////////////////////////////////////
3491 -->
3492
3493 <interface
3494 name="IHostDVDDrive" extends="$unknown"
3495 uuid="c2308775-85f3-45ab-ade5-97f02d1e61e0"
3496 wsmap="managed"
3497 >
3498 <attribute name="name" type="wstring" readonly="yes">
3499 <desc>Returns the platform device identifier.</desc>
3500 </attribute>
3501 <attribute name="description" type="wstring" readonly="yes">
3502 <desc>Returns a human readable description for the drive.</desc>
3503 </attribute>
3504
3505 </interface>
3506
3507 <enumerator
3508 name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
3509 uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
3510 />
3511
3512 <collection
3513 name="IHostDVDDriveCollection" type="IHostDVDDrive"
3514 enumerator="IHostDVDDriveEnumerator"
3515 uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
3516 readonly="yes"
3517 >
3518 <method name="findByName">
3519 <desc>
3520 Searches this collection for a host drive with the given name.
3521 <note>
3522 The method returns an error if the given name does not
3523 correspond to any host drive in the collection.
3524 </note>
3525 </desc>
3526 <param name="name" type="wstring" dir="in">
3527 <desc>Name of the host drive to search for</desc>
3528 </param>
3529 <param name="drive" type="IHostDVDDrive" dir="return">
3530 <desc>Found host drive object</desc>
3531 </param>
3532 </method>
3533 </collection>
3534
3535 <interface
3536 name="IHostFloppyDrive" extends="$unknown"
3537 uuid="2b2ad1ab-2ea9-4cf8-be3c-2a76677d8725"
3538 wsmap="managed"
3539 >
3540 <attribute name="name" type="wstring" readonly="yes">
3541 <desc>Returns the platform device identifier.</desc>
3542 </attribute>
3543 </interface>
3544
3545 <enumerator
3546 name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
3547 uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
3548 />
3549
3550 <collection
3551 name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
3552 enumerator="IHostFloppyDriveEnumerator"
3553 uuid="fd84bb86-c59a-4037-a557-755ff263a460"
3554 readonly="yes"
3555 >
3556 <method name="findByName">
3557 <desc>
3558 Searches this collection for a host drive with the given name.
3559 <note>
3560 The method returns an error if the given name does not
3561 correspond to any host drive in the collection.
3562 </note>
3563 </desc>
3564 <param name="name" type="wstring" dir="in">
3565 <desc>Name of the host drive to search for</desc>
3566 </param>
3567 <param name="drive" type="IHostFloppyDrive" dir="return">
3568 <desc>Found host drive object</desc>
3569 </param>
3570 </method>
3571 </collection>
3572
3573<if target="midl">
3574 <interface
3575 name="IHostNetworkInterface" extends="$unknown"
3576 uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
3577 wsmap="managed"
3578 >
3579 <attribute name="name" type="wstring" readonly="yes">
3580 <desc>Returns the host network interface name.</desc>
3581 </attribute>
3582
3583 <attribute name="id" type="uuid" readonly="yes">
3584 <desc>Returns the interface UUID.</desc>
3585 </attribute>
3586 </interface>
3587
3588 <enumerator
3589 name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
3590 uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
3591 />
3592
3593 <collection
3594 name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
3595 enumerator="IHostNetworkInterfaceEnumerator"
3596 uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
3597 readonly="yes"
3598 >
3599 <method name="findByName">
3600 <desc>
3601 Searches this collection for a host network interface with the given name.
3602 <note>
3603 The method returns an error if the given name does not
3604 correspond to any host network interface in the collection.
3605 </note>
3606 </desc>
3607 <param name="name" type="wstring" dir="in">
3608 <desc>Name of the host network interface to search for.</desc>
3609 </param>
3610 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
3611 <desc>Found host network interface object.</desc>
3612 </param>
3613 </method>
3614 <method name="findById">
3615 <desc>
3616 Searches this collection for a host network interface with the given GUID.
3617 <note>
3618 The method returns an error if the given GUID does not
3619 correspond to any host network interface in the collection.
3620 </note>
3621 </desc>
3622 <param name="id" type="uuid" dir="in">
3623 <desc>GUID of the host network interface to search for.</desc>
3624 </param>
3625 <param name="networkInterface" type="IHostNetworkInterface" dir="return">
3626 <desc>Found host network interface object.</desc>
3627 </param>
3628 </method>
3629 </collection>
3630</if>
3631
3632 <interface
3633 name="IHost" extends="$unknown"
3634 uuid="81729c26-1aec-46f5-b7c0-cc7364738fdb"
3635 wsmap="managed"
3636 >
3637 <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
3638 <desc>List of DVD drives available on the host.</desc>
3639 </attribute>
3640
3641 <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
3642 <desc>List of floppy drives available on the host.</desc>
3643 </attribute>
3644
3645 <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
3646 <desc>
3647 List of USB devices currently attached to the host.
3648 Once a new device is physically attached to the host computer,
3649 it appears in this list and remains there until detached.
3650 </desc>
3651 </attribute>
3652
3653 <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
3654 <desc>
3655 List of USB device filters in action.
3656 When a new device is physically attached to the host computer,
3657 filters from this list are applied to it (in order they are stored
3658 in the list). The first matched filter will determine the
3659 <link to="IHostUSBDeviceFilter::action">action</link>
3660 performed on the device.
3661
3662 Unless the device is ignored by these filters, filters of all
3663 currently running virtual machines
3664 (<link to="IUSBController::DeviceFilters"/>) are applied to it.
3665
3666 <see>IHostUSBDeviceFilter, USBDeviceState</see>
3667 </desc>
3668 </attribute>
3669
3670<if target="midl">
3671 <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
3672 <desc>List of host network interfaces currently defined on the host.</desc>
3673 </attribute>
3674</if>
3675
3676 <attribute name="processorCount" type="unsigned long" readonly="yes">
3677 <desc>Number of (logical) CPUs installed in the host system.</desc>
3678 </attribute>
3679
3680 <attribute name="processorSpeed" type="unsigned long" readonly="yes">
3681 <desc>(Approximate) speed of the host CPU in Megahertz.</desc>
3682 </attribute>
3683
3684 <attribute name="processorDescription" type="wstring" readonly="yes">
3685 <desc>Description string of the host CPU.</desc>
3686 </attribute>
3687
3688 <attribute name="memorySize" type="unsigned long" readonly="yes">
3689 <desc>Amount of system memory in megabytes installed in the host system.</desc>
3690 </attribute>
3691
3692 <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
3693 <desc>Available system memory in the host system.</desc>
3694 </attribute>
3695
3696 <attribute name="operatingSystem" type="wstring" readonly="yes">
3697 <desc>Name of the host system's operating system.</desc>
3698 </attribute>
3699
3700 <attribute name="OSVersion" type="wstring" readonly="yes">
3701 <desc>Host operating system's version string.</desc>
3702 </attribute>
3703
3704 <attribute name="UTCTime" type="long long" readonly="yes">
3705 <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
3706 </attribute>
3707
3708<if target="midl">
3709 <method name="createHostNetworkInterface">
3710 <desc>
3711 Creates a new adapter for Host Interface Networking.
3712 </desc>
3713 <param name="name" type="wstring" dir="in">
3714 <desc>
3715 Adapter name.
3716 </desc>
3717 </param>
3718 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
3719 <desc>
3720 Created host interface object.
3721 </desc>
3722 </param>
3723 <param name="progress" type="IProgress" dir="return">
3724 <desc>
3725 Progress object to track the operation completion.
3726 </desc>
3727 </param>
3728 </method>
3729 <method name="removeHostNetworkInterface">
3730 <desc>
3731 Removes the given host network interface.
3732 </desc>
3733 <param name="id" type="uuid" dir="in">
3734 <desc>
3735 Adapter GUID.
3736 </desc>
3737 </param>
3738 <param name="hostInterface" type="IHostNetworkInterface" dir="out">
3739 <desc>
3740 Removed host interface object.
3741 </desc>
3742 </param>
3743 <param name="progress" type="IProgress" dir="return">
3744 <desc>
3745 Progress object to track the operation completion.
3746 </desc>
3747 </param>
3748 </method>
3749</if>
3750
3751 <method name="createUSBDeviceFilter">
3752 <desc>
3753 Creates a new USB device filter. All attributes except
3754 the filter name are set to <tt>null</tt> (any match),
3755 <i>active</i> is <tt>false</tt> (the filter is not active).
3756
3757 The created filter can be added to the list of filters using
3758 <link to="#insertUSBDeviceFilter()"/>.
3759
3760 <see>#USBDeviceFilters</see>
3761 </desc>
3762 <param name="name" type="wstring" dir="in">
3763 <desc>
3764 Filter name. See <link to="IHostUSBDeviceFilter::name"/>
3765 for more info.
3766 </desc>
3767 </param>
3768 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
3769 <desc>Created filter object.</desc>
3770 </param>
3771 </method>
3772
3773 <method name="insertUSBDeviceFilter">
3774 <desc>
3775 Inserts the given USB device to the specified position
3776 in the list of filters.
3777
3778 Positions are numbered starting from <tt>0</tt>. If the specified
3779 position is equal to or greater than the number of elements in
3780 the list, the filter is added to the end of the collection.
3781
3782 <note>
3783 Duplicates are not allowed, so an attempt to insert a
3784 filter that is already in the list, will return an
3785 error.
3786 </note>
3787
3788 <see>#USBDeviceFilters</see>
3789 </desc>
3790 <param name="position" type="unsigned long" dir="in">
3791 <desc>Position to insert the filter to.</desc>
3792 </param>
3793 <param name="filter" type="IHostUSBDeviceFilter" dir="in">
3794 <desc>USB device filter to insert.</desc>
3795 </param>
3796 </method>
3797
3798 <method name="removeUSBDeviceFilter">
3799 <desc>
3800 Removes a USB device filter from the specified position in the
3801 list of filters.
3802
3803 Positions are numbered starting from <tt>0</tt>. Specifying a
3804 position equal to or greater than the number of elements in
3805 the list will produce an error.
3806
3807 <see>#USBDeviceFilters</see>
3808 </desc>
3809 <param name="position" type="unsigned long" dir="in">
3810 <desc>Position to remove the filter from.</desc>
3811 </param>
3812 <param name="filter" type="IHostUSBDeviceFilter" dir="return">
3813 <desc>Removed USB device filter.</desc>
3814 </param>
3815 </method>
3816
3817 </interface>
3818
3819 <!--
3820 // ISystemProperties
3821 /////////////////////////////////////////////////////////////////////////
3822 -->
3823
3824 <interface
3825 name="ISystemProperties"
3826 extends="$unknown"
3827 uuid="6dc28c62-7924-43de-8336-fa754aa531d7"
3828 wsmap="struct"
3829 >
3830 <desc>
3831 The ISystemProperties interface represents global properties
3832 of the given VirtualBox installation.
3833
3834 These properties define limits and default values for various
3835 attributes and parameters.
3836
3837 Most of the properties are read-only, but some can be changed by
3838 a user.
3839 </desc>
3840
3841 <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
3842 <desc>Minium guest system memory in Megabytes.</desc>
3843 </attribute>
3844
3845 <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
3846 <desc>Maximum guest system memory in Megabytes.</desc>
3847 </attribute>
3848
3849 <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
3850 <desc>Minimum guest video memory in Megabytes.</desc>
3851 </attribute>
3852
3853 <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
3854 <desc>Maximum guest video memory in Megabytes.</desc>
3855 </attribute>
3856
3857 <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
3858 <desc>Maximum size of a virtual disk image in Megabytes.</desc>
3859 </attribute>
3860
3861 <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
3862 <desc>
3863 Number of network adapters associated with every
3864 <link to="IMachine"/> instance.
3865 </desc>
3866 </attribute>
3867
3868 <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
3869 <desc>
3870 Maximum device position in the boot order. This value corresponds
3871 to the total number of devices a machine can boot from, to make it
3872 possible to include all possible devices to the boot list.
3873 <see><link to="IMachine::setBootOrder()"/></see>
3874 </desc>
3875 </attribute>
3876
3877 <attribute name="defaultVDIFolder" type="wstring">
3878 <desc>
3879 Full path to the default directory used to create new or open
3880 existing virtual disk images when an image file name contains no
3881 path.
3882
3883 The initial value of this property is
3884 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
3885 VirtualBox_home</link><tt>&gt;/VDI</tt>.
3886
3887 <note>
3888 Setting this property to <tt>null</tt> will restore the
3889 initial value.
3890 </note>
3891 <note>
3892 When settings this property, the specified path can be
3893 absolute (full path) or relative
3894 to the <link to="IVirtualBox::homeFolder">
3895 VirtualBox home directory</link>.
3896 When reading this property, a full path is
3897 always returned.
3898 </note>
3899 <note>
3900 The specified path may not exist, it will be created
3901 when necessary.
3902 </note>
3903
3904 <see>
3905 <link to="IVirtualBox::createHardDisk()"/>,
3906 <link to="IVirtualBox::openVirtualDiskImage()"/>
3907 </see>
3908 </desc>
3909 </attribute>
3910
3911 <attribute name="defaultMachineFolder" type="wstring">
3912 <desc>
3913 Full path to the default directory used to create new or open
3914 existing machines when a settings file name contains no
3915 path.
3916
3917 The initial value of this property is
3918 <tt>&lt;</tt><link to="IVirtualBox::homeFolder">
3919 VirtualBox_home</link><tt>&gt;/Machines</tt>.
3920
3921 <note>
3922 Setting this property to <tt>null</tt> will restore the
3923 initial value.
3924 </note>
3925 <note>
3926 When settings this property, the specified path can be
3927 absolute (full path) or relative
3928 to the <link to="IVirtualBox::homeFolder">
3929 VirtualBox home directory</link>.
3930 When reading this property, a full path is
3931 always returned.
3932 </note>
3933 <note>
3934 The specified path may not exist, it will be created
3935 when necessary.
3936 </note>
3937
3938 <see>
3939 <link to="IVirtualBox::createMachine()"/>,
3940 <link to="IVirtualBox::openMachine()"/>
3941 </see>
3942 </desc>
3943 </attribute>
3944
3945 <attribute name="remoteDisplayAuthLibrary" type="wstring">
3946 <desc>
3947 Path to the library that provides authentication
3948 for VRDP clients. The library is used if authentication
3949 type is set to "external" in the VM RemoteDisplay
3950 configuration.
3951
3952 The initial value of this property is <tt>VRDPAuth</tt>.
3953 That is library called VRDPAuth in one of default library
3954 directories. A full path can be used as well.
3955
3956 <note>
3957 The library name does not include the file extension.
3958 </note>
3959 <note>
3960 Setting this property to <tt>null</tt> will restore the
3961 initial value.
3962 </note>
3963 </desc>
3964 </attribute>
3965
3966 <attribute name="HWVirtExEnabled" type="boolean">
3967 <desc>
3968 This specifies the default value for hardware virtualization
3969 extensions. If enabled, virtual machines will make use of
3970 hardware virtualization extensions such as Intel VT-x and
3971 AMD SVM by default. This value can be overridden by each VM
3972 using their <link to="IMachine::HWVirtExEnabled"/> property.
3973 </desc>
3974 </attribute>
3975
3976 </interface>
3977
3978 <!--
3979 // IGuest
3980 /////////////////////////////////////////////////////////////////////////
3981 -->
3982
3983 <interface
3984 name="IGuestOSType" extends="$unknown"
3985 uuid="da94f478-1f37-4726-b750-2235950dc2fe"
3986 wsmap="struct"
3987 >
3988 <attribute name="id" type="wstring" readonly="yes">
3989 <desc>Guest OS identifier string.</desc>
3990 </attribute>
3991
3992 <attribute name="description" type="wstring" readonly="yes">
3993 <desc>Human readable description of the guest OS.</desc>
3994 </attribute>
3995
3996 <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
3997 <desc>Recommended RAM size in Megabytes.</desc>
3998 </attribute>
3999
4000 <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
4001 <desc>Recommended video RAM size in Megabytes.</desc>
4002 </attribute>
4003
4004 <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
4005 <desc>Recommended hard disk size in Megabytes.</desc>
4006 </attribute>
4007 </interface>
4008
4009
4010 <enumerator
4011 name="IGuestOSTypeEnumerator" type="IGuestOSType"
4012 uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
4013 />
4014
4015 <collection
4016 name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
4017 uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
4018 readonly="yes"
4019 />
4020
4021 <interface
4022 name="IGuest" extends="$unknown"
4023 uuid="4b71ac5f-db5a-4b4f-af6e-a947d4b83dda"
4024 wsmap="suppress"
4025 >
4026 <desc>
4027 The IGuest interface represents a guest (virtual machine's) operating
4028 system. It provides information about the Guest Additions and other
4029 guest OS properties.
4030
4031 <see>IConsole::guest</see>
4032 </desc>
4033
4034 <attribute name="OSTypeId" type="wstring" readonly="yes">
4035 <desc>
4036 Identifier of the Guest OS type as reported by the Guest
4037 Additions.
4038 You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
4039 an IGuestOSType object representing details about the given
4040 Guest OS type.
4041 <note>
4042 If Guest Additions are not installed, this value will be
4043 the same as <link to="IMachine::OSTypeId"/>.
4044 </note>
4045 </desc>
4046 </attribute>
4047
4048 <attribute name="additionsActive" type="boolean" readonly="yes">
4049 <desc>
4050 Flag whether the Guest Additions are installed and active
4051 in which case their version will be returned by the
4052 <link to="#additionsVersion"/> property.
4053 </desc>
4054 </attribute>
4055
4056 <attribute name="additionsVersion" type="wstring" readonly="yes">
4057 <desc>
4058 Version of the Guest Additions (3 decimal numbers separated
4059 by dots) or empty when the Additions are not installed. The
4060 Additions may also report a version but yet not be active as
4061 the version might be refused by VirtualBox (incompatible) or
4062 other failures occured.
4063 </desc>
4064 </attribute>
4065
4066 <method name="setCredentials">
4067 <desc>
4068 Store login credentials that can be queried by guest operating
4069 systems with Additions installed. The credentials are transient
4070 to the session and the guest may also choose to erase them. Note
4071 that the caller cannot determine whether the guest operating system
4072 has queried or made use of the credentials.
4073 </desc>
4074 <param name="userName" type="wstring" dir="in">
4075 <desc>User name string, can be empty</desc>
4076 </param>
4077 <param name="password" type="wstring" dir="in">
4078 <desc>Password string, can be empty</desc>
4079 </param>
4080 <param name="domain" type="wstring" dir="in">
4081 <desc>Domain name (guest logon scheme specific), can be emtpy</desc>
4082 </param>
4083 <param name="allowInteractiveLogon" type="boolean" dir="in">
4084 <desc>
4085 Flag whether the guest should alternatively allow the user to
4086 interactively specify different credentials. This flag might
4087 not be supported by all versions of the Additions.
4088 </desc>
4089 </param>
4090 </method>
4091
4092 </interface>
4093
4094
4095 <!--
4096 // IProgress
4097 /////////////////////////////////////////////////////////////////////////
4098 -->
4099
4100 <enumerator
4101 name="IProgressEnumerator" type="IProgress"
4102 uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
4103 />
4104
4105 <collection
4106 name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
4107 uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
4108 readonly="yes"
4109 />
4110
4111 <interface
4112 name="IProgress" extends="$unknown"
4113 uuid="10CC03A1-717E-429b-992D-C67B56175A51"
4114 wsmap="managed"
4115 >
4116 <desc>
4117 The IProgress interface represents a task progress object that allows
4118 to wait for the completion of some asynchronous task.
4119
4120 The task consists of one or more operations that run sequentially,
4121 one after one. There is an individual percent of completion of the
4122 current operation and the percent of completion of the task as a
4123 whole. Similarly, you can wait for the completion of a particular
4124 operation or for the completion of the whole task.
4125
4126 Every operation is identified by a number (starting from 0)
4127 and has a separate description.
4128 </desc>
4129
4130 <attribute name="id" type="uuid" readonly="yes">
4131 <desc>ID of the task.</desc>
4132 </attribute>
4133
4134 <attribute name="description" type="wstring" readonly="yes">
4135 <desc>Description of the task.</desc>
4136 </attribute>
4137
4138 <attribute name="initiator" type="$unknown" readonly="yes">
4139 <desc>Initiator of the task.</desc>
4140 </attribute>
4141
4142 <attribute name="cancelable" type="boolean" readonly="yes">
4143 <desc>Whether the task can be interrupted.</desc>
4144 </attribute>
4145
4146 <attribute name="percent" type="long" readonly="yes">
4147 <desc>
4148 Current task progress value in percent.
4149 This value depends on how many operations are already complete.
4150 </desc>
4151 </attribute>
4152
4153 <attribute name="completed" type="boolean" readonly="yes">
4154 <desc>Whether the task has been completed.</desc>
4155 </attribute>
4156
4157 <attribute name="canceled" type="boolean" readonly="yes">
4158 <desc>Whether the task has been canceled.</desc>
4159 </attribute>
4160
4161 <attribute name="resultCode" type="result" readonly="yes">
4162 <desc>
4163 Result code of the progress task.
4164 Valid only if <link to="#completed"/> is true.
4165 </desc>
4166 </attribute>
4167
4168 <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
4169 <desc>
4170 Extended information about the unsuccessful result of the
4171 progress operation. May be NULL when no extended information
4172 is available.
4173 Valid only if <link to="#completed"/> is true and
4174 <link to="#resultCode"/> indicates a failure.
4175 </desc>
4176 </attribute>
4177
4178 <attribute name="operationCount" type="unsigned long" readonly="yes">
4179 <desc>
4180 Number of operations this task is divided into.
4181 Every task consists of at least one operation.
4182 </desc>
4183 </attribute>
4184
4185 <attribute name="operation" type="unsigned long" readonly="yes">
4186 <desc>Number of the operation being currently executed.</desc>
4187 </attribute>
4188
4189 <attribute name="operationDescription" type="wstring" readonly="yes">
4190 <desc>
4191 Description of the operation being currently executed.
4192 </desc>
4193 </attribute>
4194
4195 <attribute name="operationPercent" type="long" readonly="yes">
4196 <desc>Current operation progress value in percent.</desc>
4197 </attribute>
4198
4199 <method name="waitForCompletion">
4200 <desc>
4201 Waits until the task is done (including all operations) with a
4202 given timeout.
4203 </desc>
4204 <param name="timeout" type="long" dir="in">
4205 <desc>
4206 Timeout value in milliseconds.
4207 Specify -1 for an indefinite wait.
4208 </desc>
4209 </param>
4210 </method>
4211
4212 <method name="waitForOperationCompletion">
4213 <desc>
4214 Waits until the given operation is done with a given timeout.
4215 </desc>
4216 <param name="operation" type="unsigned long" dir="in">
4217 <desc>
4218 Number of the operation to wait for.
4219 Must be less than <link to="#operationCount"/>.
4220 </desc>
4221 </param>
4222 <param name="timeout" type="long" dir="in">
4223 <desc>
4224 Timeout value in milliseconds.
4225 Specify -1 for an indefinite wait.
4226 </desc>
4227 </param>
4228 </method>
4229
4230 <method name="cancel">
4231 <desc>
4232 Cancels the task.
4233 <note>
4234 If <link to="#cancelable"/> is <tt>false</tt>, then
4235 this method will fail.
4236 </note>
4237 </desc>
4238 </method>
4239
4240 </interface>
4241
4242
4243 <!--
4244 // ISnapshot
4245 /////////////////////////////////////////////////////////////////////////
4246 -->
4247
4248 <enumerator
4249 name="ISnapshotEnumerator" type="ISnapshot"
4250 uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
4251 />
4252
4253 <collection
4254 name="ISnapshotCollection" type="ISnapshot"
4255 enumerator="ISnapshotEnumerator"
4256 uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
4257 readonly="yes"
4258 />
4259
4260 <interface
4261 name="ISnapshot" extends="$unknown"
4262 uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
4263 wsmap="managed"
4264 >
4265 <desc>
4266 The ISnapshot interface represents a snapshot of the virtual
4267 machine.
4268
4269 The <i>snapshot</i> stores all the information about a virtual
4270 machine necessary to bring it to exactly the same state as it was at
4271 the time of taking the snapshot. The snapshot includes:
4272
4273 <ul>
4274 <li>all settings of the virtual machine (i.e. its hardware
4275 configuration: RAM size, attached hard disks, etc.)
4276 </li>
4277 <li>the execution state of the virtual machine (memory contents,
4278 CPU state, etc.).
4279 </li>
4280 </ul>
4281
4282 Snapshots can be <i>offline</i> (taken when the VM is powered off)
4283 or <i>online</i> (taken when the VM is running). The execution
4284 state of the offline snapshot is called a <i>zero execution state</i>
4285 (it doesn't actually contain any information about memory contents
4286 or the CPU state, assuming that all hardware is just powered off).
4287
4288 <h3>Snapshot branches</h3>
4289
4290 Snapshots can be chained. Chained snapshots form a branch where
4291 every next snapshot is based on the previous one. This chaining is
4292 mostly related to hard disk branching (see <link to="IHardDisk"/>
4293 description). This means that every time a new snapshot is created,
4294 a new differencing hard disk is implicitly created for all normal
4295 hard disks attached to the given virtual machine. This allows to
4296 fully restore hard disk contents when the machine is later reverted
4297 to a particular snapshot.
4298
4299 In the current implelemtation, multiple snapshot branches within one
4300 virtual machine are not allowed. Every machine has a signle branch,
4301 and <link to="IConsole::takeSnapshot()"/> operation adds a new
4302 snapshot to the top of that branch.
4303
4304 Existings snapshots can be discarded using
4305 <link to="IConsole::discardSnapshot()"/>.
4306
4307 <h3>Current snapshot</h3>
4308
4309 Every virtual machine has a current snapshot, identified by
4310 <link to="IMachine::currentSnapshot"/>. This snapshot is used as
4311 a base for the <i>current machine state</i> (see below), to the effect
4312 that all normal hard disks of the machine and its execution
4313 state are based on this snapshot.
4314
4315 In the current implementation, the current snapshot is always the
4316 last taken snapshot (i.e. the head snapshot on the branch) and it
4317 cannot be changed.
4318
4319 The current snapshot is <tt>null</tt> if the machine doesn't have
4320 snapshots at all; in this case the current machine state is just
4321 current settings of this machine plus its current execution state.
4322
4323 <h3>Current machine state</h3>
4324
4325 The current machine state is what represened by IMachine instances
4326 got directly from IVirtualBox using <link
4327 to="IVirtualBox::getMachine()">getMachine()</link>, <link
4328 to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as
4329 opposed to instances returned by <link to="ISnapshot::machine"/>).
4330 This state is always used when the machine is <link
4331 to="IConsole::powerUp"> powered on</link>.
4332
4333 The current machine state also includes the current execution state.
4334 If the machine is being currently executed
4335 (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
4336 and above), its execution state is just what's happening now.
4337 If it is powered off (<link to="MachineState::PoweredOff"/> or
4338 <link to="MachineState::Aborted"/>), it has a zero execution state.
4339 If the machine is saved (<link to="MachineState::Saved"/>), its
4340 execution state is what saved in the execution state file
4341 (<link to="IMachine::stateFilePath"/>).
4342
4343 If the machine is in the saved state, then, next time it is powered
4344 on, its execution state will be fully restored from the saved state
4345 file and the execution will continue from the point where the state
4346 was saved.
4347
4348 Similarly to snapshots, the current machine state can be discarded
4349 using <link to="IConsole::discardCurrentState()"/>.
4350
4351 <h3>Taking and discarding snapshots</h3>
4352
4353 The table below briefly explains the meaning of every snapshot
4354 operation:
4355
4356 <table>
4357 <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
4358
4359 <tr><td><link to="IConsole::takeSnapshot()"/></td>
4360
4361 <td>Save the current state of the virtual machine, including all
4362 settings, contents of normal hard disks and the current modifications
4363 to immutable hard disks (for online snapshots)</td>
4364
4365 <td>The current state is not changed (the machine will continue
4366 execution if it is being executed when the snapshot is
4367 taken)</td></tr>
4368
4369 <tr><td><link to="IConsole::discardSnapshot()"/></td>
4370
4371 <td>Forget the state of the virtual machine stored in the snapshot:
4372 dismiss all saved settings and delete the saved execution state (for
4373 online snapshots)</td>
4374
4375 <td>Other snapshots (including child snapshots, if any) and the
4376 current state are not directly affected</td></tr>
4377
4378 <tr><td><link to="IConsole::discardCurrentState()"/></td>
4379
4380 <td>Restore the current state of the virtual machine from the state
4381 stored in the current snapshot, including all settings and hard disk
4382 contents</td>
4383
4384 <td>The current state of the machine existed prior to this operation
4385 is lost</td></tr>
4386
4387 <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
4388
4389 <td>Completely revert the virtual machine to the state it was in
4390 before the current snapshot has been taken</td>
4391
4392 <td>The current state, as well as the current snapshot, are
4393 lost</td></tr>
4394
4395 </table>
4396
4397 </desc>
4398
4399 <attribute name="id" type="uuid" readonly="yes">
4400 <desc>UUID of the snapshot.</desc>
4401 </attribute>
4402
4403 <attribute name="name" type="wstring">
4404 <desc>Short name of the snapshot.</desc>
4405 </attribute>
4406
4407 <attribute name="description" type="wstring">
4408 <desc>Optional description of the snapshot.</desc>
4409 </attribute>
4410
4411 <attribute name="timeStamp" type="long long" readonly="yes">
4412 <desc>
4413 Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
4414 </desc>
4415 </attribute>
4416
4417 <attribute name="online" type="boolean" readonly="yes">
4418 <desc>
4419 <tt>true</tt> if this snapshot is an online snapshot and
4420 <tt>false</tt> otherwise.
4421
4422 <note>
4423 When this attribute is <tt>true</tt>, the
4424 <link to="IMachine::stateFilePath"/> attribute of the
4425 <link to="#machine"/> object associated with this snapshot
4426 will point to the saved state file. Otherwise, it will be
4427 <tt>null</tt>.
4428 </note>
4429 </desc>
4430 </attribute>
4431
4432 <attribute name="machine" type="IMachine" readonly="yes">
4433 <desc>
4434 Virtual machine this snapshot is taken on. This object
4435 stores all settings the machine had when taking this snapshot.
4436 <note>
4437 The returned machine object is immutable, i.e. no
4438 any settings can be changed.
4439 </note>
4440 </desc>
4441 </attribute>
4442
4443 <attribute name="parent" type="ISnapshot" readonly="yes">
4444 <desc>
4445 Parent snapshot (a snapshot this one is based on).
4446 <note>
4447 It's not an error to read this attribute on a snapshot
4448 that doesn't have a parent -- a null object will be
4449 returned to indicate this.
4450 </note>
4451 </desc>
4452 </attribute>
4453
4454 <attribute name="children" type="ISnapshotCollection" readonly="yes">
4455 <desc>
4456 Child snapshots (all snapshots having this one as a parent).
4457 <note>
4458 In the current implementation, there can be only one
4459 child snapshot, or no children at all, meaning this is the
4460 last (head) snapshot.
4461 </note>
4462 </desc>
4463 </attribute>
4464
4465 </interface>
4466
4467 <!--
4468 // IHardDisk
4469 /////////////////////////////////////////////////////////////////////////
4470 -->
4471
4472 <enum
4473 name="HardDiskStorageType"
4474 uuid="48138584-ad99-479d-a36f-eb82a7663685"
4475 >
4476 <desc>
4477 Virtual hard disk storage type.
4478 <see>IHardDisk</see>
4479 </desc>
4480 <const name="VirtualDiskImage" value="0">
4481 <desc>
4482 Virtual Disk Image, VDI (a regular file in the file
4483 system of the host OS, see <link to="IVirtualDiskImage"/>)
4484 </desc>
4485 </const>
4486 <const name="ISCSIHardDisk" value="1">
4487 <desc>
4488 iSCSI Remote Disk (a disk accessed via the Internet
4489 SCSI protocol over a TCP/IP network, see
4490 <link to="IISCSIHardDisk"/>)
4491 </desc>
4492 </const>
4493 <const name="VMDKImage" value="2">
4494 <desc>
4495 VMware Virtual Machine Disk image (a regular file in the file
4496 system of the host OS, see <link to="IVMDKImage"/>)
4497 </desc>
4498 </const>
4499 </enum>
4500
4501 <enum
4502 name="HardDiskType"
4503 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
4504 >
4505 <desc>
4506 Virtual hard disk type.
4507 <see>IHardDisk</see>
4508 </desc>
4509 <const name="NormalHardDisk" value="0">
4510 <desc>
4511 Normal hard disk (attached directly or indirectly, preserved
4512 when taking snapshots).
4513 </desc>
4514 </const>
4515 <const name="ImmutableHardDisk" value="1">
4516 <desc>
4517 Immutable hard disk (attached indirectly, changes are wiped out
4518 after powering off the virtual machine).
4519 </desc>
4520 </const>
4521 <const name="WritethroughHardDisk" value="2">
4522 <desc>
4523 Write through hard disk (attached directly, ignored when
4524 taking snapshots).
4525 </desc>
4526 </const>
4527 </enum>
4528
4529 <interface
4530 name="IHardDiskAttachment" extends="$unknown"
4531 uuid="c0ffe596-21c6-4797-8d8a-b47b66881e7a"
4532 wsmap="struct"
4533 >
4534 <attribute name="hardDisk" type="IHardDisk" readonly="yes">
4535 <desc>Harddisk object this attachment is about.</desc>
4536 </attribute>
4537
4538 <attribute name="controller" type="DiskControllerType" readonly="yes">
4539 <desc>Disk controller ID of this attachment.</desc>
4540 </attribute>
4541
4542 <attribute name="deviceNumber" type="long" readonly="yes">
4543 <desc>Device number of the attachment.</desc>
4544 </attribute>
4545
4546 </interface>
4547
4548 <enumerator
4549 name="IHardDiskAttachmentEnumerator" type="IHardDiskAttachment"
4550 uuid="9955e486-2f0b-432a-99e4-0ebbd338875e"
4551 />
4552
4553 <collection
4554 name="IHardDiskAttachmentCollection" type="IHardDiskAttachment"
4555 enumerator="IHardDiskAttachmentEnumerator"
4556 uuid="8f727842-bb77-45d4-92de-4ec14bf613c9"
4557 readonly="yes"
4558 />
4559
4560 <enumerator
4561 name="IHardDiskEnumerator" type="IHardDisk"
4562 uuid="b976f97b-cdb8-47e3-9860-084031cbd533"
4563 />
4564
4565 <collection
4566 name="IHardDiskCollection" type="IHardDisk"
4567 enumerator="IHardDiskEnumerator"
4568 uuid="43EAC2BC-5C61-40fa-BC38-46DE2C7DB6BB"
4569 readonly="yes"
4570 />
4571
4572 <interface
4573 name="IHardDisk" extends="$unknown"
4574 uuid="FD443EC1-000F-4F5B-9282-D72760A66916"
4575 wsmap="managed"
4576 >
4577 <desc>
4578 The IHardDisk interface represents a virtual hard disk drive
4579 used by virtual machines.
4580
4581 The virtual hard disk drive virtualizes the hard disk hardware and
4582 looks like a regular hard disk inside the virtual machine and
4583 the guest OS.
4584
4585 <h3>Storage Types</h3>
4586
4587 The <link to="HardDiskStorageType">storage type</link> of the
4588 virtual hard disk determines where and how it stores its data
4589 (sectors). Currently, the following storage types are supported:
4590
4591 <ul>
4592
4593 <li><i>Virtual Disk Image (VDI)</i>, a regular file in the file
4594 system of the host OS (represented by the <link
4595 to="IVirtualDiskImage"/> interface). This file has a special
4596 format optimized so that unused sectors of data occupy much less
4597 space than on a physical hard disk.</li>
4598
4599 <li><i>iSCSI Remote Disk</i>, a disk accessed via the Internet
4600 SCSI protocol over a TCP/IP network link (represented by the
4601 <link to="IISCSIHardDisk"/> interface).</li>
4602
4603 <li><i>VMware VMDK Image</i>, a regular file in the file
4604 system of the host OS (represented by the <link
4605 to="IVMDKImage"/> interface).</li>
4606
4607 </ul>
4608
4609 The storage type of the particular hard disk object is indicated by
4610 the <link to="#storageType"/> property.
4611
4612 Each storage type is represented by its own interface (as shown
4613 above), that allows to query and set properties and perform
4614 operations specific to that storage type. When an IHardDisk object
4615 reports it uses some particular storage type, it also guaranteed to
4616 support the corresponding interface which you can query. And vice
4617 versa, every object that supports a storage-specific interface, also
4618 supports IHardDisk.
4619
4620 <h3>Virtual Hard Disk Types</h3>
4621
4622 The <link to="HardDiskType">type</link> of the virtual hard disk
4623 determines how it is attached to the virtual machine when you call
4624 <link to="IMachine::attachHardDisk()"/> and what happens to it when
4625 a <link to="ISnapshot">snapshot</link> of the virtual machine is
4626 taken.
4627
4628 There are three types of virtual hard disks:
4629
4630 <ul>
4631 <li><i>Normal</i></li>
4632 <li><i>Immutable</i></li>
4633 <li><i>Writethrough</i></li>
4634 </ul>
4635
4636 The virtual disk type is indicated by the <link to="#type"/>
4637 property. Each of the above types is described in detail further
4638 down.
4639
4640 There is also a forth, "hidden" virtual disk type:
4641 <i>Differencing</i>. It is "hidden" because you cannot directly
4642 create hard disks of this type -- they are automatically created by
4643 VirtualBox when necessary.
4644
4645 <b>Differencing Hard Disks</b>
4646
4647 Unlike disks of other types (that are similar to real hard disks),
4648 the differencing hard disk does not store the full range of data
4649 sectors. Instead, it stores only a subset of sectors of some other
4650 disk that were changed since the differencing hard disk has been
4651 created. Thus, every differencing hard disk has a parent hard disk
4652 it is linked to, and represents the difference between the initial
4653 and the current hard disk state. A differencing hard disk can be
4654 linked to another differencing hard disk -- this way, differencing
4655 hard disks can form a branch of changes. More over, a given virtual
4656 hard disk can have more than one differencing hard disk linked to
4657 it.
4658
4659 A disk the differencing hard disk is linked to (or, in other
4660 words, based on) is called a <i>parent</i> hard disk and is
4661 accessible through the <link to="#parent"/> property. Similarly, all
4662 existing differencing hard disks for a given parent hard disk are
4663 called its <i>child</i> hard disks (and accessible through the <link
4664 to="#children"/> property).
4665
4666 All differencing hard disks use Virtual Disk Image files to store
4667 changed sectors. They have the <link to="#type"/> property set to
4668 Normal, but can be easily distinguished from normal hard disks using
4669 the <link to="#parent"/> property: all differencing hard disks have
4670 a parent, while all normal hard disks don't.
4671
4672 When the virtual machine makes an attempt to read a sector that is
4673 missing in a differencing hard disk, its parent is accessed to
4674 resolve the sector in question. This process continues until the
4675 sector is found, or until the root hard disk is encountered, which
4676 always contains all sectors. As a consequence,
4677
4678 <ul>
4679
4680 <li>The virtual hard disk geometry seen by the guest OS is
4681 always defined by the root hard disk.</li>
4682
4683 <li>All hard disks on a branch, up to the root, must be <link
4684 to="#accessible"/> for a given differencing hard disk in order
4685 to let it function properly when the virtual machine is
4686 running.</li>
4687
4688 </ul>
4689
4690 Differencing hard disks can be implicitly created by VirtualBox in
4691 the following cases:
4692
4693 <ul>
4694
4695 <li>When a hard disk is <i>indirectly</i> attached to the
4696 virtual machine using <link to="IMachine::attachHardDisk()"/>.
4697 In this case, all disk writes performed by the guest OS will go
4698 to the created diffferencing hard disk, as opposed to the
4699 <i>direct</i> attachment, where all changes are written to the
4700 attached hard disk itself.</li>
4701
4702 <li>When a <link to="ISnapshot">snapshot</link> of the virtual
4703 machine is taken. After that, disk writes to hard disks the
4704 differencing ones have been created for, will be directed to
4705 those differencing hard disks, to preserve the contents of the
4706 original disks.</li>
4707
4708 </ul>
4709
4710 Whether to create a differencing hard disk or not depends on the
4711 type of the hard disk attached to the virtual machine. This is
4712 explained below.
4713
4714 Note that in the current implementation, only the
4715 <link to="VirtualDiskImage"/> storage type is used to
4716 represent differencing hard disks. In other words, all
4717 differencing hard disks are <link to="IVirtualDiskImage"/>
4718 objects.
4719
4720 <b>Normal Hard Disks</b>
4721
4722 Normal hard disks are the most commonly used virtual hard disk. A
4723 normal hard disk is attached to the machine directly if it is not
4724 already attached to some other machine. Otherwise, an attempt to
4725 make an indirect attachment through a differencing hard disk will be
4726 made. This attempt will fail if the hard disk is attached to a
4727 virtual machine without snapshots (because it's impossible to create
4728 a differencing hard disk based on a hard disk that is subject to
4729 change).
4730
4731 When an indirect attachment takes place, in the simplest case, where
4732 the machine the hard disk is being attached to doesn't have
4733 snapshots, the differencing hard disk will be based on the normal
4734 hard disk being attached. Otherwise, the first (i.e. the most
4735 recent) descendant of the given normal hard disk found in the
4736 current snapshot branch (starting from the current snapshot and
4737 going up to the root) will be actually used as a base.
4738
4739 Note that when you detach an indirectly attached hard disk from the
4740 machine, the created differencing hard disk image is simply
4741 <b>deleted</b>, so <b>all changes are lost</b>. If you attach the
4742 same disk again, a clean differencing disk will be created based on
4743 the most recent child, as described above.
4744
4745 When taking a snapshot, the contents of all normal hard disks (and
4746 all differencing disks whose roots are normal hard disks) currently
4747 attached to the virtual machine is preserved by creating
4748 differencing hard disks based on them.
4749
4750 <b>Immutable Hard Disks</b>
4751
4752 Immutable hard disks can be used to provide a sort of read-only
4753 access. An immutable hard disk is always attached indirectly. The
4754 created differencing hard disk is automatically wiped out (recreated
4755 from scratch) every time you power off the virtual machine. Thus,
4756 the contents of the immutable disk remains unchanged between runs.
4757
4758 Detaching an immutable hard disk deletes the differencing disk
4759 created for it, with the same effect as in case with normal hard
4760 disks.
4761
4762 When taking a snapshot, the differencing part of the immutable
4763 hard disk is cloned (i.e. copied to a separate Virtual Disk Image
4764 file) without any changes. This is necessary to preserve the exact
4765 virtual machine state when you create an online snapshot.
4766
4767 <b>Writethrough Hard Disks</b>
4768
4769 Hard disks of this type are always attached directly. This means
4770 that every given writethrough hard disk can be attached only to one
4771 virtual machine at a time.
4772
4773 It is impossible to take a snapshot of a virtual machine with the
4774 writethrough hard disk attached, because taking a snapshot implies
4775 saving the execution state and preserving the contents of all hard
4776 disks, but writethrough hard disks cannot be preserved. Preserving
4777 hard disk contents is necessary to ensure the guest OS stored in the
4778 snapshot will get the same hard disk state when restored, which is
4779 especially important when it has open file handles or when there are
4780 cached files and directories stored in memory.
4781
4782 <h3>Creating, Opening and Registering Hard Disks</h3>
4783
4784 Non-differencing hard disks are either created from scratch using
4785 <link to="IVirtualBox::createHardDisk()"/> or opened from a VDI file
4786 using <link to="IVirtualBox::openVirtualDiskImage()"/> (only for
4787 hard disks using the VirtualDiskImage storage type). Once a hard
4788 disk is created or opened, it needs to be registered using <link
4789 to="IVirtualBox::registerHardDisk()"/> to make it available for
4790 attaching to virtual machines. See the documentation of individual
4791 interfaces for various storage types to get more information.
4792
4793 Differencing hard disks are never created explicitly and cannot
4794 be registered or unregistered; they are automatically registered
4795 upon creation and deregistered when deleted.
4796
4797 <h3>More about Indirect Hard Disk Attachments</h3>
4798
4799 Normally, when you attach a hard disk to the virtual machine, and
4800 then query the corresponding attachment using <link
4801 to="IMachine::getHardDisk()"/> or <link
4802 to="IMachine::hardDiskAttachments"/> you will get the same hard disk
4803 object, whose UUID you passed earlier to <link
4804 to="IMachine::attachHardDisk()"/>. However, when an indirect
4805 attachment takes place, calling <link to="IMachine::getHardDisk()"/>
4806 will return a differencing hard disk object, that is either based on
4807 the attached hard disk or on another differencing hard disk, the
4808 attached hard disk is eventually a root for (as described above). In
4809 both cases the returned hard disk object is the object the virtual
4810 machine actually uses to perform disk writes to.
4811
4812 Regardless of whether the attachment is direct or indirect, the
4813 <link to="#machineId"/> property of the attached disk will contain an
4814 UUID of the machine object <link to="IMachine::attachHardDisk()"/>
4815 has been called on.
4816
4817 Note that both <link to="IMachine::attachHardDisk()"/> and <link
4818 to="IMachine::detachHardDisk()"/> are <i>lazy</i> operations. In
4819 particular, this means that when an indirect attachment is made,
4820 differencing hard disks are not created until machine settings are
4821 committed using <link to="IMachine::saveSettings()"/>. Similarly,
4822 when a differencing hard disk is detached, it is not deleted until
4823 <link to="IMachine::saveSettings()"/> is called. Calling <link
4824 to="IMachine::discardSettings()"/> cancels all lazy attachments or
4825 detachments made since the last commit and effectively restores the
4826 previous set of hard disks.
4827
4828 <h3>Hard Disk Accessibility</h3>
4829
4830 The <link to="#accessible"/> attribute of the hard disk object
4831 defines the accessibility state of the respective hard disk storage
4832 (for example, the VDI file for IVirtualDiskImage objects). If the
4833 value of this attribute is <tt>false</tt> then some hard disk
4834 attributes may contain invalid or outdated values (for example, the
4835 virtual or the actual hard disk size) until a new accessibility
4836 check is done that returns <tt>true</tt> (see the attribute
4837 description for more details).
4838
4839 <note>
4840 Because of the possible slowness of the accessibility check,
4841 it is not implicitly performed upon the VirtualBox server startup
4842 (to prevent the application freeze). In partcular, this means that
4843 if you try to read hard disk properties that depend on the
4844 accessibility state without first reading the value of the
4845 <link to="#accessible"/> attribute and ensuring it's value is
4846 <tt>true</tt>, you will get wrong (zero) values.
4847 </note>
4848
4849 </desc>
4850
4851 <attribute name="id" type="uuid" readonly="yes">
4852 <desc>
4853
4854 UUID of the hard disk. For newly created hard disk objects,
4855 this value is a randomly generated UUID.
4856
4857 </desc>
4858 </attribute>
4859
4860 <attribute name="description" type="wstring">
4861 <desc>
4862
4863 Optional description of the hard disk. For a newly created hard
4864 disk, this value is <tt>null</tt>.
4865
4866 <note>For some storage types, reading this property is
4867 meaningless when <link to="#accessible"/> is <tt>false</tt>.
4868 Also, you cannot assign it a new value in this case.</note>
4869
4870 </desc>
4871 </attribute>
4872
4873 <attribute name="storageType" type="HardDiskStorageType" readonly="yes">
4874 <desc>
4875
4876 Storage type of this hard disk.
4877
4878 Storage type is defined when you open or create a new hard disk
4879 object.
4880
4881 </desc>
4882 </attribute>
4883
4884 <attribute name="location" type="wstring" readonly="yes">
4885 <desc>
4886
4887 Storage location of this hard disk. The returned string serves
4888 for informational purposes only. To access detailed information
4889 about the storage, query the appropriate storage-specific
4890 interface.
4891
4892 </desc>
4893 </attribute>
4894
4895 <attribute name="type" type="HardDiskType">
4896 <desc>
4897
4898 Type (behavior) of this hard disk. For a newly created or opened
4899 hard disk, this value is <link
4900 to="HardDiskType::NormalHardDisk"/>.
4901
4902 <note>In the current implementation, this property can be
4903 changed only on an unregistered hard disk object. This may be
4904 changed later.</note>
4905
4906 </desc>
4907 </attribute>
4908
4909 <attribute name="parent" type="IHardDisk" readonly="yes">
4910 <desc>
4911
4912 Parent of this hard disk (a hard disk this one is directly based
4913 on).
4914
4915 Only differencing hard disks have parents, so a <tt>null</tt>
4916 object is returned for a hard disk of any other type.
4917 </desc>
4918 </attribute>
4919
4920 <attribute name="children" type="IHardDiskCollection" readonly="yes">
4921 <desc>
4922
4923 Children of this hard disk (all differencing hard disks for
4924 those this one is a parent). An empty collection is returned, if
4925 this hard disk doesn't have any children.
4926
4927 </desc>
4928 </attribute>
4929
4930 <attribute name="root" type="IHardDisk" readonly="yes">
4931 <desc>
4932
4933 Root hard disk of this hard disk. If this hard disk is a
4934 differencing hard disk, its root hard disk is the first disk on
4935 the branch. For all other types of hard disks, this property
4936 returns the hard disk object itself (i.e. the same object you
4937 read this property on).
4938
4939 </desc>
4940 </attribute>
4941
4942 <attribute name="accessible" type="boolean" readonly="yes">
4943 <desc>
4944
4945 Whether the hard disk storage is currently accessible or not.
4946 The storage, for example, can be unaccessible if it doesn't exist
4947 or if it is placed on a network resource that is not available
4948 by the time this attribute is read.
4949
4950 In the current implementation, the value of this property is
4951 also <tt>false</tt> if this hard disk is attached to a running
4952 virtual machine.
4953
4954 The accessibility check is performed automatically every time
4955 this attribute is read. You should keep it in mind that this check
4956 may be slow and can block the calling thread for a long time (for
4957 example, if the network resourse where the hard disk storage is
4958 located is down).
4959
4960 The following attributes of the hard disk object are considered
4961 to be invalid when this attribute is <tt>false</tt>:
4962 <ul>
4963 <li><link to="#size"/></li>
4964 <li><link to="#actualSize"/></li>
4965 </ul>
4966 Individual hard disk storage type interfaces may define
4967 additional attributes that depend on the accessibility state.
4968 </desc>
4969 </attribute>
4970
4971 <attribute name="allAccessible" type="boolean" readonly="yes">
4972 <desc>
4973
4974 Whether the whole hard disk branch, starting from this image and
4975 going through its ancestors up to the root, is accessible or
4976 not.
4977
4978 This property makes sense only for differencing hard disks. For
4979 all other types of hard disks it returns the same value as
4980 <link to="#accessible"/>.
4981
4982 </desc>
4983 </attribute>
4984
4985 <attribute name="lastAccessError" type="wstring" readonly="yes">
4986 <desc>
4987
4988 String describing the reason of inaccessibility of this hard
4989 disk after the last call to <link to="#accessible"/> that
4990 returned <tt>false</tt>. A <tt>null</tt> value of this property
4991 means that the last accessibility check returned <tt>true</tt>.
4992
4993 </desc>
4994 </attribute>
4995
4996 <attribute name="size" type="unsigned long long" readonly="yes">
4997 <desc>
4998
4999 Logical size of this hard disk (in megabytes), as reported to the
5000 guest OS running inside the vurtual machine this disk is
5001 attached to. The logical size is defined when the hard disk is
5002 created.
5003
5004 <note>Reading this property on a differencing hard disk will
5005 return the size of its root hard disk.</note>
5006
5007 <note>Reading this property is meaningless when
5008 <link to="#accessible"/> is <tt>false</tt></note>
5009
5010 </desc>
5011 </attribute>
5012
5013 <attribute name="actualSize" type="unsigned long long" readonly="yes">
5014 <desc>
5015
5016 Physical size of the storage used to store hard disk data (in
5017 bytes). This size is usually less than the logical size of the
5018 hard disk, depending on the storage type and on the size
5019 optimization method used for that storage.
5020
5021 <note>Reading this property is meaningless when
5022 <link to="#accessible"/> is <tt>false</tt></note>
5023
5024 </desc>
5025 </attribute>
5026
5027 <attribute name="machineId" type="uuid" readonly="yes">
5028 <desc>
5029
5030 UUID of the machine this hard disk is attached to (or a
5031 <tt>null</tt> UUID if it is not attached).
5032
5033 <note>Immutable hard disks are never attached directly, so this
5034 attribute is always <tt>null</tt> in this case.</note>
5035
5036 </desc>
5037 </attribute>
5038
5039 <attribute name="snapshotId" type="uuid" readonly="yes">
5040 <desc>
5041
5042 UUID of the <link to="ISnapshot">snapshot</link> this hard disk
5043 is associated with (or <tt>null</tt> UUID if it is not
5044 associated with any snapshot).
5045
5046 <note>This attribute is always <tt>null</tt> if <link
5047 to="#machineId"/> is <tt>null</tt>.</note>
5048
5049 <note>Writethrough hard disks are always attached directly and
5050 cannot be involved when taking snapshots, so this attribute is
5051 meaningless and therefore always <tt>null</tt>.</note>
5052
5053 </desc>
5054 </attribute>
5055
5056 <method name="cloneToImage">
5057
5058 <desc>
5059
5060 Starts creating a clone of this hard disk. The cloned hard disk
5061 will use the specified Virtual Disk Image file as a storage and
5062 will contain exactly the same sector data as the hard disk being
5063 cloned, except that a new UUID for the clone will be randomly
5064 generated.
5065
5066 The specified image file path can be absolute (full path) or
5067 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
5068 home directory</link>. If only a file name without any path is
5069 given, the <link to="ISystemProperties::defaultVDIFolder">
5070 default VDI folder</link> will be used as a path to the image
5071 file.
5072
5073 It is an error to use the object returned in the @a image
5074 parameter until the returned @a progress object reports success.
5075
5076 <note>In the current implementation, only non-differencing hard
5077 disks can be cloned.</note>
5078
5079 </desc>
5080
5081 <param name="filePath" type="wstring" dir="in">
5082 <desc>Path to a file where to store the cloned hard disk.</desc>
5083 </param>
5084 <param name="image" type="IVirtualDiskImage" dir="out">
5085 <desc>Cloned hard disk object.</desc>
5086 </param>
5087 <param name="progress" type="IProgress" dir="return">
5088 <desc>Progress object to track the operation completion.</desc>
5089 </param>
5090
5091 </method>
5092
5093 </interface>
5094
5095 <!--
5096 // IVirtualDiskImage
5097 /////////////////////////////////////////////////////////////////////////
5098 -->
5099
5100 <interface
5101 name="IVirtualDiskImage" extends="$unknown"
5102 uuid="a8265b5a-0d20-4a46-a02f-65693a4e8239"
5103 wsmap="managed"
5104 >
5105
5106 <desc>
5107
5108 The IVirtualDiskImage interface represents <link
5109 to="IHardDisk">virtual hard disks</link> that use virtual disk image
5110 files to store hard disk data.
5111
5112 Hard disks using virtual disk images can be either opened using
5113 <link to="IVirtualBox::openVirtualDiskImage()"/> or created from
5114 scratch using <link to="IVirtualBox::createHardDisk()"/>.
5115
5116 Objects that support this interface also support the <link
5117 to="IHardDisk"/> interface.
5118
5119 When a new hard disk object is created from scatch, an image file
5120 for it is not automatically created. To do it, you need to specify a
5121 valid <link to="#filePath">file path</link>, and call <link
5122 to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
5123 When it is done, the hard disk object can be registered by calling
5124 <link to="IVirtualBox::registerHardDisk()"/> and then
5125 <link to="IMachine::attachHardDisk()">attached</link> to
5126 virtual machines.
5127
5128 The <link to="IHardDisk::description">description</link> of the
5129 Virtual Disk Image is stored in the image file. For this reason,
5130 changing the value of this property requires the hard disk to be
5131 <link to="IHardDisk::accessible">accessible</link>. The description
5132 of a registered hard disk can be changed only if a virtual machine
5133 using it is not running.
5134
5135 </desc>
5136
5137 <attribute name="filePath" type="wstring">
5138 <desc>
5139
5140 Full file name of the virtual disk image of this hard disk. For
5141 newly created hard disk objects, this value is <tt>null</tt>.
5142
5143 When assigning a new path, it can be absolute (full path) or
5144 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
5145 home directory</link>. If only a file name without any path is
5146 given, the <link to="ISystemProperties::defaultVDIFolder">
5147 default VDI folder</link> will be used as a path to the image
5148 file.
5149
5150 When reading this propery, a full path is always returned.
5151
5152 <note>This property cannot be changed when <link to="#created"/>
5153 returns <tt>true</tt>. In this case, the specified file name can
5154 be absolute (full path) or relative to the <link
5155 to="IVirtualBox::homeFolder"> VirtualBox home directory</link>.
5156 If only a file name without any path is given, the <link
5157 to="ISystemProperties::defaultVDIFolder"> default VDI
5158 folder</link> will be used as a path to the image file.</note>
5159
5160 </desc>
5161 </attribute>
5162
5163 <attribute name="created" type="boolean" readonly="yes">
5164 <desc>
5165
5166 Whether the virual disk image is created or not. For newly
5167 created hard disk objects or after a successful invocation of
5168 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
5169 <link to="#createFixedImage()"/> or <link
5170 to="#createDynamicImage()"/> is called.
5171
5172 </desc>
5173 </attribute>
5174
5175 <method name="createDynamicImage">
5176
5177 <desc>
5178
5179 Starts creating a dymically expanding hard disk image in the
5180 background. The previous image associated with this object, if
5181 any, must be deleted using <link to="#deleteImage"/>, otherwise
5182 the operation will fail.
5183
5184 <note>After the returned progress object reports that the
5185 operation is complete, this hard disk object can be
5186 <link to="IVirtualBox::registerHardDisk()">registered</link>
5187 within this VirtualBox installation.</note>
5188
5189 </desc>
5190
5191 <param name="size" type="unsigned long long" dir="in">
5192 <desc>Maximum logical size of the hard disk in megabytes.</desc>
5193 </param>
5194 <param name="progress" type="IProgress" dir="return">
5195 <desc>Progress object to track the operation completion.</desc>
5196 </param>
5197
5198 </method>
5199
5200 <method name="createFixedImage">
5201 <desc>
5202
5203 Starts creating a fixed-size hard disk image in the background.
5204 The previous image, if any, must be deleted using <link
5205 to="#deleteImage"/>, otherwise the operation will fail.
5206
5207 <note>After the returned progress object reports that the
5208 operation is complete, this hard disk object can be
5209 <link to="IVirtualBox::registerHardDisk()">registered</link>
5210 within this VirtualBox installation.</note>
5211
5212 </desc>
5213
5214 <param name="size" type="unsigned long long" dir="in">
5215 <desc>Logical size of the hard disk in megabytes.</desc>
5216 </param>
5217 <param name="progress" type="IProgress" dir="return">
5218 <desc>Progress object to track the operation completion.</desc>
5219 </param>
5220
5221 </method>
5222
5223 <method name="deleteImage">
5224 <desc>
5225
5226 Deletes the existing hard disk image. The hard disk must not be
5227 registered within this VirtualBox installation, otherwise the
5228 operation will fail.
5229
5230 <note>After this operation succeeds, it will be impossible to
5231 register the hard disk until the image file is created
5232 again.</note>
5233
5234 <note>This operation is valid only for non-differencing hard
5235 disks, after they are unregistered using <link
5236 to="IVirtualBox::unregisterHardDisk()"/>.</note>
5237
5238 </desc>
5239 </method>
5240
5241 </interface>
5242
5243 <!--
5244 // IISCSIHardDisk
5245 /////////////////////////////////////////////////////////////////////////
5246 -->
5247
5248 <interface
5249 name="IISCSIHardDisk" extends="$unknown"
5250 uuid="003f6ca9-3257-4ef9-99c9-c66ce44576cb"
5251 wsmap="managed"
5252 >
5253
5254 <desc>
5255
5256 The IISCSIHardDisk interface represents <link to="IHardDisk">virtual
5257 hard disks</link> that use the Internet SCSI (iSCSI) protocol to
5258 store hard disk data on remote machines.
5259
5260 iSCSI hard disks can be created using <link
5261 to="IVirtualBox::createHardDisk()"/>. When a new hard disk object is
5262 created, all its properties are uninitialized. After you assign some
5263 meaningful values to them, the hard disk object can be registered by
5264 calling <link to="IVirtualBox::registerHardDisk()"/> and then <link
5265 to="IMachine::attachHardDisk()">attached</link> to virtual machines.
5266
5267 Objects that support this interface also support the <link
5268 to="IHardDisk"/> interface.
5269
5270 The <link to="IHardDisk::description">description</link>
5271 of the iSCSI hard disk is stored in the VirtualBox
5272 configuration file, so it can be changed (at appropriate
5273 times) even when
5274 <link to="IHardDisk::accessible">accessible</link> returns
5275 <tt>false</tt>. However, the hard disk must not be
5276 attached to a running virtual machine.
5277
5278 <note>In the current imlementation, the type of all iSCSI hard disks
5279 is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
5280 and cannot be changed.</note>
5281
5282 </desc>
5283
5284 <attribute name="server" type="wstring">
5285 <desc>
5286
5287 iSCSI Server name (either a host name or an IP address). For
5288 newly created hard disk objects, this value is <tt>null</tt>.
5289
5290 </desc>
5291 </attribute>
5292
5293 <attribute name="port" type="unsigned short">
5294 <desc>
5295
5296 iSCSI Server port. For newly created hard disk objects, this
5297 value is <tt>0</tt>, which means the default port.
5298
5299 </desc>
5300 </attribute>
5301
5302 <attribute name="target" type="wstring">
5303 <desc>
5304
5305 iSCSI target name. For newly created hard disk objects, this
5306 value is <tt>null</tt>.
5307
5308 </desc>
5309 </attribute>
5310
5311 <attribute name="lun" type="unsigned long long">
5312 <desc>
5313
5314 Logical unit number for this iSCSI disk. For newly created hard
5315 disk objects, this value is <tt>0</tt>.
5316
5317 </desc>
5318 </attribute>
5319
5320 <attribute name="userName" type="wstring">
5321 <desc>
5322
5323 User name for accessing this iSCSI disk. For newly created hard
5324 disk objects, this value is <tt>null</tt>.
5325
5326 </desc>
5327 </attribute>
5328
5329 <attribute name="password" type="wstring">
5330 <desc>
5331
5332 User password for accessing this iSCSI disk. For newly created
5333 hard disk objects, this value is <tt>null</tt>.
5334
5335 </desc>
5336 </attribute>
5337
5338 </interface>
5339
5340 <!--
5341 // IVMDKImage
5342 /////////////////////////////////////////////////////////////////////////
5343 -->
5344
5345 <interface
5346 name="IVMDKImage" extends="$unknown"
5347 uuid="178398f5-8559-4fee-979e-420af5b53eef"
5348 wsmap="managed"
5349 >
5350 <desc>
5351
5352 The IVMDKImage interface represents <link
5353 to="IHardDisk">virtual hard disks</link> that use
5354 VMware Virtual Machine Disk image files to store hard disk data.
5355
5356 Hard disks using VMDK images can be either opened using
5357 <link to="IVirtualBox::openHardDisk()"/> or created from
5358 scratch using <link to="IVirtualBox::createHardDisk()"/>.
5359
5360 Objects that support this interface also support the <link
5361 to="IHardDisk"/> interface.
5362
5363 When a new hard disk object is created from scatch, an image file
5364 for it is not automatically created. To do it, you need to specify a
5365 valid <link to="#filePath">file path</link>, and call <link
5366 to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
5367 When it is done, the hard disk object can be registered by calling
5368 <link to="IVirtualBox::registerHardDisk()"/> and then
5369 <link to="IMachine::attachHardDisk()">attached</link> to
5370 virtual machines.
5371
5372 The <link to="IHardDisk::description">description</link>
5373 of the VMDK hard disk is stored in the VirtualBox
5374 configuration file, so it can be changed (at appropriate
5375 times) even when
5376 <link to="IHardDisk::accessible">accessible</link> returns
5377 <tt>false</tt>. However, the hard disk must not be
5378 attached to a running virtual machine.
5379
5380 <note>In the current imlementation, the type of all VMDK hard disks
5381 is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
5382 and cannot be changed.</note>
5383
5384 </desc>
5385
5386 <attribute name="filePath" type="wstring">
5387 <desc>
5388
5389 Full file name of the VMDK image of this hard disk. For
5390 newly created hard disk objects, this value is <tt>null</tt>.
5391
5392 When assigning a new path, it can be absolute (full path) or
5393 relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
5394 home directory</link>. If only a file name without any path is
5395 given, the <link to="ISystemProperties::defaultVDIFolder">
5396 default VDI folder</link> will be used as a path to the image
5397 file.
5398
5399 When reading this propery, a full path is always returned.
5400
5401 <note>This property cannot be changed when <link to="#created"/>
5402 returns <tt>true</tt>. In this case, the specified file name can
5403 be absolute (full path) or relative to the <link
5404 to="IVirtualBox::homeFolder"> VirtualBox home directory</link>.
5405 If only a file name without any path is given, the <link
5406 to="ISystemProperties::defaultVDIFolder"> default VDI
5407 folder</link> will be used as a path to the image file.</note>
5408
5409 </desc>
5410 </attribute>
5411
5412 <attribute name="created" type="boolean" readonly="yes">
5413 <desc>
5414
5415 Whether the virual disk image is created or not. For newly
5416 created hard disk objects or after a successful invocation of
5417 <link to="#deleteImage()"/>, this value is <tt>false</tt> until
5418 <link to="#createFixedImage()"/> or <link
5419 to="#createDynamicImage()"/> is called.
5420
5421 </desc>
5422 </attribute>
5423
5424 <method name="createDynamicImage">
5425
5426 <desc>
5427
5428 Starts creating a dymically expanding hard disk image in the
5429 background. The previous image associated with this object, if
5430 any, must be deleted using <link to="#deleteImage"/>, otherwise
5431 the operation will fail.
5432
5433 <note>After the returned progress object reports that the
5434 operation is complete, this hard disk object can be
5435 <link to="IVirtualBox::registerHardDisk()">registered</link>
5436 within this VirtualBox installation.</note>
5437
5438 </desc>
5439
5440 <param name="size" type="unsigned long long" dir="in">
5441 <desc>Maximum logical size of the hard disk in megabytes.</desc>
5442 </param>
5443 <param name="progress" type="IProgress" dir="return">
5444 <desc>Progress object to track the operation completion.</desc>
5445 </param>
5446
5447 </method>
5448
5449 <method name="createFixedImage">
5450 <desc>
5451
5452 Starts creating a fixed-size hard disk image in the background.
5453 The previous image, if any, must be deleted using <link
5454 to="#deleteImage"/>, otherwise the operation will fail.
5455
5456 <note>After the returned progress object reports that the
5457 operation is complete, this hard disk object can be
5458 <link to="IVirtualBox::registerHardDisk()">registered</link>
5459 within this VirtualBox installation.</note>
5460
5461 </desc>
5462
5463 <param name="size" type="unsigned long long" dir="in">
5464 <desc>Logical size of the hard disk in megabytes.</desc>
5465 </param>
5466 <param name="progress" type="IProgress" dir="return">
5467 <desc>Progress object to track the operation completion.</desc>
5468 </param>
5469
5470 </method>
5471
5472 <method name="deleteImage">
5473 <desc>
5474
5475 Deletes the existing hard disk image. The hard disk must not be
5476 registered within this VirtualBox installation, otherwise the
5477 operation will fail.
5478
5479 <note>After this operation succeeds, it will be impossible to
5480 register the hard disk until the image file is created
5481 again.</note>
5482
5483 <note>This operation is valid only for non-differencing hard
5484 disks, after they are unregistered using <link
5485 to="IVirtualBox::unregisterHardDisk()"/>.</note>
5486
5487 </desc>
5488 </method>
5489
5490 </interface>
5491
5492 <!--
5493 // IDVDImage
5494 /////////////////////////////////////////////////////////////////////////
5495 -->
5496
5497 <enumerator
5498 name="IDVDImageEnumerator" type="IDVDImage"
5499 uuid="9BE77C8D-E1BE-4bf2-A67B-B4DD3D2B0F28"
5500 />
5501
5502 <collection
5503 name="IDVDImageCollection" type="IDVDImage"
5504 enumerator="IDVDImageEnumerator"
5505 uuid="AE7053FA-ADD2-4ea4-AFCF-24D5F8DDED64"
5506 readonly="yes"
5507 >
5508 <method name="findByPath">
5509 <desc>
5510 Searches this collection for a DVD image with the given disk path.
5511 <note>
5512 The method returns an error if the given name does not
5513 correspond to any DVD image in the collection.
5514 </note>
5515 </desc>
5516 <param name="path" type="wstring" dir="in">
5517 <desc>Name of the DVD image's file system location.</desc>
5518 </param>
5519 <param name="image" type="IDVDImage" dir="return">
5520 <desc>Found DVD image object</desc>
5521 </param>
5522 </method>
5523 </collection>
5524
5525 <interface
5526 name="IDVDImage" extends="$unknown"
5527 uuid="140FFF03-E479-4194-8562-ABC4F8171009"
5528 wsmap="managed"
5529 >
5530 <desc>
5531
5532 The IDVDImage interface represents a file containing the image
5533 of the DVD or CD disk.
5534
5535 <h3>Image Accessibility</h3>
5536
5537 The <link to="#accessible"/> attribute of the image object
5538 defines the accessibility state of the image file. If the
5539 value of this attribute is <tt>false</tt> then some image
5540 attributes may contain invalid or outdated values (for example, the
5541 the image file size) until a new accessibility
5542 check is done that returns <tt>true</tt>.
5543
5544 <note>
5545 Because of the possible slowness of the accessibility check,
5546 it is not implicitly performed upon the VirtualBox server startup
5547 (to prevent the application freeze). In partcular, this means that
5548 if you try to read image properties that depend on the
5549 accessibility state without first reading the value of the
5550 <link to="#accessible"/> attribute and ensuring it's value is
5551 <tt>true</tt>, you will get wrong (zero) values.
5552 </note>
5553
5554 </desc>
5555 <attribute name="id" type="uuid" readonly="yes">
5556 <desc>UUID of the CD/DVD image.</desc>
5557 </attribute>
5558
5559 <attribute name="filePath" type="wstring" readonly="yes">
5560 <desc>Full file name of the CD/DVD image.</desc>
5561 </attribute>
5562
5563 <attribute name="accessible" type="boolean" readonly="yes">
5564 <desc>
5565
5566 Whether the CD/DVD image is currently accessible or not.
5567 The image, for example, can be unaccessible if it is placed
5568 on a network share that is not available by the time
5569 this property is read.
5570
5571 The accessibility check is performed automatically every time
5572 this attribute is read. You should keep it in mind that this check
5573 may be slow and can block the calling thread for a long time (for
5574 example, if the network share where the image is located is down).
5575
5576 The following attributes of the image object are considered
5577 to be invalid when this attribute is <tt>false</tt>:
5578 <ul>
5579 <li><link to="#size"/></li>
5580 </ul>
5581
5582 </desc>
5583 </attribute>
5584
5585 <attribute name="size" type="unsigned long long" readonly="yes">
5586 <desc>Size of the ISO image in bytes.</desc>
5587 </attribute>
5588
5589 </interface>
5590
5591
5592 <!--
5593 // IDVDDrive
5594 /////////////////////////////////////////////////////////////////////////
5595 -->
5596
5597 <enum
5598 name="DriveState"
5599 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
5600 >
5601 <const name="InvalidDriveState" value="0"/>
5602 <const name="NotMounted" value="1"/>
5603 <const name="ImageMounted" value="2"/>
5604 <const name="HostDriveCaptured" value="3"/>
5605 </enum>
5606
5607 <interface
5608 name="IDVDDrive" extends="$unknown"
5609 uuid="d9bd101a-8079-4fb9-bad1-31bf32482b75"
5610 wsmap="managed"
5611 >
5612 <attribute name="state" type="DriveState" readonly="yes">
5613 <desc>Current drive state.</desc>
5614 </attribute>
5615
5616 <attribute name="passthrough" type="boolean">
5617 <desc>
5618 When a host drive is mounted and passthrough is enabled
5619 the guest will be able to directly send SCSI commands to
5620 the host drive. This enables the guest to use CD/DVD writers
5621 but is potentially dangerous.
5622 </desc>
5623 </attribute>
5624
5625 <method name="mountImage">
5626 <desc>Mounts the specified image.</desc>
5627 <param name="imageId" type="uuid" dir="in"/>
5628 </method>
5629
5630 <method name="captureHostDrive">
5631 <desc>Captures the specified host drive.</desc>
5632 <param name="drive" type="IHostDVDDrive" dir="in"/>
5633 </method>
5634
5635 <method name="unmount">
5636 <desc>Unmounts the currently mounted image/device.</desc>
5637 </method>
5638
5639 <method name="getImage">
5640 <desc>Gets the currently mounted image ID.</desc>
5641 <param name="image" type="IDVDImage" dir="return"/>
5642 </method>
5643
5644 <method name="getHostDrive">
5645 <desc>Gets the currently mounted image ID.</desc>
5646 <param name="drive" type="IHostDVDDrive" dir="return"/>
5647 </method>
5648
5649 </interface>
5650
5651 <!--
5652 // IFloppyImage
5653 /////////////////////////////////////////////////////////////////////////
5654 -->
5655
5656 <enumerator
5657 name="IFloppyImageEnumerator" type="IFloppyImage"
5658 uuid="902C4089-76B7-41f1-91E8-49A261A28A2C"
5659 />
5660
5661 <collection
5662 name="IFloppyImageCollection" type="IFloppyImage"
5663 enumerator="IFloppyImageEnumerator"
5664 uuid="327A8928-8572-446e-AD9A-18FE30E81F3F"
5665 readonly="yes">
5666 <method name="findByPath">
5667 <desc>
5668 Searches this collection for a floppy image with the given disk path.
5669 <note>
5670 The method returns an error if the given name does not
5671 correspond to any floppy image in the collection.
5672 </note>
5673 </desc>
5674 <param name="path" type="wstring" dir="in">
5675 <desc>Name of the floppy image's file system location.</desc>
5676 </param>
5677 <param name="image" type="IFloppyImage" dir="return">
5678 <desc>Found Floppy image object</desc>
5679 </param>
5680 </method>
5681 </collection>
5682
5683 <interface
5684 name="IFloppyImage" extends="$unknown"
5685 uuid="CC696755-EA98-4ffe-9DC5-C003047034AB"
5686 wsmap="managed"
5687 >
5688 <desc>
5689
5690 The IFloppyImage interface represents a file containing the image
5691 of a floppy disk.
5692
5693 <h3>Image Accessibility</h3>
5694
5695 The <link to="#accessible"/> attribute of the image object
5696 defines the accessibility state of the image file. If the
5697 value of this attribute is <tt>false</tt> then some image
5698 attributes may contain invalid or outdated values (for example, the
5699 the image file size) until a new accessibility
5700 check is done that returns <tt>true</tt>.
5701
5702 <note>
5703 Because of the possible slowness of the accessibility check,
5704 it is not implicitly performed upon the VirtualBox server startup
5705 (to prevent the application freeze). In partcular, this means that
5706 if you try to read image properties that depend on the
5707 accessibility state without first reading the value of the
5708 <link to="#accessible"/> attribute and ensuring it's value is
5709 <tt>true</tt>, you will get wrong (zero) values.
5710 </note>
5711
5712 </desc>
5713 <attribute name="id" type="uuid" readonly="yes">
5714 <desc>UUID of the floppy image.</desc>
5715 </attribute>
5716
5717 <attribute name="filePath" type="wstring" readonly="yes">
5718 <desc>Full file name of the floppy image.</desc>
5719 </attribute>
5720
5721 <attribute name="accessible" type="boolean" readonly="yes">
5722 <desc>
5723
5724 Whether the floppy image is currently accessible or not.
5725 The image, for example, can be unaccessible if it is placed
5726 on a network share that is not available by the time
5727 this property is read.
5728
5729 The accessibility check is performed automatically every time
5730 this attribute is read. You should keep it in mind that this check
5731 may be slow and can block the calling thread for a long time (for
5732 example, if the network share where the image is located is down).
5733
5734 The following attributes of the image object are considered
5735 to be invalid when this attribute is <tt>false</tt>:
5736 <ul>
5737 <li><link to="#size"/></li>
5738 </ul>
5739
5740 </desc>
5741 </attribute>
5742
5743 <attribute name="size" type="unsigned long" readonly="yes">
5744 <desc>Size of the floppy image in bytes.</desc>
5745 </attribute>
5746
5747 </interface>
5748
5749
5750 <!--
5751 // IFloppyDrive
5752 /////////////////////////////////////////////////////////////////////////
5753 -->
5754
5755 <interface
5756 name="IFloppyDrive" extends="$unknown"
5757 uuid="E9318F71-78D2-4b00-863C-B7CB0030A2D9"
5758 wsmap="managed"
5759 >
5760 <attribute name="enabled" type="boolean">
5761 <desc>
5762 Flag whether the floppy drive is enabled. If it is disabled,
5763 the floppy drive will not be reported to the guest.
5764 </desc>
5765 </attribute>
5766
5767 <attribute name="state" type="DriveState" readonly="yes">
5768 <desc>Current drive state.</desc>
5769 </attribute>
5770
5771 <method name="mountImage">
5772 <desc>Mounts the specified image.</desc>
5773 <param name="imageId" type="uuid" dir="in"/>
5774 </method>
5775
5776 <method name="captureHostDrive">
5777 <desc>Captures the specified host drive.</desc>
5778 <param name="drive" type="IHostFloppyDrive" dir="in"/>
5779 </method>
5780
5781 <method name="unmount">
5782 <desc>Unmounts the currently mounted image/device.</desc>
5783 </method>
5784
5785 <method name="getImage">
5786 <desc>Gets the currently mounted image ID.</desc>
5787 <param name="image" type="IFloppyImage" dir="return"/>
5788 </method>
5789
5790 <method name="getHostDrive">
5791 <desc>Gets the currently mounted image ID.</desc>
5792 <param name="drive" type="IHostFloppyDrive" dir="return"/>
5793 </method>
5794
5795 </interface>
5796
5797
5798 <!--
5799 // IKeyboard
5800 /////////////////////////////////////////////////////////////////////////
5801 -->
5802
5803 <interface
5804 name="IKeyboard" extends="$unknown"
5805 uuid="FD443EC1-000A-4F5B-9282-D72760A66916"
5806 wsmap="managed"
5807 >
5808 <method name="putScancode">
5809 <desc>Sends a scancode to the keyboard.</desc>
5810 <param name="scancode" type="long" dir="in"/>
5811 </method>
5812
5813 <method name="putScancodes">
5814 <desc>Sends an array of scancode to the keyboard.</desc>
5815 <param name="scancodes" type="long" dir="in" array="count"/>
5816 <param name="count" type="unsigned long" dir="in"/>
5817 <param name="codesStored" type="unsigned long" dir="return"/>
5818 </method>
5819
5820 <method name="putCAD">
5821 <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
5822 </method>
5823
5824 </interface>
5825
5826
5827 <!--
5828 // IMouse
5829 /////////////////////////////////////////////////////////////////////////
5830 -->
5831
5832 <enum
5833 name="MouseButtonState"
5834 uuid="03131722-2EC5-4173-9794-0DACA46673EF"
5835 >
5836 <const name="LeftButton" value="0x01"/>
5837 <const name="RightButton" value="0x02"/>
5838 <const name="MiddleButton" value="0x04"/>
5839 <const name="WheelUp" value="0x08"/>
5840 <const name="WheelDown" value="0x10"/>
5841 <const name="MouseStateMask" value="0x1F"/>
5842 </enum>
5843
5844 <interface
5845 name="IMouse" extends="$unknown"
5846 uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
5847 wsmap="managed"
5848 >
5849 <desc>
5850 The IMouse interface represents a virtual mouse device.
5851 </desc>
5852
5853 <attribute name="absoluteSupported" type="boolean" readonly="yes">
5854 <desc>
5855 Whether the guest OS supports absolute mouse pointer positioning
5856 or not.
5857 <note>
5858 VirtualBox Guest Tools need to be installed to the guest OS
5859 in order to enable absolute mouse positioning support.
5860 You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
5861 callback to be instantly informed about changes of this attribute
5862 during virtual machine execution.
5863 </note>
5864 <see><link to="#putMouseEventAbsolute"/></see>
5865 </desc>
5866 </attribute>
5867
5868 <method name="putMouseEvent">
5869 <desc>
5870 Initiates a mouse event using relative pointer movements
5871 along x and y axis.
5872 </desc>
5873
5874 <param name="dx" type="long" dir="in">
5875 <desc>
5876 Amout of pixels the mouse should move to the right.
5877 Negative values move the mouse to the left.
5878 </desc>
5879 </param>
5880 <param name="dy" type="long" dir="in">
5881 <desc>
5882 Amout of pixels the mouse should move downwards.
5883 Negative values move the mouse upwards.
5884 </desc>
5885 </param>
5886 <param name="dz" type="long" dir="in">
5887 <desc>
5888 Amount of mouse wheel moves.
5889 Positive values describe clockwize wheel rotations,
5890 negative values describe counterclockwise rotations.
5891 </desc>
5892 </param>
5893 <param name="buttonState" type="long" dir="in">
5894 <desc>
5895 The current state of mouse buttons. Every bit represents
5896 a mouse button as follows:
5897 <table>
5898 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
5899 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
5900 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
5901 </table>
5902 A value of <tt>1</tt> means the corresponding button is pressed.
5903 otherwise it is released.
5904 </desc>
5905 </param>
5906 </method>
5907
5908 <method name="putMouseEventAbsolute">
5909 <desc>
5910 Positions the mouse pointer using absolute x and y coordinates.
5911 These coordinates are expressed in pixels and
5912 start from <tt>[1,1]</tt> which corresponds to the top left
5913 corner of the virtual display.
5914
5915 <note>
5916 This method will have effect only if absolute mouse
5917 positioning is supported by the guest OS.
5918 </note>
5919
5920 <see><link to="#absoluteSupported"/></see>
5921 </desc>
5922
5923 <param name="x" type="long" dir="in">
5924 <desc>
5925 X coordinate of the pointer in pixels, starting from <tt>1</tt>.
5926 </desc>
5927 </param>
5928 <param name="y" type="long" dir="in">
5929 <desc>
5930 Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
5931 </desc>
5932 </param>
5933 <param name="dz" type="long" dir="in">
5934 <desc>
5935 Amout of mouse wheel moves.
5936 Positive values describe clockwize wheel rotations,
5937 negative values describe counterclockwise rotations.
5938 </desc>
5939 </param>
5940 <param name="buttonState" type="long" dir="in">
5941 <desc>
5942 The current state of mouse buttons. Every bit represents
5943 a mouse button as follows:
5944 <table>
5945 <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
5946 <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
5947 <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
5948 </table>
5949 A value of <tt>1</tt> means the corresponding button is pressed.
5950 otherwise it is released.
5951 </desc>
5952 </param>
5953 </method>
5954
5955 </interface>
5956
5957
5958 <!--
5959 // IDisplay
5960 /////////////////////////////////////////////////////////////////////////
5961 -->
5962
5963 <enum
5964 name="FramebufferAccelerationOperation"
5965 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
5966 >
5967 <const name="SolidFillAcceleration" value="1"/>
5968 <const name="ScreenCopyAcceleration" value="2"/>
5969 </enum>
5970
5971 <enum
5972 name="FramebufferPixelFormat"
5973 uuid="d15f9c8b-bd7e-4003-981c-4ca14f49f2c3"
5974 >
5975 <const name="PixelFormatDefault" value="0"/>
5976 <const name="PixelFormatRGB16" value="1"/>
5977 <const name="PixelFormatRGB24" value="2"/>
5978 <const name="PixelFormatRGB32" value="3"/>
5979 </enum>
5980
5981 <interface
5982 name="IFramebuffer" extends="$unknown"
5983 uuid="4481F27F-5C79-48d9-86C1-A2EC6747034D"
5984 wsmap="suppress"
5985 >
5986 <attribute name="address" type="octet" mod="ptr" readonly="yes">
5987 <desc>Address of the start byte of the framebuffer.</desc>
5988 </attribute>
5989
5990 <attribute name="width" type="unsigned long" readonly="yes">
5991 <desc>Framebuffer width.</desc>
5992 </attribute>
5993
5994 <attribute name="height" type="unsigned long" readonly="yes">
5995 <desc>Framebuffer height.</desc>
5996 </attribute>
5997
5998 <attribute name="colorDepth" type="unsigned long" readonly="yes">
5999 <desc>Framebuffer color depth.</desc>
6000 </attribute>
6001
6002 <attribute name="lineSize" type="unsigned long" readonly="yes">
6003 <desc>framebuffer scan line size in bytes.</desc>
6004 </attribute>
6005
6006 <attribute name="pixelFormat" type="FramebufferPixelFormat" readonly="yes">
6007 <desc>Framebuffer pixel format.</desc>
6008 </attribute>
6009
6010 <attribute name="heightReduction" type="unsigned long" readonly="yes">
6011 <desc>
6012 Hint from the framebuffer about how much of the standard
6013 screen height it wants to use for itself. This information is
6014 exposed to the guest through the VESA BIOS and VMMDev interface
6015 so that it can use it for determining its video mode table. It
6016 is not guaranteed that the guest respects the value.
6017 </desc>
6018 </attribute>
6019
6020 <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
6021 <desc>
6022 An alpha-blended overlay which is superposed over the framebuffer.
6023 The initial purpose is to allow the display of icons providing
6024 information about the VM state, including disk activity, in front
6025 ends which do not have other means of doing that. The overlay is
6026 designed to controlled exclusively by IDisplay. It has no locking
6027 of its own, and any changes made to it are not guaranteed to be
6028 visible until the affected portion of IFramebuffer is updated. The
6029 overlay can be created lazily the first time it is requested. This
6030 attribute can also return NULL to signal that the overlay is not
6031 implemented.
6032 </desc>
6033 </attribute>
6034
6035 <method name="lock">
6036 <desc>
6037 Locks the framebuffer.
6038 Gets called by the display object where this buffer is
6039 registered.
6040 </desc>
6041 </method>
6042
6043 <method name="unlock">
6044 <desc>
6045 Unlocks the framebuffer.
6046 Gets called by the display object where this buffer is
6047 registered.
6048 </desc>
6049 </method>
6050
6051 <method name="notifyUpdate">
6052 <desc>
6053 Informs about an update.
6054 Gets called by the display object where this buffer is
6055 registered.
6056 </desc>
6057 <param name="x" type="unsigned long" dir="in"/>
6058 <param name="y" type="unsigned long" dir="in"/>
6059 <param name="width" type="unsigned long" dir="in"/>
6060 <param name="height" type="unsigned long" dir="in"/>
6061 <param name="finished" type="boolean" dir="return"/>
6062 </method>
6063
6064 <method name="requestResize">
6065 <desc>
6066 Requests a size and pixel format change.
6067
6068 The IFramebuffer implementation should try to setup
6069 a memory buffer suitable for the given pixel format
6070 and line size.
6071 The buffer must be page aligned, must contain
6072 whole number of pages, and one should be able
6073 to lock it to obtain physical addresses of pages.
6074 (Note: this method is currently not supported,
6075 use the below mentioned vram pointer!)
6076
6077 If the requested pixel format is not supported,
6078 or a PixelFormatDefault is requested,
6079 a default format is set. In that case the memory
6080 buffer does not have to be aligned and lockable.
6081
6082 The callee is also allowed to use the guest video memory
6083 buffer (pointed to by the @a vram parameter) directly instead
6084 of allocating its own buffer. To indicate that the framebuffer
6085 wants to use the guest video memory, its <link to="#address"/>
6086 implementation must return the same address as it gets in
6087 the @a vram parameter of this method.
6088
6089 For non linear modes (such as text and standard VGA), the @a
6090 vram parameter is @c NULL and must not be used. When it's not
6091 NULL, it is recommended to use it to access the guest video
6092 memory instead of creating a separate buffer as it will at
6093 least remove one copy operation.
6094
6095 The caller checks if the call was successful
6096 via the <link to="#pixelFormat"/> property.
6097
6098 <note>
6099 This method is called by IDisplay under the IFramebuffer
6100 lock.
6101 </note>
6102 </desc>
6103 <param name="pixelFormat" type="FramebufferPixelFormat" dir="in">
6104 <desc>Pixel format of the surface (BPP and layout)</desc>
6105 </param>
6106 <param name="vram" type="octet" mod="ptr" dir="in">
6107 <desc>Pointer to the guest VRAM (NULL for non linear modes)</desc>
6108 </param>
6109 <param name="lineSize" type="unsigned long" dir="in">
6110 <desc>Size of one scan line, in bytes.</desc>
6111 </param>
6112 <param name="width" type="unsigned long" dir="in">
6113 <desc>Width of the guest display, in pixels.</desc>
6114 </param>
6115 <param name="height" type="unsigned long" dir="in">
6116 <desc>Height of the guest display, in pixels.</desc>
6117 </param>
6118 <param name="finished" type="boolean" dir="return">
6119 <desc>
6120 Can the VM start using the new framebuffer immediately
6121 after this method returns or it should wait for
6122 <link to="IDisplay::resizeCompleted()"/>.
6123 </desc>
6124 </param>
6125 </method>
6126
6127 <method name="operationSupported">
6128 <desc>
6129 Returns whether the given acceleration operation is supported
6130 by the IFramebuffer implementation. If not, the display object
6131 will not attempt to call the corresponding IFramebuffer entry
6132 point. Even if an operation is indicated to supported, the
6133 IFramebuffer implementation always has the option to return non
6134 supported from the corresponding acceleration method in which
6135 case the operation will be performed by the display engine. This
6136 allows for reduced IFramebuffer implementation complexity where
6137 only common cases are handled.
6138 </desc>
6139 <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
6140 <param name="supported" type="boolean" dir="return"/>
6141 </method>
6142
6143 <method name="videoModeSupported">
6144 <desc>
6145 Returns whether the framebuffer implementation is willing to
6146 support a given video mode. In case it is not able to render
6147 the video mode (or for some reason not willing), it should
6148 return false. Usually this method is called when the guest
6149 asks the VMM device whether a given video mode is supported
6150 so the information returned is directly exposed to the guest.
6151 It is important that this method returns very quickly.
6152 </desc>
6153 <param name="width" type="unsigned long" dir="in"/>
6154 <param name="height" type="unsigned long" dir="in"/>
6155 <param name="bpp" type="unsigned long" dir="in"/>
6156 <param name="supported" type="boolean" dir="return"/>
6157 </method>
6158
6159 <method name="solidFill">
6160 <desc>
6161 Fill the specified rectangle on screen with a solid color.
6162 </desc>
6163 <param name="x" type="unsigned long" dir="in"/>
6164 <param name="y" type="unsigned long" dir="in"/>
6165 <param name="width" type="unsigned long" dir="in"/>
6166 <param name="height" type="unsigned long" dir="in"/>
6167 <param name="color" type="unsigned long" dir="in"/>
6168 <param name="handled" type="boolean" dir="return"/>
6169 </method>
6170
6171 <method name="copyScreenBits">
6172 <desc>
6173 Copy specified rectangle on the screen.
6174 </desc>
6175 <param name="xDst" type="unsigned long" dir="in"/>
6176 <param name="yDst" type="unsigned long" dir="in"/>
6177 <param name="xSrc" type="unsigned long" dir="in"/>
6178 <param name="ySrc" type="unsigned long" dir="in"/>
6179 <param name="width" type="unsigned long" dir="in"/>
6180 <param name="height" type="unsigned long" dir="in"/>
6181 <param name="handled" type="boolean" dir="return"/>
6182 </method>
6183
6184 </interface>
6185
6186 <interface
6187 name="IFramebufferOverlay" extends="IFrameBuffer"
6188 uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
6189 wsmap="suppress"
6190 >
6191 <desc>
6192 An alpha blended overlay for displaying status icons above an IFramebuffer.
6193 It is always created not visible, so that it must be explicitly shown. It
6194 only covers a portion of the IFramebuffer, determined by its width, height
6195 and co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
6196 that order) format, and may be written to directly. Do re-read the width
6197 though, after setting it, as it may be adjusted (increased) to make it more
6198 suitable for the front end.
6199 </desc>
6200 <attribute name="x" type="unsigned long" readonly="yes">
6201 <desc>X position of the overlay, relative to the framebuffer.</desc>
6202 </attribute>
6203
6204 <attribute name="y" type="unsigned long" readonly="yes">
6205 <desc>Y position of the overlay, relative to the framebuffer.</desc>
6206 </attribute>
6207
6208 <attribute name="visible" type="boolean" readonly="no">
6209 <desc>
6210 Whether the overlay is currently visible.
6211 </desc>
6212 </attribute>
6213
6214 <attribute name="alpha" type="unsigned long" readonly="no">
6215 <desc>
6216 The global alpha value for the overlay. This may or may not be
6217 supported by a given front end.
6218 </desc>
6219 </attribute>
6220
6221 <method name="move">
6222 <desc>
6223 Changes the overlay's position relative to the IFramebuffer.
6224 </desc>
6225 <param name="x" type="unsigned long" dir="in"/>
6226 <param name="y" type="unsigned long" dir="in"/>
6227 </method>
6228
6229 </interface>
6230
6231 <interface
6232 name="IDisplay" extends="$unknown"
6233 uuid="FD443EC1-0012-4F5B-9282-D72760A66916"
6234 wsmap="suppress"
6235 >
6236 <attribute name="width" type="unsigned long" readonly="yes">
6237 <desc>Current display width.</desc>
6238 </attribute>
6239
6240 <attribute name="height" type="unsigned long" readonly="yes">
6241 <desc>Current display height.</desc>
6242 </attribute>
6243
6244 <attribute name="colorDepth" type="unsigned long" readonly="yes">
6245 <desc>
6246 Current guest display color depth. Note that this may differ
6247 from <link to="IFramebuffer::colorDepth">IFramebuffer::colorDepth</link>.
6248 </desc>
6249 </attribute>
6250
6251 <method name="setupInternalFramebuffer">
6252 <desc>
6253 Prepares an internally managed framebuffer.
6254 </desc>
6255 <param name="depth" type="unsigned long" dir="in"/>
6256 </method>
6257
6258 <method name="lockFramebuffer">
6259 <desc>
6260 Requests access to the internal framebuffer.
6261 </desc>
6262 <param name="address" type="octet" mod="ptr" dir="return"/>
6263 </method>
6264
6265 <method name="unlockFramebuffer">
6266 <desc>
6267 Releases access to the internal framebuffer.
6268 </desc>
6269 </method>
6270
6271 <method name="registerExternalFramebuffer">
6272 <desc>
6273 Registers an external framebuffer.
6274 </desc>
6275 <param name="framebuffer" type="IFramebuffer" dir="in"/>
6276 </method>
6277
6278 <method name="setVideoModeHint">
6279 <desc>
6280 Asks VirtualBox to request the given video mode from
6281 the guest. This is just a hint and it cannot be guaranteed
6282 that the requested resolution will be used. Guest Additions
6283 are required for the request to be seen by guests. The caller
6284 should issue the request and wait for a resolution change and
6285 after a timeout retry.
6286 Specifying "0" for either width and height or the color depth
6287 means that the dimensions or color depth should not be changed.
6288 </desc>
6289 <param name="width" type="unsigned long" dir="in"/>
6290 <param name="height" type="unsigned long" dir="in"/>
6291 <param name="colorDepth" type="unsigned long" dir="in"/>
6292 </method>
6293
6294 <method name="takeScreenShot">
6295 <desc>
6296 Takes a screen shot of the requested size and copies it to the
6297 32-bpp buffer allocated by the caller.
6298 </desc>
6299 <param name="address" type="octet" mod="ptr" dir="in"/>
6300 <param name="width" type="unsigned long" dir="in"/>
6301 <param name="height" type="unsigned long" dir="in"/>
6302 </method>
6303
6304 <method name="drawToScreen">
6305 <desc>
6306 Draws a 32-bpp image of the specified size from the given buffer
6307 to the given point on the VM display.
6308 </desc>
6309 <param name="address" type="octet" mod="ptr" dir="in"/>
6310 <param name="x" type="unsigned long" dir="in"/>
6311 <param name="y" type="unsigned long" dir="in"/>
6312 <param name="width" type="unsigned long" dir="in"/>
6313 <param name="height" type="unsigned long" dir="in"/>
6314 </method>
6315
6316 <method name="invalidateAndUpdate">
6317 <desc>
6318 Does a full invalidation of the VM display and instructs the VM
6319 to update it.
6320 </desc>
6321 </method>
6322
6323 <method name="resizeCompleted">
6324 <desc>
6325 Signals that a framebuffer has completed the resize operation.
6326 </desc>
6327 </method>
6328
6329 <method name="updateCompleted">
6330 <desc>
6331 Signals that a framebuffer has completed the update operation.
6332 </desc>
6333 </method>
6334
6335 </interface>
6336
6337 <!--
6338 // INetworkAdapter
6339 /////////////////////////////////////////////////////////////////////////
6340 -->
6341
6342 <enum
6343 name="NetworkAttachmentType"
6344 uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
6345 >
6346 <const name="NoNetworkAttachment" value="0"/>
6347 <const name="NATNetworkAttachment" value="1"/>
6348 <const name="HostInterfaceNetworkAttachment" value="2"/>
6349 <const name="InternalNetworkAttachment" value="3"/>
6350 </enum>
6351
6352 <enum
6353 name="NetworkAdapterType"
6354 uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
6355 >
6356 <const name="InvalidNetworkAdapterType" value="0"/>
6357 <const name="NetworkAdapterAm79C970A" value="1"/>
6358 <const name="NetworkAdapterAm79C973" value="2"/>
6359 </enum>
6360
6361 <interface
6362 name="INetworkAdapter" extends="$unknown"
6363 uuid="78dfc978-ecb0-44ee-8b20-54549dd4539e"
6364 wsmap="managed"
6365 >
6366 <attribute name="adapterType" type="NetworkAdapterType">
6367 <desc>
6368 Type of the virtual network adapter. Depending on this value,
6369 VirtualBox will provide a different virtual network hardware
6370 to the guest.
6371 </desc>
6372 </attribute>
6373
6374 <attribute name="slot" type="unsigned long" readonly="yes">
6375 <desc>
6376 Slot number this adapter is plugged into. Corresponds to
6377 the value you pass to <link to="IMachine::getNetworkAdapter"/>
6378 to obtain this instance.
6379 </desc>
6380 </attribute>
6381
6382 <attribute name="enabled" type="boolean">
6383 <desc>
6384 Flag whether the network adapter is present in the
6385 guest system. If disabled, the virtual guest hardware will
6386 not contain this network adapter. Can only be changed when
6387 the VM is not running.
6388 </desc>
6389 </attribute>
6390
6391 <attribute name="MACAddress" type="wstring">
6392 <desc>
6393 Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
6394 it to NULL, VirtualBox will generate a unique MAC address.
6395 </desc>
6396 </attribute>
6397
6398 <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
6399
6400 <attribute name="hostInterface" type="wstring">
6401 <desc>
6402 Name of the Host Network Interface that is currently in use. NULL will be returned
6403 if no device has been allocated. On Linux, setting this refers to a permanent TAP
6404 device. However, a file descriptor has precedence over the interface name on Linux.
6405 Note that when VBox allocates a TAP device, this property will not be set, i.e. the
6406 interface name would have to be determined using the file descriptor and /proc/self/fd.
6407 </desc>
6408 </attribute>
6409
6410<if target="xpidl">
6411 <attribute name="TAPFileDescriptor" type="long">
6412 <desc>
6413 File descriptor of the TAP device. It can either be setup by the caller
6414 which has to supply an existing valid file handle allocated in the parent
6415 process of the VM process or allocated by VirtualBox. The value is -1 if it
6416 has not been defined. This property is non persistent, i.e. it will not be
6417 stored in the VM's configuration data and thus has to be set at each startup.
6418 </desc>
6419 </attribute>
6420 <attribute name="TAPSetupApplication" type="wstring">
6421 <desc>
6422 Application to start to configure the TAP device.
6423 It is being passed two parameters, 1) the file handle (as ascii),
6424 2) the TAP device name if it is available.
6425 </desc>
6426 </attribute>
6427 <attribute name="TAPTerminateApplication" type="wstring">
6428 <desc>
6429 Application to start before closing a TAP device.
6430 It is being passed two parameters, 1) the file handle (as ascii),
6431 2) the TAP device name if it is available.
6432 </desc>
6433 </attribute>
6434</if>
6435
6436 <attribute name="internalNetwork" type="wstring">
6437 <desc>
6438 Name of the internal network the VM is attached to.
6439 </desc>
6440 </attribute>
6441
6442 <attribute name="cableConnected" type="boolean">
6443 <desc>
6444 Flag whether the adapter reports the cable as connected or not.
6445 It can be used to report offline situations to a VM.
6446 </desc>
6447 </attribute>
6448
6449 <attribute name="traceEnabled" type="boolean">
6450 <desc>
6451 Flag whether network traffic from/to the network card should be traced.
6452 Can only be toggled when the VM is turned off.
6453 </desc>
6454 </attribute>
6455
6456 <attribute name="traceFile" type="wstring">
6457 <desc>
6458 Filename where a network trace will be stored. If not set, VBox-pid.pcap
6459 will be used.
6460 </desc>
6461 </attribute>
6462
6463 <method name="attachToNAT">
6464 <desc>
6465 Attach the network adapter to the Network Address Translation (NAT) interface.
6466 </desc>
6467 </method>
6468
6469 <method name="attachToHostInterface">
6470 <desc>
6471 Attach the network adapter to a host interface. On Linux, the TAP
6472 setup application will be executed if configured and unless a device
6473 name and/or file descriptor has been set, a new TAP interface will be
6474 created.
6475 </desc>
6476 </method>
6477
6478 <method name="attachToInternalNetwork">
6479 <desc>
6480 Attach the network adapter to an internal network.
6481 </desc>
6482 </method>
6483
6484 <method name="detach">
6485 <desc>
6486 Detach the network adapter
6487 </desc>
6488 </method>
6489 </interface>
6490
6491
6492 <!--
6493 // IMachineDebugger
6494 /////////////////////////////////////////////////////////////////////////
6495 -->
6496
6497 <interface
6498 name="IMachineDebugger" extends="$unknown"
6499 uuid="288da658-74fa-4877-ab5c-dafdad19a1cd"
6500 wsmap="suppress"
6501 >
6502 <method name="resetStats">
6503 <desc>
6504 Reset VM statistics.
6505 </desc>
6506 </method>
6507
6508 <method name="dumpStats">
6509 <desc>
6510 Dumps VM statistics.
6511 </desc>
6512 </method>
6513
6514 <attribute name="singlestep" type="boolean">
6515 <desc>Switch for enabling singlestepping.</desc>
6516 </attribute>
6517
6518 <attribute name="recompileUser" type="boolean">
6519 <desc>Switch for forcing code recompilation for user mode code.</desc>
6520 </attribute>
6521
6522 <attribute name="recompileSupervisor" type="boolean">
6523 <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
6524 </attribute>
6525
6526 <attribute name="PATMEnabled" type="boolean">
6527 <desc>Switch for enabling and disabling the PATM component.</desc>
6528 </attribute>
6529
6530 <attribute name="CSAMEnabled" type="boolean">
6531 <desc>Switch for enabling and disabling the CSAM component.</desc>
6532 </attribute>
6533
6534 <attribute name="LogEnabled" type="boolean">
6535 <desc>Switch for enabling and disabling logging.</desc>
6536 </attribute>
6537
6538 <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
6539 <desc>
6540 Flag indicating whether the VM is currently making use of CPU hardware
6541 virtualization extensions
6542 </desc>
6543 </attribute>
6544
6545 <attribute name="VirtualTimeRate" type="unsigned long">
6546 <desc>
6547 The rate at which the virtual time runs expressed as a percentage.
6548 The accepted range is 2% to 20000%.
6549 </desc>
6550 </attribute>
6551
6552 <!-- @todo method for setting log flags, groups and destination! -->
6553
6554 <attribute name="VM" type="unsigned long long" readonly="yes">
6555 <desc>
6556 Gets the VM handle. This is only for internal use while
6557 we carve the details of this interface.
6558 </desc>
6559 </attribute>
6560
6561 </interface>
6562
6563 <!--
6564 // IUSBController
6565 /////////////////////////////////////////////////////////////////////////
6566 -->
6567
6568 <interface
6569 name="IUSBController" extends="$unknown"
6570 uuid="9a110c34-93c2-46b0-8ac2-b09d1067be56"
6571 wsmap="managed"
6572 >
6573 <attribute name="enabled" type="boolean">
6574 <desc>
6575 Flag whether the USB controller is present in the
6576 guest system. If disabled, the virtual guest hardware will
6577 not contain any USB controller. Can only be changed when
6578 the VM is powered off.
6579 </desc>
6580 </attribute>
6581
6582 <attribute name="USBStandard" type="unsigned short" readonly="yes">
6583 <desc>
6584 USB standard version which the controller implements.
6585 This is a BCD which means that the major version is in the
6586 high byte and minor version is in the low byte.
6587 </desc>
6588 </attribute>
6589
6590 <attribute name="DeviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
6591 <desc>
6592 List of USB device filters associated with the machine.
6593
6594 If the machine is currently running, these filters are activated
6595 every time a new (supported) USB device is attached to the host
6596 computer that was not ignored by global filters
6597 (<link to="IHost::USBDeviceFilters"/>).
6598
6599 These filters are also activated when the machine is powered up.
6600 They are run against a list of all currently available USB
6601 devices (in states
6602 <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link>,
6603 <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
6604 <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>)
6605 that were not previously ignored by global filters.
6606
6607 If at least one filter matches the USB device in question, this
6608 device is automatically captured (attached to) the virtual USB
6609 controller of this machine.
6610
6611 <see>IUSBDeviceFilter, ::IUSBController</see>
6612 </desc>
6613 </attribute>
6614
6615 <method name="createDeviceFilter">
6616 <desc>
6617 Creates a new USB device filter. All attributes except
6618 the filter name are set to <tt>null</tt> (any match),
6619 <i>active</i> is <tt>false</tt> (the filter is not active).
6620
6621 The created filter can then be added to the list of filters using
6622 <link to="#insertDeviceFilter()"/>.
6623
6624 <see>#DeviceFilters</see>
6625 </desc>
6626 <param name="name" type="wstring" dir="in">
6627 <desc>
6628 Filter name. See <link to="IUSBDeviceFilter::name"/>
6629 for more info.
6630 </desc>
6631 </param>
6632 <param name="filter" type="IUSBDeviceFilter" dir="return">
6633 <desc>Created filter object.</desc>
6634 </param>
6635 </method>
6636
6637 <method name="insertDeviceFilter">
6638 <desc>
6639 Inserts the given USB device to the specified position
6640 in the list of filters.
6641
6642 Positions are numbered starting from <tt>0</tt>. If the specified
6643 position is equal to or greater than the number of elements in
6644 the list, the filter is added to the end of the collection.
6645
6646 <note>
6647 Duplicates are not allowed, so an attempt to inster a
6648 filter that is already in the collection, will return an
6649 error.
6650 </note>
6651
6652 <see>#DeviceFilters</see>
6653 </desc>
6654 <param name="position" type="unsigned long" dir="in">
6655 <desc>Position to insert the filter to.</desc>
6656 </param>
6657 <param name="filter" type="IUSBDeviceFilter" dir="in">
6658 <desc>USB device filter to insert.</desc>
6659 </param>
6660 </method>
6661
6662 <method name="removeDeviceFilter">
6663 <desc>
6664 Removes a USB device filter from the specified position in the
6665 list of filters.
6666
6667 Positions are numbered starting from <tt>0</tt>. Specifying a
6668 position equal to or greater than the number of elements in
6669 the list will produce an error.
6670
6671 <see>#DeviceFilters</see>
6672 </desc>
6673 <param name="position" type="unsigned long" dir="in">
6674 <desc>Position to remove the filter from.</desc>
6675 </param>
6676 <param name="filter" type="IUSBDeviceFilter" dir="return">
6677 <desc>Removed USB device filter.</desc>
6678 </param>
6679 </method>
6680
6681 </interface>
6682
6683
6684 <!--
6685 // IUSBDevice
6686 /////////////////////////////////////////////////////////////////////////
6687 -->
6688
6689 <enumerator
6690 name="IUSBDeviceEnumerator" type="IUSBDevice"
6691 uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
6692 />
6693
6694 <collection
6695 name="IUSBDeviceCollection" type="IUSBDevice"
6696 enumerator="IUSBDeviceEnumerator"
6697 uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
6698 readonly="yes"
6699 >
6700 <method name="findById">
6701 <desc>
6702 Searches this collection for a USB device with the given UUID.
6703 <note>
6704 The method returns an error if the given UUID does not
6705 correspond to any USB device in the collection.
6706 </note>
6707 <see>IUSBDevice::id</see>
6708 </desc>
6709 <param name="id" type="uuid" dir="in">
6710 <desc>UUID of the USB device to search for.</desc>
6711 </param>
6712 <param name="device" type="IUSBDevice" dir="return">
6713 <desc>Found USB device object.</desc>
6714 </param>
6715 </method>
6716
6717 <method name="findByAddress">
6718 <desc>
6719 Searches this collection for a USB device with the given
6720 host address.
6721 <note>
6722 The method returns an error if the given address does not
6723 correspond to any USB device in the collection.
6724 </note>
6725 <see>IUSBDevice::address</see>
6726 </desc>
6727 <param name="name" type="wstring" dir="in">
6728 <desc>
6729 Address of the USB device (as assigned by the host) to
6730 search for.
6731 </desc>
6732 </param>
6733 <param name="device" type="IUSBDevice" dir="return">
6734 <desc>Found USB device object.</desc>
6735 </param>
6736 </method>
6737
6738 </collection>
6739
6740 <interface
6741 name="IUSBDevice" extends="$unknown"
6742 uuid="c5ab8d05-1999-4e48-ae34-cdeb235aacf0"
6743 wsmap="managed"
6744 >
6745 <desc>
6746 The IUSBDevice interface represents a USB device captured by
6747 (attached to) a running virtual machine's USB controller.
6748 <see>IConsole::USBDevices</see>
6749 </desc>
6750
6751 <attribute name="id" type="uuid" readonly="yes">
6752 <desc>
6753 Unique USB device ID. This ID is built from #vendorId,
6754 #productId, #revision and #serialNumber.
6755 </desc>
6756 </attribute>
6757
6758 <attribute name="vendorId" type="unsigned short" readonly="yes">
6759 <desc>Vendor ID.</desc>
6760 </attribute>
6761
6762 <attribute name="productId" type="unsigned short" readonly="yes">
6763 <desc>Product ID.</desc>
6764 </attribute>
6765
6766 <attribute name="revision" type="unsigned short" readonly="yes">
6767 <desc>
6768 Product revision number. This is a packed BCD represented as
6769 unsigned short. The high byte is the integer part and the low
6770 byte is the decimal.
6771 </desc>
6772 </attribute>
6773
6774 <attribute name="manufacturer" type="wstring" readonly="yes">
6775 <desc>Manufacturer string.</desc>
6776 </attribute>
6777
6778 <attribute name="product" type="wstring" readonly="yes">
6779 <desc>Product string.</desc>
6780 </attribute>
6781
6782 <attribute name="serialNumber" type="wstring" readonly="yes">
6783 <desc>Serial number string.</desc>
6784 </attribute>
6785
6786 <attribute name="address" type="wstring" readonly="yes">
6787 <desc>Host specific address of the device.</desc>
6788 </attribute>
6789
6790 <attribute name="port" type="unsigned short" readonly="yes">
6791 <desc>
6792 Host USB port number the device is physically
6793 coonected to.
6794 </desc>
6795 </attribute>
6796
6797 <attribute name="remote" type="boolean" readonly="yes">
6798 <desc>
6799 Whether the device is physically connected to a remote VRDP
6800 client or to a local host machine.
6801 </desc>
6802 </attribute>
6803
6804 </interface>
6805
6806
6807 <!--
6808 // IUSBDeviceFilter
6809 /////////////////////////////////////////////////////////////////////////
6810 -->
6811
6812 <enumerator
6813 name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
6814 uuid="8d066d8b-3576-4a22-a387-847840937453"
6815 />
6816
6817 <collection
6818 name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
6819 enumerator="IUSBDeviceFilterEnumerator"
6820 uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
6821 readonly="yes"
6822 />
6823
6824 <interface
6825 name="IUSBDeviceFilter" extends="$unknown"
6826 uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
6827 wsmap="managed"
6828 >
6829 <desc>
6830 The IUSBDeviceFilter interface represents an USB device filter used
6831 to perform actions on a group of USB devices.
6832
6833 This type of filters is used by running virtual machines to
6834 automatically capture selected USB devices once they are physically
6835 attached to the host computer.
6836
6837 A USB device is matched to the given device filter if and only if all
6838 attributes of the device match the corresponding attributes of the
6839 filter (that is, attributes are joined together using the logical AND
6840 operation). On the other hand, all together, filters in the list of
6841 filters carry the semantics of the logical OR operation. So if it is
6842 desirable to create a match like "this vendor id OR this product id",
6843 one needs to create two filters and specify "any match" (see below)
6844 for unused attributes.
6845
6846 All filter attributes used for matching are strings. Each string
6847 is an expression representing a set of values of the corresponding
6848 device attribute, that will match the given filter. Currently, the
6849 following filtering expressions are supported:
6850
6851 <ul>
6852 <li><i>Interval filters</i>. Used to specify valid intervals for
6853 integer device attributes (Vendor ID, Product ID and Revision).
6854 The format of the string is:
6855
6856 <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
6857
6858 where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
6859 (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
6860 or decimal (otherwise) form, so that <tt>m &lt; n</tt>. If <tt>m</tt>
6861 is ommitted before a dash (<tt>-</tt>), the minimum possible integer
6862 is assumed; if <tt>n</tt> is ommitted after a dash, the maximum
6863 possible integer is assummed.
6864 </li>
6865 <li><i>Boolean filters</i>. Used to specify acceptable values for
6866 boolean device attributes. The format of the string is:
6867
6868 <tt>true|false|yes|no|0|1</tt>
6869
6870 </li>
6871 <li><i>Exact match</i>. Used to specify a single value for the given
6872 device attribute. Any string that does't start with <tt>int:</tt>
6873 represents the exact match. String device attributes are compared to
6874 this string including case of symbols. Integer attributes are first
6875 converted to a string (see individual filter attributes) and then
6876 compared ignoring case.
6877
6878 </li>
6879 <li><i>Any match</i>. Any value of the corresponding device attribute
6880 will match the given filter. An empty or <tt>null</tt> string is
6881 used to construct this type of filtering expressions.
6882
6883 </li>
6884 </ul>
6885
6886 <note>
6887 On the Windows host platform, interval filters are not currently
6888 available. Also all string filter attributes
6889 (<link to="#manufacturer"/>, <link to="#product"/>,
6890 <link to="#serialNumber"/>) are ignored, so they behave as
6891 <i>any match</i> no matter what string expression is specified.
6892 </note>
6893
6894 <see>IUSBController::DeviceFilters, IHostUSBDeviceFilter</see>
6895 </desc>
6896
6897 <attribute name="name" type="wstring">
6898 <desc>
6899 Visible name for this filter.
6900 This name is used to visually distungish one filter from another,
6901 so it can neither be <tt>null</tt> nor an empty string.
6902 </desc>
6903 </attribute>
6904
6905 <attribute name="active" type="boolean">
6906 <desc>Whether this filter active or has been temporarily disabled.</desc>
6907 </attribute>
6908
6909 <attribute name="vendorId" type="wstring">
6910 <desc>
6911 <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
6912 The string representation for the <i>exact matching</i>
6913 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
6914 (including leading zeroes).
6915 </desc>
6916 </attribute>
6917
6918 <attribute name="productId" type="wstring">
6919 <desc>
6920 <link to="IUSBDevice::productId">Product ID</link> filter.
6921 The string representation for the <i>exact matching</i>
6922 has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
6923 (including leading zeroes).
6924 </desc>
6925 </attribute>
6926
6927 <attribute name="revision" type="wstring">
6928 <desc>
6929 <link to="IUSBDevice::productId">Product revision number</link>
6930 filter. The string representation for the <i>exact matching</i>
6931 has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
6932 of the integer part of the revision, and <tt>F</tt> is the
6933 decimal digit of its fractional part (including leading and
6934 trailing zeroes).
6935 Note that for interval filters, it's best to use the hexadecimal
6936 form, because the revision is stored as a 16 bit packed BCD value;
6937 so the expression <tt>int:0x0100-0x0199</tt> will match any
6938 revision from <tt>1.0</tt> to <tt>1.99</tt>.
6939 </desc>
6940 </attribute>
6941
6942 <attribute name="manufacturer" type="wstring">
6943 <desc>
6944 <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
6945 </desc>
6946 </attribute>
6947
6948 <attribute name="product" type="wstring">
6949 <desc>
6950 <link to="IUSBDevice::product">Product</link> filter.
6951 </desc>
6952 </attribute>
6953
6954 <attribute name="serialNumber" type="wstring">
6955 <desc>
6956 <link to="IUSBDevice::serialNumber">Serial number</link> filter.
6957 </desc>
6958 </attribute>
6959
6960 <attribute name="port" type="wstring">
6961 <desc>
6962 <link to="IUSBDevice::port">Host USB port</link> filter.
6963 </desc>
6964 </attribute>
6965
6966 <attribute name="remote" type="wstring">
6967 <desc>
6968 <link to="IUSBDevice::remote">Remote state</link> filter.
6969 <note>
6970 This filter makes sense only for machine USB filters,
6971 i.e. it is ignored by IHostUSBDeviceFilter objects.
6972 </note>
6973 </desc>
6974 </attribute>
6975
6976 </interface>
6977
6978
6979 <!--
6980 // IHostUSBDevice
6981 /////////////////////////////////////////////////////////////////////////
6982 -->
6983
6984 <enum
6985 name="USBDeviceState"
6986 uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
6987 >
6988 <desc>
6989 USB device state. This enumeration represents all possible states
6990 of the USB device physically attached to the host computer regarding
6991 its state on the host computer and availability to guest computers
6992 (all currently running virtual machines).
6993
6994 Once a supported USB device is attached to the host, global USB
6995 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
6996 either ignore the device, or put ot to #USBDeviceHeld state, or do
6997 nothing. Unless the device is ignored by global filters, filters of
6998 all currently running guests (<link to="IUSBController::DeviceFilters"/>)
6999 are activated that can put it to #USBDeviceCaptured state.
7000
7001 If the device was ignored by global filters, or didn't match
7002 any filters at all (including guest ones), it is handled by the host
7003 in a normal way. In this case, the device state is determined by
7004 the host and can be one of #USBDeviceUnavailable, #USBDeviceBusy or
7005 #USBDeviceAvailable, depending on the current device usage.
7006
7007 Besides auto-capturing based on filters, the device can be manually
7008 captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
7009 state is #USBDeviceBusy, #USBDeviceAvailable or #USBDeviceHeld.
7010
7011 <note>
7012 Due to differences in USB stack implementations in Linux and Win32,
7013 states #USBDeviceBusy and #USBDeviceAvailable are applicable
7014 only to the Linux version of the product. This also means that
7015 (<link to="IConsole::attachUSBDevice()"/>) can only succeed
7016 on Win32 if the device state is #USBDeviceHeld.
7017 </note>
7018
7019 <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
7020 </desc>
7021
7022 <const name="USBDeviceNotSupported" value="0">
7023 <desc>
7024 Not supported by the VirtualBox server, not available to guests.
7025 </desc>
7026 </const>
7027 <const name="USBDeviceUnavailable" value="1">
7028 <desc>
7029 Being used by the host computer exclusively,
7030 not available to guests.
7031 </desc>
7032 </const>
7033 <const name="USBDeviceBusy" value="2">
7034 <desc>
7035 Being used by the host computer, potentially available to guests.
7036 </desc>
7037 </const>
7038 <const name="USBDeviceAvailable" value="3">
7039 <desc>
7040 Not used by the host computer, available to guests.
7041 The host computer can also start using the device at any time.
7042 </desc>
7043 </const>
7044 <const name="USBDeviceHeld" value="4">
7045 <desc>
7046 Held by the VirtualBox server (ignored by the host computer),
7047 available to guests.
7048 </desc>
7049 </const>
7050 <const name="USBDeviceCaptured" value="5">
7051 <desc>
7052 Captured by one of the guest computers, not available
7053 to anybody else.
7054 </desc>
7055 </const>
7056 </enum>
7057
7058 <enumerator
7059 name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
7060 uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
7061 />
7062
7063 <collection
7064 name="IHostUSBDeviceCollection" type="IHostUSBDevice"
7065 enumerator="IHostUSBDeviceEnumerator"
7066 uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
7067 readonly="yes"
7068 >
7069 <method name="findById">
7070 <desc>
7071 Searches this collection for a USB device with the given UUID.
7072 <note>
7073 The method returns an error if the given UUID does not
7074 correspond to any USB device in the collection.
7075 </note>
7076 <see>IHostUSBDevice::id</see>
7077 </desc>
7078 <param name="id" type="uuid" dir="in">
7079 <desc>UUID of the USB device to search for.</desc>
7080 </param>
7081 <param name="device" type="IHostUSBDevice" dir="return">
7082 <desc>Found USB device object.</desc>
7083 </param>
7084 </method>
7085
7086 <method name="findByAddress">
7087 <desc>
7088 Searches this collection for a USB device with the given
7089 host address.
7090 <note>
7091 The method returns an error if the given address does not
7092 correspond to any USB device in the collection.
7093 </note>
7094 <see>IHostUSBDevice::address</see>
7095 </desc>
7096 <param name="name" type="wstring" dir="in">
7097 <desc>
7098 Address of the USB device (as assigned by the host) to
7099 search for.
7100 </desc>
7101 </param>
7102 <param name="device" type="IHostUSBDevice" dir="return">
7103 <desc>Found USB device object.</desc>
7104 </param>
7105 </method>
7106
7107 </collection>
7108
7109 <interface
7110 name="IHostUSBDevice" extends="IUSBDevice"
7111 uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
7112 wsmap="managed"
7113 >
7114 <desc>
7115 The IHostUSBDevice interface represents a USB device attached to
7116 the host computer.
7117
7118 Among with properties inherited from IUSBDevice,
7119 this interface adds the <link to="#state"/> property
7120 that holds the courrent state of the USB device.
7121
7122 <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
7123 </desc>
7124
7125 <attribute name="state" type="USBDeviceState" readonly="yes">
7126 <desc>
7127 Current state of the device.
7128 </desc>
7129 </attribute>
7130
7131 <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
7132
7133 </interface>
7134
7135
7136 <!--
7137 // IHostUSBDeviceFilter
7138 /////////////////////////////////////////////////////////////////////////
7139 -->
7140
7141 <enum
7142 name="USBDeviceFilterAction"
7143 uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
7144 >
7145 <desc>
7146 Actions for host USB device filters.
7147 <see>IHostUSBDeviceFilter, USBDeviceState</see>
7148 </desc>
7149
7150 <const name="InvalidUSBDeviceFilterAction" value="0"/>
7151 <const name="USBDeviceFilterIgnore" value="1">
7152 <desc>Ignore the matched USB device.</desc>
7153 </const>
7154 <const name="USBDeviceFilterHold" value="2">
7155 <desc>Hold the matched USB device.</desc>
7156 </const>
7157 </enum>
7158
7159 <enumerator
7160 name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
7161 uuid="ff735211-903e-4642-9c37-189eb44579fe"
7162 />
7163
7164 <collection
7165 name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
7166 enumerator="IHostUSBDeviceFilterEnumerator"
7167 uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
7168 readonly="yes"
7169 />
7170
7171 <interface
7172 name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
7173 uuid="4cc70246-d74a-400f-8222-3900489c0374"
7174 wsmap="managed"
7175 >
7176 <desc>
7177 The IHostUSBDeviceFilter interface represents a USB device filter used
7178 by the host computer.
7179
7180 Using filters of this type, the host computer determines the initial
7181 state of the USB device after it is physically attached to the
7182 host's USB controller.
7183
7184 <note>
7185 The <link to="#remote"/> attribute is ignored by this type of
7186 filters, because it makes sense only for
7187 <link to="IUSBController::DeviceFilters">machine USB filters</link>.
7188 </note>
7189
7190 <see>IHost::USBDeviceFilters</see>
7191 </desc>
7192
7193 <attribute name="action" type="USBDeviceFilterAction">
7194 <desc>
7195 Action performed by the host when an attached USB device
7196 matches this filter.
7197 </desc>
7198 </attribute>
7199
7200 </interface>
7201
7202 <!--
7203 // IAudioAdapter
7204 /////////////////////////////////////////////////////////////////////////
7205 -->
7206
7207 <enum
7208 name="AudioDriverType"
7209 uuid="0194b900-7233-42d3-b7a1-097bbf53febd"
7210 >
7211 <const name="NullAudioDriver" value="0"/>
7212 <const name="WINMMAudioDriver" value="1"/>
7213 <const name="OSSAudioDriver" value="2"/>
7214 <const name="ALSAAudioDriver" value="3"/>
7215 <const name="DSOUNDAudioDriver" value="4"/>
7216 <const name="CoreAudioDriver" value="5"/>
7217 </enum>
7218
7219 <interface
7220 name="IAudioAdapter" extends="$unknown"
7221 uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
7222 wsmap="struct"
7223 >
7224 <attribute name="enabled" type="boolean">
7225 <desc>
7226 Flag whether the audio adapter is present in the
7227 guest system. If disabled, the virtual guest hardware will
7228 not contain any audio adapter. Can only be changed when
7229 the VM is not running.
7230 </desc>
7231 </attribute>
7232 <attribute name="audioDriver" type="AudioDriverType">
7233 <desc>
7234 Audio driver the adapter is connected to. This setting
7235 can only be changed when the VM is not running.
7236 </desc>
7237 </attribute>
7238 </interface>
7239
7240 <!--
7241 // IVRDPServer
7242 /////////////////////////////////////////////////////////////////////////
7243 -->
7244
7245 <enum
7246 name="VRDPAuthType"
7247 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
7248 >
7249 <const name="VRDPAuthNull" value="0"/>
7250 <const name="VRDPAuthExternal" value="1"/>
7251 <const name="VRDPAuthGuest" value="2"/>
7252 </enum>
7253
7254 <interface
7255 name="IVRDPServer" extends="$unknown"
7256 uuid="ed9d31ae-867f-45fc-b727-6740084d1883"
7257 wsmap="struct"
7258 >
7259 <attribute name="enabled" type="boolean">
7260 <desc>VRDP server status.</desc>
7261 </attribute>
7262
7263 <attribute name="port" type="unsigned long">
7264 <desc>VRDP server port.</desc>
7265 </attribute>
7266
7267 <attribute name="netAddress" type="wstring">
7268 <desc>VRDP server address.</desc>
7269 </attribute>
7270
7271 <attribute name="authType" type="VRDPAuthType">
7272 <desc>VRDP authentication method.</desc>
7273 </attribute>
7274
7275 <attribute name="authTimeout" type="unsigned long">
7276 <desc>Timeout for guest authentication. Milliseconds.</desc>
7277 </attribute>
7278
7279 <attribute name="allowMultiConnection" type="boolean">
7280 <desc>
7281 Flag whether multiple simultaneous connections to the VM are permitted.
7282 Note that this will be replaced by a more powerful mechanism in the future.
7283 </desc>
7284 </attribute>
7285
7286 </interface>
7287
7288
7289 <!--
7290 // ISharedFolder
7291 /////////////////////////////////////////////////////////////////////////
7292 -->
7293
7294 <enumerator
7295 name="ISharedFolderEnumerator" type="ISharedFolder"
7296 uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
7297 />
7298
7299 <collection
7300 name="ISharedFolderCollection" type="ISharedFolder"
7301 enumerator="ISharedFolderEnumerator"
7302 uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
7303 readonly="yes">
7304
7305 <method name="findByName">
7306 <desc>
7307 Searches this collection for a shared folder drive with the
7308 given logical name.
7309 <note>
7310 The method returns an error if the given name does not
7311 correspond to any shared folder in the collection.
7312 </note>
7313 </desc>
7314 <param name="name" type="wstring" dir="in">
7315 <desc>Logical name of the shared folder to search for</desc>
7316 </param>
7317 <param name="sharedFolder" type="ISharedFolder" dir="return">
7318 <desc>Found shared folder object</desc>
7319 </param>
7320 </method>
7321
7322 </collection>
7323
7324 <interface
7325 name="ISharedFolder" extends="$unknown"
7326 uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
7327 wsmap="struct"
7328 >
7329 <desc>
7330 The ISharedFolder interface represents a folder in the host
7331 computer's file system accessible from a guest OS running inside a
7332 virtual machine using an associated logical name.
7333
7334 There are three types of shared folders:
7335 <ul>
7336 <li>permanent (<link to="IMachine::sharedFolders"/>)</li>
7337 <li>transient (<link to="IConsole::sharedFolders"/>)</li>
7338 <li>global (<link to="IVirtualBox::sharedFolders"/>)</li>
7339 </ul>
7340
7341 For a given virtual machine, both permanently and transiently
7342 shared folders have the same logical name space which also includes
7343 all globally shared folders. Thus, every folder in this name space
7344 must have an unique logical name. Note that permanent and transient
7345 shares of other machines are in different name spaces, so they don't
7346 have to have unique names.
7347 </desc>
7348
7349 <attribute name="name" type="wstring" readonly="yes">
7350 <desc>Logical name of the shared folder.</desc>
7351 </attribute>
7352
7353 <attribute name="hostPath" type="wstring" readonly="yes">
7354 <desc>Full path to the shared folder in the host file system.</desc>
7355 </attribute>
7356
7357 <attribute name="accessible" type="boolean" readonly="yes">
7358 <desc>
7359 Whether the folder defined by the host path is currently
7360 accessible or not.
7361 For example, the folder can be unaccessible if it is placed
7362 on the network share that is not available by the time
7363 this property is read.
7364 </desc>
7365 </attribute>
7366
7367 </interface>
7368
7369 <!--
7370 // ISession
7371 /////////////////////////////////////////////////////////////////////////
7372 -->
7373
7374 <interface
7375 name="IInternalSessionControl" extends="$unknown"
7376 uuid="9c6bec01-4135-40a0-b9d3-ab119a9c5412"
7377 internal="yes"
7378 wsmap="suppress"
7379 >
7380 <method name="getPID">
7381 <desc>PID of the process that has created this Session object.
7382 </desc>
7383 <param name="pid" type="unsigned long" dir="return"/>
7384 </method>
7385
7386 <method name="getRemoteConsole">
7387 <desc>Returns the console object suitable for remote control.</desc>
7388 <param name="console" type="IConsole" dir="return"/>
7389 </method>
7390
7391 <method name="assignMachine">
7392 <desc>
7393 Assigns the machine object associated with this direct-type
7394 session or informs the session that it will be a remote one
7395 (if machine = NULL).
7396 </desc>
7397 <param name="machine" type="IMachine" dir="in"/>
7398 </method>
7399
7400 <method name="assignRemoteMachine">
7401 <desc>
7402 Assigns the machine and the (remote) console object associated with
7403 this remote-type session.
7404 </desc>
7405 <param name="machine" type="IMachine" dir="in"/>
7406 <param name="console" type="IConsole" dir="in"/>
7407 </method>
7408
7409 <method name="updateMachineState">
7410 <desc>
7411 Updates the machine state in the VM process.
7412 Must be called only in certain cases
7413 (see the method implementation).
7414 </desc>
7415 <param name="aMachineState" type="MachineState" dir="in"/>
7416 </method>
7417
7418 <method name="uninitialize">
7419 <desc>
7420 Uninitializes (closes) this session. Used by VirtualBox to close
7421 the corresponding remote session when the direct session dies
7422 or gets closed.
7423 </desc>
7424 </method>
7425
7426 <method name="onDVDDriveChange">
7427 <desc>
7428 Triggered when settings of the DVD drive object of the
7429 associated virtual machine have changed.
7430 </desc>
7431 </method>
7432
7433 <method name="onFloppyDriveChange">
7434 <desc>
7435 Triggered when settings of the floppy drive object of the
7436 associated virtual machine have changed.
7437 </desc>
7438 </method>
7439
7440 <method name="onNetworkAdapterChange">
7441 <desc>
7442 Triggered when settions of a network adapter of the
7443 associated virtual machine have changed.
7444 </desc>
7445 <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
7446 </method>
7447
7448 <method name="onVRDPServerChange">
7449 <desc>
7450 Triggered when settings of the VRDP server object of the
7451 associated virtual machine have changed.
7452 </desc>
7453 </method>
7454
7455 <method name="onUSBControllerChange">
7456 <desc>
7457 Triggered when settings of the USB controller object of the
7458 associated virtual machine have changed.
7459 </desc>
7460 </method>
7461
7462 <method name="onUSBDeviceAttach">
7463 <desc>
7464 Triggered when a USB device has just been attached to the host
7465 computer and is to be auto-captured by the machine according
7466 to its USB filters.
7467 </desc>
7468 <param name="device" type="IUSBDevice" dir="in"/>
7469 </method>
7470
7471 <method name="onUSBDeviceDetach">
7472 <desc>
7473 Triggered when a USB device has just been detached from the host
7474 computer and needs to be detached from the machine.
7475 </desc>
7476 <param name="id" type="uuid" dir="in"/>
7477 </method>
7478
7479 <method name="onShowWindow">
7480 <desc>
7481 Called by <link to="IMachine::canShowConsoleWindow()"/> and by
7482 <link to="IMachine::showConsoleWindow()"/> in order to notify
7483 console callbacks
7484 <link to="IConsoleCallback::onCanShowWindow()"/>
7485 and <link to="IConsoleCallback::onShowWindow()"/>.
7486 </desc>
7487 <param name="check" type="boolean" dir="in"/>
7488 <param name="canShow" type="boolean" dir="out"/>
7489 <param name="winId" type="unsigned long long" dir="out"/>
7490 </method>
7491
7492 </interface>
7493
7494 <interface
7495 name="ISession" extends="$dispatched"
7496 uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
7497 wsmap="managed"
7498 >
7499 <attribute name="state" type="SessionState" readonly="yes">
7500 <desc>Current state of this session.</desc>
7501 </attribute>
7502
7503 <attribute name="type" type="SessionType" readonly="yes">
7504 <desc>
7505 Type of this session. The value of this attribute is valid only
7506 if the session is currently open (i.e. its #state is SessionType::SessionOpen),
7507 otherwise an error will be returned.
7508 </desc>
7509 </attribute>
7510
7511 <attribute name="machine" type="IMachine" readonly="yes">
7512 <desc>Machine object associated with this session.</desc>
7513 </attribute>
7514
7515 <attribute name="console" type="IConsole" readonly="yes">
7516 <desc>Console object associated with this session.</desc>
7517 </attribute>
7518
7519 <method name="close">
7520 <desc>
7521 Closes this session.
7522 <note>
7523 If a direct session for a machine opened with
7524 <link to="IVirtualBox::openSession()"/> is not explicitly
7525 closed when the application terminates, the state of the
7526 machine will be set to <link to="MachineState::Aborted"/>
7527 on the server. Generally, it is recommended to close all
7528 open sessions explicitly before terminating the application
7529 (no matter what is the reason of the termination).
7530 </note>
7531 </desc>
7532 </method>
7533
7534 </interface>
7535
7536 <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
7537 namespace="virtualbox.org">
7538 <interface name="ISession" default="yes"/>
7539 </class>
7540
7541<if target="wsdl">
7542
7543 <!--
7544 // IManagedObjectRef
7545 /////////////////////////////////////////////////////////////////////////
7546 -->
7547
7548 <interface
7549 name="IManagedObjectRef" extends="$unknown"
7550 uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
7551 internal="yes"
7552 wsmap="explicit"
7553 >
7554 <method name="getInterfaceName">
7555 <desc>
7556 Returns the name of the interface that this managed object represents,
7557 for example, "IMachine", as a string.
7558 </desc>
7559 </method>
7560
7561 <method name="release">
7562 <desc>
7563 Releases this managed object reference and frees the resources that
7564 were allocated for it in the web service server process. After calling
7565 this method, the identifier of the reference can no longer be used.
7566 </desc>
7567 </method>
7568
7569 </interface>
7570</if>
7571
7572</module>
7573
7574</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