VirtualBox

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

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

Web services: XSLTs operate on the real VirtualBox.xidl now; got rid of testcase.xidl; more cleanups, support for structures in arrays.

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