1 | <?xml version="1.0" ?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 | * :tabSize=2:indentSize=2:noTabs=true:
|
---|
5 | * :folding=explicit:collapseFolds=1:
|
---|
6 | *
|
---|
7 | * Master declaration for VirtualBox's Main API, represented
|
---|
8 | * by COM/XPCOM and web service interfaces.
|
---|
9 | *
|
---|
10 | * From this document, the build system generates several files
|
---|
11 | * via XSLT that are then used during the build process.
|
---|
12 | *
|
---|
13 | * Below is the list of XSL templates that operate on this file and
|
---|
14 | * output files they generate. These XSL templates must be updated
|
---|
15 | * whenever the schema of this file changes:
|
---|
16 | *
|
---|
17 | * 1. src/VBox/Main/idl/midl.xsl =>
|
---|
18 | * out/<platform>/bin/sdk/idl/VirtualBox.idl
|
---|
19 | * (MS COM interface definition file for Main API)
|
---|
20 | *
|
---|
21 | * 2. src/VBox/Main/idl/xpidl.xsl =>
|
---|
22 | * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
|
---|
23 | * (XPCOM interface definition file for Main API)
|
---|
24 | *
|
---|
25 | * 3. src/VBox/Main/idl/doxygen.xsl =>
|
---|
26 | * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
|
---|
27 | * (pseudo-IDL for Doxygen to generate the official Main API
|
---|
28 | * documentation)
|
---|
29 | *
|
---|
30 | * 4. src/VBox/Main/webservice/*.xsl =>
|
---|
31 | * a bunch of WSDL and C++ files
|
---|
32 | * (VirtualBox web service sources and SOAP mappers;
|
---|
33 | * see src/VBox/Main/webservice/Makefile.kmk for details)
|
---|
34 | *
|
---|
35 | * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
|
---|
36 | * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
|
---|
37 | * (smart Qt-based C++ wrapper classes for COM interfaces
|
---|
38 | * of the Main API)
|
---|
39 | *
|
---|
40 | * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
|
---|
41 | * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
|
---|
42 | * (Main API TypeLib block for the WiX installer)
|
---|
43 | *
|
---|
44 | Copyright (C) 2006-2007 innotek GmbH
|
---|
45 |
|
---|
46 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
47 | available from http://www.virtualbox.org. This file is free software;
|
---|
48 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
49 | General Public License (GPL) as published by the Free Software
|
---|
50 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
51 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
52 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
53 | -->
|
---|
54 |
|
---|
55 | <idl>
|
---|
56 |
|
---|
57 | <if target="midl">
|
---|
58 | <cpp line="enum {"/>
|
---|
59 | <cpp line=" kTypeLibraryMajorVersion = 1,"/>
|
---|
60 | <cpp line=" kTypeLibraryMinorVersion = 0"/>
|
---|
61 | <cpp line="};"/>
|
---|
62 | </if>
|
---|
63 |
|
---|
64 | <if target="xpidl">
|
---|
65 | <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
|
---|
66 | <cpp>
|
---|
67 | // currenty, nsISupportsImpl.h lacks the below-like macros
|
---|
68 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
69 | #define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
70 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
71 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
72 | NS_IMPL_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
73 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
74 | #endif
|
---|
75 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
76 | #define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
77 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
78 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
79 | NS_IMPL_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
80 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
81 | #endif
|
---|
82 | </cpp>
|
---|
83 | </if>
|
---|
84 |
|
---|
85 | <library
|
---|
86 | name="VirtualBox"
|
---|
87 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
88 | version="1.3"
|
---|
89 | desc="innotek VirtualBox Type Library"
|
---|
90 | appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
|
---|
91 | supportsErrorInfo="yes"
|
---|
92 | >
|
---|
93 |
|
---|
94 | <!--
|
---|
95 | // all common enums
|
---|
96 | /////////////////////////////////////////////////////////////////////////
|
---|
97 | -->
|
---|
98 |
|
---|
99 | <enum
|
---|
100 | name="TriStateBool"
|
---|
101 | uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
|
---|
102 | >
|
---|
103 | <desc>
|
---|
104 | This represents a boolean variable having a third state, default.
|
---|
105 | </desc>
|
---|
106 |
|
---|
107 | <const name="False" value="0"/>
|
---|
108 | <const name="True" value="1"/>
|
---|
109 | <const name="Default" value="2"/>
|
---|
110 | </enum>
|
---|
111 |
|
---|
112 | <enum
|
---|
113 | name="MachineState"
|
---|
114 | uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
|
---|
115 | >
|
---|
116 | <desc>
|
---|
117 | Virtual machine execution state. This enumeration represents possible
|
---|
118 | values of the <link to="IMachine::state"/> attribute.
|
---|
119 | </desc>
|
---|
120 |
|
---|
121 | <const name="InvalidMachineState" value="0">
|
---|
122 | <desc>
|
---|
123 | Invalid machine state. This state is never used by the virtual machine
|
---|
124 | and may be used as a <tt>null</tt> value for state
|
---|
125 | variables.
|
---|
126 | </desc>
|
---|
127 | </const>
|
---|
128 | <const name="PoweredOff" value="1">
|
---|
129 | <desc>
|
---|
130 | The machine is not running.
|
---|
131 | </desc>
|
---|
132 | </const>
|
---|
133 | <const name="Saved" value="2">
|
---|
134 | <desc>
|
---|
135 | The machine is not currently running, but the execution state
|
---|
136 | of the machine has been saved to an external file when it
|
---|
137 | was running.
|
---|
138 | <note>
|
---|
139 | No any machine settings can be altered when the machine
|
---|
140 | is in this state.
|
---|
141 | </note>
|
---|
142 | </desc>
|
---|
143 | </const>
|
---|
144 | <const name="Aborted" value="3">
|
---|
145 | <desc>
|
---|
146 | A process that run the machine has abnormally terminated.
|
---|
147 | Other than that, this value is equivalent to #PoweredOff.
|
---|
148 | </desc>
|
---|
149 | </const>
|
---|
150 | <const name="Running" value="4">
|
---|
151 | <desc>
|
---|
152 | The machine is currently being executed.
|
---|
153 | <note>
|
---|
154 | This value can be used in comparison expressions:
|
---|
155 | all state values below it describe a virtual machine that is
|
---|
156 | not currently being executed (i.e., it is completely out of
|
---|
157 | action).
|
---|
158 | </note>
|
---|
159 | <note>
|
---|
160 | For whoever decides to touch this enum: In order to keep the
|
---|
161 | aforementioned comparisons valid, this state must immediately
|
---|
162 | preceed the Paused state.
|
---|
163 | </note>
|
---|
164 | </desc>
|
---|
165 | </const>
|
---|
166 | <const name="Paused" value="5">
|
---|
167 | <desc>
|
---|
168 | The execution of the machine has been paused.
|
---|
169 | <note>
|
---|
170 | This value can be used in comparison expressions: all state values
|
---|
171 | above it represent unstable states of the running virtual
|
---|
172 | machine. Unless explicitly stated otherwise, no machine settings can
|
---|
173 | be altered when it is in one of the unstable sates.
|
---|
174 | </note>
|
---|
175 | <note>
|
---|
176 | For whoever decides to touch this enum: In order to keep the
|
---|
177 | aforementioned comparisons valid, this state must immediately
|
---|
178 | follow the Running state.
|
---|
179 | </note>
|
---|
180 | </desc>
|
---|
181 | </const>
|
---|
182 | <const name="Stuck" value="6">
|
---|
183 | <desc>
|
---|
184 | The execution of the machine has reached the Guru Meditaion
|
---|
185 | condition. This condition indicates an internal VMM failure which may
|
---|
186 | happen as a result of either an unhandled low-level virtual hardware
|
---|
187 | exception or one of the recompiler exceptions (such as
|
---|
188 | the <i>too-many-traps</i> condition).
|
---|
189 | </desc>
|
---|
190 | </const>
|
---|
191 | <const name="Starting" value="7">
|
---|
192 | <desc>
|
---|
193 | The machine is being started after
|
---|
194 | <link to="IConsole::powerUp">powering it on</link> from a
|
---|
195 | zero execution state.
|
---|
196 | </desc>
|
---|
197 | </const>
|
---|
198 | <const name="Stopping" value="8">
|
---|
199 | <desc>
|
---|
200 | The machine is being normally stopped
|
---|
201 | (after explicitly <link to="IConsole::powerDown">powering it off</link>,
|
---|
202 | or after the guest OS has initiated a shutdown sequence).
|
---|
203 | </desc>
|
---|
204 | </const>
|
---|
205 | <const name="Saving" value="9">
|
---|
206 | <desc>
|
---|
207 | The machine is saving its execution state to a file as a
|
---|
208 | result of calling <link to="IConsole::saveState"/> or an online
|
---|
209 | snapshot of the machine is being taken using
|
---|
210 | <link to="IConsole::takeSnapshot"/>.
|
---|
211 | </desc>
|
---|
212 | </const>
|
---|
213 | <const name="Restoring" value="10">
|
---|
214 | <desc>
|
---|
215 | The execution state of the machine is being restored from a file
|
---|
216 | after <link to="IConsole::powerUp">powering it on</link> from
|
---|
217 | a saved execution state.
|
---|
218 | </desc>
|
---|
219 | </const>
|
---|
220 | <const name="Discarding" value="11">
|
---|
221 | <desc>
|
---|
222 | A snapshot of the machine is being discarded after calling
|
---|
223 | <link to="IConsole::discardSnapshot"/> or its current state is
|
---|
224 | being discarded after <link to="IConsole::discardCurrentState"/>.
|
---|
225 | </desc>
|
---|
226 | </const>
|
---|
227 | </enum>
|
---|
228 |
|
---|
229 | <enum
|
---|
230 | name="SessionState"
|
---|
231 | uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
|
---|
232 | >
|
---|
233 | <desc>
|
---|
234 | Session state. This enumeration represents possible values of
|
---|
235 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
236 | attributes. Idividual value descriptions contain the appropriate
|
---|
237 | meaning for every case.
|
---|
238 | </desc>
|
---|
239 |
|
---|
240 | <const name="InvalidSessionState" value="0"/>
|
---|
241 | <const name="SessionClosed" value="1">
|
---|
242 | <desc>
|
---|
243 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
244 | the session is closed (<link to="ISession::state"/>)
|
---|
245 | </desc>
|
---|
246 | </const>
|
---|
247 | <const name="SessionOpen" value="2">
|
---|
248 | <desc>
|
---|
249 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
250 | the session is open (<link to="ISession::state"/>)
|
---|
251 | </desc>
|
---|
252 | </const>
|
---|
253 | <const name="SessionSpawning" value="3">
|
---|
254 | <desc>
|
---|
255 | A new (direct) session is being opened for the machine
|
---|
256 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
257 | call (<link to="IMachine::sessionState"/>);
|
---|
258 | the session is currently being opened
|
---|
259 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
260 | call (<link to="ISession::state"/>)
|
---|
261 | </desc>
|
---|
262 | </const>
|
---|
263 | <const name="SessionClosing" value="4">
|
---|
264 | <desc>
|
---|
265 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
266 | the session is being closed (<link to="ISession::state"/>)
|
---|
267 | </desc>
|
---|
268 | </const>
|
---|
269 | </enum>
|
---|
270 |
|
---|
271 | <enum
|
---|
272 | name="SessionType"
|
---|
273 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
274 | >
|
---|
275 | <desc>
|
---|
276 | Session type. This enumeration represents possible values of the
|
---|
277 | <link to="ISession::type"/> attribute.
|
---|
278 | </desc>
|
---|
279 |
|
---|
280 | <const name="InvalidSessionType" value="0"/>
|
---|
281 | <const name="DirectSession" value="1">
|
---|
282 | <desc>
|
---|
283 | Direct session
|
---|
284 | (opened by <link to="IVirtualBox::openSession()"/>)
|
---|
285 | </desc>
|
---|
286 | </const>
|
---|
287 | <const name="RemoteSession" value="2">
|
---|
288 | <desc>
|
---|
289 | Remote session
|
---|
290 | (opened by <link to="IVirtualBox::openRemoteSession()"/>)
|
---|
291 | </desc>
|
---|
292 | </const>
|
---|
293 | <const name="ExistingSession" value="3">
|
---|
294 | <desc>
|
---|
295 | Existing session
|
---|
296 | (opened by <link to="IVirtualBox::openExistingSession()"/>)
|
---|
297 | </desc>
|
---|
298 | </const>
|
---|
299 | </enum>
|
---|
300 |
|
---|
301 | <enum
|
---|
302 | name="DeviceType"
|
---|
303 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
304 | >
|
---|
305 | <desc>
|
---|
306 | Device type.
|
---|
307 | </desc>
|
---|
308 | <const name="NoDevice" value="0">
|
---|
309 | <desc>
|
---|
310 | No Device. This value is not used by
|
---|
311 | <link to="IConsole::getDeviceActivity"/>
|
---|
312 | </desc>
|
---|
313 | </const>
|
---|
314 | <const name="FloppyDevice" value="1">
|
---|
315 | <desc>Floppy device.</desc>
|
---|
316 | </const>
|
---|
317 | <const name="DVDDevice" value="2">
|
---|
318 | <desc>CD/DVD-ROM device.</desc>
|
---|
319 | </const>
|
---|
320 | <const name="HardDiskDevice" value="3">
|
---|
321 | <desc>Hard disk device.</desc>
|
---|
322 | </const>
|
---|
323 | <const name="NetworkDevice" value="4">
|
---|
324 | <desc>Network device.</desc>
|
---|
325 | </const>
|
---|
326 | <const name="USBDevice" value="5">
|
---|
327 | <desc>USB device.</desc>
|
---|
328 | </const>
|
---|
329 | <const name="SharedFolderDevice" value="6">
|
---|
330 | <desc>Shared folder device.</desc>
|
---|
331 | </const>
|
---|
332 | </enum>
|
---|
333 |
|
---|
334 | <enum
|
---|
335 | name="DeviceActivity"
|
---|
336 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
337 | >
|
---|
338 | <const name="InvalidActivity" value="0"/>
|
---|
339 | <const name="DeviceIdle" value="1"/>
|
---|
340 | <const name="DeviceReading" value="2"/>
|
---|
341 | <const name="DeviceWriting" value="3"/>
|
---|
342 | </enum>
|
---|
343 |
|
---|
344 | <enum
|
---|
345 | name="ResourceUsage"
|
---|
346 | uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809"
|
---|
347 | >
|
---|
348 | <desc>
|
---|
349 | Usage type constants for
|
---|
350 | <link to="IVirtualBox::getDVDImageUsage"/> and
|
---|
351 | <link to="IVirtualBox::getFloppyImageUsage"/>.
|
---|
352 | </desc>
|
---|
353 | <const name="InvalidUsage" value="0"/>
|
---|
354 | <const name="PermanentUsage" value="1">
|
---|
355 | <desc>
|
---|
356 | Scopes the VMs that use the resource permanently
|
---|
357 | (the information about this usage is stored in the VM
|
---|
358 | settings file).
|
---|
359 | </desc>
|
---|
360 | </const>
|
---|
361 | <const name="TemporaryUsage" value="2">
|
---|
362 | <desc>
|
---|
363 | Scopes the VMs that are temporarily using the resource
|
---|
364 | (the information about the usage is not yet saved in the VM
|
---|
365 | settings file). Temporary usage can take place only in the
|
---|
366 | context of an open session.
|
---|
367 | </desc>
|
---|
368 | </const>
|
---|
369 | <const name="AllUsage" value="3">
|
---|
370 | <desc>
|
---|
371 | Combines PermanentUsage and TemporaryUsage.
|
---|
372 | </desc>
|
---|
373 | </const>
|
---|
374 | </enum>
|
---|
375 |
|
---|
376 | <enum
|
---|
377 | name="DiskControllerType"
|
---|
378 | uuid="1115b810-2ee7-4ebd-8b39-92e98c9a2b48"
|
---|
379 | >
|
---|
380 | <const name="InvalidController" value="0"/>
|
---|
381 | <const name="IDE0Controller" value="1"/>
|
---|
382 | <const name="IDE1Controller" value="2"/>
|
---|
383 | </enum>
|
---|
384 |
|
---|
385 | <enum
|
---|
386 | name="ClipboardMode"
|
---|
387 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
388 | >
|
---|
389 | <const name="ClipDisabled" value="0"/>
|
---|
390 | <const name="ClipHostToGuest" value="1"/>
|
---|
391 | <const name="ClipGuestToHost" value="2"/>
|
---|
392 | <const name="ClipBidirectional" value="3"/>
|
---|
393 | </enum>
|
---|
394 |
|
---|
395 | <enum
|
---|
396 | name="Scope"
|
---|
397 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
398 | >
|
---|
399 | <desc>
|
---|
400 | Scope of the operation.
|
---|
401 |
|
---|
402 | A generic enumeration used in various methods to define the action or
|
---|
403 | argument scope.
|
---|
404 | </desc>
|
---|
405 | <const name="GlobalScope" value="0"/>
|
---|
406 | <const name="MachineScope" value="1"/>
|
---|
407 | <const name="SessionScope" value="2"/>
|
---|
408 | </enum>
|
---|
409 |
|
---|
410 | <enum
|
---|
411 | name="GuestStatisticType"
|
---|
412 | uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
|
---|
413 | >
|
---|
414 | <const name="CPULoad_Idle" value="0">
|
---|
415 | <desc>
|
---|
416 | Idle CPU load (0-100%) for last interval.
|
---|
417 | </desc>
|
---|
418 | </const>
|
---|
419 | <const name="CPULoad_Kernel" value="1">
|
---|
420 | <desc>
|
---|
421 | Kernel CPU load (0-100%) for last interval.
|
---|
422 | </desc>
|
---|
423 | </const>
|
---|
424 | <const name="CPULoad_User" value="2">
|
---|
425 | <desc>
|
---|
426 | User CPU load (0-100%) for last interval.
|
---|
427 | </desc>
|
---|
428 | </const>
|
---|
429 | <const name="Threads" value="3">
|
---|
430 | <desc>
|
---|
431 | Total number of threads in the system.
|
---|
432 | </desc>
|
---|
433 | </const>
|
---|
434 | <const name="Processes" value="4">
|
---|
435 | <desc>
|
---|
436 | Total number of processes in the system.
|
---|
437 | </desc>
|
---|
438 | </const>
|
---|
439 | <const name="Handles" value="5">
|
---|
440 | <desc>
|
---|
441 | Total number of handles in the system.
|
---|
442 | </desc>
|
---|
443 | </const>
|
---|
444 | <const name="MemoryLoad" value="6">
|
---|
445 | <desc>
|
---|
446 | Memory load (0-100%).
|
---|
447 | </desc>
|
---|
448 | </const>
|
---|
449 | <const name="PhysMemTotal" value="7">
|
---|
450 | <desc>
|
---|
451 | Total physical memory in megabytes.
|
---|
452 | </desc>
|
---|
453 | </const>
|
---|
454 | <const name="PhysMemAvailable" value="8">
|
---|
455 | <desc>
|
---|
456 | Free physical memory in megabytes.
|
---|
457 | </desc>
|
---|
458 | </const>
|
---|
459 | <const name="PhysMemBalloon" value="9">
|
---|
460 | <desc>
|
---|
461 | Ballooned physical memory in megabytes.
|
---|
462 | </desc>
|
---|
463 | </const>
|
---|
464 | <const name="MemCommitTotal" value="10">
|
---|
465 | <desc>
|
---|
466 | Total amount of memory in the committed state in megabytes.
|
---|
467 | </desc>
|
---|
468 | </const>
|
---|
469 | <const name="MemKernelTotal" value="11">
|
---|
470 | <desc>
|
---|
471 | Total amount of memory used by the guest OS's kernel in megabytes.
|
---|
472 | </desc>
|
---|
473 | </const>
|
---|
474 | <const name="MemKernelPaged" value="12">
|
---|
475 | <desc>
|
---|
476 | Total amount of paged memory used by the guest OS's kernel in megabytes.
|
---|
477 | </desc>
|
---|
478 | </const>
|
---|
479 | <const name="MemKernelNonpaged" value="13">
|
---|
480 | <desc>
|
---|
481 | Total amount of nonpaged memory used by the guest OS's kernel in megabytes.
|
---|
482 | </desc>
|
---|
483 | </const>
|
---|
484 | <const name="MemSystemCache" value="14">
|
---|
485 | <desc>
|
---|
486 | Total amount of memory used by the guest OS's system cache in megabytes.
|
---|
487 | </desc>
|
---|
488 | </const>
|
---|
489 | <const name="PageFileSize" value="15">
|
---|
490 | <desc>
|
---|
491 | Pagefile size in megabytes.
|
---|
492 | </desc>
|
---|
493 | </const>
|
---|
494 | <const name="SampleNumber" value="16">
|
---|
495 | <desc>
|
---|
496 | Statistics sample number
|
---|
497 | </desc>
|
---|
498 | </const>
|
---|
499 | <const name="MaxVal" value="17"/>
|
---|
500 | </enum>
|
---|
501 |
|
---|
502 | <!--
|
---|
503 | // IVirtualBoxErrorInfo
|
---|
504 | /////////////////////////////////////////////////////////////////////////
|
---|
505 | -->
|
---|
506 |
|
---|
507 | <interface
|
---|
508 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
509 | uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
|
---|
510 | supportsErrorInfo="no"
|
---|
511 | wsmap="suppress"
|
---|
512 | >
|
---|
513 | <desc>
|
---|
514 | The IVirtualBoxErrorInfo interface represent extended error information.
|
---|
515 |
|
---|
516 | Such extended error information can be set by VirtualBox components
|
---|
517 | after unsuccessful method invocation. This can then be returned to the
|
---|
518 | client in addition to a plain result code.
|
---|
519 |
|
---|
520 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
521 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
522 | it provides a set of common attributes to retrieve error
|
---|
523 | information.
|
---|
524 |
|
---|
525 | Sometimes invocation of some component's method may involve
|
---|
526 | methods of other components that may also fail (independently of
|
---|
527 | this method's failure), or a series of non-fatal errors may
|
---|
528 | precede a fatal error that causes method failure. In cases like
|
---|
529 | that, it may be desirable to preserve information about all errors
|
---|
530 | happened during method invocation and deliver it to the
|
---|
531 | caller. The <link to="#next"/> attribute is intended specifically
|
---|
532 | for this purpose and allows to represent a chain of errors through
|
---|
533 | a single IVirtualBoxErrorInfo instance set after method
|
---|
534 | invocation. Note that errors are stored to a chain in the reverse
|
---|
535 | order, i.e. the initial error object you query right after method
|
---|
536 | invocation is the last error set by the callee, the object it
|
---|
537 | points to in the @a next attribute is the previous error and so
|
---|
538 | on, up to the first error (which is the last in the chain).
|
---|
539 | </desc>
|
---|
540 |
|
---|
541 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
542 | <desc>
|
---|
543 | Result code of the error.
|
---|
544 | Usually, it will be the same as the result code returned
|
---|
545 | by the method that provided this error information, but not
|
---|
546 | always. For example, on Win32, CoCreateInstance() will most
|
---|
547 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
548 | instantiation attempt, but not the value the component factory
|
---|
549 | returned.
|
---|
550 | <note>
|
---|
551 | In MS COM, there is no equivalent.
|
---|
552 | In XPCOM, it is the same as nsIException::result.
|
---|
553 | </note>
|
---|
554 | </desc>
|
---|
555 | </attribute>
|
---|
556 |
|
---|
557 | <attribute name="interfaceID" type="uuid" readonly="yes">
|
---|
558 | <desc>
|
---|
559 | UUID of the interface that defined the error.
|
---|
560 | <note>
|
---|
561 | In MS COM, it is the same as IErrorInfo::GetGUID.
|
---|
562 | In XPCOM, there is no equivalent.
|
---|
563 | </note>
|
---|
564 | </desc>
|
---|
565 | </attribute>
|
---|
566 |
|
---|
567 | <attribute name="component" type="wstring" readonly="yes">
|
---|
568 | <desc>
|
---|
569 | Name of the component that generated the error.
|
---|
570 | <note>
|
---|
571 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
572 | In XPCOM, there is no equivalent.
|
---|
573 | </note>
|
---|
574 | </desc>
|
---|
575 | </attribute>
|
---|
576 |
|
---|
577 | <attribute name="text" type="wstring" readonly="yes">
|
---|
578 | <desc>
|
---|
579 | Text description of the error.
|
---|
580 | <note>
|
---|
581 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
582 | In XPCOM, it is the same as nsIException::message.
|
---|
583 | </note>
|
---|
584 | </desc>
|
---|
585 | </attribute>
|
---|
586 |
|
---|
587 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
588 | <desc>
|
---|
589 | Next error object if there is any, or @c null otherwise.
|
---|
590 | <note>
|
---|
591 | In MS COM, there is no equivalent.
|
---|
592 | In XPCOM, it is the same as nsIException::inner.
|
---|
593 | </note>
|
---|
594 | </desc>
|
---|
595 | </attribute>
|
---|
596 |
|
---|
597 | </interface>
|
---|
598 |
|
---|
599 |
|
---|
600 | <!--
|
---|
601 | // IVirtualBox
|
---|
602 | /////////////////////////////////////////////////////////////////////////
|
---|
603 | -->
|
---|
604 |
|
---|
605 | <interface
|
---|
606 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
607 | uuid="ee95ffc2-b6c6-4ce8-9e9e-ceadbb5019fe"
|
---|
608 | wsmap="suppress"
|
---|
609 | >
|
---|
610 | <method name="onMachineStateChange">
|
---|
611 | <desc>
|
---|
612 | The execution state of the given machine has changed.
|
---|
613 | <see>IMachine::state</see>
|
---|
614 | </desc>
|
---|
615 | <param name="machineId" type="uuid" dir="in">
|
---|
616 | <desc>ID of the machine this event relates to.</desc>
|
---|
617 | </param>
|
---|
618 | <param name="state" type="MachineState" dir="in">
|
---|
619 | <desc>New execution state.</desc>
|
---|
620 | </param>
|
---|
621 | </method>
|
---|
622 |
|
---|
623 | <method name="onMachineDataChange">
|
---|
624 | <desc>
|
---|
625 | Any of the settings of the given machine has changed.
|
---|
626 | </desc>
|
---|
627 | <param name="machineId" type="uuid" dir="in">
|
---|
628 | <desc>ID of the machine this event relates to.</desc>
|
---|
629 | </param>
|
---|
630 | </method>
|
---|
631 |
|
---|
632 | <method name="onExtraDataCanChange">
|
---|
633 | <desc>
|
---|
634 | Notification when someone tries to change extra data for
|
---|
635 | either the given machine or (if null) global extra data.
|
---|
636 | This gives the chance to veto against changes.
|
---|
637 | </desc>
|
---|
638 | <param name="machineId" type="uuid" dir="in">
|
---|
639 | <desc>
|
---|
640 | ID of the machine this event relates to
|
---|
641 | (null ID for global extra data change requests).
|
---|
642 | </desc>
|
---|
643 | </param>
|
---|
644 | <param name="key" type="wstring" dir="in">
|
---|
645 | <desc>
|
---|
646 | Extra data key for the attempted write.
|
---|
647 | </desc>
|
---|
648 | </param>
|
---|
649 | <param name="value" type="wstring" dir="in">
|
---|
650 | <desc>
|
---|
651 | Extra data value for the given key.
|
---|
652 | </desc>
|
---|
653 | </param>
|
---|
654 | <param name="error" type="wstring" dir="out">
|
---|
655 | <desc>
|
---|
656 | Optional error message describing the reason of the
|
---|
657 | veto (ignored if this notification returns @c true).
|
---|
658 | </desc>
|
---|
659 | </param>
|
---|
660 | <param name="allowChange" type="boolean" dir="return">
|
---|
661 | <desc>
|
---|
662 | Flag to indicate whether the callee agrees (@ true)
|
---|
663 | or vetoes against the change (@ false).
|
---|
664 | </desc>
|
---|
665 | </param>
|
---|
666 | </method>
|
---|
667 |
|
---|
668 | <method name="onExtraDataChange">
|
---|
669 | <desc>
|
---|
670 | Notification when machine specific or global extra data
|
---|
671 | has changed.
|
---|
672 | </desc>
|
---|
673 | <param name="machineId" type="uuid" dir="in">
|
---|
674 | <desc>
|
---|
675 | ID of the machine this event relates to.
|
---|
676 | Null for global extra data changes.
|
---|
677 | </desc>
|
---|
678 | </param>
|
---|
679 | <param name="key" type="wstring" dir="in">
|
---|
680 | <desc>
|
---|
681 | Extra data key that has changed.
|
---|
682 | </desc>
|
---|
683 | </param>
|
---|
684 | <param name="value" type="wstring" dir="in">
|
---|
685 | <desc>
|
---|
686 | Extra data value for the given key.
|
---|
687 | </desc>
|
---|
688 | </param>
|
---|
689 | </method>
|
---|
690 |
|
---|
691 | <method name="onMediaRegistered">
|
---|
692 | <desc>
|
---|
693 | The given media was registered or unregistered
|
---|
694 | within this VirtualBox installation.
|
---|
695 |
|
---|
696 | The @a mediaType parameter describes what type of
|
---|
697 | media the specified @a mediaId refers to. Possible
|
---|
698 | values are:
|
---|
699 |
|
---|
700 | - <link to="HardDiskDevice"/>: the media is a hard disk
|
---|
701 | that, if registered, can be obtained using the
|
---|
702 | <link to="IVirtualBox::getHardDisk"/> call.
|
---|
703 | - <link to="DVDDevice"/>: the media is a CD/DVD image
|
---|
704 | that, if registered, can be obtained using the
|
---|
705 | <link to="IVirtualBox::getDVDImage"/> call.
|
---|
706 | - <link to="FloppyDevice"/>: the media is a Floppy image
|
---|
707 | that, if registered, can be obtained using the
|
---|
708 | <link to="IVirtualBox::getFloppyImage"/> call.
|
---|
709 |
|
---|
710 | Note that if this is a deregistration notification,
|
---|
711 | there is no way to access the object representing the
|
---|
712 | unregistered media. It is supposed that the
|
---|
713 | application will do required cleanup based on the @a
|
---|
714 | mediaId value.
|
---|
715 | </desc>
|
---|
716 | <param name="mediaId" type="uuid" dir="in">
|
---|
717 | <desc>ID of the media this event relates to.</desc>
|
---|
718 | </param>
|
---|
719 | <param name="mediaType" type="DeviceType" dir="in">
|
---|
720 | <desc>Type of the media this event relates to.</desc>
|
---|
721 | </param>
|
---|
722 | <param name="registered" type="boolean" dir="in">
|
---|
723 | <desc>
|
---|
724 | If true, the media was registered, otherwise it was
|
---|
725 | unregistered.
|
---|
726 | </desc>
|
---|
727 | </param>
|
---|
728 | </method>
|
---|
729 |
|
---|
730 | <method name="onMachineRegistered">
|
---|
731 | <desc>
|
---|
732 | The given machine was registered or unregistered
|
---|
733 | within this VirtualBox installation.
|
---|
734 | </desc>
|
---|
735 | <param name="machineId" type="uuid" dir="in">
|
---|
736 | <desc>ID of the machine this event relates to.</desc>
|
---|
737 | </param>
|
---|
738 | <param name="registered" type="boolean" dir="in">
|
---|
739 | <desc>
|
---|
740 | If true, the machine was registered, otherwise it was
|
---|
741 | unregistered.
|
---|
742 | </desc>
|
---|
743 | </param>
|
---|
744 | </method>
|
---|
745 |
|
---|
746 | <method name="onSessionStateChange">
|
---|
747 | <desc>
|
---|
748 | The state of the session for the given machine was changed.
|
---|
749 | <see>IMachine::sessionState</see>
|
---|
750 | </desc>
|
---|
751 | <param name="machineId" type="uuid" dir="in">
|
---|
752 | <desc>ID of the machine this event relates to.</desc>
|
---|
753 | </param>
|
---|
754 | <param name="state" type="SessionState" dir="in">
|
---|
755 | <desc>New session state.</desc>
|
---|
756 | </param>
|
---|
757 | </method>
|
---|
758 |
|
---|
759 | <method name="onSnapshotTaken">
|
---|
760 | <desc>
|
---|
761 | A new snapshot of the machine has been taken.
|
---|
762 | <see>ISnapshot</see>
|
---|
763 | </desc>
|
---|
764 | <param name="machineId" type="uuid" dir="in">
|
---|
765 | <desc>ID of the machine this event relates to.</desc>
|
---|
766 | </param>
|
---|
767 | <param name="snapshotId" type="uuid" dir="in">
|
---|
768 | <desc>ID of the new snapshot.</desc>
|
---|
769 | </param>
|
---|
770 | </method>
|
---|
771 |
|
---|
772 | <method name="onSnapshotDiscarded">
|
---|
773 | <desc>
|
---|
774 | Snapshot of the given machine has been discarded.
|
---|
775 |
|
---|
776 | <note>
|
---|
777 | This notification is delivered <b>after</b> the snapshot
|
---|
778 | object has been uninitialized on the server (so that any
|
---|
779 | attempt to call its methods will return an error).
|
---|
780 | </note>
|
---|
781 |
|
---|
782 | <see>ISnapshot</see>
|
---|
783 | </desc>
|
---|
784 | <param name="machineId" type="uuid" dir="in">
|
---|
785 | <desc>ID of the machine this event relates to.</desc>
|
---|
786 | </param>
|
---|
787 | <param name="snapshotId" type="uuid" dir="in">
|
---|
788 | <desc>
|
---|
789 | ID of the discarded snapshot. <tt>null</tt> means the
|
---|
790 | current machine state has been discarded (restored from
|
---|
791 | the current snapshot).
|
---|
792 | </desc>
|
---|
793 | </param>
|
---|
794 | </method>
|
---|
795 |
|
---|
796 | <method name="onSnapshotChange">
|
---|
797 | <desc>
|
---|
798 | Snapshot properties (name and/or description) have been changed.
|
---|
799 | <see>ISnapshot</see>
|
---|
800 | </desc>
|
---|
801 | <param name="machineId" type="uuid" dir="in">
|
---|
802 | <desc>ID of the machine this event relates to.</desc>
|
---|
803 | </param>
|
---|
804 | <param name="snapshotId" type="uuid" dir="in">
|
---|
805 | <desc>ID of the changed snapshot.</desc>
|
---|
806 | </param>
|
---|
807 | </method>
|
---|
808 |
|
---|
809 | </interface>
|
---|
810 |
|
---|
811 | <interface
|
---|
812 | name="IVirtualBox" extends="$dispatched"
|
---|
813 | uuid="64f652cb-7fdf-482d-ae19-4dbb289a5ca0"
|
---|
814 | wsmap="managed"
|
---|
815 | >
|
---|
816 | <desc> The main interface exposed by the product that provides virtual
|
---|
817 | machine management.
|
---|
818 |
|
---|
819 | An instance of IVirtualBox is required for the product to do anything
|
---|
820 | useful. Even though the interface does not expose this, internally, IVirtualBox
|
---|
821 | is implemented as a singleton and actually lives in the process of the
|
---|
822 | VirtualBox server (VBoxSVC.exe). This makes sure that IVirtualBox can
|
---|
823 | track the state of all virtual machines on a particular host, regardless
|
---|
824 | of which frontend started them.
|
---|
825 |
|
---|
826 | To enumerate all the virtual machines on the host, use the <link to="IVirtualBox::machines" />
|
---|
827 | attribute.</desc>
|
---|
828 |
|
---|
829 | <attribute name="version" type="wstring" readonly="yes">
|
---|
830 | <desc>
|
---|
831 | A string representing the version number of the product. The
|
---|
832 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
833 | last number represents the build number and will frequently change.
|
---|
834 | </desc>
|
---|
835 | </attribute>
|
---|
836 |
|
---|
837 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
838 | <desc>
|
---|
839 | Full path to the directory where the global settings file,
|
---|
840 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
841 |
|
---|
842 | In this version of VirtualBox, the value of this property is
|
---|
843 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
844 | <tt><user_dir></tt> is the path to the user directory,
|
---|
845 | as determined by the host OS), and cannot be changed.
|
---|
846 |
|
---|
847 | This path is also used as the base to resolve relative paths in
|
---|
848 | places where relative paths are allowed (unless otherwise
|
---|
849 | expressly indicated).
|
---|
850 | </desc>
|
---|
851 | </attribute>
|
---|
852 |
|
---|
853 | <attribute name="host" type="IHost" readonly="yes">
|
---|
854 | <desc>Associated host object.</desc>
|
---|
855 | </attribute>
|
---|
856 |
|
---|
857 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
858 | <desc>Associated system information object.</desc>
|
---|
859 | </attribute>
|
---|
860 |
|
---|
861 | <attribute name="machines" type="IMachineCollection" readonly="yes"/>
|
---|
862 |
|
---|
863 | <attribute name="hardDisks" type="IHardDiskCollection" readonly="yes">
|
---|
864 | <desc>
|
---|
865 | A collection of hard disk objects registered within this
|
---|
866 | VirtualBox instance.
|
---|
867 | This collection contains only "top-level" (basic or independent)
|
---|
868 | hard disk images, but not differencing ones. All differencing
|
---|
869 | images of the given top-level image (i.e. all its children) can
|
---|
870 | be enumerated using <link to="IHardDisk::children"/>.
|
---|
871 | </desc>
|
---|
872 | </attribute>
|
---|
873 |
|
---|
874 | <attribute name="DVDImages" type="IDVDImageCollection" readonly="yes"/>
|
---|
875 |
|
---|
876 | <attribute name="FloppyImages" type="IFloppyImageCollection" readonly="yes"/>
|
---|
877 |
|
---|
878 | <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
|
---|
879 |
|
---|
880 | <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
|
---|
881 |
|
---|
882 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
883 | <desc>
|
---|
884 | Collection of global shared folders. Global shared folders are
|
---|
885 | available to all virtual machines.
|
---|
886 |
|
---|
887 | New shared folders are added to the collection using
|
---|
888 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
889 | removed using <link to="#removeSharedFolder"/>.
|
---|
890 |
|
---|
891 | <note>
|
---|
892 | In the current version of the product, global shared folders are not
|
---|
893 | implemented and therefore this collection is always empty.
|
---|
894 | </note>
|
---|
895 | </desc>
|
---|
896 | </attribute>
|
---|
897 |
|
---|
898 | <method name="createMachine">
|
---|
899 | <desc>
|
---|
900 | Creates a new virtual machine.
|
---|
901 |
|
---|
902 | Every machine has a <i>settings file</i> that is used to store
|
---|
903 | the machine configuration. This file is stored in the directory
|
---|
904 | called <i>machine settings subfolder</i>. Both the subfolder
|
---|
905 | and the settings file have the same name that corresponds to the
|
---|
906 | name of the virtual machine. You can specify where
|
---|
907 | to create the machine settings subfolder using the @a
|
---|
908 | baseFolder argument. The base folder can be absolute (full path)
|
---|
909 | or relative to the <link to="IVirtualBox::homeFolder">
|
---|
910 | VirtualBox home directory</link>.
|
---|
911 |
|
---|
912 | If a null or empty string is given as the base folder (which is
|
---|
913 | recommended), the <link to="ISystemProperties::defaultMachineFolder">
|
---|
914 | default machine settings folder</link> will be used as the base
|
---|
915 | folder to create the machine settings subfolder and file. In
|
---|
916 | any case, the full path to the settings file will look like:
|
---|
917 | <pre>
|
---|
918 | <base_folder>/<machine_name>/<machine_name>.xml</pre>
|
---|
919 |
|
---|
920 | Optionally the UUID of the machine can be predefined. If this is
|
---|
921 | not desired (i.e. a new UUID should be generated), pass just an
|
---|
922 | empty or null UUID.
|
---|
923 |
|
---|
924 | Note that the configuration of the newly created machine is not
|
---|
925 | saved to disk (and therefore no settings subfolder and file are
|
---|
926 | created) until <link to="IMachine::saveSettings()"/> is called.
|
---|
927 |
|
---|
928 | You should also specify a valid name for the machine.
|
---|
929 | See the <link to="IMachine::name"/> property
|
---|
930 | description for more details about the machine name.
|
---|
931 |
|
---|
932 | The created machine remains
|
---|
933 | unregistered until you call <link to="#registerMachine()"/>.
|
---|
934 |
|
---|
935 | <note>
|
---|
936 | There is no way to change the name of the settings file or
|
---|
937 | subfolder of the created machine directly.
|
---|
938 | </note>
|
---|
939 | </desc>
|
---|
940 | <param name="baseFolder" type="wstring" dir="in">
|
---|
941 | <desc>
|
---|
942 | Name of the folder where to create the machine settings
|
---|
943 | subfolder containing the settings file.
|
---|
944 | </desc>
|
---|
945 | </param>
|
---|
946 | <param name="name" type="wstring" dir="in">
|
---|
947 | <desc>Machine name.</desc>
|
---|
948 | </param>
|
---|
949 | <param name="id" type="uuid" dir="in">
|
---|
950 | <desc>
|
---|
951 | UUID of the newly created VM, when non-null or non-empty.
|
---|
952 | Otherwise a UUID is automatically generated.
|
---|
953 | </desc>
|
---|
954 | </param>
|
---|
955 | <param name="machine" type="IMachine" dir="return">
|
---|
956 | <desc>Created machine object.</desc>
|
---|
957 | </param>
|
---|
958 | </method>
|
---|
959 |
|
---|
960 | <method name="createLegacyMachine">
|
---|
961 | <desc>
|
---|
962 | Creates a new virtual machine in "legacy" mode, using the
|
---|
963 | specified settings file to store machine settings.
|
---|
964 |
|
---|
965 | As opposed to machines created by <link to="#createMachine()"/>,
|
---|
966 | the settings file of the machine created in "legacy" mode
|
---|
967 | is not automatically renamed when the machine name is
|
---|
968 | changed -- it will always remain the same as specified in this
|
---|
969 | method call.
|
---|
970 |
|
---|
971 | The specified settings file name can be absolute
|
---|
972 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
973 | VirtualBox home directory</link>. If the file name doesn't
|
---|
974 | contain an extension, the default extension (.xml) will be
|
---|
975 | appended.
|
---|
976 |
|
---|
977 | Optionally the UUID of the machine can be predefined. If this is
|
---|
978 | not desired (i.e. a new UUID should be generated), pass just an
|
---|
979 | empty or null UUID.
|
---|
980 |
|
---|
981 | Note that the configuration of the newly created machine is not
|
---|
982 | saved to disk (and therefore no settings file is created)
|
---|
983 | until <link to="IMachine::saveSettings()"/> is called. If the
|
---|
984 | specified settings file already exists,
|
---|
985 | <link to="IMachine::saveSettings()"/> will return an error.
|
---|
986 |
|
---|
987 | You should also specify a valid name for the machine.
|
---|
988 | See the <link to="IMachine::name"/> property
|
---|
989 | description for more details about the machine name.
|
---|
990 |
|
---|
991 | The created machine remains
|
---|
992 | unregistered until you call <link to="#registerMachine()"/>.
|
---|
993 |
|
---|
994 | @deprecated This method may be removed later. It is better
|
---|
995 | to use <link to="IVirtualBox::createMachine()"/>.
|
---|
996 |
|
---|
997 | <note>
|
---|
998 | There is no way to change the name of the settings file
|
---|
999 | of the created machine.
|
---|
1000 | </note>
|
---|
1001 | </desc>
|
---|
1002 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1003 | <desc>
|
---|
1004 | Name of the file where to store machine settings.
|
---|
1005 | </desc>
|
---|
1006 | </param>
|
---|
1007 | <param name="name" type="wstring" dir="in">
|
---|
1008 | <desc>Machine name.</desc>
|
---|
1009 | </param>
|
---|
1010 | <param name="id" type="uuid" dir="in">
|
---|
1011 | <desc>
|
---|
1012 | UUID of the newly created VM, when non-null or non-empty.
|
---|
1013 | Otherwise a UUID is automatically generated.
|
---|
1014 | </desc>
|
---|
1015 | </param>
|
---|
1016 | <param name="machine" type="IMachine" dir="return">
|
---|
1017 | <desc>Created machine object.</desc>
|
---|
1018 | </param>
|
---|
1019 | </method>
|
---|
1020 |
|
---|
1021 | <method name="openMachine">
|
---|
1022 | <desc>
|
---|
1023 | Opens a virtual machine from the existing settings file.
|
---|
1024 | The opened machine remains unregistered until you call
|
---|
1025 | <link to="#registerMachine()"/>.
|
---|
1026 |
|
---|
1027 | The specified settings file name can be absolute
|
---|
1028 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1029 | VirtualBox home directory</link>. This file must exist
|
---|
1030 | and must be a valid machine settings file whose contents
|
---|
1031 | will be used to construct the machine object.
|
---|
1032 |
|
---|
1033 | @deprecated Will be removed soon.
|
---|
1034 | </desc>
|
---|
1035 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1036 | <desc>
|
---|
1037 | Name of the machine settings file.
|
---|
1038 | </desc>
|
---|
1039 | </param>
|
---|
1040 | <param name="machine" type="IMachine" dir="return">
|
---|
1041 | <desc>Opened machine object.</desc>
|
---|
1042 | </param>
|
---|
1043 | <note>
|
---|
1044 | <link to="IMachine::settingsModified"/> will return
|
---|
1045 | false for the created machine, until any of machine settigs
|
---|
1046 | are changed.
|
---|
1047 | </note>
|
---|
1048 | </method>
|
---|
1049 |
|
---|
1050 | <method name="registerMachine">
|
---|
1051 | <desc>
|
---|
1052 |
|
---|
1053 | Registers the machine previously created using
|
---|
1054 | <link to="#createMachine()"/> or opened using
|
---|
1055 | <link to="#openMachine()"/> within this VirtualBox installation. After
|
---|
1056 | successful method invocation, the
|
---|
1057 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1058 | to all registered callbacks.
|
---|
1059 |
|
---|
1060 | <note>
|
---|
1061 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1062 | to save all current machine settings before registering it.
|
---|
1063 | </note>
|
---|
1064 |
|
---|
1065 | </desc>
|
---|
1066 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1067 | </method>
|
---|
1068 |
|
---|
1069 | <method name="getMachine">
|
---|
1070 | <desc>
|
---|
1071 | Attempts to find a virtual machine given its UUID.
|
---|
1072 | To look up a machine by name, use <link to="IVirtualBox::findMachine" /> instead.
|
---|
1073 | </desc>
|
---|
1074 | <param name="id" type="uuid" dir="in"/>
|
---|
1075 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1076 | </method>
|
---|
1077 |
|
---|
1078 | <method name="findMachine">
|
---|
1079 | <desc>
|
---|
1080 | Attempts to find a virtual machine given its name.
|
---|
1081 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" /> instead.
|
---|
1082 | </desc>
|
---|
1083 | <param name="name" type="wstring" dir="in"/>
|
---|
1084 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1085 | </method>
|
---|
1086 |
|
---|
1087 | <method name="unregisterMachine">
|
---|
1088 | <desc>
|
---|
1089 |
|
---|
1090 | Unregisters the machine previously registered using
|
---|
1091 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1092 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1093 | to all registered callbacks.
|
---|
1094 |
|
---|
1095 | <note>
|
---|
1096 | The specified machine must not be in the Saved state, have an open
|
---|
1097 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1098 | have hard disks attached.
|
---|
1099 | </note>
|
---|
1100 |
|
---|
1101 | <note>
|
---|
1102 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1103 | save all current machine settings before unregistering it.
|
---|
1104 | </note>
|
---|
1105 |
|
---|
1106 | <note>
|
---|
1107 | If the given machine is inaccessible (see
|
---|
1108 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
1109 | fully uninitialized right afterwards. As a result, the returned
|
---|
1110 | machine object will be unusable and an attempt to call
|
---|
1111 | <b>any</b> method will return the "Object not ready" error.
|
---|
1112 | </note>
|
---|
1113 |
|
---|
1114 | </desc>
|
---|
1115 | <param name="id" type="uuid" dir="in">
|
---|
1116 | <desc>UUID of the machine to unregister.</desc>
|
---|
1117 | </param>
|
---|
1118 | <param name="machine" type="IMachine" dir="return">
|
---|
1119 | <desc>Unregistered machine object.</desc>
|
---|
1120 | </param>
|
---|
1121 | </method>
|
---|
1122 |
|
---|
1123 | <method name="createHardDisk">
|
---|
1124 | <desc>
|
---|
1125 |
|
---|
1126 | Creates a new unregistered hard disk that will use the given
|
---|
1127 | storage type.
|
---|
1128 |
|
---|
1129 | Most properties of the created hard disk object are
|
---|
1130 | uninitialized. Valid values must be assigned to them (and probalby
|
---|
1131 | some actions performed) to make the actual usage of this hard disk
|
---|
1132 | (<link to="#registerHardDisk()">register</link>, attach to a virtual
|
---|
1133 | machine, etc.). See the description of <link to="IHardDisk"/> and
|
---|
1134 | descriptions of storage type specific interfaces for more information.
|
---|
1135 |
|
---|
1136 | <note>
|
---|
1137 | For hard disks using
|
---|
1138 | the <link
|
---|
1139 | to="HardDiskStorageType::VirtualDiskImage">VirtualDiskImage</link>
|
---|
1140 | storage type, an image file is not actually created until you call
|
---|
1141 | <link to="IVirtualDiskImage::createDynamicImage()"/> or
|
---|
1142 | <link to="IVirtualDiskImage::createFixedImage()"/>.
|
---|
1143 | </note>
|
---|
1144 |
|
---|
1145 | </desc>
|
---|
1146 |
|
---|
1147 | <param name="storageType" type="HardDiskStorageType" dir="in">
|
---|
1148 | <desc>Storage type of the hard disk image to create.</desc>
|
---|
1149 | </param>
|
---|
1150 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1151 | <desc>Created hard disk object of the given storage type.</desc>
|
---|
1152 | </param>
|
---|
1153 |
|
---|
1154 | </method>
|
---|
1155 |
|
---|
1156 | <method name="openHardDisk">
|
---|
1157 | <desc>
|
---|
1158 |
|
---|
1159 | Opens a hard disk from an existing location.
|
---|
1160 |
|
---|
1161 | This method tries to guess the
|
---|
1162 | <link to="HardDiskStorageType">hard disk storage type</link> from the
|
---|
1163 | format of the location string and from the contents of the resource the
|
---|
1164 | location points to. Currently, a <i>file path</i> is the only
|
---|
1165 | supported format for the location string which must point to either a
|
---|
1166 | VDI file or to a VMDK file. On success, an IHardDisk object will be
|
---|
1167 | returned that also implements the corresponding interface
|
---|
1168 | (IVirtualDiskImage or IVMDKImage, respectively). The
|
---|
1169 | <link to="IHardDisk::storageType"/> property may also be used to
|
---|
1170 | determine the storage type of the returned object (instead of trying
|
---|
1171 | to query one of these interfaces).
|
---|
1172 |
|
---|
1173 | <note>
|
---|
1174 | The specified file path can be absolute (full path) or relative to
|
---|
1175 | the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1176 | directory</link>. If only a file name without any path is given,
|
---|
1177 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
1178 | folder</link> will be used as a path to the image file.
|
---|
1179 | </note>
|
---|
1180 |
|
---|
1181 | The opened hard disk remains unregistered
|
---|
1182 | until <link to="#registerHardDisk()"/> is called.
|
---|
1183 |
|
---|
1184 | </desc>
|
---|
1185 |
|
---|
1186 | <param name="location" type="wstring" dir="in">
|
---|
1187 | <desc>
|
---|
1188 | Location of the resource that contains a valid hard disk.
|
---|
1189 | </desc>
|
---|
1190 | </param>
|
---|
1191 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1192 | <desc>Opened hard disk object.</desc>
|
---|
1193 | </param>
|
---|
1194 | </method>
|
---|
1195 |
|
---|
1196 | <method name="openVirtualDiskImage">
|
---|
1197 | <desc>
|
---|
1198 |
|
---|
1199 | Opens a hard disk from an existing Virtual Disk Image file.
|
---|
1200 | The opened hard disk remains unregistered
|
---|
1201 | until <link to="#registerHardDisk()"/> is called.
|
---|
1202 |
|
---|
1203 | @deprecated Use <link to="IVirtualBox::openHardDisk()"/> instead.
|
---|
1204 |
|
---|
1205 | <note>Opening differencing images is not supported.</note>
|
---|
1206 |
|
---|
1207 | <note>The specified file path can be absolute (full path) or
|
---|
1208 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
1209 | home directory</link>. If only a file name without any path is
|
---|
1210 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1211 | default VDI folder</link> will be used as a path to the image
|
---|
1212 | file.</note>
|
---|
1213 |
|
---|
1214 | </desc>
|
---|
1215 |
|
---|
1216 | <param name="filePath" type="wstring" dir="in">
|
---|
1217 | <desc>
|
---|
1218 | Name of the file that contains a valid Virtual Disk Image.
|
---|
1219 | </desc>
|
---|
1220 | </param>
|
---|
1221 | <param name="image" type="IVirtualDiskImage" dir="return">
|
---|
1222 | <desc>Opened hard disk object.</desc>
|
---|
1223 | </param>
|
---|
1224 | </method>
|
---|
1225 |
|
---|
1226 | <method name="registerHardDisk">
|
---|
1227 | <desc>
|
---|
1228 |
|
---|
1229 | Registers the given hard disk within this VirtualBox
|
---|
1230 | installation. The hard disk must not be registered, must be
|
---|
1231 | <link to="IHardDisk::accessible"/> and must not be a
|
---|
1232 | differencing hard disk, otherwise the registration will fail.
|
---|
1233 |
|
---|
1234 | </desc>
|
---|
1235 | <param name="hardDisk" type="IHardDisk" dir="in">
|
---|
1236 | <desc>Hard disk object to register.</desc>
|
---|
1237 | </param>
|
---|
1238 | </method>
|
---|
1239 |
|
---|
1240 | <method name="getHardDisk" const="yes">
|
---|
1241 | <desc>
|
---|
1242 | Returns the registered hard disk with the given UUID.
|
---|
1243 | </desc>
|
---|
1244 | <param name="id" type="uuid" dir="in">
|
---|
1245 | <desc>UUID of the hard disk to look for.</desc>
|
---|
1246 | </param>
|
---|
1247 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1248 | <desc>Found hard disk object.</desc>
|
---|
1249 | </param>
|
---|
1250 | </method>
|
---|
1251 |
|
---|
1252 | <method name="findHardDisk">
|
---|
1253 | <desc>
|
---|
1254 |
|
---|
1255 | Returns a registered hard disk that uses the given location to
|
---|
1256 | store data. The search is done by comparing the
|
---|
1257 | value of the @a location argument to the
|
---|
1258 | <link to="IHardDisk::location"/> attribute of each registered
|
---|
1259 | hard disk.
|
---|
1260 |
|
---|
1261 | For locations repesented by file paths (such as VDI and VMDK
|
---|
1262 | images), the specified location can be either an absolute file
|
---|
1263 | path or a path relative to
|
---|
1264 | the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
1265 | directory</link>. If only a file name without any path is
|
---|
1266 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1267 | default VDI folder</link> will be used as a path to construct
|
---|
1268 | the absolute image file name to search for. Note that on host
|
---|
1269 | systems with case sensitive filesystems, a case sensitive
|
---|
1270 | comparison is performed, otherwise the case of symbols in the
|
---|
1271 | file path is ignored.
|
---|
1272 |
|
---|
1273 | </desc>
|
---|
1274 | <param name="location" type="wstring" dir="in">
|
---|
1275 | <desc>Hard disk location specification to search for.</desc>
|
---|
1276 | </param>
|
---|
1277 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1278 | <desc>Found hard disk object.</desc>
|
---|
1279 | </param>
|
---|
1280 | </method>
|
---|
1281 |
|
---|
1282 | <method name="findVirtualDiskImage">
|
---|
1283 | <desc>
|
---|
1284 |
|
---|
1285 | Returns a registered hard disk that uses the given image file.
|
---|
1286 |
|
---|
1287 | @deprecated Use <link to="IVirtualBox::findHardDisk()"/> instead.
|
---|
1288 |
|
---|
1289 | <note>The specified file path can be absolute (full path) or
|
---|
1290 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
1291 | home directory</link>. If only a file name without any path is
|
---|
1292 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1293 | default VDI folder</link> will be used as a path to the image
|
---|
1294 | file.</note>
|
---|
1295 |
|
---|
1296 | <note>On host systems with case sensitive filesystems, a case
|
---|
1297 | sensitive comparison is performed, otherwise the case of symbols
|
---|
1298 | in the file path is ignored.</note>
|
---|
1299 |
|
---|
1300 | </desc>
|
---|
1301 | <param name="filePath" type="wstring" dir="in">
|
---|
1302 | <desc>Virtual Disk Image file path to look for.</desc>
|
---|
1303 | </param>
|
---|
1304 | <param name="image" type="IVirtualDiskImage" dir="return">
|
---|
1305 | <desc>Found hard disk object.</desc>
|
---|
1306 | </param>
|
---|
1307 | </method>
|
---|
1308 |
|
---|
1309 | <method name="unregisterHardDisk">
|
---|
1310 | <desc>
|
---|
1311 | Unregisters a hard disk previously registered using
|
---|
1312 | <link to="#registerHardDisk()"/>.
|
---|
1313 | <note>
|
---|
1314 | The specified hard disk must not be attached to any of
|
---|
1315 | the existing virtual machines and must not have children
|
---|
1316 | (differencing) hard disks.
|
---|
1317 | </note>
|
---|
1318 | </desc>
|
---|
1319 | <param name="id" type="uuid" dir="in">
|
---|
1320 | <desc>UUID of the hard disk to unregister.</desc>
|
---|
1321 | </param>
|
---|
1322 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1323 | <desc>Unregistered hard disk object.</desc>
|
---|
1324 | </param>
|
---|
1325 | </method>
|
---|
1326 |
|
---|
1327 | <method name="openDVDImage">
|
---|
1328 | <desc>
|
---|
1329 | Opens the CD/DVD image contained in the specified file of
|
---|
1330 | the supported format and assigns it the given UUID. The opened
|
---|
1331 | image remains unregistered
|
---|
1332 | until <link to="#registerDVDImage()"/> is called.
|
---|
1333 | </desc>
|
---|
1334 | <param name="filePath" type="wstring" dir="in">
|
---|
1335 | <desc>
|
---|
1336 | Full name of the file that contains a valid
|
---|
1337 | CD/DVD image. Currently, only ISO images are supported.
|
---|
1338 | <note>
|
---|
1339 | The specified file name can be absolute or relative
|
---|
1340 | to the <link to="IVirtualBox::homeFolder">
|
---|
1341 | VirtualBox home directory</link>.
|
---|
1342 | </note>
|
---|
1343 | </desc>
|
---|
1344 | </param>
|
---|
1345 | <param name="id" type="uuid" dir="in">
|
---|
1346 | <desc>
|
---|
1347 | UUID to assign to the given image file within this
|
---|
1348 | VirtualBox installation. If an empty (null) UUID is
|
---|
1349 | specified, the system will randomly generate an UUID.
|
---|
1350 | </desc>
|
---|
1351 | </param>
|
---|
1352 | <param name="image" type="IDVDImage" dir="return">
|
---|
1353 | <desc>Opened CD/DVD image object.</desc>
|
---|
1354 | </param>
|
---|
1355 | </method>
|
---|
1356 |
|
---|
1357 | <method name="registerDVDImage">
|
---|
1358 | <desc>
|
---|
1359 | Registers a CD/DVD image within this VirtualBox
|
---|
1360 | installation. The image must not be registered and must not
|
---|
1361 | be associated with the same image file as any of the already
|
---|
1362 | registered images, otherwise the registration will fail.
|
---|
1363 | </desc>
|
---|
1364 | <param name="image" type="IDVDImage" dir="in">
|
---|
1365 | <desc>CD/DVD image object to register.</desc>
|
---|
1366 | </param>
|
---|
1367 | </method>
|
---|
1368 |
|
---|
1369 | <method name="getDVDImage">
|
---|
1370 | <desc>
|
---|
1371 | Returns a registered CD/DVD image with the given UUID.
|
---|
1372 | </desc>
|
---|
1373 | <param name="id" type="uuid" dir="in">
|
---|
1374 | <desc>UUID of the image to look for.</desc>
|
---|
1375 | </param>
|
---|
1376 | <param name="image" type="IDVDImage" dir="return">
|
---|
1377 | <desc>Found CD/DVD image object.</desc>
|
---|
1378 | </param>
|
---|
1379 | </method>
|
---|
1380 |
|
---|
1381 | <method name="findDVDImage">
|
---|
1382 | <desc>
|
---|
1383 | Returns a registered CD/DVD image with the given image file.
|
---|
1384 | <note>
|
---|
1385 | On host systems with case sensitive filesystems, a case
|
---|
1386 | sensitive comparison is performed, otherwise the case of
|
---|
1387 | symbols in the file path is ignored.
|
---|
1388 | </note>
|
---|
1389 | </desc>
|
---|
1390 | <param name="filePath" type="wstring" dir="in">
|
---|
1391 | <desc>CD/DVD image file path to look for.</desc>
|
---|
1392 | </param>
|
---|
1393 | <param name="image" type="IDVDImage" dir="return">
|
---|
1394 | <desc>Found CD/DVD image object.</desc>
|
---|
1395 | </param>
|
---|
1396 | </method>
|
---|
1397 |
|
---|
1398 | <method name="getDVDImageUsage">
|
---|
1399 | <desc>
|
---|
1400 | Returns the list of of UUIDs of all virtual machines that use
|
---|
1401 | the given CD/DVD image.
|
---|
1402 | </desc>
|
---|
1403 | <param name="id" type="uuid" dir="in">
|
---|
1404 | <desc>UUID of the image to get the usage information for.</desc>
|
---|
1405 | </param>
|
---|
1406 | <param name="usage" type="ResourceUsage" dir="in">
|
---|
1407 | <desc>Type of the usage (permanent, temporary or all).</desc>
|
---|
1408 | </param>
|
---|
1409 | <param name="machineIDs" type="wstring" dir="return">
|
---|
1410 | <desc>
|
---|
1411 | List of UUIDs of all machines that use the given image
|
---|
1412 | in the way specified by the usage parameter.
|
---|
1413 | The list is returned as a string containing UUIDs separated
|
---|
1414 | by spaces. A null string means that the image is not used.
|
---|
1415 | <note>
|
---|
1416 | When the usage type is <link to="ResourceUsage::AllUsage"/>
|
---|
1417 | and the image is used by the VM both permanently
|
---|
1418 | and temporarily, the VM's UUID will be present only
|
---|
1419 | once in the list.
|
---|
1420 | </note>
|
---|
1421 | </desc>
|
---|
1422 | </param>
|
---|
1423 | </method>
|
---|
1424 |
|
---|
1425 | <method name="unregisterDVDImage">
|
---|
1426 | <desc>
|
---|
1427 | Unregisters the CD/DVD image previously registered using
|
---|
1428 | <link to="#registerDVDImage()"/>.
|
---|
1429 | <note>
|
---|
1430 | The specified image must not be mounted to any of
|
---|
1431 | the existing virtual machines.
|
---|
1432 | </note>
|
---|
1433 | </desc>
|
---|
1434 | <param name="id" type="uuid" dir="in">
|
---|
1435 | <desc>UUID of the CD/DVD image to unregister.</desc>
|
---|
1436 | </param>
|
---|
1437 | <param name="image" type="IDVDImage" dir="return">
|
---|
1438 | <desc>Unregistered image object.</desc>
|
---|
1439 | </param>
|
---|
1440 | </method>
|
---|
1441 |
|
---|
1442 | <method name="openFloppyImage">
|
---|
1443 | <desc>
|
---|
1444 | Opens a floppy image contained in the specified file of
|
---|
1445 | the supported format and assigns it the given UUID. The opened
|
---|
1446 | image remains unregistered
|
---|
1447 | until <link to="#registerFloppyImage()"/> is called.
|
---|
1448 | </desc>
|
---|
1449 | <param name="filePath" type="wstring" dir="in">
|
---|
1450 | <desc>
|
---|
1451 | Full name of the file that contains a valid
|
---|
1452 | floppy image.
|
---|
1453 | <note>
|
---|
1454 | The specified file name can be absolute or relative
|
---|
1455 | to the <link to="IVirtualBox::homeFolder">
|
---|
1456 | VirtualBox home directory</link>.
|
---|
1457 | </note>
|
---|
1458 | </desc>
|
---|
1459 | </param>
|
---|
1460 | <param name="id" type="uuid" dir="in">
|
---|
1461 | <desc>
|
---|
1462 | UUID to assign to the given image file within this
|
---|
1463 | VirtualBox installation. If an empty (null) UUID is
|
---|
1464 | specified, the system will randomly generate an UUID.
|
---|
1465 | </desc>
|
---|
1466 | </param>
|
---|
1467 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1468 | <desc>Opened CD/DVD image object.</desc>
|
---|
1469 | </param>
|
---|
1470 | </method>
|
---|
1471 |
|
---|
1472 | <method name="registerFloppyImage">
|
---|
1473 | <desc>
|
---|
1474 | Registers a floppy image within this VirtualBox
|
---|
1475 | installation. The image must not be registered and must not
|
---|
1476 | be associated with the same image file as any of the already
|
---|
1477 | registered images, otherwise the registration will fail.
|
---|
1478 | </desc>
|
---|
1479 | <param name="image" type="IFloppyImage" dir="in">
|
---|
1480 | <desc>Floppy image object to register.</desc>
|
---|
1481 | </param>
|
---|
1482 | </method>
|
---|
1483 |
|
---|
1484 | <method name="getFloppyImage">
|
---|
1485 | <desc>
|
---|
1486 | Returns a registered floppy image with the given UUID.
|
---|
1487 | </desc>
|
---|
1488 | <param name="id" type="uuid" dir="in">
|
---|
1489 | <desc>UUID of the image to look for.</desc>
|
---|
1490 | </param>
|
---|
1491 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1492 | <desc>Found floppy image object.</desc>
|
---|
1493 | </param>
|
---|
1494 | </method>
|
---|
1495 |
|
---|
1496 | <method name="findFloppyImage">
|
---|
1497 | <desc>
|
---|
1498 | Returns a registered floppy image with the given image file.
|
---|
1499 | <note>
|
---|
1500 | On host systems with case sensitive filesystems, a case
|
---|
1501 | sensitive comparison is performed, otherwise the case of
|
---|
1502 | symbols in the file path is ignored.
|
---|
1503 | </note>
|
---|
1504 | </desc>
|
---|
1505 | <param name="filePath" type="wstring" dir="in">
|
---|
1506 | <desc>Floppy image file path to look for.</desc>
|
---|
1507 | </param>
|
---|
1508 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1509 | <desc>Found floppy image object.</desc>
|
---|
1510 | </param>
|
---|
1511 | </method>
|
---|
1512 |
|
---|
1513 | <method name="getFloppyImageUsage">
|
---|
1514 | <desc>
|
---|
1515 | Returns the list of of UUIDs of all virtual machines that use
|
---|
1516 | the given floppy image.
|
---|
1517 | </desc>
|
---|
1518 | <param name="id" type="uuid" dir="in">
|
---|
1519 | <desc>UUID of the image to get the usage information for.</desc>
|
---|
1520 | </param>
|
---|
1521 | <param name="usage" type="ResourceUsage" dir="in">
|
---|
1522 | <desc>Type of the usage (permanent, temporary or all).</desc>
|
---|
1523 | </param>
|
---|
1524 | <param name="machineIDs" type="wstring" dir="return">
|
---|
1525 | <desc>
|
---|
1526 | List of UUIDs of all machines that use the given image
|
---|
1527 | in the way specified by the usage parameter.
|
---|
1528 | The list is returned as a string containing UUIDs separated
|
---|
1529 | by spaces. A null string means that the image is not used.
|
---|
1530 | <note>
|
---|
1531 | When the usage type is <link to="ResourceUsage::AllUsage"/>
|
---|
1532 | and the image is used by the VM both permanently
|
---|
1533 | and temporarily, the VM's UUID will be present only
|
---|
1534 | once in the list.
|
---|
1535 | </note>
|
---|
1536 | </desc>
|
---|
1537 | </param>
|
---|
1538 | </method>
|
---|
1539 |
|
---|
1540 | <method name="unregisterFloppyImage">
|
---|
1541 | <desc>
|
---|
1542 | Unregisters the floppy image previously registered using
|
---|
1543 | <link to="#registerFloppyImage()"/>.
|
---|
1544 | <note>
|
---|
1545 | The specified image must not be mounted to any of
|
---|
1546 | the existing virtual machines.
|
---|
1547 | </note>
|
---|
1548 | </desc>
|
---|
1549 | <param name="id" type="uuid" dir="in">
|
---|
1550 | <desc>UUID of the floppy image to unregister.</desc>
|
---|
1551 | </param>
|
---|
1552 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1553 | <desc>Unregistered image object.</desc>
|
---|
1554 | </param>
|
---|
1555 | </method>
|
---|
1556 |
|
---|
1557 | <method name="getGuestOSType">
|
---|
1558 | <param name="id" type="wstring" dir="in"/>
|
---|
1559 | <param name="type" type="IGuestOSType" dir="return"/>
|
---|
1560 | </method>
|
---|
1561 |
|
---|
1562 | <method name="createSharedFolder">
|
---|
1563 | <desc>
|
---|
1564 | Creates a new global shared folder by associating the given logical
|
---|
1565 | name with the given host path, adds it to the collection of shared
|
---|
1566 | folders and starts sharing it. Refer to the description of
|
---|
1567 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
1568 | </desc>
|
---|
1569 | <param name="name" type="wstring" dir="in">
|
---|
1570 | <desc>Unique logical name of the shared folder.</desc>
|
---|
1571 | </param>
|
---|
1572 | <param name="hostPath" type="wstring" dir="in">
|
---|
1573 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
1574 | </param>
|
---|
1575 | <param name="writable" type="boolean" dir="in">
|
---|
1576 | <desc>Whether the share is writable or readonly</desc>
|
---|
1577 | </param>
|
---|
1578 | </method>
|
---|
1579 |
|
---|
1580 | <method name="removeSharedFolder">
|
---|
1581 | <desc>
|
---|
1582 | Removes the global shared folder with the given name previously
|
---|
1583 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
1584 | shared folders and stops sharing it.
|
---|
1585 | </desc>
|
---|
1586 | <param name="name" type="wstring" dir="in">
|
---|
1587 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
1588 | </param>
|
---|
1589 | </method>
|
---|
1590 |
|
---|
1591 | <method name="getNextExtraDataKey">
|
---|
1592 | <desc>
|
---|
1593 | Returns the global extra data key name following the supplied key.
|
---|
1594 |
|
---|
1595 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
1596 | returned in @a nextKey if the supplied key is the last key. When
|
---|
1597 | supplying @c NULL for the @a key, the first key item is returned in @a
|
---|
1598 | nextKey (if there is any). @a nextValue is an optional parameter and
|
---|
1599 | if supplied, the next key's value is returned in it.
|
---|
1600 | </desc>
|
---|
1601 | <param name="key" type="wstring" dir="in">
|
---|
1602 | <desc>Name of the data key to follow.</desc>
|
---|
1603 | </param>
|
---|
1604 | <param name="nextKey" type="wstring" dir="out">
|
---|
1605 | <desc>Name of the next data key.</desc>
|
---|
1606 | </param>
|
---|
1607 | <param name="nextValue" type="wstring" dir="out">
|
---|
1608 | <desc>Value of the next data key.</desc>
|
---|
1609 | </param>
|
---|
1610 | </method>
|
---|
1611 |
|
---|
1612 | <method name="getExtraData">
|
---|
1613 | <desc>
|
---|
1614 | Returns associated global extra data.
|
---|
1615 |
|
---|
1616 | If the reuqested data @a key does not exist, this function will
|
---|
1617 | succeed and return @c NULL in the @a value argument.
|
---|
1618 | </desc>
|
---|
1619 | <param name="key" type="wstring" dir="in">
|
---|
1620 | <desc>Name of the data key to get.</desc>
|
---|
1621 | </param>
|
---|
1622 | <param name="value" type="wstring" dir="return">
|
---|
1623 | <desc>Value of the requested data key.</desc>
|
---|
1624 | </param>
|
---|
1625 | </method>
|
---|
1626 |
|
---|
1627 | <method name="setExtraData">
|
---|
1628 | <desc>
|
---|
1629 | Sets associated global extra data.
|
---|
1630 |
|
---|
1631 | If you pass @c NULL as a key @a vaule, the given @a key will be
|
---|
1632 | deleted.
|
---|
1633 |
|
---|
1634 | <note>
|
---|
1635 | Before performing the actual data change, this method will ask all
|
---|
1636 | registered callbacks using the
|
---|
1637 | <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
|
---|
1638 | notification for a permission. If one of the callbacks refuses the
|
---|
1639 | new value, the change will not be performed.
|
---|
1640 | </note>
|
---|
1641 | <note>
|
---|
1642 | On success, the
|
---|
1643 | <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
|
---|
1644 | is called to inform all registered callbacks about a successful data
|
---|
1645 | change.
|
---|
1646 | </note>
|
---|
1647 | </desc>
|
---|
1648 | <param name="key" type="wstring" dir="in">
|
---|
1649 | <desc>Name of the data key to set.</desc>
|
---|
1650 | </param>
|
---|
1651 | <param name="value" type="wstring" dir="in">
|
---|
1652 | <desc>Value to assign to the key.</desc>
|
---|
1653 | </param>
|
---|
1654 | </method>
|
---|
1655 |
|
---|
1656 | <method name="openSession">
|
---|
1657 | <desc>
|
---|
1658 | Opens a new direct session with the given virtual machine.
|
---|
1659 |
|
---|
1660 | Within the direct session context, it is possible to change
|
---|
1661 | all VM settings, as well as to execute the VM in the process
|
---|
1662 | space of the session object. There can be only one direct
|
---|
1663 | session open at a time for every virtual machine.
|
---|
1664 |
|
---|
1665 | Upon successful return, the session object can be used to
|
---|
1666 | get access to the machine and to the VM console.
|
---|
1667 | </desc>
|
---|
1668 | <param name="session" type="ISession" dir="in">
|
---|
1669 | <desc>
|
---|
1670 | Session object that will represent the opened session after
|
---|
1671 | successful method invocation. This object must not represent
|
---|
1672 | the already open session.
|
---|
1673 | <note>
|
---|
1674 | This session will be automatically closed if the
|
---|
1675 | VirtualBox server is terminated for some reason.
|
---|
1676 | </note>
|
---|
1677 | </desc>
|
---|
1678 | </param>
|
---|
1679 | <param name="machineId" type="uuid" dir="in">
|
---|
1680 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1681 | </param>
|
---|
1682 | </method>
|
---|
1683 |
|
---|
1684 | <method name="openRemoteSession">
|
---|
1685 | <desc>
|
---|
1686 | Opens a new remote session with the given virtual
|
---|
1687 | machine.
|
---|
1688 |
|
---|
1689 | Opening a remote session causes the VirtualBox server to start a new
|
---|
1690 | process that opens a direct session with the given VM. The remote
|
---|
1691 | session provides some level of control over the VM execution to the
|
---|
1692 | caller (using the IConsole interface); however, within the remote
|
---|
1693 | session context, not all VM settings are available for modification.
|
---|
1694 |
|
---|
1695 | This operation can take some time, so the progress object
|
---|
1696 | is returned to let the caller be informed when the session is
|
---|
1697 | actually open. Until then, the remote session object remains in
|
---|
1698 | the closed state and accessing the machine or its console through
|
---|
1699 | it is invalid.
|
---|
1700 |
|
---|
1701 | Currently supported session types (values of the @a type
|
---|
1702 | argument) are:
|
---|
1703 | <ul>
|
---|
1704 | <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
|
---|
1705 | <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
|
---|
1706 | </ul>
|
---|
1707 |
|
---|
1708 | The @a environment argument is a string containing definitions of
|
---|
1709 | environment variables in the following format:
|
---|
1710 | @code
|
---|
1711 | NAME[=VALUE]\n
|
---|
1712 | NAME[=VALUE]\n
|
---|
1713 | ...
|
---|
1714 | @endcode
|
---|
1715 | where <tt>\\n</tt> is the new line character. These environment
|
---|
1716 | variables will be appended to the environment of the VirtualBox server
|
---|
1717 | process. If an environment variable exists both in the server process
|
---|
1718 | and in this list, the value from this list takes precedence over the
|
---|
1719 | server's variable. If the value of the environment variable is
|
---|
1720 | omitted, this variable will be removed from the resulting environment.
|
---|
1721 | If the environment string is @c null, the server environment is
|
---|
1722 | inherited by the started process as is.
|
---|
1723 |
|
---|
1724 | <note>
|
---|
1725 | It is an error to open a remote session with the machine
|
---|
1726 | that already has an open direct session or waits until the
|
---|
1727 | previous request to open the remote session is completed
|
---|
1728 | (see <link to="IMachine::sessionState"/>).
|
---|
1729 | </note>
|
---|
1730 |
|
---|
1731 | <note>
|
---|
1732 | The opened @a session will be automatically closed when
|
---|
1733 | the corresponding direct session dies or gets closed.
|
---|
1734 | </note>
|
---|
1735 |
|
---|
1736 | <see>openExistingSession</see>
|
---|
1737 | </desc>
|
---|
1738 | <param name="session" type="ISession" dir="in">
|
---|
1739 | <desc>
|
---|
1740 | Session object that will represent the opened remote session
|
---|
1741 | after successful method invocation (this object must not
|
---|
1742 | represent an already open session).
|
---|
1743 | </desc>
|
---|
1744 | </param>
|
---|
1745 | <param name="machineId" type="uuid" dir="in">
|
---|
1746 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1747 | </param>
|
---|
1748 | <param name="type" type="wstring" dir="in">
|
---|
1749 | <desc>
|
---|
1750 | Type of the remote session (case sensitive).
|
---|
1751 | </desc>
|
---|
1752 | </param>
|
---|
1753 | <param name="environment" type="wstring" dir="in">
|
---|
1754 | <desc>
|
---|
1755 | Environment to pass to the opened session (may be @c null).
|
---|
1756 | </desc>
|
---|
1757 | </param>
|
---|
1758 | <param name="progress" type="IProgress" dir="return">
|
---|
1759 | <desc>Progress object to track the operation completion.</desc>
|
---|
1760 | </param>
|
---|
1761 | </method>
|
---|
1762 |
|
---|
1763 | <method name="openExistingSession">
|
---|
1764 | <desc>
|
---|
1765 | Opens a new remote session with the virtual machine for
|
---|
1766 | which a direct session is already open.
|
---|
1767 |
|
---|
1768 | The remote session provides some level of control over the VM
|
---|
1769 | execution (using the IConsole interface) to the caller; however,
|
---|
1770 | within the remote session context, not all VM settings are available
|
---|
1771 | for modification.
|
---|
1772 |
|
---|
1773 | As opposed to <link to="#openRemoteSession()"/>, the number of
|
---|
1774 | remote sessions opened this way is not limited by the API
|
---|
1775 |
|
---|
1776 | <note>
|
---|
1777 | It is an error to open a remote session with the machine that
|
---|
1778 | doesn't have an open direct session.
|
---|
1779 | </note>
|
---|
1780 |
|
---|
1781 | <see>openRemoteSession</see>
|
---|
1782 | </desc>
|
---|
1783 | <param name="session" type="ISession" dir="in">
|
---|
1784 | <desc>
|
---|
1785 | Session object that will represent the open remote session
|
---|
1786 | after successful method invocation. This object must not
|
---|
1787 | represent an already open session.
|
---|
1788 | <note>
|
---|
1789 | This session will be automatically closed when the peer
|
---|
1790 | (direct) session dies or gets closed.
|
---|
1791 | </note>
|
---|
1792 | </desc>
|
---|
1793 | </param>
|
---|
1794 | <param name="machineId" type="uuid" dir="in">
|
---|
1795 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1796 | </param>
|
---|
1797 | </method>
|
---|
1798 |
|
---|
1799 | <method name="registerCallback">
|
---|
1800 | <desc>
|
---|
1801 | Registers a new global VirtualBox callback. The methods of the given
|
---|
1802 | callback object will be called by VirtualBox when an appropriate
|
---|
1803 | event occurs.
|
---|
1804 | </desc>
|
---|
1805 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
1806 | <desc>Callback object to register.</desc>
|
---|
1807 | </param>
|
---|
1808 | </method>
|
---|
1809 |
|
---|
1810 | <method name="unregisterCallback">
|
---|
1811 | <desc>
|
---|
1812 | Unregisters the previously registered global VirtualBox callback.
|
---|
1813 | </desc>
|
---|
1814 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
1815 | <desc>Callback object to unregister.</desc>
|
---|
1816 | </param>
|
---|
1817 | </method>
|
---|
1818 |
|
---|
1819 | <method name="waitForPropertyChange">
|
---|
1820 | <desc>
|
---|
1821 | Blocks the caller until any of the properties represented by the @a
|
---|
1822 | what argument changes the value or until the given timeout interval
|
---|
1823 | expires.
|
---|
1824 |
|
---|
1825 | The @a what argument is a comma separated list of propertiy masks that
|
---|
1826 | describe properties the caller is interested in. The property mask is
|
---|
1827 | a string in the following format:
|
---|
1828 |
|
---|
1829 | @code
|
---|
1830 | [[group.]subgroup.]name
|
---|
1831 | @endcode
|
---|
1832 |
|
---|
1833 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
1834 | or or more property group specifiers. Each element (group or name) in
|
---|
1835 | the property mask may be either a latin string or an asterisk symbol
|
---|
1836 | (@c "*") which is used to match any string for the given element. A
|
---|
1837 | property mask that doesn't contain asterisk symbols represents a
|
---|
1838 | single fully qualified property name.
|
---|
1839 |
|
---|
1840 | Groups in the fully qualified property name go from more generic (the
|
---|
1841 | left-most part) to more specific (the right-most part). The first
|
---|
1842 | element is usually a name of the object the property belongs to. The
|
---|
1843 | second element may be either a property name, or a child object name,
|
---|
1844 | or an index if the preceeding element names an object which is one of
|
---|
1845 | many objects of the same type. This way, property names form a
|
---|
1846 | hierarchy of properties. Here are some examples of property names:
|
---|
1847 |
|
---|
1848 | <table>
|
---|
1849 | <tr>
|
---|
1850 | <td><tt>VirtualBox.version</tt></td>
|
---|
1851 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
1852 | </tr>
|
---|
1853 | <tr>
|
---|
1854 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
1855 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
1856 | given UUID</td>
|
---|
1857 | </tr>
|
---|
1858 | </table>
|
---|
1859 |
|
---|
1860 | Most property names directly correspond to the properties of objects
|
---|
1861 | (components) provided by the VirtualBox library and may be used to
|
---|
1862 | track changes to these properties. However, there may be
|
---|
1863 | pseudo-property names that don't correspond to any existing object's
|
---|
1864 | property directly, as well as there may be object properties that
|
---|
1865 | don't have a corresponding property name that is understood by this
|
---|
1866 | method, and therefore changes to such properties cannot be
|
---|
1867 | tracked. See individual object's property descrcriptions to get a
|
---|
1868 | fully qualified property name that can be used with this method (if
|
---|
1869 | any).
|
---|
1870 |
|
---|
1871 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
1872 | single asterisk symbol) that can be used to match all properties.
|
---|
1873 | Below are more examples of property masks:
|
---|
1874 |
|
---|
1875 | <table>
|
---|
1876 | <tr>
|
---|
1877 | <td><tt>VirtualBox.*</tt></td>
|
---|
1878 | <td>Track all properties of the VirtualBox object</td>
|
---|
1879 | </tr>
|
---|
1880 | <tr>
|
---|
1881 | <td><tt>Machine.*.name</tt></td>
|
---|
1882 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
1883 | all registered virtual machines</td>
|
---|
1884 | </tr>
|
---|
1885 | </table>
|
---|
1886 |
|
---|
1887 | </desc>
|
---|
1888 | <param name="what" type="wstring" dir="in">
|
---|
1889 | <desc>Comma separated list of property masks.</desc>
|
---|
1890 | </param>
|
---|
1891 | <param name="timeout" type="unsigned long" dir="in">
|
---|
1892 | <desc>
|
---|
1893 | Wait timeout in milliseconds.
|
---|
1894 | Specify -1 for an indefinite wait.
|
---|
1895 | </desc>
|
---|
1896 | </param>
|
---|
1897 | <param name="changed" type="wstring" dir="out">
|
---|
1898 | <desc>
|
---|
1899 | Comma separated list of properties that have been changed and caused
|
---|
1900 | this method to return to the caller.
|
---|
1901 | </desc>
|
---|
1902 | </param>
|
---|
1903 | <param name="values" type="wstring" dir="out">
|
---|
1904 | <desc>Reserved, not currently used.</desc>
|
---|
1905 | </param>
|
---|
1906 | </method>
|
---|
1907 |
|
---|
1908 | </interface>
|
---|
1909 |
|
---|
1910 | <!--
|
---|
1911 | // IMachine
|
---|
1912 | /////////////////////////////////////////////////////////////////////////
|
---|
1913 | -->
|
---|
1914 |
|
---|
1915 | <enumerator
|
---|
1916 | name="IMachineEnumerator" type="IMachine"
|
---|
1917 | uuid="1b554149-be0a-4465-9252-9ff8f420af55"
|
---|
1918 | />
|
---|
1919 |
|
---|
1920 | <collection
|
---|
1921 | name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
|
---|
1922 | uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
|
---|
1923 | readonly="yes"
|
---|
1924 | />
|
---|
1925 |
|
---|
1926 | <interface
|
---|
1927 | name="IInternalMachineControl" extends="$unknown"
|
---|
1928 | uuid="1063893c-4c38-4304-aee9-73e072c181cc"
|
---|
1929 | internal="yes"
|
---|
1930 | wsmap="suppress"
|
---|
1931 | >
|
---|
1932 | <method name="updateState">
|
---|
1933 | <desc>
|
---|
1934 | Updates the VM state.
|
---|
1935 | <note>
|
---|
1936 | This operation will also update the settings file with
|
---|
1937 | the correct information about the saved state file
|
---|
1938 | and delete this file from disk when appropriate.
|
---|
1939 | </note>
|
---|
1940 | </desc>
|
---|
1941 | <param name="state" type="MachineState" dir="in"/>
|
---|
1942 | </method>
|
---|
1943 |
|
---|
1944 | <method name="getIPCId">
|
---|
1945 | <param name="id" type="wstring" dir="return"/>
|
---|
1946 | </method>
|
---|
1947 |
|
---|
1948 | <method name="runUSBDeviceFilters">
|
---|
1949 | <desc>
|
---|
1950 | Asks the server to run USB devices filters of the associated
|
---|
1951 | machine against the given USB device and tell if there is
|
---|
1952 | a match.
|
---|
1953 | <note>
|
---|
1954 | Intended to be used only for remote USB devices. Local
|
---|
1955 | ones don't require to call this method (this is done
|
---|
1956 | implicitly by the Host and USBProxyService).
|
---|
1957 | </note>
|
---|
1958 | </desc>
|
---|
1959 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
1960 | <param name="matched" type="boolean" dir="out"/>
|
---|
1961 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
1962 | </method>
|
---|
1963 |
|
---|
1964 | <method name="captureUSBDevice">
|
---|
1965 | <desc>
|
---|
1966 | Requests a capture of the given host USB device.
|
---|
1967 | When the request is completed, the VM process will
|
---|
1968 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
1969 | notification.
|
---|
1970 | </desc>
|
---|
1971 | <param name="id" type="uuid" dir="in"/>
|
---|
1972 | </method>
|
---|
1973 |
|
---|
1974 | <method name="detachUSBDevice">
|
---|
1975 | <desc>
|
---|
1976 | Notification that a VM is going to detach (done = false) or has
|
---|
1977 | already detached (done = true) the given USB device.
|
---|
1978 | When the done = true request is completed, the VM process will
|
---|
1979 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
1980 | notification.
|
---|
1981 | <note>
|
---|
1982 | In the done = true case, the server must run its own filters
|
---|
1983 | and filters of all VMs but this one on the detached device
|
---|
1984 | as if it were just attached to the host computer.
|
---|
1985 | </note>
|
---|
1986 | </desc>
|
---|
1987 | <param name="id" type="uuid" dir="in"/>
|
---|
1988 | <param name="done" type="boolean" dir="in"/>
|
---|
1989 | </method>
|
---|
1990 |
|
---|
1991 | <method name="autoCaptureUSBDevices">
|
---|
1992 | <desc>
|
---|
1993 | Requests a capture all matching USB devices attached to the host.
|
---|
1994 | When the request is completed, the VM process will
|
---|
1995 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
1996 | notification per every captured device.
|
---|
1997 | </desc>
|
---|
1998 | </method>
|
---|
1999 |
|
---|
2000 | <method name="detachAllUSBDevices">
|
---|
2001 | <desc>
|
---|
2002 | Notification that a VM that is being powered down. The done
|
---|
2003 | parameter indicates whether which stage of the power down
|
---|
2004 | we're at. When done = false the VM is announcing its
|
---|
2005 | intentions, while when done = true the VM is reporting
|
---|
2006 | what it has done.
|
---|
2007 | <note>
|
---|
2008 | In the done = true case, the server must run its own filters
|
---|
2009 | and filters of all VMs but this one on all detach devices as
|
---|
2010 | if they were just attached to the host computer.
|
---|
2011 | </note>
|
---|
2012 | </desc>
|
---|
2013 | <param name="done" type="boolean" dir="in"/>
|
---|
2014 | </method>
|
---|
2015 |
|
---|
2016 | <method name="onSessionEnd">
|
---|
2017 | <desc>
|
---|
2018 | Triggered by the given session object when the session is about
|
---|
2019 | to close normally.
|
---|
2020 | </desc>
|
---|
2021 | <param name="session" type="ISession" dir="in">
|
---|
2022 | <desc>Session that is being closed</desc>
|
---|
2023 | </param>
|
---|
2024 | <param name="progress" type="IProgress" dir="return">
|
---|
2025 | <desc>
|
---|
2026 | Used to wait until the corresponding machine is actually
|
---|
2027 | deassociated from the given session on the server.
|
---|
2028 | Returned only when this session is a direct one.
|
---|
2029 | </desc>
|
---|
2030 | </param>
|
---|
2031 | </method>
|
---|
2032 |
|
---|
2033 | <method name="beginSavingState">
|
---|
2034 | <desc>
|
---|
2035 | Called by the VM process to inform the server it wants to
|
---|
2036 | save the current state and stop the VM execution.
|
---|
2037 | </desc>
|
---|
2038 | <param name="progress" type="IProgress" dir="in">
|
---|
2039 | <desc>
|
---|
2040 | Progress object created by the VM process to wait until
|
---|
2041 | the state is saved.
|
---|
2042 | </desc>
|
---|
2043 | </param>
|
---|
2044 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
2045 | <desc>
|
---|
2046 | File path the VM process must save the execution state to.
|
---|
2047 | </desc>
|
---|
2048 | </param>
|
---|
2049 | </method>
|
---|
2050 |
|
---|
2051 | <method name="endSavingState">
|
---|
2052 | <desc>
|
---|
2053 | Called by the VM process to inform the server that saving
|
---|
2054 | the state previously requested by #beginSavingState is either
|
---|
2055 | successfully finished or there was a failure.
|
---|
2056 | </desc>
|
---|
2057 |
|
---|
2058 | <param name="success" type="boolean" dir="in">
|
---|
2059 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
2060 | </param>
|
---|
2061 | </method>
|
---|
2062 |
|
---|
2063 | <method name="adoptSavedState">
|
---|
2064 | <desc>
|
---|
2065 | Gets called by IConsole::adoptSavedState.
|
---|
2066 | </desc>
|
---|
2067 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
2068 | <desc>Path to the saved state file to adopt.</desc>
|
---|
2069 | </param>
|
---|
2070 | </method>
|
---|
2071 |
|
---|
2072 | <method name="beginTakingSnapshot">
|
---|
2073 | <desc>
|
---|
2074 | Called by the VM process to inform the server it wants to
|
---|
2075 | take a snapshot.
|
---|
2076 | </desc>
|
---|
2077 | <param name="initiator" type="IConsole" dir="in">
|
---|
2078 | <desc>The console object that initiated this call.</desc>
|
---|
2079 | </param>
|
---|
2080 | <param name="name" type="wstring" dir="in">
|
---|
2081 | <desc>Snapshot name</desc>
|
---|
2082 | </param>
|
---|
2083 | <param name="description" type="wstring" dir="in">
|
---|
2084 | <desc>Snapshot description</desc>
|
---|
2085 | </param>
|
---|
2086 | <param name="progress" type="IProgress" dir="in">
|
---|
2087 | <desc>
|
---|
2088 | Progress object created by the VM process to wait until
|
---|
2089 | the state is saved (only for online snapshots).
|
---|
2090 | </desc>
|
---|
2091 | </param>
|
---|
2092 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
2093 | <desc>
|
---|
2094 | File path the VM process must save the execution state to.
|
---|
2095 | </desc>
|
---|
2096 | </param>
|
---|
2097 | <param name="serverProgress" type="IProgress" dir="out">
|
---|
2098 | <desc>
|
---|
2099 | Progress object created by the server process to wait until
|
---|
2100 | the snapshot is taken (VDI diff creation, etc.).
|
---|
2101 | </desc>
|
---|
2102 | </param>
|
---|
2103 | </method>
|
---|
2104 |
|
---|
2105 | <method name="endTakingSnapshot">
|
---|
2106 | <desc>
|
---|
2107 | Called by the VM process to inform the server that the snapshot
|
---|
2108 | previously requested by #beginTakingSnapshot is either
|
---|
2109 | successfully taken or there was a failure.
|
---|
2110 | </desc>
|
---|
2111 |
|
---|
2112 | <param name="success" type="boolean" dir="in">
|
---|
2113 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
2114 | </param>
|
---|
2115 | </method>
|
---|
2116 |
|
---|
2117 | <method name="discardSnapshot">
|
---|
2118 | <desc>
|
---|
2119 | Gets called by IConsole::discardSnapshot.
|
---|
2120 | </desc>
|
---|
2121 | <param name="initiator" type="IConsole" dir="in">
|
---|
2122 | <desc>The console object that initiated this call.</desc>
|
---|
2123 | </param>
|
---|
2124 | <param name="id" type="uuid" dir="in">
|
---|
2125 | <desc>UUID of the snapshot to discard.</desc>
|
---|
2126 | </param>
|
---|
2127 | <param name="machineState" type="MachineState" dir="out">
|
---|
2128 | <desc>New machine state after this operation is started.</desc>
|
---|
2129 | </param>
|
---|
2130 | <param name="progress" type="IProgress" dir="return">
|
---|
2131 | <desc>Progress object to track the operation completion.</desc>
|
---|
2132 | </param>
|
---|
2133 | </method>
|
---|
2134 |
|
---|
2135 | <method name="discardCurrentState">
|
---|
2136 | <desc>
|
---|
2137 | Gets called by IConsole::discardCurrentState.
|
---|
2138 | </desc>
|
---|
2139 | <param name="initiator" type="IConsole" dir="in">
|
---|
2140 | <desc>The console object that initiated this call.</desc>
|
---|
2141 | </param>
|
---|
2142 | <param name="machineState" type="MachineState" dir="out">
|
---|
2143 | <desc>New machine state after this operation is started.</desc>
|
---|
2144 | </param>
|
---|
2145 | <param name="progress" type="IProgress" dir="return">
|
---|
2146 | <desc>Progress object to track the operation completion.</desc>
|
---|
2147 | </param>
|
---|
2148 | </method>
|
---|
2149 |
|
---|
2150 | <method name="discardCurrentSnapshotAndState">
|
---|
2151 | <desc>
|
---|
2152 | Gets called by IConsole::discardCurrentSnapshotAndState.
|
---|
2153 | </desc>
|
---|
2154 | <param name="initiator" type="IConsole" dir="in">
|
---|
2155 | <desc>The console object that initiated this call.</desc>
|
---|
2156 | </param>
|
---|
2157 | <param name="machineState" type="MachineState" dir="out">
|
---|
2158 | <desc>New machine state after this operation is started.</desc>
|
---|
2159 | </param>
|
---|
2160 | <param name="progress" type="IProgress" dir="return">
|
---|
2161 | <desc>Progress object to track the operation completion.</desc>
|
---|
2162 | </param>
|
---|
2163 | </method>
|
---|
2164 |
|
---|
2165 | </interface>
|
---|
2166 |
|
---|
2167 | <enum
|
---|
2168 | name="BIOSBootMenuMode"
|
---|
2169 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
2170 | >
|
---|
2171 | <desc>
|
---|
2172 | This represents the BIOS boot menu state.
|
---|
2173 | </desc>
|
---|
2174 |
|
---|
2175 | <const name="Disabled" value="0"/>
|
---|
2176 | <const name="MenuOnly" value="1"/>
|
---|
2177 | <const name="MessageAndMenu" value="2"/>
|
---|
2178 | </enum>
|
---|
2179 |
|
---|
2180 | <enum
|
---|
2181 | name="IDEControllerType"
|
---|
2182 | uuid="445330e3-202a-4dab-854f-ce22e6cb9715"
|
---|
2183 | >
|
---|
2184 | <const name="InvalidIDEControllerType" value="0"/>
|
---|
2185 | <const name="IDEControllerPIIX3" value="1"/>
|
---|
2186 | <const name="IDEControllerPIIX4" value="2"/>
|
---|
2187 | </enum>
|
---|
2188 |
|
---|
2189 | <interface
|
---|
2190 | name="IBIOSSettings" extends="$unknown"
|
---|
2191 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
2192 | wsmap="struct"
|
---|
2193 | >
|
---|
2194 | <desc>
|
---|
2195 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
2196 | machine. Used in <link to="IMachine::BIOSSettings" />.
|
---|
2197 | </desc>
|
---|
2198 | <attribute name="logoFadeIn" type="boolean">
|
---|
2199 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
2200 | </attribute>
|
---|
2201 |
|
---|
2202 | <attribute name="logoFadeOut" type="boolean">
|
---|
2203 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
2204 | </attribute>
|
---|
2205 |
|
---|
2206 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
2207 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
2208 | </attribute>
|
---|
2209 |
|
---|
2210 | <attribute name="logoImagePath" type="wstring">
|
---|
2211 | <desc>Local file system path for external BIOS image.</desc>
|
---|
2212 | </attribute>
|
---|
2213 |
|
---|
2214 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
2215 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
2216 | </attribute>
|
---|
2217 |
|
---|
2218 | <attribute name="ACPIEnabled" type="boolean">
|
---|
2219 | <desc>ACPI support flag.</desc>
|
---|
2220 | </attribute>
|
---|
2221 |
|
---|
2222 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
2223 | <desc>
|
---|
2224 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
2225 | and support IRQs above 15.
|
---|
2226 | </desc>
|
---|
2227 | </attribute>
|
---|
2228 |
|
---|
2229 | <attribute name="timeOffset" type="long long">
|
---|
2230 | <desc>
|
---|
2231 | Offset in milliseconds from the host system time. This allows for
|
---|
2232 | guests running with a different system date/time than the host.
|
---|
2233 | It is equivalent to setting the system date/time in the BIOS other
|
---|
2234 | than it's not an absolute value but a relative one. Guest Additions
|
---|
2235 | time synchronization also honors this offset.
|
---|
2236 | </desc>
|
---|
2237 | </attribute>
|
---|
2238 |
|
---|
2239 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
2240 | <desc>
|
---|
2241 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
2242 | PXE trace information to the release log.
|
---|
2243 | </desc>
|
---|
2244 | </attribute>
|
---|
2245 |
|
---|
2246 | <attribute name="IDEControllerType" type="IDEControllerType">
|
---|
2247 | <desc>
|
---|
2248 | Type of the virtual IDE controller. Depending on this value,
|
---|
2249 | VirtualBox will provide different virtual IDE hardware
|
---|
2250 | devices to the guest.
|
---|
2251 | </desc>
|
---|
2252 | </attribute>
|
---|
2253 |
|
---|
2254 | </interface>
|
---|
2255 |
|
---|
2256 | <interface
|
---|
2257 | name="IMachine" extends="$unknown"
|
---|
2258 | uuid="2830ce8c-be5b-4660-b8d5-65d913005b4f"
|
---|
2259 | wsmap="managed"
|
---|
2260 | >
|
---|
2261 | <desc>
|
---|
2262 | The IMachine interface represents a virtual machine, or guest, created
|
---|
2263 | in VirtualBox.
|
---|
2264 |
|
---|
2265 | This interface is used in two contexts. First of all, a collection of
|
---|
2266 | objects implementing this interface is stored in the
|
---|
2267 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
2268 | machines that are currently registered with this VirtualBox
|
---|
2269 | installation. Also, once a session has been opened for the given virtual
|
---|
2270 | machine (e.g. the virtual machine is running), the machine object
|
---|
2271 | associated with the open session can be queried from the session object;
|
---|
2272 | see <link to="ISession"/> for details.
|
---|
2273 |
|
---|
2274 | The main role of this interface is to expose the settings of the virtual
|
---|
2275 | machine and provide methods to change various aspects of the virtual
|
---|
2276 | machine's configuration. For machine objects stored in the
|
---|
2277 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
2278 | read-only unless explicitely stated otherwise in individual attribute
|
---|
2279 | and method descriptions. In order to change a machine setting, a session
|
---|
2280 | for this machine must be opened using one of
|
---|
2281 | <link to="IVirtualBox::openSession"/>,
|
---|
2282 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
2283 | <link to="IVirtualBox::openExistingSession"/> methdods. After the
|
---|
2284 | session has been successfully opened, a mutable machine object needs to
|
---|
2285 | be queried from the session object and then the desired settings changes
|
---|
2286 | can be applied to the returned object using IMachine attributes and
|
---|
2287 | methods. See the ISession interface description for more information
|
---|
2288 | about sessions.
|
---|
2289 |
|
---|
2290 | Note that the IMachine interface does not provide methods to control
|
---|
2291 | virtual machine execution (such as start the machine, or power it
|
---|
2292 | down) -- these methods are grouped in a separate IConsole
|
---|
2293 | interface. Refer to the IConsole interface description to get more
|
---|
2294 | information about this topic.
|
---|
2295 |
|
---|
2296 | <see>ISession, IConsole</see>
|
---|
2297 | </desc>
|
---|
2298 |
|
---|
2299 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
2300 | <desc>Associated parent obect.</desc>
|
---|
2301 | </attribute>
|
---|
2302 |
|
---|
2303 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
2304 | <desc>
|
---|
2305 | Whether this virtual machine is currently accessible or not.
|
---|
2306 |
|
---|
2307 | The machine is considered to be inaccessible when:
|
---|
2308 | <ul>
|
---|
2309 | <li>It is a registered virtual machine, and
|
---|
2310 | </li>
|
---|
2311 | <li>Its settings file is inaccessible (for example, it is
|
---|
2312 | located on a network share that is not accessible during
|
---|
2313 | VirtualBox startup, or becomes inaccessible later, or if
|
---|
2314 | the settings file can be read but is invalid).
|
---|
2315 | </li>
|
---|
2316 | </ul>
|
---|
2317 |
|
---|
2318 | Otherwise, the value of this property is always <tt>true</tt>.
|
---|
2319 |
|
---|
2320 | Every time this property is read, the accessibility state of
|
---|
2321 | this machine is re-evaluated. If the returned value is |false|,
|
---|
2322 | the <link to="#accessError"/> property may be used to get the
|
---|
2323 | detailed error information describing the reason of
|
---|
2324 | inaccessibility.
|
---|
2325 |
|
---|
2326 | When the machine is inaccessible, only the following properties
|
---|
2327 | can be used on it:
|
---|
2328 | <ul>
|
---|
2329 | <li><link to="#parent"/></li>
|
---|
2330 | <li><link to="#id"/></li>
|
---|
2331 | <li><link to="#settingsFilePath"/></li>
|
---|
2332 | <li><link to="#accessible"/></li>
|
---|
2333 | <li><link to="#accessError"/></li>
|
---|
2334 | </ul>
|
---|
2335 |
|
---|
2336 | An attempt to access any other property or method will return
|
---|
2337 | an error.
|
---|
2338 |
|
---|
2339 | The only possible action you can perform on an inaccessible
|
---|
2340 | machine is to unregister it using the
|
---|
2341 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
2342 | for the accessibility state once more by querying this
|
---|
2343 | property).
|
---|
2344 |
|
---|
2345 | <note>
|
---|
2346 | In the current implementation, once this property returns
|
---|
2347 | <tt>true</tt>, the machine will never become inaccessible
|
---|
2348 | later, even if its settings file cannot be successfully
|
---|
2349 | read/written any more (at least, until the VirtualBox
|
---|
2350 | server is restarted). This limitation may be removed in
|
---|
2351 | future releases.
|
---|
2352 | </note>
|
---|
2353 | </desc>
|
---|
2354 | </attribute>
|
---|
2355 |
|
---|
2356 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
2357 | <desc>
|
---|
2358 | Error information describing the reason of machine
|
---|
2359 | inaccessibility.
|
---|
2360 |
|
---|
2361 | Reading this property is only valid after the last call to
|
---|
2362 | <link to="#accessible"/> returned <tt>false</tt> (i.e. the
|
---|
2363 | machine is currently unaccessible). Otherwise, a null
|
---|
2364 | IVirtualBoxErrorInfo object will be returned.
|
---|
2365 | </desc>
|
---|
2366 | </attribute>
|
---|
2367 |
|
---|
2368 | <attribute name="name" type="wstring">
|
---|
2369 | <desc>
|
---|
2370 | Name of the virtual machine.
|
---|
2371 |
|
---|
2372 | Besides being used for human-readable identification purposes
|
---|
2373 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
2374 | as a name of the machine's settings file and as a name of the
|
---|
2375 | subdirectory this settings file resides in. Thus, every time you
|
---|
2376 | change the value of this property, the settings file will be
|
---|
2377 | renamed once you call <link to="#saveSettings()"/> to confirm the
|
---|
2378 | change. The containing subdirectory will be also renamed, but
|
---|
2379 | only if it has exactly the same name as the settings file
|
---|
2380 | itself prior to changing this property (for backward compatibility
|
---|
2381 | with previous API releases). The above implies the following
|
---|
2382 | limitations:
|
---|
2383 | <ul>
|
---|
2384 | <li>The machine name cannot be empty.</li>
|
---|
2385 | <li>The machine name can contain only characters that are valid
|
---|
2386 | file name characters according to the rules of the file
|
---|
2387 | system used to store VirtualBox configuration.</li>
|
---|
2388 | <li>You cannot have two or more machines with the same name
|
---|
2389 | if they use the same subdirectory for storing the machine
|
---|
2390 | settings files.</li>
|
---|
2391 | <li>You cannot change the name of the machine if it is running,
|
---|
2392 | or if any file in the directory containing the settings file
|
---|
2393 | is being used by another running machine or by any other
|
---|
2394 | process in the host operating system at a time when
|
---|
2395 | <link to="#saveSettings()"/> is called.
|
---|
2396 | </li>
|
---|
2397 | </ul>
|
---|
2398 | If any of the above limitations are hit, <link to="#saveSettings()"/>
|
---|
2399 | will return an appropriate error message explaining the exact
|
---|
2400 | reason and the changes you made to this machine will not be
|
---|
2401 | saved.
|
---|
2402 | <note>
|
---|
2403 | For "legacy" machines created using the
|
---|
2404 | <link to="IVirtualBox::createLegacyMachine()"/> call,
|
---|
2405 | the above naming limitations do not apply because the
|
---|
2406 | machine name does not affect the settings file name.
|
---|
2407 | The settings file name remains the same as it was specified
|
---|
2408 | during machine creation and never changes.
|
---|
2409 | </note>
|
---|
2410 | </desc>
|
---|
2411 | </attribute>
|
---|
2412 |
|
---|
2413 | <attribute name="description" type="wstring">
|
---|
2414 | <desc>
|
---|
2415 | Description of the virtual machine.
|
---|
2416 |
|
---|
2417 | The description attribute can contain any text and is
|
---|
2418 | typically used to describe the hardware and software
|
---|
2419 | configuration of the virtual machine in detail (i.e. network
|
---|
2420 | settings, versions of the installed software and so on).
|
---|
2421 | </desc>
|
---|
2422 | </attribute>
|
---|
2423 |
|
---|
2424 | <attribute name="id" type="uuid" readonly="yes">
|
---|
2425 | <desc>UUID of the virtual machine.</desc>
|
---|
2426 | </attribute>
|
---|
2427 |
|
---|
2428 | <attribute name="OSTypeId" type="wstring">
|
---|
2429 | <desc>
|
---|
2430 | User-defined identifier of the Guest OS type.
|
---|
2431 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
2432 | an IGuestOSType object representing details about the given
|
---|
2433 | Guest OS type.
|
---|
2434 | <note>
|
---|
2435 | This value may differ from the value returned by
|
---|
2436 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
2437 | installed to the guest OS.
|
---|
2438 | </note>
|
---|
2439 | </desc>
|
---|
2440 | </attribute>
|
---|
2441 |
|
---|
2442 | <attribute name="memorySize" type="unsigned long">
|
---|
2443 | <desc>System memory size in megabytes.</desc>
|
---|
2444 | </attribute>
|
---|
2445 |
|
---|
2446 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
2447 | <desc>Initial memory balloon size in megabytes.</desc>
|
---|
2448 | </attribute>
|
---|
2449 |
|
---|
2450 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
2451 | <desc>Initial interval to update guest statistics in seconds.</desc>
|
---|
2452 | </attribute>
|
---|
2453 |
|
---|
2454 | <attribute name="VRAMSize" type="unsigned long">
|
---|
2455 | <desc>Video memory size in megabytes.</desc>
|
---|
2456 | </attribute>
|
---|
2457 |
|
---|
2458 | <attribute name="MonitorCount" type="unsigned long">
|
---|
2459 | <desc>
|
---|
2460 | Number of virtual monitors.
|
---|
2461 | <note>
|
---|
2462 | Only effective on Windows XP and later guests with
|
---|
2463 | Guest Additions installed.
|
---|
2464 | </note>
|
---|
2465 | </desc>
|
---|
2466 | </attribute>
|
---|
2467 |
|
---|
2468 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
2469 | <desc>Object containing all BIOS settings.</desc>
|
---|
2470 | </attribute>
|
---|
2471 |
|
---|
2472 | <attribute name="HWVirtExEnabled" type="TriStateBool">
|
---|
2473 | <desc>
|
---|
2474 | This setting determines whether VirtualBox will try to make use of
|
---|
2475 | the host CPU's hardware virtualization extensions such as Intel VT-x
|
---|
2476 | and AMD SVM. Note that in case such extensions are not available,
|
---|
2477 | they will not be used.
|
---|
2478 | </desc>
|
---|
2479 | </attribute>
|
---|
2480 |
|
---|
2481 | <attribute name="snapshotFolder" type="wstring">
|
---|
2482 | <desc>
|
---|
2483 | Full path to the directory used to store snapshot data
|
---|
2484 | (difrerencing hard disks and saved state files) of this machine.
|
---|
2485 |
|
---|
2486 | The initial value of this property is
|
---|
2487 | <tt><</tt><link to="#settingsFilePath">
|
---|
2488 | path_to_settings_file</link><tt>>/<</tt>
|
---|
2489 | <link to="#id">machine_uuid</link>
|
---|
2490 | <tt>></tt>.
|
---|
2491 |
|
---|
2492 | Currently, it is an error to try to change this property on
|
---|
2493 | a machine that has snapshots (because this would require to
|
---|
2494 | move possibly large files to a different location).
|
---|
2495 | A separate method will be available for this purpose later.
|
---|
2496 |
|
---|
2497 | <note>
|
---|
2498 | Setting this property to <tt>null</tt> will restore the
|
---|
2499 | initial value.
|
---|
2500 | </note>
|
---|
2501 | <note>
|
---|
2502 | When setting this property, the specified path can be
|
---|
2503 | absolute (full path) or relative to the directory where the
|
---|
2504 | <link to="#settingsFilePath">machine settings file</link>
|
---|
2505 | is located. When reading this property, a full path is
|
---|
2506 | always returned.
|
---|
2507 | </note>
|
---|
2508 | <note>
|
---|
2509 | The specified path may not exist, it will be created
|
---|
2510 | when necessary.
|
---|
2511 | </note>
|
---|
2512 | </desc>
|
---|
2513 | </attribute>
|
---|
2514 |
|
---|
2515 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
2516 | <desc>VRDP server object.</desc>
|
---|
2517 | </attribute>
|
---|
2518 |
|
---|
2519 | <attribute name="hardDiskAttachments" type="IHardDiskAttachmentCollection" readonly="yes">
|
---|
2520 | <desc>Collection of hard disks attached to the machine.</desc>
|
---|
2521 | </attribute>
|
---|
2522 |
|
---|
2523 | <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
|
---|
2524 | <desc>Associated DVD drive object.</desc>
|
---|
2525 | </attribute>
|
---|
2526 |
|
---|
2527 | <attribute name="FloppyDrive" type="IFloppyDrive" readonly="yes">
|
---|
2528 | <desc>Associated floppy drive object.</desc>
|
---|
2529 | </attribute>
|
---|
2530 |
|
---|
2531 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
2532 | <desc>Associated USB controller object.</desc>
|
---|
2533 | </attribute>
|
---|
2534 |
|
---|
2535 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
2536 | <desc>Associated audio adapter, always present.</desc>
|
---|
2537 | </attribute>
|
---|
2538 |
|
---|
2539 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
2540 | <desc>
|
---|
2541 | Full name of the file containing machine settings data.
|
---|
2542 | </desc>
|
---|
2543 | </attribute>
|
---|
2544 |
|
---|
2545 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
2546 | <desc>
|
---|
2547 | Whether the settings of this machine have been modified
|
---|
2548 | (but neither yet saved nor discarded).
|
---|
2549 | <note>
|
---|
2550 | Reading this property is only valid on instances returned
|
---|
2551 | by <link to="ISession::machine"/> and on new machines
|
---|
2552 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
2553 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
2554 | yet registered, or on unregistered machines after calling
|
---|
2555 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
2556 | cases, the settigs can never be modified.
|
---|
2557 | </note>
|
---|
2558 | <note>
|
---|
2559 | For newly created unregistered machines, the value of this
|
---|
2560 | property is always TRUE until <link to="#saveSettings"/>
|
---|
2561 | is called (no matter if any machine settings have been
|
---|
2562 | changed after the creation or not). For opened machines
|
---|
2563 | the value is set to FALSE (and then follows to normal rules).
|
---|
2564 | </note>
|
---|
2565 | </desc>
|
---|
2566 | </attribute>
|
---|
2567 |
|
---|
2568 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
2569 | <desc>Current session state for this machine.</desc>
|
---|
2570 | </attribute>
|
---|
2571 |
|
---|
2572 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
2573 | <desc>
|
---|
2574 | Type of the session. If <link to="#sessionState"/> is
|
---|
2575 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
2576 | same value as passed to the
|
---|
2577 | <link to="IVirtualBox::openRemoteSession()"/> method in the @a
|
---|
2578 | type parameter. If the session was opened directly using
|
---|
2579 | <link to="IVirtualBox::openSession()"/>, or if
|
---|
2580 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
2581 | attribute is @c null.
|
---|
2582 | </desc>
|
---|
2583 | </attribute>
|
---|
2584 |
|
---|
2585 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
2586 | <desc>
|
---|
2587 | Identifier of the session process. This attribute contains the
|
---|
2588 | platform-dependent identifier of the process that has opened a
|
---|
2589 | direct session for this machine using the
|
---|
2590 | <link to="IVirtualBox::openSession()"/> call. The returned value
|
---|
2591 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
2592 | SessionClosing (i.e. a session is currently open or being
|
---|
2593 | closed) by the time this property is read.
|
---|
2594 | </desc>
|
---|
2595 | </attribute>
|
---|
2596 |
|
---|
2597 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
2598 | <desc>Current execution state of this machine.</desc>
|
---|
2599 | </attribute>
|
---|
2600 |
|
---|
2601 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
2602 | <desc>
|
---|
2603 | Time stamp of the last execution state change,
|
---|
2604 | in milliseconds since 1970-01-01 UTC.
|
---|
2605 | </desc>
|
---|
2606 | </attribute>
|
---|
2607 |
|
---|
2608 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
2609 | <desc>
|
---|
2610 | Full path to the file that stores the execution state of
|
---|
2611 | the machine when it is in the <link to="MachineState::Saved"/>
|
---|
2612 | state.
|
---|
2613 | <note>
|
---|
2614 | When the machine is not in the Saved state, this attribute
|
---|
2615 | <tt>null</tt>.
|
---|
2616 | </note>
|
---|
2617 | </desc>
|
---|
2618 | </attribute>
|
---|
2619 |
|
---|
2620 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
2621 | <desc>
|
---|
2622 | Full path to the folder that stores a set of rotated log files
|
---|
2623 | recorded during machine execution. The most recent log file is
|
---|
2624 | named <tt>VBox.log</tt>, the previous log file is
|
---|
2625 | named <tt>VBox.log.1</tt> and so on (upto <tt>VBox.log.3</tt>
|
---|
2626 | in the current version).
|
---|
2627 | </desc>
|
---|
2628 | </attribute>
|
---|
2629 |
|
---|
2630 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
2631 | <desc>
|
---|
2632 | Current snapshot of this machine.
|
---|
2633 | <note>
|
---|
2634 | A <tt>null</tt> object is returned if the machine doesn't
|
---|
2635 | have snapshots.
|
---|
2636 | </note>
|
---|
2637 | <see><link to="ISnapshot"/></see>
|
---|
2638 | </desc>
|
---|
2639 | </attribute>
|
---|
2640 |
|
---|
2641 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
2642 | <desc>
|
---|
2643 | Number of snapshots taken on this machine. Zero means the
|
---|
2644 | machine doesn't have any snapshots.
|
---|
2645 | </desc>
|
---|
2646 | </attribute>
|
---|
2647 |
|
---|
2648 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
2649 | <desc>
|
---|
2650 | Returns <tt>true</tt> if the current state of the machine is not
|
---|
2651 | identical to the state stored in the current snapshot.
|
---|
2652 |
|
---|
2653 | The current state is identical to the current snapshot right
|
---|
2654 | after one of the following calls are made:
|
---|
2655 | <ul>
|
---|
2656 | <li><link to="IConsole::discardCurrentState"/> or
|
---|
2657 | <link to="IConsole::discardCurrentSnapshotAndState"/>
|
---|
2658 | </li>
|
---|
2659 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
2660 | powered off or saved machine, for which
|
---|
2661 | <link to="#settingsModified"/> returns <tt>false</tt>)
|
---|
2662 | </li>
|
---|
2663 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
2664 | </li>
|
---|
2665 | </ul>
|
---|
2666 |
|
---|
2667 | The current state remains identical until one of the following
|
---|
2668 | happens:
|
---|
2669 | <ul>
|
---|
2670 | <li>settings of the machine are changed</li>
|
---|
2671 | <li>the saved state is discarded</li>
|
---|
2672 | <li>the current snapshot is discarded</li>
|
---|
2673 | <li>an attempt to execute the machine is made</li>
|
---|
2674 | </ul>
|
---|
2675 |
|
---|
2676 | <note>
|
---|
2677 | For machines that don't have snapshots, this property is
|
---|
2678 | always <tt>false</tt>.
|
---|
2679 | </note>
|
---|
2680 | </desc>
|
---|
2681 | </attribute>
|
---|
2682 |
|
---|
2683 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
2684 | <desc>
|
---|
2685 | Collection of shared folders for this machine (permanent shared
|
---|
2686 | folders). These folders are shared automatically at machine startup
|
---|
2687 | and available only to the guest OS installed within this machine.
|
---|
2688 |
|
---|
2689 | New shared folders are added to the collection using
|
---|
2690 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
2691 | removed using <link to="#removeSharedFolder"/>.
|
---|
2692 | </desc>
|
---|
2693 | </attribute>
|
---|
2694 |
|
---|
2695 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
2696 | <desc>
|
---|
2697 | Synchronization mode between the host OS clipboard
|
---|
2698 | and the guest OS clipboard.
|
---|
2699 | </desc>
|
---|
2700 | </attribute>
|
---|
2701 |
|
---|
2702 | <method name="setBootOrder">
|
---|
2703 | <desc>
|
---|
2704 | Puts the given device to the specified position in
|
---|
2705 | the boot order.
|
---|
2706 |
|
---|
2707 | To indicate that no device is associated with the given position,
|
---|
2708 | <link to="DeviceType::NoDevice"/> should be used.
|
---|
2709 |
|
---|
2710 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
2711 | </desc>
|
---|
2712 | <param name="position" type="unsigned long" dir="in">
|
---|
2713 | <desc>
|
---|
2714 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
2715 | devices the machine can boot from, as returned by
|
---|
2716 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
2717 | </desc>
|
---|
2718 | </param>
|
---|
2719 | <param name="device" type="DeviceType" dir="in">
|
---|
2720 | <desc>
|
---|
2721 | The type of the device used to boot at the given position.
|
---|
2722 | </desc>
|
---|
2723 | </param>
|
---|
2724 | </method>
|
---|
2725 |
|
---|
2726 | <method name="getBootOrder" const="yes">
|
---|
2727 | <desc>
|
---|
2728 | Returns the device type that occupies the specified
|
---|
2729 | position in the boot order.
|
---|
2730 |
|
---|
2731 | @todo [remove?]
|
---|
2732 | If the machine can have more than one device of the returned type
|
---|
2733 | (such as hard disks), then a separate method should be used to
|
---|
2734 | retrieve the individual device that occupies the given position.
|
---|
2735 |
|
---|
2736 | If here are no devices at the given position, then
|
---|
2737 | <link to="DeviceType::NoDevice"/> is returned.
|
---|
2738 |
|
---|
2739 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
2740 | </desc>
|
---|
2741 | <param name="order" type="unsigned long" dir="in">
|
---|
2742 | <desc>
|
---|
2743 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
2744 | devices the machine can boot from, as returned by
|
---|
2745 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
2746 | </desc>
|
---|
2747 | </param>
|
---|
2748 | <param name="device" type="DeviceType" dir="return">
|
---|
2749 | <desc>
|
---|
2750 | Device at the given position.
|
---|
2751 | </desc>
|
---|
2752 | </param>
|
---|
2753 | </method>
|
---|
2754 |
|
---|
2755 | <method name="attachHardDisk">
|
---|
2756 | <desc>
|
---|
2757 |
|
---|
2758 | Attaches a virtual hard disk identified by the given UUID to the
|
---|
2759 | given device slot of the given controller. The specified device
|
---|
2760 | must not have another disk attached and the given hard disk must
|
---|
2761 | not be already attached to this machine.
|
---|
2762 |
|
---|
2763 | See <link to="IHardDisk"/> for detailed information about
|
---|
2764 | attaching hard disks.
|
---|
2765 |
|
---|
2766 | <note>You cannot attach a hard disk to a running machine. Also,
|
---|
2767 | you cannot attach a hard disk to a newly created machine until
|
---|
2768 | it is registered.</note>
|
---|
2769 |
|
---|
2770 | <note>Attaching a hard disk to a machine creates a <i>lazy</i>
|
---|
2771 | attachment. In particular, no differeincing images are
|
---|
2772 | actually created until <link to="#saveSettings"/> is called to
|
---|
2773 | commit all changed settings.</note>
|
---|
2774 |
|
---|
2775 | </desc>
|
---|
2776 | <param name="diskID" type="uuid" dir="in">
|
---|
2777 | <desc>UUID of the hard disk to attach.</desc>
|
---|
2778 | </param>
|
---|
2779 | <param name="controller" type="DiskControllerType" dir="in">
|
---|
2780 | <desc>Controller to attach the hard disk to.</desc>
|
---|
2781 | </param>
|
---|
2782 | <param name="device" type="long" dir="in">
|
---|
2783 | <desc>Device slot to attach the hard disk to.</desc>
|
---|
2784 | </param>
|
---|
2785 | </method>
|
---|
2786 |
|
---|
2787 | <method name="getHardDisk" const="yes">
|
---|
2788 | <desc>
|
---|
2789 | Returns the hard disk attached to the
|
---|
2790 | given controller under the specified device number.
|
---|
2791 | </desc>
|
---|
2792 | <param name="controller" type="DiskControllerType" dir="in"/>
|
---|
2793 | <param name="deviceNumber" type="long" dir="in"/>
|
---|
2794 | <param name="hardDisk" type="IHardDisk" dir="return"/>
|
---|
2795 | </method>
|
---|
2796 |
|
---|
2797 | <method name="detachHardDisk">
|
---|
2798 | <desc>
|
---|
2799 |
|
---|
2800 | Detaches the hard disk drive attached to the given device slot
|
---|
2801 | of the given controller.
|
---|
2802 |
|
---|
2803 | See <link to="IHardDisk"/> for detailed information about
|
---|
2804 | attaching hard disks.
|
---|
2805 |
|
---|
2806 | <note>You cannot detach a hard disk from a running
|
---|
2807 | machine.</note>
|
---|
2808 |
|
---|
2809 | <note>
|
---|
2810 | Detaching a hard disk from a machine creates a <i>lazy</i>
|
---|
2811 | detachment. In particular, if the detached hard disk is a
|
---|
2812 | differencing hard disk, it is not actually deleted until
|
---|
2813 | <link to="#saveSettings"/> is called to commit all changed settings.
|
---|
2814 | Keep in mind, that doing <link to="#saveSettings"/> will
|
---|
2815 | <b>physically delete</b> all detached differencing hard disks,
|
---|
2816 | so be careful.
|
---|
2817 | </note>
|
---|
2818 |
|
---|
2819 | </desc>
|
---|
2820 | <param name="controller" type="DiskControllerType" dir="in">
|
---|
2821 | <desc>Controller to dettach the hard disk from.</desc>
|
---|
2822 | </param>
|
---|
2823 | <param name="device" type="long" dir="in">
|
---|
2824 | <desc>Device slot to dettach the hard disk from.</desc>
|
---|
2825 | </param>
|
---|
2826 | </method>
|
---|
2827 |
|
---|
2828 | <method name="getNetworkAdapter" const="yes">
|
---|
2829 | <desc>
|
---|
2830 | Returns the network adapter associated with the given slot.
|
---|
2831 | Slots are numbered sequentially, starting with zero. The total
|
---|
2832 | number of adapters per every machine is defined by the
|
---|
2833 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
2834 | so the maximum slot number is one less than that property's value.
|
---|
2835 | </desc>
|
---|
2836 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2837 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
2838 | </method>
|
---|
2839 |
|
---|
2840 | <method name="getSerialPort" const="yes">
|
---|
2841 | <desc>
|
---|
2842 | Returns the serial port associated with the given slot.
|
---|
2843 | Slots are numbered sequentially, starting with zero. The total
|
---|
2844 | number of serial ports per every machine is defined by the
|
---|
2845 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
2846 | so the maximum slot number is one less than that property's value.
|
---|
2847 | </desc>
|
---|
2848 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2849 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
2850 | </method>
|
---|
2851 |
|
---|
2852 | <method name="getParallelPort" const="yes">
|
---|
2853 | <desc>
|
---|
2854 | Returns the parallel port associated with the given slot.
|
---|
2855 | Slots are numbered sequentially, starting with zero. The total
|
---|
2856 | number of parallel ports per every machine is defined by the
|
---|
2857 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
2858 | so the maximum slot number is one less than that property's value.
|
---|
2859 | </desc>
|
---|
2860 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2861 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
2862 | </method>
|
---|
2863 |
|
---|
2864 | <method name="getNextExtraDataKey">
|
---|
2865 | <desc>
|
---|
2866 | Returns the machine-specific extra data key name following the
|
---|
2867 | supplied key.
|
---|
2868 |
|
---|
2869 | An error is returned if the supplied @a key does not exist. @c NULL is
|
---|
2870 | returned in @a nextKey if the supplied key is the last key. When
|
---|
2871 | supplying @c NULL for the @a key, the first key item is returned in @a
|
---|
2872 | nextKey (if there is any). @a nextValue is an optional parameter and
|
---|
2873 | if supplied, the next key's value is returned in it.
|
---|
2874 | </desc>
|
---|
2875 | <param name="key" type="wstring" dir="in">
|
---|
2876 | <desc>Name of the data key to follow.</desc>
|
---|
2877 | </param>
|
---|
2878 | <param name="nextKey" type="wstring" dir="out">
|
---|
2879 | <desc>Name of the next data key.</desc>
|
---|
2880 | </param>
|
---|
2881 | <param name="nextValue" type="wstring" dir="out">
|
---|
2882 | <desc>Value of the next data key.</desc>
|
---|
2883 | </param>
|
---|
2884 | </method>
|
---|
2885 |
|
---|
2886 | <method name="getExtraData">
|
---|
2887 | <desc>
|
---|
2888 | Returns associated machine-specific extra data.
|
---|
2889 |
|
---|
2890 | If the reuqested data @a key does not exist, this function will
|
---|
2891 | succeed and return @c NULL in the @a value argument.
|
---|
2892 | </desc>
|
---|
2893 | <param name="key" type="wstring" dir="in">
|
---|
2894 | <desc>Name of the data key to get.</desc>
|
---|
2895 | </param>
|
---|
2896 | <param name="value" type="wstring" dir="return">
|
---|
2897 | <desc>Value of the requested data key.</desc>
|
---|
2898 | </param>
|
---|
2899 | </method>
|
---|
2900 |
|
---|
2901 | <method name="setExtraData">
|
---|
2902 | <desc>
|
---|
2903 | Sets associated machine-specific extra data.
|
---|
2904 |
|
---|
2905 | If you pass @c NULL as a key @a vaule, the given @a key will be
|
---|
2906 | deleted.
|
---|
2907 |
|
---|
2908 | <note>
|
---|
2909 | Before performing the actual data change, this method will ask all
|
---|
2910 | registered callbacks using the
|
---|
2911 | <link to="IVirtualBoxCallback::onExtraDataCanChange()"/>
|
---|
2912 | notification for a permission. If one of the callbacks refuses the
|
---|
2913 | new value, the change will not be performed.
|
---|
2914 | </note>
|
---|
2915 | <note>
|
---|
2916 | On success, the
|
---|
2917 | <link to="IVirtualBoxCallback::onExtraDataChange()"/> notification
|
---|
2918 | is called to inform all registered callbacks about a successful data
|
---|
2919 | change.
|
---|
2920 | </note>
|
---|
2921 | <note>
|
---|
2922 | This method can be called outside the machine session and therefore
|
---|
2923 | it's a caller's responsibility to handle possible race conditions
|
---|
2924 | when several clients change the same key at the same time.
|
---|
2925 | </note>
|
---|
2926 | </desc>
|
---|
2927 | <param name="key" type="wstring" dir="in">
|
---|
2928 | <desc>Name of the data key to set.</desc>
|
---|
2929 | </param>
|
---|
2930 | <param name="value" type="wstring" dir="in">
|
---|
2931 | <desc>Value to assign to the key.</desc>
|
---|
2932 | </param>
|
---|
2933 | </method>
|
---|
2934 |
|
---|
2935 | <method name="saveSettings">
|
---|
2936 | <desc>
|
---|
2937 | Saves any changes to machine settings made since the session
|
---|
2938 | has been opened or a new machine has been created, or since the
|
---|
2939 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
2940 | For registered machines, new settings become visible to all
|
---|
2941 | other VirtualBox clients after successful invocation of this
|
---|
2942 | method.
|
---|
2943 | <note>
|
---|
2944 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
2945 | notification event after the configuration has been successfully
|
---|
2946 | saved (only for registered machines).
|
---|
2947 | </note>
|
---|
2948 | <note>
|
---|
2949 | Calling this method is only valid on instances returned
|
---|
2950 | by <link to="ISession::machine"/> and on new machines
|
---|
2951 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
2952 | yet registered, or on unregistered machines after calling
|
---|
2953 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
2954 | </note>
|
---|
2955 | </desc>
|
---|
2956 | </method>
|
---|
2957 |
|
---|
2958 | <method name="discardSettings">
|
---|
2959 | <desc>
|
---|
2960 | Discards any changes to the machine settings made since the session
|
---|
2961 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
2962 | or <link to="#discardSettings"/>.
|
---|
2963 | <note>
|
---|
2964 | Calling this method is only valid on instances returned
|
---|
2965 | by <link to="ISession::machine"/> and on new machines
|
---|
2966 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
2967 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
2968 | yet registered, or on unregistered machines after calling
|
---|
2969 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
2970 | </note>
|
---|
2971 | </desc>
|
---|
2972 | </method>
|
---|
2973 |
|
---|
2974 | <method name="deleteSettings">
|
---|
2975 | <desc>
|
---|
2976 | Deletes the settings file of this machine from disk.
|
---|
2977 | The machine must not be registered in order for this operation
|
---|
2978 | to succeed.
|
---|
2979 | <note>
|
---|
2980 | <link to="#settingsModified"/> will return TRUE after this
|
---|
2981 | method successfully returns.
|
---|
2982 | </note>
|
---|
2983 | <note>
|
---|
2984 | Calling this method is only valid on instances returned
|
---|
2985 | by <link to="ISession::machine"/> and on new machines
|
---|
2986 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
2987 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
2988 | yet registered, or on unregistered machines after calling
|
---|
2989 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
2990 | </note>
|
---|
2991 | <note>
|
---|
2992 | The deleted machine settings file can be restored (saved again)
|
---|
2993 | by calling <link to="#saveSettings"/>.
|
---|
2994 | </note>
|
---|
2995 | </desc>
|
---|
2996 | </method>
|
---|
2997 |
|
---|
2998 | <method name="getSnapshot">
|
---|
2999 | <desc>
|
---|
3000 | Returns a snapshot of this machine with the given UUID.
|
---|
3001 | A <tt>null</tt> UUID can be used to obtain the first snapshot
|
---|
3002 | taken on this machine. This is useful if you want to traverse
|
---|
3003 | the whole tree of snapshots starting from the root.
|
---|
3004 | </desc>
|
---|
3005 | <param name="id" type="uuid" dir="in">
|
---|
3006 | <desc>UUID of the snapshot to get</desc>
|
---|
3007 | </param>
|
---|
3008 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
3009 | <desc>Snapshot object with the given UUID.</desc>
|
---|
3010 | </param>
|
---|
3011 | </method>
|
---|
3012 |
|
---|
3013 | <method name="findSnapshot">
|
---|
3014 | <desc>
|
---|
3015 | Returns a snapshot of this machine with the given name.
|
---|
3016 | </desc>
|
---|
3017 | <param name="name" type="wstring" dir="in">
|
---|
3018 | <desc>Name of the snapshot to find</desc>
|
---|
3019 | </param>
|
---|
3020 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
3021 | <desc>Snapshot object with the given name.</desc>
|
---|
3022 | </param>
|
---|
3023 | </method>
|
---|
3024 |
|
---|
3025 | <method name="setCurrentSnapshot">
|
---|
3026 | <desc>
|
---|
3027 | Sets the current snapshot of this machine.
|
---|
3028 | <note>
|
---|
3029 | In the current implementation, this operation is not
|
---|
3030 | implemented.
|
---|
3031 | </note>
|
---|
3032 | </desc>
|
---|
3033 | <param name="id" type="uuid" dir="in">
|
---|
3034 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
3035 | </param>
|
---|
3036 | </method>
|
---|
3037 |
|
---|
3038 | <method name="createSharedFolder">
|
---|
3039 | <desc>
|
---|
3040 | Creates a new permanent shared folder by associating the given logical
|
---|
3041 | name with the given host path, adds it to the collection of shared
|
---|
3042 | folders and starts sharing it. Refer to the description of
|
---|
3043 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
3044 | </desc>
|
---|
3045 | <param name="name" type="wstring" dir="in">
|
---|
3046 | <desc>Unique logical name of the shared folder.</desc>
|
---|
3047 | </param>
|
---|
3048 | <param name="hostPath" type="wstring" dir="in">
|
---|
3049 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
3050 | </param>
|
---|
3051 | <param name="writable" type="boolean" dir="in">
|
---|
3052 | <desc>Whether the share is writable or readonly</desc>
|
---|
3053 | </param>
|
---|
3054 | </method>
|
---|
3055 |
|
---|
3056 | <method name="removeSharedFolder">
|
---|
3057 | <desc>
|
---|
3058 | Removes the permanent shared folder with the given name previously
|
---|
3059 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
3060 | shared folders and stops sharing it.
|
---|
3061 | </desc>
|
---|
3062 | <param name="name" type="wstring" dir="in">
|
---|
3063 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
3064 | </param>
|
---|
3065 | </method>
|
---|
3066 |
|
---|
3067 | <method name="canShowConsoleWindow">
|
---|
3068 | <desc>
|
---|
3069 | Returns @c true if the VM console process can activate the
|
---|
3070 | console window and bring it to foreground on the desktop of
|
---|
3071 | the host PC.
|
---|
3072 | <note>
|
---|
3073 | This method will fail if a session for this machine is not
|
---|
3074 | currently open.
|
---|
3075 | </note>
|
---|
3076 | </desc>
|
---|
3077 | <param name="canShow" type="boolean" dir="return">
|
---|
3078 | <desc>
|
---|
3079 | @c true if the console window can be shown and @c
|
---|
3080 | false otherwise.
|
---|
3081 | </desc>
|
---|
3082 | </param>
|
---|
3083 | </method>
|
---|
3084 |
|
---|
3085 | <method name="showConsoleWindow">
|
---|
3086 | <desc>
|
---|
3087 | Activates the console window and brings it to foreground on
|
---|
3088 | the desktop of the host PC. Many modern window managers on
|
---|
3089 | many platforms implement some sort of focus stealing
|
---|
3090 | prevention logic, so that it may be impossible to activate
|
---|
3091 | a window without the help of the currently active
|
---|
3092 | application. In this case, this method will return a non-zero
|
---|
3093 | identifier that represents the top-level window of the VM
|
---|
3094 | console process. The caller, if it represents a currently
|
---|
3095 | active process, is responsible to use this identifier (in a
|
---|
3096 | platform-dependent manner) to perform actual window
|
---|
3097 | activation.
|
---|
3098 | <note>
|
---|
3099 | This method will fail if a session for this machine is not
|
---|
3100 | currently open.
|
---|
3101 | </note>
|
---|
3102 | </desc>
|
---|
3103 | <param name="winId" type="unsigned long long" dir="return">
|
---|
3104 | <desc>
|
---|
3105 | Platform-dependent identifier of the top-level VM console
|
---|
3106 | window, or zero if this method has performed all actions
|
---|
3107 | necessary to implement the <i>show window</i> semantics for
|
---|
3108 | the given platform and/or VirtualBox front-end.
|
---|
3109 | </desc>
|
---|
3110 | </param>
|
---|
3111 | </method>
|
---|
3112 |
|
---|
3113 | </interface>
|
---|
3114 |
|
---|
3115 | <!--
|
---|
3116 | // IConsole
|
---|
3117 | /////////////////////////////////////////////////////////////////////////
|
---|
3118 | -->
|
---|
3119 |
|
---|
3120 | <interface
|
---|
3121 | name="IConsoleCallback" extends="$unknown"
|
---|
3122 | uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
|
---|
3123 | wsmap="suppress"
|
---|
3124 | >
|
---|
3125 |
|
---|
3126 | <method name="onMousePointerShapeChange">
|
---|
3127 | <desc>
|
---|
3128 | Notification when the guest mouse pointer shape has
|
---|
3129 | changed. The new shape data is given.
|
---|
3130 | </desc>
|
---|
3131 | <param name="visible" type="boolean" dir="in">
|
---|
3132 | <desc>
|
---|
3133 | Flag whether the pointer is visible.
|
---|
3134 | </desc>
|
---|
3135 | </param>
|
---|
3136 | <param name="alpha" type="boolean" dir="in">
|
---|
3137 | <desc>
|
---|
3138 | Flag whether the pointer has an alpha channel.
|
---|
3139 | </desc>
|
---|
3140 | </param>
|
---|
3141 | <param name="xHot" type="unsigned long" dir="in">
|
---|
3142 | <desc>
|
---|
3143 | The pointer hot spot x coordinate.
|
---|
3144 | </desc>
|
---|
3145 | </param>
|
---|
3146 | <param name="yHot" type="unsigned long" dir="in">
|
---|
3147 | <desc>
|
---|
3148 | The pointer hot spot y coordinate.
|
---|
3149 | </desc>
|
---|
3150 | </param>
|
---|
3151 | <param name="width" type="unsigned long" dir="in">
|
---|
3152 | <desc>
|
---|
3153 | Width of the pointer shape in pixels.
|
---|
3154 | </desc>
|
---|
3155 | </param>
|
---|
3156 | <param name="height" type="unsigned long" dir="in">
|
---|
3157 | <desc>
|
---|
3158 | Height of the pointer shape in pixels.
|
---|
3159 | </desc>
|
---|
3160 | </param>
|
---|
3161 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
3162 | <desc>
|
---|
3163 | Address of the shape buffer.
|
---|
3164 |
|
---|
3165 | The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
|
---|
3166 |
|
---|
3167 | For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
|
---|
3168 | For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
3169 |
|
---|
3170 | AND mask presents for pointers with alpha channel, so if the callback does not
|
---|
3171 | support alpha, the pointer could be displayed as a normal color pointer.
|
---|
3172 |
|
---|
3173 | The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
|
---|
3174 | therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
|
---|
3175 | end of any scanline are undefined.
|
---|
3176 |
|
---|
3177 | The XOR mask follows the AND mask on the next 4 bytes aligned offset:
|
---|
3178 | <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>
|
---|
3179 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
3180 | XOR mask scanlines have no gap between them and size of XOR mask is:
|
---|
3181 | <tt>cXor = width * 4 * height</tt>.
|
---|
3182 |
|
---|
3183 | <note>
|
---|
3184 | If 'shape' is equal to 0, only pointer visibility is being changed.
|
---|
3185 | </note>
|
---|
3186 | </desc>
|
---|
3187 | </param>
|
---|
3188 | </method>
|
---|
3189 |
|
---|
3190 | <method name="onMouseCapabilityChange">
|
---|
3191 | <desc>
|
---|
3192 | Notification when the mouse capabilities reported by the
|
---|
3193 | guest have changed. The new capabilities are passed.
|
---|
3194 | </desc>
|
---|
3195 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
3196 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
3197 | </method>
|
---|
3198 |
|
---|
3199 | <method name="onKeyboardLedsChange">
|
---|
3200 | <desc>
|
---|
3201 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
3202 | to alter the state of the keyboard LEDs.
|
---|
3203 | </desc>
|
---|
3204 | <param name="numLock" type="boolean" dir="in"/>
|
---|
3205 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
3206 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
3207 | </method>
|
---|
3208 |
|
---|
3209 | <method name="onStateChange">
|
---|
3210 | <desc>
|
---|
3211 | Notification when the execution state of the machine has changed.
|
---|
3212 | The new state will be given.
|
---|
3213 | </desc>
|
---|
3214 | <param name="state" type="MachineState" dir="in"/>
|
---|
3215 | </method>
|
---|
3216 |
|
---|
3217 | <method name="onAdditionsStateChange">
|
---|
3218 | <desc>
|
---|
3219 | Notification when a Guest Additions property changes.
|
---|
3220 | Interested callees should query IGuest attributes to
|
---|
3221 | find out what has changed.
|
---|
3222 | </desc>
|
---|
3223 | </method>
|
---|
3224 |
|
---|
3225 | <method name="onDVDDriveChange">
|
---|
3226 | <desc>
|
---|
3227 | Notification when a property of the
|
---|
3228 | virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
|
---|
3229 | Interested callees should use IDVDDrive methods to find out what has
|
---|
3230 | changed.
|
---|
3231 | </desc>
|
---|
3232 | </method>
|
---|
3233 |
|
---|
3234 | <method name="onFloppyDriveChange">
|
---|
3235 | <desc>
|
---|
3236 | Notification when a property of the
|
---|
3237 | virtual <link to="IMachine::FloppyDrive">floppy drive</link> changes.
|
---|
3238 | Interested callees should use IFloppyDrive methods to find out what
|
---|
3239 | has changed.
|
---|
3240 | </desc>
|
---|
3241 | </method>
|
---|
3242 |
|
---|
3243 | <method name="onNetworkAdapterChange">
|
---|
3244 | <desc>
|
---|
3245 | Notification when a property of one of the
|
---|
3246 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
3247 | changes. Interested callees should use INetworkAdapter methods and
|
---|
3248 | attributes to find out what has changed.
|
---|
3249 | </desc>
|
---|
3250 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
3251 | <desc>Network adapter that is subject to change.</desc>
|
---|
3252 | </param>
|
---|
3253 | </method>
|
---|
3254 |
|
---|
3255 | <method name="onSerialPortChange">
|
---|
3256 | <desc>
|
---|
3257 | Notification when a property of one of the
|
---|
3258 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
3259 | Interested callees should use ISerialPort methods and attributes
|
---|
3260 | to find out what has changed.
|
---|
3261 | </desc>
|
---|
3262 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
3263 | <desc>Serial port that is subject to change.</desc>
|
---|
3264 | </param>
|
---|
3265 | </method>
|
---|
3266 |
|
---|
3267 | <method name="onParallelPortChange">
|
---|
3268 | <desc>
|
---|
3269 | Notification when a property of one of the
|
---|
3270 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
3271 | changes. Interested callees should use ISerialPort methods and
|
---|
3272 | attributes to find out what has changed.
|
---|
3273 | </desc>
|
---|
3274 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
3275 | <desc>Parallel port that is subject to change.</desc>
|
---|
3276 | </param>
|
---|
3277 | </method>
|
---|
3278 |
|
---|
3279 | <method name="onVRDPServerChange">
|
---|
3280 | <desc>
|
---|
3281 | Notification when a property of the
|
---|
3282 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
3283 | Interested callees should use IVRDPServer methods and attributes to
|
---|
3284 | find out what has changed.
|
---|
3285 | </desc>
|
---|
3286 | </method>
|
---|
3287 |
|
---|
3288 | <method name="onUSBControllerChange">
|
---|
3289 | <desc>
|
---|
3290 | Notification when a property of the virtual
|
---|
3291 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
3292 | Interested callees should use IUSBController methods and attributes to
|
---|
3293 | find out what has changed.
|
---|
3294 | </desc>
|
---|
3295 | </method>
|
---|
3296 |
|
---|
3297 | <method name="onUSBDeviceStateChange">
|
---|
3298 | <desc>
|
---|
3299 | Notification when a USB device is attached to or detached from
|
---|
3300 | the virtual USB controller.
|
---|
3301 |
|
---|
3302 | This notification is sent as a result of the indirect
|
---|
3303 | request to attach the device because it matches one of the
|
---|
3304 | machine USB filters, or as a result of the direct request
|
---|
3305 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
3306 | <link to="IConsole::detachUSBDevice"/>.
|
---|
3307 |
|
---|
3308 | This notification is sent in case of both a succeeded and a
|
---|
3309 | failed request completion. When the request succeeds, the @a
|
---|
3310 | error parameter is @c null, and the given device has been
|
---|
3311 | already added to (when @a attached is @c true) or removed from
|
---|
3312 | (when @a attached is @c false) the collection represented by
|
---|
3313 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
3314 | doesn't change and the @a error perameter represents the error
|
---|
3315 | message describing the failure.
|
---|
3316 |
|
---|
3317 | </desc>
|
---|
3318 | <param name="device" type="IUSBDevice" dir="in">
|
---|
3319 | <desc>Device that is subject to state change.</desc>
|
---|
3320 | </param>
|
---|
3321 | <param name="attached" type="boolean" dir="in">
|
---|
3322 | <desc>
|
---|
3323 | <tt>true</tt> if the device was attached
|
---|
3324 | and <tt>false</tt> otherwise.
|
---|
3325 | </desc>
|
---|
3326 | </param>
|
---|
3327 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
3328 | <desc>
|
---|
3329 | <tt>null</tt> on success or an error message object on
|
---|
3330 | failure.
|
---|
3331 | </desc>
|
---|
3332 | </param>
|
---|
3333 | </method>
|
---|
3334 |
|
---|
3335 | <method name="onSharedFolderChange">
|
---|
3336 | <desc>
|
---|
3337 | Notification when a shared folder is added or removed.
|
---|
3338 | The @a scope argument defines one of three scopes:
|
---|
3339 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
3340 | (<link to="Scope::GlobalScope">GlobalScope</link>),
|
---|
3341 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
3342 | the machine (<link to="Scope::MachineScope">MachineScope</link>)
|
---|
3343 | or <link to="IConsole::sharedFolders">transient shared folders</link>
|
---|
3344 | of the machine
|
---|
3345 | (<link to="Scope::SessionScope">SessionScope</link>). Interested
|
---|
3346 | callees should use query the corresponding collections to find out
|
---|
3347 | what has changed.
|
---|
3348 | </desc>
|
---|
3349 | <param name="scope" type="Scope" dir="in">
|
---|
3350 | <desc>Sope of the notification.</desc>
|
---|
3351 | </param>
|
---|
3352 | </method>
|
---|
3353 |
|
---|
3354 | <method name="onRuntimeError">
|
---|
3355 | <desc>
|
---|
3356 | Notification when an error happens during the virtual
|
---|
3357 | machine execution.
|
---|
3358 |
|
---|
3359 | There are three kinds of runtime errors:
|
---|
3360 | <ul>
|
---|
3361 | <li><i>fatal</i></li>
|
---|
3362 | <li><i>non-fatal with retry</i></li>
|
---|
3363 | <li><i>non-fatal warnings</i></li>
|
---|
3364 | </ul>
|
---|
3365 |
|
---|
3366 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
3367 | to <tt>true</tt>. In case of fatal errors, the virtual machine
|
---|
3368 | execution is always paused before calling this notification, and
|
---|
3369 | the notification handler is supposed either to immediately save
|
---|
3370 | the virtual machine state using <link to="IConsole::saveState()"/>
|
---|
3371 | or power it off using <link to="IConsole::powerDown()"/>.
|
---|
3372 | Resuming the execution can lead to unpredictable results.
|
---|
3373 |
|
---|
3374 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
3375 | @a fatal parameter set to <tt>false</tt>. If the virtual machine
|
---|
3376 | is in the Paused state by the time the error notification is
|
---|
3377 | received, it means that the user can <i>try to resume</i> the machine
|
---|
3378 | execution after attempting to solve the probem that caused the
|
---|
3379 | error. In this case, the notification handler is supposed
|
---|
3380 | to show an appropriate message to the user (depending on the
|
---|
3381 | value of the @a id parameter) that offers several actions such
|
---|
3382 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
3383 | wants to retry, the notification handler should continue
|
---|
3384 | the machine execution using the <link to="IConsole::resume()"/>
|
---|
3385 | call. If the machine execution is not Paused during this
|
---|
3386 | notification, then it means this notification is a <i>warning</i>
|
---|
3387 | (for example, about a fatal condition that can happen very soon);
|
---|
3388 | no immediate action is required from the user, the machine
|
---|
3389 | continues its normal execution.
|
---|
3390 |
|
---|
3391 | Note that in either case the notification handler
|
---|
3392 | <b>must not</b> perform any action directly on a thread
|
---|
3393 | where this notification is called. Everything it is allowed to
|
---|
3394 | do is to post a message to another thread that will then talk
|
---|
3395 | to the user and take the corresponding action.
|
---|
3396 |
|
---|
3397 | Currently, the following error identificators are known:
|
---|
3398 | <ul>
|
---|
3399 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
3400 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
3401 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
3402 | </ul>
|
---|
3403 |
|
---|
3404 | <note>
|
---|
3405 | This notification is not designed to be implemented by
|
---|
3406 | more than one callback at a time. If you have multiple
|
---|
3407 | IConsoleCallback instances registered on the given
|
---|
3408 | IConsole object, make sure you simply do nothing but
|
---|
3409 | return @c S_OK from all but one of them that does actual
|
---|
3410 | user notification and performs necessary actions.
|
---|
3411 | </note>
|
---|
3412 |
|
---|
3413 | </desc>
|
---|
3414 | <param name="fatal" type="boolean" dir="in">
|
---|
3415 | <desc>Whether the error is fatal or not</desc>
|
---|
3416 | </param>
|
---|
3417 | <param name="id" type="wstring" dir="in">
|
---|
3418 | <desc>Error identificator</desc>
|
---|
3419 | </param>
|
---|
3420 | <param name="message" type="wstring" dir="in">
|
---|
3421 | <desc>Optional error message</desc>
|
---|
3422 | </param>
|
---|
3423 | </method>
|
---|
3424 |
|
---|
3425 | <method name="onCanShowWindow">
|
---|
3426 | <desc>
|
---|
3427 | Notification when a call to
|
---|
3428 | <link to="IMachine::canShowConsoleWindow()"/> is made by a
|
---|
3429 | front-end to check if a subsequent call to
|
---|
3430 | <link to="IMachine::showConsoleWindow()"/> can succeed.
|
---|
3431 |
|
---|
3432 | The callee should give an answer appropriate to the current
|
---|
3433 | machine state in the @a canShow argument. This answer must
|
---|
3434 | remain valid at least until the next
|
---|
3435 | <link to="IConsole::state">machine state</link> change.
|
---|
3436 |
|
---|
3437 | <note>
|
---|
3438 | This notification is not designed to be implemented by
|
---|
3439 | more than one callback at a time. If you have multiple
|
---|
3440 | IConsoleCallback instances registered on the given
|
---|
3441 | IConsole object, make sure you simply do nothing but
|
---|
3442 | return @c true and @c S_OK from all but one of them that
|
---|
3443 | actually manages console window activation.
|
---|
3444 | </note>
|
---|
3445 | </desc>
|
---|
3446 | <param name="canShow" type="boolean" dir="return">
|
---|
3447 | <desc>
|
---|
3448 | @c true if the console window can be shown and @c
|
---|
3449 | false otherwise.
|
---|
3450 | </desc>
|
---|
3451 | </param>
|
---|
3452 | </method>
|
---|
3453 |
|
---|
3454 | <method name="onShowWindow">
|
---|
3455 | <desc>
|
---|
3456 | Notification when a call to
|
---|
3457 | <link to="IMachine::showConsoleWindow()"/>
|
---|
3458 | requests the console window to be activated and brought to
|
---|
3459 | foreground on the desktop of the host PC.
|
---|
3460 |
|
---|
3461 | This notification should cause the VM console process to
|
---|
3462 | perform the requested action as described above. If it is
|
---|
3463 | impossible to do it at a time of this notification, this
|
---|
3464 | method should return a failure.
|
---|
3465 |
|
---|
3466 | Note that many modern window managers on many platforms
|
---|
3467 | implement some sort of focus stealing prevention logic, so
|
---|
3468 | that it may be impossible to activate a window without the
|
---|
3469 | help of the currently active application (which is supposedly
|
---|
3470 | an initiator of this notification). In this case, this method
|
---|
3471 | must return a non-zero identifier that represents the
|
---|
3472 | top-level window of the VM console process. The caller, if it
|
---|
3473 | represents a currently active process, is responsible to use
|
---|
3474 | this identifier (in a platform-dependent manner) to perform
|
---|
3475 | actual window activation.
|
---|
3476 |
|
---|
3477 | This method must set @a winId to zero if it has performed all
|
---|
3478 | actions necessary to complete the request and the console
|
---|
3479 | window is now active and in foreground, to indicate that no
|
---|
3480 | further action is required on the caller's side.
|
---|
3481 |
|
---|
3482 | <note>
|
---|
3483 | This notification is not designed to be implemented by
|
---|
3484 | more than one callback at a time. If you have multiple
|
---|
3485 | IConsoleCallback instances registered on the given
|
---|
3486 | IConsole object, make sure you simply do nothing but
|
---|
3487 | return@c S_OK from all but one of them that actually
|
---|
3488 | manages console window activation.
|
---|
3489 | </note>
|
---|
3490 | </desc>
|
---|
3491 | <param name="winId" type="unsigned long long" dir="return">
|
---|
3492 | <desc>
|
---|
3493 | Platform-dependent identifier of the top-level VM console
|
---|
3494 | window, or zero if this method has performed all actions
|
---|
3495 | necessary to implement the <i>show window</i> semantics for
|
---|
3496 | the given platform and/or this VirtualBox front-end.
|
---|
3497 | </desc>
|
---|
3498 | </param>
|
---|
3499 | </method>
|
---|
3500 |
|
---|
3501 | </interface>
|
---|
3502 |
|
---|
3503 | <interface
|
---|
3504 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
3505 | uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
|
---|
3506 | wsmap="struct"
|
---|
3507 | >
|
---|
3508 | <attribute name="active" type="boolean" readonly="yes">
|
---|
3509 | <desc>
|
---|
3510 | Whether the remote display connection is active.
|
---|
3511 | </desc>
|
---|
3512 | </attribute>
|
---|
3513 |
|
---|
3514 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
3515 | <desc>
|
---|
3516 | How many times a client connected.
|
---|
3517 | </desc>
|
---|
3518 | </attribute>
|
---|
3519 |
|
---|
3520 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
3521 | <desc>
|
---|
3522 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
3523 | </desc>
|
---|
3524 | </attribute>
|
---|
3525 |
|
---|
3526 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
3527 | <desc>
|
---|
3528 | When the last connection was terminated or the current time, if
|
---|
3529 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
3530 | </desc>
|
---|
3531 | </attribute>
|
---|
3532 |
|
---|
3533 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
3534 | <desc>
|
---|
3535 | How many bytes were sent in last or current, if still active, connection.
|
---|
3536 | </desc>
|
---|
3537 | </attribute>
|
---|
3538 |
|
---|
3539 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
3540 | <desc>
|
---|
3541 | How many bytes were sent in all connections.
|
---|
3542 | </desc>
|
---|
3543 | </attribute>
|
---|
3544 |
|
---|
3545 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
3546 | <desc>
|
---|
3547 | How many bytes were received in last or current, if still active, connection.
|
---|
3548 | </desc>
|
---|
3549 | </attribute>
|
---|
3550 |
|
---|
3551 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
3552 | <desc>
|
---|
3553 | How many bytes were received in all connections.
|
---|
3554 | </desc>
|
---|
3555 | </attribute>
|
---|
3556 |
|
---|
3557 | <attribute name="user" type="wstring" readonly="yes">
|
---|
3558 | <desc>
|
---|
3559 | Login user name supplied by the client.
|
---|
3560 | </desc>
|
---|
3561 | </attribute>
|
---|
3562 |
|
---|
3563 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
3564 | <desc>
|
---|
3565 | Login domain name supplied by the client.
|
---|
3566 | </desc>
|
---|
3567 | </attribute>
|
---|
3568 |
|
---|
3569 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
3570 | <desc>
|
---|
3571 | The client name supplied by the client.
|
---|
3572 | </desc>
|
---|
3573 | </attribute>
|
---|
3574 |
|
---|
3575 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
3576 | <desc>
|
---|
3577 | The IP address of the client.
|
---|
3578 | </desc>
|
---|
3579 | </attribute>
|
---|
3580 |
|
---|
3581 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
3582 | <desc>
|
---|
3583 | The client software version number.
|
---|
3584 | </desc>
|
---|
3585 | </attribute>
|
---|
3586 |
|
---|
3587 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
3588 | <desc>
|
---|
3589 | Public key exchange method used when connection was established.
|
---|
3590 | Values: 0 - RDP4 public key exchange scheme.
|
---|
3591 | 1 - X509 sertificates were sent to client.
|
---|
3592 | </desc>
|
---|
3593 | </attribute>
|
---|
3594 |
|
---|
3595 | </interface>
|
---|
3596 |
|
---|
3597 | <interface
|
---|
3598 | name="IConsole" extends="$unknown"
|
---|
3599 | uuid="d5a1cbda-f5d7-4824-9afe-d640c94c7dcf"
|
---|
3600 | wsmap="managed"
|
---|
3601 | >
|
---|
3602 | <desc>
|
---|
3603 | The IConsole interface represents an interface to control virtual
|
---|
3604 | machine execution.
|
---|
3605 |
|
---|
3606 | The console object that implements the IConsole interface is obtained
|
---|
3607 | from a session object after the session for the given machine has been
|
---|
3608 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
3609 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
3610 | <link to="IVirtualBox::openExistingSession"/> methdods.
|
---|
3611 |
|
---|
3612 | Methods of the IConsole interface allow the caller to query the current
|
---|
3613 | virtual machine execution state, pause the machine or power it down, save
|
---|
3614 | the machine state or take a snapshot, attach and detach removable media
|
---|
3615 | and so on.
|
---|
3616 |
|
---|
3617 | <see>ISession</see>
|
---|
3618 | </desc>
|
---|
3619 |
|
---|
3620 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
3621 | <desc>
|
---|
3622 | Machine object this console is sessioned with.
|
---|
3623 | <note>
|
---|
3624 | This is a convenience property, it has the same value as
|
---|
3625 | <link to="ISession::machine"/> of the corresponding session
|
---|
3626 | object.
|
---|
3627 | </note>
|
---|
3628 | </desc>
|
---|
3629 | </attribute>
|
---|
3630 |
|
---|
3631 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
3632 | <desc>
|
---|
3633 | Current execution state of the machine.
|
---|
3634 | <note>
|
---|
3635 | This property always returns the same value as the corresponding
|
---|
3636 | property of the IMachine object this console is sessioned with.
|
---|
3637 | For the process that owns (executes) the VM, this is the
|
---|
3638 | preferable way of querying the VM state, because no IPC
|
---|
3639 | calls are made.
|
---|
3640 | </note>
|
---|
3641 | </desc>
|
---|
3642 | </attribute>
|
---|
3643 |
|
---|
3644 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
3645 | <desc>Guest object.</desc>
|
---|
3646 | </attribute>
|
---|
3647 |
|
---|
3648 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
3649 | <desc>
|
---|
3650 | Virtual keyboard object.
|
---|
3651 | <note>
|
---|
3652 | If the machine is not running, any attempt to use
|
---|
3653 | the returned object will result in an error.
|
---|
3654 | </note>
|
---|
3655 | </desc>
|
---|
3656 | </attribute>
|
---|
3657 |
|
---|
3658 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
3659 | <desc>
|
---|
3660 | Virtual mouse object.
|
---|
3661 | <note>
|
---|
3662 | If the machine is not running, any attempt to use
|
---|
3663 | the returned object will result in an error.
|
---|
3664 | </note>
|
---|
3665 | </desc>
|
---|
3666 | </attribute>
|
---|
3667 |
|
---|
3668 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
3669 | <desc>Virtual display object.
|
---|
3670 | <note>
|
---|
3671 | If the machine is not running, any attempt to use
|
---|
3672 | the returned object will result in an error.
|
---|
3673 | </note>
|
---|
3674 | </desc>
|
---|
3675 | </attribute>
|
---|
3676 |
|
---|
3677 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
3678 | <desc>Debugging interface.</desc>
|
---|
3679 | </attribute>
|
---|
3680 |
|
---|
3681 | <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
|
---|
3682 | <desc>
|
---|
3683 | Collection of USB devices currently attached to the virtual
|
---|
3684 | USB controller.
|
---|
3685 | <note>
|
---|
3686 | The collection is empty if the machine is not running.
|
---|
3687 | </note>
|
---|
3688 | </desc>
|
---|
3689 | </attribute>
|
---|
3690 |
|
---|
3691 | <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
3692 | <desc>
|
---|
3693 | List of USB devices currently attached to the remote VRDP client.
|
---|
3694 | Once a new device is physically attached to the remote host computer,
|
---|
3695 | it appears in this list and remains there until detached.
|
---|
3696 | </desc>
|
---|
3697 | </attribute>
|
---|
3698 |
|
---|
3699 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
3700 | <desc>
|
---|
3701 | Collection of shared folders for the current session. These folders
|
---|
3702 | are called transient shared folders because they are available to the
|
---|
3703 | guest OS running inside the associated virtual machine only for the
|
---|
3704 | duration of the session (as opposed to
|
---|
3705 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
3706 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
3707 | these folders are automatically discarded.
|
---|
3708 |
|
---|
3709 | New shared folders are added to the collection using
|
---|
3710 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
3711 | removed using <link to="#removeSharedFolder"/>.
|
---|
3712 | </desc>
|
---|
3713 | </attribute>
|
---|
3714 |
|
---|
3715 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
3716 | <desc>
|
---|
3717 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
3718 | </desc>
|
---|
3719 | </attribute>
|
---|
3720 |
|
---|
3721 | <method name="powerUp">
|
---|
3722 | <desc>
|
---|
3723 | Starts the virtual machine execution using the current machine
|
---|
3724 | state (i.e. its current execution state, current settings and
|
---|
3725 | current hard disks).
|
---|
3726 |
|
---|
3727 | If the machine is powered off or aborted, the execution will
|
---|
3728 | start from the beginning (as if the real hardware were just
|
---|
3729 | powered on).
|
---|
3730 |
|
---|
3731 | If the machine is in the <link to="MachineState::Saved"/> state,
|
---|
3732 | it will continue its execution the point where the state has
|
---|
3733 | beem saved.
|
---|
3734 |
|
---|
3735 | <see>#saveState</see>
|
---|
3736 | </desc>
|
---|
3737 | <param name="progress" type="IProgress" dir="return">
|
---|
3738 | <desc>Progress object to track the operation completion.</desc>
|
---|
3739 | </param>
|
---|
3740 | </method>
|
---|
3741 |
|
---|
3742 | <method name="powerDown">
|
---|
3743 | <desc>
|
---|
3744 | Stops the virtual machine execution.
|
---|
3745 | After this operation completes, the machine will go to the
|
---|
3746 | PoweredOff state.
|
---|
3747 | </desc>
|
---|
3748 | </method>
|
---|
3749 |
|
---|
3750 | <method name="reset">
|
---|
3751 | <desc>Resets the virtual machine.</desc>
|
---|
3752 | </method>
|
---|
3753 |
|
---|
3754 | <method name="pause">
|
---|
3755 | <desc>Pauses the virtual machine execution.</desc>
|
---|
3756 | </method>
|
---|
3757 |
|
---|
3758 | <method name="resume">
|
---|
3759 | <desc>Resumes the virtual machine execution.</desc>
|
---|
3760 | </method>
|
---|
3761 |
|
---|
3762 | <method name="powerButton">
|
---|
3763 | <desc>Send the ACPI power button event to the guest.</desc>
|
---|
3764 | </method>
|
---|
3765 |
|
---|
3766 | <method name="sleepButton">
|
---|
3767 | <desc>Send the ACPI sleep button event to the guest.</desc>
|
---|
3768 | </method>
|
---|
3769 |
|
---|
3770 | <method name="saveState">
|
---|
3771 | <desc>
|
---|
3772 | Saves the current execution state of a running virtual machine
|
---|
3773 | and stops its executiuon.
|
---|
3774 |
|
---|
3775 | After this operation completes, the machine will go to the
|
---|
3776 | Saved state. Next time it is powered up, this state will
|
---|
3777 | be restored and the machine will continue its execution from
|
---|
3778 | the place where it was saved.
|
---|
3779 |
|
---|
3780 | This operation differs from taking a snapshot to the effect
|
---|
3781 | that it doesn't create new differencing hard disks. Also, once
|
---|
3782 | the machine is powered up from the state saved using this method,
|
---|
3783 | the saved state is deleted, so it will be impossible to return
|
---|
3784 | to this state later.
|
---|
3785 |
|
---|
3786 | <note>
|
---|
3787 | On success, this method implicitly calls
|
---|
3788 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
3789 | settings (including runtime changes to the DVD drive, etc.).
|
---|
3790 | Together with the impossibility to change any VM settings when it is
|
---|
3791 | in the Saved state, this guarantees the adequate hardware
|
---|
3792 | configuration of the machine when it is restored from the saved
|
---|
3793 | state file.
|
---|
3794 | </note>
|
---|
3795 |
|
---|
3796 | <note>
|
---|
3797 | The machine must be in the Running or Paused state, otherwise
|
---|
3798 | the operation will fail.
|
---|
3799 | </note>
|
---|
3800 |
|
---|
3801 | <see><link to="#takeSnapshot"/></see>
|
---|
3802 | </desc>
|
---|
3803 | <param name="progress" type="IProgress" dir="return">
|
---|
3804 | <desc>Progress object to track the operation completion.</desc>
|
---|
3805 | </param>
|
---|
3806 | </method>
|
---|
3807 |
|
---|
3808 | <method name="adoptSavedState">
|
---|
3809 | <desc>
|
---|
3810 | Associates the given saved state file to the virtual machine.
|
---|
3811 |
|
---|
3812 | On success, the machine will go to the Saved state. Next time it is
|
---|
3813 | powered up, it will be restored from the adopted saved state and
|
---|
3814 | continue execution from the place where the saved state file was
|
---|
3815 | created.
|
---|
3816 |
|
---|
3817 | The specified saved state file path may be full or relative to the
|
---|
3818 | folder the VM normally saves the state to (usually,
|
---|
3819 | <link to="IMachine::snapshotFolder"/>).
|
---|
3820 |
|
---|
3821 | <note>
|
---|
3822 | It's a caller's responsibility to make sure the given saved state
|
---|
3823 | file is compatible with the settings of this virtual machine that
|
---|
3824 | represent its virtual hardware (memory size, hard disk configuration
|
---|
3825 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
3826 | is undefined.
|
---|
3827 | </note>
|
---|
3828 | </desc>
|
---|
3829 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3830 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3831 | </param>
|
---|
3832 | </method>
|
---|
3833 |
|
---|
3834 | <method name="discardSavedState">
|
---|
3835 | <desc>
|
---|
3836 | Discards (deletes) the saved state of the virtual machine
|
---|
3837 | previously created by <link to="#saveState"/>. Next time the
|
---|
3838 | machine is powered up, a clean boot will occur.
|
---|
3839 | <note>
|
---|
3840 | This operation is equivalent to resetting or powering off
|
---|
3841 | the machine without doing a proper shutdown in the guest OS.
|
---|
3842 | </note>
|
---|
3843 | </desc>
|
---|
3844 | </method>
|
---|
3845 |
|
---|
3846 | <method name="getDeviceActivity">
|
---|
3847 | <desc>
|
---|
3848 | Gets the current activity type of a given device or device group.
|
---|
3849 | </desc>
|
---|
3850 | <param name="type" type="DeviceType" dir="in"/>
|
---|
3851 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
3852 | </method>
|
---|
3853 |
|
---|
3854 | <method name="attachUSBDevice">
|
---|
3855 | <desc>
|
---|
3856 | Attaches a host USB device with the given UUID to the
|
---|
3857 | USB controller of the virtual machine.
|
---|
3858 |
|
---|
3859 | The device needs to be in one of the following states:
|
---|
3860 | <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
|
---|
3861 | <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link> or
|
---|
3862 | <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>,
|
---|
3863 | otherwise an error is immediately returned.
|
---|
3864 |
|
---|
3865 | When the device state is
|
---|
3866 | <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
|
---|
3867 | an error may also be returned if the host computer
|
---|
3868 | refuses to release it for some reason.
|
---|
3869 |
|
---|
3870 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
3871 | </desc>
|
---|
3872 | <param name="id" type="uuid" dir="in">
|
---|
3873 | <desc>UUID of the host USB device to attach.</desc>
|
---|
3874 | </param>
|
---|
3875 | </method>
|
---|
3876 |
|
---|
3877 | <method name="detachUSBDevice">
|
---|
3878 | <desc>
|
---|
3879 | Detaches an USB device with the given UUID from the USB controller
|
---|
3880 | oif the virtual machine.
|
---|
3881 |
|
---|
3882 | After this method succeeds, the VirtualBox server reinitiates
|
---|
3883 | all USB filters as if the device were just physically attached
|
---|
3884 | to the host, but filters of this machine are ignored to avoid
|
---|
3885 | a possible automatic reattachment.
|
---|
3886 |
|
---|
3887 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
3888 | </desc>
|
---|
3889 | <param name="id" type="uuid" dir="in">
|
---|
3890 | <desc>UUID of the USB device to detach.</desc>
|
---|
3891 | </param>
|
---|
3892 | <param name="device" type="IUSBDevice" dir="return">
|
---|
3893 | <desc>Detached USB device.</desc>
|
---|
3894 | </param>
|
---|
3895 | </method>
|
---|
3896 |
|
---|
3897 | <method name="createSharedFolder">
|
---|
3898 | <desc>
|
---|
3899 | Creates a transient new shared folder by associating the given logical
|
---|
3900 | name with the given host path, adds it to the collection of shared
|
---|
3901 | folders and starts sharing it. Refer to the description of
|
---|
3902 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
3903 | </desc>
|
---|
3904 | <param name="name" type="wstring" dir="in">
|
---|
3905 | <desc>Unique logical name of the shared folder.</desc>
|
---|
3906 | </param>
|
---|
3907 | <param name="hostPath" type="wstring" dir="in">
|
---|
3908 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
3909 | </param>
|
---|
3910 | <param name="writable" type="boolean" dir="in">
|
---|
3911 | <desc>Whether the share is writable or readonly</desc>
|
---|
3912 | </param>
|
---|
3913 | </method>
|
---|
3914 |
|
---|
3915 | <method name="removeSharedFolder">
|
---|
3916 | <desc>
|
---|
3917 | Removes a transient shared folder with the given name previously
|
---|
3918 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
3919 | shared folders and stops sharing it.
|
---|
3920 | </desc>
|
---|
3921 | <param name="name" type="wstring" dir="in">
|
---|
3922 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
3923 | </param>
|
---|
3924 | </method>
|
---|
3925 |
|
---|
3926 | <method name="takeSnapshot">
|
---|
3927 | <desc>
|
---|
3928 | Saves the current execution state and all settings of the
|
---|
3929 | machine and creates differencing images for all
|
---|
3930 | normal (non-independent) hard disks.
|
---|
3931 |
|
---|
3932 | This method can be called for a PoweredOff, Saved, Running or
|
---|
3933 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
3934 | offline <link to="ISnapshot">snapshot</link> is created,
|
---|
3935 | in all other cases -- an online snapshot.
|
---|
3936 |
|
---|
3937 | The taken snapshot is always based on the
|
---|
3938 | <link to="IMachine::currentSnapshot">current
|
---|
3939 | snapshot</link> of the associated virtual machine and becomes
|
---|
3940 | a new current snapshot.
|
---|
3941 |
|
---|
3942 | <note>
|
---|
3943 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
3944 | save all current machine settings before taking an offline snapshot.
|
---|
3945 | </note>
|
---|
3946 |
|
---|
3947 | <see>ISnapshot, <link to="#saveState"/></see>
|
---|
3948 | </desc>
|
---|
3949 | <param name="name" type="wstring" dir="in">
|
---|
3950 | <desc>Short name for the snapshot.</desc>
|
---|
3951 | </param>
|
---|
3952 | <param name="description" type="wstring" dir="in">
|
---|
3953 | <desc>Optional description of the snapshot.</desc>
|
---|
3954 | </param>
|
---|
3955 | <param name="progress" type="IProgress" dir="return">
|
---|
3956 | <desc>Progress object to track the operation completion.</desc>
|
---|
3957 | </param>
|
---|
3958 | </method>
|
---|
3959 |
|
---|
3960 | <method name="discardSnapshot">
|
---|
3961 | <desc>
|
---|
3962 |
|
---|
3963 | Starts discarding the specified snapshot. The execution state
|
---|
3964 | and settings of the associated machine stored in the snapshot
|
---|
3965 | will be deleted. The contents of all differencing hard disks of
|
---|
3966 | this snapshot will be merged with the contents of their
|
---|
3967 | dependent child hard disks to keep the, disks valid (in other
|
---|
3968 | words, all changes represented by hard disks being discarded
|
---|
3969 | will be propagated to their child hard disks). After that, this
|
---|
3970 | snapshot's differencing hard disks will be deleted. The parent
|
---|
3971 | of this snapshot will become a new parent for all its child
|
---|
3972 | snapshots.
|
---|
3973 |
|
---|
3974 | If the discarded snapshot is the current one, its parent
|
---|
3975 | snapshot will become a new current snapshot. The current machine
|
---|
3976 | state is not directly affected in this case, except that
|
---|
3977 | currently attached differencing hard disks based on hard disks
|
---|
3978 | of the discarded snapshot will be also merged as described
|
---|
3979 | above.
|
---|
3980 |
|
---|
3981 | If the discarded snapshot is the first one (the root snapshot)
|
---|
3982 | and it has exactly one child snapshot, this child snapshot will
|
---|
3983 | become the first snapshot after discarding. If there are no
|
---|
3984 | children at all (i.e. the first snapshot is the only snapshot of
|
---|
3985 | the machine), both the current and the first snapshot of the
|
---|
3986 | machine will be set to null. In all other cases, the first
|
---|
3987 | snapshot cannot be discarded.
|
---|
3988 |
|
---|
3989 | You cannot discard the snapshot if it
|
---|
3990 | stores <link to="HardDiskType::NormalHardDisk">normal</link>
|
---|
3991 | (non-differencing) hard disks that have differencing hard disks based
|
---|
3992 | on them. Snapshots of such kind can be discarded only when every
|
---|
3993 | normal hard disk has either no children at all or exactly one
|
---|
3994 | child. In the former case, the normal hard disk simply becomes unused
|
---|
3995 | (i.e. not attached to any VM). In the latter case, it receives all the
|
---|
3996 | changes strored in the child hard disk, and then it replaces the child
|
---|
3997 | hard disk in the configuration of the corresponding snapshot or
|
---|
3998 | machine.
|
---|
3999 |
|
---|
4000 | Also, you cannot discard the snapshot if it stores hard disks
|
---|
4001 | (of any type) having differencing child hard disks that belong
|
---|
4002 | to other machines. Such snapshots can be only discarded after
|
---|
4003 | you discard all snapshots of other machines containing "foreign"
|
---|
4004 | child disks, or detach these "foreign" child disks from machines
|
---|
4005 | they are attached to.
|
---|
4006 |
|
---|
4007 | One particular example of the snapshot storing normal hard disks
|
---|
4008 | is the first snapshot of a virtual machine that had normal hard
|
---|
4009 | disks attached when taking the snapshot. Be careful when
|
---|
4010 | discarding such snapshots because this implicitly commits
|
---|
4011 | changes (made since the snapshot being discarded has been taken)
|
---|
4012 | to normal hard disks (as described above), which may be not what
|
---|
4013 | you want.
|
---|
4014 |
|
---|
4015 | The virtual machine is put to
|
---|
4016 | the <link to="MachineState::Discarding">Discarding</link> state until
|
---|
4017 | the discard operation is completed.
|
---|
4018 |
|
---|
4019 | <note>
|
---|
4020 | The machine must not be running, otherwise the operation
|
---|
4021 | will fail.
|
---|
4022 | </note>
|
---|
4023 |
|
---|
4024 | <note>
|
---|
4025 | Child hard disks of all normal hard disks of the discarded snapshot
|
---|
4026 | must be <link to="IHardDisk::accessible">accessible</link> for this
|
---|
4027 | operation to succeed. In particular, this means that all virtual
|
---|
4028 | machines, whose hard disks are directly or indirectly based on the
|
---|
4029 | hard disks of discarded snapshot, must be powered off.
|
---|
4030 | </note>
|
---|
4031 | <note>
|
---|
4032 | Merging hard disk contents can be very time and disk space
|
---|
4033 | consuming, if these disks are big in size and have many
|
---|
4034 | children. However, if the snapshot being discarded is the last
|
---|
4035 | (head) snapshot on the branch, the operation will be rather
|
---|
4036 | quick.
|
---|
4037 | </note>
|
---|
4038 | <note>
|
---|
4039 | Note that discarding the current snapshot
|
---|
4040 | will imlicitly call <link to="IMachine::saveSettings()"/> to
|
---|
4041 | make all current machine settings permanent.
|
---|
4042 | </note>
|
---|
4043 | </desc>
|
---|
4044 | <param name="id" type="uuid" dir="in">
|
---|
4045 | <desc>UUID of the snapshot to discard.</desc>
|
---|
4046 | </param>
|
---|
4047 | <param name="progress" type="IProgress" dir="return">
|
---|
4048 | <desc>Progress object to track the operation completion.</desc>
|
---|
4049 | </param>
|
---|
4050 | </method>
|
---|
4051 |
|
---|
4052 | <method name="discardCurrentState">
|
---|
4053 | <desc>
|
---|
4054 | This operation is similar to <link to="#discardSnapshot()"/> but
|
---|
4055 | affects the current machine state. This means that the state stored in
|
---|
4056 | the current snapshot will become a new current state, and all current
|
---|
4057 | settings of the machine and changes stored in differencing hard disks
|
---|
4058 | will be lost.
|
---|
4059 |
|
---|
4060 | After this operation is successfully completed, new empty differencing
|
---|
4061 | hard disks are created for all normal hard disks of the machine.
|
---|
4062 |
|
---|
4063 | If the current snapshot of the machine is an online snapshot, the
|
---|
4064 | machine will go to the <link to="MachineState::Saved"> saved
|
---|
4065 | state</link>, so that the next time it is powered on, the execution
|
---|
4066 | state will be restored from the current snapshot.
|
---|
4067 |
|
---|
4068 | <note>
|
---|
4069 | The machine must not be running, otherwise the operation will fail.
|
---|
4070 | </note>
|
---|
4071 |
|
---|
4072 | <note>
|
---|
4073 | If the machine state is <link to="MachineState::Saved">Saved</link>
|
---|
4074 | prior to this operation, the saved state file will be implicitly
|
---|
4075 | discarded (as if <link to="IConsole::discardSavedState()"/> were
|
---|
4076 | called).
|
---|
4077 | </note>
|
---|
4078 |
|
---|
4079 | </desc>
|
---|
4080 | <param name="progress" type="IProgress" dir="return">
|
---|
4081 | <desc>Progress object to track the operation completion.</desc>
|
---|
4082 | </param>
|
---|
4083 | </method>
|
---|
4084 |
|
---|
4085 | <method name="discardCurrentSnapshotAndState">
|
---|
4086 | <desc>
|
---|
4087 |
|
---|
4088 | This method is equivalent to
|
---|
4089 | doing <link to="#discardSnapshot">discardSnapshot</link>
|
---|
4090 | (<link
|
---|
4091 | to="IMachine::currentSnapshot">currentSnapshot</link>.<link
|
---|
4092 | to="ISnapshot::id">id()</link>, ...) followed by
|
---|
4093 | <link to="#discardCurrentState()"/>.
|
---|
4094 |
|
---|
4095 | As a result, the machine will be fully restored from the
|
---|
4096 | snapshot preceeding the current snapshot, while both the current
|
---|
4097 | snapshot and the current machine state will be discarded.
|
---|
4098 |
|
---|
4099 | If the current snapshot is the first snapshot of the machine (i.e. it
|
---|
4100 | has the only snapshot), the current machine state will be
|
---|
4101 | discarded <b>before</b> discarding the snapshot. In other words, the
|
---|
4102 | machine will be restored from its last snapshot, before discarding
|
---|
4103 | it. This differs from performing a single
|
---|
4104 | <link to="#discardSnapshot()"/> call (note that no
|
---|
4105 | <link to="#discardCurrentState()"/> will be possible after it) to the
|
---|
4106 | effect that the latter will preserve the current state instead of
|
---|
4107 | discarding it.
|
---|
4108 |
|
---|
4109 | Unless explicitly mentioned otherwise, all remarks and
|
---|
4110 | limitations of the above two methods also apply to this method.
|
---|
4111 |
|
---|
4112 | <note>
|
---|
4113 | The machine must not be running, otherwise the operation
|
---|
4114 | will fail.
|
---|
4115 | </note>
|
---|
4116 |
|
---|
4117 | <note>
|
---|
4118 | If the machine state is <link to="MachineState::Saved">Saved</link>
|
---|
4119 | prior to this operation, the saved state file will be implicitly
|
---|
4120 | discarded (as if <link to="IConsole::discardSavedState()"/> were
|
---|
4121 | called).</note>
|
---|
4122 |
|
---|
4123 | <note>
|
---|
4124 | This method is more efficient than calling two above
|
---|
4125 | methods separately: it requires less IPC calls and provides
|
---|
4126 | a single progress object.
|
---|
4127 | </note>
|
---|
4128 |
|
---|
4129 | </desc>
|
---|
4130 | <param name="progress" type="IProgress" dir="return">
|
---|
4131 | <desc>Progress object to track the operation completion.</desc>
|
---|
4132 | </param>
|
---|
4133 | </method>
|
---|
4134 |
|
---|
4135 | <method name="registerCallback">
|
---|
4136 | <desc>
|
---|
4137 | Registers a new console callback on this instance. The methods of the
|
---|
4138 | callback interface will be called by this instance when the appropriate
|
---|
4139 | event occurs.
|
---|
4140 | </desc>
|
---|
4141 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
4142 | </method>
|
---|
4143 |
|
---|
4144 | <method name="unregisterCallback">
|
---|
4145 | <desc>
|
---|
4146 | Unregisters the console callback previously registered using
|
---|
4147 | <link to="#registerCallback"/>.
|
---|
4148 | </desc>
|
---|
4149 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
4150 | </method>
|
---|
4151 |
|
---|
4152 | </interface>
|
---|
4153 |
|
---|
4154 | <!--
|
---|
4155 | // IHost
|
---|
4156 | /////////////////////////////////////////////////////////////////////////
|
---|
4157 | -->
|
---|
4158 |
|
---|
4159 | <interface
|
---|
4160 | name="IHostDVDDrive" extends="$unknown"
|
---|
4161 | uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
|
---|
4162 | wsmap="managed"
|
---|
4163 | >
|
---|
4164 | <desc>
|
---|
4165 | The IHostDVDDrive interface represents the physical CD/DVD drive
|
---|
4166 | hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
|
---|
4167 | </desc>
|
---|
4168 |
|
---|
4169 | <attribute name="name" type="wstring" readonly="yes">
|
---|
4170 | <desc>
|
---|
4171 | Returns the platform-specific device identifier.
|
---|
4172 | On DOS-like platforms, it is a drive name (e.g. R:).
|
---|
4173 | On Unix-like platforms, it is a device name (e.g. /dev/hdc).
|
---|
4174 | </desc>
|
---|
4175 | </attribute>
|
---|
4176 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4177 | <desc>
|
---|
4178 | Returns a human readable description for the drive. This
|
---|
4179 | description usually contains the product and vendor name. A
|
---|
4180 | @c null string is returned if the description is not available.
|
---|
4181 | </desc>
|
---|
4182 | </attribute>
|
---|
4183 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
4184 | <desc>
|
---|
4185 | Returns the unique device identifier for the drive. This
|
---|
4186 | attribute is reserved for future use instead of
|
---|
4187 | <link to="#name"/>. Currently it is not used and may return
|
---|
4188 | @c null on some platforms.
|
---|
4189 | </desc>
|
---|
4190 | </attribute>
|
---|
4191 |
|
---|
4192 | </interface>
|
---|
4193 |
|
---|
4194 | <enumerator
|
---|
4195 | name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
|
---|
4196 | uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
|
---|
4197 | />
|
---|
4198 |
|
---|
4199 | <collection
|
---|
4200 | name="IHostDVDDriveCollection" type="IHostDVDDrive"
|
---|
4201 | enumerator="IHostDVDDriveEnumerator"
|
---|
4202 | uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
|
---|
4203 | readonly="yes"
|
---|
4204 | >
|
---|
4205 | <method name="findByName">
|
---|
4206 | <desc>
|
---|
4207 | Searches this collection for a host drive with the given name.
|
---|
4208 | <note>
|
---|
4209 | The method returns an error if the given name does not
|
---|
4210 | correspond to any host drive in the collection.
|
---|
4211 | </note>
|
---|
4212 | </desc>
|
---|
4213 | <param name="name" type="wstring" dir="in">
|
---|
4214 | <desc>Name of the host drive to search for</desc>
|
---|
4215 | </param>
|
---|
4216 | <param name="drive" type="IHostDVDDrive" dir="return">
|
---|
4217 | <desc>Found host drive object</desc>
|
---|
4218 | </param>
|
---|
4219 | </method>
|
---|
4220 | </collection>
|
---|
4221 |
|
---|
4222 | <interface
|
---|
4223 | name="IHostFloppyDrive" extends="$unknown"
|
---|
4224 | uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
|
---|
4225 | wsmap="managed"
|
---|
4226 | >
|
---|
4227 | <desc>
|
---|
4228 | The IHostFloppyDrive interface represents the physical floppy drive
|
---|
4229 | hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
|
---|
4230 | </desc>
|
---|
4231 | <attribute name="name" type="wstring" readonly="yes">
|
---|
4232 | <desc>
|
---|
4233 | Returns the platform-specific device identifier.
|
---|
4234 | On DOS-like platforms, it is a drive name (e.g. A:).
|
---|
4235 | On Unix-like platforms, it is a device name (e.g. /dev/fd0).
|
---|
4236 | </desc>
|
---|
4237 | </attribute>
|
---|
4238 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4239 | <desc>
|
---|
4240 | Returns a human readable description for the drive. This
|
---|
4241 | description usually contains the product and vendor name. A
|
---|
4242 | @c null string is returned if the description is not available.
|
---|
4243 | </desc>
|
---|
4244 | </attribute>
|
---|
4245 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
4246 | <desc>
|
---|
4247 | Returns the unique device identifier for the drive. This
|
---|
4248 | attribute is reserved for future use instead of
|
---|
4249 | <link to="#name"/>. Currently it is not used and may return
|
---|
4250 | @c null on some platforms.
|
---|
4251 | </desc>
|
---|
4252 | </attribute>
|
---|
4253 | </interface>
|
---|
4254 |
|
---|
4255 | <enumerator
|
---|
4256 | name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
|
---|
4257 | uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
|
---|
4258 | />
|
---|
4259 |
|
---|
4260 | <collection
|
---|
4261 | name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
|
---|
4262 | enumerator="IHostFloppyDriveEnumerator"
|
---|
4263 | uuid="fd84bb86-c59a-4037-a557-755ff263a460"
|
---|
4264 | readonly="yes"
|
---|
4265 | >
|
---|
4266 | <method name="findByName">
|
---|
4267 | <desc>
|
---|
4268 | Searches this collection for a host drive with the given name.
|
---|
4269 | <note>
|
---|
4270 | The method returns an error if the given name does not
|
---|
4271 | correspond to any host drive in the collection.
|
---|
4272 | </note>
|
---|
4273 | </desc>
|
---|
4274 | <param name="name" type="wstring" dir="in">
|
---|
4275 | <desc>Name of the host drive to search for</desc>
|
---|
4276 | </param>
|
---|
4277 | <param name="drive" type="IHostFloppyDrive" dir="return">
|
---|
4278 | <desc>Found host drive object</desc>
|
---|
4279 | </param>
|
---|
4280 | </method>
|
---|
4281 | </collection>
|
---|
4282 |
|
---|
4283 | <if target="midl">
|
---|
4284 | <interface
|
---|
4285 | name="IHostNetworkInterface" extends="$unknown"
|
---|
4286 | uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
|
---|
4287 | wsmap="managed"
|
---|
4288 | >
|
---|
4289 | <attribute name="name" type="wstring" readonly="yes">
|
---|
4290 | <desc>Returns the host network interface name.</desc>
|
---|
4291 | </attribute>
|
---|
4292 |
|
---|
4293 | <attribute name="id" type="uuid" readonly="yes">
|
---|
4294 | <desc>Returns the interface UUID.</desc>
|
---|
4295 | </attribute>
|
---|
4296 | </interface>
|
---|
4297 |
|
---|
4298 | <enumerator
|
---|
4299 | name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
|
---|
4300 | uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
|
---|
4301 | />
|
---|
4302 |
|
---|
4303 | <collection
|
---|
4304 | name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
|
---|
4305 | enumerator="IHostNetworkInterfaceEnumerator"
|
---|
4306 | uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
|
---|
4307 | readonly="yes"
|
---|
4308 | >
|
---|
4309 | <method name="findByName">
|
---|
4310 | <desc>
|
---|
4311 | Searches this collection for a host network interface with the given name.
|
---|
4312 | <note>
|
---|
4313 | The method returns an error if the given name does not
|
---|
4314 | correspond to any host network interface in the collection.
|
---|
4315 | </note>
|
---|
4316 | </desc>
|
---|
4317 | <param name="name" type="wstring" dir="in">
|
---|
4318 | <desc>Name of the host network interface to search for.</desc>
|
---|
4319 | </param>
|
---|
4320 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
4321 | <desc>Found host network interface object.</desc>
|
---|
4322 | </param>
|
---|
4323 | </method>
|
---|
4324 | <method name="findById">
|
---|
4325 | <desc>
|
---|
4326 | Searches this collection for a host network interface with the given GUID.
|
---|
4327 | <note>
|
---|
4328 | The method returns an error if the given GUID does not
|
---|
4329 | correspond to any host network interface in the collection.
|
---|
4330 | </note>
|
---|
4331 | </desc>
|
---|
4332 | <param name="id" type="uuid" dir="in">
|
---|
4333 | <desc>GUID of the host network interface to search for.</desc>
|
---|
4334 | </param>
|
---|
4335 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
4336 | <desc>Found host network interface object.</desc>
|
---|
4337 | </param>
|
---|
4338 | </method>
|
---|
4339 | </collection>
|
---|
4340 | </if>
|
---|
4341 |
|
---|
4342 | <interface
|
---|
4343 | name="IHost" extends="$unknown"
|
---|
4344 | uuid="81729c26-1aec-46f5-b7c0-cc7364738fdb"
|
---|
4345 | wsmap="managed"
|
---|
4346 | >
|
---|
4347 | <desc>
|
---|
4348 | The IHost interface represents the physical machine that this VirtualBox
|
---|
4349 | installation runs on.
|
---|
4350 |
|
---|
4351 | An object implementing this interface is returned by the
|
---|
4352 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
4353 | read-only information about the host's physical hardware (such as what
|
---|
4354 | processors, and disks are available, what the host operating system is,
|
---|
4355 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
4356 | such as global USB device filters and host interface networking.
|
---|
4357 |
|
---|
4358 | </desc>
|
---|
4359 | <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
|
---|
4360 | <desc>List of DVD drives available on the host.</desc>
|
---|
4361 | </attribute>
|
---|
4362 |
|
---|
4363 | <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
|
---|
4364 | <desc>List of floppy drives available on the host.</desc>
|
---|
4365 | </attribute>
|
---|
4366 |
|
---|
4367 | <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
4368 | <desc>
|
---|
4369 | List of USB devices currently attached to the host.
|
---|
4370 | Once a new device is physically attached to the host computer,
|
---|
4371 | it appears in this list and remains there until detached.
|
---|
4372 | </desc>
|
---|
4373 | </attribute>
|
---|
4374 |
|
---|
4375 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
|
---|
4376 | <desc>
|
---|
4377 | List of USB device filters in action.
|
---|
4378 | When a new device is physically attached to the host computer,
|
---|
4379 | filters from this list are applied to it (in order they are stored
|
---|
4380 | in the list). The first matched filter will determine the
|
---|
4381 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
4382 | performed on the device.
|
---|
4383 |
|
---|
4384 | Unless the device is ignored by these filters, filters of all
|
---|
4385 | currently running virtual machines
|
---|
4386 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
4387 |
|
---|
4388 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
4389 | </desc>
|
---|
4390 | </attribute>
|
---|
4391 |
|
---|
4392 | <if target="midl">
|
---|
4393 | <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
|
---|
4394 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
4395 | </attribute>
|
---|
4396 | </if>
|
---|
4397 |
|
---|
4398 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
4399 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
4400 | </attribute>
|
---|
4401 |
|
---|
4402 | <attribute name="processorSpeed" type="unsigned long" readonly="yes">
|
---|
4403 | <desc>(Approximate) speed of the host CPU in Megahertz.</desc>
|
---|
4404 | </attribute>
|
---|
4405 |
|
---|
4406 | <attribute name="processorDescription" type="wstring" readonly="yes">
|
---|
4407 | <desc>Description string of the host CPU.</desc>
|
---|
4408 | </attribute>
|
---|
4409 |
|
---|
4410 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
4411 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
4412 | </attribute>
|
---|
4413 |
|
---|
4414 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
4415 | <desc>Available system memory in the host system.</desc>
|
---|
4416 | </attribute>
|
---|
4417 |
|
---|
4418 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
4419 | <desc>Name of the host system's operating system.</desc>
|
---|
4420 | </attribute>
|
---|
4421 |
|
---|
4422 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
4423 | <desc>Host operating system's version string.</desc>
|
---|
4424 | </attribute>
|
---|
4425 |
|
---|
4426 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
4427 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
4428 | </attribute>
|
---|
4429 |
|
---|
4430 | <if target="midl">
|
---|
4431 | <method name="createHostNetworkInterface">
|
---|
4432 | <desc>
|
---|
4433 | Creates a new adapter for Host Interface Networking.
|
---|
4434 | </desc>
|
---|
4435 | <param name="name" type="wstring" dir="in">
|
---|
4436 | <desc>
|
---|
4437 | Adapter name.
|
---|
4438 | </desc>
|
---|
4439 | </param>
|
---|
4440 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
4441 | <desc>
|
---|
4442 | Created host interface object.
|
---|
4443 | </desc>
|
---|
4444 | </param>
|
---|
4445 | <param name="progress" type="IProgress" dir="return">
|
---|
4446 | <desc>
|
---|
4447 | Progress object to track the operation completion.
|
---|
4448 | </desc>
|
---|
4449 | </param>
|
---|
4450 | </method>
|
---|
4451 | <method name="removeHostNetworkInterface">
|
---|
4452 | <desc>
|
---|
4453 | Removes the given host network interface.
|
---|
4454 | </desc>
|
---|
4455 | <param name="id" type="uuid" dir="in">
|
---|
4456 | <desc>
|
---|
4457 | Adapter GUID.
|
---|
4458 | </desc>
|
---|
4459 | </param>
|
---|
4460 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
4461 | <desc>
|
---|
4462 | Removed host interface object.
|
---|
4463 | </desc>
|
---|
4464 | </param>
|
---|
4465 | <param name="progress" type="IProgress" dir="return">
|
---|
4466 | <desc>
|
---|
4467 | Progress object to track the operation completion.
|
---|
4468 | </desc>
|
---|
4469 | </param>
|
---|
4470 | </method>
|
---|
4471 | </if>
|
---|
4472 |
|
---|
4473 | <method name="createUSBDeviceFilter">
|
---|
4474 | <desc>
|
---|
4475 | Creates a new USB device filter. All attributes except
|
---|
4476 | the filter name are set to <tt>null</tt> (any match),
|
---|
4477 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
4478 |
|
---|
4479 | The created filter can be added to the list of filters using
|
---|
4480 | <link to="#insertUSBDeviceFilter()"/>.
|
---|
4481 |
|
---|
4482 | <see>#USBDeviceFilters</see>
|
---|
4483 | </desc>
|
---|
4484 | <param name="name" type="wstring" dir="in">
|
---|
4485 | <desc>
|
---|
4486 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
4487 | for more info.
|
---|
4488 | </desc>
|
---|
4489 | </param>
|
---|
4490 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
4491 | <desc>Created filter object.</desc>
|
---|
4492 | </param>
|
---|
4493 | </method>
|
---|
4494 |
|
---|
4495 | <method name="insertUSBDeviceFilter">
|
---|
4496 | <desc>
|
---|
4497 | Inserts the given USB device to the specified position
|
---|
4498 | in the list of filters.
|
---|
4499 |
|
---|
4500 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
4501 | position is equal to or greater than the number of elements in
|
---|
4502 | the list, the filter is added to the end of the collection.
|
---|
4503 |
|
---|
4504 | <note>
|
---|
4505 | Duplicates are not allowed, so an attempt to insert a
|
---|
4506 | filter that is already in the list, will return an
|
---|
4507 | error.
|
---|
4508 | </note>
|
---|
4509 |
|
---|
4510 | <see>#USBDeviceFilters</see>
|
---|
4511 | </desc>
|
---|
4512 | <param name="position" type="unsigned long" dir="in">
|
---|
4513 | <desc>Position to insert the filter to.</desc>
|
---|
4514 | </param>
|
---|
4515 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
4516 | <desc>USB device filter to insert.</desc>
|
---|
4517 | </param>
|
---|
4518 | </method>
|
---|
4519 |
|
---|
4520 | <method name="removeUSBDeviceFilter">
|
---|
4521 | <desc>
|
---|
4522 | Removes a USB device filter from the specified position in the
|
---|
4523 | list of filters.
|
---|
4524 |
|
---|
4525 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
4526 | position equal to or greater than the number of elements in
|
---|
4527 | the list will produce an error.
|
---|
4528 |
|
---|
4529 | <see>#USBDeviceFilters</see>
|
---|
4530 | </desc>
|
---|
4531 | <param name="position" type="unsigned long" dir="in">
|
---|
4532 | <desc>Position to remove the filter from.</desc>
|
---|
4533 | </param>
|
---|
4534 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
4535 | <desc>Removed USB device filter.</desc>
|
---|
4536 | </param>
|
---|
4537 | </method>
|
---|
4538 |
|
---|
4539 | </interface>
|
---|
4540 |
|
---|
4541 | <!--
|
---|
4542 | // ISystemProperties
|
---|
4543 | /////////////////////////////////////////////////////////////////////////
|
---|
4544 | -->
|
---|
4545 |
|
---|
4546 | <interface
|
---|
4547 | name="ISystemProperties"
|
---|
4548 | extends="$unknown"
|
---|
4549 | uuid="12c2e31e-247f-4d51-82e5-5b9d4a6c7d5b"
|
---|
4550 | wsmap="struct"
|
---|
4551 | >
|
---|
4552 | <desc>
|
---|
4553 | The ISystemProperties interface represents global properties
|
---|
4554 | of the given VirtualBox installation.
|
---|
4555 |
|
---|
4556 | These properties define limits and default values for various
|
---|
4557 | attributes and parameters.
|
---|
4558 |
|
---|
4559 | Most of the properties are read-only, but some can be changed by
|
---|
4560 | a user.
|
---|
4561 | </desc>
|
---|
4562 |
|
---|
4563 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
4564 | <desc>Minium guest system memory in Megabytes.</desc>
|
---|
4565 | </attribute>
|
---|
4566 |
|
---|
4567 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
4568 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
4569 | </attribute>
|
---|
4570 |
|
---|
4571 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
4572 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
4573 | </attribute>
|
---|
4574 |
|
---|
4575 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
4576 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
4577 | </attribute>
|
---|
4578 |
|
---|
4579 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
4580 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
4581 | </attribute>
|
---|
4582 |
|
---|
4583 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
4584 | <desc>
|
---|
4585 | Number of network adapters associated with every
|
---|
4586 | <link to="IMachine"/> instance.
|
---|
4587 | </desc>
|
---|
4588 | </attribute>
|
---|
4589 |
|
---|
4590 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
4591 | <desc>
|
---|
4592 | Number of serial ports associated with every
|
---|
4593 | <link to="IMachine"/> instance.
|
---|
4594 | </desc>
|
---|
4595 | </attribute>
|
---|
4596 |
|
---|
4597 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
4598 | <desc>
|
---|
4599 | Number of parallel ports associated with every
|
---|
4600 | <link to="IMachine"/> instance.
|
---|
4601 | </desc>
|
---|
4602 | </attribute>
|
---|
4603 |
|
---|
4604 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
4605 | <desc>
|
---|
4606 | Maximum device position in the boot order. This value corresponds
|
---|
4607 | to the total number of devices a machine can boot from, to make it
|
---|
4608 | possible to include all possible devices to the boot list.
|
---|
4609 | <see><link to="IMachine::setBootOrder()"/></see>
|
---|
4610 | </desc>
|
---|
4611 | </attribute>
|
---|
4612 |
|
---|
4613 | <attribute name="defaultVDIFolder" type="wstring">
|
---|
4614 | <desc>
|
---|
4615 | Full path to the default directory used to create new or open
|
---|
4616 | existing virtual disk images when an image file name contains no
|
---|
4617 | path.
|
---|
4618 |
|
---|
4619 | The initial value of this property is
|
---|
4620 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
4621 | VirtualBox_home</link><tt>>/VDI</tt>.
|
---|
4622 |
|
---|
4623 | <note>
|
---|
4624 | Setting this property to <tt>null</tt> will restore the
|
---|
4625 | initial value.
|
---|
4626 | </note>
|
---|
4627 | <note>
|
---|
4628 | When settings this property, the specified path can be
|
---|
4629 | absolute (full path) or relative
|
---|
4630 | to the <link to="IVirtualBox::homeFolder">
|
---|
4631 | VirtualBox home directory</link>.
|
---|
4632 | When reading this property, a full path is
|
---|
4633 | always returned.
|
---|
4634 | </note>
|
---|
4635 | <note>
|
---|
4636 | The specified path may not exist, it will be created
|
---|
4637 | when necessary.
|
---|
4638 | </note>
|
---|
4639 |
|
---|
4640 | <see>
|
---|
4641 | <link to="IVirtualBox::createHardDisk()"/>,
|
---|
4642 | <link to="IVirtualBox::openVirtualDiskImage()"/>
|
---|
4643 | </see>
|
---|
4644 | </desc>
|
---|
4645 | </attribute>
|
---|
4646 |
|
---|
4647 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
4648 | <desc>
|
---|
4649 | Full path to the default directory used to create new or open
|
---|
4650 | existing machines when a settings file name contains no
|
---|
4651 | path.
|
---|
4652 |
|
---|
4653 | The initial value of this property is
|
---|
4654 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
4655 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
4656 |
|
---|
4657 | <note>
|
---|
4658 | Setting this property to <tt>null</tt> will restore the
|
---|
4659 | initial value.
|
---|
4660 | </note>
|
---|
4661 | <note>
|
---|
4662 | When settings this property, the specified path can be
|
---|
4663 | absolute (full path) or relative
|
---|
4664 | to the <link to="IVirtualBox::homeFolder">
|
---|
4665 | VirtualBox home directory</link>.
|
---|
4666 | When reading this property, a full path is
|
---|
4667 | always returned.
|
---|
4668 | </note>
|
---|
4669 | <note>
|
---|
4670 | The specified path may not exist, it will be created
|
---|
4671 | when necessary.
|
---|
4672 | </note>
|
---|
4673 |
|
---|
4674 | <see>
|
---|
4675 | <link to="IVirtualBox::createMachine()"/>,
|
---|
4676 | <link to="IVirtualBox::openMachine()"/>
|
---|
4677 | </see>
|
---|
4678 | </desc>
|
---|
4679 | </attribute>
|
---|
4680 |
|
---|
4681 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
4682 | <desc>
|
---|
4683 | Library that provides authentication for VRDP clients. The library
|
---|
4684 | is used if a virtual machine's authentication type is set to "external"
|
---|
4685 | in the VM RemoteDisplay configuration.
|
---|
4686 |
|
---|
4687 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
4688 | A full path can be specified; if not, then the library must reside on the
|
---|
4689 | system's default library path.
|
---|
4690 |
|
---|
4691 | The default value of this property is <tt>VRDPAuth</tt>. There is a library
|
---|
4692 | of that name in one of the default VirtualBox library directories.
|
---|
4693 |
|
---|
4694 | For details about VirtualBox authentication libraries and how to implement
|
---|
4695 | them, please refer to the VirtualBox manual.
|
---|
4696 |
|
---|
4697 | <note>
|
---|
4698 | Setting this property to <tt>null</tt> will restore the
|
---|
4699 | initial value.
|
---|
4700 | </note>
|
---|
4701 | </desc>
|
---|
4702 | </attribute>
|
---|
4703 |
|
---|
4704 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
4705 | <desc>
|
---|
4706 | Library that provides authentication for webservice clients. The library
|
---|
4707 | is used if a virtual machine's authentication type is set to "external"
|
---|
4708 | in the VM RemoteDisplay configuration and will be called from
|
---|
4709 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
4710 |
|
---|
4711 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
4712 | there is no per-VM setting for this, as the webservice is a global
|
---|
4713 | resource (if it is running). Only for this setting (for the webservice),
|
---|
4714 | setting this value to a literal "null" string disables authentication,
|
---|
4715 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
4716 | no matter what user name and password are supplied.
|
---|
4717 |
|
---|
4718 | The initial value of this property is <tt>VRDPAuth</tt>,
|
---|
4719 | meaning that the webservice will use the same authentication
|
---|
4720 | library that is used by default for VBoxVRDP (again, see
|
---|
4721 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
4722 | The format and calling convetion of authentication libraries
|
---|
4723 | is the same for the webservice as it is for VBoxVRDP.
|
---|
4724 |
|
---|
4725 | </desc>
|
---|
4726 | </attribute>
|
---|
4727 |
|
---|
4728 | <attribute name="HWVirtExEnabled" type="boolean">
|
---|
4729 | <desc>
|
---|
4730 | This specifies the default value for hardware virtualization
|
---|
4731 | extensions. If enabled, virtual machines will make use of
|
---|
4732 | hardware virtualization extensions such as Intel VT-x and
|
---|
4733 | AMD SVM by default. This value can be overridden by each VM
|
---|
4734 | using their <link to="IMachine::HWVirtExEnabled" /> property.
|
---|
4735 | </desc>
|
---|
4736 | </attribute>
|
---|
4737 |
|
---|
4738 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
4739 | <desc>
|
---|
4740 | This value specifies how many old release log files are kept.
|
---|
4741 | </desc>
|
---|
4742 | </attribute>
|
---|
4743 | </interface>
|
---|
4744 |
|
---|
4745 | <!--
|
---|
4746 | // IGuest
|
---|
4747 | /////////////////////////////////////////////////////////////////////////
|
---|
4748 | -->
|
---|
4749 |
|
---|
4750 | <interface
|
---|
4751 | name="IGuestOSType" extends="$unknown"
|
---|
4752 | uuid="da94f478-1f37-4726-b750-2235950dc2fe"
|
---|
4753 | wsmap="struct"
|
---|
4754 | >
|
---|
4755 | <attribute name="id" type="wstring" readonly="yes">
|
---|
4756 | <desc>Guest OS identifier string.</desc>
|
---|
4757 | </attribute>
|
---|
4758 |
|
---|
4759 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4760 | <desc>Human readable description of the guest OS.</desc>
|
---|
4761 | </attribute>
|
---|
4762 |
|
---|
4763 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
4764 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
4765 | </attribute>
|
---|
4766 |
|
---|
4767 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
4768 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
4769 | </attribute>
|
---|
4770 |
|
---|
4771 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
4772 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
4773 | </attribute>
|
---|
4774 | </interface>
|
---|
4775 |
|
---|
4776 |
|
---|
4777 | <enumerator
|
---|
4778 | name="IGuestOSTypeEnumerator" type="IGuestOSType"
|
---|
4779 | uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
|
---|
4780 | />
|
---|
4781 |
|
---|
4782 | <collection
|
---|
4783 | name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
|
---|
4784 | uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
|
---|
4785 | readonly="yes"
|
---|
4786 | />
|
---|
4787 |
|
---|
4788 | <interface
|
---|
4789 | name="IGuest" extends="$unknown"
|
---|
4790 | uuid="c101f037-b03d-4bd4-bd25-381123980be2"
|
---|
4791 | wsmap="suppress"
|
---|
4792 | >
|
---|
4793 | <desc>
|
---|
4794 | The IGuest interface represents information about the operating system
|
---|
4795 | running inside the virtual machine. Used in
|
---|
4796 | <link to="IConsole::guest"/>.
|
---|
4797 |
|
---|
4798 | IGuest provides information about the guest operating system, whether
|
---|
4799 | Guest Additions are installed and other OS-specific virtual machine
|
---|
4800 | properties.
|
---|
4801 | </desc>
|
---|
4802 |
|
---|
4803 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
4804 | <desc>
|
---|
4805 | Identifier of the Guest OS type as reported by the Guest
|
---|
4806 | Additions.
|
---|
4807 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4808 | an IGuestOSType object representing details about the given
|
---|
4809 | Guest OS type.
|
---|
4810 | <note>
|
---|
4811 | If Guest Additions are not installed, this value will be
|
---|
4812 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
4813 | </note>
|
---|
4814 | </desc>
|
---|
4815 | </attribute>
|
---|
4816 |
|
---|
4817 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
4818 | <desc>
|
---|
4819 | Flag whether the Guest Additions are installed and active
|
---|
4820 | in which case their version will be returned by the
|
---|
4821 | <link to="#additionsVersion"/> property.
|
---|
4822 | </desc>
|
---|
4823 | </attribute>
|
---|
4824 |
|
---|
4825 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
4826 | <desc>
|
---|
4827 | Version of the Guest Additions (3 decimal numbers separated
|
---|
4828 | by dots) or empty when the Additions are not installed. The
|
---|
4829 | Additions may also report a version but yet not be active as
|
---|
4830 | the version might be refused by VirtualBox (incompatible) or
|
---|
4831 | other failures occured.
|
---|
4832 | </desc>
|
---|
4833 | </attribute>
|
---|
4834 |
|
---|
4835 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
4836 | <desc>
|
---|
4837 | Flag whether seamless guest display rendering (seamless desktop
|
---|
4838 | integration) is supported.
|
---|
4839 | </desc>
|
---|
4840 | </attribute>
|
---|
4841 |
|
---|
4842 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
4843 | <desc>Guest system memory balloon size in megabytes.</desc>
|
---|
4844 | </attribute>
|
---|
4845 |
|
---|
4846 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
4847 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
4848 | </attribute>
|
---|
4849 |
|
---|
4850 | <method name="setCredentials">
|
---|
4851 | <desc>
|
---|
4852 | Store login credentials that can be queried by guest operating
|
---|
4853 | systems with Additions installed. The credentials are transient
|
---|
4854 | to the session and the guest may also choose to erase them. Note
|
---|
4855 | that the caller cannot determine whether the guest operating system
|
---|
4856 | has queried or made use of the credentials.
|
---|
4857 | </desc>
|
---|
4858 | <param name="userName" type="wstring" dir="in">
|
---|
4859 | <desc>User name string, can be empty</desc>
|
---|
4860 | </param>
|
---|
4861 | <param name="password" type="wstring" dir="in">
|
---|
4862 | <desc>Password string, can be empty</desc>
|
---|
4863 | </param>
|
---|
4864 | <param name="domain" type="wstring" dir="in">
|
---|
4865 | <desc>Domain name (guest logon scheme specific), can be emtpy</desc>
|
---|
4866 | </param>
|
---|
4867 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
4868 | <desc>
|
---|
4869 | Flag whether the guest should alternatively allow the user to
|
---|
4870 | interactively specify different credentials. This flag might
|
---|
4871 | not be supported by all versions of the Additions.
|
---|
4872 | </desc>
|
---|
4873 | </param>
|
---|
4874 | </method>
|
---|
4875 |
|
---|
4876 | <method name="getStatistic">
|
---|
4877 | <desc>
|
---|
4878 | Query specified guest statistics as reported by the VirtualBox Additions.
|
---|
4879 | </desc>
|
---|
4880 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
4881 | <desc>Virtual CPU id; not relevant for all statistic types</desc>
|
---|
4882 | </param>
|
---|
4883 | <param name="statistic" type="GuestStatisticType" dir="in">
|
---|
4884 | <desc>Statistic type.</desc>
|
---|
4885 | </param>
|
---|
4886 | <param name="statVal" type="unsigned long" dir="out">
|
---|
4887 | <desc>Statistics value</desc>
|
---|
4888 | </param>
|
---|
4889 | </method>
|
---|
4890 |
|
---|
4891 | </interface>
|
---|
4892 |
|
---|
4893 |
|
---|
4894 | <!--
|
---|
4895 | // IProgress
|
---|
4896 | /////////////////////////////////////////////////////////////////////////
|
---|
4897 | -->
|
---|
4898 |
|
---|
4899 | <enumerator
|
---|
4900 | name="IProgressEnumerator" type="IProgress"
|
---|
4901 | uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
|
---|
4902 | />
|
---|
4903 |
|
---|
4904 | <collection
|
---|
4905 | name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
|
---|
4906 | uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
|
---|
4907 | readonly="yes"
|
---|
4908 | />
|
---|
4909 |
|
---|
4910 | <interface
|
---|
4911 | name="IProgress" extends="$unknown"
|
---|
4912 | uuid="10CC03A1-717E-429b-992D-C67B56175A51"
|
---|
4913 | wsmap="managed"
|
---|
4914 | >
|
---|
4915 | <desc>
|
---|
4916 | The IProgress interface represents a task progress object that allows
|
---|
4917 | to wait for the completion of some asynchronous task.
|
---|
4918 |
|
---|
4919 | The task consists of one or more operations that run sequentially,
|
---|
4920 | one after one. There is an individual percent of completion of the
|
---|
4921 | current operation and the percent of completion of the task as a
|
---|
4922 | whole. Similarly, you can wait for the completion of a particular
|
---|
4923 | operation or for the completion of the whole task.
|
---|
4924 |
|
---|
4925 | Every operation is identified by a number (starting from 0)
|
---|
4926 | and has a separate description.
|
---|
4927 | </desc>
|
---|
4928 |
|
---|
4929 | <attribute name="id" type="uuid" readonly="yes">
|
---|
4930 | <desc>ID of the task.</desc>
|
---|
4931 | </attribute>
|
---|
4932 |
|
---|
4933 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4934 | <desc>Description of the task.</desc>
|
---|
4935 | </attribute>
|
---|
4936 |
|
---|
4937 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
4938 | <desc>Initiator of the task.</desc>
|
---|
4939 | </attribute>
|
---|
4940 |
|
---|
4941 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
4942 | <desc>Whether the task can be interrupted.</desc>
|
---|
4943 | </attribute>
|
---|
4944 |
|
---|
4945 | <attribute name="percent" type="long" readonly="yes">
|
---|
4946 | <desc>
|
---|
4947 | Current task progress value in percent.
|
---|
4948 | This value depends on how many operations are already complete.
|
---|
4949 | </desc>
|
---|
4950 | </attribute>
|
---|
4951 |
|
---|
4952 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
4953 | <desc>Whether the task has been completed.</desc>
|
---|
4954 | </attribute>
|
---|
4955 |
|
---|
4956 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
4957 | <desc>Whether the task has been canceled.</desc>
|
---|
4958 | </attribute>
|
---|
4959 |
|
---|
4960 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
4961 | <desc>
|
---|
4962 | Result code of the progress task.
|
---|
4963 | Valid only if <link to="#completed"/> is true.
|
---|
4964 | </desc>
|
---|
4965 | </attribute>
|
---|
4966 |
|
---|
4967 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
4968 | <desc>
|
---|
4969 | Extended information about the unsuccessful result of the
|
---|
4970 | progress operation. May be NULL when no extended information
|
---|
4971 | is available.
|
---|
4972 | Valid only if <link to="#completed"/> is true and
|
---|
4973 | <link to="#resultCode"/> indicates a failure.
|
---|
4974 | </desc>
|
---|
4975 | </attribute>
|
---|
4976 |
|
---|
4977 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
4978 | <desc>
|
---|
4979 | Number of operations this task is divided into.
|
---|
4980 | Every task consists of at least one operation.
|
---|
4981 | </desc>
|
---|
4982 | </attribute>
|
---|
4983 |
|
---|
4984 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
4985 | <desc>Number of the operation being currently executed.</desc>
|
---|
4986 | </attribute>
|
---|
4987 |
|
---|
4988 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
4989 | <desc>
|
---|
4990 | Description of the operation being currently executed.
|
---|
4991 | </desc>
|
---|
4992 | </attribute>
|
---|
4993 |
|
---|
4994 | <attribute name="operationPercent" type="long" readonly="yes">
|
---|
4995 | <desc>Current operation progress value in percent.</desc>
|
---|
4996 | </attribute>
|
---|
4997 |
|
---|
4998 | <method name="waitForCompletion">
|
---|
4999 | <desc>
|
---|
5000 | Waits until the task is done (including all operations) with a
|
---|
5001 | given timeout.
|
---|
5002 | </desc>
|
---|
5003 | <param name="timeout" type="long" dir="in">
|
---|
5004 | <desc>
|
---|
5005 | Timeout value in milliseconds.
|
---|
5006 | Specify -1 for an indefinite wait.
|
---|
5007 | </desc>
|
---|
5008 | </param>
|
---|
5009 | </method>
|
---|
5010 |
|
---|
5011 | <method name="waitForOperationCompletion">
|
---|
5012 | <desc>
|
---|
5013 | Waits until the given operation is done with a given timeout.
|
---|
5014 | </desc>
|
---|
5015 | <param name="operation" type="unsigned long" dir="in">
|
---|
5016 | <desc>
|
---|
5017 | Number of the operation to wait for.
|
---|
5018 | Must be less than <link to="#operationCount"/>.
|
---|
5019 | </desc>
|
---|
5020 | </param>
|
---|
5021 | <param name="timeout" type="long" dir="in">
|
---|
5022 | <desc>
|
---|
5023 | Timeout value in milliseconds.
|
---|
5024 | Specify -1 for an indefinite wait.
|
---|
5025 | </desc>
|
---|
5026 | </param>
|
---|
5027 | </method>
|
---|
5028 |
|
---|
5029 | <method name="cancel">
|
---|
5030 | <desc>
|
---|
5031 | Cancels the task.
|
---|
5032 | <note>
|
---|
5033 | If <link to="#cancelable"/> is <tt>false</tt>, then
|
---|
5034 | this method will fail.
|
---|
5035 | </note>
|
---|
5036 | </desc>
|
---|
5037 | </method>
|
---|
5038 |
|
---|
5039 | </interface>
|
---|
5040 |
|
---|
5041 |
|
---|
5042 | <!--
|
---|
5043 | // ISnapshot
|
---|
5044 | /////////////////////////////////////////////////////////////////////////
|
---|
5045 | -->
|
---|
5046 |
|
---|
5047 | <enumerator
|
---|
5048 | name="ISnapshotEnumerator" type="ISnapshot"
|
---|
5049 | uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
|
---|
5050 | />
|
---|
5051 |
|
---|
5052 | <collection
|
---|
5053 | name="ISnapshotCollection" type="ISnapshot"
|
---|
5054 | enumerator="ISnapshotEnumerator"
|
---|
5055 | uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
|
---|
5056 | readonly="yes"
|
---|
5057 | />
|
---|
5058 |
|
---|
5059 | <interface
|
---|
5060 | name="ISnapshot" extends="$unknown"
|
---|
5061 | uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
|
---|
5062 | wsmap="managed"
|
---|
5063 | >
|
---|
5064 | <desc>
|
---|
5065 | The ISnapshot interface represents a snapshot of the virtual
|
---|
5066 | machine.
|
---|
5067 |
|
---|
5068 | The <i>snapshot</i> stores all the information about a virtual
|
---|
5069 | machine necessary to bring it to exactly the same state as it was at
|
---|
5070 | the time of taking the snapshot. The snapshot includes:
|
---|
5071 |
|
---|
5072 | <ul>
|
---|
5073 | <li>all settings of the virtual machine (i.e. its hardware
|
---|
5074 | configuration: RAM size, attached hard disks, etc.)
|
---|
5075 | </li>
|
---|
5076 | <li>the execution state of the virtual machine (memory contents,
|
---|
5077 | CPU state, etc.).
|
---|
5078 | </li>
|
---|
5079 | </ul>
|
---|
5080 |
|
---|
5081 | Snapshots can be <i>offline</i> (taken when the VM is powered off)
|
---|
5082 | or <i>online</i> (taken when the VM is running). The execution
|
---|
5083 | state of the offline snapshot is called a <i>zero execution state</i>
|
---|
5084 | (it doesn't actually contain any information about memory contents
|
---|
5085 | or the CPU state, assuming that all hardware is just powered off).
|
---|
5086 |
|
---|
5087 | <h3>Snapshot branches</h3>
|
---|
5088 |
|
---|
5089 | Snapshots can be chained. Chained snapshots form a branch where
|
---|
5090 | every next snapshot is based on the previous one. This chaining is
|
---|
5091 | mostly related to hard disk branching (see <link to="IHardDisk"/>
|
---|
5092 | description). This means that every time a new snapshot is created,
|
---|
5093 | a new differencing hard disk is implicitly created for all normal
|
---|
5094 | hard disks attached to the given virtual machine. This allows to
|
---|
5095 | fully restore hard disk contents when the machine is later reverted
|
---|
5096 | to a particular snapshot.
|
---|
5097 |
|
---|
5098 | In the current implelemtation, multiple snapshot branches within one
|
---|
5099 | virtual machine are not allowed. Every machine has a signle branch,
|
---|
5100 | and <link to="IConsole::takeSnapshot()"/> operation adds a new
|
---|
5101 | snapshot to the top of that branch.
|
---|
5102 |
|
---|
5103 | Existings snapshots can be discarded using
|
---|
5104 | <link to="IConsole::discardSnapshot()"/>.
|
---|
5105 |
|
---|
5106 | <h3>Current snapshot</h3>
|
---|
5107 |
|
---|
5108 | Every virtual machine has a current snapshot, identified by
|
---|
5109 | <link to="IMachine::currentSnapshot"/>. This snapshot is used as
|
---|
5110 | a base for the <i>current machine state</i> (see below), to the effect
|
---|
5111 | that all normal hard disks of the machine and its execution
|
---|
5112 | state are based on this snapshot.
|
---|
5113 |
|
---|
5114 | In the current implementation, the current snapshot is always the
|
---|
5115 | last taken snapshot (i.e. the head snapshot on the branch) and it
|
---|
5116 | cannot be changed.
|
---|
5117 |
|
---|
5118 | The current snapshot is <tt>null</tt> if the machine doesn't have
|
---|
5119 | snapshots at all; in this case the current machine state is just
|
---|
5120 | current settings of this machine plus its current execution state.
|
---|
5121 |
|
---|
5122 | <h3>Current machine state</h3>
|
---|
5123 |
|
---|
5124 | The current machine state is what represened by IMachine instances got
|
---|
5125 | directly from IVirtualBox
|
---|
5126 | using <link
|
---|
5127 | to="IVirtualBox::getMachine()">getMachine()</link>, <link
|
---|
5128 | to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as opposed
|
---|
5129 | to instances returned by <link to="ISnapshot::machine"/>). This state
|
---|
5130 | is always used when the machine is <link to="IConsole::powerUp"> powered
|
---|
5131 | on</link>.
|
---|
5132 |
|
---|
5133 | The current machine state also includes the current execution state.
|
---|
5134 | If the machine is being currently executed
|
---|
5135 | (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
|
---|
5136 | and above), its execution state is just what's happening now.
|
---|
5137 | If it is powered off (<link to="MachineState::PoweredOff"/> or
|
---|
5138 | <link to="MachineState::Aborted"/>), it has a zero execution state.
|
---|
5139 | If the machine is saved (<link to="MachineState::Saved"/>), its
|
---|
5140 | execution state is what saved in the execution state file
|
---|
5141 | (<link to="IMachine::stateFilePath"/>).
|
---|
5142 |
|
---|
5143 | If the machine is in the saved state, then, next time it is powered
|
---|
5144 | on, its execution state will be fully restored from the saved state
|
---|
5145 | file and the execution will continue from the point where the state
|
---|
5146 | was saved.
|
---|
5147 |
|
---|
5148 | Similarly to snapshots, the current machine state can be discarded
|
---|
5149 | using <link to="IConsole::discardCurrentState()"/>.
|
---|
5150 |
|
---|
5151 | <h3>Taking and discarding snapshots</h3>
|
---|
5152 |
|
---|
5153 | The table below briefly explains the meaning of every snapshot
|
---|
5154 | operation:
|
---|
5155 |
|
---|
5156 | <table>
|
---|
5157 | <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
|
---|
5158 |
|
---|
5159 | <tr><td><link to="IConsole::takeSnapshot()"/></td>
|
---|
5160 |
|
---|
5161 | <td>Save the current state of the virtual machine, including all
|
---|
5162 | settings, contents of normal hard disks and the current modifications
|
---|
5163 | to immutable hard disks (for online snapshots)</td>
|
---|
5164 |
|
---|
5165 | <td>The current state is not changed (the machine will continue
|
---|
5166 | execution if it is being executed when the snapshot is
|
---|
5167 | taken)</td></tr>
|
---|
5168 |
|
---|
5169 | <tr><td><link to="IConsole::discardSnapshot()"/></td>
|
---|
5170 |
|
---|
5171 | <td>Forget the state of the virtual machine stored in the snapshot:
|
---|
5172 | dismiss all saved settings and delete the saved execution state (for
|
---|
5173 | online snapshots)</td>
|
---|
5174 |
|
---|
5175 | <td>Other snapshots (including child snapshots, if any) and the
|
---|
5176 | current state are not directly affected</td></tr>
|
---|
5177 |
|
---|
5178 | <tr><td><link to="IConsole::discardCurrentState()"/></td>
|
---|
5179 |
|
---|
5180 | <td>Restore the current state of the virtual machine from the state
|
---|
5181 | stored in the current snapshot, including all settings and hard disk
|
---|
5182 | contents</td>
|
---|
5183 |
|
---|
5184 | <td>The current state of the machine existed prior to this operation
|
---|
5185 | is lost</td></tr>
|
---|
5186 |
|
---|
5187 | <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
|
---|
5188 |
|
---|
5189 | <td>Completely revert the virtual machine to the state it was in
|
---|
5190 | before the current snapshot has been taken</td>
|
---|
5191 |
|
---|
5192 | <td>The current state, as well as the current snapshot, are
|
---|
5193 | lost</td></tr>
|
---|
5194 |
|
---|
5195 | </table>
|
---|
5196 |
|
---|
5197 | </desc>
|
---|
5198 |
|
---|
5199 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5200 | <desc>UUID of the snapshot.</desc>
|
---|
5201 | </attribute>
|
---|
5202 |
|
---|
5203 | <attribute name="name" type="wstring">
|
---|
5204 | <desc>Short name of the snapshot.</desc>
|
---|
5205 | </attribute>
|
---|
5206 |
|
---|
5207 | <attribute name="description" type="wstring">
|
---|
5208 | <desc>Optional description of the snapshot.</desc>
|
---|
5209 | </attribute>
|
---|
5210 |
|
---|
5211 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
5212 | <desc>
|
---|
5213 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
5214 | </desc>
|
---|
5215 | </attribute>
|
---|
5216 |
|
---|
5217 | <attribute name="online" type="boolean" readonly="yes">
|
---|
5218 | <desc>
|
---|
5219 | <tt>true</tt> if this snapshot is an online snapshot and
|
---|
5220 | <tt>false</tt> otherwise.
|
---|
5221 |
|
---|
5222 | <note>
|
---|
5223 | When this attribute is <tt>true</tt>, the
|
---|
5224 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
5225 | <link to="#machine"/> object associated with this snapshot
|
---|
5226 | will point to the saved state file. Otherwise, it will be
|
---|
5227 | <tt>null</tt>.
|
---|
5228 | </note>
|
---|
5229 | </desc>
|
---|
5230 | </attribute>
|
---|
5231 |
|
---|
5232 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
5233 | <desc>
|
---|
5234 | Virtual machine this snapshot is taken on. This object
|
---|
5235 | stores all settings the machine had when taking this snapshot.
|
---|
5236 | <note>
|
---|
5237 | The returned machine object is immutable, i.e. no
|
---|
5238 | any settings can be changed.
|
---|
5239 | </note>
|
---|
5240 | </desc>
|
---|
5241 | </attribute>
|
---|
5242 |
|
---|
5243 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
5244 | <desc>
|
---|
5245 | Parent snapshot (a snapshot this one is based on).
|
---|
5246 | <note>
|
---|
5247 | It's not an error to read this attribute on a snapshot
|
---|
5248 | that doesn't have a parent -- a null object will be
|
---|
5249 | returned to indicate this.
|
---|
5250 | </note>
|
---|
5251 | </desc>
|
---|
5252 | </attribute>
|
---|
5253 |
|
---|
5254 | <attribute name="children" type="ISnapshotCollection" readonly="yes">
|
---|
5255 | <desc>
|
---|
5256 | Child snapshots (all snapshots having this one as a parent).
|
---|
5257 | <note>
|
---|
5258 | In the current implementation, there can be only one
|
---|
5259 | child snapshot, or no children at all, meaning this is the
|
---|
5260 | last (head) snapshot.
|
---|
5261 | </note>
|
---|
5262 | </desc>
|
---|
5263 | </attribute>
|
---|
5264 |
|
---|
5265 | </interface>
|
---|
5266 |
|
---|
5267 | <!--
|
---|
5268 | // IHardDisk
|
---|
5269 | /////////////////////////////////////////////////////////////////////////
|
---|
5270 | -->
|
---|
5271 |
|
---|
5272 | <enum
|
---|
5273 | name="HardDiskStorageType"
|
---|
5274 | uuid="48138584-ad99-479d-a36f-eb82a7663685"
|
---|
5275 | >
|
---|
5276 | <desc>
|
---|
5277 | Virtual hard disk storage type.
|
---|
5278 | <see>IHardDisk</see>
|
---|
5279 | </desc>
|
---|
5280 | <const name="VirtualDiskImage" value="0">
|
---|
5281 | <desc>
|
---|
5282 | Virtual Disk Image, VDI (a regular file in the file
|
---|
5283 | system of the host OS, see <link to="IVirtualDiskImage"/>)
|
---|
5284 | </desc>
|
---|
5285 | </const>
|
---|
5286 | <const name="ISCSIHardDisk" value="1">
|
---|
5287 | <desc>
|
---|
5288 | iSCSI Remote Disk (a disk accessed via the Internet
|
---|
5289 | SCSI protocol over a TCP/IP network, see
|
---|
5290 | <link to="IISCSIHardDisk"/>)
|
---|
5291 | </desc>
|
---|
5292 | </const>
|
---|
5293 | <const name="VMDKImage" value="2">
|
---|
5294 | <desc>
|
---|
5295 | VMware Virtual Machine Disk image (a regular file in the file
|
---|
5296 | system of the host OS, see <link to="IVMDKImage"/>)
|
---|
5297 | </desc>
|
---|
5298 | </const>
|
---|
5299 | <const name="CustomHardDisk" value="3">
|
---|
5300 | <desc>
|
---|
5301 | Disk formats supported through plugins (see
|
---|
5302 | <link to="ICustomHardDisk"/>)
|
---|
5303 | </desc>
|
---|
5304 | </const>
|
---|
5305 | <const name="VHDImage" value="4">
|
---|
5306 | <desc>
|
---|
5307 | Virtual PC Virtual Machine Disk image (a regular file in the file
|
---|
5308 | system of the host OS, see <link to="IVHDImage"/>)
|
---|
5309 | </desc>
|
---|
5310 | </const>
|
---|
5311 | </enum>
|
---|
5312 |
|
---|
5313 | <enum
|
---|
5314 | name="HardDiskType"
|
---|
5315 | uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
|
---|
5316 | >
|
---|
5317 | <desc>
|
---|
5318 | Virtual hard disk type.
|
---|
5319 | <see>IHardDisk</see>
|
---|
5320 | </desc>
|
---|
5321 | <const name="NormalHardDisk" value="0">
|
---|
5322 | <desc>
|
---|
5323 | Normal hard disk (attached directly or indirectly, preserved
|
---|
5324 | when taking snapshots).
|
---|
5325 | </desc>
|
---|
5326 | </const>
|
---|
5327 | <const name="ImmutableHardDisk" value="1">
|
---|
5328 | <desc>
|
---|
5329 | Immutable hard disk (attached indirectly, changes are wiped out
|
---|
5330 | after powering off the virtual machine).
|
---|
5331 | </desc>
|
---|
5332 | </const>
|
---|
5333 | <const name="WritethroughHardDisk" value="2">
|
---|
5334 | <desc>
|
---|
5335 | Write through hard disk (attached directly, ignored when
|
---|
5336 | taking snapshots).
|
---|
5337 | </desc>
|
---|
5338 | </const>
|
---|
5339 | </enum>
|
---|
5340 |
|
---|
5341 | <interface
|
---|
5342 | name="IHardDiskAttachment" extends="$unknown"
|
---|
5343 | uuid="c0ffe596-21c6-4797-8d8a-b47b66881e7a"
|
---|
5344 | wsmap="struct"
|
---|
5345 | >
|
---|
5346 | <attribute name="hardDisk" type="IHardDisk" readonly="yes">
|
---|
5347 | <desc>Harddisk object this attachment is about.</desc>
|
---|
5348 | </attribute>
|
---|
5349 |
|
---|
5350 | <attribute name="controller" type="DiskControllerType" readonly="yes">
|
---|
5351 | <desc>Disk controller ID of this attachment.</desc>
|
---|
5352 | </attribute>
|
---|
5353 |
|
---|
5354 | <attribute name="deviceNumber" type="long" readonly="yes">
|
---|
5355 | <desc>Device number of the attachment.</desc>
|
---|
5356 | </attribute>
|
---|
5357 |
|
---|
5358 | </interface>
|
---|
5359 |
|
---|
5360 | <enumerator
|
---|
5361 | name="IHardDiskAttachmentEnumerator" type="IHardDiskAttachment"
|
---|
5362 | uuid="9955e486-2f0b-432a-99e4-0ebbd338875e"
|
---|
5363 | />
|
---|
5364 |
|
---|
5365 | <collection
|
---|
5366 | name="IHardDiskAttachmentCollection" type="IHardDiskAttachment"
|
---|
5367 | enumerator="IHardDiskAttachmentEnumerator"
|
---|
5368 | uuid="8f727842-bb77-45d4-92de-4ec14bf613c9"
|
---|
5369 | readonly="yes"
|
---|
5370 | />
|
---|
5371 |
|
---|
5372 | <enumerator
|
---|
5373 | name="IHardDiskEnumerator" type="IHardDisk"
|
---|
5374 | uuid="b976f97b-cdb8-47e3-9860-084031cbd533"
|
---|
5375 | />
|
---|
5376 |
|
---|
5377 | <collection
|
---|
5378 | name="IHardDiskCollection" type="IHardDisk"
|
---|
5379 | enumerator="IHardDiskEnumerator"
|
---|
5380 | uuid="43EAC2BC-5C61-40fa-BC38-46DE2C7DB6BB"
|
---|
5381 | readonly="yes"
|
---|
5382 | />
|
---|
5383 |
|
---|
5384 | <interface
|
---|
5385 | name="IHardDisk" extends="$unknown"
|
---|
5386 | uuid="FD443EC1-000F-4F5B-9282-D72760A66916"
|
---|
5387 | wsmap="managed"
|
---|
5388 | >
|
---|
5389 | <desc>
|
---|
5390 | The IHardDisk interface represents a virtual hard disk drive
|
---|
5391 | used by virtual machines.
|
---|
5392 |
|
---|
5393 | The virtual hard disk drive virtualizes the hard disk hardware and
|
---|
5394 | looks like a regular hard disk inside the virtual machine and
|
---|
5395 | the guest OS.
|
---|
5396 |
|
---|
5397 | <h3>Storage Types</h3>
|
---|
5398 |
|
---|
5399 | The <link to="HardDiskStorageType">storage type</link> of the
|
---|
5400 | virtual hard disk determines where and how it stores its data
|
---|
5401 | (sectors). Currently, the following storage types are supported:
|
---|
5402 |
|
---|
5403 | <ul>
|
---|
5404 |
|
---|
5405 | <li>
|
---|
5406 | <i>Virtual Disk Image (VDI)</i>, a regular file in the file system
|
---|
5407 | of the host OS (represented by the <link to="IVirtualDiskImage"/>
|
---|
5408 | interface). This file has a special format optimized so that unused
|
---|
5409 | sectors of data occupy much less space than on a physical hard disk.
|
---|
5410 | </li>
|
---|
5411 |
|
---|
5412 | <li>
|
---|
5413 | <i>iSCSI Remote Disk</i>, a disk accessed via the Internet SCSI
|
---|
5414 | protocol over a TCP/IP network link (represented by the
|
---|
5415 | <link to="IISCSIHardDisk"/> interface).
|
---|
5416 | </li>
|
---|
5417 |
|
---|
5418 | <li>
|
---|
5419 | <i>VMware VMDK image</i>, a regular file in the file system of the
|
---|
5420 | host OS (represented by the <link to="IVMDKImage"/> interface).
|
---|
5421 | Note that the regular file may be just a descriptor referring to
|
---|
5422 | further files, so don't make assumptions about the OS representation
|
---|
5423 | of a VMDK image.
|
---|
5424 | </li>
|
---|
5425 |
|
---|
5426 | <li>
|
---|
5427 | <i>Custom HardDisk</i>, a disk accessed via a plugin which is loaded
|
---|
5428 | when the disk is accessed (represented by the
|
---|
5429 | <link to="ICustomHardDisk"/> interface).
|
---|
5430 | </li>
|
---|
5431 |
|
---|
5432 | <li>
|
---|
5433 | <i>Virtual PC VHD Image</i>, a regular file in the file system of the
|
---|
5434 | host OS (represented by the <link to="IVHDImage"/> interface).
|
---|
5435 | </li>
|
---|
5436 |
|
---|
5437 | </ul>
|
---|
5438 |
|
---|
5439 | The storage type of the particular hard disk object is indicated by
|
---|
5440 | the <link to="#storageType"/> property.
|
---|
5441 |
|
---|
5442 | Each storage type is represented by its own interface (as shown
|
---|
5443 | above), that allows to query and set properties and perform
|
---|
5444 | operations specific to that storage type. When an IHardDisk object
|
---|
5445 | reports it uses some particular storage type, it also guaranteed to
|
---|
5446 | support the corresponding interface which you can query. And vice
|
---|
5447 | versa, every object that supports a storage-specific interface, also
|
---|
5448 | supports IHardDisk.
|
---|
5449 |
|
---|
5450 | <h3>Virtual Hard Disk Types</h3>
|
---|
5451 |
|
---|
5452 | The <link to="HardDiskType">type</link> of the virtual hard disk
|
---|
5453 | determines how it is attached to the virtual machine when you call
|
---|
5454 | <link to="IMachine::attachHardDisk()"/> and what happens to it when
|
---|
5455 | a <link to="ISnapshot">snapshot</link> of the virtual machine is
|
---|
5456 | taken.
|
---|
5457 |
|
---|
5458 | There are three types of virtual hard disks:
|
---|
5459 |
|
---|
5460 | <ul>
|
---|
5461 | <li><i>Normal</i></li>
|
---|
5462 | <li><i>Immutable</i></li>
|
---|
5463 | <li><i>Writethrough</i></li>
|
---|
5464 | </ul>
|
---|
5465 |
|
---|
5466 | The virtual disk type is indicated by the <link to="#type"/>
|
---|
5467 | property. Each of the above types is described in detail further
|
---|
5468 | down.
|
---|
5469 |
|
---|
5470 | There is also a forth, "hidden" virtual disk type:
|
---|
5471 | <i>Differencing</i>. It is "hidden" because you cannot directly
|
---|
5472 | create hard disks of this type -- they are automatically created by
|
---|
5473 | VirtualBox when necessary.
|
---|
5474 |
|
---|
5475 | <b>Differencing Hard Disks</b>
|
---|
5476 |
|
---|
5477 | Unlike disks of other types (that are similar to real hard disks),
|
---|
5478 | the differencing hard disk does not store the full range of data
|
---|
5479 | sectors. Instead, it stores only a subset of sectors of some other
|
---|
5480 | disk that were changed since the differencing hard disk has been
|
---|
5481 | created. Thus, every differencing hard disk has a parent hard disk
|
---|
5482 | it is linked to, and represents the difference between the initial
|
---|
5483 | and the current hard disk state. A differencing hard disk can be
|
---|
5484 | linked to another differencing hard disk -- this way, differencing
|
---|
5485 | hard disks can form a branch of changes. More over, a given virtual
|
---|
5486 | hard disk can have more than one differencing hard disk linked to
|
---|
5487 | it.
|
---|
5488 |
|
---|
5489 | A disk the differencing hard disk is linked to (or, in other words,
|
---|
5490 | based on) is called a <i>parent</i> hard disk and is accessible through
|
---|
5491 | the <link to="#parent"/> property. Similarly, all existing differencing
|
---|
5492 | hard disks for a given parent hard disk are called its <i>child</i> hard
|
---|
5493 | disks (and accessible through the <link to="#children"/> property).
|
---|
5494 |
|
---|
5495 | All differencing hard disks use Virtual Disk Image files to store
|
---|
5496 | changed sectors. They have the <link to="#type"/> property set to
|
---|
5497 | Normal, but can be easily distinguished from normal hard disks using
|
---|
5498 | the <link to="#parent"/> property: all differencing hard disks have
|
---|
5499 | a parent, while all normal hard disks don't.
|
---|
5500 |
|
---|
5501 | When the virtual machine makes an attempt to read a sector that is
|
---|
5502 | missing in a differencing hard disk, its parent is accessed to
|
---|
5503 | resolve the sector in question. This process continues until the
|
---|
5504 | sector is found, or until the root hard disk is encountered, which
|
---|
5505 | always contains all sectors. As a consequence,
|
---|
5506 |
|
---|
5507 | <ul>
|
---|
5508 |
|
---|
5509 | <li>
|
---|
5510 | The virtual hard disk geometry seen by the guest OS is
|
---|
5511 | always defined by the root hard disk.
|
---|
5512 | </li>
|
---|
5513 |
|
---|
5514 | <li>
|
---|
5515 | All hard disks on a branch, up to the root, must be
|
---|
5516 | <link to="#accessible"/> for a given differencing hard disk in order
|
---|
5517 | to let it function properly when the virtual machine is
|
---|
5518 | running.
|
---|
5519 | </li>
|
---|
5520 |
|
---|
5521 | </ul>
|
---|
5522 |
|
---|
5523 | Differencing hard disks can be implicitly created by VirtualBox in
|
---|
5524 | the following cases:
|
---|
5525 |
|
---|
5526 | <ul>
|
---|
5527 |
|
---|
5528 | <li>
|
---|
5529 | When a hard disk is <i>indirectly</i> attached to the virtual
|
---|
5530 | machine using <link to="IMachine::attachHardDisk()"/>. In this
|
---|
5531 | case, all disk writes performed by the guest OS will go to the
|
---|
5532 | created diffferencing hard disk, as opposed to the
|
---|
5533 | <i>direct</i> attachment, where all changes are written to the
|
---|
5534 | attached hard disk itself.
|
---|
5535 | </li>
|
---|
5536 |
|
---|
5537 | <li>
|
---|
5538 | When a <link to="ISnapshot">snapshot</link> of the virtual machine
|
---|
5539 | is taken. After that, disk writes to hard disks the differencing
|
---|
5540 | ones have been created for, will be directed to those differencing
|
---|
5541 | hard disks, to preserve the contents of the original disks.
|
---|
5542 | </li>
|
---|
5543 |
|
---|
5544 | </ul>
|
---|
5545 |
|
---|
5546 | Whether to create a differencing hard disk or not depends on the
|
---|
5547 | type of the hard disk attached to the virtual machine. This is
|
---|
5548 | explained below.
|
---|
5549 |
|
---|
5550 | Note that in the current implementation, only the
|
---|
5551 | <link to="VirtualDiskImage"/> storage type is used to
|
---|
5552 | represent differencing hard disks. In other words, all
|
---|
5553 | differencing hard disks are <link to="IVirtualDiskImage"/>
|
---|
5554 | objects.
|
---|
5555 |
|
---|
5556 | <b>Normal Hard Disks</b>
|
---|
5557 |
|
---|
5558 | Normal hard disks are the most commonly used virtual hard disk. A
|
---|
5559 | normal hard disk is attached to the machine directly if it is not
|
---|
5560 | already attached to some other machine. Otherwise, an attempt to
|
---|
5561 | make an indirect attachment through a differencing hard disk will be
|
---|
5562 | made. This attempt will fail if the hard disk is attached to a
|
---|
5563 | virtual machine without snapshots (because it's impossible to create
|
---|
5564 | a differencing hard disk based on a hard disk that is subject to
|
---|
5565 | change).
|
---|
5566 |
|
---|
5567 | When an indirect attachment takes place, in the simplest case, where
|
---|
5568 | the machine the hard disk is being attached to doesn't have
|
---|
5569 | snapshots, the differencing hard disk will be based on the normal
|
---|
5570 | hard disk being attached. Otherwise, the first (i.e. the most
|
---|
5571 | recent) descendant of the given normal hard disk found in the
|
---|
5572 | current snapshot branch (starting from the current snapshot and
|
---|
5573 | going up to the root) will be actually used as a base.
|
---|
5574 |
|
---|
5575 | Note that when you detach an indirectly attached hard disk from the
|
---|
5576 | machine, the created differencing hard disk image is simply
|
---|
5577 | <b>deleted</b>, so <b>all changes are lost</b>. If you attach the
|
---|
5578 | same disk again, a clean differencing disk will be created based on
|
---|
5579 | the most recent child, as described above.
|
---|
5580 |
|
---|
5581 | When taking a snapshot, the contents of all normal hard disks (and
|
---|
5582 | all differencing disks whose roots are normal hard disks) currently
|
---|
5583 | attached to the virtual machine is preserved by creating
|
---|
5584 | differencing hard disks based on them.
|
---|
5585 |
|
---|
5586 | <b>Immutable Hard Disks</b>
|
---|
5587 |
|
---|
5588 | Immutable hard disks can be used to provide a sort of read-only
|
---|
5589 | access. An immutable hard disk is always attached indirectly. The
|
---|
5590 | created differencing hard disk is automatically wiped out (recreated
|
---|
5591 | from scratch) every time you power off the virtual machine. Thus,
|
---|
5592 | the contents of the immutable disk remains unchanged between runs.
|
---|
5593 |
|
---|
5594 | Detaching an immutable hard disk deletes the differencing disk
|
---|
5595 | created for it, with the same effect as in case with normal hard
|
---|
5596 | disks.
|
---|
5597 |
|
---|
5598 | When taking a snapshot, the differencing part of the immutable
|
---|
5599 | hard disk is cloned (i.e. copied to a separate Virtual Disk Image
|
---|
5600 | file) without any changes. This is necessary to preserve the exact
|
---|
5601 | virtual machine state when you create an online snapshot.
|
---|
5602 |
|
---|
5603 | <b>Writethrough Hard Disks</b>
|
---|
5604 |
|
---|
5605 | Hard disks of this type are always attached directly. This means
|
---|
5606 | that every given writethrough hard disk can be attached only to one
|
---|
5607 | virtual machine at a time.
|
---|
5608 |
|
---|
5609 | It is impossible to take a snapshot of a virtual machine with the
|
---|
5610 | writethrough hard disk attached, because taking a snapshot implies
|
---|
5611 | saving the execution state and preserving the contents of all hard
|
---|
5612 | disks, but writethrough hard disks cannot be preserved. Preserving
|
---|
5613 | hard disk contents is necessary to ensure the guest OS stored in the
|
---|
5614 | snapshot will get the same hard disk state when restored, which is
|
---|
5615 | especially important when it has open file handles or when there are
|
---|
5616 | cached files and directories stored in memory.
|
---|
5617 |
|
---|
5618 | <h3>Creating, Opening and Registering Hard Disks</h3>
|
---|
5619 |
|
---|
5620 | Non-differencing hard disks are either created from scratch using
|
---|
5621 | <link to="IVirtualBox::createHardDisk()"/> or opened from a VDI file
|
---|
5622 | using <link to="IVirtualBox::openVirtualDiskImage()"/> (only for hard
|
---|
5623 | disks using the VirtualDiskImage storage type). Once a hard disk is
|
---|
5624 | created or opened, it needs to be registered using
|
---|
5625 | <link to="IVirtualBox::registerHardDisk()"/> to make it available for
|
---|
5626 | attaching to virtual machines. See the documentation of individual
|
---|
5627 | interfaces for various storage types to get more information.
|
---|
5628 |
|
---|
5629 | Differencing hard disks are never created explicitly and cannot
|
---|
5630 | be registered or unregistered; they are automatically registered
|
---|
5631 | upon creation and deregistered when deleted.
|
---|
5632 |
|
---|
5633 | <h3>More about Indirect Hard Disk Attachments</h3>
|
---|
5634 |
|
---|
5635 | Normally, when you attach a hard disk to the virtual machine, and then
|
---|
5636 | query the corresponding attachment using
|
---|
5637 | <link to="IMachine::getHardDisk()"/> or
|
---|
5638 | <link to="IMachine::hardDiskAttachments"/> you will get the same hard
|
---|
5639 | disk object, whose UUID you passed earlier to
|
---|
5640 | <link to="IMachine::attachHardDisk()"/>. However, when an indirect
|
---|
5641 | attachment takes place, calling <link to="IMachine::getHardDisk()"/>
|
---|
5642 | will return a differencing hard disk object, that is either based on the
|
---|
5643 | attached hard disk or on another differencing hard disk, the attached
|
---|
5644 | hard disk is eventually a root for (as described above). In both cases
|
---|
5645 | the returned hard disk object is the object the virtual machine actually
|
---|
5646 | uses to perform disk writes to.
|
---|
5647 |
|
---|
5648 | Regardless of whether the attachment is direct or indirect, the
|
---|
5649 | <link to="#machineId"/> property of the attached disk will contain an
|
---|
5650 | UUID of the machine object <link to="IMachine::attachHardDisk()"/>
|
---|
5651 | has been called on.
|
---|
5652 |
|
---|
5653 | Note that both <link to="IMachine::attachHardDisk()"/> and
|
---|
5654 | <link to="IMachine::detachHardDisk()"/> are <i>lazy</i> operations. In
|
---|
5655 | particular, this means that when an indirect attachment is made,
|
---|
5656 | differencing hard disks are not created until machine settings are
|
---|
5657 | committed using <link to="IMachine::saveSettings()"/>. Similarly, when a
|
---|
5658 | differencing hard disk is detached, it is not deleted until
|
---|
5659 | <link to="IMachine::saveSettings()"/> is called. Calling
|
---|
5660 | <link to="IMachine::discardSettings()"/> cancels all lazy attachments or
|
---|
5661 | detachments made since the last commit and effectively restores the
|
---|
5662 | previous set of hard disks.
|
---|
5663 |
|
---|
5664 | <h3>Hard Disk Accessibility</h3>
|
---|
5665 |
|
---|
5666 | The <link to="#accessible"/> attribute of the hard disk object
|
---|
5667 | defines the accessibility state of the respective hard disk storage
|
---|
5668 | (for example, the VDI file for IVirtualDiskImage objects). If the
|
---|
5669 | value of this attribute is <tt>false</tt> then some hard disk
|
---|
5670 | attributes may contain invalid or outdated values (for example, the
|
---|
5671 | virtual or the actual hard disk size) until a new accessibility
|
---|
5672 | check is done that returns <tt>true</tt> (see the attribute
|
---|
5673 | description for more details).
|
---|
5674 |
|
---|
5675 | <note>
|
---|
5676 | Because of the possible slowness of the accessibility check,
|
---|
5677 | it is not implicitly performed upon the VirtualBox server startup
|
---|
5678 | (to prevent the application freeze). In partcular, this means that
|
---|
5679 | if you try to read hard disk properties that depend on the
|
---|
5680 | accessibility state without first reading the value of the
|
---|
5681 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
5682 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
5683 | </note>
|
---|
5684 |
|
---|
5685 | </desc>
|
---|
5686 |
|
---|
5687 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5688 | <desc>
|
---|
5689 |
|
---|
5690 | UUID of the hard disk. For newly created hard disk objects,
|
---|
5691 | this value is a randomly generated UUID.
|
---|
5692 |
|
---|
5693 | </desc>
|
---|
5694 | </attribute>
|
---|
5695 |
|
---|
5696 | <attribute name="description" type="wstring">
|
---|
5697 | <desc>
|
---|
5698 |
|
---|
5699 | Optional description of the hard disk. For a newly created hard
|
---|
5700 | disk, this value is <tt>null</tt>.
|
---|
5701 |
|
---|
5702 | <note>For some storage types, reading this property is
|
---|
5703 | meaningless when <link to="#accessible"/> is <tt>false</tt>.
|
---|
5704 | Also, you cannot assign it a new value in this case.</note>
|
---|
5705 |
|
---|
5706 | </desc>
|
---|
5707 | </attribute>
|
---|
5708 |
|
---|
5709 | <attribute name="storageType" type="HardDiskStorageType" readonly="yes">
|
---|
5710 | <desc>
|
---|
5711 |
|
---|
5712 | Storage type of this hard disk.
|
---|
5713 |
|
---|
5714 | Storage type is defined when you open or create a new hard disk
|
---|
5715 | object.
|
---|
5716 |
|
---|
5717 | </desc>
|
---|
5718 | </attribute>
|
---|
5719 |
|
---|
5720 | <attribute name="location" type="wstring" readonly="yes">
|
---|
5721 | <desc>
|
---|
5722 |
|
---|
5723 | Storage location of this hard disk. The returned string serves
|
---|
5724 | for informational purposes only. To access detailed information
|
---|
5725 | about the storage, query the appropriate storage-specific
|
---|
5726 | interface.
|
---|
5727 |
|
---|
5728 | </desc>
|
---|
5729 | </attribute>
|
---|
5730 |
|
---|
5731 | <attribute name="type" type="HardDiskType">
|
---|
5732 | <desc>
|
---|
5733 |
|
---|
5734 | Type (behavior) of this hard disk. For a newly created or opened hard
|
---|
5735 | disk, this value is <link to="HardDiskType::NormalHardDisk"/>.
|
---|
5736 |
|
---|
5737 | <note>
|
---|
5738 | In the current implementation, this property can be
|
---|
5739 | changed only on an unregistered hard disk object. This may be
|
---|
5740 | changed later.
|
---|
5741 | </note>
|
---|
5742 |
|
---|
5743 | </desc>
|
---|
5744 | </attribute>
|
---|
5745 |
|
---|
5746 | <attribute name="parent" type="IHardDisk" readonly="yes">
|
---|
5747 | <desc>
|
---|
5748 |
|
---|
5749 | Parent of this hard disk (a hard disk this one is directly based
|
---|
5750 | on).
|
---|
5751 |
|
---|
5752 | Only differencing hard disks have parents, so a <tt>null</tt>
|
---|
5753 | object is returned for a hard disk of any other type.
|
---|
5754 | </desc>
|
---|
5755 | </attribute>
|
---|
5756 |
|
---|
5757 | <attribute name="children" type="IHardDiskCollection" readonly="yes">
|
---|
5758 | <desc>
|
---|
5759 |
|
---|
5760 | Children of this hard disk (all differencing hard disks for
|
---|
5761 | those this one is a parent). An empty collection is returned, if
|
---|
5762 | this hard disk doesn't have any children.
|
---|
5763 |
|
---|
5764 | </desc>
|
---|
5765 | </attribute>
|
---|
5766 |
|
---|
5767 | <attribute name="root" type="IHardDisk" readonly="yes">
|
---|
5768 | <desc>
|
---|
5769 |
|
---|
5770 | Root hard disk of this hard disk. If this hard disk is a
|
---|
5771 | differencing hard disk, its root hard disk is the first disk on
|
---|
5772 | the branch. For all other types of hard disks, this property
|
---|
5773 | returns the hard disk object itself (i.e. the same object you
|
---|
5774 | read this property on).
|
---|
5775 |
|
---|
5776 | </desc>
|
---|
5777 | </attribute>
|
---|
5778 |
|
---|
5779 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
5780 | <desc>
|
---|
5781 |
|
---|
5782 | Whether the hard disk storage is currently accessible or not.
|
---|
5783 | The storage, for example, can be unaccessible if it doesn't exist
|
---|
5784 | or if it is placed on a network resource that is not available
|
---|
5785 | by the time this attribute is read.
|
---|
5786 |
|
---|
5787 | In the current implementation, the value of this property is
|
---|
5788 | also <tt>false</tt> if this hard disk is attached to a running
|
---|
5789 | virtual machine.
|
---|
5790 |
|
---|
5791 | The accessibility check is performed automatically every time
|
---|
5792 | this attribute is read. You should keep it in mind that this check
|
---|
5793 | may be slow and can block the calling thread for a long time (for
|
---|
5794 | example, if the network resourse where the hard disk storage is
|
---|
5795 | located is down).
|
---|
5796 |
|
---|
5797 | The following attributes of the hard disk object are considered
|
---|
5798 | to be invalid when this attribute is <tt>false</tt>:
|
---|
5799 | <ul>
|
---|
5800 | <li><link to="#size"/></li>
|
---|
5801 | <li><link to="#actualSize"/></li>
|
---|
5802 | </ul>
|
---|
5803 | Individual hard disk storage type interfaces may define
|
---|
5804 | additional attributes that depend on the accessibility state.
|
---|
5805 | </desc>
|
---|
5806 | </attribute>
|
---|
5807 |
|
---|
5808 | <attribute name="allAccessible" type="boolean" readonly="yes">
|
---|
5809 | <desc>
|
---|
5810 |
|
---|
5811 | Whether the whole hard disk branch, starting from this image and
|
---|
5812 | going through its ancestors up to the root, is accessible or
|
---|
5813 | not.
|
---|
5814 |
|
---|
5815 | This property makes sense only for differencing hard disks. For
|
---|
5816 | all other types of hard disks it returns the same value as
|
---|
5817 | <link to="#accessible"/>.
|
---|
5818 |
|
---|
5819 | </desc>
|
---|
5820 | </attribute>
|
---|
5821 |
|
---|
5822 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
5823 | <desc>
|
---|
5824 |
|
---|
5825 | String describing the reason of inaccessibility of this hard
|
---|
5826 | disk after the last call to <link to="#accessible"/> that
|
---|
5827 | returned <tt>false</tt>. A <tt>null</tt> value of this property
|
---|
5828 | means that the last accessibility check returned <tt>true</tt>.
|
---|
5829 |
|
---|
5830 | </desc>
|
---|
5831 | </attribute>
|
---|
5832 |
|
---|
5833 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
5834 | <desc>
|
---|
5835 |
|
---|
5836 | Logical size of this hard disk (in megabytes), as reported to the
|
---|
5837 | guest OS running inside the vurtual machine this disk is
|
---|
5838 | attached to. The logical size is defined when the hard disk is
|
---|
5839 | created.
|
---|
5840 |
|
---|
5841 | <note>Reading this property on a differencing hard disk will
|
---|
5842 | return the size of its root hard disk.</note>
|
---|
5843 |
|
---|
5844 | <note>Reading this property is meaningless when
|
---|
5845 | <link to="#accessible"/> is <tt>false</tt></note>
|
---|
5846 |
|
---|
5847 | </desc>
|
---|
5848 | </attribute>
|
---|
5849 |
|
---|
5850 | <attribute name="actualSize" type="unsigned long long" readonly="yes">
|
---|
5851 | <desc>
|
---|
5852 |
|
---|
5853 | Physical size of the storage used to store hard disk data (in
|
---|
5854 | bytes). This size is usually less than the logical size of the
|
---|
5855 | hard disk, depending on the storage type and on the size
|
---|
5856 | optimization method used for that storage.
|
---|
5857 |
|
---|
5858 | <note>Reading this property is meaningless when
|
---|
5859 | <link to="#accessible"/> is <tt>false</tt></note>
|
---|
5860 |
|
---|
5861 | </desc>
|
---|
5862 | </attribute>
|
---|
5863 |
|
---|
5864 | <attribute name="machineId" type="uuid" readonly="yes">
|
---|
5865 | <desc>
|
---|
5866 |
|
---|
5867 | UUID of the machine this hard disk is attached to (or a
|
---|
5868 | <tt>null</tt> UUID if it is not attached).
|
---|
5869 |
|
---|
5870 | <note>Immutable hard disks are never attached directly, so this
|
---|
5871 | attribute is always <tt>null</tt> in this case.</note>
|
---|
5872 |
|
---|
5873 | </desc>
|
---|
5874 | </attribute>
|
---|
5875 |
|
---|
5876 | <attribute name="snapshotId" type="uuid" readonly="yes">
|
---|
5877 | <desc>
|
---|
5878 |
|
---|
5879 | UUID of the <link to="ISnapshot">snapshot</link> this hard disk
|
---|
5880 | is associated with (or <tt>null</tt> UUID if it is not
|
---|
5881 | associated with any snapshot).
|
---|
5882 |
|
---|
5883 | <note>
|
---|
5884 | This attribute is always <tt>null</tt> if <link to="#machineId"/>
|
---|
5885 | is <tt>null</tt>.
|
---|
5886 | </note>
|
---|
5887 |
|
---|
5888 | <note>
|
---|
5889 | Writethrough hard disks are always attached directly and cannot be
|
---|
5890 | involved when taking snapshots, so this attribute is meaningless and
|
---|
5891 | therefore always <tt>null</tt>.
|
---|
5892 | </note>
|
---|
5893 |
|
---|
5894 | </desc>
|
---|
5895 | </attribute>
|
---|
5896 |
|
---|
5897 | <method name="cloneToImage">
|
---|
5898 |
|
---|
5899 | <desc>
|
---|
5900 |
|
---|
5901 | Starts creating a clone of this hard disk. The cloned hard disk
|
---|
5902 | will use the specified Virtual Disk Image file as a storage and
|
---|
5903 | will contain exactly the same sector data as the hard disk being
|
---|
5904 | cloned, except that a new UUID for the clone will be randomly
|
---|
5905 | generated.
|
---|
5906 |
|
---|
5907 | The specified image file path can be absolute (full path) or
|
---|
5908 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
5909 | home directory</link>. If only a file name without any path is
|
---|
5910 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
5911 | default VDI folder</link> will be used as a path to the image
|
---|
5912 | file.
|
---|
5913 |
|
---|
5914 | It is an error to use the object returned in the @a image
|
---|
5915 | parameter until the returned @a progress object reports success.
|
---|
5916 |
|
---|
5917 | <note>In the current implementation, only non-differencing hard
|
---|
5918 | disks can be cloned.</note>
|
---|
5919 |
|
---|
5920 | </desc>
|
---|
5921 |
|
---|
5922 | <param name="filePath" type="wstring" dir="in">
|
---|
5923 | <desc>Path to a file where to store the cloned hard disk.</desc>
|
---|
5924 | </param>
|
---|
5925 | <param name="image" type="IVirtualDiskImage" dir="out">
|
---|
5926 | <desc>Cloned hard disk object.</desc>
|
---|
5927 | </param>
|
---|
5928 | <param name="progress" type="IProgress" dir="return">
|
---|
5929 | <desc>Progress object to track the operation completion.</desc>
|
---|
5930 | </param>
|
---|
5931 |
|
---|
5932 | </method>
|
---|
5933 |
|
---|
5934 | </interface>
|
---|
5935 |
|
---|
5936 | <!--
|
---|
5937 | // IVirtualDiskImage
|
---|
5938 | /////////////////////////////////////////////////////////////////////////
|
---|
5939 | -->
|
---|
5940 |
|
---|
5941 | <interface
|
---|
5942 | name="IVirtualDiskImage" extends="$unknown"
|
---|
5943 | uuid="a8265b5a-0d20-4a46-a02f-65693a4e8239"
|
---|
5944 | wsmap="managed"
|
---|
5945 | >
|
---|
5946 |
|
---|
5947 | <desc>
|
---|
5948 | The IVirtualDiskImage interface represent a specific type of
|
---|
5949 | <link to="IHardDisk" /> that uses VDI image files.
|
---|
5950 |
|
---|
5951 | The Virtual Disk Image (VDI) format is VirtualBox's native format for
|
---|
5952 | hard disk containers.
|
---|
5953 |
|
---|
5954 | Objects that support this interface also support the
|
---|
5955 | <link to="IHardDisk"/> interface.
|
---|
5956 |
|
---|
5957 | Hard disks using virtual disk images can be either opened using
|
---|
5958 | <link to="IVirtualBox::openHardDisk()"/> or created from
|
---|
5959 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
5960 |
|
---|
5961 | When a new hard disk object is created from scratch, an image file for it
|
---|
5962 | is not automatically created. To do it, you need to specify a
|
---|
5963 | valid <link to="#filePath">file path</link>, and call
|
---|
5964 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
5965 | When it is done, the hard disk object can be registered by calling
|
---|
5966 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
5967 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
5968 | virtual machines.
|
---|
5969 |
|
---|
5970 | The <link to="IHardDisk::description">description</link> of the
|
---|
5971 | Virtual Disk Image is stored in the image file. For this reason,
|
---|
5972 | changing the value of this property requires the hard disk to be
|
---|
5973 | <link to="IHardDisk::accessible">accessible</link>. The description
|
---|
5974 | of a registered hard disk can be changed only if a virtual machine
|
---|
5975 | using it is not running.
|
---|
5976 |
|
---|
5977 | </desc>
|
---|
5978 |
|
---|
5979 | <attribute name="filePath" type="wstring">
|
---|
5980 | <desc>
|
---|
5981 |
|
---|
5982 | Full file name of the virtual disk image of this hard disk. For
|
---|
5983 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
5984 |
|
---|
5985 | When assigning a new path, it can be absolute (full path) or relative
|
---|
5986 | to the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
5987 | directory</link>. If only a file name without any path is given,
|
---|
5988 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
5989 | folder</link> will be used as a path to the image file.
|
---|
5990 |
|
---|
5991 | When reading this propery, a full path is always returned.
|
---|
5992 |
|
---|
5993 | <note>
|
---|
5994 | This property cannot be changed when <link to="#created"/>
|
---|
5995 | returns <tt>true</tt>.
|
---|
5996 | </note>
|
---|
5997 |
|
---|
5998 | </desc>
|
---|
5999 | </attribute>
|
---|
6000 |
|
---|
6001 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6002 | <desc>
|
---|
6003 |
|
---|
6004 | Whether the virual disk image is created or not. For newly
|
---|
6005 | created hard disk objects or after a successful invocation of
|
---|
6006 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6007 | <link to="#createFixedImage()"/> or <link
|
---|
6008 | to="#createDynamicImage()"/> is called.
|
---|
6009 |
|
---|
6010 | </desc>
|
---|
6011 | </attribute>
|
---|
6012 |
|
---|
6013 | <method name="createDynamicImage">
|
---|
6014 |
|
---|
6015 | <desc>
|
---|
6016 |
|
---|
6017 | Starts creating a dymically expanding hard disk image in the
|
---|
6018 | background. The previous image associated with this object, if
|
---|
6019 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6020 | the operation will fail.
|
---|
6021 |
|
---|
6022 | <note>After the returned progress object reports that the
|
---|
6023 | operation is complete, this hard disk object can be
|
---|
6024 | <link to="IVirtualBox::registerHardDisk()">registered</link>
|
---|
6025 | within this VirtualBox installation.</note>
|
---|
6026 |
|
---|
6027 | </desc>
|
---|
6028 |
|
---|
6029 | <param name="size" type="unsigned long long" dir="in">
|
---|
6030 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6031 | </param>
|
---|
6032 | <param name="progress" type="IProgress" dir="return">
|
---|
6033 | <desc>Progress object to track the operation completion.</desc>
|
---|
6034 | </param>
|
---|
6035 |
|
---|
6036 | </method>
|
---|
6037 |
|
---|
6038 | <method name="createFixedImage">
|
---|
6039 | <desc>
|
---|
6040 |
|
---|
6041 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6042 | previous image, if any, must be deleted using
|
---|
6043 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6044 |
|
---|
6045 | <note>
|
---|
6046 | After the returned progress object reports that the
|
---|
6047 | operation is complete, this hard disk object can be
|
---|
6048 | <link to="IVirtualBox::registerHardDisk()">registered</link>
|
---|
6049 | within this VirtualBox installation.
|
---|
6050 | </note>
|
---|
6051 |
|
---|
6052 | </desc>
|
---|
6053 |
|
---|
6054 | <param name="size" type="unsigned long long" dir="in">
|
---|
6055 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6056 | </param>
|
---|
6057 | <param name="progress" type="IProgress" dir="return">
|
---|
6058 | <desc>Progress object to track the operation completion.</desc>
|
---|
6059 | </param>
|
---|
6060 |
|
---|
6061 | </method>
|
---|
6062 |
|
---|
6063 | <method name="deleteImage">
|
---|
6064 | <desc>
|
---|
6065 |
|
---|
6066 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6067 | registered within this VirtualBox installation, otherwise the
|
---|
6068 | operation will fail.
|
---|
6069 |
|
---|
6070 | <note>
|
---|
6071 | After this operation succeeds, it will be impossible to
|
---|
6072 | register the hard disk until the image file is created
|
---|
6073 | again.
|
---|
6074 | </note>
|
---|
6075 |
|
---|
6076 | <note>
|
---|
6077 | This operation is valid only for non-differencing hard disks, after
|
---|
6078 | they are unregistered using
|
---|
6079 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6080 | </note>
|
---|
6081 |
|
---|
6082 | </desc>
|
---|
6083 | </method>
|
---|
6084 |
|
---|
6085 | </interface>
|
---|
6086 |
|
---|
6087 | <!--
|
---|
6088 | // IISCSIHardDisk
|
---|
6089 | /////////////////////////////////////////////////////////////////////////
|
---|
6090 | -->
|
---|
6091 |
|
---|
6092 | <interface
|
---|
6093 | name="IISCSIHardDisk" extends="$unknown"
|
---|
6094 | uuid="003f6ca9-3257-4ef9-99c9-c66ce44576cb"
|
---|
6095 | wsmap="managed"
|
---|
6096 | >
|
---|
6097 |
|
---|
6098 | <desc>
|
---|
6099 | THe IISCSIHardDisk interface represents a specific type of
|
---|
6100 | <link to="IHardDisk"/> that uses iSCSI.
|
---|
6101 |
|
---|
6102 | The IISCSIHardDisk interface represents <link to="IHardDisk">virtual
|
---|
6103 | hard disks</link> that use the Internet SCSI (iSCSI) protocol to store
|
---|
6104 | hard disk data on remote machines.
|
---|
6105 |
|
---|
6106 | Objects that support this interface also support the
|
---|
6107 | <link to="IHardDisk"/> interface.
|
---|
6108 |
|
---|
6109 | iSCSI hard disks can be created using
|
---|
6110 | <link to="IVirtualBox::createHardDisk()"/>. When a new hard disk object
|
---|
6111 | is created, all its properties are uninitialized. After you assign some
|
---|
6112 | meaningful values to them, the hard disk object can be registered by
|
---|
6113 | calling <link to="IVirtualBox::registerHardDisk()"/> and
|
---|
6114 | then <link to="IMachine::attachHardDisk()">attached</link> to virtual
|
---|
6115 | machines.
|
---|
6116 |
|
---|
6117 | The <link to="IHardDisk::description">description</link>
|
---|
6118 | of the iSCSI hard disk is stored in the VirtualBox
|
---|
6119 | configuration file, so it can be changed (at appropriate
|
---|
6120 | times) even when
|
---|
6121 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6122 | <tt>false</tt>. However, the hard disk must not be
|
---|
6123 | attached to a running virtual machine.
|
---|
6124 |
|
---|
6125 | <note>
|
---|
6126 | In the current imlementation, the type of all iSCSI hard disks
|
---|
6127 | is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
|
---|
6128 | and cannot be changed.
|
---|
6129 | </note>
|
---|
6130 |
|
---|
6131 | </desc>
|
---|
6132 |
|
---|
6133 | <attribute name="server" type="wstring">
|
---|
6134 | <desc>
|
---|
6135 |
|
---|
6136 | iSCSI Server name (either a host name or an IP address). For
|
---|
6137 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6138 |
|
---|
6139 | </desc>
|
---|
6140 | </attribute>
|
---|
6141 |
|
---|
6142 | <attribute name="port" type="unsigned short">
|
---|
6143 | <desc>
|
---|
6144 |
|
---|
6145 | iSCSI Server port. For newly created hard disk objects, this
|
---|
6146 | value is <tt>0</tt>, which means the default port.
|
---|
6147 |
|
---|
6148 | </desc>
|
---|
6149 | </attribute>
|
---|
6150 |
|
---|
6151 | <attribute name="target" type="wstring">
|
---|
6152 | <desc>
|
---|
6153 |
|
---|
6154 | iSCSI target name. For newly created hard disk objects, this
|
---|
6155 | value is <tt>null</tt>.
|
---|
6156 |
|
---|
6157 | </desc>
|
---|
6158 | </attribute>
|
---|
6159 |
|
---|
6160 | <attribute name="lun" type="unsigned long long">
|
---|
6161 | <desc>
|
---|
6162 |
|
---|
6163 | Logical unit number for this iSCSI disk. For newly created hard
|
---|
6164 | disk objects, this value is <tt>0</tt>.
|
---|
6165 |
|
---|
6166 | </desc>
|
---|
6167 | </attribute>
|
---|
6168 |
|
---|
6169 | <attribute name="userName" type="wstring">
|
---|
6170 | <desc>
|
---|
6171 |
|
---|
6172 | User name for accessing this iSCSI disk. For newly created hard
|
---|
6173 | disk objects, this value is <tt>null</tt>.
|
---|
6174 |
|
---|
6175 | </desc>
|
---|
6176 | </attribute>
|
---|
6177 |
|
---|
6178 | <attribute name="password" type="wstring">
|
---|
6179 | <desc>
|
---|
6180 |
|
---|
6181 | User password for accessing this iSCSI disk. For newly created
|
---|
6182 | hard disk objects, this value is <tt>null</tt>.
|
---|
6183 |
|
---|
6184 | </desc>
|
---|
6185 | </attribute>
|
---|
6186 |
|
---|
6187 | </interface>
|
---|
6188 |
|
---|
6189 | <!--
|
---|
6190 | // IVMDKImage
|
---|
6191 | /////////////////////////////////////////////////////////////////////////
|
---|
6192 | -->
|
---|
6193 |
|
---|
6194 | <interface
|
---|
6195 | name="IVMDKImage" extends="$unknown"
|
---|
6196 | uuid="178398f5-8559-4fee-979e-420af5b53eef"
|
---|
6197 | wsmap="managed"
|
---|
6198 | >
|
---|
6199 | <desc>
|
---|
6200 | The IVMDKImage interface represents a specific type of
|
---|
6201 | <link to="IHardDisk"/> that uses VMDK image files.
|
---|
6202 |
|
---|
6203 | The Virtual Machine Disk (VMDK) format is the industry standard format
|
---|
6204 | for virtual hard disk image files, which VirtualBox supports besides its
|
---|
6205 | own native VDI format.
|
---|
6206 |
|
---|
6207 | Objects that support this interface also support the
|
---|
6208 | <link to="IHardDisk"/> interface.
|
---|
6209 |
|
---|
6210 | Hard disks using VMDK images can be either opened using
|
---|
6211 | <link to="IVirtualBox::openHardDisk()"/> or created from
|
---|
6212 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
6213 |
|
---|
6214 | When a new hard disk object is created from scratch, an image file for it
|
---|
6215 | is not automatically created. To do it, you need to specify a
|
---|
6216 | valid <link to="#filePath">file path</link>, and call
|
---|
6217 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
6218 | When it is done, the hard disk object can be registered by calling
|
---|
6219 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
6220 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
6221 | virtual machines.
|
---|
6222 |
|
---|
6223 | The <link to="IHardDisk::description">description</link>
|
---|
6224 | of the VMDK hard disk is stored in the VirtualBox
|
---|
6225 | configuration file, so it can be changed (at appropriate
|
---|
6226 | times) even when
|
---|
6227 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6228 | <tt>false</tt>. However, the hard disk must not be
|
---|
6229 | attached to a running virtual machine.
|
---|
6230 |
|
---|
6231 | <note>
|
---|
6232 | In the current imlementation, the type of all VMDK hard disks
|
---|
6233 | is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
|
---|
6234 | and cannot be changed.
|
---|
6235 | </note>
|
---|
6236 |
|
---|
6237 | </desc>
|
---|
6238 |
|
---|
6239 | <attribute name="filePath" type="wstring">
|
---|
6240 | <desc>
|
---|
6241 |
|
---|
6242 | Full file name of the VMDK image of this hard disk. For
|
---|
6243 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6244 |
|
---|
6245 | When assigning a new path, it can be absolute (full path) or relative
|
---|
6246 | to the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
6247 | directory</link>. If only a file name without any path is given,
|
---|
6248 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
6249 | folder</link> will be used as a path to the image file.
|
---|
6250 |
|
---|
6251 | When reading this propery, a full path is always returned.
|
---|
6252 |
|
---|
6253 | <note>
|
---|
6254 | This property cannot be changed when <link to="#created"/>
|
---|
6255 | returns <tt>true</tt>.
|
---|
6256 | </note>
|
---|
6257 |
|
---|
6258 | </desc>
|
---|
6259 | </attribute>
|
---|
6260 |
|
---|
6261 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6262 | <desc>
|
---|
6263 |
|
---|
6264 | Whether the virual disk image is created or not. For newly created
|
---|
6265 | hard disk objects or after a successful invocation of
|
---|
6266 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6267 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
|
---|
6268 | is called.
|
---|
6269 |
|
---|
6270 | </desc>
|
---|
6271 | </attribute>
|
---|
6272 |
|
---|
6273 | <method name="createDynamicImage">
|
---|
6274 |
|
---|
6275 | <desc>
|
---|
6276 |
|
---|
6277 | Starts creating a dymically expanding hard disk image in the
|
---|
6278 | background. The previous image associated with this object, if
|
---|
6279 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6280 | the operation will fail.
|
---|
6281 |
|
---|
6282 | <note>
|
---|
6283 | After the returned progress object reports that the
|
---|
6284 | operation is complete, this hard disk object can be
|
---|
6285 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6286 | this VirtualBox installation.
|
---|
6287 | </note>
|
---|
6288 |
|
---|
6289 | </desc>
|
---|
6290 |
|
---|
6291 | <param name="size" type="unsigned long long" dir="in">
|
---|
6292 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6293 | </param>
|
---|
6294 | <param name="progress" type="IProgress" dir="return">
|
---|
6295 | <desc>Progress object to track the operation completion.</desc>
|
---|
6296 | </param>
|
---|
6297 |
|
---|
6298 | </method>
|
---|
6299 |
|
---|
6300 | <method name="createFixedImage">
|
---|
6301 | <desc>
|
---|
6302 |
|
---|
6303 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6304 | previous image, if any, must be deleted using
|
---|
6305 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6306 |
|
---|
6307 | <note>
|
---|
6308 | After the returned progress object reports that the
|
---|
6309 | operation is complete, this hard disk object can be
|
---|
6310 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6311 | this VirtualBox installation.
|
---|
6312 | </note>
|
---|
6313 |
|
---|
6314 | </desc>
|
---|
6315 |
|
---|
6316 | <param name="size" type="unsigned long long" dir="in">
|
---|
6317 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6318 | </param>
|
---|
6319 | <param name="progress" type="IProgress" dir="return">
|
---|
6320 | <desc>Progress object to track the operation completion.</desc>
|
---|
6321 | </param>
|
---|
6322 |
|
---|
6323 | </method>
|
---|
6324 |
|
---|
6325 | <method name="deleteImage">
|
---|
6326 | <desc>
|
---|
6327 |
|
---|
6328 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6329 | registered within this VirtualBox installation, otherwise the
|
---|
6330 | operation will fail.
|
---|
6331 |
|
---|
6332 | <note>
|
---|
6333 | After this operation succeeds, it will be impossible to register the
|
---|
6334 | hard disk until the image file is created again.
|
---|
6335 | </note>
|
---|
6336 |
|
---|
6337 | <note>
|
---|
6338 | This operation is valid only for non-differencing hard disks, after
|
---|
6339 | they are unregistered using
|
---|
6340 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6341 | </note>
|
---|
6342 |
|
---|
6343 | </desc>
|
---|
6344 | </method>
|
---|
6345 |
|
---|
6346 | </interface>
|
---|
6347 |
|
---|
6348 | <!--
|
---|
6349 | // ICustomHardDisk
|
---|
6350 | /////////////////////////////////////////////////////////////////////////
|
---|
6351 | -->
|
---|
6352 |
|
---|
6353 | <interface
|
---|
6354 | name="ICustomHardDisk" extends="$unknown"
|
---|
6355 | uuid="a7b0236d-3ff4-47c0-a4aa-ddc4ddc1141a"
|
---|
6356 | wsmap="managed"
|
---|
6357 | >
|
---|
6358 | <desc>
|
---|
6359 | The ICustomHardDisk interface represents a specific type of
|
---|
6360 | <link to="IHardDisk" /> that is supported through a third-party plugin.
|
---|
6361 |
|
---|
6362 | This interface allows to add support for custom hard disk formats to
|
---|
6363 | VirtualBox.
|
---|
6364 |
|
---|
6365 | Objects that support this interface also support the
|
---|
6366 | <link to="IHardDisk"/> interface.
|
---|
6367 |
|
---|
6368 | Hard disks using custom hard disk formats can be either opened using
|
---|
6369 | <link to="IVirtualBox::openHardDisk()"/> or created from scratch using
|
---|
6370 | <link to="IVirtualBox::createHardDisk()"/>.
|
---|
6371 |
|
---|
6372 | When a new hard disk object is created from scratch, an image file for
|
---|
6373 | it is not automatically created. To do it, you need to specify a
|
---|
6374 | valid <link to="#location">location</link>, and call
|
---|
6375 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
6376 | When it is done, the hard disk object can be registered by calling
|
---|
6377 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
6378 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
6379 | virtual machines.
|
---|
6380 |
|
---|
6381 | The <link to="IHardDisk::description">description</link>
|
---|
6382 | of the hard disk is stored in the VirtualBox
|
---|
6383 | configuration file, so it can be changed (at appropriate
|
---|
6384 | times) even when
|
---|
6385 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6386 | <tt>false</tt>. However, the hard disk must not be
|
---|
6387 | attached to a running virtual machine.
|
---|
6388 |
|
---|
6389 | </desc>
|
---|
6390 |
|
---|
6391 | <attribute name="location" type="wstring">
|
---|
6392 | <desc>
|
---|
6393 |
|
---|
6394 | Location of this custom hard disk. For
|
---|
6395 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6396 |
|
---|
6397 | The format of the location string is plugin-dependent. In case if the
|
---|
6398 | plugin uses a regular file in the local file system to store hard disk
|
---|
6399 | data, then the location is a file path and the following rules apply:
|
---|
6400 | <ul>
|
---|
6401 | <li>
|
---|
6402 | when assigning a new path, it must be absolute (full path) or
|
---|
6403 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
6404 | home directory</link>. If only a file name without any path is
|
---|
6405 | given, the <link to="ISystemProperties::defaultVDIFolder"> default
|
---|
6406 | VDI folder</link> will be used as a path to the image file.
|
---|
6407 | </li>
|
---|
6408 | <li>
|
---|
6409 | When reading this propery, a full path is always returned.
|
---|
6410 | </li>
|
---|
6411 | </ul>
|
---|
6412 |
|
---|
6413 | <note>
|
---|
6414 | This property cannot be changed when <link to="#created"/>
|
---|
6415 | returns <tt>true</tt>.
|
---|
6416 | </note>
|
---|
6417 |
|
---|
6418 | </desc>
|
---|
6419 | </attribute>
|
---|
6420 |
|
---|
6421 | <attribute name="format" type="wstring" readonly="yes">
|
---|
6422 | <desc>
|
---|
6423 |
|
---|
6424 | The plugin name of the image file.
|
---|
6425 |
|
---|
6426 | </desc>
|
---|
6427 | </attribute>
|
---|
6428 |
|
---|
6429 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6430 | <desc>
|
---|
6431 |
|
---|
6432 | Whether the virual disk image is created or not. For newly created
|
---|
6433 | hard disk objects or after a successful invocation of
|
---|
6434 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6435 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
|
---|
6436 | is called.
|
---|
6437 |
|
---|
6438 | </desc>
|
---|
6439 | </attribute>
|
---|
6440 |
|
---|
6441 | <method name="createDynamicImage">
|
---|
6442 |
|
---|
6443 | <desc>
|
---|
6444 |
|
---|
6445 | Starts creating a dymically expanding hard disk image in the
|
---|
6446 | background. The previous image associated with this object, if
|
---|
6447 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6448 | the operation will fail.
|
---|
6449 |
|
---|
6450 | <note>
|
---|
6451 | After the returned progress object reports that the
|
---|
6452 | operation is complete, this hard disk object can be
|
---|
6453 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6454 | this VirtualBox installation.
|
---|
6455 | </note>
|
---|
6456 |
|
---|
6457 | </desc>
|
---|
6458 |
|
---|
6459 | <param name="size" type="unsigned long long" dir="in">
|
---|
6460 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6461 | </param>
|
---|
6462 | <param name="progress" type="IProgress" dir="return">
|
---|
6463 | <desc>Progress object to track the operation completion.</desc>
|
---|
6464 | </param>
|
---|
6465 |
|
---|
6466 | </method>
|
---|
6467 |
|
---|
6468 | <method name="createFixedImage">
|
---|
6469 | <desc>
|
---|
6470 |
|
---|
6471 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6472 | previous image, if any, must be deleted using
|
---|
6473 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6474 |
|
---|
6475 | <note>
|
---|
6476 | After the returned progress object reports that the
|
---|
6477 | operation is complete, this hard disk object can be
|
---|
6478 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6479 | this VirtualBox installation.
|
---|
6480 | </note>
|
---|
6481 |
|
---|
6482 | </desc>
|
---|
6483 |
|
---|
6484 | <param name="size" type="unsigned long long" dir="in">
|
---|
6485 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6486 | </param>
|
---|
6487 | <param name="progress" type="IProgress" dir="return">
|
---|
6488 | <desc>Progress object to track the operation completion.</desc>
|
---|
6489 | </param>
|
---|
6490 |
|
---|
6491 | </method>
|
---|
6492 |
|
---|
6493 | <method name="deleteImage">
|
---|
6494 | <desc>
|
---|
6495 |
|
---|
6496 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6497 | registered within this VirtualBox installation, otherwise the
|
---|
6498 | operation will fail.
|
---|
6499 |
|
---|
6500 | <note>
|
---|
6501 | After this operation succeeds, it will be impossible to register the
|
---|
6502 | hard disk until the image file is created again.
|
---|
6503 | </note>
|
---|
6504 |
|
---|
6505 | <note>
|
---|
6506 | This operation is valid only for non-differencing hard disks, after
|
---|
6507 | they are unregistered using
|
---|
6508 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6509 | </note>
|
---|
6510 |
|
---|
6511 | </desc>
|
---|
6512 | </method>
|
---|
6513 |
|
---|
6514 | </interface>
|
---|
6515 |
|
---|
6516 | <!--
|
---|
6517 | // IVHDImage
|
---|
6518 | /////////////////////////////////////////////////////////////////////////
|
---|
6519 | -->
|
---|
6520 |
|
---|
6521 | <interface
|
---|
6522 | name="IVHDImage" extends="$unknown"
|
---|
6523 | uuid="163b88c3-7552-424a-8205-daf17a004747"
|
---|
6524 | wsmap="managed"
|
---|
6525 | >
|
---|
6526 | <desc>
|
---|
6527 |
|
---|
6528 | The IVHDImage interface represents <link to="IHardDisk">virtual hard
|
---|
6529 | disks</link> that use Virtual PC Virtual Machine Disk image files to store
|
---|
6530 | hard disk data.
|
---|
6531 |
|
---|
6532 | Hard disks using VHD images can be either opened using
|
---|
6533 | <link to="IVirtualBox::openHardDisk()"/> or created from
|
---|
6534 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
6535 |
|
---|
6536 | Objects that support this interface also support the
|
---|
6537 | <link to="IHardDisk"/> interface.
|
---|
6538 |
|
---|
6539 | When a new hard disk object is created from scatch, an image file for it
|
---|
6540 | is not automatically created. To do it, you need to specify a
|
---|
6541 | valid <link to="#filePath">file path</link>, and call
|
---|
6542 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
6543 | When it is done, the hard disk object can be registered by calling
|
---|
6544 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
6545 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
6546 | virtual machines.
|
---|
6547 |
|
---|
6548 | The <link to="IHardDisk::description">description</link>
|
---|
6549 | of the VHD hard disk is stored in the VirtualBox
|
---|
6550 | configuration file, so it can be changed (at appropriate
|
---|
6551 | times) even when
|
---|
6552 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
6553 | <tt>false</tt>. However, the hard disk must not be
|
---|
6554 | attached to a running virtual machine.
|
---|
6555 |
|
---|
6556 | <note>
|
---|
6557 | In the current imlementation, the type of all VHD hard disks
|
---|
6558 | is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
|
---|
6559 | and cannot be changed.
|
---|
6560 | </note>
|
---|
6561 |
|
---|
6562 | </desc>
|
---|
6563 |
|
---|
6564 | <attribute name="filePath" type="wstring">
|
---|
6565 | <desc>
|
---|
6566 |
|
---|
6567 | Full file name of the VHD image of this hard disk. For
|
---|
6568 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
6569 |
|
---|
6570 | When assigning a new path, it can be absolute (full path) or relative
|
---|
6571 | to the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
6572 | directory</link>. If only a file name without any path is given,
|
---|
6573 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
6574 | folder</link> will be used as a path to the image file.
|
---|
6575 |
|
---|
6576 | When reading this propery, a full path is always returned.
|
---|
6577 |
|
---|
6578 | <note>
|
---|
6579 | This property cannot be changed when <link to="#created"/>
|
---|
6580 | returns <tt>true</tt>. In this case, the specified file name can be
|
---|
6581 | absolute (full path) or relative to
|
---|
6582 | the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
6583 | directory</link>. If only a file name without any path is given,
|
---|
6584 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
6585 | folder</link> will be used as a path to the image file.
|
---|
6586 | </note>
|
---|
6587 |
|
---|
6588 | </desc>
|
---|
6589 | </attribute>
|
---|
6590 |
|
---|
6591 | <attribute name="created" type="boolean" readonly="yes">
|
---|
6592 | <desc>
|
---|
6593 |
|
---|
6594 | Whether the virual disk image is created or not. For newly created
|
---|
6595 | hard disk objects or after a successful invocation of
|
---|
6596 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
6597 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
|
---|
6598 | is called.
|
---|
6599 |
|
---|
6600 | </desc>
|
---|
6601 | </attribute>
|
---|
6602 |
|
---|
6603 | <method name="createDynamicImage">
|
---|
6604 |
|
---|
6605 | <desc>
|
---|
6606 |
|
---|
6607 | Starts creating a dymically expanding hard disk image in the
|
---|
6608 | background. The previous image associated with this object, if
|
---|
6609 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
6610 | the operation will fail.
|
---|
6611 |
|
---|
6612 | <note>
|
---|
6613 | After the returned progress object reports that the
|
---|
6614 | operation is complete, this hard disk object can be
|
---|
6615 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6616 | this VirtualBox installation.
|
---|
6617 | </note>
|
---|
6618 |
|
---|
6619 | </desc>
|
---|
6620 |
|
---|
6621 | <param name="size" type="unsigned long long" dir="in">
|
---|
6622 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
6623 | </param>
|
---|
6624 | <param name="progress" type="IProgress" dir="return">
|
---|
6625 | <desc>Progress object to track the operation completion.</desc>
|
---|
6626 | </param>
|
---|
6627 |
|
---|
6628 | </method>
|
---|
6629 |
|
---|
6630 | <method name="createFixedImage">
|
---|
6631 | <desc>
|
---|
6632 |
|
---|
6633 | Starts creating a fixed-size hard disk image in the background. The
|
---|
6634 | previous image, if any, must be deleted using
|
---|
6635 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
6636 |
|
---|
6637 | <note>
|
---|
6638 | After the returned progress object reports that the
|
---|
6639 | operation is complete, this hard disk object can be
|
---|
6640 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
6641 | this VirtualBox installation.
|
---|
6642 | </note>
|
---|
6643 |
|
---|
6644 | </desc>
|
---|
6645 |
|
---|
6646 | <param name="size" type="unsigned long long" dir="in">
|
---|
6647 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
6648 | </param>
|
---|
6649 | <param name="progress" type="IProgress" dir="return">
|
---|
6650 | <desc>Progress object to track the operation completion.</desc>
|
---|
6651 | </param>
|
---|
6652 |
|
---|
6653 | </method>
|
---|
6654 |
|
---|
6655 | <method name="deleteImage">
|
---|
6656 | <desc>
|
---|
6657 |
|
---|
6658 | Deletes the existing hard disk image. The hard disk must not be
|
---|
6659 | registered within this VirtualBox installation, otherwise the
|
---|
6660 | operation will fail.
|
---|
6661 |
|
---|
6662 | <note>
|
---|
6663 | After this operation succeeds, it will be impossible to register the
|
---|
6664 | hard disk until the image file is created again.
|
---|
6665 | </note>
|
---|
6666 |
|
---|
6667 | <note>
|
---|
6668 | This operation is valid only for non-differencing hard disks, after
|
---|
6669 | they are unregistered using
|
---|
6670 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
6671 | </note>
|
---|
6672 |
|
---|
6673 | </desc>
|
---|
6674 | </method>
|
---|
6675 |
|
---|
6676 | </interface>
|
---|
6677 |
|
---|
6678 | <!--
|
---|
6679 | // IDVDImage
|
---|
6680 | /////////////////////////////////////////////////////////////////////////
|
---|
6681 | -->
|
---|
6682 |
|
---|
6683 | <enumerator
|
---|
6684 | name="IDVDImageEnumerator" type="IDVDImage"
|
---|
6685 | uuid="9BE77C8D-E1BE-4bf2-A67B-B4DD3D2B0F28"
|
---|
6686 | />
|
---|
6687 |
|
---|
6688 | <collection
|
---|
6689 | name="IDVDImageCollection" type="IDVDImage"
|
---|
6690 | enumerator="IDVDImageEnumerator"
|
---|
6691 | uuid="AE7053FA-ADD2-4ea4-AFCF-24D5F8DDED64"
|
---|
6692 | readonly="yes"
|
---|
6693 | >
|
---|
6694 | <method name="findByPath">
|
---|
6695 | <desc>
|
---|
6696 | Searches this collection for a DVD image with the given disk path.
|
---|
6697 | <note>
|
---|
6698 | The method returns an error if the given name does not
|
---|
6699 | correspond to any DVD image in the collection.
|
---|
6700 | </note>
|
---|
6701 | </desc>
|
---|
6702 | <param name="path" type="wstring" dir="in">
|
---|
6703 | <desc>Name of the DVD image's file system location.</desc>
|
---|
6704 | </param>
|
---|
6705 | <param name="image" type="IDVDImage" dir="return">
|
---|
6706 | <desc>Found DVD image object</desc>
|
---|
6707 | </param>
|
---|
6708 | </method>
|
---|
6709 | </collection>
|
---|
6710 |
|
---|
6711 | <interface
|
---|
6712 | name="IDVDImage" extends="$unknown"
|
---|
6713 | uuid="140FFF03-E479-4194-8562-ABC4F8171009"
|
---|
6714 | wsmap="managed"
|
---|
6715 | >
|
---|
6716 | <desc>
|
---|
6717 |
|
---|
6718 | The IDVDImage interface represents a file containing the image
|
---|
6719 | of the DVD or CD disk.
|
---|
6720 |
|
---|
6721 | <h3>Image Accessibility</h3>
|
---|
6722 |
|
---|
6723 | The <link to="#accessible"/> attribute of the image object
|
---|
6724 | defines the accessibility state of the image file. If the
|
---|
6725 | value of this attribute is <tt>false</tt> then some image
|
---|
6726 | attributes may contain invalid or outdated values (for example, the
|
---|
6727 | the image file size) until a new accessibility
|
---|
6728 | check is done that returns <tt>true</tt>.
|
---|
6729 |
|
---|
6730 | <note>
|
---|
6731 | Because of the possible slowness of the accessibility check,
|
---|
6732 | it is not implicitly performed upon the VirtualBox server startup
|
---|
6733 | (to prevent the application freeze). In partcular, this means that
|
---|
6734 | if you try to read image properties that depend on the
|
---|
6735 | accessibility state without first reading the value of the
|
---|
6736 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
6737 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
6738 | </note>
|
---|
6739 |
|
---|
6740 | </desc>
|
---|
6741 | <attribute name="id" type="uuid" readonly="yes">
|
---|
6742 | <desc>UUID of the CD/DVD image.</desc>
|
---|
6743 | </attribute>
|
---|
6744 |
|
---|
6745 | <attribute name="filePath" type="wstring" readonly="yes">
|
---|
6746 | <desc>Full file name of the CD/DVD image.</desc>
|
---|
6747 | </attribute>
|
---|
6748 |
|
---|
6749 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
6750 | <desc>
|
---|
6751 |
|
---|
6752 | Whether the CD/DVD image is currently accessible or not.
|
---|
6753 | The image, for example, can be unaccessible if it is placed
|
---|
6754 | on a network share that is not available by the time
|
---|
6755 | this property is read.
|
---|
6756 |
|
---|
6757 | The accessibility check is performed automatically every time
|
---|
6758 | this attribute is read. You should keep it in mind that this check
|
---|
6759 | may be slow and can block the calling thread for a long time (for
|
---|
6760 | example, if the network share where the image is located is down).
|
---|
6761 |
|
---|
6762 | The following attributes of the image object are considered
|
---|
6763 | to be invalid when this attribute is <tt>false</tt>:
|
---|
6764 | <ul>
|
---|
6765 | <li><link to="#size"/></li>
|
---|
6766 | </ul>
|
---|
6767 |
|
---|
6768 | </desc>
|
---|
6769 | </attribute>
|
---|
6770 |
|
---|
6771 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
6772 | <desc>Size of the ISO image in bytes.</desc>
|
---|
6773 | </attribute>
|
---|
6774 |
|
---|
6775 | </interface>
|
---|
6776 |
|
---|
6777 |
|
---|
6778 | <!--
|
---|
6779 | // IDVDDrive
|
---|
6780 | /////////////////////////////////////////////////////////////////////////
|
---|
6781 | -->
|
---|
6782 |
|
---|
6783 | <enum
|
---|
6784 | name="DriveState"
|
---|
6785 | uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
|
---|
6786 | >
|
---|
6787 | <const name="InvalidDriveState" value="0"/>
|
---|
6788 | <const name="NotMounted" value="1"/>
|
---|
6789 | <const name="ImageMounted" value="2"/>
|
---|
6790 | <const name="HostDriveCaptured" value="3"/>
|
---|
6791 | </enum>
|
---|
6792 |
|
---|
6793 | <interface
|
---|
6794 | name="IDVDDrive" extends="$unknown"
|
---|
6795 | uuid="d9bd101a-8079-4fb9-bad1-31bf32482b75"
|
---|
6796 | wsmap="managed"
|
---|
6797 | >
|
---|
6798 | <desc>
|
---|
6799 | The IDVDDrive interface represents the virtual CD/DVD drive of the
|
---|
6800 | virtual machine. Used in <link to="IMachine::DVDDrive"/>.
|
---|
6801 | </desc>
|
---|
6802 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
6803 | <desc>Current drive state.</desc>
|
---|
6804 | </attribute>
|
---|
6805 |
|
---|
6806 | <attribute name="passthrough" type="boolean">
|
---|
6807 | <desc>
|
---|
6808 | When a host drive is mounted and passthrough is enabled
|
---|
6809 | the guest will be able to directly send SCSI commands to
|
---|
6810 | the host drive. This enables the guest to use CD/DVD writers
|
---|
6811 | but is potentially dangerous.
|
---|
6812 | </desc>
|
---|
6813 | </attribute>
|
---|
6814 |
|
---|
6815 | <method name="mountImage">
|
---|
6816 | <desc>Mounts the specified image.</desc>
|
---|
6817 | <param name="imageId" type="uuid" dir="in"/>
|
---|
6818 | </method>
|
---|
6819 |
|
---|
6820 | <method name="captureHostDrive">
|
---|
6821 | <desc>Captures the specified host drive.</desc>
|
---|
6822 | <param name="drive" type="IHostDVDDrive" dir="in"/>
|
---|
6823 | </method>
|
---|
6824 |
|
---|
6825 | <method name="unmount">
|
---|
6826 | <desc>Unmounts the currently mounted image/device.</desc>
|
---|
6827 | </method>
|
---|
6828 |
|
---|
6829 | <method name="getImage">
|
---|
6830 | <desc>Gets the currently mounted image ID.</desc>
|
---|
6831 | <param name="image" type="IDVDImage" dir="return"/>
|
---|
6832 | </method>
|
---|
6833 |
|
---|
6834 | <method name="getHostDrive">
|
---|
6835 | <desc>Gets the currently mounted image ID.</desc>
|
---|
6836 | <param name="drive" type="IHostDVDDrive" dir="return"/>
|
---|
6837 | </method>
|
---|
6838 |
|
---|
6839 | </interface>
|
---|
6840 |
|
---|
6841 | <!--
|
---|
6842 | // IFloppyImage
|
---|
6843 | /////////////////////////////////////////////////////////////////////////
|
---|
6844 | -->
|
---|
6845 |
|
---|
6846 | <enumerator
|
---|
6847 | name="IFloppyImageEnumerator" type="IFloppyImage"
|
---|
6848 | uuid="902C4089-76B7-41f1-91E8-49A261A28A2C"
|
---|
6849 | />
|
---|
6850 |
|
---|
6851 | <collection
|
---|
6852 | name="IFloppyImageCollection" type="IFloppyImage"
|
---|
6853 | enumerator="IFloppyImageEnumerator"
|
---|
6854 | uuid="327A8928-8572-446e-AD9A-18FE30E81F3F"
|
---|
6855 | readonly="yes">
|
---|
6856 | <method name="findByPath">
|
---|
6857 | <desc>
|
---|
6858 | Searches this collection for a floppy image with the given disk path.
|
---|
6859 | <note>
|
---|
6860 | The method returns an error if the given name does not
|
---|
6861 | correspond to any floppy image in the collection.
|
---|
6862 | </note>
|
---|
6863 | </desc>
|
---|
6864 | <param name="path" type="wstring" dir="in">
|
---|
6865 | <desc>Name of the floppy image's file system location.</desc>
|
---|
6866 | </param>
|
---|
6867 | <param name="image" type="IFloppyImage" dir="return">
|
---|
6868 | <desc>Found Floppy image object</desc>
|
---|
6869 | </param>
|
---|
6870 | </method>
|
---|
6871 | </collection>
|
---|
6872 |
|
---|
6873 | <interface
|
---|
6874 | name="IFloppyImage" extends="$unknown"
|
---|
6875 | uuid="CC696755-EA98-4ffe-9DC5-C003047034AB"
|
---|
6876 | wsmap="managed"
|
---|
6877 | >
|
---|
6878 | <desc>
|
---|
6879 |
|
---|
6880 | The IFloppyImage interface represents a file containing the image
|
---|
6881 | of a floppy disk.
|
---|
6882 |
|
---|
6883 | <h3>Image Accessibility</h3>
|
---|
6884 |
|
---|
6885 | The <link to="#accessible"/> attribute of the image object
|
---|
6886 | defines the accessibility state of the image file. If the
|
---|
6887 | value of this attribute is <tt>false</tt> then some image
|
---|
6888 | attributes may contain invalid or outdated values (for example, the
|
---|
6889 | the image file size) until a new accessibility
|
---|
6890 | check is done that returns <tt>true</tt>.
|
---|
6891 |
|
---|
6892 | <note>
|
---|
6893 | Because of the possible slowness of the accessibility check,
|
---|
6894 | it is not implicitly performed upon the VirtualBox server startup
|
---|
6895 | (to prevent the application freeze). In partcular, this means that
|
---|
6896 | if you try to read image properties that depend on the
|
---|
6897 | accessibility state without first reading the value of the
|
---|
6898 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
6899 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
6900 | </note>
|
---|
6901 |
|
---|
6902 | </desc>
|
---|
6903 | <attribute name="id" type="uuid" readonly="yes">
|
---|
6904 | <desc>UUID of the floppy image.</desc>
|
---|
6905 | </attribute>
|
---|
6906 |
|
---|
6907 | <attribute name="filePath" type="wstring" readonly="yes">
|
---|
6908 | <desc>Full file name of the floppy image.</desc>
|
---|
6909 | </attribute>
|
---|
6910 |
|
---|
6911 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
6912 | <desc>
|
---|
6913 |
|
---|
6914 | Whether the floppy image is currently accessible or not.
|
---|
6915 | The image, for example, can be unaccessible if it is placed
|
---|
6916 | on a network share that is not available by the time
|
---|
6917 | this property is read.
|
---|
6918 |
|
---|
6919 | The accessibility check is performed automatically every time
|
---|
6920 | this attribute is read. You should keep it in mind that this check
|
---|
6921 | may be slow and can block the calling thread for a long time (for
|
---|
6922 | example, if the network share where the image is located is down).
|
---|
6923 |
|
---|
6924 | The following attributes of the image object are considered
|
---|
6925 | to be invalid when this attribute is <tt>false</tt>:
|
---|
6926 | <ul>
|
---|
6927 | <li><link to="#size"/></li>
|
---|
6928 | </ul>
|
---|
6929 |
|
---|
6930 | </desc>
|
---|
6931 | </attribute>
|
---|
6932 |
|
---|
6933 | <attribute name="size" type="unsigned long" readonly="yes">
|
---|
6934 | <desc>Size of the floppy image in bytes.</desc>
|
---|
6935 | </attribute>
|
---|
6936 |
|
---|
6937 | </interface>
|
---|
6938 |
|
---|
6939 |
|
---|
6940 | <!--
|
---|
6941 | // IFloppyDrive
|
---|
6942 | /////////////////////////////////////////////////////////////////////////
|
---|
6943 | -->
|
---|
6944 |
|
---|
6945 | <interface
|
---|
6946 | name="IFloppyDrive" extends="$unknown"
|
---|
6947 | uuid="E9318F71-78D2-4b00-863C-B7CB0030A2D9"
|
---|
6948 | wsmap="managed"
|
---|
6949 | >
|
---|
6950 | <desc>
|
---|
6951 | The IFloppyDrive interface represents the virtual floppy drive of the
|
---|
6952 | virtual machine. Used in <link to="IMachine::FloppyDrive" />.
|
---|
6953 | </desc>
|
---|
6954 |
|
---|
6955 | <attribute name="enabled" type="boolean">
|
---|
6956 | <desc>
|
---|
6957 | Flag whether the floppy drive is enabled. If it is disabled,
|
---|
6958 | the floppy drive will not be reported to the guest.
|
---|
6959 | </desc>
|
---|
6960 | </attribute>
|
---|
6961 |
|
---|
6962 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
6963 | <desc>Current drive state.</desc>
|
---|
6964 | </attribute>
|
---|
6965 |
|
---|
6966 | <method name="mountImage">
|
---|
6967 | <desc>Mounts the specified image.</desc>
|
---|
6968 | <param name="imageId" type="uuid" dir="in"/>
|
---|
6969 | </method>
|
---|
6970 |
|
---|
6971 | <method name="captureHostDrive">
|
---|
6972 | <desc>Captures the specified host drive.</desc>
|
---|
6973 | <param name="drive" type="IHostFloppyDrive" dir="in"/>
|
---|
6974 | </method>
|
---|
6975 |
|
---|
6976 | <method name="unmount">
|
---|
6977 | <desc>Unmounts the currently mounted image/device.</desc>
|
---|
6978 | </method>
|
---|
6979 |
|
---|
6980 | <method name="getImage">
|
---|
6981 | <desc>Gets the currently mounted image ID.</desc>
|
---|
6982 | <param name="image" type="IFloppyImage" dir="return"/>
|
---|
6983 | </method>
|
---|
6984 |
|
---|
6985 | <method name="getHostDrive">
|
---|
6986 | <desc>Gets the currently mounted image ID.</desc>
|
---|
6987 | <param name="drive" type="IHostFloppyDrive" dir="return"/>
|
---|
6988 | </method>
|
---|
6989 |
|
---|
6990 | </interface>
|
---|
6991 |
|
---|
6992 |
|
---|
6993 | <!--
|
---|
6994 | // IKeyboard
|
---|
6995 | /////////////////////////////////////////////////////////////////////////
|
---|
6996 | -->
|
---|
6997 |
|
---|
6998 | <interface
|
---|
6999 | name="IKeyboard" extends="$unknown"
|
---|
7000 | uuid="FD443EC1-000A-4F5B-9282-D72760A66916"
|
---|
7001 | wsmap="managed"
|
---|
7002 | >
|
---|
7003 | <desc>
|
---|
7004 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
7005 | in <link to="IConsole::keyboard"/>.
|
---|
7006 |
|
---|
7007 | Through this interface, the virtual machine's virtual keyboard can be controlled. One
|
---|
7008 | can send keystrokes to the virtual machine and send the Ctrl-Alt-Del sequence to it.
|
---|
7009 | </desc>
|
---|
7010 | <method name="putScancode">
|
---|
7011 | <desc>Sends a scancode to the keyboard.</desc>
|
---|
7012 | <param name="scancode" type="long" dir="in"/>
|
---|
7013 | </method>
|
---|
7014 |
|
---|
7015 | <method name="putScancodes">
|
---|
7016 | <desc>Sends an array of scancode to the keyboard.</desc>
|
---|
7017 | <param name="scancodes" type="long" dir="in" array="count"/>
|
---|
7018 | <param name="count" type="unsigned long" dir="in"/>
|
---|
7019 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
7020 | </method>
|
---|
7021 |
|
---|
7022 | <method name="putCAD">
|
---|
7023 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
|
---|
7024 | </method>
|
---|
7025 |
|
---|
7026 | </interface>
|
---|
7027 |
|
---|
7028 |
|
---|
7029 | <!--
|
---|
7030 | // IMouse
|
---|
7031 | /////////////////////////////////////////////////////////////////////////
|
---|
7032 | -->
|
---|
7033 |
|
---|
7034 | <enum
|
---|
7035 | name="MouseButtonState"
|
---|
7036 | uuid="03131722-2EC5-4173-9794-0DACA46673EF"
|
---|
7037 | >
|
---|
7038 | <const name="LeftButton" value="0x01"/>
|
---|
7039 | <const name="RightButton" value="0x02"/>
|
---|
7040 | <const name="MiddleButton" value="0x04"/>
|
---|
7041 | <const name="WheelUp" value="0x08"/>
|
---|
7042 | <const name="WheelDown" value="0x10"/>
|
---|
7043 | <const name="MouseStateMask" value="0x1F"/>
|
---|
7044 | </enum>
|
---|
7045 |
|
---|
7046 | <interface
|
---|
7047 | name="IMouse" extends="$unknown"
|
---|
7048 | uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
|
---|
7049 | wsmap="managed"
|
---|
7050 | >
|
---|
7051 | <desc>
|
---|
7052 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
7053 | <link to="IConsole::mouse"/>.
|
---|
7054 |
|
---|
7055 | Through this interface, the virtual machine's virtual mouse can be
|
---|
7056 | controlled.
|
---|
7057 | </desc>
|
---|
7058 |
|
---|
7059 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
7060 | <desc>
|
---|
7061 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
7062 | or not.
|
---|
7063 | <note>
|
---|
7064 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
7065 | in order to enable absolute mouse positioning support.
|
---|
7066 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
7067 | callback to be instantly informed about changes of this attribute
|
---|
7068 | during virtual machine execution.
|
---|
7069 | </note>
|
---|
7070 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
7071 | </desc>
|
---|
7072 | </attribute>
|
---|
7073 |
|
---|
7074 | <method name="putMouseEvent">
|
---|
7075 | <desc>
|
---|
7076 | Initiates a mouse event using relative pointer movements
|
---|
7077 | along x and y axis.
|
---|
7078 | </desc>
|
---|
7079 |
|
---|
7080 | <param name="dx" type="long" dir="in">
|
---|
7081 | <desc>
|
---|
7082 | Amout of pixels the mouse should move to the right.
|
---|
7083 | Negative values move the mouse to the left.
|
---|
7084 | </desc>
|
---|
7085 | </param>
|
---|
7086 | <param name="dy" type="long" dir="in">
|
---|
7087 | <desc>
|
---|
7088 | Amout of pixels the mouse should move downwards.
|
---|
7089 | Negative values move the mouse upwards.
|
---|
7090 | </desc>
|
---|
7091 | </param>
|
---|
7092 | <param name="dz" type="long" dir="in">
|
---|
7093 | <desc>
|
---|
7094 | Amount of mouse wheel moves.
|
---|
7095 | Positive values describe clockwize wheel rotations,
|
---|
7096 | negative values describe counterclockwise rotations.
|
---|
7097 | </desc>
|
---|
7098 | </param>
|
---|
7099 | <param name="buttonState" type="long" dir="in">
|
---|
7100 | <desc>
|
---|
7101 | The current state of mouse buttons. Every bit represents
|
---|
7102 | a mouse button as follows:
|
---|
7103 | <table>
|
---|
7104 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
7105 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
7106 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
7107 | </table>
|
---|
7108 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
7109 | otherwise it is released.
|
---|
7110 | </desc>
|
---|
7111 | </param>
|
---|
7112 | </method>
|
---|
7113 |
|
---|
7114 | <method name="putMouseEventAbsolute">
|
---|
7115 | <desc>
|
---|
7116 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
7117 | These coordinates are expressed in pixels and
|
---|
7118 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
7119 | corner of the virtual display.
|
---|
7120 |
|
---|
7121 | <note>
|
---|
7122 | This method will have effect only if absolute mouse
|
---|
7123 | positioning is supported by the guest OS.
|
---|
7124 | </note>
|
---|
7125 |
|
---|
7126 | <see><link to="#absoluteSupported"/></see>
|
---|
7127 | </desc>
|
---|
7128 |
|
---|
7129 | <param name="x" type="long" dir="in">
|
---|
7130 | <desc>
|
---|
7131 | X coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
7132 | </desc>
|
---|
7133 | </param>
|
---|
7134 | <param name="y" type="long" dir="in">
|
---|
7135 | <desc>
|
---|
7136 | Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
7137 | </desc>
|
---|
7138 | </param>
|
---|
7139 | <param name="dz" type="long" dir="in">
|
---|
7140 | <desc>
|
---|
7141 | Amout of mouse wheel moves.
|
---|
7142 | Positive values describe clockwize wheel rotations,
|
---|
7143 | negative values describe counterclockwise rotations.
|
---|
7144 | </desc>
|
---|
7145 | </param>
|
---|
7146 | <param name="buttonState" type="long" dir="in">
|
---|
7147 | <desc>
|
---|
7148 | The current state of mouse buttons. Every bit represents
|
---|
7149 | a mouse button as follows:
|
---|
7150 | <table>
|
---|
7151 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
7152 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
7153 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
7154 | </table>
|
---|
7155 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
7156 | otherwise it is released.
|
---|
7157 | </desc>
|
---|
7158 | </param>
|
---|
7159 | </method>
|
---|
7160 |
|
---|
7161 | </interface>
|
---|
7162 |
|
---|
7163 | <!--
|
---|
7164 | // IDisplay
|
---|
7165 | /////////////////////////////////////////////////////////////////////////
|
---|
7166 | -->
|
---|
7167 |
|
---|
7168 | <enum
|
---|
7169 | name="FramebufferAccelerationOperation"
|
---|
7170 | uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
|
---|
7171 | >
|
---|
7172 | <const name="SolidFillAcceleration" value="1"/>
|
---|
7173 | <const name="ScreenCopyAcceleration" value="2"/>
|
---|
7174 | </enum>
|
---|
7175 |
|
---|
7176 | <enum
|
---|
7177 | name="FramebufferPixelFormat"
|
---|
7178 | uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d"
|
---|
7179 | >
|
---|
7180 | <desc>
|
---|
7181 | Format of the video memory buffer. Constants represented by this enum can
|
---|
7182 | be used to test for particular values of <link
|
---|
7183 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
7184 | to="IFramebuffer::requestResize()"/>.
|
---|
7185 |
|
---|
7186 | See also www.fourcc.org for more informantion about FOURCC pixel formats.
|
---|
7187 | </desc>
|
---|
7188 | <const name="PixelFormatOpaque" value="0xFFFFFFFF">
|
---|
7189 | <desc>
|
---|
7190 | Unknown buffer format. The user may not assume any particular
|
---|
7191 | format of the buffer.
|
---|
7192 | </desc>
|
---|
7193 | </const>
|
---|
7194 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
7195 | <desc>
|
---|
7196 | Basic RGB format. <link to="IFramebuffer::bitsPerPixel"/> determines
|
---|
7197 | the bit layout.
|
---|
7198 | </desc>
|
---|
7199 | </const>
|
---|
7200 | </enum>
|
---|
7201 |
|
---|
7202 | <interface
|
---|
7203 | name="IFramebuffer" extends="$unknown"
|
---|
7204 | uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
|
---|
7205 | wsmap="suppress"
|
---|
7206 | >
|
---|
7207 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
7208 | <desc>Address of the start byte of the framebuffer.</desc>
|
---|
7209 | </attribute>
|
---|
7210 |
|
---|
7211 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
7212 | <desc>Framebuffer width, in pixels.</desc>
|
---|
7213 | </attribute>
|
---|
7214 |
|
---|
7215 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
7216 | <desc>Framebuffer height, in pixels.</desc>
|
---|
7217 | </attribute>
|
---|
7218 |
|
---|
7219 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
7220 | <desc>
|
---|
7221 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
7222 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
7223 | are: 8, 15, 16, 24 and 32.
|
---|
7224 | </desc>
|
---|
7225 | </attribute>
|
---|
7226 |
|
---|
7227 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
7228 | <desc>
|
---|
7229 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
7230 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
7231 | size of the scan line must be aligned to 32 bits.
|
---|
7232 | </desc>
|
---|
7233 | </attribute>
|
---|
7234 |
|
---|
7235 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
7236 | <desc>
|
---|
7237 | Framebuffer pixel format. It's either one of the values defined by <link
|
---|
7238 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
7239 | <note>
|
---|
7240 | This attribute must never return <link
|
---|
7241 | to="PixelFormat::PixelFormatOpaque"/> -- the format of the buffer
|
---|
7242 | <link to="#address"/> points to must be always known.
|
---|
7243 | </note>
|
---|
7244 | </desc>
|
---|
7245 | </attribute>
|
---|
7246 |
|
---|
7247 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
7248 | <desc>
|
---|
7249 | Defines whether this framebuffer uses the virtual video card's memory
|
---|
7250 | buffer (guest VRAM) directly or not. See <link
|
---|
7251 | to="IFramebuffer::requestResize()"/> for more information.
|
---|
7252 | </desc>
|
---|
7253 | </attribute>
|
---|
7254 |
|
---|
7255 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
7256 | <desc>
|
---|
7257 | Hint from the framebuffer about how much of the standard
|
---|
7258 | screen height it wants to use for itself. This information is
|
---|
7259 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
7260 | so that it can use it for determining its video mode table. It
|
---|
7261 | is not guaranteed that the guest respects the value.
|
---|
7262 | </desc>
|
---|
7263 | </attribute>
|
---|
7264 |
|
---|
7265 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
7266 | <desc>
|
---|
7267 | An alpha-blended overlay which is superposed over the framebuffer.
|
---|
7268 | The initial purpose is to allow the display of icons providing
|
---|
7269 | information about the VM state, including disk activity, in front
|
---|
7270 | ends which do not have other means of doing that. The overlay is
|
---|
7271 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
7272 | of its own, and any changes made to it are not guaranteed to be
|
---|
7273 | visible until the affected portion of IFramebuffer is updated. The
|
---|
7274 | overlay can be created lazily the first time it is requested. This
|
---|
7275 | attribute can also return NULL to signal that the overlay is not
|
---|
7276 | implemented.
|
---|
7277 | </desc>
|
---|
7278 | </attribute>
|
---|
7279 |
|
---|
7280 | <method name="lock">
|
---|
7281 | <desc>
|
---|
7282 | Locks the framebuffer.
|
---|
7283 | Gets called by the IDisplay object where this framebuffer is
|
---|
7284 | bound to.
|
---|
7285 | </desc>
|
---|
7286 | </method>
|
---|
7287 |
|
---|
7288 | <method name="unlock">
|
---|
7289 | <desc>
|
---|
7290 | Unlocks the framebuffer.
|
---|
7291 | Gets called by the IDisplay object where this framebuffer is
|
---|
7292 | bound to.
|
---|
7293 | </desc>
|
---|
7294 | </method>
|
---|
7295 |
|
---|
7296 | <method name="notifyUpdate">
|
---|
7297 | <desc>
|
---|
7298 | Informs about an update.
|
---|
7299 | Gets called by the display object where this buffer is
|
---|
7300 | registered.
|
---|
7301 | </desc>
|
---|
7302 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7303 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7304 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7305 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7306 | <param name="finished" type="boolean" dir="return"/>
|
---|
7307 | </method>
|
---|
7308 |
|
---|
7309 | <method name="requestResize">
|
---|
7310 | <desc>
|
---|
7311 | Requests a size and pixel format change.
|
---|
7312 |
|
---|
7313 | There are two modes of working with the video buffer of the virtual
|
---|
7314 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
7315 | implementation allocates a memory buffer for the requested display mode
|
---|
7316 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
7317 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
7318 | by the virtual machine. This buffer represents the video memory of the
|
---|
7319 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
7320 | usually faster because the implementation gets a raw pointer to the
|
---|
7321 | guest VRAM buffer which it can directly use for visualising the contents
|
---|
7322 | of the virtual display, as opposed to the indirect mode where the
|
---|
7323 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
7324 | the implementation every time a display update occurs.
|
---|
7325 |
|
---|
7326 | It is important to note that the direct mode is really fast only when
|
---|
7327 | the implementation uses the given guest VRAM buffer directly, for
|
---|
7328 | example, by blitting it to the window representing the virtual machine's
|
---|
7329 | display, which saves at least one copy operation comparing to the
|
---|
7330 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
7331 | always possible: the format and the color depth of this buffer may be
|
---|
7332 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
7333 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
7334 | the indirect mode (that is always available) should be used as a
|
---|
7335 | fallback: when the guest VRAM contents are copied to the
|
---|
7336 | implementation-provided memory buffer, color and format conversion is
|
---|
7337 | done authomatically by the underlying code.
|
---|
7338 |
|
---|
7339 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
7340 | available or not. If @a pixelFormat is <link
|
---|
7341 | to="PixelFormat::PixelFormatOpaque"/> then direct access to the guest
|
---|
7342 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
|
---|
7343 | bytesPerLine parameters must be ignored and the implementation must use
|
---|
7344 | the indirect mode (where it provides its own buffer in one of the
|
---|
7345 | supported formats). In all other cases, @a pixelFormat together with @a
|
---|
7346 | bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
7347 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
7348 | free to choose which mode to use. To indicate that this framebuffer uses
|
---|
7349 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
7350 | attribute must return <tt>true</tt> and <link to="#address"/> must
|
---|
7351 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
7352 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
7353 | chosen.
|
---|
7354 |
|
---|
7355 | The @a width and @a height parameters represent the size of the
|
---|
7356 | requested display mode in both modes. In case of indirect mode, the
|
---|
7357 | provided memory buffer should be big enough to store data of the given
|
---|
7358 | display mode. In case of direct mode, it is guaranteed that the given @a
|
---|
7359 | VRAM buffer contains enough space to represent the display mode of the
|
---|
7360 | given size. Note that this framebuffer's <link to="#width"/> and <link
|
---|
7361 | to="#height"/> attributes must return exactly the same values as
|
---|
7362 | passed to this method after the resize is completed (see below).
|
---|
7363 |
|
---|
7364 | The @a finished output parameter determines if the implementation has
|
---|
7365 | finished resizing the framebuffer or not. If, for some reason, the
|
---|
7366 | resize cannot be finished immediately during this call, @a finished
|
---|
7367 | must be set to @c false, and the implementation must call
|
---|
7368 | <link to="IDisplay::resizeCompleted()"/> after it has returned from
|
---|
7369 | this method as soon as possible. If @a finished is @c false, the
|
---|
7370 | machine will not call any framebuffer methods until
|
---|
7371 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
7372 |
|
---|
7373 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
7374 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
7375 | this framebuffer must return exactly the same values as specified in the
|
---|
7376 | parameters of this method, after the resize is completed. If the
|
---|
7377 | indirect mode is chosen, these attributes must return values describing
|
---|
7378 | the format of the implementation's own memory buffer <link
|
---|
7379 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
7380 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
7381 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
7382 | to="PixelFormat::PixelFormatOpaque"/> regardless of the selected mode.
|
---|
7383 |
|
---|
7384 | <note>
|
---|
7385 | This method is called by the IDisplay object under the
|
---|
7386 | <link to="#lock()"/> provided by this IFramebuffer
|
---|
7387 | implementation. If this method returns @c false in @a finished, then
|
---|
7388 | this lock is not released until
|
---|
7389 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
7390 | </note>
|
---|
7391 | </desc>
|
---|
7392 | <param name="screenId" type="unsigned long" dir="in">
|
---|
7393 | <desc>
|
---|
7394 | Logical screen number. Must be used in the corresponding call to
|
---|
7395 | <link to="IDisplay::resizeCompleted()"/> if this call is made.
|
---|
7396 | </desc>
|
---|
7397 | </param>
|
---|
7398 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
7399 | <desc>
|
---|
7400 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
7401 | See also <link to="FramebufferPixelFormat"/>.
|
---|
7402 | </desc>
|
---|
7403 | </param>
|
---|
7404 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
7405 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
7406 | </param>
|
---|
7407 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
7408 | <desc>Color depth, bits per pixel.</desc>
|
---|
7409 | </param>
|
---|
7410 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
7411 | <desc>Size of one scan line, in bytes.</desc>
|
---|
7412 | </param>
|
---|
7413 | <param name="width" type="unsigned long" dir="in">
|
---|
7414 | <desc>Width of the guest display, in pixels.</desc>
|
---|
7415 | </param>
|
---|
7416 | <param name="height" type="unsigned long" dir="in">
|
---|
7417 | <desc>Height of the guest display, in pixels.</desc>
|
---|
7418 | </param>
|
---|
7419 | <param name="finished" type="boolean" dir="return">
|
---|
7420 | <desc>
|
---|
7421 | Can the VM start using the new framebuffer immediately
|
---|
7422 | after this method returns or it should wait for
|
---|
7423 | <link to="IDisplay::resizeCompleted()"/>.
|
---|
7424 | </desc>
|
---|
7425 | </param>
|
---|
7426 | </method>
|
---|
7427 |
|
---|
7428 | <method name="operationSupported">
|
---|
7429 | <desc>
|
---|
7430 | Returns whether the given acceleration operation is supported
|
---|
7431 | by the IFramebuffer implementation. If not, the display object
|
---|
7432 | will not attempt to call the corresponding IFramebuffer entry
|
---|
7433 | point. Even if an operation is indicated to supported, the
|
---|
7434 | IFramebuffer implementation always has the option to return non
|
---|
7435 | supported from the corresponding acceleration method in which
|
---|
7436 | case the operation will be performed by the display engine. This
|
---|
7437 | allows for reduced IFramebuffer implementation complexity where
|
---|
7438 | only common cases are handled.
|
---|
7439 | </desc>
|
---|
7440 | <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
|
---|
7441 | <param name="supported" type="boolean" dir="return"/>
|
---|
7442 | </method>
|
---|
7443 |
|
---|
7444 | <method name="videoModeSupported">
|
---|
7445 | <desc>
|
---|
7446 | Returns whether the framebuffer implementation is willing to
|
---|
7447 | support a given video mode. In case it is not able to render
|
---|
7448 | the video mode (or for some reason not willing), it should
|
---|
7449 | return false. Usually this method is called when the guest
|
---|
7450 | asks the VMM device whether a given video mode is supported
|
---|
7451 | so the information returned is directly exposed to the guest.
|
---|
7452 | It is important that this method returns very quickly.
|
---|
7453 | </desc>
|
---|
7454 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7455 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7456 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
7457 | <param name="supported" type="boolean" dir="return"/>
|
---|
7458 | </method>
|
---|
7459 |
|
---|
7460 | <method name="solidFill">
|
---|
7461 | <desc>
|
---|
7462 | Fills the specified rectangle on screen with a solid color.
|
---|
7463 | </desc>
|
---|
7464 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7465 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7466 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7467 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7468 | <param name="color" type="unsigned long" dir="in"/>
|
---|
7469 | <param name="handled" type="boolean" dir="return"/>
|
---|
7470 | </method>
|
---|
7471 |
|
---|
7472 | <method name="copyScreenBits">
|
---|
7473 | <desc>
|
---|
7474 | Copies specified rectangle on the screen.
|
---|
7475 | </desc>
|
---|
7476 | <param name="xDst" type="unsigned long" dir="in"/>
|
---|
7477 | <param name="yDst" type="unsigned long" dir="in"/>
|
---|
7478 | <param name="xSrc" type="unsigned long" dir="in"/>
|
---|
7479 | <param name="ySrc" type="unsigned long" dir="in"/>
|
---|
7480 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7481 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7482 | <param name="handled" type="boolean" dir="return"/>
|
---|
7483 | </method>
|
---|
7484 |
|
---|
7485 | <method name="getVisibleRegion">
|
---|
7486 | <desc>
|
---|
7487 | Returns the visible region of this framebuffer.
|
---|
7488 |
|
---|
7489 | If the @a rectangles parameter is <tt>NULL</tt> then the value of the
|
---|
7490 | @a count parameter is ignored and the number of elements necessary to
|
---|
7491 | describe the current visible region is returned in @a countCopied.
|
---|
7492 |
|
---|
7493 | If @a rectangles is not <tt>NULL</tt> but @a count is less
|
---|
7494 | than the required number of elements to store region data, the method
|
---|
7495 | will report a failure. If @a count is equal or greater than the
|
---|
7496 | required number of elements, then the actual number of elements copied
|
---|
7497 | to the provided array will be returned in @a countCopied.
|
---|
7498 |
|
---|
7499 | <note>
|
---|
7500 | The address of the provided array must be in the process space of
|
---|
7501 | this IFramebuffer object.
|
---|
7502 | </note>
|
---|
7503 | </desc>
|
---|
7504 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
7505 | <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
|
---|
7506 | </param>
|
---|
7507 | <param name="count" type="unsigned long" dir="in">
|
---|
7508 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
7509 | </param>
|
---|
7510 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
7511 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
7512 | </param>
|
---|
7513 | </method>
|
---|
7514 |
|
---|
7515 | <method name="setVisibleRegion">
|
---|
7516 | <desc>
|
---|
7517 | Suggests a new visible region to this framebuffer. This region
|
---|
7518 | represents the area of the VM display which is a union of regions of
|
---|
7519 | all top-level windows of the guest operating system running inside the
|
---|
7520 | VM (if the Guest Additions for this system support this
|
---|
7521 | functionality). This information may be used by the frontends to
|
---|
7522 | implement the seamless desktop integration feature.
|
---|
7523 |
|
---|
7524 | <note>
|
---|
7525 | The address of the provided array must be in the process space of
|
---|
7526 | this IFramebuffer object.
|
---|
7527 | </note>
|
---|
7528 | <note>
|
---|
7529 | The IFramebuffer implementation must make a copy of the provided
|
---|
7530 | array of rectangles.
|
---|
7531 | </note>
|
---|
7532 | </desc>
|
---|
7533 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
7534 | <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
|
---|
7535 | </param>
|
---|
7536 | <param name="count" type="unsigned long" dir="in">
|
---|
7537 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
7538 | </param>
|
---|
7539 | </method>
|
---|
7540 |
|
---|
7541 | </interface>
|
---|
7542 |
|
---|
7543 | <interface
|
---|
7544 | name="IFramebufferOverlay" extends="IFrameBuffer"
|
---|
7545 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
7546 | wsmap="suppress"
|
---|
7547 | >
|
---|
7548 | <desc>
|
---|
7549 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
7550 | for displaying status icons above an IFramebuffer. It is always created
|
---|
7551 | not visible, so that it must be explicitly shown. It only covers a
|
---|
7552 | portion of the IFramebuffer, determined by its width, height and
|
---|
7553 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
7554 | that order) format, and may be written to directly. Do re-read the
|
---|
7555 | width though, after setting it, as it may be adjusted (increased) to
|
---|
7556 | make it more suitable for the front end.
|
---|
7557 | </desc>
|
---|
7558 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
7559 | <desc>X position of the overlay, relative to the framebuffer.</desc>
|
---|
7560 | </attribute>
|
---|
7561 |
|
---|
7562 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
7563 | <desc>Y position of the overlay, relative to the framebuffer.</desc>
|
---|
7564 | </attribute>
|
---|
7565 |
|
---|
7566 | <attribute name="visible" type="boolean" readonly="no">
|
---|
7567 | <desc>
|
---|
7568 | Whether the overlay is currently visible.
|
---|
7569 | </desc>
|
---|
7570 | </attribute>
|
---|
7571 |
|
---|
7572 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
7573 | <desc>
|
---|
7574 | The global alpha value for the overlay. This may or may not be
|
---|
7575 | supported by a given front end.
|
---|
7576 | </desc>
|
---|
7577 | </attribute>
|
---|
7578 |
|
---|
7579 | <method name="move">
|
---|
7580 | <desc>
|
---|
7581 | Changes the overlay's position relative to the IFramebuffer.
|
---|
7582 | </desc>
|
---|
7583 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7584 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7585 | </method>
|
---|
7586 |
|
---|
7587 | </interface>
|
---|
7588 |
|
---|
7589 | <interface
|
---|
7590 | name="IDisplay" extends="$unknown"
|
---|
7591 | uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
|
---|
7592 | wsmap="suppress"
|
---|
7593 | >
|
---|
7594 | <desc>
|
---|
7595 | The IDisplay interface represents the virtual machine's display.
|
---|
7596 |
|
---|
7597 | The object implementing this interface is contained in each
|
---|
7598 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
7599 | output of the virtual machine.
|
---|
7600 |
|
---|
7601 | The virtual display supports pluggable output targets represented by the
|
---|
7602 | IFramebuffer interface. Examples of the output target are a window on
|
---|
7603 | the host computer or an RDP sessoin's display on a remote computer.
|
---|
7604 | </desc>
|
---|
7605 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
7606 | <desc>Current display width.</desc>
|
---|
7607 | </attribute>
|
---|
7608 |
|
---|
7609 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
7610 | <desc>Current display height.</desc>
|
---|
7611 | </attribute>
|
---|
7612 |
|
---|
7613 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
7614 | <desc>
|
---|
7615 | Current guest display color depth. Note that this may differ
|
---|
7616 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
7617 | </desc>
|
---|
7618 | </attribute>
|
---|
7619 |
|
---|
7620 | <method name="setupInternalFramebuffer">
|
---|
7621 | <desc>
|
---|
7622 | Prepares an internally managed framebuffer.
|
---|
7623 | </desc>
|
---|
7624 | <param name="depth" type="unsigned long" dir="in"/>
|
---|
7625 | </method>
|
---|
7626 |
|
---|
7627 | <method name="lockFramebuffer">
|
---|
7628 | <desc>
|
---|
7629 | Requests access to the internal framebuffer.
|
---|
7630 | </desc>
|
---|
7631 | <param name="address" type="octet" mod="ptr" dir="return"/>
|
---|
7632 | </method>
|
---|
7633 |
|
---|
7634 | <method name="unlockFramebuffer">
|
---|
7635 | <desc>
|
---|
7636 | Releases access to the internal framebuffer.
|
---|
7637 | </desc>
|
---|
7638 | </method>
|
---|
7639 |
|
---|
7640 | <method name="registerExternalFramebuffer">
|
---|
7641 | <desc>
|
---|
7642 | Registers an external framebuffer.
|
---|
7643 | </desc>
|
---|
7644 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
7645 | </method>
|
---|
7646 |
|
---|
7647 | <method name="setFramebuffer">
|
---|
7648 | <desc>
|
---|
7649 | Sets the framebuffer for given screen.
|
---|
7650 | </desc>
|
---|
7651 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
7652 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
7653 | </method>
|
---|
7654 |
|
---|
7655 | <method name="getFramebuffer">
|
---|
7656 | <desc>
|
---|
7657 | Queries the framebuffer for given screen.
|
---|
7658 | </desc>
|
---|
7659 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
7660 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
7661 | <param name="xOrigin" type="long" dir="out"/>
|
---|
7662 | <param name="yOrigin" type="long" dir="out"/>
|
---|
7663 | </method>
|
---|
7664 |
|
---|
7665 | <method name="setVideoModeHint">
|
---|
7666 | <desc>
|
---|
7667 | Asks VirtualBox to request the given video mode from
|
---|
7668 | the guest. This is just a hint and it cannot be guaranteed
|
---|
7669 | that the requested resolution will be used. Guest Additions
|
---|
7670 | are required for the request to be seen by guests. The caller
|
---|
7671 | should issue the request and wait for a resolution change and
|
---|
7672 | after a timeout retry.
|
---|
7673 |
|
---|
7674 | Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
|
---|
7675 | parameters means that the corresponding values should be taken from the
|
---|
7676 | current video mode (i.e. left unchanged).
|
---|
7677 |
|
---|
7678 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
7679 | parameter specifies the number of the guest display to send the hint to:
|
---|
7680 | <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
|
---|
7681 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
7682 | must be <tt>0</tt>.
|
---|
7683 |
|
---|
7684 | </desc>
|
---|
7685 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7686 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7687 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
7688 | <param name="display" type="unsigned long" dir="in"/>
|
---|
7689 | </method>
|
---|
7690 |
|
---|
7691 | <method name="setSeamlessMode">
|
---|
7692 | <desc>
|
---|
7693 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
7694 | integration) mode.
|
---|
7695 | <note>
|
---|
7696 | Calling this method has no effect if <link
|
---|
7697 | to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
|
---|
7698 | </note>
|
---|
7699 | </desc>
|
---|
7700 | <param name="enabled" type="boolean" dir="in"/>
|
---|
7701 | </method>
|
---|
7702 |
|
---|
7703 | <method name="takeScreenShot">
|
---|
7704 | <desc>
|
---|
7705 | Takes a screen shot of the requested size and copies it to the
|
---|
7706 | 32-bpp buffer allocated by the caller.
|
---|
7707 | </desc>
|
---|
7708 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
7709 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7710 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7711 | </method>
|
---|
7712 |
|
---|
7713 | <method name="drawToScreen">
|
---|
7714 | <desc>
|
---|
7715 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
7716 | to the given point on the VM display.
|
---|
7717 | </desc>
|
---|
7718 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
7719 | <param name="x" type="unsigned long" dir="in"/>
|
---|
7720 | <param name="y" type="unsigned long" dir="in"/>
|
---|
7721 | <param name="width" type="unsigned long" dir="in"/>
|
---|
7722 | <param name="height" type="unsigned long" dir="in"/>
|
---|
7723 | </method>
|
---|
7724 |
|
---|
7725 | <method name="invalidateAndUpdate">
|
---|
7726 | <desc>
|
---|
7727 | Does a full invalidation of the VM display and instructs the VM
|
---|
7728 | to update it.
|
---|
7729 | </desc>
|
---|
7730 | </method>
|
---|
7731 |
|
---|
7732 | <method name="resizeCompleted">
|
---|
7733 | <desc>
|
---|
7734 | Signals that a framebuffer has completed the resize operation.
|
---|
7735 | </desc>
|
---|
7736 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
7737 | </method>
|
---|
7738 |
|
---|
7739 | <method name="updateCompleted">
|
---|
7740 | <desc>
|
---|
7741 | Signals that a framebuffer has completed the update operation.
|
---|
7742 | </desc>
|
---|
7743 | </method>
|
---|
7744 |
|
---|
7745 | </interface>
|
---|
7746 |
|
---|
7747 | <!--
|
---|
7748 | // INetworkAdapter
|
---|
7749 | /////////////////////////////////////////////////////////////////////////
|
---|
7750 | -->
|
---|
7751 |
|
---|
7752 | <enum
|
---|
7753 | name="NetworkAttachmentType"
|
---|
7754 | uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
|
---|
7755 | >
|
---|
7756 | <const name="NoNetworkAttachment" value="0"/>
|
---|
7757 | <const name="NATNetworkAttachment" value="1"/>
|
---|
7758 | <const name="HostInterfaceNetworkAttachment" value="2"/>
|
---|
7759 | <const name="InternalNetworkAttachment" value="3"/>
|
---|
7760 | </enum>
|
---|
7761 |
|
---|
7762 | <enum
|
---|
7763 | name="NetworkAdapterType"
|
---|
7764 | uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
|
---|
7765 | >
|
---|
7766 | <const name="InvalidNetworkAdapterType" value="0"/>
|
---|
7767 | <const name="NetworkAdapterAm79C970A" value="1"/>
|
---|
7768 | <const name="NetworkAdapterAm79C973" value="2"/>
|
---|
7769 | <const name="NetworkAdapter82540EM" value="3"/>
|
---|
7770 | </enum>
|
---|
7771 |
|
---|
7772 | <interface
|
---|
7773 | name="INetworkAdapter" extends="$unknown"
|
---|
7774 | uuid="78dfc978-ecb0-44ee-8b20-54549dd4539e"
|
---|
7775 | wsmap="managed"
|
---|
7776 | >
|
---|
7777 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
7778 | <desc>
|
---|
7779 | Type of the virtual network adapter. Depending on this value,
|
---|
7780 | VirtualBox will provide a different virtual network hardware
|
---|
7781 | to the guest.
|
---|
7782 | </desc>
|
---|
7783 | </attribute>
|
---|
7784 |
|
---|
7785 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
7786 | <desc>
|
---|
7787 | Slot number this adapter is plugged into. Corresponds to
|
---|
7788 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
7789 | to obtain this instance.
|
---|
7790 | </desc>
|
---|
7791 | </attribute>
|
---|
7792 |
|
---|
7793 | <attribute name="enabled" type="boolean">
|
---|
7794 | <desc>
|
---|
7795 | Flag whether the network adapter is present in the
|
---|
7796 | guest system. If disabled, the virtual guest hardware will
|
---|
7797 | not contain this network adapter. Can only be changed when
|
---|
7798 | the VM is not running.
|
---|
7799 | </desc>
|
---|
7800 | </attribute>
|
---|
7801 |
|
---|
7802 | <attribute name="MACAddress" type="wstring">
|
---|
7803 | <desc>
|
---|
7804 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
7805 | it to NULL, VirtualBox will generate a unique MAC address.
|
---|
7806 | </desc>
|
---|
7807 | </attribute>
|
---|
7808 |
|
---|
7809 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
7810 |
|
---|
7811 | <attribute name="hostInterface" type="wstring">
|
---|
7812 | <desc>
|
---|
7813 | Name of the Host Network Interface that is currently in use. NULL will be returned
|
---|
7814 | if no device has been allocated. On Linux, setting this refers to a permanent TAP
|
---|
7815 | device. However, a file descriptor has precedence over the interface name on Linux.
|
---|
7816 | Note that when VBox allocates a TAP device, this property will not be set, i.e. the
|
---|
7817 | interface name would have to be determined using the file descriptor and /proc/self/fd.
|
---|
7818 | </desc>
|
---|
7819 | </attribute>
|
---|
7820 |
|
---|
7821 | <if target="xpidl">
|
---|
7822 | <attribute name="TAPFileDescriptor" type="long">
|
---|
7823 | <desc>
|
---|
7824 | File descriptor of the TAP device. It can either be setup by the caller
|
---|
7825 | which has to supply an existing valid file handle allocated in the parent
|
---|
7826 | process of the VM process or allocated by VirtualBox. The value is -1 if it
|
---|
7827 | has not been defined. This property is non persistent, i.e. it will not be
|
---|
7828 | stored in the VM's configuration data and thus has to be set at each startup.
|
---|
7829 | </desc>
|
---|
7830 | </attribute>
|
---|
7831 | <attribute name="TAPSetupApplication" type="wstring">
|
---|
7832 | <desc>
|
---|
7833 | Application to start to configure the TAP device.
|
---|
7834 | It is being passed two parameters, 1) the file handle (as ascii),
|
---|
7835 | 2) the TAP device name if it is available.
|
---|
7836 | </desc>
|
---|
7837 | </attribute>
|
---|
7838 | <attribute name="TAPTerminateApplication" type="wstring">
|
---|
7839 | <desc>
|
---|
7840 | Application to start before closing a TAP device.
|
---|
7841 | It is being passed two parameters, 1) the file handle (as ascii),
|
---|
7842 | 2) the TAP device name if it is available.
|
---|
7843 | </desc>
|
---|
7844 | </attribute>
|
---|
7845 | </if>
|
---|
7846 |
|
---|
7847 | <attribute name="internalNetwork" type="wstring">
|
---|
7848 | <desc>
|
---|
7849 | Name of the internal network the VM is attached to.
|
---|
7850 | </desc>
|
---|
7851 | </attribute>
|
---|
7852 |
|
---|
7853 | <attribute name="cableConnected" type="boolean">
|
---|
7854 | <desc>
|
---|
7855 | Flag whether the adapter reports the cable as connected or not.
|
---|
7856 | It can be used to report offline situations to a VM.
|
---|
7857 | </desc>
|
---|
7858 | </attribute>
|
---|
7859 |
|
---|
7860 | <attribute name="lineSpeed" type="unsigned long">
|
---|
7861 | <desc>
|
---|
7862 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
7863 | </desc>
|
---|
7864 | </attribute>
|
---|
7865 |
|
---|
7866 | <attribute name="traceEnabled" type="boolean">
|
---|
7867 | <desc>
|
---|
7868 | Flag whether network traffic from/to the network card should be traced.
|
---|
7869 | Can only be toggled when the VM is turned off.
|
---|
7870 | </desc>
|
---|
7871 | </attribute>
|
---|
7872 |
|
---|
7873 | <attribute name="traceFile" type="wstring">
|
---|
7874 | <desc>
|
---|
7875 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
7876 | will be used.
|
---|
7877 | </desc>
|
---|
7878 | </attribute>
|
---|
7879 |
|
---|
7880 | <method name="attachToNAT">
|
---|
7881 | <desc>
|
---|
7882 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
7883 | </desc>
|
---|
7884 | </method>
|
---|
7885 |
|
---|
7886 | <method name="attachToHostInterface">
|
---|
7887 | <desc>
|
---|
7888 | Attach the network adapter to a host interface. On Linux, the TAP
|
---|
7889 | setup application will be executed if configured and unless a device
|
---|
7890 | name and/or file descriptor has been set, a new TAP interface will be
|
---|
7891 | created.
|
---|
7892 | </desc>
|
---|
7893 | </method>
|
---|
7894 |
|
---|
7895 | <method name="attachToInternalNetwork">
|
---|
7896 | <desc>
|
---|
7897 | Attach the network adapter to an internal network.
|
---|
7898 | </desc>
|
---|
7899 | </method>
|
---|
7900 |
|
---|
7901 | <method name="detach">
|
---|
7902 | <desc>
|
---|
7903 | Detach the network adapter
|
---|
7904 | </desc>
|
---|
7905 | </method>
|
---|
7906 | </interface>
|
---|
7907 |
|
---|
7908 |
|
---|
7909 | <!--
|
---|
7910 | // ISerialPort
|
---|
7911 | /////////////////////////////////////////////////////////////////////////
|
---|
7912 | -->
|
---|
7913 |
|
---|
7914 | <enum
|
---|
7915 | name="PortMode"
|
---|
7916 | uuid="b266f43c-2e93-46b3-812b-c20e600e867b"
|
---|
7917 | >
|
---|
7918 | <desc>
|
---|
7919 | The PortMode enumeration represents possible communicaton modes for
|
---|
7920 | the virtual serial port device.
|
---|
7921 | </desc>
|
---|
7922 |
|
---|
7923 | <const name="DisconnectedPort" value="0">
|
---|
7924 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
7925 | </const>
|
---|
7926 | <const name="HostPipePort" value="1">
|
---|
7927 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
7928 | </const>
|
---|
7929 | <const name="HostDevicePort" value="2">
|
---|
7930 | <desc>Virtual device is attached to a host device.</desc>
|
---|
7931 | </const>
|
---|
7932 | </enum>
|
---|
7933 |
|
---|
7934 | <interface
|
---|
7935 | name="ISerialPort" extends="$unknown"
|
---|
7936 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
7937 | wsmap="managed"
|
---|
7938 | >
|
---|
7939 |
|
---|
7940 | <desc>
|
---|
7941 | The ISerialPort interface represents the virtual serial port device.
|
---|
7942 |
|
---|
7943 | The virtual serial port device acts like an ordinary serial port
|
---|
7944 | inside the virtual machine. This device communicates to the real
|
---|
7945 | serial port hardware in one of two modes: host pipe or host device.
|
---|
7946 |
|
---|
7947 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
7948 | the host computer that represents a serial port. The #server attribute
|
---|
7949 | determines if this pipe is created by the virtual machine process at
|
---|
7950 | machine startup or it must already exist before starting machine
|
---|
7951 | execution.
|
---|
7952 |
|
---|
7953 | In host device mode, the #path attribute specifies the name of the
|
---|
7954 | serial port device on the host computer.
|
---|
7955 |
|
---|
7956 | There is also a third communication mode: the disconnected mode. In this
|
---|
7957 | mode, the guest OS running inside the virtual machine will be able to
|
---|
7958 | detect the serial port, but all port write operations will be discarded
|
---|
7959 | and all port read operations will return no data.
|
---|
7960 |
|
---|
7961 | <see>IMachine::getSerialPort</see>
|
---|
7962 | </desc>
|
---|
7963 |
|
---|
7964 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
7965 | <desc>
|
---|
7966 | Slot number this serial port is plugged into. Corresponds to
|
---|
7967 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
7968 | to obtain this instance.
|
---|
7969 | </desc>
|
---|
7970 | </attribute>
|
---|
7971 |
|
---|
7972 | <attribute name="enabled" type="boolean">
|
---|
7973 | <desc>
|
---|
7974 | Flag whether the serial port is enabled. If disabled,
|
---|
7975 | the serial port will not be reported to the guest OS.
|
---|
7976 | </desc>
|
---|
7977 | </attribute>
|
---|
7978 |
|
---|
7979 | <attribute name="IOBase" type="unsigned long">
|
---|
7980 | <desc>Base I/O address of the serial port.</desc>
|
---|
7981 | </attribute>
|
---|
7982 |
|
---|
7983 | <attribute name="IRQ" type="unsigned long">
|
---|
7984 | <desc>IRQ number of the serial port.</desc>
|
---|
7985 | </attribute>
|
---|
7986 |
|
---|
7987 | <attribute name="hostMode" type="PortMode">
|
---|
7988 | <desc>How is this port connected to the host.</desc>
|
---|
7989 | </attribute>
|
---|
7990 |
|
---|
7991 | <attribute name="server" type="boolean">
|
---|
7992 | <desc>
|
---|
7993 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
7994 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
7995 | used only when #hostMode is PortMode::HostPipePort.
|
---|
7996 | </desc>
|
---|
7997 | </attribute>
|
---|
7998 |
|
---|
7999 | <attribute name="path" type="wstring">
|
---|
8000 | <desc>
|
---|
8001 | Path to the serial port's pipe on the host when #hostMode is
|
---|
8002 | PortMode::HostPipePort, or the host serial device name when #hostMode
|
---|
8003 | is PortMode::HostDevicePort. In either of the above cases, setting a
|
---|
8004 | @c null or an empty string as the attribute's value will result into
|
---|
8005 | an error. Otherwise, the value of this property is ignored.
|
---|
8006 | </desc>
|
---|
8007 | </attribute>
|
---|
8008 |
|
---|
8009 | </interface>
|
---|
8010 |
|
---|
8011 | <!--
|
---|
8012 | // IParallelPort
|
---|
8013 | /////////////////////////////////////////////////////////////////////////
|
---|
8014 | -->
|
---|
8015 |
|
---|
8016 | <interface
|
---|
8017 | name="IParallelPort" extends="$unknown"
|
---|
8018 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
8019 | wsmap="managed"
|
---|
8020 | >
|
---|
8021 |
|
---|
8022 | <desc>
|
---|
8023 | The IParallelPort interface represents the virtual parallel port device.
|
---|
8024 |
|
---|
8025 | The virtual parallel port device acts like an ordinary parallel port
|
---|
8026 | inside the virtual machine. This device communicates to the real
|
---|
8027 | parallel port hardware using the name of the parallel device on the host
|
---|
8028 | computer specified in the #path attribute.
|
---|
8029 |
|
---|
8030 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
8031 | IRQ number that will be reported to the guest operating system and used
|
---|
8032 | to operate the given parallel port from within the virtual machine.
|
---|
8033 |
|
---|
8034 | <see>IMachine::getParallelPort</see>
|
---|
8035 | </desc>
|
---|
8036 |
|
---|
8037 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
8038 | <desc>
|
---|
8039 | Slot number this parallel port is plugged into. Corresponds to
|
---|
8040 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
8041 | to obtain this instance.
|
---|
8042 | </desc>
|
---|
8043 | </attribute>
|
---|
8044 |
|
---|
8045 | <attribute name="enabled" type="boolean">
|
---|
8046 | <desc>
|
---|
8047 | Flag whether the parallel port is enabled. If disabled,
|
---|
8048 | the parallel port will not be reported to the guest OS.
|
---|
8049 | </desc>
|
---|
8050 | </attribute>
|
---|
8051 |
|
---|
8052 | <attribute name="IOBase" type="unsigned long">
|
---|
8053 | <desc>Base I/O address of the parallel port.</desc>
|
---|
8054 | </attribute>
|
---|
8055 |
|
---|
8056 | <attribute name="IRQ" type="unsigned long">
|
---|
8057 | <desc>IRQ number of the parallel port.</desc>
|
---|
8058 | </attribute>
|
---|
8059 |
|
---|
8060 | <attribute name="path" type="wstring">
|
---|
8061 | <desc>
|
---|
8062 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
8063 | @c null or an empty string as this attribute's value will result into
|
---|
8064 | an error.
|
---|
8065 | </desc>
|
---|
8066 | </attribute>
|
---|
8067 |
|
---|
8068 | </interface>
|
---|
8069 |
|
---|
8070 |
|
---|
8071 | <!--
|
---|
8072 | // IMachineDebugger
|
---|
8073 | /////////////////////////////////////////////////////////////////////////
|
---|
8074 | -->
|
---|
8075 |
|
---|
8076 | <interface
|
---|
8077 | name="IMachineDebugger" extends="$unknown"
|
---|
8078 | uuid="b3a02721-556a-4481-9d47-052a3f8cff90"
|
---|
8079 | wsmap="suppress"
|
---|
8080 | >
|
---|
8081 | <method name="resetStats">
|
---|
8082 | <desc>
|
---|
8083 | Reset VM statistics.
|
---|
8084 | </desc>
|
---|
8085 | <param name="pattern" type="wstring" dir="in">
|
---|
8086 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
8087 | </param>
|
---|
8088 | </method>
|
---|
8089 |
|
---|
8090 | <method name="dumpStats">
|
---|
8091 | <desc>
|
---|
8092 | Dumps VM statistics.
|
---|
8093 | </desc>
|
---|
8094 | <param name="pattern" type="wstring" dir="in">
|
---|
8095 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
8096 | </param>
|
---|
8097 | </method>
|
---|
8098 |
|
---|
8099 | <method name="getStats">
|
---|
8100 | <desc>
|
---|
8101 | Get the VM statistics in a XMLish format.
|
---|
8102 | </desc>
|
---|
8103 | <param name="pattern" type="wstring" dir="in">
|
---|
8104 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
8105 | </param>
|
---|
8106 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
8107 | <desc>Whether to include the descriptions.</desc>
|
---|
8108 | </param>
|
---|
8109 | <param name="stats" type="wstring" dir="out">
|
---|
8110 | <desc>The XML document containing the statistics.</desc>
|
---|
8111 | </param>
|
---|
8112 | </method>
|
---|
8113 |
|
---|
8114 | <attribute name="singlestep" type="boolean">
|
---|
8115 | <desc>Switch for enabling singlestepping.</desc>
|
---|
8116 | </attribute>
|
---|
8117 |
|
---|
8118 | <attribute name="recompileUser" type="boolean">
|
---|
8119 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
8120 | </attribute>
|
---|
8121 |
|
---|
8122 | <attribute name="recompileSupervisor" type="boolean">
|
---|
8123 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
8124 | </attribute>
|
---|
8125 |
|
---|
8126 | <attribute name="PATMEnabled" type="boolean">
|
---|
8127 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
8128 | </attribute>
|
---|
8129 |
|
---|
8130 | <attribute name="CSAMEnabled" type="boolean">
|
---|
8131 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
8132 | </attribute>
|
---|
8133 |
|
---|
8134 | <attribute name="logEnabled" type="boolean">
|
---|
8135 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
8136 | </attribute>
|
---|
8137 |
|
---|
8138 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
8139 | <desc>
|
---|
8140 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
8141 | virtualization extensions
|
---|
8142 | </desc>
|
---|
8143 | </attribute>
|
---|
8144 |
|
---|
8145 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
8146 | <desc>
|
---|
8147 | The rate at which the virtual time runs expressed as a percentage.
|
---|
8148 | The accepted range is 2% to 20000%.
|
---|
8149 | </desc>
|
---|
8150 | </attribute>
|
---|
8151 |
|
---|
8152 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
8153 |
|
---|
8154 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
8155 | <desc>
|
---|
8156 | Gets the VM handle. This is only for internal use while
|
---|
8157 | we carve the details of this interface.
|
---|
8158 | </desc>
|
---|
8159 | </attribute>
|
---|
8160 |
|
---|
8161 | </interface>
|
---|
8162 |
|
---|
8163 | <!--
|
---|
8164 | // IUSBController
|
---|
8165 | /////////////////////////////////////////////////////////////////////////
|
---|
8166 | -->
|
---|
8167 |
|
---|
8168 | <interface
|
---|
8169 | name="IUSBController" extends="$unknown"
|
---|
8170 | uuid="f4c2d3dc-f109-4da7-93b1-ec28973ac89f"
|
---|
8171 | wsmap="managed"
|
---|
8172 | >
|
---|
8173 | <attribute name="enabled" type="boolean">
|
---|
8174 | <desc>
|
---|
8175 | Flag whether the USB controller is present in the
|
---|
8176 | guest system. If disabled, the virtual guest hardware will
|
---|
8177 | not contain any USB controller. Can only be changed when
|
---|
8178 | the VM is powered off.
|
---|
8179 | </desc>
|
---|
8180 | </attribute>
|
---|
8181 |
|
---|
8182 | <attribute name="enabledEhci" type="boolean">
|
---|
8183 | <desc>
|
---|
8184 | Flag whether the USB EHCI controller is present in the
|
---|
8185 | guest system. If disabled, the virtual guest hardware will
|
---|
8186 | not contain a USB EHCI controller. Can only be changed when
|
---|
8187 | the VM is powered off.
|
---|
8188 | </desc>
|
---|
8189 | </attribute>
|
---|
8190 |
|
---|
8191 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
8192 | <desc>
|
---|
8193 | USB standard version which the controller implements.
|
---|
8194 | This is a BCD which means that the major version is in the
|
---|
8195 | high byte and minor version is in the low byte.
|
---|
8196 | </desc>
|
---|
8197 | </attribute>
|
---|
8198 |
|
---|
8199 | <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
|
---|
8200 | <desc>
|
---|
8201 | List of USB device filters associated with the machine.
|
---|
8202 |
|
---|
8203 | If the machine is currently running, these filters are activated
|
---|
8204 | every time a new (supported) USB device is attached to the host
|
---|
8205 | computer that was not ignored by global filters
|
---|
8206 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
8207 |
|
---|
8208 | These filters are also activated when the machine is powered up.
|
---|
8209 | They are run against a list of all currently available USB
|
---|
8210 | devices (in states
|
---|
8211 | <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link>,
|
---|
8212 | <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
|
---|
8213 | <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>)
|
---|
8214 | that were not previously ignored by global filters.
|
---|
8215 |
|
---|
8216 | If at least one filter matches the USB device in question, this
|
---|
8217 | device is automatically captured (attached to) the virtual USB
|
---|
8218 | controller of this machine.
|
---|
8219 |
|
---|
8220 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
8221 | </desc>
|
---|
8222 | </attribute>
|
---|
8223 |
|
---|
8224 | <method name="createDeviceFilter">
|
---|
8225 | <desc>
|
---|
8226 | Creates a new USB device filter. All attributes except
|
---|
8227 | the filter name are set to <tt>null</tt> (any match),
|
---|
8228 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
8229 |
|
---|
8230 | The created filter can then be added to the list of filters using
|
---|
8231 | <link to="#insertDeviceFilter()"/>.
|
---|
8232 |
|
---|
8233 | <see>#deviceFilters</see>
|
---|
8234 | </desc>
|
---|
8235 | <param name="name" type="wstring" dir="in">
|
---|
8236 | <desc>
|
---|
8237 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
8238 | for more info.
|
---|
8239 | </desc>
|
---|
8240 | </param>
|
---|
8241 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
8242 | <desc>Created filter object.</desc>
|
---|
8243 | </param>
|
---|
8244 | </method>
|
---|
8245 |
|
---|
8246 | <method name="insertDeviceFilter">
|
---|
8247 | <desc>
|
---|
8248 | Inserts the given USB device to the specified position
|
---|
8249 | in the list of filters.
|
---|
8250 |
|
---|
8251 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
8252 | position is equal to or greater than the number of elements in
|
---|
8253 | the list, the filter is added to the end of the collection.
|
---|
8254 |
|
---|
8255 | <note>
|
---|
8256 | Duplicates are not allowed, so an attempt to inster a
|
---|
8257 | filter that is already in the collection, will return an
|
---|
8258 | error.
|
---|
8259 | </note>
|
---|
8260 |
|
---|
8261 | <see>#deviceFilters</see>
|
---|
8262 | </desc>
|
---|
8263 | <param name="position" type="unsigned long" dir="in">
|
---|
8264 | <desc>Position to insert the filter to.</desc>
|
---|
8265 | </param>
|
---|
8266 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
8267 | <desc>USB device filter to insert.</desc>
|
---|
8268 | </param>
|
---|
8269 | </method>
|
---|
8270 |
|
---|
8271 | <method name="removeDeviceFilter">
|
---|
8272 | <desc>
|
---|
8273 | Removes a USB device filter from the specified position in the
|
---|
8274 | list of filters.
|
---|
8275 |
|
---|
8276 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
8277 | position equal to or greater than the number of elements in
|
---|
8278 | the list will produce an error.
|
---|
8279 |
|
---|
8280 | <see>#deviceFilters</see>
|
---|
8281 | </desc>
|
---|
8282 | <param name="position" type="unsigned long" dir="in">
|
---|
8283 | <desc>Position to remove the filter from.</desc>
|
---|
8284 | </param>
|
---|
8285 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
8286 | <desc>Removed USB device filter.</desc>
|
---|
8287 | </param>
|
---|
8288 | </method>
|
---|
8289 |
|
---|
8290 | </interface>
|
---|
8291 |
|
---|
8292 |
|
---|
8293 | <!--
|
---|
8294 | // IUSBDevice
|
---|
8295 | /////////////////////////////////////////////////////////////////////////
|
---|
8296 | -->
|
---|
8297 |
|
---|
8298 | <enumerator
|
---|
8299 | name="IUSBDeviceEnumerator" type="IUSBDevice"
|
---|
8300 | uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
|
---|
8301 | />
|
---|
8302 |
|
---|
8303 | <collection
|
---|
8304 | name="IUSBDeviceCollection" type="IUSBDevice"
|
---|
8305 | enumerator="IUSBDeviceEnumerator"
|
---|
8306 | uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
|
---|
8307 | readonly="yes"
|
---|
8308 | >
|
---|
8309 | <method name="findById">
|
---|
8310 | <desc>
|
---|
8311 | Searches this collection for a USB device with the given UUID.
|
---|
8312 | <note>
|
---|
8313 | The method returns an error if the given UUID does not
|
---|
8314 | correspond to any USB device in the collection.
|
---|
8315 | </note>
|
---|
8316 | <see>IUSBDevice::id</see>
|
---|
8317 | </desc>
|
---|
8318 | <param name="id" type="uuid" dir="in">
|
---|
8319 | <desc>UUID of the USB device to search for.</desc>
|
---|
8320 | </param>
|
---|
8321 | <param name="device" type="IUSBDevice" dir="return">
|
---|
8322 | <desc>Found USB device object.</desc>
|
---|
8323 | </param>
|
---|
8324 | </method>
|
---|
8325 |
|
---|
8326 | <method name="findByAddress">
|
---|
8327 | <desc>
|
---|
8328 | Searches this collection for a USB device with the given
|
---|
8329 | host address.
|
---|
8330 | <note>
|
---|
8331 | The method returns an error if the given address does not
|
---|
8332 | correspond to any USB device in the collection.
|
---|
8333 | </note>
|
---|
8334 | <see>IUSBDevice::address</see>
|
---|
8335 | </desc>
|
---|
8336 | <param name="name" type="wstring" dir="in">
|
---|
8337 | <desc>
|
---|
8338 | Address of the USB device (as assigned by the host) to
|
---|
8339 | search for.
|
---|
8340 | </desc>
|
---|
8341 | </param>
|
---|
8342 | <param name="device" type="IUSBDevice" dir="return">
|
---|
8343 | <desc>Found USB device object.</desc>
|
---|
8344 | </param>
|
---|
8345 | </method>
|
---|
8346 |
|
---|
8347 | </collection>
|
---|
8348 |
|
---|
8349 | <interface
|
---|
8350 | name="IUSBDevice" extends="$unknown"
|
---|
8351 | uuid="850af07b-9ee8-48c2-b6b0-f6d0acbf63c3"
|
---|
8352 | wsmap="managed"
|
---|
8353 | >
|
---|
8354 | <desc>
|
---|
8355 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
8356 | virtual machine.
|
---|
8357 |
|
---|
8358 | A collection of objects implementing this interface is stored in the
|
---|
8359 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
8360 | attached to a running virtual machine's USB controller.
|
---|
8361 | </desc>
|
---|
8362 |
|
---|
8363 | <attribute name="id" type="uuid" readonly="yes">
|
---|
8364 | <desc>
|
---|
8365 | Unique USB device ID. This ID is built from #vendorId,
|
---|
8366 | #productId, #revision and #serialNumber.
|
---|
8367 | </desc>
|
---|
8368 | </attribute>
|
---|
8369 |
|
---|
8370 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
8371 | <desc>Vendor ID.</desc>
|
---|
8372 | </attribute>
|
---|
8373 |
|
---|
8374 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
8375 | <desc>Product ID.</desc>
|
---|
8376 | </attribute>
|
---|
8377 |
|
---|
8378 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
8379 | <desc>
|
---|
8380 | Product revision number. This is a packed BCD represented as
|
---|
8381 | unsigned short. The high byte is the integer part and the low
|
---|
8382 | byte is the decimal.
|
---|
8383 | </desc>
|
---|
8384 | </attribute>
|
---|
8385 |
|
---|
8386 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
8387 | <desc>Manufacturer string.</desc>
|
---|
8388 | </attribute>
|
---|
8389 |
|
---|
8390 | <attribute name="product" type="wstring" readonly="yes">
|
---|
8391 | <desc>Product string.</desc>
|
---|
8392 | </attribute>
|
---|
8393 |
|
---|
8394 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
8395 | <desc>Serial number string.</desc>
|
---|
8396 | </attribute>
|
---|
8397 |
|
---|
8398 | <attribute name="address" type="wstring" readonly="yes">
|
---|
8399 | <desc>Host specific address of the device.</desc>
|
---|
8400 | </attribute>
|
---|
8401 |
|
---|
8402 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
8403 | <desc>
|
---|
8404 | Host USB port number the device is physically
|
---|
8405 | coonected to.
|
---|
8406 | </desc>
|
---|
8407 | </attribute>
|
---|
8408 |
|
---|
8409 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
8410 | <desc>
|
---|
8411 | The major USB version of the device - 1 or 2.
|
---|
8412 | </desc>
|
---|
8413 | </attribute>
|
---|
8414 |
|
---|
8415 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
8416 | <desc>
|
---|
8417 | The major USB version of the host USB port the device is
|
---|
8418 | physically coonected to - 1 or 2. For devices not connected to
|
---|
8419 | anything this will have the same value as the version attribute.
|
---|
8420 | </desc>
|
---|
8421 | </attribute>
|
---|
8422 |
|
---|
8423 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
8424 | <desc>
|
---|
8425 | Whether the device is physically connected to a remote VRDP
|
---|
8426 | client or to a local host machine.
|
---|
8427 | </desc>
|
---|
8428 | </attribute>
|
---|
8429 |
|
---|
8430 | </interface>
|
---|
8431 |
|
---|
8432 |
|
---|
8433 | <!--
|
---|
8434 | // IUSBDeviceFilter
|
---|
8435 | /////////////////////////////////////////////////////////////////////////
|
---|
8436 | -->
|
---|
8437 |
|
---|
8438 | <enumerator
|
---|
8439 | name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
|
---|
8440 | uuid="d5109c61-93e7-4726-926b-0dee1020da56"
|
---|
8441 | />
|
---|
8442 |
|
---|
8443 | <collection
|
---|
8444 | name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
|
---|
8445 | enumerator="IUSBDeviceFilterEnumerator"
|
---|
8446 | uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
|
---|
8447 | readonly="yes"
|
---|
8448 | />
|
---|
8449 |
|
---|
8450 | <interface
|
---|
8451 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
8452 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
8453 | wsmap="managed"
|
---|
8454 | >
|
---|
8455 | <desc>
|
---|
8456 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
8457 | to perform actions on a group of USB devices.
|
---|
8458 |
|
---|
8459 | This type of filters is used by running virtual machines to
|
---|
8460 | automatically capture selected USB devices once they are physically
|
---|
8461 | attached to the host computer.
|
---|
8462 |
|
---|
8463 | A USB device is matched to the given device filter if and only if all
|
---|
8464 | attributes of the device match the corresponding attributes of the
|
---|
8465 | filter (that is, attributes are joined together using the logical AND
|
---|
8466 | operation). On the other hand, all together, filters in the list of
|
---|
8467 | filters carry the semantics of the logical OR operation. So if it is
|
---|
8468 | desirable to create a match like "this vendor id OR this product id",
|
---|
8469 | one needs to create two filters and specify "any match" (see below)
|
---|
8470 | for unused attributes.
|
---|
8471 |
|
---|
8472 | All filter attributes used for matching are strings. Each string
|
---|
8473 | is an expression representing a set of values of the corresponding
|
---|
8474 | device attribute, that will match the given filter. Currently, the
|
---|
8475 | following filtering expressions are supported:
|
---|
8476 |
|
---|
8477 | <ul>
|
---|
8478 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
8479 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
8480 | The format of the string is:
|
---|
8481 |
|
---|
8482 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
8483 |
|
---|
8484 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
8485 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
8486 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
8487 | is ommitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
8488 | is assumed; if <tt>n</tt> is ommitted after a dash, the maximum
|
---|
8489 | possible integer is assummed.
|
---|
8490 | </li>
|
---|
8491 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
8492 | boolean device attributes. The format of the string is:
|
---|
8493 |
|
---|
8494 | <tt>true|false|yes|no|0|1</tt>
|
---|
8495 |
|
---|
8496 | </li>
|
---|
8497 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
8498 | device attribute. Any string that does't start with <tt>int:</tt>
|
---|
8499 | represents the exact match. String device attributes are compared to
|
---|
8500 | this string including case of symbols. Integer attributes are first
|
---|
8501 | converted to a string (see individual filter attributes) and then
|
---|
8502 | compared ignoring case.
|
---|
8503 |
|
---|
8504 | </li>
|
---|
8505 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
8506 | will match the given filter. An empty or <tt>null</tt> string is
|
---|
8507 | used to construct this type of filtering expressions.
|
---|
8508 |
|
---|
8509 | </li>
|
---|
8510 | </ul>
|
---|
8511 |
|
---|
8512 | <note>
|
---|
8513 | On the Windows host platform, interval filters are not currently
|
---|
8514 | available. Also all string filter attributes
|
---|
8515 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
8516 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
8517 | <i>any match</i> no matter what string expression is specified.
|
---|
8518 | </note>
|
---|
8519 |
|
---|
8520 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
8521 | </desc>
|
---|
8522 |
|
---|
8523 | <attribute name="name" type="wstring">
|
---|
8524 | <desc>
|
---|
8525 | Visible name for this filter.
|
---|
8526 | This name is used to visually distungish one filter from another,
|
---|
8527 | so it can neither be <tt>null</tt> nor an empty string.
|
---|
8528 | </desc>
|
---|
8529 | </attribute>
|
---|
8530 |
|
---|
8531 | <attribute name="active" type="boolean">
|
---|
8532 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
8533 | </attribute>
|
---|
8534 |
|
---|
8535 | <attribute name="vendorId" type="wstring">
|
---|
8536 | <desc>
|
---|
8537 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
8538 | The string representation for the <i>exact matching</i>
|
---|
8539 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
8540 | (including leading zeroes).
|
---|
8541 | </desc>
|
---|
8542 | </attribute>
|
---|
8543 |
|
---|
8544 | <attribute name="productId" type="wstring">
|
---|
8545 | <desc>
|
---|
8546 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
8547 | The string representation for the <i>exact matching</i>
|
---|
8548 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
8549 | (including leading zeroes).
|
---|
8550 | </desc>
|
---|
8551 | </attribute>
|
---|
8552 |
|
---|
8553 | <attribute name="revision" type="wstring">
|
---|
8554 | <desc>
|
---|
8555 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
8556 | filter. The string representation for the <i>exact matching</i>
|
---|
8557 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
8558 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
8559 | decimal digit of its fractional part (including leading and
|
---|
8560 | trailing zeroes).
|
---|
8561 | Note that for interval filters, it's best to use the hexadecimal
|
---|
8562 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
8563 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
8564 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
8565 | </desc>
|
---|
8566 | </attribute>
|
---|
8567 |
|
---|
8568 | <attribute name="manufacturer" type="wstring">
|
---|
8569 | <desc>
|
---|
8570 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
8571 | </desc>
|
---|
8572 | </attribute>
|
---|
8573 |
|
---|
8574 | <attribute name="product" type="wstring">
|
---|
8575 | <desc>
|
---|
8576 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
8577 | </desc>
|
---|
8578 | </attribute>
|
---|
8579 |
|
---|
8580 | <attribute name="serialNumber" type="wstring">
|
---|
8581 | <desc>
|
---|
8582 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
8583 | </desc>
|
---|
8584 | </attribute>
|
---|
8585 |
|
---|
8586 | <attribute name="port" type="wstring">
|
---|
8587 | <desc>
|
---|
8588 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
8589 | </desc>
|
---|
8590 | </attribute>
|
---|
8591 |
|
---|
8592 | <attribute name="remote" type="wstring">
|
---|
8593 | <desc>
|
---|
8594 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
8595 | <note>
|
---|
8596 | This filter makes sense only for machine USB filters,
|
---|
8597 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
8598 | </note>
|
---|
8599 | </desc>
|
---|
8600 | </attribute>
|
---|
8601 |
|
---|
8602 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
8603 | <desc>
|
---|
8604 | This is an advanced option for hiding one or more USB interfaces
|
---|
8605 | from the guest. The value is a bitmask where the bits that are set
|
---|
8606 | means the corresponding USB interface should be hidden, masked off
|
---|
8607 | if you like.
|
---|
8608 | This feature only works on Linux hosts.
|
---|
8609 | </desc>
|
---|
8610 | </attribute>
|
---|
8611 |
|
---|
8612 | </interface>
|
---|
8613 |
|
---|
8614 |
|
---|
8615 | <!--
|
---|
8616 | // IHostUSBDevice
|
---|
8617 | /////////////////////////////////////////////////////////////////////////
|
---|
8618 | -->
|
---|
8619 |
|
---|
8620 | <enum
|
---|
8621 | name="USBDeviceState"
|
---|
8622 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
8623 | >
|
---|
8624 | <desc>
|
---|
8625 | USB device state. This enumeration represents all possible states
|
---|
8626 | of the USB device physically attached to the host computer regarding
|
---|
8627 | its state on the host computer and availability to guest computers
|
---|
8628 | (all currently running virtual machines).
|
---|
8629 |
|
---|
8630 | Once a supported USB device is attached to the host, global USB
|
---|
8631 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
8632 | either ignore the device, or put ot to #USBDeviceHeld state, or do
|
---|
8633 | nothing. Unless the device is ignored by global filters, filters of
|
---|
8634 | all currently running guests (<link to="IUSBController::deviceFilters"/>)
|
---|
8635 | are activated that can put it to #USBDeviceCaptured state.
|
---|
8636 |
|
---|
8637 | If the device was ignored by global filters, or didn't match
|
---|
8638 | any filters at all (including guest ones), it is handled by the host
|
---|
8639 | in a normal way. In this case, the device state is determined by
|
---|
8640 | the host and can be one of #USBDeviceUnavailable, #USBDeviceBusy or
|
---|
8641 | #USBDeviceAvailable, depending on the current device usage.
|
---|
8642 |
|
---|
8643 | Besides auto-capturing based on filters, the device can be manually
|
---|
8644 | captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
|
---|
8645 | state is #USBDeviceBusy, #USBDeviceAvailable or #USBDeviceHeld.
|
---|
8646 |
|
---|
8647 | <note>
|
---|
8648 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
8649 | states #USBDeviceBusy and #USBDeviceAvailable are applicable
|
---|
8650 | only to the Linux version of the product. This also means that
|
---|
8651 | (<link to="IConsole::attachUSBDevice()"/>) can only succeed
|
---|
8652 | on Win32 if the device state is #USBDeviceHeld.
|
---|
8653 | </note>
|
---|
8654 |
|
---|
8655 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
8656 | </desc>
|
---|
8657 |
|
---|
8658 | <const name="USBDeviceNotSupported" value="0">
|
---|
8659 | <desc>
|
---|
8660 | Not supported by the VirtualBox server, not available to guests.
|
---|
8661 | </desc>
|
---|
8662 | </const>
|
---|
8663 | <const name="USBDeviceUnavailable" value="1">
|
---|
8664 | <desc>
|
---|
8665 | Being used by the host computer exclusively,
|
---|
8666 | not available to guests.
|
---|
8667 | </desc>
|
---|
8668 | </const>
|
---|
8669 | <const name="USBDeviceBusy" value="2">
|
---|
8670 | <desc>
|
---|
8671 | Being used by the host computer, potentially available to guests.
|
---|
8672 | </desc>
|
---|
8673 | </const>
|
---|
8674 | <const name="USBDeviceAvailable" value="3">
|
---|
8675 | <desc>
|
---|
8676 | Not used by the host computer, available to guests.
|
---|
8677 | The host computer can also start using the device at any time.
|
---|
8678 | </desc>
|
---|
8679 | </const>
|
---|
8680 | <const name="USBDeviceHeld" value="4">
|
---|
8681 | <desc>
|
---|
8682 | Held by the VirtualBox server (ignored by the host computer),
|
---|
8683 | available to guests.
|
---|
8684 | </desc>
|
---|
8685 | </const>
|
---|
8686 | <const name="USBDeviceCaptured" value="5">
|
---|
8687 | <desc>
|
---|
8688 | Captured by one of the guest computers, not available
|
---|
8689 | to anybody else.
|
---|
8690 | </desc>
|
---|
8691 | </const>
|
---|
8692 | </enum>
|
---|
8693 |
|
---|
8694 | <enumerator
|
---|
8695 | name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
|
---|
8696 | uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
|
---|
8697 | />
|
---|
8698 |
|
---|
8699 | <collection
|
---|
8700 | name="IHostUSBDeviceCollection" type="IHostUSBDevice"
|
---|
8701 | enumerator="IHostUSBDeviceEnumerator"
|
---|
8702 | uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
|
---|
8703 | readonly="yes"
|
---|
8704 | >
|
---|
8705 | <method name="findById">
|
---|
8706 | <desc>
|
---|
8707 | Searches this collection for a USB device with the given UUID.
|
---|
8708 | <note>
|
---|
8709 | The method returns an error if the given UUID does not
|
---|
8710 | correspond to any USB device in the collection.
|
---|
8711 | </note>
|
---|
8712 | <see>IHostUSBDevice::id</see>
|
---|
8713 | </desc>
|
---|
8714 | <param name="id" type="uuid" dir="in">
|
---|
8715 | <desc>UUID of the USB device to search for.</desc>
|
---|
8716 | </param>
|
---|
8717 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
8718 | <desc>Found USB device object.</desc>
|
---|
8719 | </param>
|
---|
8720 | </method>
|
---|
8721 |
|
---|
8722 | <method name="findByAddress">
|
---|
8723 | <desc>
|
---|
8724 | Searches this collection for a USB device with the given
|
---|
8725 | host address.
|
---|
8726 | <note>
|
---|
8727 | The method returns an error if the given address does not
|
---|
8728 | correspond to any USB device in the collection.
|
---|
8729 | </note>
|
---|
8730 | <see>IHostUSBDevice::address</see>
|
---|
8731 | </desc>
|
---|
8732 | <param name="name" type="wstring" dir="in">
|
---|
8733 | <desc>
|
---|
8734 | Address of the USB device (as assigned by the host) to
|
---|
8735 | search for.
|
---|
8736 | </desc>
|
---|
8737 | </param>
|
---|
8738 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
8739 | <desc>Found USB device object.</desc>
|
---|
8740 | </param>
|
---|
8741 | </method>
|
---|
8742 |
|
---|
8743 | </collection>
|
---|
8744 |
|
---|
8745 | <interface
|
---|
8746 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
8747 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
8748 | wsmap="managed"
|
---|
8749 | >
|
---|
8750 | <desc>
|
---|
8751 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
8752 | to the host computer.
|
---|
8753 |
|
---|
8754 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
8755 | <link to="#state"/> property that holds the courrent state of the USB
|
---|
8756 | device.
|
---|
8757 |
|
---|
8758 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
8759 | </desc>
|
---|
8760 |
|
---|
8761 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
8762 | <desc>
|
---|
8763 | Current state of the device.
|
---|
8764 | </desc>
|
---|
8765 | </attribute>
|
---|
8766 |
|
---|
8767 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
8768 |
|
---|
8769 | </interface>
|
---|
8770 |
|
---|
8771 |
|
---|
8772 | <!--
|
---|
8773 | // IHostUSBDeviceFilter
|
---|
8774 | /////////////////////////////////////////////////////////////////////////
|
---|
8775 | -->
|
---|
8776 |
|
---|
8777 | <enum
|
---|
8778 | name="USBDeviceFilterAction"
|
---|
8779 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
8780 | >
|
---|
8781 | <desc>
|
---|
8782 | Actions for host USB device filters.
|
---|
8783 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
8784 | </desc>
|
---|
8785 |
|
---|
8786 | <const name="InvalidUSBDeviceFilterAction" value="0"/>
|
---|
8787 | <const name="USBDeviceFilterIgnore" value="1">
|
---|
8788 | <desc>Ignore the matched USB device.</desc>
|
---|
8789 | </const>
|
---|
8790 | <const name="USBDeviceFilterHold" value="2">
|
---|
8791 | <desc>Hold the matched USB device.</desc>
|
---|
8792 | </const>
|
---|
8793 | </enum>
|
---|
8794 |
|
---|
8795 | <enumerator
|
---|
8796 | name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
|
---|
8797 | uuid="ff735211-903e-4642-9c37-189eb44579fe"
|
---|
8798 | />
|
---|
8799 |
|
---|
8800 | <collection
|
---|
8801 | name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
|
---|
8802 | enumerator="IHostUSBDeviceFilterEnumerator"
|
---|
8803 | uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
|
---|
8804 | readonly="yes"
|
---|
8805 | />
|
---|
8806 |
|
---|
8807 | <interface
|
---|
8808 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
8809 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
8810 | wsmap="managed"
|
---|
8811 | >
|
---|
8812 | <desc>
|
---|
8813 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
8814 | physical USB device used by the host computer. Used indirectly in
|
---|
8815 | <link to="IHost::USBDeviceFilters"/>.
|
---|
8816 |
|
---|
8817 | Using filters of this type, the host computer determines the initial
|
---|
8818 | state of the USB device after it is physically attached to the
|
---|
8819 | host's USB controller.
|
---|
8820 |
|
---|
8821 | <note>
|
---|
8822 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
8823 | filters, because it makes sense only for
|
---|
8824 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
8825 | </note>
|
---|
8826 |
|
---|
8827 | <see>IHost::USBDeviceFilters</see>
|
---|
8828 | </desc>
|
---|
8829 |
|
---|
8830 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
8831 | <desc>
|
---|
8832 | Action performed by the host when an attached USB device
|
---|
8833 | matches this filter.
|
---|
8834 | </desc>
|
---|
8835 | </attribute>
|
---|
8836 |
|
---|
8837 | </interface>
|
---|
8838 |
|
---|
8839 | <!--
|
---|
8840 | // IAudioAdapter
|
---|
8841 | /////////////////////////////////////////////////////////////////////////
|
---|
8842 | -->
|
---|
8843 |
|
---|
8844 | <enum
|
---|
8845 | name="AudioDriverType"
|
---|
8846 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
8847 | >
|
---|
8848 | <const name="NullAudioDriver" value="0"/>
|
---|
8849 | <const name="WINMMAudioDriver" value="1"/>
|
---|
8850 | <const name="OSSAudioDriver" value="2"/>
|
---|
8851 | <const name="ALSAAudioDriver" value="3"/>
|
---|
8852 | <const name="DSOUNDAudioDriver" value="4"/>
|
---|
8853 | <const name="CoreAudioDriver" value="5"/>
|
---|
8854 | <const name="MMPMAudioDriver" value="6"/>
|
---|
8855 | <const name="PulseAudioDriver" value="7"/>
|
---|
8856 | </enum>
|
---|
8857 |
|
---|
8858 | <interface
|
---|
8859 | name="IAudioAdapter" extends="$unknown"
|
---|
8860 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
8861 | wsmap="struct"
|
---|
8862 | >
|
---|
8863 | <desc>
|
---|
8864 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
8865 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
8866 | </desc>
|
---|
8867 | <attribute name="enabled" type="boolean">
|
---|
8868 | <desc>
|
---|
8869 | Flag whether the audio adapter is present in the
|
---|
8870 | guest system. If disabled, the virtual guest hardware will
|
---|
8871 | not contain any audio adapter. Can only be changed when
|
---|
8872 | the VM is not running.
|
---|
8873 | </desc>
|
---|
8874 | </attribute>
|
---|
8875 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
8876 | <desc>
|
---|
8877 | Audio driver the adapter is connected to. This setting
|
---|
8878 | can only be changed when the VM is not running.
|
---|
8879 | </desc>
|
---|
8880 | </attribute>
|
---|
8881 | </interface>
|
---|
8882 |
|
---|
8883 | <!--
|
---|
8884 | // IVRDPServer
|
---|
8885 | /////////////////////////////////////////////////////////////////////////
|
---|
8886 | -->
|
---|
8887 |
|
---|
8888 | <enum
|
---|
8889 | name="VRDPAuthType"
|
---|
8890 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
8891 | >
|
---|
8892 | <const name="VRDPAuthNull" value="0"/>
|
---|
8893 | <const name="VRDPAuthExternal" value="1"/>
|
---|
8894 | <const name="VRDPAuthGuest" value="2"/>
|
---|
8895 | </enum>
|
---|
8896 |
|
---|
8897 | <interface
|
---|
8898 | name="IVRDPServer" extends="$unknown"
|
---|
8899 | uuid="ed9d31ae-867f-45fc-b727-6740084d1883"
|
---|
8900 | wsmap="struct"
|
---|
8901 | >
|
---|
8902 | <attribute name="enabled" type="boolean">
|
---|
8903 | <desc>VRDP server status.</desc>
|
---|
8904 | </attribute>
|
---|
8905 |
|
---|
8906 | <attribute name="port" type="unsigned long">
|
---|
8907 | <desc>
|
---|
8908 | VRDP server port number.
|
---|
8909 | <note>
|
---|
8910 | Setting the value of this property to <tt>0</tt> will reset the port
|
---|
8911 | number to the default value which is
|
---|
8912 | currently <tt>3389</tt>. Reading this property will always return a
|
---|
8913 | real port number, even after it has been set to <tt>0</tt> (in which
|
---|
8914 | case the default port is returned).
|
---|
8915 | </note>
|
---|
8916 | </desc>
|
---|
8917 | </attribute>
|
---|
8918 |
|
---|
8919 | <attribute name="netAddress" type="wstring">
|
---|
8920 | <desc>VRDP server address.</desc>
|
---|
8921 | </attribute>
|
---|
8922 |
|
---|
8923 | <attribute name="authType" type="VRDPAuthType">
|
---|
8924 | <desc>VRDP authentication method.</desc>
|
---|
8925 | </attribute>
|
---|
8926 |
|
---|
8927 | <attribute name="authTimeout" type="unsigned long">
|
---|
8928 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
8929 | </attribute>
|
---|
8930 |
|
---|
8931 | <attribute name="allowMultiConnection" type="boolean">
|
---|
8932 | <desc>
|
---|
8933 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
8934 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
8935 | </desc>
|
---|
8936 | </attribute>
|
---|
8937 |
|
---|
8938 | </interface>
|
---|
8939 |
|
---|
8940 |
|
---|
8941 | <!--
|
---|
8942 | // ISharedFolder
|
---|
8943 | /////////////////////////////////////////////////////////////////////////
|
---|
8944 | -->
|
---|
8945 |
|
---|
8946 | <enumerator
|
---|
8947 | name="ISharedFolderEnumerator" type="ISharedFolder"
|
---|
8948 | uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
|
---|
8949 | />
|
---|
8950 |
|
---|
8951 | <collection
|
---|
8952 | name="ISharedFolderCollection" type="ISharedFolder"
|
---|
8953 | enumerator="ISharedFolderEnumerator"
|
---|
8954 | uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
|
---|
8955 | readonly="yes">
|
---|
8956 |
|
---|
8957 | <method name="findByName">
|
---|
8958 | <desc>
|
---|
8959 | Searches this collection for a shared folder with the given logical
|
---|
8960 | name.
|
---|
8961 | <note>
|
---|
8962 | The method returns an error if the given name does not correspond to
|
---|
8963 | any shared folder in the collection.
|
---|
8964 | </note>
|
---|
8965 | </desc>
|
---|
8966 | <param name="name" type="wstring" dir="in">
|
---|
8967 | <desc>Logical name of the shared folder to search for</desc>
|
---|
8968 | </param>
|
---|
8969 | <param name="sharedFolder" type="ISharedFolder" dir="return">
|
---|
8970 | <desc>Found shared folder object</desc>
|
---|
8971 | </param>
|
---|
8972 | </method>
|
---|
8973 |
|
---|
8974 | </collection>
|
---|
8975 |
|
---|
8976 | <interface
|
---|
8977 | name="ISharedFolder" extends="$unknown"
|
---|
8978 | uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
|
---|
8979 | wsmap="struct"
|
---|
8980 | >
|
---|
8981 | <desc>
|
---|
8982 | The ISharedFolder interface represents a folder in the host computer's
|
---|
8983 | file system accessible from the guest OS running inside a virtual
|
---|
8984 | machine using an associated logical name.
|
---|
8985 |
|
---|
8986 | There are three types of shared folders:
|
---|
8987 | <ul>
|
---|
8988 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
8989 | folders available to all virtual machines.</li>
|
---|
8990 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
8991 | VM-specific shared folders available to the given virtual machine at
|
---|
8992 | startup.</li>
|
---|
8993 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
8994 | VM-specific shared folders created in the session context (for
|
---|
8995 | example, when the virtual machine is running) and automatically
|
---|
8996 | discarded when the session is closed (the VM is powered off).</li>
|
---|
8997 | </ul>
|
---|
8998 |
|
---|
8999 | Logical names of shared folders must be unique within the given scope
|
---|
9000 | (global, permanent or transient). However, they do not need to be unique
|
---|
9001 | across scopes. In this case, the definitioin of the shared folder in a
|
---|
9002 | more specific scope takes precedence over definitions in all other
|
---|
9003 | scopes. The order of precedence is (more specific to more general):
|
---|
9004 | <ol>
|
---|
9005 | <li>Transient definitions</li>
|
---|
9006 | <li>Permanent definitions</li>
|
---|
9007 | <li>Global definitions</li>
|
---|
9008 | </ol>
|
---|
9009 |
|
---|
9010 | For example, if MyMachine has a shared folder named
|
---|
9011 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then cretaing a
|
---|
9012 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
9013 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
9014 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
9015 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
9016 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
9017 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
9018 | the prevoious (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
9019 | to <tt>C:\\</tt> if it still exists.
|
---|
9020 |
|
---|
9021 | Note that permanent and transient shared folders of different machines
|
---|
9022 | are in different name spaces, so they don't overlap and don't need to
|
---|
9023 | have unique logical names.
|
---|
9024 |
|
---|
9025 | <note>
|
---|
9026 | Global shared folders are not implemented in the current vesion of the
|
---|
9027 | product.
|
---|
9028 | </note>
|
---|
9029 | </desc>
|
---|
9030 |
|
---|
9031 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9032 | <desc>Logical name of the shared folder.</desc>
|
---|
9033 | </attribute>
|
---|
9034 |
|
---|
9035 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
9036 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
9037 | </attribute>
|
---|
9038 |
|
---|
9039 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
9040 | <desc>
|
---|
9041 | Whether the folder defined by the host path is currently
|
---|
9042 | accessible or not.
|
---|
9043 | For example, the folder can be unaccessible if it is placed
|
---|
9044 | on the network share that is not available by the time
|
---|
9045 | this property is read.
|
---|
9046 | </desc>
|
---|
9047 | </attribute>
|
---|
9048 |
|
---|
9049 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
9050 | <desc>
|
---|
9051 | Whether the folder defined by the host path is writable or
|
---|
9052 | not.
|
---|
9053 | </desc>
|
---|
9054 | </attribute>
|
---|
9055 |
|
---|
9056 | </interface>
|
---|
9057 |
|
---|
9058 | <!--
|
---|
9059 | // ISession
|
---|
9060 | /////////////////////////////////////////////////////////////////////////
|
---|
9061 | -->
|
---|
9062 |
|
---|
9063 | <interface
|
---|
9064 | name="IInternalSessionControl" extends="$unknown"
|
---|
9065 | uuid="37838967-2430-4bb1-8acc-1b5b2c383d44"
|
---|
9066 | internal="yes"
|
---|
9067 | wsmap="suppress"
|
---|
9068 | >
|
---|
9069 | <method name="getPID">
|
---|
9070 | <desc>PID of the process that has created this Session object.
|
---|
9071 | </desc>
|
---|
9072 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
9073 | </method>
|
---|
9074 |
|
---|
9075 | <method name="getRemoteConsole">
|
---|
9076 | <desc>Returns the console object suitable for remote control.</desc>
|
---|
9077 | <param name="console" type="IConsole" dir="return"/>
|
---|
9078 | </method>
|
---|
9079 |
|
---|
9080 | <method name="assignMachine">
|
---|
9081 | <desc>
|
---|
9082 | Assigns the machine object associated with this direct-type
|
---|
9083 | session or informs the session that it will be a remote one
|
---|
9084 | (if machine = NULL).
|
---|
9085 | </desc>
|
---|
9086 | <param name="machine" type="IMachine" dir="in"/>
|
---|
9087 | </method>
|
---|
9088 |
|
---|
9089 | <method name="assignRemoteMachine">
|
---|
9090 | <desc>
|
---|
9091 | Assigns the machine and the (remote) console object associated with
|
---|
9092 | this remote-type session.
|
---|
9093 | </desc>
|
---|
9094 | <param name="machine" type="IMachine" dir="in"/>
|
---|
9095 | <param name="console" type="IConsole" dir="in"/>
|
---|
9096 | </method>
|
---|
9097 |
|
---|
9098 | <method name="updateMachineState">
|
---|
9099 | <desc>
|
---|
9100 | Updates the machine state in the VM process.
|
---|
9101 | Must be called only in certain cases
|
---|
9102 | (see the method implementation).
|
---|
9103 | </desc>
|
---|
9104 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
9105 | </method>
|
---|
9106 |
|
---|
9107 | <method name="uninitialize">
|
---|
9108 | <desc>
|
---|
9109 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
9110 | the corresponding remote session when the direct session dies
|
---|
9111 | or gets closed.
|
---|
9112 | </desc>
|
---|
9113 | </method>
|
---|
9114 |
|
---|
9115 | <method name="onDVDDriveChange">
|
---|
9116 | <desc>
|
---|
9117 | Triggered when settings of the DVD drive object of the
|
---|
9118 | associated virtual machine have changed.
|
---|
9119 | </desc>
|
---|
9120 | </method>
|
---|
9121 |
|
---|
9122 | <method name="onFloppyDriveChange">
|
---|
9123 | <desc>
|
---|
9124 | Triggered when settings of the floppy drive object of the
|
---|
9125 | associated virtual machine have changed.
|
---|
9126 | </desc>
|
---|
9127 | </method>
|
---|
9128 |
|
---|
9129 | <method name="onNetworkAdapterChange">
|
---|
9130 | <desc>
|
---|
9131 | Triggered when settions of a network adapter of the
|
---|
9132 | associated virtual machine have changed.
|
---|
9133 | </desc>
|
---|
9134 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
9135 | </method>
|
---|
9136 |
|
---|
9137 | <method name="onSerialPortChange">
|
---|
9138 | <desc>
|
---|
9139 | Triggered when settions of a serial port of the
|
---|
9140 | associated virtual machine have changed.
|
---|
9141 | </desc>
|
---|
9142 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
9143 | </method>
|
---|
9144 |
|
---|
9145 | <method name="onParallelPortChange">
|
---|
9146 | <desc>
|
---|
9147 | Triggered when settings of a parallel port of the
|
---|
9148 | associated virtual machine have changed.
|
---|
9149 | </desc>
|
---|
9150 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
9151 | </method>
|
---|
9152 |
|
---|
9153 | <method name="onVRDPServerChange">
|
---|
9154 | <desc>
|
---|
9155 | Triggered when settings of the VRDP server object of the
|
---|
9156 | associated virtual machine have changed.
|
---|
9157 | </desc>
|
---|
9158 | </method>
|
---|
9159 |
|
---|
9160 | <method name="onUSBControllerChange">
|
---|
9161 | <desc>
|
---|
9162 | Triggered when settings of the USB controller object of the
|
---|
9163 | associated virtual machine have changed.
|
---|
9164 | </desc>
|
---|
9165 | </method>
|
---|
9166 |
|
---|
9167 | <method name="onSharedFolderChange">
|
---|
9168 | <desc>
|
---|
9169 | Triggered when a permanent (global or machine) shared folder has been
|
---|
9170 | created or removed.
|
---|
9171 | <note>
|
---|
9172 | We don't pass shared folder parameters in this notification because
|
---|
9173 | the order in which parallel notifications are delivered is not defined,
|
---|
9174 | therefore it could happen that these parameters were outdated by the
|
---|
9175 | time of processing this notification.
|
---|
9176 | </note>
|
---|
9177 | </desc>
|
---|
9178 | <param name="global" type="boolean" dir="in"/>
|
---|
9179 | </method>
|
---|
9180 |
|
---|
9181 | <method name="onUSBDeviceAttach">
|
---|
9182 | <desc>
|
---|
9183 | Triggered when a request to capture a USB device (as a result
|
---|
9184 | of matched USB filters or direct call to
|
---|
9185 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
9186 | A @c null @a error object means success, otherwise it
|
---|
9187 | describes a failure.
|
---|
9188 | </desc>
|
---|
9189 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
9190 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
9191 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
9192 | </method>
|
---|
9193 |
|
---|
9194 | <method name="onUSBDeviceDetach">
|
---|
9195 | <desc>
|
---|
9196 | Triggered when a request to release the USB device (as a result
|
---|
9197 | of machine termination or direct call to
|
---|
9198 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
9199 | A @c null @a error object means success, otherwise it
|
---|
9200 | </desc>
|
---|
9201 | <param name="id" type="uuid" dir="in"/>
|
---|
9202 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
9203 | </method>
|
---|
9204 |
|
---|
9205 | <method name="onShowWindow">
|
---|
9206 | <desc>
|
---|
9207 | Called by <link to="IMachine::canShowConsoleWindow()"/> and by
|
---|
9208 | <link to="IMachine::showConsoleWindow()"/> in order to notify
|
---|
9209 | console callbacks
|
---|
9210 | <link to="IConsoleCallback::onCanShowWindow()"/>
|
---|
9211 | and <link to="IConsoleCallback::onShowWindow()"/>.
|
---|
9212 | </desc>
|
---|
9213 | <param name="check" type="boolean" dir="in"/>
|
---|
9214 | <param name="canShow" type="boolean" dir="out"/>
|
---|
9215 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
9216 | </method>
|
---|
9217 |
|
---|
9218 | </interface>
|
---|
9219 |
|
---|
9220 | <interface
|
---|
9221 | name="ISession" extends="$dispatched"
|
---|
9222 | uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
|
---|
9223 | wsmap="managed"
|
---|
9224 | >
|
---|
9225 | <desc>
|
---|
9226 | The ISession interface represents a serialization primitive for virtual
|
---|
9227 | machines.
|
---|
9228 |
|
---|
9229 | Within VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
9230 | (for example, change its settings or start execution), an instance of
|
---|
9231 | the ISession interface is required. One first creates a local session
|
---|
9232 | object that implements the ISession interface and then passes the
|
---|
9233 | created object with the method call that opens the given session and
|
---|
9234 | thus initiates the machine manipulation. The session serves several
|
---|
9235 | purposes: it identifies to the inter-process VirtualBox code which
|
---|
9236 | process is currently working with the virtual machine, and it ensures
|
---|
9237 | that there are no incompatible requests from several processes for the
|
---|
9238 | same virtual machine.
|
---|
9239 |
|
---|
9240 | When using the COM API directly, an object of the Session class from the
|
---|
9241 | VirtualBox type library needs to be created. This object will then act
|
---|
9242 | as a local session object in further calls to open a session.
|
---|
9243 |
|
---|
9244 | In the webservice, the session manager creates one session object during
|
---|
9245 | <link to="IWebsessionManager::logon" /> automatically; a managed object
|
---|
9246 | reference to that session object can be retrieved by calling
|
---|
9247 | <link to="IWebsessionManager::getSessionObject" />.
|
---|
9248 |
|
---|
9249 | To start a virtual machine in a separate process, one would call
|
---|
9250 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
9251 | object as its first parameter. This session then identifies the caller
|
---|
9252 | and lets him control the started machine (for example, pause machine
|
---|
9253 | execution or power it down) as well as be notified about machine
|
---|
9254 | execution state changes.
|
---|
9255 |
|
---|
9256 | To alter machine settings, or to start machine execution within its own
|
---|
9257 | process, one needs to open a direct session for the machine first by
|
---|
9258 | calling <link to="IVirtualBox::openSession"/>. Once the direct session
|
---|
9259 | is successfully opened within one process, no any other process may open
|
---|
9260 | a direct session for the same machine as long as the successful direct
|
---|
9261 | session remains open. This prevents the machine from being changed by
|
---|
9262 | other processes while it is running or while the machine is being
|
---|
9263 | configured.
|
---|
9264 |
|
---|
9265 | One also can attach to an existing direct session alreay opened by
|
---|
9266 | another process (for example, in order to send a control request to the
|
---|
9267 | virtual machine such as the pause or the reset request). This is done by
|
---|
9268 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
9269 |
|
---|
9270 | In regular COM C++ client code, one can simply create a session object,
|
---|
9271 | for example by calling <tt>createLocalObject().</tt>
|
---|
9272 |
|
---|
9273 | <note>
|
---|
9274 | Unless you are trying to write a new VirtualBox front-end that
|
---|
9275 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
9276 | frontends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
9277 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
9278 | session only to change virtual machine settings. If you simply want to
|
---|
9279 | start virtual machine execution using one of the existing frontends
|
---|
9280 | (for example the VirtualBox GUI frontend), use
|
---|
9281 | <link to="IVirtualBox::openRemoteSession"/>. In the latter case, on
|
---|
9282 | sucess, the machine will be powered up for you by the front-end so you
|
---|
9283 | don't need to call <link to="IConsole::powerUp"/> too.
|
---|
9284 | </note>
|
---|
9285 | </desc>
|
---|
9286 |
|
---|
9287 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
9288 | <desc>Current state of this session.</desc>
|
---|
9289 | </attribute>
|
---|
9290 |
|
---|
9291 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
9292 | <desc>
|
---|
9293 | Type of this session. The value of this attribute is valid only
|
---|
9294 | if the session is currently open (i.e. its #state is SessionType::SessionOpen),
|
---|
9295 | otherwise an error will be returned.
|
---|
9296 | </desc>
|
---|
9297 | </attribute>
|
---|
9298 |
|
---|
9299 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
9300 | <desc>Machine object associated with this session.</desc>
|
---|
9301 | </attribute>
|
---|
9302 |
|
---|
9303 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
9304 | <desc>Console object associated with this session.</desc>
|
---|
9305 | </attribute>
|
---|
9306 |
|
---|
9307 | <method name="close">
|
---|
9308 | <desc>
|
---|
9309 | Closes this session.
|
---|
9310 | <note>
|
---|
9311 | If a direct session for a machine opened with
|
---|
9312 | <link to="IVirtualBox::openSession()"/> is not explicitly
|
---|
9313 | closed when the application terminates, the state of the
|
---|
9314 | machine will be set to <link to="MachineState::Aborted"/>
|
---|
9315 | on the server. Generally, it is recommended to close all
|
---|
9316 | open sessions explicitly before terminating the application
|
---|
9317 | (no matter what is the reason of the termination).
|
---|
9318 | </note>
|
---|
9319 | </desc>
|
---|
9320 | </method>
|
---|
9321 |
|
---|
9322 | </interface>
|
---|
9323 |
|
---|
9324 | <if target="wsdl">
|
---|
9325 |
|
---|
9326 | <!--
|
---|
9327 | // IManagedObjectRef
|
---|
9328 | /////////////////////////////////////////////////////////////////////////
|
---|
9329 | -->
|
---|
9330 |
|
---|
9331 | <interface
|
---|
9332 | name="IManagedObjectRef" extends="$unknown"
|
---|
9333 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
9334 | internal="yes"
|
---|
9335 | wsmap="managed"
|
---|
9336 | wscpp="hardcoded"
|
---|
9337 | >
|
---|
9338 | <desc>
|
---|
9339 | Webservice only: Managed object reference.
|
---|
9340 |
|
---|
9341 | Only within the webservice, a managed object reference (which is really
|
---|
9342 | an opaque number) allows a webservice client to address an object
|
---|
9343 | that lives in the address space of the webservice server.
|
---|
9344 |
|
---|
9345 | Behind each managed object reference, there is a COM object that lives
|
---|
9346 | in the webservice server's address space. The COM object is not freed
|
---|
9347 | until the managed object reference is released, either by an explicit
|
---|
9348 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
9349 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
9350 | all objects created during the webservice session.
|
---|
9351 |
|
---|
9352 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
9353 | webservice representation of that method will instead return a
|
---|
9354 | managed object reference, which can then be used to invoke methods
|
---|
9355 | on that object.
|
---|
9356 | </desc>
|
---|
9357 |
|
---|
9358 | <method name="getInterfaceName">
|
---|
9359 | <desc>
|
---|
9360 | Returns the name of the interface that this managed object represents,
|
---|
9361 | for example, "IMachine", as a string.
|
---|
9362 | </desc>
|
---|
9363 | <param name="return" type="wstring" dir="return"/>
|
---|
9364 | </method>
|
---|
9365 |
|
---|
9366 | <method name="release">
|
---|
9367 | <desc>
|
---|
9368 | Releases this managed object reference and frees the resources that
|
---|
9369 | were allocated for it in the webservice server process. After calling
|
---|
9370 | this method, the identifier of the reference can no longer be used.
|
---|
9371 | </desc>
|
---|
9372 | </method>
|
---|
9373 |
|
---|
9374 | </interface>
|
---|
9375 |
|
---|
9376 | <!--
|
---|
9377 | // IWebsessionManager
|
---|
9378 | /////////////////////////////////////////////////////////////////////////
|
---|
9379 | -->
|
---|
9380 |
|
---|
9381 | <interface
|
---|
9382 | name="IWebsessionManager" extends="$unknown"
|
---|
9383 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
9384 | internal="yes"
|
---|
9385 | wsmap="global"
|
---|
9386 | wscpp="hardcoded"
|
---|
9387 | >
|
---|
9388 | <desc>
|
---|
9389 | Webservice only: Websession manager. This provides essential services
|
---|
9390 | to webservice clients.
|
---|
9391 | </desc>
|
---|
9392 | <method name="logon">
|
---|
9393 | <desc>
|
---|
9394 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
9395 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
9396 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
9397 | interface, in one way or the other.
|
---|
9398 | </desc>
|
---|
9399 | <param name="username" type="wstring" dir="in"/>
|
---|
9400 | <param name="password" type="wstring" dir="in"/>
|
---|
9401 | <param name="return" type="wstring" dir="return"/>
|
---|
9402 | </method>
|
---|
9403 |
|
---|
9404 | <method name="getSessionObject">
|
---|
9405 | <desc>
|
---|
9406 | Returns a managed object reference to the internal ISession object that was created
|
---|
9407 | for this web service session when the client logged on.
|
---|
9408 |
|
---|
9409 | <see>ISession</see>
|
---|
9410 | </desc>
|
---|
9411 | <param name="refIVirtualBox" type="wstring" dir="in"/>
|
---|
9412 | <param name="return" type="wstring" dir="return"/>
|
---|
9413 | </method>
|
---|
9414 |
|
---|
9415 | <method name="logoff">
|
---|
9416 | <desc>
|
---|
9417 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
9418 | and destroys all resources associated with the session (most importantly, all
|
---|
9419 | managed objects created in the server while the session was active).
|
---|
9420 | </desc>
|
---|
9421 | <param name="refIVirtualBox" type="wstring" dir="in"/>
|
---|
9422 | </method>
|
---|
9423 |
|
---|
9424 | </interface>
|
---|
9425 |
|
---|
9426 | </if>
|
---|
9427 |
|
---|
9428 | <module name="VBoxSVC" context="LocalServer">
|
---|
9429 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
9430 | namespace="virtualbox.org">
|
---|
9431 | <interface name="IVirtualBox" default="yes"/>
|
---|
9432 | </class>
|
---|
9433 | </module>
|
---|
9434 |
|
---|
9435 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
9436 | <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
|
---|
9437 | namespace="virtualbox.org">
|
---|
9438 | <interface name="ISession" default="yes"/>
|
---|
9439 | </class>
|
---|
9440 | </module>
|
---|
9441 |
|
---|
9442 | </library>
|
---|
9443 |
|
---|
9444 | </idl>
|
---|