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 | * - out/<platform>/bin/sdk/idl/VirtualBox[_XPCOM].idl, a
|
---|
14 | * COM/XPCOM interface definition file (IDL)
|
---|
15 | *
|
---|
16 | * - out/<platform>/bin/sdk/include/VirtualBox[_XPCOM].h, which
|
---|
17 | * gets included from the include/VBox/com/VirtualBox.h
|
---|
18 | * wrapper, to allow clients to access the COM/XPCOM API;
|
---|
19 | *
|
---|
20 | * - also, another intermediate file that is then used to
|
---|
21 | * produce the official Doxygen documentation of the API.
|
---|
22 | *
|
---|
23 | * - a lot of files for the web service by XSLT stylesheets
|
---|
24 | * in the ../webservice directory; the targets include a
|
---|
25 | * WSDL file that describes the web service and C++ method
|
---|
26 | * mappers that map SOAP messages to COM calls.
|
---|
27 | *
|
---|
28 | * Copyright (C) 2006-2007 innotek GmbH
|
---|
29 | *
|
---|
30 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
31 | * available from http://www.virtualbox.org. This file is free software;
|
---|
32 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
33 | * General Public License as published by the Free Software Foundation,
|
---|
34 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
35 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
36 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
37 | *
|
---|
38 | * If you received this file as part of a commercial VirtualBox
|
---|
39 | * distribution, then only the terms of your commercial VirtualBox
|
---|
40 | * license agreement apply instead of the previous paragraph.
|
---|
41 | -->
|
---|
42 |
|
---|
43 | <idl>
|
---|
44 |
|
---|
45 | <if target="midl">
|
---|
46 | <cpp line="enum {"/>
|
---|
47 | <cpp line=" kTypeLibraryMajorVersion = 1,"/>
|
---|
48 | <cpp line=" kTypeLibraryMinorVersion = 0"/>
|
---|
49 | <cpp line="};"/>
|
---|
50 | </if>
|
---|
51 |
|
---|
52 | <if target="xpidl">
|
---|
53 | <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
|
---|
54 | <cpp>
|
---|
55 | // currenty, nsISupportsImpl.h lacks the below-like macros
|
---|
56 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
57 | #define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
58 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
59 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
60 | NS_IMPL_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
61 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
62 | #endif
|
---|
63 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
64 | #define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
65 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
66 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
67 | NS_IMPL_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
68 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
69 | #endif
|
---|
70 | </cpp>
|
---|
71 | </if>
|
---|
72 |
|
---|
73 | <module
|
---|
74 | name="VirtualBox"
|
---|
75 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
76 | version="1.3"
|
---|
77 | desc="innotek VirtualBox Type Library"
|
---|
78 | supportsErrorInfo="yes"
|
---|
79 | >
|
---|
80 |
|
---|
81 | <!--
|
---|
82 | // all common enums
|
---|
83 | /////////////////////////////////////////////////////////////////////////
|
---|
84 | -->
|
---|
85 |
|
---|
86 | <enum
|
---|
87 | name="TriStateBool"
|
---|
88 | uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a"
|
---|
89 | >
|
---|
90 | <desc>
|
---|
91 | This represents a boolean variable having a third state, default.
|
---|
92 | </desc>
|
---|
93 |
|
---|
94 | <const name="False" value="0"/>
|
---|
95 | <const name="True" value="1"/>
|
---|
96 | <const name="Default" value="2"/>
|
---|
97 | </enum>
|
---|
98 |
|
---|
99 | <enum
|
---|
100 | name="MachineState"
|
---|
101 | uuid="b8bb15f7-4fa2-4e84-87a8-b4677dd87deb"
|
---|
102 | >
|
---|
103 | <desc>
|
---|
104 | Virtual machine execution state. This enumeration represents possible
|
---|
105 | values of the <link to="IMachine::state"/> attribute.
|
---|
106 | </desc>
|
---|
107 |
|
---|
108 | <const name="InvalidMachineState" value="0"/>
|
---|
109 | <const name="PoweredOff" value="1">
|
---|
110 | <desc>
|
---|
111 | The machine is not running.
|
---|
112 | </desc>
|
---|
113 | </const>
|
---|
114 | <const name="Saved" value="2">
|
---|
115 | <desc>
|
---|
116 | The machine is not currently running, but the execution state
|
---|
117 | of the machine has been saved to an external file when it
|
---|
118 | was running.
|
---|
119 | <note>
|
---|
120 | No any machine settings can be altered when the machine
|
---|
121 | is in this state.
|
---|
122 | </note>
|
---|
123 | </desc>
|
---|
124 | </const>
|
---|
125 | <const name="Aborted" value="3">
|
---|
126 | <desc>
|
---|
127 | A process that run the machine has abnormally terminated.
|
---|
128 | Other than that, this value is equivalent to #PoweredOff.
|
---|
129 | </desc>
|
---|
130 | </const>
|
---|
131 | <const name="Running" value="4">
|
---|
132 | <desc>
|
---|
133 | The machine is currently being executed.
|
---|
134 | <note>
|
---|
135 | This value can be used in comparison expressions:
|
---|
136 | all state values below it describe a virtual machine that is
|
---|
137 | not currently being executed (i.e., it is completely out of
|
---|
138 | action).
|
---|
139 | </note>
|
---|
140 | </desc>
|
---|
141 | </const>
|
---|
142 | <const name="Paused" value="5">
|
---|
143 | <desc>
|
---|
144 | The execution of the machine has been paused.
|
---|
145 | <note>
|
---|
146 | This value can be used in comparison expressions:
|
---|
147 | all state values above it represent unstable states of the
|
---|
148 | virtual machine. No any settings can be altered when the
|
---|
149 | VM is in one of the unstable sates.
|
---|
150 | </note>
|
---|
151 | </desc>
|
---|
152 | </const>
|
---|
153 | <const name="Starting" value="6">
|
---|
154 | <desc>
|
---|
155 | The machine is being started after
|
---|
156 | <link to="IConsole::powerUp">powering it on</link> from a
|
---|
157 | zero execution state.
|
---|
158 | </desc>
|
---|
159 | </const>
|
---|
160 | <const name="Stopping" value="7">
|
---|
161 | <desc>
|
---|
162 | The machine is being normally stopped
|
---|
163 | (after explicitly <link to="IConsole::powerDown">powering it off</link>,
|
---|
164 | or after the guest OS has initiated a shutdown sequence).
|
---|
165 | </desc>
|
---|
166 | </const>
|
---|
167 | <const name="Saving" value="8">
|
---|
168 | <desc>
|
---|
169 | The machine is saving its execution state to a file as a
|
---|
170 | result of calling <link to="IConsole::saveState"/> or an online
|
---|
171 | snapshot of the machine is being taken using
|
---|
172 | <link to="IConsole::takeSnapshot"/>.
|
---|
173 | </desc>
|
---|
174 | </const>
|
---|
175 | <const name="Restoring" value="9">
|
---|
176 | <desc>
|
---|
177 | The execution state of the machine is being restored from a file
|
---|
178 | after <link to="IConsole::powerUp">powering it on</link> from
|
---|
179 | a saved execution state.
|
---|
180 | </desc>
|
---|
181 | </const>
|
---|
182 | <const name="Discarding" value="10">
|
---|
183 | <desc>
|
---|
184 | A snapshot of the machine is being discarded after calling
|
---|
185 | <link to="IConsole::discardSnapshot"/> or its current state is
|
---|
186 | being discarded after <link to="IConsole::discardCurrentState"/>.
|
---|
187 | </desc>
|
---|
188 | </const>
|
---|
189 | </enum>
|
---|
190 |
|
---|
191 | <enum
|
---|
192 | name="SessionState"
|
---|
193 | uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
|
---|
194 | >
|
---|
195 | <desc>
|
---|
196 | Session state. This enumeration represents possible values of
|
---|
197 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
198 | attributes. Idividual value descriptions contain the appropriate
|
---|
199 | meaning for every case.
|
---|
200 | </desc>
|
---|
201 |
|
---|
202 | <const name="InvalidSessionState" value="0"/>
|
---|
203 | <const name="SessionClosed" value="1">
|
---|
204 | <desc>
|
---|
205 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
206 | the session is closed (<link to="ISession::state"/>)
|
---|
207 | </desc>
|
---|
208 | </const>
|
---|
209 | <const name="SessionOpen" value="2">
|
---|
210 | <desc>
|
---|
211 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
212 | the session is open (<link to="ISession::state"/>)
|
---|
213 | </desc>
|
---|
214 | </const>
|
---|
215 | <const name="SessionSpawning" value="3">
|
---|
216 | <desc>
|
---|
217 | A new (direct) session is being opened for the machine
|
---|
218 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
219 | call (<link to="IMachine::sessionState"/>);
|
---|
220 | the session is currently being opened
|
---|
221 | as a result of <link to="IVirtualBox::openRemoteSession()"/>
|
---|
222 | call (<link to="ISession::state"/>)
|
---|
223 | </desc>
|
---|
224 | </const>
|
---|
225 | <const name="SessionClosing" value="4">
|
---|
226 | <desc>
|
---|
227 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
228 | the session is being closed (<link to="ISession::state"/>)
|
---|
229 | </desc>
|
---|
230 | </const>
|
---|
231 | </enum>
|
---|
232 |
|
---|
233 | <enum
|
---|
234 | name="SessionType"
|
---|
235 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
236 | >
|
---|
237 | <desc>
|
---|
238 | Session type. This enumeration represents possible values of the
|
---|
239 | <link to="ISession::type"/> attribute.
|
---|
240 | </desc>
|
---|
241 |
|
---|
242 | <const name="InvalidSessionType" value="0"/>
|
---|
243 | <const name="DirectSession" value="1">
|
---|
244 | <desc>
|
---|
245 | Direct session
|
---|
246 | (opened by <link to="IVirtualBox::openSession()"/>)
|
---|
247 | </desc>
|
---|
248 | </const>
|
---|
249 | <const name="RemoteSession" value="2">
|
---|
250 | <desc>
|
---|
251 | Remote session
|
---|
252 | (opened by <link to="IVirtualBox::openRemoteSession()"/>)
|
---|
253 | </desc>
|
---|
254 | </const>
|
---|
255 | <const name="ExistingSession" value="3">
|
---|
256 | <desc>
|
---|
257 | Existing session
|
---|
258 | (opened by <link to="IVirtualBox::openExistingSession()"/>)
|
---|
259 | </desc>
|
---|
260 | </const>
|
---|
261 | </enum>
|
---|
262 |
|
---|
263 | <enum
|
---|
264 | name="DeviceType"
|
---|
265 | uuid="8B7F8ADE-E8F7-42a4-9661-9F5092C4DB4C"
|
---|
266 | >
|
---|
267 | <desc>
|
---|
268 | Device type.
|
---|
269 | </desc>
|
---|
270 | <const name="NoDevice" value="0">
|
---|
271 | <desc>
|
---|
272 | No Device. This value is not used by
|
---|
273 | <link to="IConsole::getDeviceActivity"/>
|
---|
274 | </desc>
|
---|
275 | </const>
|
---|
276 | <const name="FloppyDevice" value="1">
|
---|
277 | <desc>Floppy device.</desc>
|
---|
278 | </const>
|
---|
279 | <const name="DVDDevice" value="2">
|
---|
280 | <desc>CD/DVD-ROM device.</desc>
|
---|
281 | </const>
|
---|
282 | <const name="HardDiskDevice" value="3">
|
---|
283 | <desc>Hard disk device.</desc>
|
---|
284 | </const>
|
---|
285 | <const name="NetworkDevice" value="4">
|
---|
286 | <desc>Network device.</desc>
|
---|
287 | </const>
|
---|
288 | <const name="USBDevice" value="5">
|
---|
289 | <desc>USB device.</desc>
|
---|
290 | </const>
|
---|
291 | </enum>
|
---|
292 |
|
---|
293 | <enum
|
---|
294 | name="DeviceActivity"
|
---|
295 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
296 | >
|
---|
297 | <const name="InvalidActivity" value="0"/>
|
---|
298 | <const name="DeviceIdle" value="1"/>
|
---|
299 | <const name="DeviceReading" value="2"/>
|
---|
300 | <const name="DeviceWriting" value="3"/>
|
---|
301 | </enum>
|
---|
302 |
|
---|
303 | <enum
|
---|
304 | name="ResourceUsage"
|
---|
305 | uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809"
|
---|
306 | >
|
---|
307 | <desc>
|
---|
308 | Usage type constants for
|
---|
309 | <link to="IVirtualBox::getDVDImageUsage"/> and
|
---|
310 | <link to="IVirtualBox::getFloppyImageUsage"/>.
|
---|
311 | </desc>
|
---|
312 | <const name="InvalidUsage" value="0"/>
|
---|
313 | <const name="PermanentUsage" value="1">
|
---|
314 | <desc>
|
---|
315 | Scopes the VMs that use the resource permanently
|
---|
316 | (the information about this usage is stored in the VM
|
---|
317 | settings file).
|
---|
318 | </desc>
|
---|
319 | </const>
|
---|
320 | <const name="TemporaryUsage" value="2">
|
---|
321 | <desc>
|
---|
322 | Scopes the VMs that are temporarily using the resource
|
---|
323 | (the information about the usage is not yet saved in the VM
|
---|
324 | settings file). Temporary usage can take place only in the
|
---|
325 | context of an open session.
|
---|
326 | </desc>
|
---|
327 | </const>
|
---|
328 | <const name="AllUsage" value="3">
|
---|
329 | <desc>
|
---|
330 | Combines PermanentUsage and TemporaryUsage.
|
---|
331 | </desc>
|
---|
332 | </const>
|
---|
333 | </enum>
|
---|
334 |
|
---|
335 | <enum
|
---|
336 | name="DiskControllerType"
|
---|
337 | uuid="1115b810-2ee7-4ebd-8b39-92e98c9a2b48"
|
---|
338 | >
|
---|
339 | <const name="InvalidController" value="0"/>
|
---|
340 | <const name="IDE0Controller" value="1"/>
|
---|
341 | <const name="IDE1Controller" value="2"/>
|
---|
342 | </enum>
|
---|
343 |
|
---|
344 | <enum
|
---|
345 | name="ClipboardMode"
|
---|
346 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
347 | >
|
---|
348 | <const name="ClipDisabled" value="0"/>
|
---|
349 | <const name="ClipHostToGuest" value="1"/>
|
---|
350 | <const name="ClipGuestToHost" value="2"/>
|
---|
351 | <const name="ClipBidirectional" value="3"/>
|
---|
352 | </enum>
|
---|
353 |
|
---|
354 | <!--
|
---|
355 | // IVirtualBoxErrorInfo
|
---|
356 | /////////////////////////////////////////////////////////////////////////
|
---|
357 | -->
|
---|
358 |
|
---|
359 | <interface
|
---|
360 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
361 | uuid="e98b5376-8eb4-4eea-812a-3964bf3bb26f"
|
---|
362 | supportsErrorInfo="no"
|
---|
363 | wsmap="suppress"
|
---|
364 | >
|
---|
365 | <desc>
|
---|
366 | The IVirtualBoxErrorInfo interface represents extended error information
|
---|
367 | that can be set by components after unsuccessful method invocation and
|
---|
368 | returned to the client in addition to the result code.
|
---|
369 |
|
---|
370 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
371 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
372 | it provides a set of common attributes to retrieve error
|
---|
373 | information.
|
---|
374 |
|
---|
375 | Sometimes invocation of some component's method may involve
|
---|
376 | methods of other components that may also fail (independently of
|
---|
377 | this method's failure), or a series of non-fatal errors may
|
---|
378 | precede a fatal error that causes method failure. In cases like
|
---|
379 | that, it may be desirable to preserve information about all errors
|
---|
380 | happened during method invocation and deliver it to the
|
---|
381 | caller. The <link to="#next"/> attribute is intended specifically
|
---|
382 | for this purpose and allows to represent a chain of errors through
|
---|
383 | a single IVirtualBoxErrorInfo instance set after method
|
---|
384 | invocation. Note that errors are stored to a chain in the reverse
|
---|
385 | order, i.e. the initial error object you query right after method
|
---|
386 | invocation is the last error set by the callee, the object it
|
---|
387 | points to in the @a next attribute is the previous error and so
|
---|
388 | on, up to the first error (which is the last in the chain).
|
---|
389 | </desc>
|
---|
390 |
|
---|
391 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
392 | <desc>
|
---|
393 | Result code of the error.
|
---|
394 | Usually, it will be the same as the result code returned
|
---|
395 | by the method that provided this error information, but not
|
---|
396 | always. For example, on Win32, CoCreateInstance() will most
|
---|
397 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
398 | instantiation attempt, but not the value the component factory
|
---|
399 | returned.
|
---|
400 | <note>
|
---|
401 | In MS COM, there is no equivalent.
|
---|
402 | In XPCOM, it is the same as nsIException::result.
|
---|
403 | </note>
|
---|
404 | </desc>
|
---|
405 | </attribute>
|
---|
406 |
|
---|
407 | <attribute name="interfaceID" type="uuid" readonly="yes">
|
---|
408 | <desc>
|
---|
409 | UUID of the interface that defined the error.
|
---|
410 | <note>
|
---|
411 | In MS COM, it is the same as IErrorInfo::GetGUID.
|
---|
412 | In XPCOM, there is no equivalent.
|
---|
413 | </note>
|
---|
414 | </desc>
|
---|
415 | </attribute>
|
---|
416 |
|
---|
417 | <attribute name="component" type="wstring" readonly="yes">
|
---|
418 | <desc>
|
---|
419 | Name of the component that generated the error.
|
---|
420 | <note>
|
---|
421 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
422 | In XPCOM, there is no equivalent.
|
---|
423 | </note>
|
---|
424 | </desc>
|
---|
425 | </attribute>
|
---|
426 |
|
---|
427 | <attribute name="text" type="wstring" readonly="yes">
|
---|
428 | <desc>
|
---|
429 | Text description of the error.
|
---|
430 | <note>
|
---|
431 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
432 | In XPCOM, it is the same as nsIException::message.
|
---|
433 | </note>
|
---|
434 | </desc>
|
---|
435 | </attribute>
|
---|
436 |
|
---|
437 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
438 | <desc>
|
---|
439 | Next error object if there is any, or @c null otherwise.
|
---|
440 | <note>
|
---|
441 | In MS COM, there is no equivalent.
|
---|
442 | In XPCOM, it is the same as nsIException::inner.
|
---|
443 | </note>
|
---|
444 | </desc>
|
---|
445 | </attribute>
|
---|
446 |
|
---|
447 | </interface>
|
---|
448 |
|
---|
449 |
|
---|
450 | <!--
|
---|
451 | // IVirtualBox
|
---|
452 | /////////////////////////////////////////////////////////////////////////
|
---|
453 | -->
|
---|
454 |
|
---|
455 | <interface
|
---|
456 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
457 | uuid="ee95ffc2-b6c6-4ce8-9e9e-ceadbb5019fe"
|
---|
458 | wsmap="suppress"
|
---|
459 | >
|
---|
460 | <method name="onMachineStateChange">
|
---|
461 | <desc>
|
---|
462 | The execution state of the given machine has changed.
|
---|
463 | <see>IMachine::state</see>
|
---|
464 | </desc>
|
---|
465 | <param name="machineId" type="uuid" dir="in">
|
---|
466 | <desc>ID of the machine this event relates to.</desc>
|
---|
467 | </param>
|
---|
468 | <param name="state" type="MachineState" dir="in">
|
---|
469 | <desc>New execution state.</desc>
|
---|
470 | </param>
|
---|
471 | </method>
|
---|
472 |
|
---|
473 | <method name="onMachineDataChange">
|
---|
474 | <desc>
|
---|
475 | Any of the settings of the given machine has changed.
|
---|
476 | </desc>
|
---|
477 | <param name="machineId" type="uuid" dir="in">
|
---|
478 | <desc>ID of the machine this event relates to.</desc>
|
---|
479 | </param>
|
---|
480 | </method>
|
---|
481 |
|
---|
482 | <method name="onExtraDataCanChange">
|
---|
483 | <desc>
|
---|
484 | Notification when someone tries to change extra data for
|
---|
485 | either the given machine or (if null) global extra data.
|
---|
486 | This gives the chance to veto against changes.
|
---|
487 | </desc>
|
---|
488 | <param name="machineId" type="uuid" dir="in">
|
---|
489 | <desc>
|
---|
490 | ID of the machine this event relates to
|
---|
491 | (null ID for global extra data change requests).
|
---|
492 | </desc>
|
---|
493 | </param>
|
---|
494 | <param name="key" type="wstring" dir="in">
|
---|
495 | <desc>
|
---|
496 | Extra data key for the attempted write.
|
---|
497 | </desc>
|
---|
498 | </param>
|
---|
499 | <param name="value" type="wstring" dir="in">
|
---|
500 | <desc>
|
---|
501 | Extra data value for the given key.
|
---|
502 | </desc>
|
---|
503 | </param>
|
---|
504 | <param name="error" type="wstring" dir="out">
|
---|
505 | <desc>
|
---|
506 | Optional error message describing the reason of the
|
---|
507 | veto (ignored if this notification returns @c true).
|
---|
508 | </desc>
|
---|
509 | </param>
|
---|
510 | <param name="allowChange" type="boolean" dir="return">
|
---|
511 | <desc>
|
---|
512 | Flag to indicate whether the callee agrees (@ true)
|
---|
513 | or vetoes against the change (@ false).
|
---|
514 | </desc>
|
---|
515 | </param>
|
---|
516 | </method>
|
---|
517 |
|
---|
518 | <method name="onExtraDataChange">
|
---|
519 | <desc>
|
---|
520 | Notification when machine specific or global extra data
|
---|
521 | has changed.
|
---|
522 | </desc>
|
---|
523 | <param name="machineId" type="uuid" dir="in">
|
---|
524 | <desc>
|
---|
525 | ID of the machine this event relates to.
|
---|
526 | Null for global extra data changes.
|
---|
527 | </desc>
|
---|
528 | </param>
|
---|
529 | <param name="key" type="wstring" dir="in">
|
---|
530 | <desc>
|
---|
531 | Extra data key that has changed.
|
---|
532 | </desc>
|
---|
533 | </param>
|
---|
534 | <param name="value" type="wstring" dir="in">
|
---|
535 | <desc>
|
---|
536 | Extra data value for the given key.
|
---|
537 | </desc>
|
---|
538 | </param>
|
---|
539 | </method>
|
---|
540 |
|
---|
541 | <method name="onMediaRegistered">
|
---|
542 | <desc>
|
---|
543 | The given media was registered or unregistered
|
---|
544 | within this VirtualBox installation.
|
---|
545 |
|
---|
546 | The @a mediaType parameter describes what type of
|
---|
547 | media the specified @a mediaId refers to. Possible
|
---|
548 | values are:
|
---|
549 |
|
---|
550 | - <link to="HardDiskDevice"/>: the media is a hard disk
|
---|
551 | that, if registered, can be obtained using the
|
---|
552 | <link to="IVirtualBox::getHardDisk"/> call.
|
---|
553 | - <link to="DVDDevice"/>: the media is a CD/DVD image
|
---|
554 | that, if registered, can be obtained using the
|
---|
555 | <link to="IVirtualBox::getDVDImage"/> call.
|
---|
556 | - <link to="FloppyDevice"/>: the media is a Floppy image
|
---|
557 | that, if registered, can be obtained using the
|
---|
558 | <link to="IVirtualBox::getFloppyImage"/> call.
|
---|
559 |
|
---|
560 | Note that if this is a deregistration notification,
|
---|
561 | there is no way to access the object representing the
|
---|
562 | unregistered media. It is supposed that the
|
---|
563 | application will do required cleanup based on the @a
|
---|
564 | mediaId value.
|
---|
565 | </desc>
|
---|
566 | <param name="mediaId" type="uuid" dir="in">
|
---|
567 | <desc>ID of the media this event relates to.</desc>
|
---|
568 | </param>
|
---|
569 | <param name="mediaType" type="DeviceType" dir="in">
|
---|
570 | <desc>Type of the media this event relates to.</desc>
|
---|
571 | </param>
|
---|
572 | <param name="registered" type="boolean" dir="in">
|
---|
573 | <desc>
|
---|
574 | If true, the media was registered, otherwise it was
|
---|
575 | unregistered.
|
---|
576 | </desc>
|
---|
577 | </param>
|
---|
578 | </method>
|
---|
579 |
|
---|
580 | <method name="onMachineRegistered">
|
---|
581 | <desc>
|
---|
582 | The given machine was registered or unregistered
|
---|
583 | within this VirtualBox installation.
|
---|
584 | </desc>
|
---|
585 | <param name="machineId" type="uuid" dir="in">
|
---|
586 | <desc>ID of the machine this event relates to.</desc>
|
---|
587 | </param>
|
---|
588 | <param name="registered" type="boolean" dir="in">
|
---|
589 | <desc>
|
---|
590 | If true, the machine was registered, otherwise it was
|
---|
591 | unregistered.
|
---|
592 | </desc>
|
---|
593 | </param>
|
---|
594 | </method>
|
---|
595 |
|
---|
596 | <method name="onSessionStateChange">
|
---|
597 | <desc>
|
---|
598 | The state of the session for the given machine was changed.
|
---|
599 | <see>IMachine::sessionState</see>
|
---|
600 | </desc>
|
---|
601 | <param name="machineId" type="uuid" dir="in">
|
---|
602 | <desc>ID of the machine this event relates to.</desc>
|
---|
603 | </param>
|
---|
604 | <param name="state" type="SessionState" dir="in">
|
---|
605 | <desc>New session state.</desc>
|
---|
606 | </param>
|
---|
607 | </method>
|
---|
608 |
|
---|
609 | <method name="onSnapshotTaken">
|
---|
610 | <desc>
|
---|
611 | A new snapshot of the machine has been taken.
|
---|
612 | <see>ISnapshot</see>
|
---|
613 | </desc>
|
---|
614 | <param name="machineId" type="uuid" dir="in">
|
---|
615 | <desc>ID of the machine this event relates to.</desc>
|
---|
616 | </param>
|
---|
617 | <param name="snapshotId" type="uuid" dir="in">
|
---|
618 | <desc>ID of the new snapshot.</desc>
|
---|
619 | </param>
|
---|
620 | </method>
|
---|
621 |
|
---|
622 | <method name="onSnapshotDiscarded">
|
---|
623 | <desc>
|
---|
624 | Snapshot of the given machine has been discarded.
|
---|
625 |
|
---|
626 | <note>
|
---|
627 | This notification is delivered <b>after</b> the snapshot
|
---|
628 | object has been uninitialized on the server (so that any
|
---|
629 | attempt to call its methods will return an error).
|
---|
630 | </note>
|
---|
631 |
|
---|
632 | <see>ISnapshot</see>
|
---|
633 | </desc>
|
---|
634 | <param name="machineId" type="uuid" dir="in">
|
---|
635 | <desc>ID of the machine this event relates to.</desc>
|
---|
636 | </param>
|
---|
637 | <param name="snapshotId" type="uuid" dir="in">
|
---|
638 | <desc>
|
---|
639 | ID of the discarded snapshot. <tt>null</tt> means the
|
---|
640 | current machine state has been discarded (restored from
|
---|
641 | the current snapshot).
|
---|
642 | </desc>
|
---|
643 | </param>
|
---|
644 | </method>
|
---|
645 |
|
---|
646 | <method name="onSnapshotChange">
|
---|
647 | <desc>
|
---|
648 | Snapshot properties (name and/or description) have been changed.
|
---|
649 | <see>ISnapshot</see>
|
---|
650 | </desc>
|
---|
651 | <param name="machineId" type="uuid" dir="in">
|
---|
652 | <desc>ID of the machine this event relates to.</desc>
|
---|
653 | </param>
|
---|
654 | <param name="snapshotId" type="uuid" dir="in">
|
---|
655 | <desc>ID of the changed snapshot.</desc>
|
---|
656 | </param>
|
---|
657 | </method>
|
---|
658 |
|
---|
659 | </interface>
|
---|
660 |
|
---|
661 | <interface
|
---|
662 | name="IVirtualBox" extends="$dispatched"
|
---|
663 | uuid="d1a2295c-d257-4a4c-a9a6-843d87db6f45"
|
---|
664 | wsmap="global"
|
---|
665 | >
|
---|
666 | <desc> The main interface exposed by the product that provides virtual
|
---|
667 | machine management.
|
---|
668 |
|
---|
669 | An instance of IVirtualBox is required for the product to do anything
|
---|
670 | useful. Even though the interface does not expose this, internally, IVirtualBox
|
---|
671 | is implemented as a singleton and actually lives in the process of the
|
---|
672 | VirtualBox server (VBoxSVC.exe). This makes sure that IVirtualBox can
|
---|
673 | track the state of all virtual machines on a particular host, regardless
|
---|
674 | of which frontend started them.
|
---|
675 |
|
---|
676 | To enumerate all the virtual machines on the host, use the <link to="IVirtualBox::machines" />
|
---|
677 | attribute.</desc>
|
---|
678 |
|
---|
679 | <attribute name="version" type="wstring" readonly="yes">
|
---|
680 | <desc>
|
---|
681 | A string representing the version number of the product. The
|
---|
682 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
683 | last number represents the build number and will frequently change.
|
---|
684 | </desc>
|
---|
685 | </attribute>
|
---|
686 |
|
---|
687 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
688 | <desc>
|
---|
689 | Full path to the directory where the global settings file,
|
---|
690 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
691 |
|
---|
692 | In this version of VirtualBox, the value of this property is
|
---|
693 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
694 | <tt><user_dir></tt> is the path to the user directory,
|
---|
695 | as determined by the host OS), and cannot be changed.
|
---|
696 |
|
---|
697 | This path is also used as the base to resolve relative paths in
|
---|
698 | places where relative paths are allowed (unless otherwise
|
---|
699 | expressly indicated).
|
---|
700 | </desc>
|
---|
701 | </attribute>
|
---|
702 |
|
---|
703 | <attribute name="host" type="IHost" readonly="yes">
|
---|
704 | <desc>Associated host object.</desc>
|
---|
705 | </attribute>
|
---|
706 |
|
---|
707 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
708 | <desc>Associated system information object.</desc>
|
---|
709 | </attribute>
|
---|
710 |
|
---|
711 | <attribute name="machines" type="IMachineCollection" readonly="yes"/>
|
---|
712 |
|
---|
713 | <attribute name="hardDisks" type="IHardDiskCollection" readonly="yes">
|
---|
714 | <desc>
|
---|
715 | A collection of hard disk objects registered within this
|
---|
716 | VirtualBox instance.
|
---|
717 | This collection contains only "top-level" (basic or independent)
|
---|
718 | hard disk images, but not differencing ones. All differencing
|
---|
719 | images of the given top-level image (i.e. all its children) can
|
---|
720 | be enumerated using <link to="IHardDisk::children"/>.
|
---|
721 | </desc>
|
---|
722 | </attribute>
|
---|
723 |
|
---|
724 | <attribute name="DVDImages" type="IDVDImageCollection" readonly="yes"/>
|
---|
725 |
|
---|
726 | <attribute name="FloppyImages" type="IFloppyImageCollection" readonly="yes"/>
|
---|
727 |
|
---|
728 | <attribute name="progressOperations" type="IProgressCollection" readonly="yes"/>
|
---|
729 |
|
---|
730 | <attribute name="guestOSTypes" type="IGuestOSTypeCollection" readonly="yes"/>
|
---|
731 |
|
---|
732 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
733 | <desc>
|
---|
734 | Collection of globally shared folders. These folders
|
---|
735 | are shared automatically upon VirtualBox server startup and
|
---|
736 | available only to every virtual machine.
|
---|
737 |
|
---|
738 | New folders to share are added to the collection using
|
---|
739 | <link to="#createSharedFolder"/>. An existing shared folder can
|
---|
740 | be removed using <link to="#removeSharedFolder"/>.
|
---|
741 | </desc>
|
---|
742 | </attribute>
|
---|
743 |
|
---|
744 | <method name="createMachine">
|
---|
745 | <desc>
|
---|
746 | Creates a new virtual machine.
|
---|
747 |
|
---|
748 | Every machine has a <i>settings file</i> that is used to store
|
---|
749 | the machine configuration. This file is stored in the directory
|
---|
750 | called <i>machine settings subfolder</i>. Both the subfolder
|
---|
751 | and the settings file have the same name that corresponds to the
|
---|
752 | name of the virtual machine. You can specify where
|
---|
753 | to create the machine settings subfolder using the @a
|
---|
754 | baseFolder argument. The base folder can be absolute (full path)
|
---|
755 | or relative to the <link to="IVirtualBox::homeFolder">
|
---|
756 | VirtualBox home directory</link>.
|
---|
757 |
|
---|
758 | If a null or empty string is given as the base folder (which is
|
---|
759 | recommended), the <link to="ISystemProperties::defaultMachineFolder">
|
---|
760 | default machine settings folder</link> will be used as the base
|
---|
761 | folder to create the machine settings subfolder and file. In
|
---|
762 | any case, the full path to the settings file will look like:
|
---|
763 | <pre>
|
---|
764 | <base_folder>/<machine_name>/<machine_name>.xml</pre>
|
---|
765 |
|
---|
766 | Note that the configuration of the newly created machine is not
|
---|
767 | saved to disk (and therefore no settings subfolder and file are
|
---|
768 | created) until <link to="IMachine::saveSettings()"/> is called.
|
---|
769 |
|
---|
770 | You should also specify a valid name for the machine.
|
---|
771 | See the <link to="IMachine::name"/> property
|
---|
772 | description for more details about the machine name.
|
---|
773 |
|
---|
774 | The created machine remains
|
---|
775 | unregistered until you call <link to="#registerMachine()"/>.
|
---|
776 |
|
---|
777 | <note>
|
---|
778 | There is no way to change the name of the settings file or
|
---|
779 | subfolder of the created machine directly.
|
---|
780 | </note>
|
---|
781 | </desc>
|
---|
782 | <param name="baseFolder" type="wstring" dir="in">
|
---|
783 | <desc>
|
---|
784 | Name of the folder where to create the machine settings
|
---|
785 | subfolder containing the settings file.
|
---|
786 | </desc>
|
---|
787 | </param>
|
---|
788 | <param name="name" type="wstring" dir="in">
|
---|
789 | <desc>Machine name.</desc>
|
---|
790 | </param>
|
---|
791 | <param name="machine" type="IMachine" dir="return">
|
---|
792 | <desc>Created machine object.</desc>
|
---|
793 | </param>
|
---|
794 | </method>
|
---|
795 |
|
---|
796 | <method name="createLegacyMachine">
|
---|
797 | <desc>
|
---|
798 | Creates a new virtual machine in "legacy" mode, using the
|
---|
799 | specified settings file to store machine settings.
|
---|
800 |
|
---|
801 | As opposed to machines created by <link to="#createMachine()"/>,
|
---|
802 | the settings file of the machine created in "legacy" mode
|
---|
803 | is not automatically renamed when the machine name is
|
---|
804 | changed -- it will always remain the same as specified in this
|
---|
805 | method call.
|
---|
806 |
|
---|
807 | The specified settings file name can be absolute
|
---|
808 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
809 | VirtualBox home directory</link>. If the file name doesn't
|
---|
810 | contain an extension, the default extension (.xml) will be
|
---|
811 | appended.
|
---|
812 |
|
---|
813 | Note that the configuration of the newly created machine is not
|
---|
814 | saved to disk (and therefore no settings file is created)
|
---|
815 | until <link to="IMachine::saveSettings()"/> is called. If the
|
---|
816 | specified settings file already exists,
|
---|
817 | <link to="IMachine::saveSettings()"/> will return an error.
|
---|
818 |
|
---|
819 | You should also specify a valid name for the machine.
|
---|
820 | See the <link to="IMachine::name"/> property
|
---|
821 | description for more details about the machine name.
|
---|
822 |
|
---|
823 | The created machine remains
|
---|
824 | unregistered until you call <link to="#registerMachine()"/>.
|
---|
825 |
|
---|
826 | @deprecated This method may be removed later. It is better
|
---|
827 | to use <link to="IVirtualBox::createMachine()"/>.
|
---|
828 |
|
---|
829 | <note>
|
---|
830 | There is no way to change the name of the settings file
|
---|
831 | of the created machine.
|
---|
832 | </note>
|
---|
833 | </desc>
|
---|
834 | <param name="settingsFile" type="wstring" dir="in">
|
---|
835 | <desc>
|
---|
836 | Name of the file where to store machine settings.
|
---|
837 | </desc>
|
---|
838 | </param>
|
---|
839 | <param name="name" type="wstring" dir="in">
|
---|
840 | <desc>Machine name.</desc>
|
---|
841 | </param>
|
---|
842 | <param name="machine" type="IMachine" dir="return">
|
---|
843 | <desc>Created machine object.</desc>
|
---|
844 | </param>
|
---|
845 | </method>
|
---|
846 |
|
---|
847 | <method name="openMachine">
|
---|
848 | <desc>
|
---|
849 | Opens a virtual machine from the existing settings file.
|
---|
850 | The opened machine remains unregistered until you call
|
---|
851 | <link to="#registerMachine()"/>.
|
---|
852 |
|
---|
853 | The specified settings file name can be absolute
|
---|
854 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
855 | VirtualBox home directory</link>. This file must exist
|
---|
856 | and must be a valid machine settings file whose contents
|
---|
857 | will be used to construct the machine object.
|
---|
858 |
|
---|
859 | @deprecated Will be removed soon.
|
---|
860 | </desc>
|
---|
861 | <param name="settingsFile" type="wstring" dir="in">
|
---|
862 | <desc>
|
---|
863 | Name of the machine settings file.
|
---|
864 | </desc>
|
---|
865 | </param>
|
---|
866 | <param name="machine" type="IMachine" dir="return">
|
---|
867 | <desc>Opened machine object.</desc>
|
---|
868 | </param>
|
---|
869 | <note>
|
---|
870 | <link to="IMachine::settingsModified"/> will return
|
---|
871 | false for the created machine, until any of machine settigs
|
---|
872 | are changed.
|
---|
873 | </note>
|
---|
874 | </method>
|
---|
875 |
|
---|
876 | <method name="registerMachine">
|
---|
877 | <desc>
|
---|
878 |
|
---|
879 | Registers the machine previously created using
|
---|
880 | <link to="#createMachine()"/> or opened using
|
---|
881 | <link to="#openMachine()"/> within this VirtualBox installation. After
|
---|
882 | successful method invocation, the
|
---|
883 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
884 | to all registered callbacks.
|
---|
885 |
|
---|
886 | <note>
|
---|
887 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
888 | to save all current machine settings before registering it.
|
---|
889 | </note>
|
---|
890 |
|
---|
891 | </desc>
|
---|
892 | <param name="machine" type="IMachine" dir="in"/>
|
---|
893 | </method>
|
---|
894 |
|
---|
895 | <method name="getMachine">
|
---|
896 | <param name="id" type="uuid" dir="in"/>
|
---|
897 | <param name="machine" type="IMachine" dir="return"/>
|
---|
898 | </method>
|
---|
899 |
|
---|
900 | <method name="findMachine">
|
---|
901 | <param name="name" type="wstring" dir="in"/>
|
---|
902 | <param name="machine" type="IMachine" dir="return"/>
|
---|
903 | </method>
|
---|
904 |
|
---|
905 | <method name="unregisterMachine">
|
---|
906 | <desc>
|
---|
907 |
|
---|
908 | Unregisters the machine previously registered using
|
---|
909 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
910 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
911 | to all registered callbacks.
|
---|
912 |
|
---|
913 | <note>
|
---|
914 | The specified machine must not be in the Saved state, have an open
|
---|
915 | (or a spawning) direct session associated with it, have snapshots or
|
---|
916 | have hard disks attached.
|
---|
917 | </note>
|
---|
918 |
|
---|
919 | <note>
|
---|
920 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
921 | save all current machine settings before unregistering it.
|
---|
922 | </note>
|
---|
923 |
|
---|
924 | <note>
|
---|
925 | If the given machine is inaccessible (see
|
---|
926 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
927 | fully uninitialized right afterwards. As a result, the returned
|
---|
928 | machine object will be unusable and an attempt to call
|
---|
929 | <b>any</b> method will return the "Object not ready" error.
|
---|
930 | </note>
|
---|
931 |
|
---|
932 | </desc>
|
---|
933 | <param name="id" type="uuid" dir="in">
|
---|
934 | <desc>UUID of the machine to unregister.</desc>
|
---|
935 | </param>
|
---|
936 | <param name="machine" type="IMachine" dir="return">
|
---|
937 | <desc>Unregistered machine object.</desc>
|
---|
938 | </param>
|
---|
939 | </method>
|
---|
940 |
|
---|
941 | <method name="createHardDisk">
|
---|
942 | <desc>
|
---|
943 |
|
---|
944 | Creates a new unregistered hard disk that will use the given
|
---|
945 | storage type.
|
---|
946 |
|
---|
947 | Most properties of the created hard disk object are
|
---|
948 | uninitialized. Valid values must be assigned to them (and probalby
|
---|
949 | some actions performed) to make the actual usage of this hard disk
|
---|
950 | (<link to="#registerHardDisk()">register</link>, attach to a virtual
|
---|
951 | machine, etc.). See the description of <link to="IHardDisk"/> and
|
---|
952 | descriptions of storage type specific interfaces for more information.
|
---|
953 |
|
---|
954 | <note>
|
---|
955 | For hard disks using
|
---|
956 | the <link
|
---|
957 | to="HardDiskStorageType::VirtualDiskImage">VirtualDiskImage</link>
|
---|
958 | storage type, an image file is not actually created until you call
|
---|
959 | <link to="IVirtualDiskImage::createDynamicImage()"/> or
|
---|
960 | <link to="IVirtualDiskImage::createFixedImage()"/>.
|
---|
961 | </note>
|
---|
962 |
|
---|
963 | </desc>
|
---|
964 |
|
---|
965 | <param name="storageType" type="HardDiskStorageType" dir="in">
|
---|
966 | <desc>Storage type of the hard disk image to create.</desc>
|
---|
967 | </param>
|
---|
968 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
969 | <desc>Created hard disk object of the given storage type.</desc>
|
---|
970 | </param>
|
---|
971 |
|
---|
972 | </method>
|
---|
973 |
|
---|
974 | <method name="openHardDisk">
|
---|
975 | <desc>
|
---|
976 |
|
---|
977 | Opens a hard disk from an existing location.
|
---|
978 |
|
---|
979 | This method tries to guess the
|
---|
980 | <link to="HardDiskStorageType">hard disk storage type</link> from the
|
---|
981 | format of the location string and from the contens of the resource the
|
---|
982 | location points to. Currently, a <i>file path</i> is the only
|
---|
983 | supported format for the location string which must point to either a
|
---|
984 | VDI file or to a VMDK file. On success, an IHardDisk object will be
|
---|
985 | returned that also implements the corresponding interface
|
---|
986 | (IVirtualDiskImage or IVMDKImage, respectively). The
|
---|
987 | <link to="IHardDisk::storageType"/> property may also be used to
|
---|
988 | determine the storage type of the returned object (instead of trying
|
---|
989 | to query one of these interfaces).
|
---|
990 |
|
---|
991 | <note>
|
---|
992 | The specified file path can be absolute (full path) or relative to
|
---|
993 | the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
994 | directory</link>. If only a file name without any path is given,
|
---|
995 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
996 | folder</link> will be used as a path to the image file.
|
---|
997 | </note>
|
---|
998 |
|
---|
999 | The opened hard disk remains unregistered
|
---|
1000 | until <link to="#registerHardDisk()"/> is called.
|
---|
1001 |
|
---|
1002 | </desc>
|
---|
1003 |
|
---|
1004 | <param name="location" type="wstring" dir="in">
|
---|
1005 | <desc>
|
---|
1006 | Location of the resource that contains a valid hard disk.
|
---|
1007 | </desc>
|
---|
1008 | </param>
|
---|
1009 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1010 | <desc>Opened hard disk object.</desc>
|
---|
1011 | </param>
|
---|
1012 | </method>
|
---|
1013 |
|
---|
1014 | <method name="openVirtualDiskImage">
|
---|
1015 | <desc>
|
---|
1016 |
|
---|
1017 | Opens a hard disk from an existing Virtual Disk Image file.
|
---|
1018 | The opened hard disk remains unregistered
|
---|
1019 | until <link to="#registerHardDisk()"/> is called.
|
---|
1020 |
|
---|
1021 | @deprecated Use <link to="IVirtualBox::openHardDisk()"/> instead.
|
---|
1022 |
|
---|
1023 | <note>Opening differencing images is not supported.</note>
|
---|
1024 |
|
---|
1025 | <note>The specified file path can be absolute (full path) or
|
---|
1026 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
1027 | home directory</link>. If only a file name without any path is
|
---|
1028 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1029 | default VDI folder</link> will be used as a path to the image
|
---|
1030 | file.</note>
|
---|
1031 |
|
---|
1032 | </desc>
|
---|
1033 |
|
---|
1034 | <param name="filePath" type="wstring" dir="in">
|
---|
1035 | <desc>
|
---|
1036 | Name of the file that contains a valid Virtual Disk Image.
|
---|
1037 | </desc>
|
---|
1038 | </param>
|
---|
1039 | <param name="image" type="IVirtualDiskImage" dir="return">
|
---|
1040 | <desc>Opened hard disk object.</desc>
|
---|
1041 | </param>
|
---|
1042 | </method>
|
---|
1043 |
|
---|
1044 | <method name="registerHardDisk">
|
---|
1045 | <desc>
|
---|
1046 |
|
---|
1047 | Registers the given hard disk within this VirtualBox
|
---|
1048 | installation. The hard disk must not be registered, must be
|
---|
1049 | <link to="IHardDisk::accessible"/> and must not be a
|
---|
1050 | differencing hard disk, otherwise the registration will fail.
|
---|
1051 |
|
---|
1052 | </desc>
|
---|
1053 | <param name="hardDisk" type="IHardDisk" dir="in">
|
---|
1054 | <desc>Hard disk object to register.</desc>
|
---|
1055 | </param>
|
---|
1056 | </method>
|
---|
1057 |
|
---|
1058 | <method name="getHardDisk" const="yes">
|
---|
1059 | <desc>
|
---|
1060 | Returns the registered hard disk with the given UUID.
|
---|
1061 | </desc>
|
---|
1062 | <param name="id" type="uuid" dir="in">
|
---|
1063 | <desc>UUID of the hard disk to look for.</desc>
|
---|
1064 | </param>
|
---|
1065 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1066 | <desc>Found hard disk object.</desc>
|
---|
1067 | </param>
|
---|
1068 | </method>
|
---|
1069 |
|
---|
1070 | <method name="findHardDisk">
|
---|
1071 | <desc>
|
---|
1072 |
|
---|
1073 | Returns a registered hard disk that uses the given location to
|
---|
1074 | store data. The search is done by comparing the
|
---|
1075 | value of the @a location argument to the
|
---|
1076 | <link to="IHardDisk::location"/> attribute of each registered
|
---|
1077 | hard disk.
|
---|
1078 |
|
---|
1079 | For locations repesented by file paths (such as VDI and VMDK
|
---|
1080 | images), the specified location can be either an absolute file
|
---|
1081 | path or a path relative to
|
---|
1082 | the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
1083 | directory</link>. If only a file name without any path is
|
---|
1084 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1085 | default VDI folder</link> will be used as a path to construct
|
---|
1086 | the absolute image file name to search for. Note that on host
|
---|
1087 | systems with case sensitive filesystems, a case sensitive
|
---|
1088 | comparison is performed, otherwise the case of symbols in the
|
---|
1089 | file path is ignored.
|
---|
1090 |
|
---|
1091 | </desc>
|
---|
1092 | <param name="location" type="wstring" dir="in">
|
---|
1093 | <desc>Hard disk location specification to search for.</desc>
|
---|
1094 | </param>
|
---|
1095 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1096 | <desc>Found hard disk object.</desc>
|
---|
1097 | </param>
|
---|
1098 | </method>
|
---|
1099 |
|
---|
1100 | <method name="findVirtualDiskImage">
|
---|
1101 | <desc>
|
---|
1102 |
|
---|
1103 | Returns a registered hard disk that uses the given image file.
|
---|
1104 |
|
---|
1105 | @deprecated Use <link to="IVirtualBox::findHardDisk()"/> instead.
|
---|
1106 |
|
---|
1107 | <note>The specified file path can be absolute (full path) or
|
---|
1108 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
1109 | home directory</link>. If only a file name without any path is
|
---|
1110 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
1111 | default VDI folder</link> will be used as a path to the image
|
---|
1112 | file.</note>
|
---|
1113 |
|
---|
1114 | <note>On host systems with case sensitive filesystems, a case
|
---|
1115 | sensitive comparison is performed, otherwise the case of symbols
|
---|
1116 | in the file path is ignored.</note>
|
---|
1117 |
|
---|
1118 | </desc>
|
---|
1119 | <param name="filePath" type="wstring" dir="in">
|
---|
1120 | <desc>Virtual Disk Image file path to look for.</desc>
|
---|
1121 | </param>
|
---|
1122 | <param name="image" type="IVirtualDiskImage" dir="return">
|
---|
1123 | <desc>Found hard disk object.</desc>
|
---|
1124 | </param>
|
---|
1125 | </method>
|
---|
1126 |
|
---|
1127 | <method name="unregisterHardDisk">
|
---|
1128 | <desc>
|
---|
1129 | Unregisters a hard disk previously registered using
|
---|
1130 | <link to="#registerHardDisk()"/>.
|
---|
1131 | <note>
|
---|
1132 | The specified hard disk must not be attached to any of
|
---|
1133 | the existing virtual machines and must not have children
|
---|
1134 | (differencing) hard disks.
|
---|
1135 | </note>
|
---|
1136 | </desc>
|
---|
1137 | <param name="id" type="uuid" dir="in">
|
---|
1138 | <desc>UUID of the hard disk to unregister.</desc>
|
---|
1139 | </param>
|
---|
1140 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1141 | <desc>Unregistered hard disk object.</desc>
|
---|
1142 | </param>
|
---|
1143 | </method>
|
---|
1144 |
|
---|
1145 | <method name="openDVDImage">
|
---|
1146 | <desc>
|
---|
1147 | Opens the CD/DVD image contained in the specified file of
|
---|
1148 | the supported format and assigns it the given UUID. The opened
|
---|
1149 | image remains unregistered
|
---|
1150 | until <link to="#registerDVDImage()"/> is called.
|
---|
1151 | </desc>
|
---|
1152 | <param name="filePath" type="wstring" dir="in">
|
---|
1153 | <desc>
|
---|
1154 | Full name of the file that contains a valid
|
---|
1155 | CD/DVD image. Currently, only ISO images are supported.
|
---|
1156 | <note>
|
---|
1157 | The specified file name can be absolute or relative
|
---|
1158 | to the <link to="IVirtualBox::homeFolder">
|
---|
1159 | VirtualBox home directory</link>.
|
---|
1160 | </note>
|
---|
1161 | </desc>
|
---|
1162 | </param>
|
---|
1163 | <param name="id" type="uuid" dir="in">
|
---|
1164 | <desc>
|
---|
1165 | UUID to assign to the given image file within this
|
---|
1166 | VirtualBox installation. If an empty (null) UUID is
|
---|
1167 | specified, the system will randomly generate an UUID.
|
---|
1168 | </desc>
|
---|
1169 | </param>
|
---|
1170 | <param name="image" type="IDVDImage" dir="return">
|
---|
1171 | <desc>Opened CD/DVD image object.</desc>
|
---|
1172 | </param>
|
---|
1173 | </method>
|
---|
1174 |
|
---|
1175 | <method name="registerDVDImage">
|
---|
1176 | <desc>
|
---|
1177 | Registers a CD/DVD image within this VirtualBox
|
---|
1178 | installation. The image must not be registered and must not
|
---|
1179 | be associated with the same image file as any of the already
|
---|
1180 | registered images, otherwise the registration will fail.
|
---|
1181 | </desc>
|
---|
1182 | <param name="image" type="IDVDImage" dir="in">
|
---|
1183 | <desc>CD/DVD image object to register.</desc>
|
---|
1184 | </param>
|
---|
1185 | </method>
|
---|
1186 |
|
---|
1187 | <method name="getDVDImage">
|
---|
1188 | <desc>
|
---|
1189 | Returns a registered CD/DVD image with the given UUID.
|
---|
1190 | </desc>
|
---|
1191 | <param name="id" type="uuid" dir="in">
|
---|
1192 | <desc>UUID of the image to look for.</desc>
|
---|
1193 | </param>
|
---|
1194 | <param name="image" type="IDVDImage" dir="return">
|
---|
1195 | <desc>Found CD/DVD image object.</desc>
|
---|
1196 | </param>
|
---|
1197 | </method>
|
---|
1198 |
|
---|
1199 | <method name="findDVDImage">
|
---|
1200 | <desc>
|
---|
1201 | Returns a registered CD/DVD image with the given image file.
|
---|
1202 | <note>
|
---|
1203 | On host systems with case sensitive filesystems, a case
|
---|
1204 | sensitive comparison is performed, otherwise the case of
|
---|
1205 | symbols in the file path is ignored.
|
---|
1206 | </note>
|
---|
1207 | </desc>
|
---|
1208 | <param name="filePath" type="wstring" dir="in">
|
---|
1209 | <desc>CD/DVD image file path to look for.</desc>
|
---|
1210 | </param>
|
---|
1211 | <param name="image" type="IDVDImage" dir="return">
|
---|
1212 | <desc>Found CD/DVD image object.</desc>
|
---|
1213 | </param>
|
---|
1214 | </method>
|
---|
1215 |
|
---|
1216 | <method name="getDVDImageUsage">
|
---|
1217 | <desc>
|
---|
1218 | Returns the list of of UUIDs of all virtual machines that use
|
---|
1219 | the given CD/DVD image.
|
---|
1220 | </desc>
|
---|
1221 | <param name="id" type="uuid" dir="in">
|
---|
1222 | <desc>UUID of the image to get the usage information for.</desc>
|
---|
1223 | </param>
|
---|
1224 | <param name="usage" type="ResourceUsage" dir="in">
|
---|
1225 | <desc>Type of the usage (permanent, temporary or all).</desc>
|
---|
1226 | </param>
|
---|
1227 | <param name="machineIDs" type="wstring" dir="return">
|
---|
1228 | <desc>
|
---|
1229 | List of UUIDs of all machines that use the given image
|
---|
1230 | in the way specified by the usage parameter.
|
---|
1231 | The list is returned as a string containing UUIDs separated
|
---|
1232 | by spaces. A null string means that the image is not used.
|
---|
1233 | <note>
|
---|
1234 | When the usage type is <link to="ResourceUsage::AllUsage"/>
|
---|
1235 | and the image is used by the VM both permanently
|
---|
1236 | and temporarily, the VM's UUID will be present only
|
---|
1237 | once in the list.
|
---|
1238 | </note>
|
---|
1239 | </desc>
|
---|
1240 | </param>
|
---|
1241 | </method>
|
---|
1242 |
|
---|
1243 | <method name="unregisterDVDImage">
|
---|
1244 | <desc>
|
---|
1245 | Unregisters the CD/DVD image previously registered using
|
---|
1246 | <link to="#registerDVDImage()"/>.
|
---|
1247 | <note>
|
---|
1248 | The specified image must not be mounted to any of
|
---|
1249 | the existing virtual machines.
|
---|
1250 | </note>
|
---|
1251 | </desc>
|
---|
1252 | <param name="id" type="uuid" dir="in">
|
---|
1253 | <desc>UUID of the CD/DVD image to unregister.</desc>
|
---|
1254 | </param>
|
---|
1255 | <param name="image" type="IDVDImage" dir="return">
|
---|
1256 | <desc>Unregistered image object.</desc>
|
---|
1257 | </param>
|
---|
1258 | </method>
|
---|
1259 |
|
---|
1260 | <method name="openFloppyImage">
|
---|
1261 | <desc>
|
---|
1262 | Opens a floppy image contained in the specified file of
|
---|
1263 | the supported format and assigns it the given UUID. The opened
|
---|
1264 | image remains unregistered
|
---|
1265 | until <link to="#registerFloppyImage()"/> is called.
|
---|
1266 | </desc>
|
---|
1267 | <param name="filePath" type="wstring" dir="in">
|
---|
1268 | <desc>
|
---|
1269 | Full name of the file that contains a valid
|
---|
1270 | floppy image.
|
---|
1271 | <note>
|
---|
1272 | The specified file name can be absolute or relative
|
---|
1273 | to the <link to="IVirtualBox::homeFolder">
|
---|
1274 | VirtualBox home directory</link>.
|
---|
1275 | </note>
|
---|
1276 | </desc>
|
---|
1277 | </param>
|
---|
1278 | <param name="id" type="uuid" dir="in">
|
---|
1279 | <desc>
|
---|
1280 | UUID to assign to the given image file within this
|
---|
1281 | VirtualBox installation. If an empty (null) UUID is
|
---|
1282 | specified, the system will randomly generate an UUID.
|
---|
1283 | </desc>
|
---|
1284 | </param>
|
---|
1285 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1286 | <desc>Opened CD/DVD image object.</desc>
|
---|
1287 | </param>
|
---|
1288 | </method>
|
---|
1289 |
|
---|
1290 | <method name="registerFloppyImage">
|
---|
1291 | <desc>
|
---|
1292 | Registers a floppy image within this VirtualBox
|
---|
1293 | installation. The image must not be registered and must not
|
---|
1294 | be associated with the same image file as any of the already
|
---|
1295 | registered images, otherwise the registration will fail.
|
---|
1296 | </desc>
|
---|
1297 | <param name="image" type="IFloppyImage" dir="in">
|
---|
1298 | <desc>Floppy image object to register.</desc>
|
---|
1299 | </param>
|
---|
1300 | </method>
|
---|
1301 |
|
---|
1302 | <method name="getFloppyImage">
|
---|
1303 | <desc>
|
---|
1304 | Returns a registered floppy image with the given UUID.
|
---|
1305 | </desc>
|
---|
1306 | <param name="id" type="uuid" dir="in">
|
---|
1307 | <desc>UUID of the image to look for.</desc>
|
---|
1308 | </param>
|
---|
1309 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1310 | <desc>Found floppy image object.</desc>
|
---|
1311 | </param>
|
---|
1312 | </method>
|
---|
1313 |
|
---|
1314 | <method name="findFloppyImage">
|
---|
1315 | <desc>
|
---|
1316 | Returns a registered floppy image with the given image file.
|
---|
1317 | <note>
|
---|
1318 | On host systems with case sensitive filesystems, a case
|
---|
1319 | sensitive comparison is performed, otherwise the case of
|
---|
1320 | symbols in the file path is ignored.
|
---|
1321 | </note>
|
---|
1322 | </desc>
|
---|
1323 | <param name="filePath" type="wstring" dir="in">
|
---|
1324 | <desc>Floppy image file path to look for.</desc>
|
---|
1325 | </param>
|
---|
1326 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1327 | <desc>Found floppy image object.</desc>
|
---|
1328 | </param>
|
---|
1329 | </method>
|
---|
1330 |
|
---|
1331 | <method name="getFloppyImageUsage">
|
---|
1332 | <desc>
|
---|
1333 | Returns the list of of UUIDs of all virtual machines that use
|
---|
1334 | the given floppy image.
|
---|
1335 | </desc>
|
---|
1336 | <param name="id" type="uuid" dir="in">
|
---|
1337 | <desc>UUID of the image to get the usage information for.</desc>
|
---|
1338 | </param>
|
---|
1339 | <param name="usage" type="ResourceUsage" dir="in">
|
---|
1340 | <desc>Type of the usage (permanent, temporary or all).</desc>
|
---|
1341 | </param>
|
---|
1342 | <param name="machineIDs" type="wstring" dir="return">
|
---|
1343 | <desc>
|
---|
1344 | List of UUIDs of all machines that use the given image
|
---|
1345 | in the way specified by the usage parameter.
|
---|
1346 | The list is returned as a string containing UUIDs separated
|
---|
1347 | by spaces. A null string means that the image is not used.
|
---|
1348 | <note>
|
---|
1349 | When the usage type is <link to="ResourceUsage::AllUsage"/>
|
---|
1350 | and the image is used by the VM both permanently
|
---|
1351 | and temporarily, the VM's UUID will be present only
|
---|
1352 | once in the list.
|
---|
1353 | </note>
|
---|
1354 | </desc>
|
---|
1355 | </param>
|
---|
1356 | </method>
|
---|
1357 |
|
---|
1358 | <method name="unregisterFloppyImage">
|
---|
1359 | <desc>
|
---|
1360 | Unregisters the floppy image previously registered using
|
---|
1361 | <link to="#registerFloppyImage()"/>.
|
---|
1362 | <note>
|
---|
1363 | The specified image must not be mounted to any of
|
---|
1364 | the existing virtual machines.
|
---|
1365 | </note>
|
---|
1366 | </desc>
|
---|
1367 | <param name="id" type="uuid" dir="in">
|
---|
1368 | <desc>UUID of the floppy image to unregister.</desc>
|
---|
1369 | </param>
|
---|
1370 | <param name="image" type="IFloppyImage" dir="return">
|
---|
1371 | <desc>Unregistered image object.</desc>
|
---|
1372 | </param>
|
---|
1373 | </method>
|
---|
1374 |
|
---|
1375 | <method name="getGuestOSType">
|
---|
1376 | <param name="id" type="wstring" dir="in"/>
|
---|
1377 | <param name="type" type="IGuestOSType" dir="return"/>
|
---|
1378 | </method>
|
---|
1379 |
|
---|
1380 | <method name="createSharedFolder">
|
---|
1381 | <desc>
|
---|
1382 | Creates a new shared folder by associating the given logical
|
---|
1383 | name with the given host path, adds it to the collection of
|
---|
1384 | shared folders and starts sharing it.
|
---|
1385 | Refer to the description of <link to="ISharedFolder"/> to read
|
---|
1386 | about logical name unicity.
|
---|
1387 | </desc>
|
---|
1388 | <param name="name" type="wstring" dir="in">
|
---|
1389 | <desc>Unique logical name of the shared folder.</desc>
|
---|
1390 | </param>
|
---|
1391 | <param name="hostPath" type="wstring" dir="in">
|
---|
1392 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
1393 | </param>
|
---|
1394 | </method>
|
---|
1395 |
|
---|
1396 | <method name="removeSharedFolder">
|
---|
1397 | <desc>
|
---|
1398 | Removes a shared folder with the given name previously created
|
---|
1399 | by <link to="#createSharedFolder"/> from the collection of
|
---|
1400 | shared folders and stops sharing it.
|
---|
1401 | </desc>
|
---|
1402 | <param name="name" type="wstring" dir="in">
|
---|
1403 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
1404 | </param>
|
---|
1405 | </method>
|
---|
1406 |
|
---|
1407 | <method name="getNextExtraDataKey">
|
---|
1408 | <desc>
|
---|
1409 | Returns the extra data key name following the supplied key.
|
---|
1410 | An error is returned if the supplied key does not exist.
|
---|
1411 | @c NULL is returned if the supplied key is the last key.
|
---|
1412 | When supplying @c NULL for the key, the first item is returned.
|
---|
1413 | @a nextValue is an optional parameter and if supplied, the next
|
---|
1414 | key's value is returned in it.
|
---|
1415 | </desc>
|
---|
1416 | <param name="key" type="wstring" dir="in">
|
---|
1417 | <desc>Name of the data key to follow.</desc>
|
---|
1418 | </param>
|
---|
1419 | <param name="nextKey" type="wstring" dir="out">
|
---|
1420 | <desc>Name of the next data key.</desc>
|
---|
1421 | </param>
|
---|
1422 | <param name="nextValue" type="wstring" dir="out">
|
---|
1423 | <desc>Value of the next data key.</desc>
|
---|
1424 | </param>
|
---|
1425 | </method>
|
---|
1426 |
|
---|
1427 | <method name="getExtraData">
|
---|
1428 | <desc>
|
---|
1429 | Returns associated extra data.
|
---|
1430 | If the reuqested key does not exist, this function will
|
---|
1431 | succeed and return @c null in the @a value argument.
|
---|
1432 | </desc>
|
---|
1433 | <param name="key" type="wstring" dir="in">
|
---|
1434 | <desc>Name of the data key to get.</desc>
|
---|
1435 | </param>
|
---|
1436 | <param name="value" type="wstring" dir="return">
|
---|
1437 | <desc>Value of the requested data key.</desc>
|
---|
1438 | </param>
|
---|
1439 | </method>
|
---|
1440 |
|
---|
1441 | <method name="setExtraData">
|
---|
1442 | <desc>
|
---|
1443 | Sets associated extra data.
|
---|
1444 | If you pass @c NULL as a key @a vaule, the given key will be
|
---|
1445 | deleted.
|
---|
1446 | <note>
|
---|
1447 | This method can be called outside a machine session and
|
---|
1448 | therefore it's a caller's responsibility to handle race
|
---|
1449 | condition when several clients change the same key at the
|
---|
1450 | same time.
|
---|
1451 | </note>
|
---|
1452 | </desc>
|
---|
1453 | <param name="key" type="wstring" dir="in">
|
---|
1454 | <desc>Name of the data key to set.</desc>
|
---|
1455 | </param>
|
---|
1456 | <param name="value" type="wstring" dir="in">
|
---|
1457 | <desc>Value to assign to the key.</desc>
|
---|
1458 | </param>
|
---|
1459 | </method>
|
---|
1460 |
|
---|
1461 | <method name="openSession">
|
---|
1462 | <desc>
|
---|
1463 | <p>Opens a new direct session with the given virtual machine.
|
---|
1464 | Within the direct session context, it is possible to change
|
---|
1465 | all VM settings, as well as to execute the VM in the process
|
---|
1466 | space of the session object. There can be only one direct
|
---|
1467 | session open at a time for every virtual machine.</p>
|
---|
1468 | <p>Upon successful return, the session object can be used to
|
---|
1469 | get access to the machine and to the VM console.
|
---|
1470 | </p>
|
---|
1471 | </desc>
|
---|
1472 | <param name="session" type="ISession" dir="in">
|
---|
1473 | <desc>
|
---|
1474 | Session object that will represent the opened session after
|
---|
1475 | successful method invocation. This object must not represent
|
---|
1476 | the already open session.
|
---|
1477 | <note>
|
---|
1478 | This session will be automatically closed if the
|
---|
1479 | VirtualBox server is terminated for some reason.
|
---|
1480 | </note>
|
---|
1481 | </desc>
|
---|
1482 | </param>
|
---|
1483 | <param name="machineId" type="uuid" dir="in">
|
---|
1484 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1485 | </param>
|
---|
1486 | </method>
|
---|
1487 |
|
---|
1488 | <method name="openRemoteSession">
|
---|
1489 | <desc>
|
---|
1490 | <p>Opens a new remote session with the given virtual
|
---|
1491 | machine. Opening the remote session causes the server to start
|
---|
1492 | a new process that opens a direct session with the given VM.
|
---|
1493 | The remote session provides some level of control over the VM
|
---|
1494 | execution (using the IConsole interface) to the caller. Within
|
---|
1495 | the remote session context, it is not possible to change any
|
---|
1496 | static VM settings (such as name, HDD configuration, etc.).</p>
|
---|
1497 | <p>This operation can take some time, so the progress object
|
---|
1498 | is returned to let the caller be informed when the session is
|
---|
1499 | actually open. Until then, the remote session object remains in
|
---|
1500 | the closed state and accessing the machine or its console through
|
---|
1501 | it is invalid.
|
---|
1502 | </p>
|
---|
1503 |
|
---|
1504 | Currently supported session types (values of the @a type
|
---|
1505 | parameter) are:
|
---|
1506 | <ul>
|
---|
1507 | <li><tt>gui</tt>: VirtualBox Qt GUI session</li>
|
---|
1508 | <li><tt>vrdp</tt>: VirtualBox VRDP Server session</li>
|
---|
1509 | </ul>
|
---|
1510 |
|
---|
1511 | <note>
|
---|
1512 | It is impossible to open a remote session with the machine
|
---|
1513 | that already has an open direct session or waits until the
|
---|
1514 | previous request to open the remote session is completed
|
---|
1515 | (see <link to="IMachine::sessionState"/>).
|
---|
1516 | </note>
|
---|
1517 |
|
---|
1518 | <note>
|
---|
1519 | The opened @a session will be automatically closed when
|
---|
1520 | the corresponding direct session dies or gets closed.
|
---|
1521 | </note>
|
---|
1522 |
|
---|
1523 | <see>openExistingSession</see>
|
---|
1524 | </desc>
|
---|
1525 | <param name="session" type="ISession" dir="in">
|
---|
1526 | <desc>
|
---|
1527 | Session object that will represent the opened remote session
|
---|
1528 | after successful method invocation (this object must not
|
---|
1529 | represent an already open session).
|
---|
1530 | </desc>
|
---|
1531 | </param>
|
---|
1532 | <param name="machineId" type="uuid" dir="in">
|
---|
1533 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1534 | </param>
|
---|
1535 | <param name="type" type="wstring" dir="in">
|
---|
1536 | <desc>
|
---|
1537 | Type of the remote session (case sensitive).
|
---|
1538 | </desc>
|
---|
1539 | </param>
|
---|
1540 | <param name="progress" type="IProgress" dir="return">
|
---|
1541 | <desc>Progress object to track the operation completion.</desc>
|
---|
1542 | </param>
|
---|
1543 | </method>
|
---|
1544 |
|
---|
1545 | <method name="openExistingSession">
|
---|
1546 | <desc>
|
---|
1547 | <p>Opens a new remote session with the virtual machine for
|
---|
1548 | which a direct session is already open.
|
---|
1549 | The remote session provides some level of control over the VM
|
---|
1550 | execution (using the IConsole interface) to the caller. Within
|
---|
1551 | the remote session context, it is not possible to change any
|
---|
1552 | static VM settings (such as name, HDD configuration, etc.).</p>
|
---|
1553 | <p>As opposed to <link to="#openRemoteSession()"/>, the number of
|
---|
1554 | remote sessions opened this way is not limited by the API.</p>
|
---|
1555 | <note>
|
---|
1556 | It is impossible to open a remote session with the machine
|
---|
1557 | that doesn't have an open direct session.
|
---|
1558 | </note>
|
---|
1559 | <see>openRemoteSession</see>
|
---|
1560 | </desc>
|
---|
1561 | <param name="session" type="ISession" dir="in">
|
---|
1562 | <desc>
|
---|
1563 | Session object that will represent the open remote session
|
---|
1564 | after successful method invocation. This object must not
|
---|
1565 | represent an already open session.
|
---|
1566 | <note>
|
---|
1567 | This session will be automatically closed when the peer
|
---|
1568 | (direct) session dies or gets closed.
|
---|
1569 | </note>
|
---|
1570 | </desc>
|
---|
1571 | </param>
|
---|
1572 | <param name="machineId" type="uuid" dir="in">
|
---|
1573 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
1574 | </param>
|
---|
1575 | </method>
|
---|
1576 |
|
---|
1577 | <method name="registerCallback">
|
---|
1578 | <param name="callback" type="IVirtualBoxCallback" dir="in"/>
|
---|
1579 | </method>
|
---|
1580 |
|
---|
1581 | <method name="unregisterCallback">
|
---|
1582 | <param name="callback" type="IVirtualBoxCallback" dir="in"/>
|
---|
1583 | </method>
|
---|
1584 |
|
---|
1585 | </interface>
|
---|
1586 |
|
---|
1587 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
1588 | namespace="virtualbox.org">
|
---|
1589 | <interface name="IVirtualBox" default="yes"/>
|
---|
1590 | </class>
|
---|
1591 |
|
---|
1592 | <!--
|
---|
1593 | // IMachine
|
---|
1594 | /////////////////////////////////////////////////////////////////////////
|
---|
1595 | -->
|
---|
1596 |
|
---|
1597 | <enumerator
|
---|
1598 | name="IMachineEnumerator" type="IMachine"
|
---|
1599 | uuid="1b554149-be0a-4465-9252-9ff8f420af55"
|
---|
1600 | />
|
---|
1601 |
|
---|
1602 | <collection
|
---|
1603 | name="IMachineCollection" type="IMachine" enumerator="IMachineEnumerator"
|
---|
1604 | uuid="FD443EC1-3007-4F5B-9282-D72760A66916"
|
---|
1605 | readonly="yes"
|
---|
1606 | />
|
---|
1607 |
|
---|
1608 | <interface
|
---|
1609 | name="IInternalMachineControl" extends="$unknown"
|
---|
1610 | uuid="83c4e00c-be0b-4c10-a48e-7bf832615f7b"
|
---|
1611 | internal="yes"
|
---|
1612 | wsmap="suppress"
|
---|
1613 | >
|
---|
1614 | <method name="updateState">
|
---|
1615 | <desc>
|
---|
1616 | Updates the VM state.
|
---|
1617 | <note>
|
---|
1618 | This operation will also update the settings file with
|
---|
1619 | the correct information about the saved state file
|
---|
1620 | and delete this file from disk when appropriate.
|
---|
1621 | </note>
|
---|
1622 | </desc>
|
---|
1623 | <param name="state" type="MachineState" dir="in"/>
|
---|
1624 | </method>
|
---|
1625 |
|
---|
1626 | <method name="getIPCId">
|
---|
1627 | <param name="id" type="wstring" dir="return"/>
|
---|
1628 | </method>
|
---|
1629 |
|
---|
1630 | <method name="runUSBDeviceFilters">
|
---|
1631 | <desc>
|
---|
1632 | Asks the server to run USB devices filters of the associated
|
---|
1633 | machine against the given USB device and tell if there is
|
---|
1634 | a match.
|
---|
1635 | <note>
|
---|
1636 | Intended to be used only for remote USB devices. Local
|
---|
1637 | ones don't require to call this method (this is done
|
---|
1638 | implicitly by the Host and USBProxyService).
|
---|
1639 | </note>
|
---|
1640 | </desc>
|
---|
1641 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
1642 | <param name="matched" type="boolean" dir="return"/>
|
---|
1643 | </method>
|
---|
1644 |
|
---|
1645 | <method name="captureUSBDevice">
|
---|
1646 | <desc>
|
---|
1647 | Requests a capture of the given host USB device.
|
---|
1648 | When the request is completed, the VM process will
|
---|
1649 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
1650 | notification.
|
---|
1651 | </desc>
|
---|
1652 | <param name="id" type="uuid" dir="in"/>
|
---|
1653 | </method>
|
---|
1654 |
|
---|
1655 | <method name="detachUSBDevice">
|
---|
1656 | <desc>
|
---|
1657 | Notification that a VM is going to detach (done = false) or has
|
---|
1658 | already detached (done = true) the given USB device.
|
---|
1659 | When the done = true request is completed, the VM process will
|
---|
1660 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
1661 | notification.
|
---|
1662 | <note>
|
---|
1663 | In the done = true case, the server must run its own filters
|
---|
1664 | and filters of all VMs but this one on the detached device
|
---|
1665 | as if it were just attached to the host computer.
|
---|
1666 | </note>
|
---|
1667 | </desc>
|
---|
1668 | <param name="id" type="uuid" dir="in"/>
|
---|
1669 | <param name="done" type="boolean" dir="in"/>
|
---|
1670 | </method>
|
---|
1671 |
|
---|
1672 | <method name="autoCaptureUSBDevices">
|
---|
1673 | <desc>
|
---|
1674 | Requests a capture all matching USB devices attached to the host.
|
---|
1675 | When the request is completed, the VM process will
|
---|
1676 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
1677 | notification per every captured device.
|
---|
1678 | </desc>
|
---|
1679 | </method>
|
---|
1680 |
|
---|
1681 | <method name="detachAllUSBDevices">
|
---|
1682 | <desc>
|
---|
1683 | Notification that a VM that is being powered down. The done
|
---|
1684 | parameter indicates whether which stage of the power down
|
---|
1685 | we're at. When done = false the VM is announcing its
|
---|
1686 | intentions, while when done = true the VM is reporting
|
---|
1687 | what it has done.
|
---|
1688 | <note>
|
---|
1689 | In the done = true case, the server must run its own filters
|
---|
1690 | and filters of all VMs but this one on all detach devices as
|
---|
1691 | if they were just attached to the host computer.
|
---|
1692 | </note>
|
---|
1693 | </desc>
|
---|
1694 | <param name="done" type="boolean" dir="in"/>
|
---|
1695 | </method>
|
---|
1696 |
|
---|
1697 | <method name="onSessionEnd">
|
---|
1698 | <desc>
|
---|
1699 | Triggered by the given session object when the session is about
|
---|
1700 | to close normally.
|
---|
1701 | </desc>
|
---|
1702 | <param name="session" type="ISession" dir="in">
|
---|
1703 | <desc>Session that is being closed</desc>
|
---|
1704 | </param>
|
---|
1705 | <param name="progress" type="IProgress" dir="return">
|
---|
1706 | <desc>
|
---|
1707 | Used to wait until the corresponding machine is actually
|
---|
1708 | deassociated from the given session on the server.
|
---|
1709 | Returned only when this session is a direct one.
|
---|
1710 | </desc>
|
---|
1711 | </param>
|
---|
1712 | </method>
|
---|
1713 |
|
---|
1714 | <method name="beginSavingState">
|
---|
1715 | <desc>
|
---|
1716 | Called by the VM process to inform the server it wants to
|
---|
1717 | save the current state and stop the VM execution.
|
---|
1718 | </desc>
|
---|
1719 | <param name="progress" type="IProgress" dir="in">
|
---|
1720 | <desc>
|
---|
1721 | Progress object created by the VM process to wait until
|
---|
1722 | the state is saved.
|
---|
1723 | </desc>
|
---|
1724 | </param>
|
---|
1725 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
1726 | <desc>
|
---|
1727 | File path the VM process must save the execution state to.
|
---|
1728 | </desc>
|
---|
1729 | </param>
|
---|
1730 | </method>
|
---|
1731 |
|
---|
1732 | <method name="endSavingState">
|
---|
1733 | <desc>
|
---|
1734 | Called by the VM process to inform the server that saving
|
---|
1735 | the state previously requested by #beginSavingState is either
|
---|
1736 | successfully finished or there was a failure.
|
---|
1737 | </desc>
|
---|
1738 |
|
---|
1739 | <param name="success" type="boolean" dir="in">
|
---|
1740 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
1741 | </param>
|
---|
1742 | </method>
|
---|
1743 |
|
---|
1744 | <method name="beginTakingSnapshot">
|
---|
1745 | <desc>
|
---|
1746 | Called by the VM process to inform the server it wants to
|
---|
1747 | take a snapshot.
|
---|
1748 | </desc>
|
---|
1749 | <param name="initiator" type="IConsole" dir="in">
|
---|
1750 | <desc>The console object that initiated this call.</desc>
|
---|
1751 | </param>
|
---|
1752 | <param name="name" type="wstring" dir="in">
|
---|
1753 | <desc>Snapshot name</desc>
|
---|
1754 | </param>
|
---|
1755 | <param name="description" type="wstring" dir="in">
|
---|
1756 | <desc>Snapshot description</desc>
|
---|
1757 | </param>
|
---|
1758 | <param name="progress" type="IProgress" dir="in">
|
---|
1759 | <desc>
|
---|
1760 | Progress object created by the VM process to wait until
|
---|
1761 | the state is saved (only for online snapshots).
|
---|
1762 | </desc>
|
---|
1763 | </param>
|
---|
1764 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
1765 | <desc>
|
---|
1766 | File path the VM process must save the execution state to.
|
---|
1767 | </desc>
|
---|
1768 | </param>
|
---|
1769 | <param name="serverProgress" type="IProgress" dir="out">
|
---|
1770 | <desc>
|
---|
1771 | Progress object created by the server process to wait until
|
---|
1772 | the snapshot is taken (VDI diff creation, etc.).
|
---|
1773 | </desc>
|
---|
1774 | </param>
|
---|
1775 | </method>
|
---|
1776 |
|
---|
1777 | <method name="endTakingSnapshot">
|
---|
1778 | <desc>
|
---|
1779 | Called by the VM process to inform the server that the snapshot
|
---|
1780 | previously requested by #beginTakingSnapshot is either
|
---|
1781 | successfully taken or there was a failure.
|
---|
1782 | </desc>
|
---|
1783 |
|
---|
1784 | <param name="success" type="boolean" dir="in">
|
---|
1785 | <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc>
|
---|
1786 | </param>
|
---|
1787 | </method>
|
---|
1788 |
|
---|
1789 | <method name="discardSnapshot">
|
---|
1790 | <desc>
|
---|
1791 | Gets called by IConsole::discardSnapshot.
|
---|
1792 | </desc>
|
---|
1793 | <param name="initiator" type="IConsole" dir="in">
|
---|
1794 | <desc>The console object that initiated this call.</desc>
|
---|
1795 | </param>
|
---|
1796 | <param name="id" type="uuid" dir="in">
|
---|
1797 | <desc>UUID of the snapshot to discard.</desc>
|
---|
1798 | </param>
|
---|
1799 | <param name="machineState" type="MachineState" dir="out">
|
---|
1800 | <desc>New machine state after this operation is started.</desc>
|
---|
1801 | </param>
|
---|
1802 | <param name="progress" type="IProgress" dir="return">
|
---|
1803 | <desc>Progress object to track the operation completion.</desc>
|
---|
1804 | </param>
|
---|
1805 | </method>
|
---|
1806 |
|
---|
1807 | <method name="discardCurrentState">
|
---|
1808 | <desc>
|
---|
1809 | Gets called by IConsole::discardCurrentState.
|
---|
1810 | </desc>
|
---|
1811 | <param name="initiator" type="IConsole" dir="in">
|
---|
1812 | <desc>The console object that initiated this call.</desc>
|
---|
1813 | </param>
|
---|
1814 | <param name="machineState" type="MachineState" dir="out">
|
---|
1815 | <desc>New machine state after this operation is started.</desc>
|
---|
1816 | </param>
|
---|
1817 | <param name="progress" type="IProgress" dir="return">
|
---|
1818 | <desc>Progress object to track the operation completion.</desc>
|
---|
1819 | </param>
|
---|
1820 | </method>
|
---|
1821 |
|
---|
1822 | <method name="discardCurrentSnapshotAndState">
|
---|
1823 | <desc>
|
---|
1824 | Gets called by IConsole::discardCurrentSnapshotAndState.
|
---|
1825 | </desc>
|
---|
1826 | <param name="initiator" type="IConsole" dir="in">
|
---|
1827 | <desc>The console object that initiated this call.</desc>
|
---|
1828 | </param>
|
---|
1829 | <param name="machineState" type="MachineState" dir="out">
|
---|
1830 | <desc>New machine state after this operation is started.</desc>
|
---|
1831 | </param>
|
---|
1832 | <param name="progress" type="IProgress" dir="return">
|
---|
1833 | <desc>Progress object to track the operation completion.</desc>
|
---|
1834 | </param>
|
---|
1835 | </method>
|
---|
1836 |
|
---|
1837 | </interface>
|
---|
1838 |
|
---|
1839 | <enum
|
---|
1840 | name="BIOSBootMenuMode"
|
---|
1841 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
1842 | >
|
---|
1843 | <desc>
|
---|
1844 | This represents the BIOS boot menu state.
|
---|
1845 | </desc>
|
---|
1846 |
|
---|
1847 | <const name="Disabled" value="0"/>
|
---|
1848 | <const name="MenuOnly" value="1"/>
|
---|
1849 | <const name="MessageAndMenu" value="2"/>
|
---|
1850 | </enum>
|
---|
1851 |
|
---|
1852 | <interface
|
---|
1853 | name="IBIOSSettings" extends="$unknown"
|
---|
1854 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
1855 | wsmap="struct"
|
---|
1856 | >
|
---|
1857 | <attribute name="logoFadeIn" type="boolean">
|
---|
1858 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
1859 | </attribute>
|
---|
1860 |
|
---|
1861 | <attribute name="logoFadeOut" type="boolean">
|
---|
1862 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
1863 | </attribute>
|
---|
1864 |
|
---|
1865 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
1866 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
1867 | </attribute>
|
---|
1868 |
|
---|
1869 | <attribute name="logoImagePath" type="wstring">
|
---|
1870 | <desc>Local file system path for external BIOS image.</desc>
|
---|
1871 | </attribute>
|
---|
1872 |
|
---|
1873 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
1874 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
1875 | </attribute>
|
---|
1876 |
|
---|
1877 | <attribute name="ACPIEnabled" type="boolean">
|
---|
1878 | <desc>ACPI support flag.</desc>
|
---|
1879 | </attribute>
|
---|
1880 |
|
---|
1881 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
1882 | <desc>
|
---|
1883 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
1884 | and support IRQs above 15.
|
---|
1885 | </desc>
|
---|
1886 | </attribute>
|
---|
1887 |
|
---|
1888 | <attribute name="timeOffset" type="long long">
|
---|
1889 | <desc>
|
---|
1890 | Offset in milliseconds from the host system time. This allows for
|
---|
1891 | guests running with a different system date/time than the host.
|
---|
1892 | It is equivalent to setting the system date/time in the BIOS other
|
---|
1893 | than it's not an absolute value but a relative one. Guest Additions
|
---|
1894 | time synchronization also honors this offset.
|
---|
1895 | </desc>
|
---|
1896 | </attribute>
|
---|
1897 |
|
---|
1898 | </interface>
|
---|
1899 |
|
---|
1900 | <interface
|
---|
1901 | name="IMachine" extends="$unknown"
|
---|
1902 | uuid="31f7169f-14da-4c55-8cb6-a3665186e35e"
|
---|
1903 | wsmap="managed"
|
---|
1904 | >
|
---|
1905 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
1906 | <desc>Associated parent obect.</desc>
|
---|
1907 | </attribute>
|
---|
1908 |
|
---|
1909 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
1910 | <desc>
|
---|
1911 | Whether this virtual machine is currently accessible or not.
|
---|
1912 |
|
---|
1913 | The machine is considered to be inaccessible when:
|
---|
1914 | <ul>
|
---|
1915 | <li>It is a registered virtual machine, and
|
---|
1916 | </li>
|
---|
1917 | <li>Its settings file is inaccessible (for example, it is
|
---|
1918 | located on a network share that is not accessible during
|
---|
1919 | VirtualBox startup, or becomes inaccessible later, or if
|
---|
1920 | the settings file can be read but is invalid).
|
---|
1921 | </li>
|
---|
1922 | </ul>
|
---|
1923 |
|
---|
1924 | Otherwise, the value of this property is always <tt>true</tt>.
|
---|
1925 |
|
---|
1926 | Every time this property is read, the accessibility state of
|
---|
1927 | this machine is re-evaluated. If the returned value is |false|,
|
---|
1928 | the <link to="#accessError"/> property may be used to get the
|
---|
1929 | detailed error information describing the reason of
|
---|
1930 | inaccessibility.
|
---|
1931 |
|
---|
1932 | When the machine is inaccessible, only the following properties
|
---|
1933 | can be used on it:
|
---|
1934 | <ul>
|
---|
1935 | <li><link to="#parent"/></li>
|
---|
1936 | <li><link to="#id"/></li>
|
---|
1937 | <li><link to="#settingsFilePath"/></li>
|
---|
1938 | <li><link to="#accessible"/></li>
|
---|
1939 | <li><link to="#accessError"/></li>
|
---|
1940 | </ul>
|
---|
1941 |
|
---|
1942 | An attempt to access any other property or method will return
|
---|
1943 | an error.
|
---|
1944 |
|
---|
1945 | The only possible action you can perform on an inaccessible
|
---|
1946 | machine is to unregister it using the
|
---|
1947 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
1948 | for the accessibility state once more by querying this
|
---|
1949 | property).
|
---|
1950 |
|
---|
1951 | <note>
|
---|
1952 | In the current implementation, once this property returns
|
---|
1953 | <tt>true</tt>, the machine will never become inaccessible
|
---|
1954 | later, even if its settings file cannot be successfully
|
---|
1955 | read/written any more (at least, until the VirtualBox
|
---|
1956 | server is restarted). This limitation may be removed in
|
---|
1957 | future releases.
|
---|
1958 | </note>
|
---|
1959 | </desc>
|
---|
1960 | </attribute>
|
---|
1961 |
|
---|
1962 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
1963 | <desc>
|
---|
1964 | Error information describing the reason of machine
|
---|
1965 | inaccessibility.
|
---|
1966 |
|
---|
1967 | Reading this property is only valid after the last call to
|
---|
1968 | <link to="#accessible"/> returned <tt>false</tt> (i.e. the
|
---|
1969 | machine is currently unaccessible). Otherwise, a null
|
---|
1970 | IVirtualBoxErrorInfo object will be returned.
|
---|
1971 | </desc>
|
---|
1972 | </attribute>
|
---|
1973 |
|
---|
1974 | <attribute name="name" type="wstring">
|
---|
1975 | <desc>
|
---|
1976 | Name of the virtual machine.
|
---|
1977 |
|
---|
1978 | Besides being used for human-readable identification purposes
|
---|
1979 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
1980 | as a name of the machine's settings file and as a name of the
|
---|
1981 | subdirectory this settings file resides in. Thus, every time you
|
---|
1982 | change the value of this property, the settings file will be
|
---|
1983 | renamed once you call <link to="#saveSettings()"/> to confirm the
|
---|
1984 | change. The containing subdirectory will be also renamed, but
|
---|
1985 | only if it has exactly the same name as the settings file
|
---|
1986 | itself prior to changing this property (for backward compatibility
|
---|
1987 | with previous API releases). The above implies the following
|
---|
1988 | limitations:
|
---|
1989 | <ul>
|
---|
1990 | <li>The machine name cannot be empty.</li>
|
---|
1991 | <li>The machine name can contain only characters that are valid
|
---|
1992 | file name characters according to the rules of the file
|
---|
1993 | system used to store VirtualBox configuration.</li>
|
---|
1994 | <li>You cannot have two or more machines with the same name
|
---|
1995 | if they use the same subdirectory for storing the machine
|
---|
1996 | settings files.</li>
|
---|
1997 | <li>You cannot change the name of the machine if it is running,
|
---|
1998 | or if any file in the directory containing the settings file
|
---|
1999 | is being used by another running machine or by any other
|
---|
2000 | process in the host operating system at a time when
|
---|
2001 | <link to="#saveSettings()"/> is called.
|
---|
2002 | </li>
|
---|
2003 | </ul>
|
---|
2004 | If any of the above limitations are hit, <link to="#saveSettings()"/>
|
---|
2005 | will return an appropriate error message explaining the exact
|
---|
2006 | reason and the changes you made to this machine will not be
|
---|
2007 | saved.
|
---|
2008 | <note>
|
---|
2009 | For "legacy" machines created using the
|
---|
2010 | <link to="IVirtualBox::createLegacyMachine()"/> call,
|
---|
2011 | the above naming limitations do not apply because the
|
---|
2012 | machine name does not affect the settings file name.
|
---|
2013 | The settings file name remains the same as it was specified
|
---|
2014 | during machine creation and never changes.
|
---|
2015 | </note>
|
---|
2016 | </desc>
|
---|
2017 | </attribute>
|
---|
2018 |
|
---|
2019 | <attribute name="description" type="wstring">
|
---|
2020 | <desc>
|
---|
2021 | Description of the virtual machine.
|
---|
2022 |
|
---|
2023 | The description attribute can contain any text and is
|
---|
2024 | typically used to describe the hardware and software
|
---|
2025 | configuration of the virtual machine in detail (i.e. network
|
---|
2026 | settings, versions of the installed software and so on).
|
---|
2027 | </desc>
|
---|
2028 | </attribute>
|
---|
2029 |
|
---|
2030 | <attribute name="id" type="uuid" readonly="yes">
|
---|
2031 | <desc>UUID of the virtual machine.</desc>
|
---|
2032 | </attribute>
|
---|
2033 |
|
---|
2034 | <attribute name="OSTypeId" type="wstring">
|
---|
2035 | <desc>
|
---|
2036 | User-defined identifier of the Guest OS type.
|
---|
2037 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
2038 | an IGuestOSType object representing details about the given
|
---|
2039 | Guest OS type.
|
---|
2040 | <note>
|
---|
2041 | This value may differ from the value returned by
|
---|
2042 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
2043 | installed to the guest OS.
|
---|
2044 | </note>
|
---|
2045 | </desc>
|
---|
2046 | </attribute>
|
---|
2047 |
|
---|
2048 | <attribute name="memorySize" type="unsigned long">
|
---|
2049 | <desc>Sytem memory size in megabytes.</desc>
|
---|
2050 | </attribute>
|
---|
2051 |
|
---|
2052 | <attribute name="VRAMSize" type="unsigned long">
|
---|
2053 | <desc>Video memory size in megabytes.</desc>
|
---|
2054 | </attribute>
|
---|
2055 |
|
---|
2056 | <attribute name="MonitorCount" type="unsigned long">
|
---|
2057 | <desc>
|
---|
2058 | Number of virtual monitors.
|
---|
2059 | <note>
|
---|
2060 | Only effective on Windows XP and later guests with
|
---|
2061 | Guest Additions installed.
|
---|
2062 | </note>
|
---|
2063 | </desc>
|
---|
2064 | </attribute>
|
---|
2065 |
|
---|
2066 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
2067 | <desc>Object containing all BIOS settings.</desc>
|
---|
2068 | </attribute>
|
---|
2069 |
|
---|
2070 | <attribute name="HWVirtExEnabled" type="TriStateBool">
|
---|
2071 | <desc>
|
---|
2072 | This setting determines whether VirtualBox will try to make use of
|
---|
2073 | the host CPU's hardware virtualization extensions such as Intel VT-x
|
---|
2074 | and AMD SVM. Note that in case such extensions are not available,
|
---|
2075 | they will not be used.
|
---|
2076 | </desc>
|
---|
2077 | </attribute>
|
---|
2078 |
|
---|
2079 | <attribute name="snapshotFolder" type="wstring">
|
---|
2080 | <desc>
|
---|
2081 | Full path to the directory used to store snapshot data
|
---|
2082 | (difrerencing hard disks and saved state files) of this machine.
|
---|
2083 |
|
---|
2084 | The initial value of this property is
|
---|
2085 | <tt><</tt><link to="#settingsFilePath">
|
---|
2086 | path_to_settings_file</link><tt>>/<</tt>
|
---|
2087 | <link to="#id">machine_uuid</link>
|
---|
2088 | <tt>></tt>.
|
---|
2089 |
|
---|
2090 | Currently, it is an error to try to change this property on
|
---|
2091 | a machine that has snapshots (because this would require to
|
---|
2092 | move possibly large files to a different location).
|
---|
2093 | A separate method will be available for this purpose later.
|
---|
2094 |
|
---|
2095 | <note>
|
---|
2096 | Setting this property to <tt>null</tt> will restore the
|
---|
2097 | initial value.
|
---|
2098 | </note>
|
---|
2099 | <note>
|
---|
2100 | When setting this property, the specified path can be
|
---|
2101 | absolute (full path) or relative to the directory where the
|
---|
2102 | <link to="#settingsFilePath">machine settings file</link>
|
---|
2103 | is located. When reading this property, a full path is
|
---|
2104 | always returned.
|
---|
2105 | </note>
|
---|
2106 | <note>
|
---|
2107 | The specified path may not exist, it will be created
|
---|
2108 | when necessary.
|
---|
2109 | </note>
|
---|
2110 | </desc>
|
---|
2111 | </attribute>
|
---|
2112 |
|
---|
2113 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
2114 | <desc>VRDP server object.</desc>
|
---|
2115 | </attribute>
|
---|
2116 |
|
---|
2117 | <attribute name="hardDiskAttachments" type="IHardDiskAttachmentCollection" readonly="yes">
|
---|
2118 | <desc>Collection of hard disks attached to the machine.</desc>
|
---|
2119 | </attribute>
|
---|
2120 |
|
---|
2121 | <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
|
---|
2122 | <desc>Associated DVD drive object.</desc>
|
---|
2123 | </attribute>
|
---|
2124 |
|
---|
2125 | <attribute name="FloppyDrive" type="IFloppyDrive" readonly="yes">
|
---|
2126 | <desc>Associated floppy drive object.</desc>
|
---|
2127 | </attribute>
|
---|
2128 |
|
---|
2129 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
2130 | <desc>Associated USB controller object.</desc>
|
---|
2131 | </attribute>
|
---|
2132 |
|
---|
2133 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
2134 | <desc>Associated audio adapter, always present.</desc>
|
---|
2135 | </attribute>
|
---|
2136 |
|
---|
2137 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
2138 | <desc>
|
---|
2139 | Full name of the file containing machine settings data.
|
---|
2140 | </desc>
|
---|
2141 | </attribute>
|
---|
2142 |
|
---|
2143 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
2144 | <desc>
|
---|
2145 | Whether the settings of this machine have been modified
|
---|
2146 | (but neither yet saved nor discarded).
|
---|
2147 | <note>
|
---|
2148 | Reading this property is only valid on instances returned
|
---|
2149 | by <link to="ISession::machine"/> and on new machines
|
---|
2150 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
2151 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
2152 | yet registered, or on unregistered machines after calling
|
---|
2153 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
2154 | cases, the settigs can never be modified.
|
---|
2155 | </note>
|
---|
2156 | <note>
|
---|
2157 | For newly created unregistered machines, the value of this
|
---|
2158 | property is always TRUE until <link to="#saveSettings"/>
|
---|
2159 | is called (no matter if any machine settings have been
|
---|
2160 | changed after the creation or not). For opened machines
|
---|
2161 | the value is set to FALSE (and then follows to normal rules).
|
---|
2162 | </note>
|
---|
2163 | </desc>
|
---|
2164 | </attribute>
|
---|
2165 |
|
---|
2166 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
2167 | <desc>Current session state for this machine.</desc>
|
---|
2168 | </attribute>
|
---|
2169 |
|
---|
2170 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
2171 | <desc>
|
---|
2172 | Type of the session. If <link to="#sessionState"/> is
|
---|
2173 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
2174 | same value as passed to the
|
---|
2175 | <link to="IVirtualBox::openRemoteSession()"/> method in the @a
|
---|
2176 | type parameter. If the session was opened directly using
|
---|
2177 | <link to="IVirtualBox::openSession()"/>, or if
|
---|
2178 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
2179 | attribute is @c null.
|
---|
2180 | </desc>
|
---|
2181 | </attribute>
|
---|
2182 |
|
---|
2183 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
2184 | <desc>
|
---|
2185 | Identifier of the session process. This attribute contains the
|
---|
2186 | platform-dependent identifier of the process that has opened a
|
---|
2187 | direct session for this machine using the
|
---|
2188 | <link to="IVirtualBox::openSession()"/> call. The returned value
|
---|
2189 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
2190 | SessionClosing (i.e. a session is currently open or being
|
---|
2191 | closed) by the time this property is read.
|
---|
2192 | </desc>
|
---|
2193 | </attribute>
|
---|
2194 |
|
---|
2195 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
2196 | <desc>Current execution state of this machine.</desc>
|
---|
2197 | </attribute>
|
---|
2198 |
|
---|
2199 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
2200 | <desc>
|
---|
2201 | Time stamp of the last execution state change,
|
---|
2202 | in milliseconds since 1970-01-01 UTC.
|
---|
2203 | </desc>
|
---|
2204 | </attribute>
|
---|
2205 |
|
---|
2206 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
2207 | <desc>
|
---|
2208 | Full path to the file that stores the execution state of
|
---|
2209 | the machine when it is in the <link to="MachineState::Saved"/>
|
---|
2210 | state.
|
---|
2211 | <note>
|
---|
2212 | When the machine is not in the Saved state, this attribute
|
---|
2213 | <tt>null</tt>.
|
---|
2214 | </note>
|
---|
2215 | </desc>
|
---|
2216 | </attribute>
|
---|
2217 |
|
---|
2218 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
2219 | <desc>
|
---|
2220 | Full path to the folder that stores a set of rotated log files
|
---|
2221 | recorded during machine execution. The most recent log file is
|
---|
2222 | named <tt>VBox.log</tt>, the previous log file is
|
---|
2223 | named <tt>VBox.log.1</tt> and so on (upto <tt>VBox.log.3</tt>
|
---|
2224 | in the current version).
|
---|
2225 | </desc>
|
---|
2226 | </attribute>
|
---|
2227 |
|
---|
2228 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
2229 | <desc>
|
---|
2230 | Current snapshot of this machine.
|
---|
2231 | <note>
|
---|
2232 | A <tt>null</tt> object is returned if the machine doesn't
|
---|
2233 | have snapshots.
|
---|
2234 | </note>
|
---|
2235 | <see><link to="ISnapshot"/></see>
|
---|
2236 | </desc>
|
---|
2237 | </attribute>
|
---|
2238 |
|
---|
2239 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
2240 | <desc>
|
---|
2241 | Number of snapshots taken on this machine. Zero means the
|
---|
2242 | machine doesn't have any snapshots.
|
---|
2243 | </desc>
|
---|
2244 | </attribute>
|
---|
2245 |
|
---|
2246 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
2247 | <desc>
|
---|
2248 | Returns <tt>true</tt> if the current state of the machine is not
|
---|
2249 | identical to the state stored in the current snapshot.
|
---|
2250 |
|
---|
2251 | The current state is identical to the current snapshot right
|
---|
2252 | after one of the following calls are made:
|
---|
2253 | <ul>
|
---|
2254 | <li><link to="IConsole::discardCurrentState"/> or
|
---|
2255 | <link to="IConsole::discardCurrentSnapshotAndState"/>
|
---|
2256 | </li>
|
---|
2257 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
2258 | powered off or saved machine, for which
|
---|
2259 | <link to="#settingsModified"/> returns <tt>false</tt>)
|
---|
2260 | </li>
|
---|
2261 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
2262 | </li>
|
---|
2263 | </ul>
|
---|
2264 |
|
---|
2265 | The current state remains identical until one of the following
|
---|
2266 | happens:
|
---|
2267 | <ul>
|
---|
2268 | <li>settings of the machine are changed</li>
|
---|
2269 | <li>the saved state is discarded</li>
|
---|
2270 | <li>the current snapshot is discarded</li>
|
---|
2271 | <li>an attempt to execute the machine is made</li>
|
---|
2272 | </ul>
|
---|
2273 |
|
---|
2274 | <note>
|
---|
2275 | For machines that don't have snapshots, this property is
|
---|
2276 | always <tt>false</tt>.
|
---|
2277 | </note>
|
---|
2278 | </desc>
|
---|
2279 | </attribute>
|
---|
2280 |
|
---|
2281 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
2282 | <desc>
|
---|
2283 | Collection of shared folders for this machine. These folders
|
---|
2284 | are shared automatically upon machine startup and available only
|
---|
2285 | to the guest OS installed within this machine.
|
---|
2286 |
|
---|
2287 | New folders to share are added to the collection using
|
---|
2288 | <link to="#createSharedFolder"/>. An existing shared folder can
|
---|
2289 | be removed using <link to="#removeSharedFolder"/>.
|
---|
2290 | </desc>
|
---|
2291 | </attribute>
|
---|
2292 |
|
---|
2293 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
2294 | <desc>
|
---|
2295 | Synchronization mode between the host OS clipboard
|
---|
2296 | and the guest OS clipboard.
|
---|
2297 | </desc>
|
---|
2298 | </attribute>
|
---|
2299 |
|
---|
2300 | <method name="setBootOrder">
|
---|
2301 | <desc>
|
---|
2302 | Puts the given device to the specified position in
|
---|
2303 | the boot order.
|
---|
2304 |
|
---|
2305 | @todo [remove?]
|
---|
2306 | If the machine can have more than one device of the given type
|
---|
2307 | (such as hard disks), then a separate method should be used to
|
---|
2308 | specify the boot order for individual devices. Using this method
|
---|
2309 | in such cases will put the first device in the group
|
---|
2310 | (for example, a hard disk attached as Master on the primary
|
---|
2311 | IDE controller) to the given position.
|
---|
2312 |
|
---|
2313 | To indicate that no any device is associated with the
|
---|
2314 | given position, <link to="DeviceType::NoDevice"/> should be used.
|
---|
2315 |
|
---|
2316 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
2317 | </desc>
|
---|
2318 | <param name="position" type="unsigned long" dir="in">
|
---|
2319 | <desc>
|
---|
2320 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
2321 | devices the machine can boot from, as returned by
|
---|
2322 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
2323 | </desc>
|
---|
2324 | </param>
|
---|
2325 | <param name="device" type="DeviceType" dir="in">
|
---|
2326 | <desc>
|
---|
2327 | The type of the device used to boot at the given position.
|
---|
2328 | </desc>
|
---|
2329 | </param>
|
---|
2330 | </method>
|
---|
2331 |
|
---|
2332 | <method name="getBootOrder" const="yes">
|
---|
2333 | <desc>
|
---|
2334 | Returns the device type that occupies the specified
|
---|
2335 | position in the boot order.
|
---|
2336 |
|
---|
2337 | @todo [remove?]
|
---|
2338 | If the machine can have more than one device of the returned type
|
---|
2339 | (such as hard disks), then a separate method should be used to
|
---|
2340 | retrieve the individual device that occupies the given position.
|
---|
2341 |
|
---|
2342 | If here are no devices at the given position, then
|
---|
2343 | <link to="DeviceType::NoDevice"/> is returned.
|
---|
2344 |
|
---|
2345 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
2346 | </desc>
|
---|
2347 | <param name="order" type="unsigned long" dir="in">
|
---|
2348 | <desc>
|
---|
2349 | Position in the boot order (<tt>1</tt> to the total number of
|
---|
2350 | devices the machine can boot from, as returned by
|
---|
2351 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
2352 | </desc>
|
---|
2353 | </param>
|
---|
2354 | <param name="device" type="DeviceType" dir="return">
|
---|
2355 | <desc>
|
---|
2356 | Device at the given position.
|
---|
2357 | </desc>
|
---|
2358 | </param>
|
---|
2359 | </method>
|
---|
2360 |
|
---|
2361 | <method name="attachHardDisk">
|
---|
2362 | <desc>
|
---|
2363 |
|
---|
2364 | Attaches a virtual hard disk identified by the given UUID to the
|
---|
2365 | given device slot of the given controller. The specified device
|
---|
2366 | must not have another disk attached and the given hard disk must
|
---|
2367 | not be already attached to this machine.
|
---|
2368 |
|
---|
2369 | See <link to="IHardDisk"/> for detailed information about
|
---|
2370 | attaching hard disks.
|
---|
2371 |
|
---|
2372 | <note>You cannot attach a hard disk to a running machine. Also,
|
---|
2373 | you cannot attach a hard disk to a newly created machine until
|
---|
2374 | it is registered.</note>
|
---|
2375 |
|
---|
2376 | <note>Attaching a hard disk to a machine creates a <i>lazy</i>
|
---|
2377 | attachment. In particular, no differeincing images are
|
---|
2378 | actually created until <link to="#saveSettings"/> is called to
|
---|
2379 | commit all changed settings.</note>
|
---|
2380 |
|
---|
2381 | </desc>
|
---|
2382 | <param name="diskID" type="uuid" dir="in">
|
---|
2383 | <desc>UUID of the hard disk to attach.</desc>
|
---|
2384 | </param>
|
---|
2385 | <param name="controller" type="DiskControllerType" dir="in">
|
---|
2386 | <desc>Controller to attach the hard disk to.</desc>
|
---|
2387 | </param>
|
---|
2388 | <param name="device" type="long" dir="in">
|
---|
2389 | <desc>Device slot to attach the hard disk to.</desc>
|
---|
2390 | </param>
|
---|
2391 | </method>
|
---|
2392 |
|
---|
2393 | <method name="getHardDisk" const="yes">
|
---|
2394 | <desc>
|
---|
2395 | Returns the hard disk attached to the
|
---|
2396 | given controller under the specified device number.
|
---|
2397 | </desc>
|
---|
2398 | <param name="controller" type="DiskControllerType" dir="in"/>
|
---|
2399 | <param name="deviceNumber" type="long" dir="in"/>
|
---|
2400 | <param name="hardDisk" type="IHardDisk" dir="return"/>
|
---|
2401 | </method>
|
---|
2402 |
|
---|
2403 | <method name="detachHardDisk">
|
---|
2404 | <desc>
|
---|
2405 |
|
---|
2406 | Detaches the hard disk drive attached to the given device slot
|
---|
2407 | of the given controller.
|
---|
2408 |
|
---|
2409 | See <link to="IHardDisk"/> for detailed information about
|
---|
2410 | attaching hard disks.
|
---|
2411 |
|
---|
2412 | <note>You cannot detach a hard disk from a running
|
---|
2413 | machine.</note>
|
---|
2414 |
|
---|
2415 | <note>
|
---|
2416 | Detaching a hard disk from a machine creates a <i>lazy</i>
|
---|
2417 | detachment. In particular, if the detached hard disk is a
|
---|
2418 | differencing hard disk, it is not actually deleted until
|
---|
2419 | <link to="#saveSettings"/> is called to commit all changed settings.
|
---|
2420 | Keep in mind, that doing <link to="#saveSettings"/> will
|
---|
2421 | <b>physically delete</b> all detached differencing hard disks,
|
---|
2422 | so be careful.
|
---|
2423 | </note>
|
---|
2424 |
|
---|
2425 | </desc>
|
---|
2426 | <param name="controller" type="DiskControllerType" dir="in">
|
---|
2427 | <desc>Controller to dettach the hard disk from.</desc>
|
---|
2428 | </param>
|
---|
2429 | <param name="device" type="long" dir="in">
|
---|
2430 | <desc>Device slot to dettach the hard disk from.</desc>
|
---|
2431 | </param>
|
---|
2432 | </method>
|
---|
2433 |
|
---|
2434 | <method name="getNetworkAdapter" const="yes">
|
---|
2435 | <desc>
|
---|
2436 | Returns the network adapter associated with the given slot.
|
---|
2437 | Slots are numbered sequentially, starting with zero. The total
|
---|
2438 | number of adapters per every machine is defined by the
|
---|
2439 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
2440 | so the maximum slot number is one less than that property's value.
|
---|
2441 | </desc>
|
---|
2442 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2443 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
2444 | </method>
|
---|
2445 |
|
---|
2446 | <method name="getSerialPort" const="yes">
|
---|
2447 | <desc>
|
---|
2448 | Returns the serial port associated with the given slot.
|
---|
2449 | Slots are numbered sequentially, starting with zero. The total
|
---|
2450 | number of serial ports per every machine is defined by the
|
---|
2451 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
2452 | so the maximum slot number is one less than that property's value.
|
---|
2453 | </desc>
|
---|
2454 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2455 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
2456 | </method>
|
---|
2457 |
|
---|
2458 | <method name="getParallelPort" const="yes">
|
---|
2459 | <desc>
|
---|
2460 | Returns the parallel port associated with the given slot.
|
---|
2461 | Slots are numbered sequentially, starting with zero. The total
|
---|
2462 | number of parallel ports per every machine is defined by the
|
---|
2463 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
2464 | so the maximum slot number is one less than that property's value.
|
---|
2465 | </desc>
|
---|
2466 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
2467 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
2468 | </method>
|
---|
2469 |
|
---|
2470 | <method name="getNextExtraDataKey">
|
---|
2471 | <desc>
|
---|
2472 | Returns the extra data key name following the supplied key.
|
---|
2473 | An error is returned if the supplied key does not exist.
|
---|
2474 | NULL is returned if the supplied key is the last key.
|
---|
2475 | When supplying NULL for the key, the first item is returned.
|
---|
2476 | NextValue is an optional parameter and if supplied, the next
|
---|
2477 | key's value is returned as well.
|
---|
2478 | </desc>
|
---|
2479 | <param name="key" type="wstring" dir="in"/>
|
---|
2480 | <param name="nextKey" type="wstring" dir="out"/>
|
---|
2481 | <param name="nextValue" type="wstring" dir="out"/>
|
---|
2482 | </method>
|
---|
2483 |
|
---|
2484 | <method name="getExtraData">
|
---|
2485 | <desc>Returns associated extra data.</desc>
|
---|
2486 | <param name="key" type="wstring" dir="in"/>
|
---|
2487 | <param name="value" type="wstring" dir="return"/>
|
---|
2488 | </method>
|
---|
2489 |
|
---|
2490 | <method name="setExtraData">
|
---|
2491 | <desc>Sets associated extra data.</desc>
|
---|
2492 | <param name="key" type="wstring" dir="in"/>
|
---|
2493 | <param name="value" type="wstring" dir="in"/>
|
---|
2494 | </method>
|
---|
2495 |
|
---|
2496 | <method name="saveSettings">
|
---|
2497 | <desc>
|
---|
2498 | Saves any changes to machine settings made since the session
|
---|
2499 | has been opened or a new machine has been created, or since the
|
---|
2500 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
2501 | For registered machines, new settings become visible to all
|
---|
2502 | other VirtualBox clients after successful invocation of this
|
---|
2503 | method.
|
---|
2504 | <note>
|
---|
2505 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
2506 | notification event after the configuration has been successfully
|
---|
2507 | saved (only for registered machines).
|
---|
2508 | </note>
|
---|
2509 | <note>
|
---|
2510 | Calling this method is only valid on instances returned
|
---|
2511 | by <link to="ISession::machine"/> and on new machines
|
---|
2512 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
2513 | yet registered, or on unregistered machines after calling
|
---|
2514 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
2515 | </note>
|
---|
2516 | </desc>
|
---|
2517 | </method>
|
---|
2518 |
|
---|
2519 | <method name="discardSettings">
|
---|
2520 | <desc>
|
---|
2521 | Discards any changes to the machine settings made since the session
|
---|
2522 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
2523 | or <link to="#discardSettings"/>.
|
---|
2524 | <note>
|
---|
2525 | Calling this method is only valid on instances returned
|
---|
2526 | by <link to="ISession::machine"/> and on new machines
|
---|
2527 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
2528 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
2529 | yet registered, or on unregistered machines after calling
|
---|
2530 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
2531 | </note>
|
---|
2532 | </desc>
|
---|
2533 | </method>
|
---|
2534 |
|
---|
2535 | <method name="deleteSettings">
|
---|
2536 | <desc>
|
---|
2537 | Deletes the settings file of this machine from disk.
|
---|
2538 | The machine must not be registered in order for this operation
|
---|
2539 | to succeed.
|
---|
2540 | <note>
|
---|
2541 | <link to="#settingsModified"/> will return TRUE after this
|
---|
2542 | method successfully returns.
|
---|
2543 | </note>
|
---|
2544 | <note>
|
---|
2545 | Calling this method is only valid on instances returned
|
---|
2546 | by <link to="ISession::machine"/> and on new machines
|
---|
2547 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
2548 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
2549 | yet registered, or on unregistered machines after calling
|
---|
2550 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
2551 | </note>
|
---|
2552 | <note>
|
---|
2553 | The deleted machine settings file can be restored (saved again)
|
---|
2554 | by calling <link to="#saveSettings"/>.
|
---|
2555 | </note>
|
---|
2556 | </desc>
|
---|
2557 | </method>
|
---|
2558 |
|
---|
2559 | <method name="getSnapshot">
|
---|
2560 | <desc>
|
---|
2561 | Returns a snapshot of this machine with the given UUID.
|
---|
2562 | A <tt>null</tt> UUID can be used to obtain the first snapshot
|
---|
2563 | taken on this machine. This is useful if you want to traverse
|
---|
2564 | the whole tree of snapshots starting from the root.
|
---|
2565 | </desc>
|
---|
2566 | <param name="id" type="uuid" dir="in">
|
---|
2567 | <desc>UUID of the snapshot to get</desc>
|
---|
2568 | </param>
|
---|
2569 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
2570 | <desc>Snapshot object with the given UUID.</desc>
|
---|
2571 | </param>
|
---|
2572 | </method>
|
---|
2573 |
|
---|
2574 | <method name="findSnapshot">
|
---|
2575 | <desc>
|
---|
2576 | Returns a snapshot of this machine with the given name.
|
---|
2577 | </desc>
|
---|
2578 | <param name="name" type="wstring" dir="in">
|
---|
2579 | <desc>Name of the snapshot to find</desc>
|
---|
2580 | </param>
|
---|
2581 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
2582 | <desc>Snapshot object with the given name.</desc>
|
---|
2583 | </param>
|
---|
2584 | </method>
|
---|
2585 |
|
---|
2586 | <method name="setCurrentSnapshot">
|
---|
2587 | <desc>
|
---|
2588 | Sets the current snapshot of this machine.
|
---|
2589 | <note>
|
---|
2590 | In the current implementation, this operation is not
|
---|
2591 | implemented.
|
---|
2592 | </note>
|
---|
2593 | </desc>
|
---|
2594 | <param name="id" type="uuid" dir="in">
|
---|
2595 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
2596 | </param>
|
---|
2597 | </method>
|
---|
2598 |
|
---|
2599 | <method name="createSharedFolder">
|
---|
2600 | <desc>
|
---|
2601 | Creates a new shared folder by associating the given logical
|
---|
2602 | name with the given host path, adds it to the collection of
|
---|
2603 | shared folders and starts sharing it.
|
---|
2604 | Refer to the description of <link to="ISharedFolder"/> to read
|
---|
2605 | about logical name unicity.
|
---|
2606 | </desc>
|
---|
2607 | <param name="name" type="wstring" dir="in">
|
---|
2608 | <desc>Unique logical name of the shared folder.</desc>
|
---|
2609 | </param>
|
---|
2610 | <param name="hostPath" type="wstring" dir="in">
|
---|
2611 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
2612 | </param>
|
---|
2613 | </method>
|
---|
2614 |
|
---|
2615 | <method name="removeSharedFolder">
|
---|
2616 | <desc>
|
---|
2617 | Removes a shared folder with the given name previously created
|
---|
2618 | by <link to="#createSharedFolder"/> from the collection of
|
---|
2619 | shared folders and stops sharing it.
|
---|
2620 | </desc>
|
---|
2621 | <param name="name" type="wstring" dir="in">
|
---|
2622 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
2623 | </param>
|
---|
2624 | </method>
|
---|
2625 |
|
---|
2626 | <method name="canShowConsoleWindow">
|
---|
2627 | <desc>
|
---|
2628 | Returns @c true if the VM console process can activate the
|
---|
2629 | console window and bring it to foreground on the desktop of
|
---|
2630 | the host PC.
|
---|
2631 | <note>
|
---|
2632 | This method will fail if a session for this machine is not
|
---|
2633 | currently open.
|
---|
2634 | </note>
|
---|
2635 | </desc>
|
---|
2636 | <param name="canShow" type="boolean" dir="return">
|
---|
2637 | <desc>
|
---|
2638 | @c true if the console window can be shown and @c
|
---|
2639 | false otherwise.
|
---|
2640 | </desc>
|
---|
2641 | </param>
|
---|
2642 | </method>
|
---|
2643 |
|
---|
2644 | <method name="showConsoleWindow">
|
---|
2645 | <desc>
|
---|
2646 | Activates the console window and brings it to foreground on
|
---|
2647 | the desktop of the host PC. Many modern window managers on
|
---|
2648 | many platforms implement some sort of focus stealing
|
---|
2649 | prevention logic, so that it may be impossible to activate
|
---|
2650 | a window without the help of the currently active
|
---|
2651 | application. In this case, this method will return a non-zero
|
---|
2652 | identifier that represents the top-level window of the VM
|
---|
2653 | console process. The caller, if it represents a currently
|
---|
2654 | active process, is responsible to use this identifier (in a
|
---|
2655 | platform-dependent manner) to perform actual window
|
---|
2656 | activation.
|
---|
2657 | <note>
|
---|
2658 | This method will fail if a session for this machine is not
|
---|
2659 | currently open.
|
---|
2660 | </note>
|
---|
2661 | </desc>
|
---|
2662 | <param name="winId" type="unsigned long long" dir="return">
|
---|
2663 | <desc>
|
---|
2664 | Platform-dependent identifier of the top-level VM console
|
---|
2665 | window, or zero if this method has performed all actions
|
---|
2666 | necessary to implement the <i>show window</i> semantics for
|
---|
2667 | the given platform and/or VirtualBox front-end.
|
---|
2668 | </desc>
|
---|
2669 | </param>
|
---|
2670 | </method>
|
---|
2671 |
|
---|
2672 | </interface>
|
---|
2673 |
|
---|
2674 | <!--
|
---|
2675 | // IConsole
|
---|
2676 | /////////////////////////////////////////////////////////////////////////
|
---|
2677 | -->
|
---|
2678 |
|
---|
2679 | <interface
|
---|
2680 | name="IConsoleCallback" extends="$unknown"
|
---|
2681 | uuid="ebd0c5f2-7b11-4508-803f-012099caee03"
|
---|
2682 | wsmap="suppress"
|
---|
2683 | >
|
---|
2684 |
|
---|
2685 | <method name="onMousePointerShapeChange">
|
---|
2686 | <desc>
|
---|
2687 | Notification when the guest mouse pointer shape has
|
---|
2688 | changed. The new shape data is given.
|
---|
2689 | </desc>
|
---|
2690 | <param name="visible" type="boolean" dir="in">
|
---|
2691 | <desc>
|
---|
2692 | Flag whether the pointer is visible.
|
---|
2693 | </desc>
|
---|
2694 | </param>
|
---|
2695 | <param name="alpha" type="boolean" dir="in">
|
---|
2696 | <desc>
|
---|
2697 | Flag whether the pointer has an alpha channel.
|
---|
2698 | </desc>
|
---|
2699 | </param>
|
---|
2700 | <param name="xHot" type="unsigned long" dir="in">
|
---|
2701 | <desc>
|
---|
2702 | The pointer hot spot x coordinate.
|
---|
2703 | </desc>
|
---|
2704 | </param>
|
---|
2705 | <param name="yHot" type="unsigned long" dir="in">
|
---|
2706 | <desc>
|
---|
2707 | The pointer hot spot y coordinate.
|
---|
2708 | </desc>
|
---|
2709 | </param>
|
---|
2710 | <param name="width" type="unsigned long" dir="in">
|
---|
2711 | <desc>
|
---|
2712 | Width of the pointer shape in pixels.
|
---|
2713 | </desc>
|
---|
2714 | </param>
|
---|
2715 | <param name="height" type="unsigned long" dir="in">
|
---|
2716 | <desc>
|
---|
2717 | Height of the pointer shape in pixels.
|
---|
2718 | </desc>
|
---|
2719 | </param>
|
---|
2720 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
2721 | <desc>
|
---|
2722 | Address of the shape buffer.
|
---|
2723 |
|
---|
2724 | The buffer contains 1 bpp (bits per pixel) AND mask followed by 32 bpp XOR (color) mask.
|
---|
2725 |
|
---|
2726 | For pointers without alpha channel the XOR mask pixels are 32 bit values: (lsb)BGR0(msb).
|
---|
2727 | For pointers with alpha channel the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
2728 |
|
---|
2729 | AND mask presents for pointers with alpha channel, so if the callback does not
|
---|
2730 | support alpha, the pointer could be displayed as a normal color pointer.
|
---|
2731 |
|
---|
2732 | The AND mask is 1 bpp bitmap with byte aligned scanlines. Size of AND mask,
|
---|
2733 | therefore, is <tt>cbAnd = (width + 7) / 8 * height</tt>. The padding bits at the
|
---|
2734 | end of any scanline are undefined.
|
---|
2735 |
|
---|
2736 | The XOR mask follows the AND mask on the next 4 bytes aligned offset:
|
---|
2737 | <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>
|
---|
2738 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
2739 | XOR mask scanlines have no gap between them and size of XOR mask is:
|
---|
2740 | <tt>cXor = width * 4 * height</tt>.
|
---|
2741 |
|
---|
2742 | <note>
|
---|
2743 | If 'shape' is equal to 0, only pointer visibility is being changed.
|
---|
2744 | </note>
|
---|
2745 | </desc>
|
---|
2746 | </param>
|
---|
2747 | </method>
|
---|
2748 |
|
---|
2749 | <method name="onMouseCapabilityChange">
|
---|
2750 | <desc>
|
---|
2751 | Notification when the mouse capabilities reported by the
|
---|
2752 | guest have changed. The new capabilities are passed.
|
---|
2753 | </desc>
|
---|
2754 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
2755 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
2756 | </method>
|
---|
2757 |
|
---|
2758 | <method name="onKeyboardLedsChange">
|
---|
2759 | <desc>
|
---|
2760 | Notification of the host if the guest executed the KBD_CMD_SET_LEDS
|
---|
2761 | command to alter the state of the keyboard LEDs.
|
---|
2762 | </desc>
|
---|
2763 | <param name="numLock" type="boolean" dir="in"/>
|
---|
2764 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
2765 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
2766 | </method>
|
---|
2767 |
|
---|
2768 | <method name="onStateChange">
|
---|
2769 | <desc>
|
---|
2770 | Notification when the execution state of the machine has changed.
|
---|
2771 | The new state will be given.
|
---|
2772 | </desc>
|
---|
2773 | <param name="state" type="MachineState" dir="in"/>
|
---|
2774 | </method>
|
---|
2775 |
|
---|
2776 | <method name="onAdditionsStateChange">
|
---|
2777 | <desc>
|
---|
2778 | Notification when a Guest Additions property changes.
|
---|
2779 | Interested callees should query IGuest's properties to
|
---|
2780 | find out what has changed.
|
---|
2781 | </desc>
|
---|
2782 | </method>
|
---|
2783 |
|
---|
2784 | <method name="onUSBDeviceStateChange">
|
---|
2785 | <desc>
|
---|
2786 | Notification when a USB device is attached to or detached from
|
---|
2787 | the virtual USB controller.
|
---|
2788 |
|
---|
2789 | This notification is sent as a result of the indirect
|
---|
2790 | request to attach the device because it matches one of the
|
---|
2791 | machine USB filters, or as a result of the direct request
|
---|
2792 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
2793 | <link to="IConsole::detachUSBDevice"/>.
|
---|
2794 |
|
---|
2795 | This notification is sent in case of both a succeeded and a
|
---|
2796 | failed request completion. When the request succeeds, the @a
|
---|
2797 | error parameter is @c null, and the given device has been
|
---|
2798 | already added to (when @a attached is @c true) or removed from
|
---|
2799 | (when @a attached is @c false) the collection represented by
|
---|
2800 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
2801 | doesn't change and the @a error perameter represents the error
|
---|
2802 | message describing the failure.
|
---|
2803 |
|
---|
2804 | </desc>
|
---|
2805 | <param name="device" type="IUSBDevice" dir="in">
|
---|
2806 | <desc>Device that is subject to state change.</desc>
|
---|
2807 | </param>
|
---|
2808 | <param name="attached" type="boolean" dir="in">
|
---|
2809 | <desc>
|
---|
2810 | <tt>true</tt> if the device was attached
|
---|
2811 | and <tt>false</tt> otherwise.
|
---|
2812 | </desc>
|
---|
2813 | </param>
|
---|
2814 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
2815 | <desc>
|
---|
2816 | <tt>null</tt> on success or an error message object on
|
---|
2817 | failure.
|
---|
2818 | </desc>
|
---|
2819 | </param>
|
---|
2820 | </method>
|
---|
2821 |
|
---|
2822 | <method name="onRuntimeError">
|
---|
2823 | <desc>
|
---|
2824 | Notification when an error happens during the virtual
|
---|
2825 | machine execution.
|
---|
2826 |
|
---|
2827 | There are three kinds of runtime errors:
|
---|
2828 | <ul>
|
---|
2829 | <li><i>fatal</i></li>
|
---|
2830 | <li><i>non-fatal with retry</i></li>
|
---|
2831 | <li><i>non-fatal warnings</i></li>
|
---|
2832 | </ul>
|
---|
2833 |
|
---|
2834 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
2835 | to <tt>true</tt>. In case of fatal errors, the virtual machine
|
---|
2836 | execution is always paused before calling this notification, and
|
---|
2837 | the notification handler is supposed either to immediately save
|
---|
2838 | the virtual machine state using <link to="IConsole::saveState()"/>
|
---|
2839 | or power it off using <link to="IConsole::powerDown()"/>.
|
---|
2840 | Resuming the execution can lead to unpredictable results.
|
---|
2841 |
|
---|
2842 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
2843 | @a fatal parameter set to <tt>false</tt>. If the virtual machine
|
---|
2844 | is in the Paused state by the time the error notification is
|
---|
2845 | received, it means that the user can <i>try to resume</i> the machine
|
---|
2846 | execution after attempting to solve the probem that caused the
|
---|
2847 | error. In this case, the notification handler is supposed
|
---|
2848 | to show an appropriate message to the user (depending on the
|
---|
2849 | value of the @a id parameter) that offers several actions such
|
---|
2850 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
2851 | wants to retry, the notification handler should continue
|
---|
2852 | the machine execution using the <link to="IConsole::resume()"/>
|
---|
2853 | call. If the machine execution is not Paused during this
|
---|
2854 | notification, then it means this notification is a <i>warning</i>
|
---|
2855 | (for example, about a fatal condition that can happen very soon);
|
---|
2856 | no immediate action is required from the user, the machine
|
---|
2857 | continues its normal execution.
|
---|
2858 |
|
---|
2859 | Note that in either case the notification handler
|
---|
2860 | <b>must not</b> perform any action directly on a thread
|
---|
2861 | where this notification is called. Everything it is allowed to
|
---|
2862 | do is to post a message to another thread that will then talk
|
---|
2863 | to the user and take the corresponding action.
|
---|
2864 |
|
---|
2865 | Currently, the following error identificators are known:
|
---|
2866 | <ul>
|
---|
2867 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
2868 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
2869 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
2870 | </ul>
|
---|
2871 |
|
---|
2872 | <note>
|
---|
2873 | This notification is not designed to be implemented by
|
---|
2874 | more than one callback at a time. If you have multiple
|
---|
2875 | IConsoleCallback instances registered on the given
|
---|
2876 | IConsole object, make sure you simply do nothing but
|
---|
2877 | return @c S_OK from all but one of them that does actual
|
---|
2878 | user notification and performs necessary actions.
|
---|
2879 | </note>
|
---|
2880 |
|
---|
2881 | </desc>
|
---|
2882 | <param name="fatal" type="boolean" dir="in">
|
---|
2883 | <desc>Whether the error is fatal or not</desc>
|
---|
2884 | </param>
|
---|
2885 | <param name="id" type="wstring" dir="in">
|
---|
2886 | <desc>Error identificator</desc>
|
---|
2887 | </param>
|
---|
2888 | <param name="message" type="wstring" dir="in">
|
---|
2889 | <desc>Optional error message</desc>
|
---|
2890 | </param>
|
---|
2891 | </method>
|
---|
2892 |
|
---|
2893 | <method name="onCanShowWindow">
|
---|
2894 | <desc>
|
---|
2895 | Notification when a call to
|
---|
2896 | <link to="IMachine::canShowConsoleWindow()"/> is made by a
|
---|
2897 | front-end to check if a subsequent call to
|
---|
2898 | <link to="IMachine::showConsoleWindow()"/> can succeed.
|
---|
2899 |
|
---|
2900 | The callee should give an answer appropriate to the current
|
---|
2901 | machine state in the @a canShow argument. This answer must
|
---|
2902 | remain valid at least until the next
|
---|
2903 | <link to="IConsole::state">machine state</link> change.
|
---|
2904 |
|
---|
2905 | <note>
|
---|
2906 | This notification is not designed to be implemented by
|
---|
2907 | more than one callback at a time. If you have multiple
|
---|
2908 | IConsoleCallback instances registered on the given
|
---|
2909 | IConsole object, make sure you simply do nothing but
|
---|
2910 | return @c true and @c S_OK from all but one of them that
|
---|
2911 | actually manages console window activation.
|
---|
2912 | </note>
|
---|
2913 | </desc>
|
---|
2914 | <param name="canShow" type="boolean" dir="return">
|
---|
2915 | <desc>
|
---|
2916 | @c true if the console window can be shown and @c
|
---|
2917 | false otherwise.
|
---|
2918 | </desc>
|
---|
2919 | </param>
|
---|
2920 | </method>
|
---|
2921 |
|
---|
2922 | <method name="onShowWindow">
|
---|
2923 | <desc>
|
---|
2924 | Notification when a call to
|
---|
2925 | <link to="IMachine::showConsoleWindow()"/>
|
---|
2926 | requests the console window to be activated and brought to
|
---|
2927 | foreground on the desktop of the host PC.
|
---|
2928 |
|
---|
2929 | This notification should cause the VM console process to
|
---|
2930 | perform the requested action as described above. If it is
|
---|
2931 | impossible to do it at a time of this notification, this
|
---|
2932 | method should return a failure.
|
---|
2933 |
|
---|
2934 | Note that many modern window managers on many platforms
|
---|
2935 | implement some sort of focus stealing prevention logic, so
|
---|
2936 | that it may be impossible to activate a window without the
|
---|
2937 | help of the currently active application (which is supposedly
|
---|
2938 | an initiator of this notification). In this case, this method
|
---|
2939 | must return a non-zero identifier that represents the
|
---|
2940 | top-level window of the VM console process. The caller, if it
|
---|
2941 | represents a currently active process, is responsible to use
|
---|
2942 | this identifier (in a platform-dependent manner) to perform
|
---|
2943 | actual window activation.
|
---|
2944 |
|
---|
2945 | This method must set @a winId to zero if it has performed all
|
---|
2946 | actions necessary to complete the request and the console
|
---|
2947 | window is now active and in foreground, to indicate that no
|
---|
2948 | further action is required on the caller's side.
|
---|
2949 |
|
---|
2950 | <note>
|
---|
2951 | This notification is not designed to be implemented by
|
---|
2952 | more than one callback at a time. If you have multiple
|
---|
2953 | IConsoleCallback instances registered on the given
|
---|
2954 | IConsole object, make sure you simply do nothing but
|
---|
2955 | return@c S_OK from all but one of them that actually
|
---|
2956 | manages console window activation.
|
---|
2957 | </note>
|
---|
2958 | </desc>
|
---|
2959 | <param name="winId" type="unsigned long long" dir="return">
|
---|
2960 | <desc>
|
---|
2961 | Platform-dependent identifier of the top-level VM console
|
---|
2962 | window, or zero if this method has performed all actions
|
---|
2963 | necessary to implement the <i>show window</i> semantics for
|
---|
2964 | the given platform and/or this VirtualBox front-end.
|
---|
2965 | </desc>
|
---|
2966 | </param>
|
---|
2967 | </method>
|
---|
2968 |
|
---|
2969 | </interface>
|
---|
2970 |
|
---|
2971 | <interface
|
---|
2972 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
2973 | uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
|
---|
2974 | wsmap="struct"
|
---|
2975 | >
|
---|
2976 | <attribute name="active" type="boolean" readonly="yes">
|
---|
2977 | <desc>
|
---|
2978 | Whether the remote display connection is active.
|
---|
2979 | </desc>
|
---|
2980 | </attribute>
|
---|
2981 |
|
---|
2982 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
2983 | <desc>
|
---|
2984 | How many times a client connected.
|
---|
2985 | </desc>
|
---|
2986 | </attribute>
|
---|
2987 |
|
---|
2988 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
2989 | <desc>
|
---|
2990 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
2991 | </desc>
|
---|
2992 | </attribute>
|
---|
2993 |
|
---|
2994 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
2995 | <desc>
|
---|
2996 | When the last connection was terminated or the current time, if
|
---|
2997 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
2998 | </desc>
|
---|
2999 | </attribute>
|
---|
3000 |
|
---|
3001 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
3002 | <desc>
|
---|
3003 | How many bytes were sent in last or current, if still active, connection.
|
---|
3004 | </desc>
|
---|
3005 | </attribute>
|
---|
3006 |
|
---|
3007 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
3008 | <desc>
|
---|
3009 | How many bytes were sent in all connections.
|
---|
3010 | </desc>
|
---|
3011 | </attribute>
|
---|
3012 |
|
---|
3013 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
3014 | <desc>
|
---|
3015 | How many bytes were received in last or current, if still active, connection.
|
---|
3016 | </desc>
|
---|
3017 | </attribute>
|
---|
3018 |
|
---|
3019 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
3020 | <desc>
|
---|
3021 | How many bytes were received in all connections.
|
---|
3022 | </desc>
|
---|
3023 | </attribute>
|
---|
3024 |
|
---|
3025 | <attribute name="user" type="wstring" readonly="yes">
|
---|
3026 | <desc>
|
---|
3027 | Login user name supplied by the client.
|
---|
3028 | </desc>
|
---|
3029 | </attribute>
|
---|
3030 |
|
---|
3031 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
3032 | <desc>
|
---|
3033 | Login domain name supplied by the client.
|
---|
3034 | </desc>
|
---|
3035 | </attribute>
|
---|
3036 |
|
---|
3037 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
3038 | <desc>
|
---|
3039 | The client name supplied by the client.
|
---|
3040 | </desc>
|
---|
3041 | </attribute>
|
---|
3042 |
|
---|
3043 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
3044 | <desc>
|
---|
3045 | The IP address of the client.
|
---|
3046 | </desc>
|
---|
3047 | </attribute>
|
---|
3048 |
|
---|
3049 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
3050 | <desc>
|
---|
3051 | The client software version number.
|
---|
3052 | </desc>
|
---|
3053 | </attribute>
|
---|
3054 |
|
---|
3055 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
3056 | <desc>
|
---|
3057 | Public key exchange method used when connection was established.
|
---|
3058 | Values: 0 - RDP4 public key exchange scheme.
|
---|
3059 | 1 - X509 sertificates were sent to client.
|
---|
3060 | </desc>
|
---|
3061 | </attribute>
|
---|
3062 |
|
---|
3063 | </interface>
|
---|
3064 |
|
---|
3065 | <interface
|
---|
3066 | name="IConsole" extends="$unknown"
|
---|
3067 | uuid="1DEA5C4B-0753-4193-B909-22330F64EC45"
|
---|
3068 | wsmap="managed"
|
---|
3069 | >
|
---|
3070 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
3071 | <desc>
|
---|
3072 | Machine object this console is sessioned with.
|
---|
3073 | <note>
|
---|
3074 | This is a convenience property, it has the same value as
|
---|
3075 | <link to="ISession::machine"/> of the corresponding session
|
---|
3076 | object.
|
---|
3077 | </note>
|
---|
3078 | </desc>
|
---|
3079 | </attribute>
|
---|
3080 |
|
---|
3081 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
3082 | <desc>
|
---|
3083 | Current execution state of the machine.
|
---|
3084 | <note>
|
---|
3085 | This property always returns the same value as the corresponding
|
---|
3086 | property of the IMachine object this console is sessioned with.
|
---|
3087 | For the process, that owns (executes) the VM, this is the
|
---|
3088 | preferrable way of quierying the VM state, because no IPC
|
---|
3089 | calls are made.
|
---|
3090 | </note>
|
---|
3091 | </desc>
|
---|
3092 | </attribute>
|
---|
3093 |
|
---|
3094 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
3095 | <desc>Guest object.</desc>
|
---|
3096 | </attribute>
|
---|
3097 |
|
---|
3098 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
3099 | <desc>
|
---|
3100 | Virtual keyboard object.
|
---|
3101 | <note>
|
---|
3102 | If the machine is not running, any attempt to use
|
---|
3103 | the returned object will result in an error.
|
---|
3104 | </note>
|
---|
3105 | </desc>
|
---|
3106 | </attribute>
|
---|
3107 |
|
---|
3108 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
3109 | <desc>
|
---|
3110 | Virtual mouse object.
|
---|
3111 | <note>
|
---|
3112 | If the machine is not running, any attempt to use
|
---|
3113 | the returned object will result in an error.
|
---|
3114 | </note>
|
---|
3115 | </desc>
|
---|
3116 | </attribute>
|
---|
3117 |
|
---|
3118 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
3119 | <desc>Virtual display object.
|
---|
3120 | <note>
|
---|
3121 | If the machine is not running, any attempt to use
|
---|
3122 | the returned object will result in an error.
|
---|
3123 | </note>
|
---|
3124 | </desc>
|
---|
3125 | </attribute>
|
---|
3126 |
|
---|
3127 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
3128 | <desc>Debugging interface.</desc>
|
---|
3129 | </attribute>
|
---|
3130 |
|
---|
3131 | <attribute name="USBDevices" type="IUSBDeviceCollection" readonly="yes">
|
---|
3132 | <desc>
|
---|
3133 | Collection of USB devices currently attached to the virtual
|
---|
3134 | USB controller.
|
---|
3135 | <note>
|
---|
3136 | The collection is empty if the machine is not running.
|
---|
3137 | </note>
|
---|
3138 | </desc>
|
---|
3139 | </attribute>
|
---|
3140 |
|
---|
3141 | <attribute name="remoteUSBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
3142 | <desc>
|
---|
3143 | List of USB devices currently attached to the remote VRDP client.
|
---|
3144 | Once a new device is physically attached to the remote host computer,
|
---|
3145 | it appears in this list and remains there until detached.
|
---|
3146 | </desc>
|
---|
3147 | </attribute>
|
---|
3148 |
|
---|
3149 | <attribute name="sharedFolders" type="ISharedFolderCollection" readonly="yes">
|
---|
3150 | <desc>
|
---|
3151 | Collection of shared folders for the current session.
|
---|
3152 | This collection is initially empty and is cleared once the
|
---|
3153 | session is closed. On other words, this collection represents
|
---|
3154 | transient shares (as opposed to <link to="IMachine::sharedFolders"/>
|
---|
3155 | that stores permanent shares stored in the settings file).
|
---|
3156 |
|
---|
3157 | New folders to share are added to the collection using
|
---|
3158 | <link to="#createSharedFolder"/>. An existing shared folder can
|
---|
3159 | be removed using <link to="#removeSharedFolder"/>.
|
---|
3160 | </desc>
|
---|
3161 | </attribute>
|
---|
3162 |
|
---|
3163 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
3164 | <desc>
|
---|
3165 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
3166 | </desc>
|
---|
3167 | </attribute>
|
---|
3168 |
|
---|
3169 | <method name="powerUp">
|
---|
3170 | <desc>
|
---|
3171 | Starts the virtual machine execution using the current machine
|
---|
3172 | state (i.e. its current execution state, current settings and
|
---|
3173 | current hard disks).
|
---|
3174 |
|
---|
3175 | If the machine is powered off or aborted, the execution will
|
---|
3176 | start from the beginning (as if the real hardware were just
|
---|
3177 | powered on).
|
---|
3178 |
|
---|
3179 | If the machine is in the <link to="MachineState::Saved"/> state,
|
---|
3180 | it will continue its execution the point where the state has
|
---|
3181 | beem saved.
|
---|
3182 |
|
---|
3183 | <see>#saveState</see>
|
---|
3184 | </desc>
|
---|
3185 | <param name="progress" type="IProgress" dir="return">
|
---|
3186 | <desc>Progress object to track the operation completion.</desc>
|
---|
3187 | </param>
|
---|
3188 | </method>
|
---|
3189 |
|
---|
3190 | <method name="powerDown">
|
---|
3191 | <desc>
|
---|
3192 | Stops the virtual machine execution.
|
---|
3193 | After this operation completes, the machine will go to the
|
---|
3194 | PoweredOff state.
|
---|
3195 | </desc>
|
---|
3196 | </method>
|
---|
3197 |
|
---|
3198 | <method name="reset">
|
---|
3199 | <desc>Resets the virtual machine.</desc>
|
---|
3200 | </method>
|
---|
3201 |
|
---|
3202 | <method name="pause">
|
---|
3203 | <desc>Pauses the virtual machine execution.</desc>
|
---|
3204 | </method>
|
---|
3205 |
|
---|
3206 | <method name="resume">
|
---|
3207 | <desc>Resumes the virtual machine execution.</desc>
|
---|
3208 | </method>
|
---|
3209 |
|
---|
3210 | <method name="powerButton">
|
---|
3211 | <desc>Send the ACPI power button event to the guest.</desc>
|
---|
3212 | </method>
|
---|
3213 |
|
---|
3214 | <method name="saveState">
|
---|
3215 | <desc>
|
---|
3216 | Saves the current execution state of a running virtual machine
|
---|
3217 | and stops its executiuon.
|
---|
3218 |
|
---|
3219 | After this operation completes, the machine will go to the
|
---|
3220 | Saved state. Next time it is powered up, this state will
|
---|
3221 | be restored and the machine will continue its execution from
|
---|
3222 | the place where it was saved.
|
---|
3223 |
|
---|
3224 | This operation differs from taking a snapshot to the effect
|
---|
3225 | that it doesn't create new differencing hard disks. Also, once
|
---|
3226 | the machine is powered up from the state saved using this method,
|
---|
3227 | the saved state is deleted, so it will be impossible to return
|
---|
3228 | to this state later.
|
---|
3229 |
|
---|
3230 | <note>
|
---|
3231 | On success, this method implicitly calls
|
---|
3232 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
3233 | settings (including runtime changes to the DVD drive, etc.).
|
---|
3234 | Together with the impossibility to change any VM settings when it is
|
---|
3235 | in the Saved state, this guarantees the adequate hardware
|
---|
3236 | configuration of the machine when it is restored from the saved
|
---|
3237 | state file.
|
---|
3238 | </note>
|
---|
3239 |
|
---|
3240 | <note>
|
---|
3241 | The machine must be in the Running or Paused state, otherwise
|
---|
3242 | the operation will fail.
|
---|
3243 | </note>
|
---|
3244 |
|
---|
3245 | <see><link to="#takeSnapshot"/></see>
|
---|
3246 | </desc>
|
---|
3247 | <param name="progress" type="IProgress" dir="return">
|
---|
3248 | <desc>Progress object to track the operation completion.</desc>
|
---|
3249 | </param>
|
---|
3250 | </method>
|
---|
3251 |
|
---|
3252 | <method name="discardSavedState">
|
---|
3253 | <desc>
|
---|
3254 | Discards (deletes) the saved state of the virtual machine
|
---|
3255 | previously created by <link to="#saveState"/>. Next time the
|
---|
3256 | machine is powered up, a clean boot will occur.
|
---|
3257 | <note>
|
---|
3258 | This operation is equivalent to resetting or powering off
|
---|
3259 | the machine without doing a proper shutdown in the guest OS.
|
---|
3260 | </note>
|
---|
3261 | </desc>
|
---|
3262 | </method>
|
---|
3263 |
|
---|
3264 | <method name="getDeviceActivity">
|
---|
3265 | <desc>
|
---|
3266 | Gets the current activity type of a given device or device group.
|
---|
3267 | </desc>
|
---|
3268 | <param name="type" type="DeviceType" dir="in"/>
|
---|
3269 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
3270 | </method>
|
---|
3271 |
|
---|
3272 | <method name="attachUSBDevice">
|
---|
3273 | <desc>
|
---|
3274 | Attaches a host USB device with the given UUID to the
|
---|
3275 | USB controller of the virtual machine.
|
---|
3276 |
|
---|
3277 | The device needs to be in one of the following states:
|
---|
3278 | <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
|
---|
3279 | <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link> or
|
---|
3280 | <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>,
|
---|
3281 | otherwise an error is immediately returned.
|
---|
3282 |
|
---|
3283 | When the device state is
|
---|
3284 | <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
|
---|
3285 | an error may also be returned if the host computer
|
---|
3286 | refuses to release it for some reason.
|
---|
3287 |
|
---|
3288 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
3289 | </desc>
|
---|
3290 | <param name="id" type="uuid" dir="in">
|
---|
3291 | <desc>UUID of the host USB device to attach.</desc>
|
---|
3292 | </param>
|
---|
3293 | </method>
|
---|
3294 |
|
---|
3295 | <method name="detachUSBDevice">
|
---|
3296 | <desc>
|
---|
3297 | Detaches an USB device with the given UUID from the USB controller
|
---|
3298 | oif the virtual machine.
|
---|
3299 |
|
---|
3300 | After this method succeeds, the VirtualBox server reinitiates
|
---|
3301 | all USB filters as if the device were just physically attached
|
---|
3302 | to the host, but filters of this machine are ignored to avoid
|
---|
3303 | a possible automatic reattachment.
|
---|
3304 |
|
---|
3305 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
3306 | </desc>
|
---|
3307 | <param name="id" type="uuid" dir="in">
|
---|
3308 | <desc>UUID of the USB device to detach.</desc>
|
---|
3309 | </param>
|
---|
3310 | <param name="device" type="IUSBDevice" dir="return">
|
---|
3311 | <desc>Detached USB device.</desc>
|
---|
3312 | </param>
|
---|
3313 | </method>
|
---|
3314 |
|
---|
3315 | <method name="createSharedFolder">
|
---|
3316 | <desc>
|
---|
3317 | Creates a new shared folder by associating the given logical
|
---|
3318 | name with the given host path, adds it to the collection of
|
---|
3319 | shared folders and starts sharing it.
|
---|
3320 | Refer to the description of <link to="ISharedFolder"/> to read
|
---|
3321 | about logical name unicity.
|
---|
3322 | </desc>
|
---|
3323 | <param name="name" type="wstring" dir="in">
|
---|
3324 | <desc>Unique logical name of the shared folder.</desc>
|
---|
3325 | </param>
|
---|
3326 | <param name="hostPath" type="wstring" dir="in">
|
---|
3327 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
3328 | </param>
|
---|
3329 | </method>
|
---|
3330 |
|
---|
3331 | <method name="removeSharedFolder">
|
---|
3332 | <desc>
|
---|
3333 | Removes a shared folder with the given name previously created
|
---|
3334 | by <link to="#createSharedFolder"/> from the collection of
|
---|
3335 | shared folders and stops sharing it.
|
---|
3336 | </desc>
|
---|
3337 | <param name="name" type="wstring" dir="in">
|
---|
3338 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
3339 | </param>
|
---|
3340 | </method>
|
---|
3341 |
|
---|
3342 | <method name="takeSnapshot">
|
---|
3343 | <desc>
|
---|
3344 | Saves the current execution state and all settings of the
|
---|
3345 | machine and creates differencing images for all
|
---|
3346 | normal (non-independent) hard disks.
|
---|
3347 |
|
---|
3348 | This method can be called for a PoweredOff, Saved, Running or
|
---|
3349 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
3350 | offline <link to="ISnapshot">snapshot</link> is created,
|
---|
3351 | in all other cases -- an online snapshot.
|
---|
3352 |
|
---|
3353 | The taken snapshot is always based on the
|
---|
3354 | <link to="IMachine::currentSnapshot">current
|
---|
3355 | snapshot</link> of the associated virtual machine and becomes
|
---|
3356 | a new current snapshot.
|
---|
3357 |
|
---|
3358 | <note>
|
---|
3359 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
3360 | save all current machine settings before taking an offline snapshot.
|
---|
3361 | </note>
|
---|
3362 |
|
---|
3363 | <see>ISnapshot, <link to="#saveState"/></see>
|
---|
3364 | </desc>
|
---|
3365 | <param name="name" type="wstring" dir="in">
|
---|
3366 | <desc>Short name for the snapshot.</desc>
|
---|
3367 | </param>
|
---|
3368 | <param name="description" type="wstring" dir="in">
|
---|
3369 | <desc>Optional description of the snapshot.</desc>
|
---|
3370 | </param>
|
---|
3371 | <param name="progress" type="IProgress" dir="return">
|
---|
3372 | <desc>Progress object to track the operation completion.</desc>
|
---|
3373 | </param>
|
---|
3374 | </method>
|
---|
3375 |
|
---|
3376 | <method name="discardSnapshot">
|
---|
3377 | <desc>
|
---|
3378 |
|
---|
3379 | Starts discarding the specified snapshot. The execution state
|
---|
3380 | and settings of the associated machine stored in the snapshot
|
---|
3381 | will be deleted. The contents of all differencing hard disks of
|
---|
3382 | this snapshot will be merged with the contents of their
|
---|
3383 | dependent child hard disks to keep the, disks valid (in other
|
---|
3384 | words, all changes represented by hard disks being discarded
|
---|
3385 | will be propagated to their child hard disks). After that, this
|
---|
3386 | snapshot's differencing hard disks will be deleted. The parent
|
---|
3387 | of this snapshot will become a new parent for all its child
|
---|
3388 | snapshots.
|
---|
3389 |
|
---|
3390 | If the discarded snapshot is the current one, its parent
|
---|
3391 | snapshot will become a new current snapshot. The current machine
|
---|
3392 | state is not directly affected in this case, except that
|
---|
3393 | currently attached differencing hard disks based on hard disks
|
---|
3394 | of the discarded snapshot will be also merged as described
|
---|
3395 | above.
|
---|
3396 |
|
---|
3397 | If the discarded snapshot is the first one (the root snapshot)
|
---|
3398 | and it has exactly one child snapshot, this child snapshot will
|
---|
3399 | become the first snapshot after discarding. If there are no
|
---|
3400 | children at all (i.e. the first snapshot is the only snapshot of
|
---|
3401 | the machine), both the current and the first snapshot of the
|
---|
3402 | machine will be set to null. In all other cases, the first
|
---|
3403 | snapshot cannot be discarded.
|
---|
3404 |
|
---|
3405 | You cannot discard the snapshot if it
|
---|
3406 | stores <link to="HardDiskType::NormalHardDisk">normal</link>
|
---|
3407 | (non-differencing) hard disks that have differencing hard disks based
|
---|
3408 | on them. Snapshots of such kind can be discarded only when every
|
---|
3409 | normal hard disk has either no children at all or exactly one
|
---|
3410 | child. In the former case, the normal hard disk simply becomes unused
|
---|
3411 | (i.e. not attached to any VM). In the latter case, it receives all the
|
---|
3412 | changes strored in the child hard disk, and then it replaces the child
|
---|
3413 | hard disk in the configuration of the corresponding snapshot or
|
---|
3414 | machine.
|
---|
3415 |
|
---|
3416 | Also, you cannot discard the snapshot if it stores hard disks
|
---|
3417 | (of any type) having differencing child hard disks that belong
|
---|
3418 | to other machines. Such snapshots can be only discarded after
|
---|
3419 | you discard all snapshots of other machines containing "foreign"
|
---|
3420 | child disks, or detach these "foreign" child disks from machines
|
---|
3421 | they are attached to.
|
---|
3422 |
|
---|
3423 | One particular example of the snapshot storing normal hard disks
|
---|
3424 | is the first snapshot of a virtual machine that had normal hard
|
---|
3425 | disks attached when taking the snapshot. Be careful when
|
---|
3426 | discarding such snapshots because this implicitly commits
|
---|
3427 | changes (made since the snapshot being discarded has been taken)
|
---|
3428 | to normal hard disks (as described above), which may be not what
|
---|
3429 | you want.
|
---|
3430 |
|
---|
3431 | The virtual machine is put to
|
---|
3432 | the <link to="MachineState::Discarding">Discarding</link> state until
|
---|
3433 | the discard operation is completed.
|
---|
3434 |
|
---|
3435 | <note>
|
---|
3436 | The machine must not be running, otherwise the operation
|
---|
3437 | will fail.
|
---|
3438 | </note>
|
---|
3439 |
|
---|
3440 | <note>
|
---|
3441 | Child hard disks of all normal hard disks of the discarded snapshot
|
---|
3442 | must be <link to="IHardDisk::accessible">accessible</link> for this
|
---|
3443 | operation to succeed. In particular, this means that all virtual
|
---|
3444 | machines, whose hard disks are directly or indirectly based on the
|
---|
3445 | hard disks of discarded snapshot, must be powered off.
|
---|
3446 | </note>
|
---|
3447 | <note>
|
---|
3448 | Merging hard disk contents can be very time and disk space
|
---|
3449 | consuming, if these disks are big in size and have many
|
---|
3450 | children. However, if the snapshot being discarded is the last
|
---|
3451 | (head) snapshot on the branch, the operation will be rather
|
---|
3452 | quick.
|
---|
3453 | </note>
|
---|
3454 | <note>
|
---|
3455 | Note that discarding the current snapshot
|
---|
3456 | will imlicitly call <link to="IMachine::saveSettings()"/> to
|
---|
3457 | make all current machine settings permanent.
|
---|
3458 | </note>
|
---|
3459 | </desc>
|
---|
3460 | <param name="id" type="uuid" dir="in">
|
---|
3461 | <desc>UUID of the snapshot to discard.</desc>
|
---|
3462 | </param>
|
---|
3463 | <param name="progress" type="IProgress" dir="return">
|
---|
3464 | <desc>Progress object to track the operation completion.</desc>
|
---|
3465 | </param>
|
---|
3466 | </method>
|
---|
3467 |
|
---|
3468 | <method name="discardCurrentState">
|
---|
3469 | <desc>
|
---|
3470 | This operation is similar to <link to="#discardSnapshot()"/> but
|
---|
3471 | affects the current machine state. This means that the state stored
|
---|
3472 | in the current snapshot will become a new current state, and
|
---|
3473 | all current settings of the machine and changes stored in
|
---|
3474 | differencing hard disks will be lost.
|
---|
3475 |
|
---|
3476 | After this operation is successfully completed, new empty
|
---|
3477 | differencing hard disks are created for all normal hard disks
|
---|
3478 | of the machine.
|
---|
3479 |
|
---|
3480 | If the current snapshot of the machine is an online snapshot,
|
---|
3481 | the machine will go to the <link to="MachineState::Saved">
|
---|
3482 | saved state</link>, so that the next time it is powered on,
|
---|
3483 | the execution state will be restored from the current snapshot.
|
---|
3484 |
|
---|
3485 | <note>The machine must not be running, otherwise the operation
|
---|
3486 | will fail.</note>
|
---|
3487 |
|
---|
3488 | <note>If the machine state is <link
|
---|
3489 | to="MachineState::Saved">Saved</link> prior to this operation,
|
---|
3490 | the saved state file will be implicitly discarded (as if <link
|
---|
3491 | to="IConsole::discardSavedState()"/> were called).</note>
|
---|
3492 |
|
---|
3493 | </desc>
|
---|
3494 | <param name="progress" type="IProgress" dir="return">
|
---|
3495 | <desc>Progress object to track the operation completion.</desc>
|
---|
3496 | </param>
|
---|
3497 | </method>
|
---|
3498 |
|
---|
3499 | <method name="discardCurrentSnapshotAndState">
|
---|
3500 | <desc>
|
---|
3501 |
|
---|
3502 | This method is equivalent to
|
---|
3503 | doing <link to="#discardSnapshot">discardSnapshot</link>
|
---|
3504 | (<link
|
---|
3505 | to="IMachine::currentSnapshot">currentSnapshot</link>.<link
|
---|
3506 | to="ISnapshot::id">id()</link>, ...) followed by
|
---|
3507 | <link to="#discardCurrentState()"/>.
|
---|
3508 |
|
---|
3509 | As a result, the machine will be fully restored from the
|
---|
3510 | snapshot preceeding the current snapshot, while both the current
|
---|
3511 | snapshot and the current machine state will be discarded.
|
---|
3512 |
|
---|
3513 | If the current snapshot is the first snapshot of the machine (i.e. it
|
---|
3514 | has the only snapshot), the current machine state will be
|
---|
3515 | discarded <b>before</b> discarding the snapshot. In other words, the
|
---|
3516 | machine will be restored from its last snapshot, before discarding
|
---|
3517 | it. This differs from performing a single
|
---|
3518 | <link to="#discardSnapshot()"/> call (note that no
|
---|
3519 | <link to="#discardCurrentState()"/> will be possible after it) to the
|
---|
3520 | effect that the latter will preserve the current state instead of
|
---|
3521 | discarding it.
|
---|
3522 |
|
---|
3523 | Unless explicitly mentioned otherwise, all remarks and
|
---|
3524 | limitations of the above two methods also apply to this method.
|
---|
3525 |
|
---|
3526 | <note>
|
---|
3527 | The machine must not be running, otherwise the operation
|
---|
3528 | will fail.
|
---|
3529 | </note>
|
---|
3530 |
|
---|
3531 | <note>
|
---|
3532 | If the machine state is <link to="MachineState::Saved">Saved</link>
|
---|
3533 | prior to this operation, the saved state file will be implicitly
|
---|
3534 | discarded (as if <link to="IConsole::discardSavedState()"/> were
|
---|
3535 | called).</note>
|
---|
3536 |
|
---|
3537 | <note>
|
---|
3538 | This method is more efficient than calling two above
|
---|
3539 | methods separately: it requires less IPC calls and provides
|
---|
3540 | a single progress object.
|
---|
3541 | </note>
|
---|
3542 |
|
---|
3543 | </desc>
|
---|
3544 | <param name="progress" type="IProgress" dir="return">
|
---|
3545 | <desc>Progress object to track the operation completion.</desc>
|
---|
3546 | </param>
|
---|
3547 | </method>
|
---|
3548 |
|
---|
3549 | <method name="registerCallback">
|
---|
3550 | <desc>
|
---|
3551 | Registers a new console callback on this instance. The methods of the
|
---|
3552 | callback interface will be called by this instance when the appropriate
|
---|
3553 | event occurs.
|
---|
3554 | </desc>
|
---|
3555 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
3556 | </method>
|
---|
3557 |
|
---|
3558 | <method name="unregisterCallback">
|
---|
3559 | <desc>
|
---|
3560 | Unregisters the console callback previously registered using
|
---|
3561 | <link to="#registerCallback"/>.
|
---|
3562 | </desc>
|
---|
3563 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
3564 | </method>
|
---|
3565 |
|
---|
3566 | </interface>
|
---|
3567 |
|
---|
3568 | <!--
|
---|
3569 | // IHost
|
---|
3570 | /////////////////////////////////////////////////////////////////////////
|
---|
3571 | -->
|
---|
3572 |
|
---|
3573 | <interface
|
---|
3574 | name="IHostDVDDrive" extends="$unknown"
|
---|
3575 | uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
|
---|
3576 | wsmap="managed"
|
---|
3577 | >
|
---|
3578 | <attribute name="name" type="wstring" readonly="yes">
|
---|
3579 | <desc>
|
---|
3580 | Returns the platform-specific device identifier.
|
---|
3581 | On DOS-like platforms, it is a drive name (e.g. R:).
|
---|
3582 | On Unix-like platforms, it is a device name (e.g. /dev/hdc).
|
---|
3583 | </desc>
|
---|
3584 | </attribute>
|
---|
3585 | <attribute name="description" type="wstring" readonly="yes">
|
---|
3586 | <desc>
|
---|
3587 | Returns a human readable description for the drive. This
|
---|
3588 | description usually contains the product and vendor name. A
|
---|
3589 | @c null string is returned if the description is not available.
|
---|
3590 | </desc>
|
---|
3591 | </attribute>
|
---|
3592 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
3593 | <desc>
|
---|
3594 | Returns the unique device identifier for the drive. This
|
---|
3595 | attribute is reserved for future use instead of
|
---|
3596 | <link to="#name"/>. Currently it is not used and may return
|
---|
3597 | @c null on some platforms.
|
---|
3598 | </desc>
|
---|
3599 | </attribute>
|
---|
3600 |
|
---|
3601 | </interface>
|
---|
3602 |
|
---|
3603 | <enumerator
|
---|
3604 | name="IHostDVDDriveEnumerator" type="IHostDVDDrive"
|
---|
3605 | uuid="1ed7cfaf-c363-40df-aa4e-89c1afb7d96b"
|
---|
3606 | />
|
---|
3607 |
|
---|
3608 | <collection
|
---|
3609 | name="IHostDVDDriveCollection" type="IHostDVDDrive"
|
---|
3610 | enumerator="IHostDVDDriveEnumerator"
|
---|
3611 | uuid="1909c533-1a1e-445f-a4e1-a267cffc30ed"
|
---|
3612 | readonly="yes"
|
---|
3613 | >
|
---|
3614 | <method name="findByName">
|
---|
3615 | <desc>
|
---|
3616 | Searches this collection for a host drive with the given name.
|
---|
3617 | <note>
|
---|
3618 | The method returns an error if the given name does not
|
---|
3619 | correspond to any host drive in the collection.
|
---|
3620 | </note>
|
---|
3621 | </desc>
|
---|
3622 | <param name="name" type="wstring" dir="in">
|
---|
3623 | <desc>Name of the host drive to search for</desc>
|
---|
3624 | </param>
|
---|
3625 | <param name="drive" type="IHostDVDDrive" dir="return">
|
---|
3626 | <desc>Found host drive object</desc>
|
---|
3627 | </param>
|
---|
3628 | </method>
|
---|
3629 | </collection>
|
---|
3630 |
|
---|
3631 | <interface
|
---|
3632 | name="IHostFloppyDrive" extends="$unknown"
|
---|
3633 | uuid="b6a4d1a9-4221-43c3-bd52-021a5daa9ed2"
|
---|
3634 | wsmap="managed"
|
---|
3635 | >
|
---|
3636 | <attribute name="name" type="wstring" readonly="yes">
|
---|
3637 | <desc>
|
---|
3638 | Returns the platform-specific device identifier.
|
---|
3639 | On DOS-like platforms, it is a drive name (e.g. A:).
|
---|
3640 | On Unix-like platforms, it is a device name (e.g. /dev/fd0).
|
---|
3641 | </desc>
|
---|
3642 | </attribute>
|
---|
3643 | <attribute name="description" type="wstring" readonly="yes">
|
---|
3644 | <desc>
|
---|
3645 | Returns a human readable description for the drive. This
|
---|
3646 | description usually contains the product and vendor name. A
|
---|
3647 | @c null string is returned if the description is not available.
|
---|
3648 | </desc>
|
---|
3649 | </attribute>
|
---|
3650 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
3651 | <desc>
|
---|
3652 | Returns the unique device identifier for the drive. This
|
---|
3653 | attribute is reserved for future use instead of
|
---|
3654 | <link to="#name"/>. Currently it is not used and may return
|
---|
3655 | @c null on some platforms.
|
---|
3656 | </desc>
|
---|
3657 | </attribute>
|
---|
3658 | </interface>
|
---|
3659 |
|
---|
3660 | <enumerator
|
---|
3661 | name="IHostFloppyDriveEnumerator" type="IHostFloppyDrive"
|
---|
3662 | uuid="ce04c924-4f54-432a-9dec-11fddc3ea875"
|
---|
3663 | />
|
---|
3664 |
|
---|
3665 | <collection
|
---|
3666 | name="IHostFloppyDriveCollection" type="IHostFloppyDrive"
|
---|
3667 | enumerator="IHostFloppyDriveEnumerator"
|
---|
3668 | uuid="fd84bb86-c59a-4037-a557-755ff263a460"
|
---|
3669 | readonly="yes"
|
---|
3670 | >
|
---|
3671 | <method name="findByName">
|
---|
3672 | <desc>
|
---|
3673 | Searches this collection for a host drive with the given name.
|
---|
3674 | <note>
|
---|
3675 | The method returns an error if the given name does not
|
---|
3676 | correspond to any host drive in the collection.
|
---|
3677 | </note>
|
---|
3678 | </desc>
|
---|
3679 | <param name="name" type="wstring" dir="in">
|
---|
3680 | <desc>Name of the host drive to search for</desc>
|
---|
3681 | </param>
|
---|
3682 | <param name="drive" type="IHostFloppyDrive" dir="return">
|
---|
3683 | <desc>Found host drive object</desc>
|
---|
3684 | </param>
|
---|
3685 | </method>
|
---|
3686 | </collection>
|
---|
3687 |
|
---|
3688 | <if target="midl">
|
---|
3689 | <interface
|
---|
3690 | name="IHostNetworkInterface" extends="$unknown"
|
---|
3691 | uuid="F4512D7C-B074-4e97-99B8-6D2BD27C3F5A"
|
---|
3692 | wsmap="managed"
|
---|
3693 | >
|
---|
3694 | <attribute name="name" type="wstring" readonly="yes">
|
---|
3695 | <desc>Returns the host network interface name.</desc>
|
---|
3696 | </attribute>
|
---|
3697 |
|
---|
3698 | <attribute name="id" type="uuid" readonly="yes">
|
---|
3699 | <desc>Returns the interface UUID.</desc>
|
---|
3700 | </attribute>
|
---|
3701 | </interface>
|
---|
3702 |
|
---|
3703 | <enumerator
|
---|
3704 | name="IHostNetworkInterfaceEnumerator" type="IHostNetworkInterface"
|
---|
3705 | uuid="7B52FEF7-56E8-4aec-92F5-15E6D11EC630"
|
---|
3706 | />
|
---|
3707 |
|
---|
3708 | <collection
|
---|
3709 | name="IHostNetworkInterfaceCollection" type="IHostNetworkInterface"
|
---|
3710 | enumerator="IHostNetworkInterfaceEnumerator"
|
---|
3711 | uuid="BF1D41F2-B97B-4314-A0FB-D4823AF42FB5"
|
---|
3712 | readonly="yes"
|
---|
3713 | >
|
---|
3714 | <method name="findByName">
|
---|
3715 | <desc>
|
---|
3716 | Searches this collection for a host network interface with the given name.
|
---|
3717 | <note>
|
---|
3718 | The method returns an error if the given name does not
|
---|
3719 | correspond to any host network interface in the collection.
|
---|
3720 | </note>
|
---|
3721 | </desc>
|
---|
3722 | <param name="name" type="wstring" dir="in">
|
---|
3723 | <desc>Name of the host network interface to search for.</desc>
|
---|
3724 | </param>
|
---|
3725 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
3726 | <desc>Found host network interface object.</desc>
|
---|
3727 | </param>
|
---|
3728 | </method>
|
---|
3729 | <method name="findById">
|
---|
3730 | <desc>
|
---|
3731 | Searches this collection for a host network interface with the given GUID.
|
---|
3732 | <note>
|
---|
3733 | The method returns an error if the given GUID does not
|
---|
3734 | correspond to any host network interface in the collection.
|
---|
3735 | </note>
|
---|
3736 | </desc>
|
---|
3737 | <param name="id" type="uuid" dir="in">
|
---|
3738 | <desc>GUID of the host network interface to search for.</desc>
|
---|
3739 | </param>
|
---|
3740 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
3741 | <desc>Found host network interface object.</desc>
|
---|
3742 | </param>
|
---|
3743 | </method>
|
---|
3744 | </collection>
|
---|
3745 | </if>
|
---|
3746 |
|
---|
3747 | <interface
|
---|
3748 | name="IHost" extends="$unknown"
|
---|
3749 | uuid="81729c26-1aec-46f5-b7c0-cc7364738fdb"
|
---|
3750 | wsmap="managed"
|
---|
3751 | >
|
---|
3752 | <attribute name="DVDDrives" type="IHostDVDDriveCollection" readonly="yes">
|
---|
3753 | <desc>List of DVD drives available on the host.</desc>
|
---|
3754 | </attribute>
|
---|
3755 |
|
---|
3756 | <attribute name="floppyDrives" type="IHostFloppyDriveCollection" readonly="yes">
|
---|
3757 | <desc>List of floppy drives available on the host.</desc>
|
---|
3758 | </attribute>
|
---|
3759 |
|
---|
3760 | <attribute name="USBDevices" type="IHostUSBDeviceCollection" readonly="yes">
|
---|
3761 | <desc>
|
---|
3762 | List of USB devices currently attached to the host.
|
---|
3763 | Once a new device is physically attached to the host computer,
|
---|
3764 | it appears in this list and remains there until detached.
|
---|
3765 | </desc>
|
---|
3766 | </attribute>
|
---|
3767 |
|
---|
3768 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilterCollection" readonly="yes">
|
---|
3769 | <desc>
|
---|
3770 | List of USB device filters in action.
|
---|
3771 | When a new device is physically attached to the host computer,
|
---|
3772 | filters from this list are applied to it (in order they are stored
|
---|
3773 | in the list). The first matched filter will determine the
|
---|
3774 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
3775 | performed on the device.
|
---|
3776 |
|
---|
3777 | Unless the device is ignored by these filters, filters of all
|
---|
3778 | currently running virtual machines
|
---|
3779 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
3780 |
|
---|
3781 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
3782 | </desc>
|
---|
3783 | </attribute>
|
---|
3784 |
|
---|
3785 | <if target="midl">
|
---|
3786 | <attribute name="networkInterfaces" type="IHostNetworkInterfaceCollection" readonly="yes">
|
---|
3787 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
3788 | </attribute>
|
---|
3789 | </if>
|
---|
3790 |
|
---|
3791 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
3792 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
3793 | </attribute>
|
---|
3794 |
|
---|
3795 | <attribute name="processorSpeed" type="unsigned long" readonly="yes">
|
---|
3796 | <desc>(Approximate) speed of the host CPU in Megahertz.</desc>
|
---|
3797 | </attribute>
|
---|
3798 |
|
---|
3799 | <attribute name="processorDescription" type="wstring" readonly="yes">
|
---|
3800 | <desc>Description string of the host CPU.</desc>
|
---|
3801 | </attribute>
|
---|
3802 |
|
---|
3803 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
3804 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
3805 | </attribute>
|
---|
3806 |
|
---|
3807 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
3808 | <desc>Available system memory in the host system.</desc>
|
---|
3809 | </attribute>
|
---|
3810 |
|
---|
3811 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
3812 | <desc>Name of the host system's operating system.</desc>
|
---|
3813 | </attribute>
|
---|
3814 |
|
---|
3815 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
3816 | <desc>Host operating system's version string.</desc>
|
---|
3817 | </attribute>
|
---|
3818 |
|
---|
3819 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
3820 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
3821 | </attribute>
|
---|
3822 |
|
---|
3823 | <if target="midl">
|
---|
3824 | <method name="createHostNetworkInterface">
|
---|
3825 | <desc>
|
---|
3826 | Creates a new adapter for Host Interface Networking.
|
---|
3827 | </desc>
|
---|
3828 | <param name="name" type="wstring" dir="in">
|
---|
3829 | <desc>
|
---|
3830 | Adapter name.
|
---|
3831 | </desc>
|
---|
3832 | </param>
|
---|
3833 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
3834 | <desc>
|
---|
3835 | Created host interface object.
|
---|
3836 | </desc>
|
---|
3837 | </param>
|
---|
3838 | <param name="progress" type="IProgress" dir="return">
|
---|
3839 | <desc>
|
---|
3840 | Progress object to track the operation completion.
|
---|
3841 | </desc>
|
---|
3842 | </param>
|
---|
3843 | </method>
|
---|
3844 | <method name="removeHostNetworkInterface">
|
---|
3845 | <desc>
|
---|
3846 | Removes the given host network interface.
|
---|
3847 | </desc>
|
---|
3848 | <param name="id" type="uuid" dir="in">
|
---|
3849 | <desc>
|
---|
3850 | Adapter GUID.
|
---|
3851 | </desc>
|
---|
3852 | </param>
|
---|
3853 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
3854 | <desc>
|
---|
3855 | Removed host interface object.
|
---|
3856 | </desc>
|
---|
3857 | </param>
|
---|
3858 | <param name="progress" type="IProgress" dir="return">
|
---|
3859 | <desc>
|
---|
3860 | Progress object to track the operation completion.
|
---|
3861 | </desc>
|
---|
3862 | </param>
|
---|
3863 | </method>
|
---|
3864 | </if>
|
---|
3865 |
|
---|
3866 | <method name="createUSBDeviceFilter">
|
---|
3867 | <desc>
|
---|
3868 | Creates a new USB device filter. All attributes except
|
---|
3869 | the filter name are set to <tt>null</tt> (any match),
|
---|
3870 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
3871 |
|
---|
3872 | The created filter can be added to the list of filters using
|
---|
3873 | <link to="#insertUSBDeviceFilter()"/>.
|
---|
3874 |
|
---|
3875 | <see>#USBDeviceFilters</see>
|
---|
3876 | </desc>
|
---|
3877 | <param name="name" type="wstring" dir="in">
|
---|
3878 | <desc>
|
---|
3879 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
3880 | for more info.
|
---|
3881 | </desc>
|
---|
3882 | </param>
|
---|
3883 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
3884 | <desc>Created filter object.</desc>
|
---|
3885 | </param>
|
---|
3886 | </method>
|
---|
3887 |
|
---|
3888 | <method name="insertUSBDeviceFilter">
|
---|
3889 | <desc>
|
---|
3890 | Inserts the given USB device to the specified position
|
---|
3891 | in the list of filters.
|
---|
3892 |
|
---|
3893 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
3894 | position is equal to or greater than the number of elements in
|
---|
3895 | the list, the filter is added to the end of the collection.
|
---|
3896 |
|
---|
3897 | <note>
|
---|
3898 | Duplicates are not allowed, so an attempt to insert a
|
---|
3899 | filter that is already in the list, will return an
|
---|
3900 | error.
|
---|
3901 | </note>
|
---|
3902 |
|
---|
3903 | <see>#USBDeviceFilters</see>
|
---|
3904 | </desc>
|
---|
3905 | <param name="position" type="unsigned long" dir="in">
|
---|
3906 | <desc>Position to insert the filter to.</desc>
|
---|
3907 | </param>
|
---|
3908 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
3909 | <desc>USB device filter to insert.</desc>
|
---|
3910 | </param>
|
---|
3911 | </method>
|
---|
3912 |
|
---|
3913 | <method name="removeUSBDeviceFilter">
|
---|
3914 | <desc>
|
---|
3915 | Removes a USB device filter from the specified position in the
|
---|
3916 | list of filters.
|
---|
3917 |
|
---|
3918 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
3919 | position equal to or greater than the number of elements in
|
---|
3920 | the list will produce an error.
|
---|
3921 |
|
---|
3922 | <see>#USBDeviceFilters</see>
|
---|
3923 | </desc>
|
---|
3924 | <param name="position" type="unsigned long" dir="in">
|
---|
3925 | <desc>Position to remove the filter from.</desc>
|
---|
3926 | </param>
|
---|
3927 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
3928 | <desc>Removed USB device filter.</desc>
|
---|
3929 | </param>
|
---|
3930 | </method>
|
---|
3931 |
|
---|
3932 | </interface>
|
---|
3933 |
|
---|
3934 | <!--
|
---|
3935 | // ISystemProperties
|
---|
3936 | /////////////////////////////////////////////////////////////////////////
|
---|
3937 | -->
|
---|
3938 |
|
---|
3939 | <interface
|
---|
3940 | name="ISystemProperties"
|
---|
3941 | extends="$unknown"
|
---|
3942 | uuid="12c2e31e-247f-4d51-82e5-5b9d4a6c7d5b"
|
---|
3943 | wsmap="struct"
|
---|
3944 | >
|
---|
3945 | <desc>
|
---|
3946 | The ISystemProperties interface represents global properties
|
---|
3947 | of the given VirtualBox installation.
|
---|
3948 |
|
---|
3949 | These properties define limits and default values for various
|
---|
3950 | attributes and parameters.
|
---|
3951 |
|
---|
3952 | Most of the properties are read-only, but some can be changed by
|
---|
3953 | a user.
|
---|
3954 | </desc>
|
---|
3955 |
|
---|
3956 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
3957 | <desc>Minium guest system memory in Megabytes.</desc>
|
---|
3958 | </attribute>
|
---|
3959 |
|
---|
3960 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
3961 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
3962 | </attribute>
|
---|
3963 |
|
---|
3964 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
3965 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
3966 | </attribute>
|
---|
3967 |
|
---|
3968 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
3969 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
3970 | </attribute>
|
---|
3971 |
|
---|
3972 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
3973 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
3974 | </attribute>
|
---|
3975 |
|
---|
3976 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
3977 | <desc>
|
---|
3978 | Number of network adapters associated with every
|
---|
3979 | <link to="IMachine"/> instance.
|
---|
3980 | </desc>
|
---|
3981 | </attribute>
|
---|
3982 |
|
---|
3983 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
3984 | <desc>
|
---|
3985 | Number of serial ports associated with every
|
---|
3986 | <link to="IMachine"/> instance.
|
---|
3987 | </desc>
|
---|
3988 | </attribute>
|
---|
3989 |
|
---|
3990 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
3991 | <desc>
|
---|
3992 | Number of parallel ports associated with every
|
---|
3993 | <link to="IMachine"/> instance.
|
---|
3994 | </desc>
|
---|
3995 | </attribute>
|
---|
3996 |
|
---|
3997 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
3998 | <desc>
|
---|
3999 | Maximum device position in the boot order. This value corresponds
|
---|
4000 | to the total number of devices a machine can boot from, to make it
|
---|
4001 | possible to include all possible devices to the boot list.
|
---|
4002 | <see><link to="IMachine::setBootOrder()"/></see>
|
---|
4003 | </desc>
|
---|
4004 | </attribute>
|
---|
4005 |
|
---|
4006 | <attribute name="defaultVDIFolder" type="wstring">
|
---|
4007 | <desc>
|
---|
4008 | Full path to the default directory used to create new or open
|
---|
4009 | existing virtual disk images when an image file name contains no
|
---|
4010 | path.
|
---|
4011 |
|
---|
4012 | The initial value of this property is
|
---|
4013 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
4014 | VirtualBox_home</link><tt>>/VDI</tt>.
|
---|
4015 |
|
---|
4016 | <note>
|
---|
4017 | Setting this property to <tt>null</tt> will restore the
|
---|
4018 | initial value.
|
---|
4019 | </note>
|
---|
4020 | <note>
|
---|
4021 | When settings this property, the specified path can be
|
---|
4022 | absolute (full path) or relative
|
---|
4023 | to the <link to="IVirtualBox::homeFolder">
|
---|
4024 | VirtualBox home directory</link>.
|
---|
4025 | When reading this property, a full path is
|
---|
4026 | always returned.
|
---|
4027 | </note>
|
---|
4028 | <note>
|
---|
4029 | The specified path may not exist, it will be created
|
---|
4030 | when necessary.
|
---|
4031 | </note>
|
---|
4032 |
|
---|
4033 | <see>
|
---|
4034 | <link to="IVirtualBox::createHardDisk()"/>,
|
---|
4035 | <link to="IVirtualBox::openVirtualDiskImage()"/>
|
---|
4036 | </see>
|
---|
4037 | </desc>
|
---|
4038 | </attribute>
|
---|
4039 |
|
---|
4040 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
4041 | <desc>
|
---|
4042 | Full path to the default directory used to create new or open
|
---|
4043 | existing machines when a settings file name contains no
|
---|
4044 | path.
|
---|
4045 |
|
---|
4046 | The initial value of this property is
|
---|
4047 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
4048 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
4049 |
|
---|
4050 | <note>
|
---|
4051 | Setting this property to <tt>null</tt> will restore the
|
---|
4052 | initial value.
|
---|
4053 | </note>
|
---|
4054 | <note>
|
---|
4055 | When settings this property, the specified path can be
|
---|
4056 | absolute (full path) or relative
|
---|
4057 | to the <link to="IVirtualBox::homeFolder">
|
---|
4058 | VirtualBox home directory</link>.
|
---|
4059 | When reading this property, a full path is
|
---|
4060 | always returned.
|
---|
4061 | </note>
|
---|
4062 | <note>
|
---|
4063 | The specified path may not exist, it will be created
|
---|
4064 | when necessary.
|
---|
4065 | </note>
|
---|
4066 |
|
---|
4067 | <see>
|
---|
4068 | <link to="IVirtualBox::createMachine()"/>,
|
---|
4069 | <link to="IVirtualBox::openMachine()"/>
|
---|
4070 | </see>
|
---|
4071 | </desc>
|
---|
4072 | </attribute>
|
---|
4073 |
|
---|
4074 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
4075 | <desc>
|
---|
4076 | Path to the library that provides authentication
|
---|
4077 | for VRDP clients. The library is used if authentication
|
---|
4078 | type is set to "external" in the VM RemoteDisplay
|
---|
4079 | configuration.
|
---|
4080 |
|
---|
4081 | The initial value of this property is <tt>VRDPAuth</tt>.
|
---|
4082 | That is library called VRDPAuth in one of default library
|
---|
4083 | directories. A full path can be used as well.
|
---|
4084 |
|
---|
4085 | <note>
|
---|
4086 | The library name does not include the file extension.
|
---|
4087 | </note>
|
---|
4088 | <note>
|
---|
4089 | Setting this property to <tt>null</tt> will restore the
|
---|
4090 | initial value.
|
---|
4091 | </note>
|
---|
4092 | </desc>
|
---|
4093 | </attribute>
|
---|
4094 |
|
---|
4095 | <attribute name="HWVirtExEnabled" type="boolean">
|
---|
4096 | <desc>
|
---|
4097 | This specifies the default value for hardware virtualization
|
---|
4098 | extensions. If enabled, virtual machines will make use of
|
---|
4099 | hardware virtualization extensions such as Intel VT-x and
|
---|
4100 | AMD SVM by default. This value can be overridden by each VM
|
---|
4101 | using their <link to="IMachine::HWVirtExEnabled"/> property.
|
---|
4102 | </desc>
|
---|
4103 | </attribute>
|
---|
4104 |
|
---|
4105 | </interface>
|
---|
4106 |
|
---|
4107 | <!--
|
---|
4108 | // IGuest
|
---|
4109 | /////////////////////////////////////////////////////////////////////////
|
---|
4110 | -->
|
---|
4111 |
|
---|
4112 | <interface
|
---|
4113 | name="IGuestOSType" extends="$unknown"
|
---|
4114 | uuid="da94f478-1f37-4726-b750-2235950dc2fe"
|
---|
4115 | wsmap="struct"
|
---|
4116 | >
|
---|
4117 | <attribute name="id" type="wstring" readonly="yes">
|
---|
4118 | <desc>Guest OS identifier string.</desc>
|
---|
4119 | </attribute>
|
---|
4120 |
|
---|
4121 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4122 | <desc>Human readable description of the guest OS.</desc>
|
---|
4123 | </attribute>
|
---|
4124 |
|
---|
4125 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
4126 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
4127 | </attribute>
|
---|
4128 |
|
---|
4129 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
4130 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
4131 | </attribute>
|
---|
4132 |
|
---|
4133 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
4134 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
4135 | </attribute>
|
---|
4136 | </interface>
|
---|
4137 |
|
---|
4138 |
|
---|
4139 | <enumerator
|
---|
4140 | name="IGuestOSTypeEnumerator" type="IGuestOSType"
|
---|
4141 | uuid="a3335e02-4669-4e3c-80c7-c4dc7056a07c"
|
---|
4142 | />
|
---|
4143 |
|
---|
4144 | <collection
|
---|
4145 | name="IGuestOSTypeCollection" type="IGuestOSType" enumerator="IGuestOSTypeEnumerator"
|
---|
4146 | uuid="a5e36749-a610-498b-9f29-2e36c1042d65"
|
---|
4147 | readonly="yes"
|
---|
4148 | />
|
---|
4149 |
|
---|
4150 | <interface
|
---|
4151 | name="IGuest" extends="$unknown"
|
---|
4152 | uuid="d7a3f7cf-84c4-4628-9267-a1cff0e5f3bc"
|
---|
4153 | wsmap="suppress"
|
---|
4154 | >
|
---|
4155 | <desc>
|
---|
4156 | The IGuest interface represents a guest (virtual machine's) operating
|
---|
4157 | system. It provides information about the Guest Additions and other
|
---|
4158 | guest OS properties.
|
---|
4159 |
|
---|
4160 | <see>IConsole::guest</see>
|
---|
4161 | </desc>
|
---|
4162 |
|
---|
4163 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
4164 | <desc>
|
---|
4165 | Identifier of the Guest OS type as reported by the Guest
|
---|
4166 | Additions.
|
---|
4167 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4168 | an IGuestOSType object representing details about the given
|
---|
4169 | Guest OS type.
|
---|
4170 | <note>
|
---|
4171 | If Guest Additions are not installed, this value will be
|
---|
4172 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
4173 | </note>
|
---|
4174 | </desc>
|
---|
4175 | </attribute>
|
---|
4176 |
|
---|
4177 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
4178 | <desc>
|
---|
4179 | Flag whether the Guest Additions are installed and active
|
---|
4180 | in which case their version will be returned by the
|
---|
4181 | <link to="#additionsVersion"/> property.
|
---|
4182 | </desc>
|
---|
4183 | </attribute>
|
---|
4184 |
|
---|
4185 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
4186 | <desc>
|
---|
4187 | Version of the Guest Additions (3 decimal numbers separated
|
---|
4188 | by dots) or empty when the Additions are not installed. The
|
---|
4189 | Additions may also report a version but yet not be active as
|
---|
4190 | the version might be refused by VirtualBox (incompatible) or
|
---|
4191 | other failures occured.
|
---|
4192 | </desc>
|
---|
4193 | </attribute>
|
---|
4194 |
|
---|
4195 | <attribute name="seamlessSupport" type="boolean" readonly="yes">
|
---|
4196 | <desc>
|
---|
4197 | Flag whether seamless guest display rendering is supported.
|
---|
4198 | </desc>
|
---|
4199 | </attribute>
|
---|
4200 |
|
---|
4201 | <method name="setCredentials">
|
---|
4202 | <desc>
|
---|
4203 | Store login credentials that can be queried by guest operating
|
---|
4204 | systems with Additions installed. The credentials are transient
|
---|
4205 | to the session and the guest may also choose to erase them. Note
|
---|
4206 | that the caller cannot determine whether the guest operating system
|
---|
4207 | has queried or made use of the credentials.
|
---|
4208 | </desc>
|
---|
4209 | <param name="userName" type="wstring" dir="in">
|
---|
4210 | <desc>User name string, can be empty</desc>
|
---|
4211 | </param>
|
---|
4212 | <param name="password" type="wstring" dir="in">
|
---|
4213 | <desc>Password string, can be empty</desc>
|
---|
4214 | </param>
|
---|
4215 | <param name="domain" type="wstring" dir="in">
|
---|
4216 | <desc>Domain name (guest logon scheme specific), can be emtpy</desc>
|
---|
4217 | </param>
|
---|
4218 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
4219 | <desc>
|
---|
4220 | Flag whether the guest should alternatively allow the user to
|
---|
4221 | interactively specify different credentials. This flag might
|
---|
4222 | not be supported by all versions of the Additions.
|
---|
4223 | </desc>
|
---|
4224 | </param>
|
---|
4225 | </method>
|
---|
4226 |
|
---|
4227 | </interface>
|
---|
4228 |
|
---|
4229 |
|
---|
4230 | <!--
|
---|
4231 | // IProgress
|
---|
4232 | /////////////////////////////////////////////////////////////////////////
|
---|
4233 | -->
|
---|
4234 |
|
---|
4235 | <enumerator
|
---|
4236 | name="IProgressEnumerator" type="IProgress"
|
---|
4237 | uuid="e0380522-4ef1-48f4-856c-e455177ccb2d"
|
---|
4238 | />
|
---|
4239 |
|
---|
4240 | <collection
|
---|
4241 | name="IProgressCollection" type="IProgress" enumerator="IProgressEnumerator"
|
---|
4242 | uuid="78B76A7C-F0F2-467c-9F0E-F089A54EE957"
|
---|
4243 | readonly="yes"
|
---|
4244 | />
|
---|
4245 |
|
---|
4246 | <interface
|
---|
4247 | name="IProgress" extends="$unknown"
|
---|
4248 | uuid="10CC03A1-717E-429b-992D-C67B56175A51"
|
---|
4249 | wsmap="managed"
|
---|
4250 | >
|
---|
4251 | <desc>
|
---|
4252 | The IProgress interface represents a task progress object that allows
|
---|
4253 | to wait for the completion of some asynchronous task.
|
---|
4254 |
|
---|
4255 | The task consists of one or more operations that run sequentially,
|
---|
4256 | one after one. There is an individual percent of completion of the
|
---|
4257 | current operation and the percent of completion of the task as a
|
---|
4258 | whole. Similarly, you can wait for the completion of a particular
|
---|
4259 | operation or for the completion of the whole task.
|
---|
4260 |
|
---|
4261 | Every operation is identified by a number (starting from 0)
|
---|
4262 | and has a separate description.
|
---|
4263 | </desc>
|
---|
4264 |
|
---|
4265 | <attribute name="id" type="uuid" readonly="yes">
|
---|
4266 | <desc>ID of the task.</desc>
|
---|
4267 | </attribute>
|
---|
4268 |
|
---|
4269 | <attribute name="description" type="wstring" readonly="yes">
|
---|
4270 | <desc>Description of the task.</desc>
|
---|
4271 | </attribute>
|
---|
4272 |
|
---|
4273 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
4274 | <desc>Initiator of the task.</desc>
|
---|
4275 | </attribute>
|
---|
4276 |
|
---|
4277 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
4278 | <desc>Whether the task can be interrupted.</desc>
|
---|
4279 | </attribute>
|
---|
4280 |
|
---|
4281 | <attribute name="percent" type="long" readonly="yes">
|
---|
4282 | <desc>
|
---|
4283 | Current task progress value in percent.
|
---|
4284 | This value depends on how many operations are already complete.
|
---|
4285 | </desc>
|
---|
4286 | </attribute>
|
---|
4287 |
|
---|
4288 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
4289 | <desc>Whether the task has been completed.</desc>
|
---|
4290 | </attribute>
|
---|
4291 |
|
---|
4292 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
4293 | <desc>Whether the task has been canceled.</desc>
|
---|
4294 | </attribute>
|
---|
4295 |
|
---|
4296 | <attribute name="resultCode" type="result" readonly="yes">
|
---|
4297 | <desc>
|
---|
4298 | Result code of the progress task.
|
---|
4299 | Valid only if <link to="#completed"/> is true.
|
---|
4300 | </desc>
|
---|
4301 | </attribute>
|
---|
4302 |
|
---|
4303 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
4304 | <desc>
|
---|
4305 | Extended information about the unsuccessful result of the
|
---|
4306 | progress operation. May be NULL when no extended information
|
---|
4307 | is available.
|
---|
4308 | Valid only if <link to="#completed"/> is true and
|
---|
4309 | <link to="#resultCode"/> indicates a failure.
|
---|
4310 | </desc>
|
---|
4311 | </attribute>
|
---|
4312 |
|
---|
4313 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
4314 | <desc>
|
---|
4315 | Number of operations this task is divided into.
|
---|
4316 | Every task consists of at least one operation.
|
---|
4317 | </desc>
|
---|
4318 | </attribute>
|
---|
4319 |
|
---|
4320 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
4321 | <desc>Number of the operation being currently executed.</desc>
|
---|
4322 | </attribute>
|
---|
4323 |
|
---|
4324 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
4325 | <desc>
|
---|
4326 | Description of the operation being currently executed.
|
---|
4327 | </desc>
|
---|
4328 | </attribute>
|
---|
4329 |
|
---|
4330 | <attribute name="operationPercent" type="long" readonly="yes">
|
---|
4331 | <desc>Current operation progress value in percent.</desc>
|
---|
4332 | </attribute>
|
---|
4333 |
|
---|
4334 | <method name="waitForCompletion">
|
---|
4335 | <desc>
|
---|
4336 | Waits until the task is done (including all operations) with a
|
---|
4337 | given timeout.
|
---|
4338 | </desc>
|
---|
4339 | <param name="timeout" type="long" dir="in">
|
---|
4340 | <desc>
|
---|
4341 | Timeout value in milliseconds.
|
---|
4342 | Specify -1 for an indefinite wait.
|
---|
4343 | </desc>
|
---|
4344 | </param>
|
---|
4345 | </method>
|
---|
4346 |
|
---|
4347 | <method name="waitForOperationCompletion">
|
---|
4348 | <desc>
|
---|
4349 | Waits until the given operation is done with a given timeout.
|
---|
4350 | </desc>
|
---|
4351 | <param name="operation" type="unsigned long" dir="in">
|
---|
4352 | <desc>
|
---|
4353 | Number of the operation to wait for.
|
---|
4354 | Must be less than <link to="#operationCount"/>.
|
---|
4355 | </desc>
|
---|
4356 | </param>
|
---|
4357 | <param name="timeout" type="long" dir="in">
|
---|
4358 | <desc>
|
---|
4359 | Timeout value in milliseconds.
|
---|
4360 | Specify -1 for an indefinite wait.
|
---|
4361 | </desc>
|
---|
4362 | </param>
|
---|
4363 | </method>
|
---|
4364 |
|
---|
4365 | <method name="cancel">
|
---|
4366 | <desc>
|
---|
4367 | Cancels the task.
|
---|
4368 | <note>
|
---|
4369 | If <link to="#cancelable"/> is <tt>false</tt>, then
|
---|
4370 | this method will fail.
|
---|
4371 | </note>
|
---|
4372 | </desc>
|
---|
4373 | </method>
|
---|
4374 |
|
---|
4375 | </interface>
|
---|
4376 |
|
---|
4377 |
|
---|
4378 | <!--
|
---|
4379 | // ISnapshot
|
---|
4380 | /////////////////////////////////////////////////////////////////////////
|
---|
4381 | -->
|
---|
4382 |
|
---|
4383 | <enumerator
|
---|
4384 | name="ISnapshotEnumerator" type="ISnapshot"
|
---|
4385 | uuid="25cfa2a4-1f1d-4f05-9658-b7a5894ef1a3"
|
---|
4386 | />
|
---|
4387 |
|
---|
4388 | <collection
|
---|
4389 | name="ISnapshotCollection" type="ISnapshot"
|
---|
4390 | enumerator="ISnapshotEnumerator"
|
---|
4391 | uuid="23852e3c-94cd-4801-ab05-ed35675b3894"
|
---|
4392 | readonly="yes"
|
---|
4393 | />
|
---|
4394 |
|
---|
4395 | <interface
|
---|
4396 | name="ISnapshot" extends="$unknown"
|
---|
4397 | uuid="9f1bbf79-13b0-4da2-abba-4a992c65c083"
|
---|
4398 | wsmap="managed"
|
---|
4399 | >
|
---|
4400 | <desc>
|
---|
4401 | The ISnapshot interface represents a snapshot of the virtual
|
---|
4402 | machine.
|
---|
4403 |
|
---|
4404 | The <i>snapshot</i> stores all the information about a virtual
|
---|
4405 | machine necessary to bring it to exactly the same state as it was at
|
---|
4406 | the time of taking the snapshot. The snapshot includes:
|
---|
4407 |
|
---|
4408 | <ul>
|
---|
4409 | <li>all settings of the virtual machine (i.e. its hardware
|
---|
4410 | configuration: RAM size, attached hard disks, etc.)
|
---|
4411 | </li>
|
---|
4412 | <li>the execution state of the virtual machine (memory contents,
|
---|
4413 | CPU state, etc.).
|
---|
4414 | </li>
|
---|
4415 | </ul>
|
---|
4416 |
|
---|
4417 | Snapshots can be <i>offline</i> (taken when the VM is powered off)
|
---|
4418 | or <i>online</i> (taken when the VM is running). The execution
|
---|
4419 | state of the offline snapshot is called a <i>zero execution state</i>
|
---|
4420 | (it doesn't actually contain any information about memory contents
|
---|
4421 | or the CPU state, assuming that all hardware is just powered off).
|
---|
4422 |
|
---|
4423 | <h3>Snapshot branches</h3>
|
---|
4424 |
|
---|
4425 | Snapshots can be chained. Chained snapshots form a branch where
|
---|
4426 | every next snapshot is based on the previous one. This chaining is
|
---|
4427 | mostly related to hard disk branching (see <link to="IHardDisk"/>
|
---|
4428 | description). This means that every time a new snapshot is created,
|
---|
4429 | a new differencing hard disk is implicitly created for all normal
|
---|
4430 | hard disks attached to the given virtual machine. This allows to
|
---|
4431 | fully restore hard disk contents when the machine is later reverted
|
---|
4432 | to a particular snapshot.
|
---|
4433 |
|
---|
4434 | In the current implelemtation, multiple snapshot branches within one
|
---|
4435 | virtual machine are not allowed. Every machine has a signle branch,
|
---|
4436 | and <link to="IConsole::takeSnapshot()"/> operation adds a new
|
---|
4437 | snapshot to the top of that branch.
|
---|
4438 |
|
---|
4439 | Existings snapshots can be discarded using
|
---|
4440 | <link to="IConsole::discardSnapshot()"/>.
|
---|
4441 |
|
---|
4442 | <h3>Current snapshot</h3>
|
---|
4443 |
|
---|
4444 | Every virtual machine has a current snapshot, identified by
|
---|
4445 | <link to="IMachine::currentSnapshot"/>. This snapshot is used as
|
---|
4446 | a base for the <i>current machine state</i> (see below), to the effect
|
---|
4447 | that all normal hard disks of the machine and its execution
|
---|
4448 | state are based on this snapshot.
|
---|
4449 |
|
---|
4450 | In the current implementation, the current snapshot is always the
|
---|
4451 | last taken snapshot (i.e. the head snapshot on the branch) and it
|
---|
4452 | cannot be changed.
|
---|
4453 |
|
---|
4454 | The current snapshot is <tt>null</tt> if the machine doesn't have
|
---|
4455 | snapshots at all; in this case the current machine state is just
|
---|
4456 | current settings of this machine plus its current execution state.
|
---|
4457 |
|
---|
4458 | <h3>Current machine state</h3>
|
---|
4459 |
|
---|
4460 | The current machine state is what represened by IMachine instances got
|
---|
4461 | directly from IVirtualBox
|
---|
4462 | using <link
|
---|
4463 | to="IVirtualBox::getMachine()">getMachine()</link>, <link
|
---|
4464 | to="IVirtualBox::findMachine()">findMachine()</link>, etc. (as opposed
|
---|
4465 | to instances returned by <link to="ISnapshot::machine"/>). This state
|
---|
4466 | is always used when the machine is <link to="IConsole::powerUp"> powered
|
---|
4467 | on</link>.
|
---|
4468 |
|
---|
4469 | The current machine state also includes the current execution state.
|
---|
4470 | If the machine is being currently executed
|
---|
4471 | (<link to="IMachine::state"/> is <link to="MachineState::Running"/>
|
---|
4472 | and above), its execution state is just what's happening now.
|
---|
4473 | If it is powered off (<link to="MachineState::PoweredOff"/> or
|
---|
4474 | <link to="MachineState::Aborted"/>), it has a zero execution state.
|
---|
4475 | If the machine is saved (<link to="MachineState::Saved"/>), its
|
---|
4476 | execution state is what saved in the execution state file
|
---|
4477 | (<link to="IMachine::stateFilePath"/>).
|
---|
4478 |
|
---|
4479 | If the machine is in the saved state, then, next time it is powered
|
---|
4480 | on, its execution state will be fully restored from the saved state
|
---|
4481 | file and the execution will continue from the point where the state
|
---|
4482 | was saved.
|
---|
4483 |
|
---|
4484 | Similarly to snapshots, the current machine state can be discarded
|
---|
4485 | using <link to="IConsole::discardCurrentState()"/>.
|
---|
4486 |
|
---|
4487 | <h3>Taking and discarding snapshots</h3>
|
---|
4488 |
|
---|
4489 | The table below briefly explains the meaning of every snapshot
|
---|
4490 | operation:
|
---|
4491 |
|
---|
4492 | <table>
|
---|
4493 | <tr><th>Operation</th><th>Meaning</th><th>Remarks</th></tr>
|
---|
4494 |
|
---|
4495 | <tr><td><link to="IConsole::takeSnapshot()"/></td>
|
---|
4496 |
|
---|
4497 | <td>Save the current state of the virtual machine, including all
|
---|
4498 | settings, contents of normal hard disks and the current modifications
|
---|
4499 | to immutable hard disks (for online snapshots)</td>
|
---|
4500 |
|
---|
4501 | <td>The current state is not changed (the machine will continue
|
---|
4502 | execution if it is being executed when the snapshot is
|
---|
4503 | taken)</td></tr>
|
---|
4504 |
|
---|
4505 | <tr><td><link to="IConsole::discardSnapshot()"/></td>
|
---|
4506 |
|
---|
4507 | <td>Forget the state of the virtual machine stored in the snapshot:
|
---|
4508 | dismiss all saved settings and delete the saved execution state (for
|
---|
4509 | online snapshots)</td>
|
---|
4510 |
|
---|
4511 | <td>Other snapshots (including child snapshots, if any) and the
|
---|
4512 | current state are not directly affected</td></tr>
|
---|
4513 |
|
---|
4514 | <tr><td><link to="IConsole::discardCurrentState()"/></td>
|
---|
4515 |
|
---|
4516 | <td>Restore the current state of the virtual machine from the state
|
---|
4517 | stored in the current snapshot, including all settings and hard disk
|
---|
4518 | contents</td>
|
---|
4519 |
|
---|
4520 | <td>The current state of the machine existed prior to this operation
|
---|
4521 | is lost</td></tr>
|
---|
4522 |
|
---|
4523 | <tr><td><link to="IConsole::discardCurrentSnapshotAndState()"/></td>
|
---|
4524 |
|
---|
4525 | <td>Completely revert the virtual machine to the state it was in
|
---|
4526 | before the current snapshot has been taken</td>
|
---|
4527 |
|
---|
4528 | <td>The current state, as well as the current snapshot, are
|
---|
4529 | lost</td></tr>
|
---|
4530 |
|
---|
4531 | </table>
|
---|
4532 |
|
---|
4533 | </desc>
|
---|
4534 |
|
---|
4535 | <attribute name="id" type="uuid" readonly="yes">
|
---|
4536 | <desc>UUID of the snapshot.</desc>
|
---|
4537 | </attribute>
|
---|
4538 |
|
---|
4539 | <attribute name="name" type="wstring">
|
---|
4540 | <desc>Short name of the snapshot.</desc>
|
---|
4541 | </attribute>
|
---|
4542 |
|
---|
4543 | <attribute name="description" type="wstring">
|
---|
4544 | <desc>Optional description of the snapshot.</desc>
|
---|
4545 | </attribute>
|
---|
4546 |
|
---|
4547 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
4548 | <desc>
|
---|
4549 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
4550 | </desc>
|
---|
4551 | </attribute>
|
---|
4552 |
|
---|
4553 | <attribute name="online" type="boolean" readonly="yes">
|
---|
4554 | <desc>
|
---|
4555 | <tt>true</tt> if this snapshot is an online snapshot and
|
---|
4556 | <tt>false</tt> otherwise.
|
---|
4557 |
|
---|
4558 | <note>
|
---|
4559 | When this attribute is <tt>true</tt>, the
|
---|
4560 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
4561 | <link to="#machine"/> object associated with this snapshot
|
---|
4562 | will point to the saved state file. Otherwise, it will be
|
---|
4563 | <tt>null</tt>.
|
---|
4564 | </note>
|
---|
4565 | </desc>
|
---|
4566 | </attribute>
|
---|
4567 |
|
---|
4568 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
4569 | <desc>
|
---|
4570 | Virtual machine this snapshot is taken on. This object
|
---|
4571 | stores all settings the machine had when taking this snapshot.
|
---|
4572 | <note>
|
---|
4573 | The returned machine object is immutable, i.e. no
|
---|
4574 | any settings can be changed.
|
---|
4575 | </note>
|
---|
4576 | </desc>
|
---|
4577 | </attribute>
|
---|
4578 |
|
---|
4579 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
4580 | <desc>
|
---|
4581 | Parent snapshot (a snapshot this one is based on).
|
---|
4582 | <note>
|
---|
4583 | It's not an error to read this attribute on a snapshot
|
---|
4584 | that doesn't have a parent -- a null object will be
|
---|
4585 | returned to indicate this.
|
---|
4586 | </note>
|
---|
4587 | </desc>
|
---|
4588 | </attribute>
|
---|
4589 |
|
---|
4590 | <attribute name="children" type="ISnapshotCollection" readonly="yes">
|
---|
4591 | <desc>
|
---|
4592 | Child snapshots (all snapshots having this one as a parent).
|
---|
4593 | <note>
|
---|
4594 | In the current implementation, there can be only one
|
---|
4595 | child snapshot, or no children at all, meaning this is the
|
---|
4596 | last (head) snapshot.
|
---|
4597 | </note>
|
---|
4598 | </desc>
|
---|
4599 | </attribute>
|
---|
4600 |
|
---|
4601 | </interface>
|
---|
4602 |
|
---|
4603 | <!--
|
---|
4604 | // IHardDisk
|
---|
4605 | /////////////////////////////////////////////////////////////////////////
|
---|
4606 | -->
|
---|
4607 |
|
---|
4608 | <enum
|
---|
4609 | name="HardDiskStorageType"
|
---|
4610 | uuid="48138584-ad99-479d-a36f-eb82a7663685"
|
---|
4611 | >
|
---|
4612 | <desc>
|
---|
4613 | Virtual hard disk storage type.
|
---|
4614 | <see>IHardDisk</see>
|
---|
4615 | </desc>
|
---|
4616 | <const name="VirtualDiskImage" value="0">
|
---|
4617 | <desc>
|
---|
4618 | Virtual Disk Image, VDI (a regular file in the file
|
---|
4619 | system of the host OS, see <link to="IVirtualDiskImage"/>)
|
---|
4620 | </desc>
|
---|
4621 | </const>
|
---|
4622 | <const name="ISCSIHardDisk" value="1">
|
---|
4623 | <desc>
|
---|
4624 | iSCSI Remote Disk (a disk accessed via the Internet
|
---|
4625 | SCSI protocol over a TCP/IP network, see
|
---|
4626 | <link to="IISCSIHardDisk"/>)
|
---|
4627 | </desc>
|
---|
4628 | </const>
|
---|
4629 | <const name="VMDKImage" value="2">
|
---|
4630 | <desc>
|
---|
4631 | VMware Virtual Machine Disk image (a regular file in the file
|
---|
4632 | system of the host OS, see <link to="IVMDKImage"/>)
|
---|
4633 | </desc>
|
---|
4634 | </const>
|
---|
4635 | </enum>
|
---|
4636 |
|
---|
4637 | <enum
|
---|
4638 | name="HardDiskType"
|
---|
4639 | uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
|
---|
4640 | >
|
---|
4641 | <desc>
|
---|
4642 | Virtual hard disk type.
|
---|
4643 | <see>IHardDisk</see>
|
---|
4644 | </desc>
|
---|
4645 | <const name="NormalHardDisk" value="0">
|
---|
4646 | <desc>
|
---|
4647 | Normal hard disk (attached directly or indirectly, preserved
|
---|
4648 | when taking snapshots).
|
---|
4649 | </desc>
|
---|
4650 | </const>
|
---|
4651 | <const name="ImmutableHardDisk" value="1">
|
---|
4652 | <desc>
|
---|
4653 | Immutable hard disk (attached indirectly, changes are wiped out
|
---|
4654 | after powering off the virtual machine).
|
---|
4655 | </desc>
|
---|
4656 | </const>
|
---|
4657 | <const name="WritethroughHardDisk" value="2">
|
---|
4658 | <desc>
|
---|
4659 | Write through hard disk (attached directly, ignored when
|
---|
4660 | taking snapshots).
|
---|
4661 | </desc>
|
---|
4662 | </const>
|
---|
4663 | </enum>
|
---|
4664 |
|
---|
4665 | <interface
|
---|
4666 | name="IHardDiskAttachment" extends="$unknown"
|
---|
4667 | uuid="c0ffe596-21c6-4797-8d8a-b47b66881e7a"
|
---|
4668 | wsmap="struct"
|
---|
4669 | >
|
---|
4670 | <attribute name="hardDisk" type="IHardDisk" readonly="yes">
|
---|
4671 | <desc>Harddisk object this attachment is about.</desc>
|
---|
4672 | </attribute>
|
---|
4673 |
|
---|
4674 | <attribute name="controller" type="DiskControllerType" readonly="yes">
|
---|
4675 | <desc>Disk controller ID of this attachment.</desc>
|
---|
4676 | </attribute>
|
---|
4677 |
|
---|
4678 | <attribute name="deviceNumber" type="long" readonly="yes">
|
---|
4679 | <desc>Device number of the attachment.</desc>
|
---|
4680 | </attribute>
|
---|
4681 |
|
---|
4682 | </interface>
|
---|
4683 |
|
---|
4684 | <enumerator
|
---|
4685 | name="IHardDiskAttachmentEnumerator" type="IHardDiskAttachment"
|
---|
4686 | uuid="9955e486-2f0b-432a-99e4-0ebbd338875e"
|
---|
4687 | />
|
---|
4688 |
|
---|
4689 | <collection
|
---|
4690 | name="IHardDiskAttachmentCollection" type="IHardDiskAttachment"
|
---|
4691 | enumerator="IHardDiskAttachmentEnumerator"
|
---|
4692 | uuid="8f727842-bb77-45d4-92de-4ec14bf613c9"
|
---|
4693 | readonly="yes"
|
---|
4694 | />
|
---|
4695 |
|
---|
4696 | <enumerator
|
---|
4697 | name="IHardDiskEnumerator" type="IHardDisk"
|
---|
4698 | uuid="b976f97b-cdb8-47e3-9860-084031cbd533"
|
---|
4699 | />
|
---|
4700 |
|
---|
4701 | <collection
|
---|
4702 | name="IHardDiskCollection" type="IHardDisk"
|
---|
4703 | enumerator="IHardDiskEnumerator"
|
---|
4704 | uuid="43EAC2BC-5C61-40fa-BC38-46DE2C7DB6BB"
|
---|
4705 | readonly="yes"
|
---|
4706 | />
|
---|
4707 |
|
---|
4708 | <interface
|
---|
4709 | name="IHardDisk" extends="$unknown"
|
---|
4710 | uuid="FD443EC1-000F-4F5B-9282-D72760A66916"
|
---|
4711 | wsmap="managed"
|
---|
4712 | >
|
---|
4713 | <desc>
|
---|
4714 | The IHardDisk interface represents a virtual hard disk drive
|
---|
4715 | used by virtual machines.
|
---|
4716 |
|
---|
4717 | The virtual hard disk drive virtualizes the hard disk hardware and
|
---|
4718 | looks like a regular hard disk inside the virtual machine and
|
---|
4719 | the guest OS.
|
---|
4720 |
|
---|
4721 | <h3>Storage Types</h3>
|
---|
4722 |
|
---|
4723 | The <link to="HardDiskStorageType">storage type</link> of the
|
---|
4724 | virtual hard disk determines where and how it stores its data
|
---|
4725 | (sectors). Currently, the following storage types are supported:
|
---|
4726 |
|
---|
4727 | <ul>
|
---|
4728 |
|
---|
4729 | <li>
|
---|
4730 | <i>Virtual Disk Image (VDI)</i>, a regular file in the file system
|
---|
4731 | of the host OS (represented by the <link to="IVirtualDiskImage"/>
|
---|
4732 | interface). This file has a special format optimized so that unused
|
---|
4733 | sectors of data occupy much less space than on a physical hard disk.
|
---|
4734 | </li>
|
---|
4735 |
|
---|
4736 | <li>
|
---|
4737 | <i>iSCSI Remote Disk</i>, a disk accessed via the Internet SCSI
|
---|
4738 | protocol over a TCP/IP network link (represented by the
|
---|
4739 | <link to="IISCSIHardDisk"/> interface).
|
---|
4740 | </li>
|
---|
4741 |
|
---|
4742 | <li>
|
---|
4743 | <i>VMware VMDK Image</i>, a regular file in the file system of the
|
---|
4744 | host OS (represented by the <link to="IVMDKImage"/> interface).
|
---|
4745 | </li>
|
---|
4746 |
|
---|
4747 | </ul>
|
---|
4748 |
|
---|
4749 | The storage type of the particular hard disk object is indicated by
|
---|
4750 | the <link to="#storageType"/> property.
|
---|
4751 |
|
---|
4752 | Each storage type is represented by its own interface (as shown
|
---|
4753 | above), that allows to query and set properties and perform
|
---|
4754 | operations specific to that storage type. When an IHardDisk object
|
---|
4755 | reports it uses some particular storage type, it also guaranteed to
|
---|
4756 | support the corresponding interface which you can query. And vice
|
---|
4757 | versa, every object that supports a storage-specific interface, also
|
---|
4758 | supports IHardDisk.
|
---|
4759 |
|
---|
4760 | <h3>Virtual Hard Disk Types</h3>
|
---|
4761 |
|
---|
4762 | The <link to="HardDiskType">type</link> of the virtual hard disk
|
---|
4763 | determines how it is attached to the virtual machine when you call
|
---|
4764 | <link to="IMachine::attachHardDisk()"/> and what happens to it when
|
---|
4765 | a <link to="ISnapshot">snapshot</link> of the virtual machine is
|
---|
4766 | taken.
|
---|
4767 |
|
---|
4768 | There are three types of virtual hard disks:
|
---|
4769 |
|
---|
4770 | <ul>
|
---|
4771 | <li><i>Normal</i></li>
|
---|
4772 | <li><i>Immutable</i></li>
|
---|
4773 | <li><i>Writethrough</i></li>
|
---|
4774 | </ul>
|
---|
4775 |
|
---|
4776 | The virtual disk type is indicated by the <link to="#type"/>
|
---|
4777 | property. Each of the above types is described in detail further
|
---|
4778 | down.
|
---|
4779 |
|
---|
4780 | There is also a forth, "hidden" virtual disk type:
|
---|
4781 | <i>Differencing</i>. It is "hidden" because you cannot directly
|
---|
4782 | create hard disks of this type -- they are automatically created by
|
---|
4783 | VirtualBox when necessary.
|
---|
4784 |
|
---|
4785 | <b>Differencing Hard Disks</b>
|
---|
4786 |
|
---|
4787 | Unlike disks of other types (that are similar to real hard disks),
|
---|
4788 | the differencing hard disk does not store the full range of data
|
---|
4789 | sectors. Instead, it stores only a subset of sectors of some other
|
---|
4790 | disk that were changed since the differencing hard disk has been
|
---|
4791 | created. Thus, every differencing hard disk has a parent hard disk
|
---|
4792 | it is linked to, and represents the difference between the initial
|
---|
4793 | and the current hard disk state. A differencing hard disk can be
|
---|
4794 | linked to another differencing hard disk -- this way, differencing
|
---|
4795 | hard disks can form a branch of changes. More over, a given virtual
|
---|
4796 | hard disk can have more than one differencing hard disk linked to
|
---|
4797 | it.
|
---|
4798 |
|
---|
4799 | A disk the differencing hard disk is linked to (or, in other words,
|
---|
4800 | based on) is called a <i>parent</i> hard disk and is accessible through
|
---|
4801 | the <link to="#parent"/> property. Similarly, all existing differencing
|
---|
4802 | hard disks for a given parent hard disk are called its <i>child</i> hard
|
---|
4803 | disks (and accessible through the <link to="#children"/> property).
|
---|
4804 |
|
---|
4805 | All differencing hard disks use Virtual Disk Image files to store
|
---|
4806 | changed sectors. They have the <link to="#type"/> property set to
|
---|
4807 | Normal, but can be easily distinguished from normal hard disks using
|
---|
4808 | the <link to="#parent"/> property: all differencing hard disks have
|
---|
4809 | a parent, while all normal hard disks don't.
|
---|
4810 |
|
---|
4811 | When the virtual machine makes an attempt to read a sector that is
|
---|
4812 | missing in a differencing hard disk, its parent is accessed to
|
---|
4813 | resolve the sector in question. This process continues until the
|
---|
4814 | sector is found, or until the root hard disk is encountered, which
|
---|
4815 | always contains all sectors. As a consequence,
|
---|
4816 |
|
---|
4817 | <ul>
|
---|
4818 |
|
---|
4819 | <li>
|
---|
4820 | The virtual hard disk geometry seen by the guest OS is
|
---|
4821 | always defined by the root hard disk.
|
---|
4822 | </li>
|
---|
4823 |
|
---|
4824 | <li>
|
---|
4825 | All hard disks on a branch, up to the root, must be
|
---|
4826 | <link to="#accessible"/> for a given differencing hard disk in order
|
---|
4827 | to let it function properly when the virtual machine is
|
---|
4828 | running.
|
---|
4829 | </li>
|
---|
4830 |
|
---|
4831 | </ul>
|
---|
4832 |
|
---|
4833 | Differencing hard disks can be implicitly created by VirtualBox in
|
---|
4834 | the following cases:
|
---|
4835 |
|
---|
4836 | <ul>
|
---|
4837 |
|
---|
4838 | <li>
|
---|
4839 | When a hard disk is <i>indirectly</i> attached to the virtual
|
---|
4840 | machine using <link to="IMachine::attachHardDisk()"/>. In this
|
---|
4841 | case, all disk writes performed by the guest OS will go to the
|
---|
4842 | created diffferencing hard disk, as opposed to the
|
---|
4843 | <i>direct</i> attachment, where all changes are written to the
|
---|
4844 | attached hard disk itself.
|
---|
4845 | </li>
|
---|
4846 |
|
---|
4847 | <li>
|
---|
4848 | When a <link to="ISnapshot">snapshot</link> of the virtual machine
|
---|
4849 | is taken. After that, disk writes to hard disks the differencing
|
---|
4850 | ones have been created for, will be directed to those differencing
|
---|
4851 | hard disks, to preserve the contents of the original disks.
|
---|
4852 | </li>
|
---|
4853 |
|
---|
4854 | </ul>
|
---|
4855 |
|
---|
4856 | Whether to create a differencing hard disk or not depends on the
|
---|
4857 | type of the hard disk attached to the virtual machine. This is
|
---|
4858 | explained below.
|
---|
4859 |
|
---|
4860 | Note that in the current implementation, only the
|
---|
4861 | <link to="VirtualDiskImage"/> storage type is used to
|
---|
4862 | represent differencing hard disks. In other words, all
|
---|
4863 | differencing hard disks are <link to="IVirtualDiskImage"/>
|
---|
4864 | objects.
|
---|
4865 |
|
---|
4866 | <b>Normal Hard Disks</b>
|
---|
4867 |
|
---|
4868 | Normal hard disks are the most commonly used virtual hard disk. A
|
---|
4869 | normal hard disk is attached to the machine directly if it is not
|
---|
4870 | already attached to some other machine. Otherwise, an attempt to
|
---|
4871 | make an indirect attachment through a differencing hard disk will be
|
---|
4872 | made. This attempt will fail if the hard disk is attached to a
|
---|
4873 | virtual machine without snapshots (because it's impossible to create
|
---|
4874 | a differencing hard disk based on a hard disk that is subject to
|
---|
4875 | change).
|
---|
4876 |
|
---|
4877 | When an indirect attachment takes place, in the simplest case, where
|
---|
4878 | the machine the hard disk is being attached to doesn't have
|
---|
4879 | snapshots, the differencing hard disk will be based on the normal
|
---|
4880 | hard disk being attached. Otherwise, the first (i.e. the most
|
---|
4881 | recent) descendant of the given normal hard disk found in the
|
---|
4882 | current snapshot branch (starting from the current snapshot and
|
---|
4883 | going up to the root) will be actually used as a base.
|
---|
4884 |
|
---|
4885 | Note that when you detach an indirectly attached hard disk from the
|
---|
4886 | machine, the created differencing hard disk image is simply
|
---|
4887 | <b>deleted</b>, so <b>all changes are lost</b>. If you attach the
|
---|
4888 | same disk again, a clean differencing disk will be created based on
|
---|
4889 | the most recent child, as described above.
|
---|
4890 |
|
---|
4891 | When taking a snapshot, the contents of all normal hard disks (and
|
---|
4892 | all differencing disks whose roots are normal hard disks) currently
|
---|
4893 | attached to the virtual machine is preserved by creating
|
---|
4894 | differencing hard disks based on them.
|
---|
4895 |
|
---|
4896 | <b>Immutable Hard Disks</b>
|
---|
4897 |
|
---|
4898 | Immutable hard disks can be used to provide a sort of read-only
|
---|
4899 | access. An immutable hard disk is always attached indirectly. The
|
---|
4900 | created differencing hard disk is automatically wiped out (recreated
|
---|
4901 | from scratch) every time you power off the virtual machine. Thus,
|
---|
4902 | the contents of the immutable disk remains unchanged between runs.
|
---|
4903 |
|
---|
4904 | Detaching an immutable hard disk deletes the differencing disk
|
---|
4905 | created for it, with the same effect as in case with normal hard
|
---|
4906 | disks.
|
---|
4907 |
|
---|
4908 | When taking a snapshot, the differencing part of the immutable
|
---|
4909 | hard disk is cloned (i.e. copied to a separate Virtual Disk Image
|
---|
4910 | file) without any changes. This is necessary to preserve the exact
|
---|
4911 | virtual machine state when you create an online snapshot.
|
---|
4912 |
|
---|
4913 | <b>Writethrough Hard Disks</b>
|
---|
4914 |
|
---|
4915 | Hard disks of this type are always attached directly. This means
|
---|
4916 | that every given writethrough hard disk can be attached only to one
|
---|
4917 | virtual machine at a time.
|
---|
4918 |
|
---|
4919 | It is impossible to take a snapshot of a virtual machine with the
|
---|
4920 | writethrough hard disk attached, because taking a snapshot implies
|
---|
4921 | saving the execution state and preserving the contents of all hard
|
---|
4922 | disks, but writethrough hard disks cannot be preserved. Preserving
|
---|
4923 | hard disk contents is necessary to ensure the guest OS stored in the
|
---|
4924 | snapshot will get the same hard disk state when restored, which is
|
---|
4925 | especially important when it has open file handles or when there are
|
---|
4926 | cached files and directories stored in memory.
|
---|
4927 |
|
---|
4928 | <h3>Creating, Opening and Registering Hard Disks</h3>
|
---|
4929 |
|
---|
4930 | Non-differencing hard disks are either created from scratch using
|
---|
4931 | <link to="IVirtualBox::createHardDisk()"/> or opened from a VDI file
|
---|
4932 | using <link to="IVirtualBox::openVirtualDiskImage()"/> (only for hard
|
---|
4933 | disks using the VirtualDiskImage storage type). Once a hard disk is
|
---|
4934 | created or opened, it needs to be registered using
|
---|
4935 | <link to="IVirtualBox::registerHardDisk()"/> to make it available for
|
---|
4936 | attaching to virtual machines. See the documentation of individual
|
---|
4937 | interfaces for various storage types to get more information.
|
---|
4938 |
|
---|
4939 | Differencing hard disks are never created explicitly and cannot
|
---|
4940 | be registered or unregistered; they are automatically registered
|
---|
4941 | upon creation and deregistered when deleted.
|
---|
4942 |
|
---|
4943 | <h3>More about Indirect Hard Disk Attachments</h3>
|
---|
4944 |
|
---|
4945 | Normally, when you attach a hard disk to the virtual machine, and then
|
---|
4946 | query the corresponding attachment using
|
---|
4947 | <link to="IMachine::getHardDisk()"/> or
|
---|
4948 | <link to="IMachine::hardDiskAttachments"/> you will get the same hard
|
---|
4949 | disk object, whose UUID you passed earlier to
|
---|
4950 | <link to="IMachine::attachHardDisk()"/>. However, when an indirect
|
---|
4951 | attachment takes place, calling <link to="IMachine::getHardDisk()"/>
|
---|
4952 | will return a differencing hard disk object, that is either based on the
|
---|
4953 | attached hard disk or on another differencing hard disk, the attached
|
---|
4954 | hard disk is eventually a root for (as described above). In both cases
|
---|
4955 | the returned hard disk object is the object the virtual machine actually
|
---|
4956 | uses to perform disk writes to.
|
---|
4957 |
|
---|
4958 | Regardless of whether the attachment is direct or indirect, the
|
---|
4959 | <link to="#machineId"/> property of the attached disk will contain an
|
---|
4960 | UUID of the machine object <link to="IMachine::attachHardDisk()"/>
|
---|
4961 | has been called on.
|
---|
4962 |
|
---|
4963 | Note that both <link to="IMachine::attachHardDisk()"/> and
|
---|
4964 | <link to="IMachine::detachHardDisk()"/> are <i>lazy</i> operations. In
|
---|
4965 | particular, this means that when an indirect attachment is made,
|
---|
4966 | differencing hard disks are not created until machine settings are
|
---|
4967 | committed using <link to="IMachine::saveSettings()"/>. Similarly, when a
|
---|
4968 | differencing hard disk is detached, it is not deleted until
|
---|
4969 | <link to="IMachine::saveSettings()"/> is called. Calling
|
---|
4970 | <link to="IMachine::discardSettings()"/> cancels all lazy attachments or
|
---|
4971 | detachments made since the last commit and effectively restores the
|
---|
4972 | previous set of hard disks.
|
---|
4973 |
|
---|
4974 | <h3>Hard Disk Accessibility</h3>
|
---|
4975 |
|
---|
4976 | The <link to="#accessible"/> attribute of the hard disk object
|
---|
4977 | defines the accessibility state of the respective hard disk storage
|
---|
4978 | (for example, the VDI file for IVirtualDiskImage objects). If the
|
---|
4979 | value of this attribute is <tt>false</tt> then some hard disk
|
---|
4980 | attributes may contain invalid or outdated values (for example, the
|
---|
4981 | virtual or the actual hard disk size) until a new accessibility
|
---|
4982 | check is done that returns <tt>true</tt> (see the attribute
|
---|
4983 | description for more details).
|
---|
4984 |
|
---|
4985 | <note>
|
---|
4986 | Because of the possible slowness of the accessibility check,
|
---|
4987 | it is not implicitly performed upon the VirtualBox server startup
|
---|
4988 | (to prevent the application freeze). In partcular, this means that
|
---|
4989 | if you try to read hard disk properties that depend on the
|
---|
4990 | accessibility state without first reading the value of the
|
---|
4991 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
4992 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
4993 | </note>
|
---|
4994 |
|
---|
4995 | </desc>
|
---|
4996 |
|
---|
4997 | <attribute name="id" type="uuid" readonly="yes">
|
---|
4998 | <desc>
|
---|
4999 |
|
---|
5000 | UUID of the hard disk. For newly created hard disk objects,
|
---|
5001 | this value is a randomly generated UUID.
|
---|
5002 |
|
---|
5003 | </desc>
|
---|
5004 | </attribute>
|
---|
5005 |
|
---|
5006 | <attribute name="description" type="wstring">
|
---|
5007 | <desc>
|
---|
5008 |
|
---|
5009 | Optional description of the hard disk. For a newly created hard
|
---|
5010 | disk, this value is <tt>null</tt>.
|
---|
5011 |
|
---|
5012 | <note>For some storage types, reading this property is
|
---|
5013 | meaningless when <link to="#accessible"/> is <tt>false</tt>.
|
---|
5014 | Also, you cannot assign it a new value in this case.</note>
|
---|
5015 |
|
---|
5016 | </desc>
|
---|
5017 | </attribute>
|
---|
5018 |
|
---|
5019 | <attribute name="storageType" type="HardDiskStorageType" readonly="yes">
|
---|
5020 | <desc>
|
---|
5021 |
|
---|
5022 | Storage type of this hard disk.
|
---|
5023 |
|
---|
5024 | Storage type is defined when you open or create a new hard disk
|
---|
5025 | object.
|
---|
5026 |
|
---|
5027 | </desc>
|
---|
5028 | </attribute>
|
---|
5029 |
|
---|
5030 | <attribute name="location" type="wstring" readonly="yes">
|
---|
5031 | <desc>
|
---|
5032 |
|
---|
5033 | Storage location of this hard disk. The returned string serves
|
---|
5034 | for informational purposes only. To access detailed information
|
---|
5035 | about the storage, query the appropriate storage-specific
|
---|
5036 | interface.
|
---|
5037 |
|
---|
5038 | </desc>
|
---|
5039 | </attribute>
|
---|
5040 |
|
---|
5041 | <attribute name="type" type="HardDiskType">
|
---|
5042 | <desc>
|
---|
5043 |
|
---|
5044 | Type (behavior) of this hard disk. For a newly created or opened hard
|
---|
5045 | disk, this value is <link to="HardDiskType::NormalHardDisk"/>.
|
---|
5046 |
|
---|
5047 | <note>
|
---|
5048 | In the current implementation, this property can be
|
---|
5049 | changed only on an unregistered hard disk object. This may be
|
---|
5050 | changed later.
|
---|
5051 | </note>
|
---|
5052 |
|
---|
5053 | </desc>
|
---|
5054 | </attribute>
|
---|
5055 |
|
---|
5056 | <attribute name="parent" type="IHardDisk" readonly="yes">
|
---|
5057 | <desc>
|
---|
5058 |
|
---|
5059 | Parent of this hard disk (a hard disk this one is directly based
|
---|
5060 | on).
|
---|
5061 |
|
---|
5062 | Only differencing hard disks have parents, so a <tt>null</tt>
|
---|
5063 | object is returned for a hard disk of any other type.
|
---|
5064 | </desc>
|
---|
5065 | </attribute>
|
---|
5066 |
|
---|
5067 | <attribute name="children" type="IHardDiskCollection" readonly="yes">
|
---|
5068 | <desc>
|
---|
5069 |
|
---|
5070 | Children of this hard disk (all differencing hard disks for
|
---|
5071 | those this one is a parent). An empty collection is returned, if
|
---|
5072 | this hard disk doesn't have any children.
|
---|
5073 |
|
---|
5074 | </desc>
|
---|
5075 | </attribute>
|
---|
5076 |
|
---|
5077 | <attribute name="root" type="IHardDisk" readonly="yes">
|
---|
5078 | <desc>
|
---|
5079 |
|
---|
5080 | Root hard disk of this hard disk. If this hard disk is a
|
---|
5081 | differencing hard disk, its root hard disk is the first disk on
|
---|
5082 | the branch. For all other types of hard disks, this property
|
---|
5083 | returns the hard disk object itself (i.e. the same object you
|
---|
5084 | read this property on).
|
---|
5085 |
|
---|
5086 | </desc>
|
---|
5087 | </attribute>
|
---|
5088 |
|
---|
5089 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
5090 | <desc>
|
---|
5091 |
|
---|
5092 | Whether the hard disk storage is currently accessible or not.
|
---|
5093 | The storage, for example, can be unaccessible if it doesn't exist
|
---|
5094 | or if it is placed on a network resource that is not available
|
---|
5095 | by the time this attribute is read.
|
---|
5096 |
|
---|
5097 | In the current implementation, the value of this property is
|
---|
5098 | also <tt>false</tt> if this hard disk is attached to a running
|
---|
5099 | virtual machine.
|
---|
5100 |
|
---|
5101 | The accessibility check is performed automatically every time
|
---|
5102 | this attribute is read. You should keep it in mind that this check
|
---|
5103 | may be slow and can block the calling thread for a long time (for
|
---|
5104 | example, if the network resourse where the hard disk storage is
|
---|
5105 | located is down).
|
---|
5106 |
|
---|
5107 | The following attributes of the hard disk object are considered
|
---|
5108 | to be invalid when this attribute is <tt>false</tt>:
|
---|
5109 | <ul>
|
---|
5110 | <li><link to="#size"/></li>
|
---|
5111 | <li><link to="#actualSize"/></li>
|
---|
5112 | </ul>
|
---|
5113 | Individual hard disk storage type interfaces may define
|
---|
5114 | additional attributes that depend on the accessibility state.
|
---|
5115 | </desc>
|
---|
5116 | </attribute>
|
---|
5117 |
|
---|
5118 | <attribute name="allAccessible" type="boolean" readonly="yes">
|
---|
5119 | <desc>
|
---|
5120 |
|
---|
5121 | Whether the whole hard disk branch, starting from this image and
|
---|
5122 | going through its ancestors up to the root, is accessible or
|
---|
5123 | not.
|
---|
5124 |
|
---|
5125 | This property makes sense only for differencing hard disks. For
|
---|
5126 | all other types of hard disks it returns the same value as
|
---|
5127 | <link to="#accessible"/>.
|
---|
5128 |
|
---|
5129 | </desc>
|
---|
5130 | </attribute>
|
---|
5131 |
|
---|
5132 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
5133 | <desc>
|
---|
5134 |
|
---|
5135 | String describing the reason of inaccessibility of this hard
|
---|
5136 | disk after the last call to <link to="#accessible"/> that
|
---|
5137 | returned <tt>false</tt>. A <tt>null</tt> value of this property
|
---|
5138 | means that the last accessibility check returned <tt>true</tt>.
|
---|
5139 |
|
---|
5140 | </desc>
|
---|
5141 | </attribute>
|
---|
5142 |
|
---|
5143 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
5144 | <desc>
|
---|
5145 |
|
---|
5146 | Logical size of this hard disk (in megabytes), as reported to the
|
---|
5147 | guest OS running inside the vurtual machine this disk is
|
---|
5148 | attached to. The logical size is defined when the hard disk is
|
---|
5149 | created.
|
---|
5150 |
|
---|
5151 | <note>Reading this property on a differencing hard disk will
|
---|
5152 | return the size of its root hard disk.</note>
|
---|
5153 |
|
---|
5154 | <note>Reading this property is meaningless when
|
---|
5155 | <link to="#accessible"/> is <tt>false</tt></note>
|
---|
5156 |
|
---|
5157 | </desc>
|
---|
5158 | </attribute>
|
---|
5159 |
|
---|
5160 | <attribute name="actualSize" type="unsigned long long" readonly="yes">
|
---|
5161 | <desc>
|
---|
5162 |
|
---|
5163 | Physical size of the storage used to store hard disk data (in
|
---|
5164 | bytes). This size is usually less than the logical size of the
|
---|
5165 | hard disk, depending on the storage type and on the size
|
---|
5166 | optimization method used for that storage.
|
---|
5167 |
|
---|
5168 | <note>Reading this property is meaningless when
|
---|
5169 | <link to="#accessible"/> is <tt>false</tt></note>
|
---|
5170 |
|
---|
5171 | </desc>
|
---|
5172 | </attribute>
|
---|
5173 |
|
---|
5174 | <attribute name="machineId" type="uuid" readonly="yes">
|
---|
5175 | <desc>
|
---|
5176 |
|
---|
5177 | UUID of the machine this hard disk is attached to (or a
|
---|
5178 | <tt>null</tt> UUID if it is not attached).
|
---|
5179 |
|
---|
5180 | <note>Immutable hard disks are never attached directly, so this
|
---|
5181 | attribute is always <tt>null</tt> in this case.</note>
|
---|
5182 |
|
---|
5183 | </desc>
|
---|
5184 | </attribute>
|
---|
5185 |
|
---|
5186 | <attribute name="snapshotId" type="uuid" readonly="yes">
|
---|
5187 | <desc>
|
---|
5188 |
|
---|
5189 | UUID of the <link to="ISnapshot">snapshot</link> this hard disk
|
---|
5190 | is associated with (or <tt>null</tt> UUID if it is not
|
---|
5191 | associated with any snapshot).
|
---|
5192 |
|
---|
5193 | <note>
|
---|
5194 | This attribute is always <tt>null</tt> if <link to="#machineId"/>
|
---|
5195 | is <tt>null</tt>.
|
---|
5196 | </note>
|
---|
5197 |
|
---|
5198 | <note>
|
---|
5199 | Writethrough hard disks are always attached directly and cannot be
|
---|
5200 | involved when taking snapshots, so this attribute is meaningless and
|
---|
5201 | therefore always <tt>null</tt>.
|
---|
5202 | </note>
|
---|
5203 |
|
---|
5204 | </desc>
|
---|
5205 | </attribute>
|
---|
5206 |
|
---|
5207 | <method name="cloneToImage">
|
---|
5208 |
|
---|
5209 | <desc>
|
---|
5210 |
|
---|
5211 | Starts creating a clone of this hard disk. The cloned hard disk
|
---|
5212 | will use the specified Virtual Disk Image file as a storage and
|
---|
5213 | will contain exactly the same sector data as the hard disk being
|
---|
5214 | cloned, except that a new UUID for the clone will be randomly
|
---|
5215 | generated.
|
---|
5216 |
|
---|
5217 | The specified image file path can be absolute (full path) or
|
---|
5218 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
5219 | home directory</link>. If only a file name without any path is
|
---|
5220 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
5221 | default VDI folder</link> will be used as a path to the image
|
---|
5222 | file.
|
---|
5223 |
|
---|
5224 | It is an error to use the object returned in the @a image
|
---|
5225 | parameter until the returned @a progress object reports success.
|
---|
5226 |
|
---|
5227 | <note>In the current implementation, only non-differencing hard
|
---|
5228 | disks can be cloned.</note>
|
---|
5229 |
|
---|
5230 | </desc>
|
---|
5231 |
|
---|
5232 | <param name="filePath" type="wstring" dir="in">
|
---|
5233 | <desc>Path to a file where to store the cloned hard disk.</desc>
|
---|
5234 | </param>
|
---|
5235 | <param name="image" type="IVirtualDiskImage" dir="out">
|
---|
5236 | <desc>Cloned hard disk object.</desc>
|
---|
5237 | </param>
|
---|
5238 | <param name="progress" type="IProgress" dir="return">
|
---|
5239 | <desc>Progress object to track the operation completion.</desc>
|
---|
5240 | </param>
|
---|
5241 |
|
---|
5242 | </method>
|
---|
5243 |
|
---|
5244 | </interface>
|
---|
5245 |
|
---|
5246 | <!--
|
---|
5247 | // IVirtualDiskImage
|
---|
5248 | /////////////////////////////////////////////////////////////////////////
|
---|
5249 | -->
|
---|
5250 |
|
---|
5251 | <interface
|
---|
5252 | name="IVirtualDiskImage" extends="$unknown"
|
---|
5253 | uuid="a8265b5a-0d20-4a46-a02f-65693a4e8239"
|
---|
5254 | wsmap="managed"
|
---|
5255 | >
|
---|
5256 |
|
---|
5257 | <desc>
|
---|
5258 |
|
---|
5259 | The IVirtualDiskImage interface represents <link to="IHardDisk">virtual
|
---|
5260 | hard disks</link> that use virtual disk image files to store hard disk
|
---|
5261 | data.
|
---|
5262 |
|
---|
5263 | Hard disks using virtual disk images can be either opened using
|
---|
5264 | <link to="IVirtualBox::openVirtualDiskImage()"/> or created from
|
---|
5265 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
5266 |
|
---|
5267 | Objects that support this interface also support the
|
---|
5268 | <link to="IHardDisk"/> interface.
|
---|
5269 |
|
---|
5270 | When a new hard disk object is created from scatch, an image file for it
|
---|
5271 | is not automatically created. To do it, you need to specify a
|
---|
5272 | valid <link to="#filePath">file path</link>, and call
|
---|
5273 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
5274 | When it is done, the hard disk object can be registered by calling
|
---|
5275 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
5276 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
5277 | virtual machines.
|
---|
5278 |
|
---|
5279 | The <link to="IHardDisk::description">description</link> of the
|
---|
5280 | Virtual Disk Image is stored in the image file. For this reason,
|
---|
5281 | changing the value of this property requires the hard disk to be
|
---|
5282 | <link to="IHardDisk::accessible">accessible</link>. The description
|
---|
5283 | of a registered hard disk can be changed only if a virtual machine
|
---|
5284 | using it is not running.
|
---|
5285 |
|
---|
5286 | </desc>
|
---|
5287 |
|
---|
5288 | <attribute name="filePath" type="wstring">
|
---|
5289 | <desc>
|
---|
5290 |
|
---|
5291 | Full file name of the virtual disk image of this hard disk. For
|
---|
5292 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
5293 |
|
---|
5294 | When assigning a new path, it can be absolute (full path) or
|
---|
5295 | relative to the <link to="IVirtualBox::homeFolder"> VirtualBox
|
---|
5296 | home directory</link>. If only a file name without any path is
|
---|
5297 | given, the <link to="ISystemProperties::defaultVDIFolder">
|
---|
5298 | default VDI folder</link> will be used as a path to the image
|
---|
5299 | file.
|
---|
5300 |
|
---|
5301 | When reading this propery, a full path is always returned.
|
---|
5302 |
|
---|
5303 | <note>
|
---|
5304 | This property cannot be changed when <link to="#created"/>
|
---|
5305 | returns <tt>true</tt>. In this case, the specified file name can be
|
---|
5306 | absolute (full path) or relative to
|
---|
5307 | the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
5308 | directory</link>. If only a file name without any path is given,
|
---|
5309 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
5310 | folder</link> will be used as a path to the image file.
|
---|
5311 | </note>
|
---|
5312 |
|
---|
5313 | </desc>
|
---|
5314 | </attribute>
|
---|
5315 |
|
---|
5316 | <attribute name="created" type="boolean" readonly="yes">
|
---|
5317 | <desc>
|
---|
5318 |
|
---|
5319 | Whether the virual disk image is created or not. For newly
|
---|
5320 | created hard disk objects or after a successful invocation of
|
---|
5321 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
5322 | <link to="#createFixedImage()"/> or <link
|
---|
5323 | to="#createDynamicImage()"/> is called.
|
---|
5324 |
|
---|
5325 | </desc>
|
---|
5326 | </attribute>
|
---|
5327 |
|
---|
5328 | <method name="createDynamicImage">
|
---|
5329 |
|
---|
5330 | <desc>
|
---|
5331 |
|
---|
5332 | Starts creating a dymically expanding hard disk image in the
|
---|
5333 | background. The previous image associated with this object, if
|
---|
5334 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
5335 | the operation will fail.
|
---|
5336 |
|
---|
5337 | <note>After the returned progress object reports that the
|
---|
5338 | operation is complete, this hard disk object can be
|
---|
5339 | <link to="IVirtualBox::registerHardDisk()">registered</link>
|
---|
5340 | within this VirtualBox installation.</note>
|
---|
5341 |
|
---|
5342 | </desc>
|
---|
5343 |
|
---|
5344 | <param name="size" type="unsigned long long" dir="in">
|
---|
5345 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
5346 | </param>
|
---|
5347 | <param name="progress" type="IProgress" dir="return">
|
---|
5348 | <desc>Progress object to track the operation completion.</desc>
|
---|
5349 | </param>
|
---|
5350 |
|
---|
5351 | </method>
|
---|
5352 |
|
---|
5353 | <method name="createFixedImage">
|
---|
5354 | <desc>
|
---|
5355 |
|
---|
5356 | Starts creating a fixed-size hard disk image in the background. The
|
---|
5357 | previous image, if any, must be deleted using
|
---|
5358 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
5359 |
|
---|
5360 | <note>
|
---|
5361 | After the returned progress object reports that the
|
---|
5362 | operation is complete, this hard disk object can be
|
---|
5363 | <link to="IVirtualBox::registerHardDisk()">registered</link>
|
---|
5364 | within this VirtualBox installation.
|
---|
5365 | </note>
|
---|
5366 |
|
---|
5367 | </desc>
|
---|
5368 |
|
---|
5369 | <param name="size" type="unsigned long long" dir="in">
|
---|
5370 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
5371 | </param>
|
---|
5372 | <param name="progress" type="IProgress" dir="return">
|
---|
5373 | <desc>Progress object to track the operation completion.</desc>
|
---|
5374 | </param>
|
---|
5375 |
|
---|
5376 | </method>
|
---|
5377 |
|
---|
5378 | <method name="deleteImage">
|
---|
5379 | <desc>
|
---|
5380 |
|
---|
5381 | Deletes the existing hard disk image. The hard disk must not be
|
---|
5382 | registered within this VirtualBox installation, otherwise the
|
---|
5383 | operation will fail.
|
---|
5384 |
|
---|
5385 | <note>
|
---|
5386 | After this operation succeeds, it will be impossible to
|
---|
5387 | register the hard disk until the image file is created
|
---|
5388 | again.
|
---|
5389 | </note>
|
---|
5390 |
|
---|
5391 | <note>
|
---|
5392 | This operation is valid only for non-differencing hard disks, after
|
---|
5393 | they are unregistered using
|
---|
5394 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
5395 | </note>
|
---|
5396 |
|
---|
5397 | </desc>
|
---|
5398 | </method>
|
---|
5399 |
|
---|
5400 | </interface>
|
---|
5401 |
|
---|
5402 | <!--
|
---|
5403 | // IISCSIHardDisk
|
---|
5404 | /////////////////////////////////////////////////////////////////////////
|
---|
5405 | -->
|
---|
5406 |
|
---|
5407 | <interface
|
---|
5408 | name="IISCSIHardDisk" extends="$unknown"
|
---|
5409 | uuid="003f6ca9-3257-4ef9-99c9-c66ce44576cb"
|
---|
5410 | wsmap="managed"
|
---|
5411 | >
|
---|
5412 |
|
---|
5413 | <desc>
|
---|
5414 |
|
---|
5415 | The IISCSIHardDisk interface represents <link to="IHardDisk">virtual
|
---|
5416 | hard disks</link> that use the Internet SCSI (iSCSI) protocol to store
|
---|
5417 | hard disk data on remote machines.
|
---|
5418 |
|
---|
5419 | iSCSI hard disks can be created using
|
---|
5420 | <link to="IVirtualBox::createHardDisk()"/>. When a new hard disk object
|
---|
5421 | is created, all its properties are uninitialized. After you assign some
|
---|
5422 | meaningful values to them, the hard disk object can be registered by
|
---|
5423 | calling <link to="IVirtualBox::registerHardDisk()"/> and
|
---|
5424 | then <link to="IMachine::attachHardDisk()">attached</link> to virtual
|
---|
5425 | machines.
|
---|
5426 |
|
---|
5427 | Objects that support this interface also support the
|
---|
5428 | <link to="IHardDisk"/> interface.
|
---|
5429 |
|
---|
5430 | The <link to="IHardDisk::description">description</link>
|
---|
5431 | of the iSCSI hard disk is stored in the VirtualBox
|
---|
5432 | configuration file, so it can be changed (at appropriate
|
---|
5433 | times) even when
|
---|
5434 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
5435 | <tt>false</tt>. However, the hard disk must not be
|
---|
5436 | attached to a running virtual machine.
|
---|
5437 |
|
---|
5438 | <note>
|
---|
5439 | In the current imlementation, the type of all iSCSI hard disks
|
---|
5440 | is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
|
---|
5441 | and cannot be changed.
|
---|
5442 | </note>
|
---|
5443 |
|
---|
5444 | </desc>
|
---|
5445 |
|
---|
5446 | <attribute name="server" type="wstring">
|
---|
5447 | <desc>
|
---|
5448 |
|
---|
5449 | iSCSI Server name (either a host name or an IP address). For
|
---|
5450 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
5451 |
|
---|
5452 | </desc>
|
---|
5453 | </attribute>
|
---|
5454 |
|
---|
5455 | <attribute name="port" type="unsigned short">
|
---|
5456 | <desc>
|
---|
5457 |
|
---|
5458 | iSCSI Server port. For newly created hard disk objects, this
|
---|
5459 | value is <tt>0</tt>, which means the default port.
|
---|
5460 |
|
---|
5461 | </desc>
|
---|
5462 | </attribute>
|
---|
5463 |
|
---|
5464 | <attribute name="target" type="wstring">
|
---|
5465 | <desc>
|
---|
5466 |
|
---|
5467 | iSCSI target name. For newly created hard disk objects, this
|
---|
5468 | value is <tt>null</tt>.
|
---|
5469 |
|
---|
5470 | </desc>
|
---|
5471 | </attribute>
|
---|
5472 |
|
---|
5473 | <attribute name="lun" type="unsigned long long">
|
---|
5474 | <desc>
|
---|
5475 |
|
---|
5476 | Logical unit number for this iSCSI disk. For newly created hard
|
---|
5477 | disk objects, this value is <tt>0</tt>.
|
---|
5478 |
|
---|
5479 | </desc>
|
---|
5480 | </attribute>
|
---|
5481 |
|
---|
5482 | <attribute name="userName" type="wstring">
|
---|
5483 | <desc>
|
---|
5484 |
|
---|
5485 | User name for accessing this iSCSI disk. For newly created hard
|
---|
5486 | disk objects, this value is <tt>null</tt>.
|
---|
5487 |
|
---|
5488 | </desc>
|
---|
5489 | </attribute>
|
---|
5490 |
|
---|
5491 | <attribute name="password" type="wstring">
|
---|
5492 | <desc>
|
---|
5493 |
|
---|
5494 | User password for accessing this iSCSI disk. For newly created
|
---|
5495 | hard disk objects, this value is <tt>null</tt>.
|
---|
5496 |
|
---|
5497 | </desc>
|
---|
5498 | </attribute>
|
---|
5499 |
|
---|
5500 | </interface>
|
---|
5501 |
|
---|
5502 | <!--
|
---|
5503 | // IVMDKImage
|
---|
5504 | /////////////////////////////////////////////////////////////////////////
|
---|
5505 | -->
|
---|
5506 |
|
---|
5507 | <interface
|
---|
5508 | name="IVMDKImage" extends="$unknown"
|
---|
5509 | uuid="178398f5-8559-4fee-979e-420af5b53eef"
|
---|
5510 | wsmap="managed"
|
---|
5511 | >
|
---|
5512 | <desc>
|
---|
5513 |
|
---|
5514 | The IVMDKImage interface represents <link to="IHardDisk">virtual hard
|
---|
5515 | disks</link> that use VMware Virtual Machine Disk image files to store
|
---|
5516 | hard disk data.
|
---|
5517 |
|
---|
5518 | Hard disks using VMDK images can be either opened using
|
---|
5519 | <link to="IVirtualBox::openHardDisk()"/> or created from
|
---|
5520 | scratch using <link to="IVirtualBox::createHardDisk()"/>.
|
---|
5521 |
|
---|
5522 | Objects that support this interface also support the
|
---|
5523 | <link to="IHardDisk"/> interface.
|
---|
5524 |
|
---|
5525 | When a new hard disk object is created from scatch, an image file for it
|
---|
5526 | is not automatically created. To do it, you need to specify a
|
---|
5527 | valid <link to="#filePath">file path</link>, and call
|
---|
5528 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>.
|
---|
5529 | When it is done, the hard disk object can be registered by calling
|
---|
5530 | <link to="IVirtualBox::registerHardDisk()"/> and then
|
---|
5531 | <link to="IMachine::attachHardDisk()">attached</link> to
|
---|
5532 | virtual machines.
|
---|
5533 |
|
---|
5534 | The <link to="IHardDisk::description">description</link>
|
---|
5535 | of the VMDK hard disk is stored in the VirtualBox
|
---|
5536 | configuration file, so it can be changed (at appropriate
|
---|
5537 | times) even when
|
---|
5538 | <link to="IHardDisk::accessible">accessible</link> returns
|
---|
5539 | <tt>false</tt>. However, the hard disk must not be
|
---|
5540 | attached to a running virtual machine.
|
---|
5541 |
|
---|
5542 | <note>
|
---|
5543 | In the current imlementation, the type of all VMDK hard disks
|
---|
5544 | is <link to="HardDiskType::WritethroughHardDisk">Writethrough</link>
|
---|
5545 | and cannot be changed.
|
---|
5546 | </note>
|
---|
5547 |
|
---|
5548 | </desc>
|
---|
5549 |
|
---|
5550 | <attribute name="filePath" type="wstring">
|
---|
5551 | <desc>
|
---|
5552 |
|
---|
5553 | Full file name of the VMDK image of this hard disk. For
|
---|
5554 | newly created hard disk objects, this value is <tt>null</tt>.
|
---|
5555 |
|
---|
5556 | When assigning a new path, it can be absolute (full path) or relative
|
---|
5557 | to the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
5558 | directory</link>. If only a file name without any path is given,
|
---|
5559 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
5560 | folder</link> will be used as a path to the image file.
|
---|
5561 |
|
---|
5562 | When reading this propery, a full path is always returned.
|
---|
5563 |
|
---|
5564 | <note>
|
---|
5565 | This property cannot be changed when <link to="#created"/>
|
---|
5566 | returns <tt>true</tt>. In this case, the specified file name can be
|
---|
5567 | absolute (full path) or relative to
|
---|
5568 | the <link to="IVirtualBox::homeFolder"> VirtualBox home
|
---|
5569 | directory</link>. If only a file name without any path is given,
|
---|
5570 | the <link to="ISystemProperties::defaultVDIFolder"> default VDI
|
---|
5571 | folder</link> will be used as a path to the image file.
|
---|
5572 | </note>
|
---|
5573 |
|
---|
5574 | </desc>
|
---|
5575 | </attribute>
|
---|
5576 |
|
---|
5577 | <attribute name="created" type="boolean" readonly="yes">
|
---|
5578 | <desc>
|
---|
5579 |
|
---|
5580 | Whether the virual disk image is created or not. For newly created
|
---|
5581 | hard disk objects or after a successful invocation of
|
---|
5582 | <link to="#deleteImage()"/>, this value is <tt>false</tt> until
|
---|
5583 | <link to="#createFixedImage()"/> or <link to="#createDynamicImage()"/>
|
---|
5584 | is called.
|
---|
5585 |
|
---|
5586 | </desc>
|
---|
5587 | </attribute>
|
---|
5588 |
|
---|
5589 | <method name="createDynamicImage">
|
---|
5590 |
|
---|
5591 | <desc>
|
---|
5592 |
|
---|
5593 | Starts creating a dymically expanding hard disk image in the
|
---|
5594 | background. The previous image associated with this object, if
|
---|
5595 | any, must be deleted using <link to="#deleteImage"/>, otherwise
|
---|
5596 | the operation will fail.
|
---|
5597 |
|
---|
5598 | <note>
|
---|
5599 | After the returned progress object reports that the
|
---|
5600 | operation is complete, this hard disk object can be
|
---|
5601 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
5602 | this VirtualBox installation.
|
---|
5603 | </note>
|
---|
5604 |
|
---|
5605 | </desc>
|
---|
5606 |
|
---|
5607 | <param name="size" type="unsigned long long" dir="in">
|
---|
5608 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
5609 | </param>
|
---|
5610 | <param name="progress" type="IProgress" dir="return">
|
---|
5611 | <desc>Progress object to track the operation completion.</desc>
|
---|
5612 | </param>
|
---|
5613 |
|
---|
5614 | </method>
|
---|
5615 |
|
---|
5616 | <method name="createFixedImage">
|
---|
5617 | <desc>
|
---|
5618 |
|
---|
5619 | Starts creating a fixed-size hard disk image in the background. The
|
---|
5620 | previous image, if any, must be deleted using
|
---|
5621 | <link to="#deleteImage"/>, otherwise the operation will fail.
|
---|
5622 |
|
---|
5623 | <note>
|
---|
5624 | After the returned progress object reports that the
|
---|
5625 | operation is complete, this hard disk object can be
|
---|
5626 | <link to="IVirtualBox::registerHardDisk()">registered</link> within
|
---|
5627 | this VirtualBox installation.
|
---|
5628 | </note>
|
---|
5629 |
|
---|
5630 | </desc>
|
---|
5631 |
|
---|
5632 | <param name="size" type="unsigned long long" dir="in">
|
---|
5633 | <desc>Logical size of the hard disk in megabytes.</desc>
|
---|
5634 | </param>
|
---|
5635 | <param name="progress" type="IProgress" dir="return">
|
---|
5636 | <desc>Progress object to track the operation completion.</desc>
|
---|
5637 | </param>
|
---|
5638 |
|
---|
5639 | </method>
|
---|
5640 |
|
---|
5641 | <method name="deleteImage">
|
---|
5642 | <desc>
|
---|
5643 |
|
---|
5644 | Deletes the existing hard disk image. The hard disk must not be
|
---|
5645 | registered within this VirtualBox installation, otherwise the
|
---|
5646 | operation will fail.
|
---|
5647 |
|
---|
5648 | <note>
|
---|
5649 | After this operation succeeds, it will be impossible to register the
|
---|
5650 | hard disk until the image file is created again.
|
---|
5651 | </note>
|
---|
5652 |
|
---|
5653 | <note>
|
---|
5654 | This operation is valid only for non-differencing hard disks, after
|
---|
5655 | they are unregistered using
|
---|
5656 | <link to="IVirtualBox::unregisterHardDisk()"/>.
|
---|
5657 | </note>
|
---|
5658 |
|
---|
5659 | </desc>
|
---|
5660 | </method>
|
---|
5661 |
|
---|
5662 | </interface>
|
---|
5663 |
|
---|
5664 | <!--
|
---|
5665 | // IDVDImage
|
---|
5666 | /////////////////////////////////////////////////////////////////////////
|
---|
5667 | -->
|
---|
5668 |
|
---|
5669 | <enumerator
|
---|
5670 | name="IDVDImageEnumerator" type="IDVDImage"
|
---|
5671 | uuid="9BE77C8D-E1BE-4bf2-A67B-B4DD3D2B0F28"
|
---|
5672 | />
|
---|
5673 |
|
---|
5674 | <collection
|
---|
5675 | name="IDVDImageCollection" type="IDVDImage"
|
---|
5676 | enumerator="IDVDImageEnumerator"
|
---|
5677 | uuid="AE7053FA-ADD2-4ea4-AFCF-24D5F8DDED64"
|
---|
5678 | readonly="yes"
|
---|
5679 | >
|
---|
5680 | <method name="findByPath">
|
---|
5681 | <desc>
|
---|
5682 | Searches this collection for a DVD image with the given disk path.
|
---|
5683 | <note>
|
---|
5684 | The method returns an error if the given name does not
|
---|
5685 | correspond to any DVD image in the collection.
|
---|
5686 | </note>
|
---|
5687 | </desc>
|
---|
5688 | <param name="path" type="wstring" dir="in">
|
---|
5689 | <desc>Name of the DVD image's file system location.</desc>
|
---|
5690 | </param>
|
---|
5691 | <param name="image" type="IDVDImage" dir="return">
|
---|
5692 | <desc>Found DVD image object</desc>
|
---|
5693 | </param>
|
---|
5694 | </method>
|
---|
5695 | </collection>
|
---|
5696 |
|
---|
5697 | <interface
|
---|
5698 | name="IDVDImage" extends="$unknown"
|
---|
5699 | uuid="140FFF03-E479-4194-8562-ABC4F8171009"
|
---|
5700 | wsmap="managed"
|
---|
5701 | >
|
---|
5702 | <desc>
|
---|
5703 |
|
---|
5704 | The IDVDImage interface represents a file containing the image
|
---|
5705 | of the DVD or CD disk.
|
---|
5706 |
|
---|
5707 | <h3>Image Accessibility</h3>
|
---|
5708 |
|
---|
5709 | The <link to="#accessible"/> attribute of the image object
|
---|
5710 | defines the accessibility state of the image file. If the
|
---|
5711 | value of this attribute is <tt>false</tt> then some image
|
---|
5712 | attributes may contain invalid or outdated values (for example, the
|
---|
5713 | the image file size) until a new accessibility
|
---|
5714 | check is done that returns <tt>true</tt>.
|
---|
5715 |
|
---|
5716 | <note>
|
---|
5717 | Because of the possible slowness of the accessibility check,
|
---|
5718 | it is not implicitly performed upon the VirtualBox server startup
|
---|
5719 | (to prevent the application freeze). In partcular, this means that
|
---|
5720 | if you try to read image properties that depend on the
|
---|
5721 | accessibility state without first reading the value of the
|
---|
5722 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
5723 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
5724 | </note>
|
---|
5725 |
|
---|
5726 | </desc>
|
---|
5727 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5728 | <desc>UUID of the CD/DVD image.</desc>
|
---|
5729 | </attribute>
|
---|
5730 |
|
---|
5731 | <attribute name="filePath" type="wstring" readonly="yes">
|
---|
5732 | <desc>Full file name of the CD/DVD image.</desc>
|
---|
5733 | </attribute>
|
---|
5734 |
|
---|
5735 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
5736 | <desc>
|
---|
5737 |
|
---|
5738 | Whether the CD/DVD image is currently accessible or not.
|
---|
5739 | The image, for example, can be unaccessible if it is placed
|
---|
5740 | on a network share that is not available by the time
|
---|
5741 | this property is read.
|
---|
5742 |
|
---|
5743 | The accessibility check is performed automatically every time
|
---|
5744 | this attribute is read. You should keep it in mind that this check
|
---|
5745 | may be slow and can block the calling thread for a long time (for
|
---|
5746 | example, if the network share where the image is located is down).
|
---|
5747 |
|
---|
5748 | The following attributes of the image object are considered
|
---|
5749 | to be invalid when this attribute is <tt>false</tt>:
|
---|
5750 | <ul>
|
---|
5751 | <li><link to="#size"/></li>
|
---|
5752 | </ul>
|
---|
5753 |
|
---|
5754 | </desc>
|
---|
5755 | </attribute>
|
---|
5756 |
|
---|
5757 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
5758 | <desc>Size of the ISO image in bytes.</desc>
|
---|
5759 | </attribute>
|
---|
5760 |
|
---|
5761 | </interface>
|
---|
5762 |
|
---|
5763 |
|
---|
5764 | <!--
|
---|
5765 | // IDVDDrive
|
---|
5766 | /////////////////////////////////////////////////////////////////////////
|
---|
5767 | -->
|
---|
5768 |
|
---|
5769 | <enum
|
---|
5770 | name="DriveState"
|
---|
5771 | uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
|
---|
5772 | >
|
---|
5773 | <const name="InvalidDriveState" value="0"/>
|
---|
5774 | <const name="NotMounted" value="1"/>
|
---|
5775 | <const name="ImageMounted" value="2"/>
|
---|
5776 | <const name="HostDriveCaptured" value="3"/>
|
---|
5777 | </enum>
|
---|
5778 |
|
---|
5779 | <interface
|
---|
5780 | name="IDVDDrive" extends="$unknown"
|
---|
5781 | uuid="d9bd101a-8079-4fb9-bad1-31bf32482b75"
|
---|
5782 | wsmap="managed"
|
---|
5783 | >
|
---|
5784 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
5785 | <desc>Current drive state.</desc>
|
---|
5786 | </attribute>
|
---|
5787 |
|
---|
5788 | <attribute name="passthrough" type="boolean">
|
---|
5789 | <desc>
|
---|
5790 | When a host drive is mounted and passthrough is enabled
|
---|
5791 | the guest will be able to directly send SCSI commands to
|
---|
5792 | the host drive. This enables the guest to use CD/DVD writers
|
---|
5793 | but is potentially dangerous.
|
---|
5794 | </desc>
|
---|
5795 | </attribute>
|
---|
5796 |
|
---|
5797 | <method name="mountImage">
|
---|
5798 | <desc>Mounts the specified image.</desc>
|
---|
5799 | <param name="imageId" type="uuid" dir="in"/>
|
---|
5800 | </method>
|
---|
5801 |
|
---|
5802 | <method name="captureHostDrive">
|
---|
5803 | <desc>Captures the specified host drive.</desc>
|
---|
5804 | <param name="drive" type="IHostDVDDrive" dir="in"/>
|
---|
5805 | </method>
|
---|
5806 |
|
---|
5807 | <method name="unmount">
|
---|
5808 | <desc>Unmounts the currently mounted image/device.</desc>
|
---|
5809 | </method>
|
---|
5810 |
|
---|
5811 | <method name="getImage">
|
---|
5812 | <desc>Gets the currently mounted image ID.</desc>
|
---|
5813 | <param name="image" type="IDVDImage" dir="return"/>
|
---|
5814 | </method>
|
---|
5815 |
|
---|
5816 | <method name="getHostDrive">
|
---|
5817 | <desc>Gets the currently mounted image ID.</desc>
|
---|
5818 | <param name="drive" type="IHostDVDDrive" dir="return"/>
|
---|
5819 | </method>
|
---|
5820 |
|
---|
5821 | </interface>
|
---|
5822 |
|
---|
5823 | <!--
|
---|
5824 | // IFloppyImage
|
---|
5825 | /////////////////////////////////////////////////////////////////////////
|
---|
5826 | -->
|
---|
5827 |
|
---|
5828 | <enumerator
|
---|
5829 | name="IFloppyImageEnumerator" type="IFloppyImage"
|
---|
5830 | uuid="902C4089-76B7-41f1-91E8-49A261A28A2C"
|
---|
5831 | />
|
---|
5832 |
|
---|
5833 | <collection
|
---|
5834 | name="IFloppyImageCollection" type="IFloppyImage"
|
---|
5835 | enumerator="IFloppyImageEnumerator"
|
---|
5836 | uuid="327A8928-8572-446e-AD9A-18FE30E81F3F"
|
---|
5837 | readonly="yes">
|
---|
5838 | <method name="findByPath">
|
---|
5839 | <desc>
|
---|
5840 | Searches this collection for a floppy image with the given disk path.
|
---|
5841 | <note>
|
---|
5842 | The method returns an error if the given name does not
|
---|
5843 | correspond to any floppy image in the collection.
|
---|
5844 | </note>
|
---|
5845 | </desc>
|
---|
5846 | <param name="path" type="wstring" dir="in">
|
---|
5847 | <desc>Name of the floppy image's file system location.</desc>
|
---|
5848 | </param>
|
---|
5849 | <param name="image" type="IFloppyImage" dir="return">
|
---|
5850 | <desc>Found Floppy image object</desc>
|
---|
5851 | </param>
|
---|
5852 | </method>
|
---|
5853 | </collection>
|
---|
5854 |
|
---|
5855 | <interface
|
---|
5856 | name="IFloppyImage" extends="$unknown"
|
---|
5857 | uuid="CC696755-EA98-4ffe-9DC5-C003047034AB"
|
---|
5858 | wsmap="managed"
|
---|
5859 | >
|
---|
5860 | <desc>
|
---|
5861 |
|
---|
5862 | The IFloppyImage interface represents a file containing the image
|
---|
5863 | of a floppy disk.
|
---|
5864 |
|
---|
5865 | <h3>Image Accessibility</h3>
|
---|
5866 |
|
---|
5867 | The <link to="#accessible"/> attribute of the image object
|
---|
5868 | defines the accessibility state of the image file. If the
|
---|
5869 | value of this attribute is <tt>false</tt> then some image
|
---|
5870 | attributes may contain invalid or outdated values (for example, the
|
---|
5871 | the image file size) until a new accessibility
|
---|
5872 | check is done that returns <tt>true</tt>.
|
---|
5873 |
|
---|
5874 | <note>
|
---|
5875 | Because of the possible slowness of the accessibility check,
|
---|
5876 | it is not implicitly performed upon the VirtualBox server startup
|
---|
5877 | (to prevent the application freeze). In partcular, this means that
|
---|
5878 | if you try to read image properties that depend on the
|
---|
5879 | accessibility state without first reading the value of the
|
---|
5880 | <link to="#accessible"/> attribute and ensuring it's value is
|
---|
5881 | <tt>true</tt>, you will get wrong (zero) values.
|
---|
5882 | </note>
|
---|
5883 |
|
---|
5884 | </desc>
|
---|
5885 | <attribute name="id" type="uuid" readonly="yes">
|
---|
5886 | <desc>UUID of the floppy image.</desc>
|
---|
5887 | </attribute>
|
---|
5888 |
|
---|
5889 | <attribute name="filePath" type="wstring" readonly="yes">
|
---|
5890 | <desc>Full file name of the floppy image.</desc>
|
---|
5891 | </attribute>
|
---|
5892 |
|
---|
5893 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
5894 | <desc>
|
---|
5895 |
|
---|
5896 | Whether the floppy image is currently accessible or not.
|
---|
5897 | The image, for example, can be unaccessible if it is placed
|
---|
5898 | on a network share that is not available by the time
|
---|
5899 | this property is read.
|
---|
5900 |
|
---|
5901 | The accessibility check is performed automatically every time
|
---|
5902 | this attribute is read. You should keep it in mind that this check
|
---|
5903 | may be slow and can block the calling thread for a long time (for
|
---|
5904 | example, if the network share where the image is located is down).
|
---|
5905 |
|
---|
5906 | The following attributes of the image object are considered
|
---|
5907 | to be invalid when this attribute is <tt>false</tt>:
|
---|
5908 | <ul>
|
---|
5909 | <li><link to="#size"/></li>
|
---|
5910 | </ul>
|
---|
5911 |
|
---|
5912 | </desc>
|
---|
5913 | </attribute>
|
---|
5914 |
|
---|
5915 | <attribute name="size" type="unsigned long" readonly="yes">
|
---|
5916 | <desc>Size of the floppy image in bytes.</desc>
|
---|
5917 | </attribute>
|
---|
5918 |
|
---|
5919 | </interface>
|
---|
5920 |
|
---|
5921 |
|
---|
5922 | <!--
|
---|
5923 | // IFloppyDrive
|
---|
5924 | /////////////////////////////////////////////////////////////////////////
|
---|
5925 | -->
|
---|
5926 |
|
---|
5927 | <interface
|
---|
5928 | name="IFloppyDrive" extends="$unknown"
|
---|
5929 | uuid="E9318F71-78D2-4b00-863C-B7CB0030A2D9"
|
---|
5930 | wsmap="managed"
|
---|
5931 | >
|
---|
5932 | <attribute name="enabled" type="boolean">
|
---|
5933 | <desc>
|
---|
5934 | Flag whether the floppy drive is enabled. If it is disabled,
|
---|
5935 | the floppy drive will not be reported to the guest.
|
---|
5936 | </desc>
|
---|
5937 | </attribute>
|
---|
5938 |
|
---|
5939 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
5940 | <desc>Current drive state.</desc>
|
---|
5941 | </attribute>
|
---|
5942 |
|
---|
5943 | <method name="mountImage">
|
---|
5944 | <desc>Mounts the specified image.</desc>
|
---|
5945 | <param name="imageId" type="uuid" dir="in"/>
|
---|
5946 | </method>
|
---|
5947 |
|
---|
5948 | <method name="captureHostDrive">
|
---|
5949 | <desc>Captures the specified host drive.</desc>
|
---|
5950 | <param name="drive" type="IHostFloppyDrive" dir="in"/>
|
---|
5951 | </method>
|
---|
5952 |
|
---|
5953 | <method name="unmount">
|
---|
5954 | <desc>Unmounts the currently mounted image/device.</desc>
|
---|
5955 | </method>
|
---|
5956 |
|
---|
5957 | <method name="getImage">
|
---|
5958 | <desc>Gets the currently mounted image ID.</desc>
|
---|
5959 | <param name="image" type="IFloppyImage" dir="return"/>
|
---|
5960 | </method>
|
---|
5961 |
|
---|
5962 | <method name="getHostDrive">
|
---|
5963 | <desc>Gets the currently mounted image ID.</desc>
|
---|
5964 | <param name="drive" type="IHostFloppyDrive" dir="return"/>
|
---|
5965 | </method>
|
---|
5966 |
|
---|
5967 | </interface>
|
---|
5968 |
|
---|
5969 |
|
---|
5970 | <!--
|
---|
5971 | // IKeyboard
|
---|
5972 | /////////////////////////////////////////////////////////////////////////
|
---|
5973 | -->
|
---|
5974 |
|
---|
5975 | <interface
|
---|
5976 | name="IKeyboard" extends="$unknown"
|
---|
5977 | uuid="FD443EC1-000A-4F5B-9282-D72760A66916"
|
---|
5978 | wsmap="managed"
|
---|
5979 | >
|
---|
5980 | <method name="putScancode">
|
---|
5981 | <desc>Sends a scancode to the keyboard.</desc>
|
---|
5982 | <param name="scancode" type="long" dir="in"/>
|
---|
5983 | </method>
|
---|
5984 |
|
---|
5985 | <method name="putScancodes">
|
---|
5986 | <desc>Sends an array of scancode to the keyboard.</desc>
|
---|
5987 | <param name="scancodes" type="long" dir="in" array="count"/>
|
---|
5988 | <param name="count" type="unsigned long" dir="in"/>
|
---|
5989 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
5990 | </method>
|
---|
5991 |
|
---|
5992 | <method name="putCAD">
|
---|
5993 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard.</desc>
|
---|
5994 | </method>
|
---|
5995 |
|
---|
5996 | </interface>
|
---|
5997 |
|
---|
5998 |
|
---|
5999 | <!--
|
---|
6000 | // IMouse
|
---|
6001 | /////////////////////////////////////////////////////////////////////////
|
---|
6002 | -->
|
---|
6003 |
|
---|
6004 | <enum
|
---|
6005 | name="MouseButtonState"
|
---|
6006 | uuid="03131722-2EC5-4173-9794-0DACA46673EF"
|
---|
6007 | >
|
---|
6008 | <const name="LeftButton" value="0x01"/>
|
---|
6009 | <const name="RightButton" value="0x02"/>
|
---|
6010 | <const name="MiddleButton" value="0x04"/>
|
---|
6011 | <const name="WheelUp" value="0x08"/>
|
---|
6012 | <const name="WheelDown" value="0x10"/>
|
---|
6013 | <const name="MouseStateMask" value="0x1F"/>
|
---|
6014 | </enum>
|
---|
6015 |
|
---|
6016 | <interface
|
---|
6017 | name="IMouse" extends="$unknown"
|
---|
6018 | uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
|
---|
6019 | wsmap="managed"
|
---|
6020 | >
|
---|
6021 | <desc>
|
---|
6022 | The IMouse interface represents a virtual mouse device.
|
---|
6023 | </desc>
|
---|
6024 |
|
---|
6025 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
6026 | <desc>
|
---|
6027 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
6028 | or not.
|
---|
6029 | <note>
|
---|
6030 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
6031 | in order to enable absolute mouse positioning support.
|
---|
6032 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
6033 | callback to be instantly informed about changes of this attribute
|
---|
6034 | during virtual machine execution.
|
---|
6035 | </note>
|
---|
6036 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
6037 | </desc>
|
---|
6038 | </attribute>
|
---|
6039 |
|
---|
6040 | <method name="putMouseEvent">
|
---|
6041 | <desc>
|
---|
6042 | Initiates a mouse event using relative pointer movements
|
---|
6043 | along x and y axis.
|
---|
6044 | </desc>
|
---|
6045 |
|
---|
6046 | <param name="dx" type="long" dir="in">
|
---|
6047 | <desc>
|
---|
6048 | Amout of pixels the mouse should move to the right.
|
---|
6049 | Negative values move the mouse to the left.
|
---|
6050 | </desc>
|
---|
6051 | </param>
|
---|
6052 | <param name="dy" type="long" dir="in">
|
---|
6053 | <desc>
|
---|
6054 | Amout of pixels the mouse should move downwards.
|
---|
6055 | Negative values move the mouse upwards.
|
---|
6056 | </desc>
|
---|
6057 | </param>
|
---|
6058 | <param name="dz" type="long" dir="in">
|
---|
6059 | <desc>
|
---|
6060 | Amount of mouse wheel moves.
|
---|
6061 | Positive values describe clockwize wheel rotations,
|
---|
6062 | negative values describe counterclockwise rotations.
|
---|
6063 | </desc>
|
---|
6064 | </param>
|
---|
6065 | <param name="buttonState" type="long" dir="in">
|
---|
6066 | <desc>
|
---|
6067 | The current state of mouse buttons. Every bit represents
|
---|
6068 | a mouse button as follows:
|
---|
6069 | <table>
|
---|
6070 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
6071 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
6072 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
6073 | </table>
|
---|
6074 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
6075 | otherwise it is released.
|
---|
6076 | </desc>
|
---|
6077 | </param>
|
---|
6078 | </method>
|
---|
6079 |
|
---|
6080 | <method name="putMouseEventAbsolute">
|
---|
6081 | <desc>
|
---|
6082 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
6083 | These coordinates are expressed in pixels and
|
---|
6084 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
6085 | corner of the virtual display.
|
---|
6086 |
|
---|
6087 | <note>
|
---|
6088 | This method will have effect only if absolute mouse
|
---|
6089 | positioning is supported by the guest OS.
|
---|
6090 | </note>
|
---|
6091 |
|
---|
6092 | <see><link to="#absoluteSupported"/></see>
|
---|
6093 | </desc>
|
---|
6094 |
|
---|
6095 | <param name="x" type="long" dir="in">
|
---|
6096 | <desc>
|
---|
6097 | X coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
6098 | </desc>
|
---|
6099 | </param>
|
---|
6100 | <param name="y" type="long" dir="in">
|
---|
6101 | <desc>
|
---|
6102 | Y coordinate of the pointer in pixels, starting from <tt>1</tt>.
|
---|
6103 | </desc>
|
---|
6104 | </param>
|
---|
6105 | <param name="dz" type="long" dir="in">
|
---|
6106 | <desc>
|
---|
6107 | Amout of mouse wheel moves.
|
---|
6108 | Positive values describe clockwize wheel rotations,
|
---|
6109 | negative values describe counterclockwise rotations.
|
---|
6110 | </desc>
|
---|
6111 | </param>
|
---|
6112 | <param name="buttonState" type="long" dir="in">
|
---|
6113 | <desc>
|
---|
6114 | The current state of mouse buttons. Every bit represents
|
---|
6115 | a mouse button as follows:
|
---|
6116 | <table>
|
---|
6117 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
6118 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
6119 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
6120 | </table>
|
---|
6121 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
6122 | otherwise it is released.
|
---|
6123 | </desc>
|
---|
6124 | </param>
|
---|
6125 | </method>
|
---|
6126 |
|
---|
6127 | </interface>
|
---|
6128 |
|
---|
6129 | <!--
|
---|
6130 | // IDisplay
|
---|
6131 | /////////////////////////////////////////////////////////////////////////
|
---|
6132 | -->
|
---|
6133 |
|
---|
6134 | <enum
|
---|
6135 | name="FramebufferAccelerationOperation"
|
---|
6136 | uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8"
|
---|
6137 | >
|
---|
6138 | <const name="SolidFillAcceleration" value="1"/>
|
---|
6139 | <const name="ScreenCopyAcceleration" value="2"/>
|
---|
6140 | </enum>
|
---|
6141 |
|
---|
6142 | <enum
|
---|
6143 | name="FramebufferPixelFormat"
|
---|
6144 | uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d"
|
---|
6145 | >
|
---|
6146 | <desc>
|
---|
6147 | Format of the video memory buffer. Constants represented by this enum can
|
---|
6148 | be used to test for particular values of <link
|
---|
6149 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
6150 | to="IFramebuffer::requestResize()"/>.
|
---|
6151 |
|
---|
6152 | See also www.fourcc.org for more informantion about FOURCC pixel formats.
|
---|
6153 | </desc>
|
---|
6154 | <const name="PixelFormatOpaque" value="0xFFFFFFFF">
|
---|
6155 | <desc>
|
---|
6156 | Unknown buffer format. The user may not assume any particular
|
---|
6157 | format of the buffer.
|
---|
6158 | </desc>
|
---|
6159 | </const>
|
---|
6160 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
6161 | <desc>
|
---|
6162 | Basic RGB format. <link to="IFramebuffer::bitsPerPixel"/> determines
|
---|
6163 | the bit layout.
|
---|
6164 | </desc>
|
---|
6165 | </const>
|
---|
6166 | </enum>
|
---|
6167 |
|
---|
6168 | <interface
|
---|
6169 | name="IFramebuffer" extends="$unknown"
|
---|
6170 | uuid="af431304-5b09-40e2-94da-3c3cb03822c1"
|
---|
6171 | wsmap="suppress"
|
---|
6172 | >
|
---|
6173 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
6174 | <desc>Address of the start byte of the framebuffer.</desc>
|
---|
6175 | </attribute>
|
---|
6176 |
|
---|
6177 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
6178 | <desc>Framebuffer width, in pixels.</desc>
|
---|
6179 | </attribute>
|
---|
6180 |
|
---|
6181 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
6182 | <desc>Framebuffer height, in pixels.</desc>
|
---|
6183 | </attribute>
|
---|
6184 |
|
---|
6185 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
6186 | <desc>
|
---|
6187 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
6188 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
6189 | are: 8, 15, 16, 24 and 32.
|
---|
6190 | </desc>
|
---|
6191 | </attribute>
|
---|
6192 |
|
---|
6193 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
6194 | <desc>
|
---|
6195 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
6196 | to="FramebufferPixelFormat::FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
6197 | size of the scan line must be aligned to 32 bits.
|
---|
6198 | </desc>
|
---|
6199 | </attribute>
|
---|
6200 |
|
---|
6201 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
6202 | <desc>
|
---|
6203 | Framebuffer pixel format. It's either one of the values defined by <link
|
---|
6204 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
6205 | <note>
|
---|
6206 | This attribute must never return <link
|
---|
6207 | to="PixelFormat::PixelFormatOpaque"/> -- the format of the buffer
|
---|
6208 | <link to="#address"/> points to must be always known.
|
---|
6209 | </note>
|
---|
6210 | </desc>
|
---|
6211 | </attribute>
|
---|
6212 |
|
---|
6213 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
6214 | <desc>
|
---|
6215 | Defines whether this framebuffer uses the virtual video card's memory
|
---|
6216 | buffer (guest VRAM) directly or not. See <link
|
---|
6217 | to="IFramebuffer::requestResize()"/> for more information.
|
---|
6218 | </desc>
|
---|
6219 | </attribute>
|
---|
6220 |
|
---|
6221 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
6222 | <desc>
|
---|
6223 | Hint from the framebuffer about how much of the standard
|
---|
6224 | screen height it wants to use for itself. This information is
|
---|
6225 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
6226 | so that it can use it for determining its video mode table. It
|
---|
6227 | is not guaranteed that the guest respects the value.
|
---|
6228 | </desc>
|
---|
6229 | </attribute>
|
---|
6230 |
|
---|
6231 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
6232 | <desc>
|
---|
6233 | An alpha-blended overlay which is superposed over the framebuffer.
|
---|
6234 | The initial purpose is to allow the display of icons providing
|
---|
6235 | information about the VM state, including disk activity, in front
|
---|
6236 | ends which do not have other means of doing that. The overlay is
|
---|
6237 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
6238 | of its own, and any changes made to it are not guaranteed to be
|
---|
6239 | visible until the affected portion of IFramebuffer is updated. The
|
---|
6240 | overlay can be created lazily the first time it is requested. This
|
---|
6241 | attribute can also return NULL to signal that the overlay is not
|
---|
6242 | implemented.
|
---|
6243 | </desc>
|
---|
6244 | </attribute>
|
---|
6245 |
|
---|
6246 | <method name="lock">
|
---|
6247 | <desc>
|
---|
6248 | Locks the framebuffer.
|
---|
6249 | Gets called by the IDisplay object where this framebuffer is
|
---|
6250 | bound to.
|
---|
6251 | </desc>
|
---|
6252 | </method>
|
---|
6253 |
|
---|
6254 | <method name="unlock">
|
---|
6255 | <desc>
|
---|
6256 | Unlocks the framebuffer.
|
---|
6257 | Gets called by the IDisplay object where this framebuffer is
|
---|
6258 | bound to.
|
---|
6259 | </desc>
|
---|
6260 | </method>
|
---|
6261 |
|
---|
6262 | <method name="notifyUpdate">
|
---|
6263 | <desc>
|
---|
6264 | Informs about an update.
|
---|
6265 | Gets called by the display object where this buffer is
|
---|
6266 | registered.
|
---|
6267 | </desc>
|
---|
6268 | <param name="x" type="unsigned long" dir="in"/>
|
---|
6269 | <param name="y" type="unsigned long" dir="in"/>
|
---|
6270 | <param name="width" type="unsigned long" dir="in"/>
|
---|
6271 | <param name="height" type="unsigned long" dir="in"/>
|
---|
6272 | <param name="finished" type="boolean" dir="return"/>
|
---|
6273 | </method>
|
---|
6274 |
|
---|
6275 | <method name="requestResize">
|
---|
6276 | <desc>
|
---|
6277 | Requests a size and pixel format change.
|
---|
6278 |
|
---|
6279 | There are two modes of working with the video buffer of the virtual
|
---|
6280 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
6281 | implementation allocates a memory buffer for the requested display mode
|
---|
6282 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
6283 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
6284 | by the virtual machine. This buffer represents the video memory of the
|
---|
6285 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
6286 | usually faster because the implementation gets a raw pointer to the
|
---|
6287 | guest VRAM buffer which it can directly use for visualising the contents
|
---|
6288 | of the virtual display, as opposed to the indirect mode where the
|
---|
6289 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
6290 | the implementation every time a display update occurs.
|
---|
6291 |
|
---|
6292 | It is important to note that the direct mode is really fast only when
|
---|
6293 | the implementation uses the given guest VRAM buffer directly, for
|
---|
6294 | example, by blitting it to the window representing the virtual machine's
|
---|
6295 | display, which saves at least one copy operation comparing to the
|
---|
6296 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
6297 | always possible: the format and the color depth of this buffer may be
|
---|
6298 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
6299 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
6300 | the indirect mode (that is always available) should be used as a
|
---|
6301 | fallback: when the guest VRAM contents are copied to the
|
---|
6302 | implementation-provided memory buffer, color and format conversion is
|
---|
6303 | done authomatically by the underlying code.
|
---|
6304 |
|
---|
6305 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
6306 | available or not. If @a pixelFormat is <link
|
---|
6307 | to="PixelFormat::PixelFormatOpaque"/> then direct access to the guest
|
---|
6308 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
|
---|
6309 | bytesPerLine parameters must be ingored and the implementation must use
|
---|
6310 | the indirect mode (where it provides its own buffer in one of the
|
---|
6311 | supported formats). In all other cases, @a pixelFormat together with @a
|
---|
6312 | bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
6313 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
6314 | free to choose which mode to use. To indicate that this framebuffer uses
|
---|
6315 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
6316 | attribute must return <tt>true</tt> and <link to="#address"/> must
|
---|
6317 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
6318 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
6319 | chosen.
|
---|
6320 |
|
---|
6321 | The @a width and @a height parameters represent the size of the
|
---|
6322 | requested display mode in both modes. In case of indirect mode, the
|
---|
6323 | provided memory buffer should be big enough to store data of the given
|
---|
6324 | display mode. In case of direct mode, it is guaranteed that the given @a
|
---|
6325 | VRAM buffer contains enough space to represent the display mode of the
|
---|
6326 | given size. Note that this framebuffer's <link to="#width"/> and <link
|
---|
6327 | to="#height"/> attributes must return exactly the same values as
|
---|
6328 | passed to this method after the resize is completed (see below).
|
---|
6329 |
|
---|
6330 | The @a finished output parameter determines if the implementation has
|
---|
6331 | finished resizing the framebuffer or not. If, for some reason, the
|
---|
6332 | resize cannot be finished immediately during this call, @a finished
|
---|
6333 | must be set to @c false, and the implementation must call
|
---|
6334 | <link to="IDisplay::resizeCompleted()"/> after it has returned from
|
---|
6335 | this method as soon as possible. If @a finished is @c false, the
|
---|
6336 | machine will not call any framebuffer methods until
|
---|
6337 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
6338 |
|
---|
6339 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
6340 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
6341 | this framebuffer must return exactly the same values as specified in the
|
---|
6342 | parameters of this method, after the resize is completed. If the
|
---|
6343 | indirect mode is chosen, these attributes must return values describing
|
---|
6344 | the format of the implementation's own memory buffer <link
|
---|
6345 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
6346 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
6347 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
6348 | to="PixelFormat::PixelFormatOpaque"/> regardless of the selected mode.
|
---|
6349 |
|
---|
6350 | <note>
|
---|
6351 | This method is called by the IDisplay object under the
|
---|
6352 | <link to="#lock()"/> provided by this IFramebuffer
|
---|
6353 | implementation. If this method returns @c false in @a finished, then
|
---|
6354 | this lock is not released until
|
---|
6355 | <link to="IDisplay::resizeCompleted()"/> is called.
|
---|
6356 | </note>
|
---|
6357 | </desc>
|
---|
6358 | <param name="screenId" type="unsigned long" dir="in">
|
---|
6359 | <desc>
|
---|
6360 | Logical screen number. Must be used in the corresponding call to
|
---|
6361 | <link to="IDisplay::resizeCompleted()"/> if this call is made.
|
---|
6362 | </desc>
|
---|
6363 | </param>
|
---|
6364 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
6365 | <desc>
|
---|
6366 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
6367 | See also <link to="FramebufferPixelFormat"/>.
|
---|
6368 | </desc>
|
---|
6369 | </param>
|
---|
6370 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
6371 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
6372 | </param>
|
---|
6373 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
6374 | <desc>Color depth, bits per pixel.</desc>
|
---|
6375 | </param>
|
---|
6376 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
6377 | <desc>Size of one scan line, in bytes.</desc>
|
---|
6378 | </param>
|
---|
6379 | <param name="width" type="unsigned long" dir="in">
|
---|
6380 | <desc>Width of the guest display, in pixels.</desc>
|
---|
6381 | </param>
|
---|
6382 | <param name="height" type="unsigned long" dir="in">
|
---|
6383 | <desc>Height of the guest display, in pixels.</desc>
|
---|
6384 | </param>
|
---|
6385 | <param name="finished" type="boolean" dir="return">
|
---|
6386 | <desc>
|
---|
6387 | Can the VM start using the new framebuffer immediately
|
---|
6388 | after this method returns or it should wait for
|
---|
6389 | <link to="IDisplay::resizeCompleted()"/>.
|
---|
6390 | </desc>
|
---|
6391 | </param>
|
---|
6392 | </method>
|
---|
6393 |
|
---|
6394 | <method name="operationSupported">
|
---|
6395 | <desc>
|
---|
6396 | Returns whether the given acceleration operation is supported
|
---|
6397 | by the IFramebuffer implementation. If not, the display object
|
---|
6398 | will not attempt to call the corresponding IFramebuffer entry
|
---|
6399 | point. Even if an operation is indicated to supported, the
|
---|
6400 | IFramebuffer implementation always has the option to return non
|
---|
6401 | supported from the corresponding acceleration method in which
|
---|
6402 | case the operation will be performed by the display engine. This
|
---|
6403 | allows for reduced IFramebuffer implementation complexity where
|
---|
6404 | only common cases are handled.
|
---|
6405 | </desc>
|
---|
6406 | <param name="operation" type="FramebufferAccelerationOperation" dir="in"/>
|
---|
6407 | <param name="supported" type="boolean" dir="return"/>
|
---|
6408 | </method>
|
---|
6409 |
|
---|
6410 | <method name="videoModeSupported">
|
---|
6411 | <desc>
|
---|
6412 | Returns whether the framebuffer implementation is willing to
|
---|
6413 | support a given video mode. In case it is not able to render
|
---|
6414 | the video mode (or for some reason not willing), it should
|
---|
6415 | return false. Usually this method is called when the guest
|
---|
6416 | asks the VMM device whether a given video mode is supported
|
---|
6417 | so the information returned is directly exposed to the guest.
|
---|
6418 | It is important that this method returns very quickly.
|
---|
6419 | </desc>
|
---|
6420 | <param name="width" type="unsigned long" dir="in"/>
|
---|
6421 | <param name="height" type="unsigned long" dir="in"/>
|
---|
6422 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
6423 | <param name="supported" type="boolean" dir="return"/>
|
---|
6424 | </method>
|
---|
6425 |
|
---|
6426 | <method name="solidFill">
|
---|
6427 | <desc>
|
---|
6428 | Fills the specified rectangle on screen with a solid color.
|
---|
6429 | </desc>
|
---|
6430 | <param name="x" type="unsigned long" dir="in"/>
|
---|
6431 | <param name="y" type="unsigned long" dir="in"/>
|
---|
6432 | <param name="width" type="unsigned long" dir="in"/>
|
---|
6433 | <param name="height" type="unsigned long" dir="in"/>
|
---|
6434 | <param name="color" type="unsigned long" dir="in"/>
|
---|
6435 | <param name="handled" type="boolean" dir="return"/>
|
---|
6436 | </method>
|
---|
6437 |
|
---|
6438 | <method name="copyScreenBits">
|
---|
6439 | <desc>
|
---|
6440 | Copies specified rectangle on the screen.
|
---|
6441 | </desc>
|
---|
6442 | <param name="xDst" type="unsigned long" dir="in"/>
|
---|
6443 | <param name="yDst" type="unsigned long" dir="in"/>
|
---|
6444 | <param name="xSrc" type="unsigned long" dir="in"/>
|
---|
6445 | <param name="ySrc" type="unsigned long" dir="in"/>
|
---|
6446 | <param name="width" type="unsigned long" dir="in"/>
|
---|
6447 | <param name="height" type="unsigned long" dir="in"/>
|
---|
6448 | <param name="handled" type="boolean" dir="return"/>
|
---|
6449 | </method>
|
---|
6450 |
|
---|
6451 | <method name="getVisibleRegion">
|
---|
6452 | <desc>
|
---|
6453 | Returns the visible region of this framebuffer.
|
---|
6454 |
|
---|
6455 | If the @a rectangles parameter is <tt>NULL</tt> then the value of the
|
---|
6456 | @a count parameter is ignored and the number of elements necessary to
|
---|
6457 | describe the current visible region is returned in @a countCopied.
|
---|
6458 |
|
---|
6459 | If @a rectangles is not <tt>NULL</tt> but @a count is less
|
---|
6460 | than the required number of elements to store region data, the method
|
---|
6461 | will report a failure. If @a count is equal or greater than the
|
---|
6462 | required number of elements, then the actual number of elements copied
|
---|
6463 | to the provided array will be returned in @a countCopied.
|
---|
6464 |
|
---|
6465 | <note>
|
---|
6466 | The address of the provided array must be in the process space of
|
---|
6467 | this IFramebuffer object.
|
---|
6468 | </note>
|
---|
6469 | </desc>
|
---|
6470 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
6471 | <desc>Pointer to the <tt>RTRECT</tt> array to receive region data.</desc>
|
---|
6472 | </param>
|
---|
6473 | <param name="count" type="unsigned long" dir="in">
|
---|
6474 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
6475 | </param>
|
---|
6476 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
6477 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
6478 | </param>
|
---|
6479 | </method>
|
---|
6480 |
|
---|
6481 | <method name="setVisibleRegion">
|
---|
6482 | <desc>
|
---|
6483 | Suggests a new visible region to this framebuffer. This region
|
---|
6484 | represents the area of the VM display which is a union of regions of
|
---|
6485 | all top-level windows of the guest operating system running inside the
|
---|
6486 | VM (if the Guest Additions for this system support this
|
---|
6487 | functionality). This information may be used by the frontends to
|
---|
6488 | implement the seamless desktop integration feature.
|
---|
6489 |
|
---|
6490 | <note>
|
---|
6491 | The address of the provided array must be in the process space of
|
---|
6492 | this IFramebuffer object.
|
---|
6493 | </note>
|
---|
6494 | <note>
|
---|
6495 | The IFramebuffer implementation must make a copy of the provided
|
---|
6496 | array of rectangles.
|
---|
6497 | </note>
|
---|
6498 | </desc>
|
---|
6499 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
6500 | <desc>Pointer to the <tt>RTRECT</tt> array.</desc>
|
---|
6501 | </param>
|
---|
6502 | <param name="count" type="unsigned long" dir="in">
|
---|
6503 | <desc>Number of <tt>RTRECT</tt> elements in the @a rectangles array.</desc>
|
---|
6504 | </param>
|
---|
6505 | </method>
|
---|
6506 |
|
---|
6507 | </interface>
|
---|
6508 |
|
---|
6509 | <interface
|
---|
6510 | name="IFramebufferOverlay" extends="IFrameBuffer"
|
---|
6511 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
6512 | wsmap="suppress"
|
---|
6513 | >
|
---|
6514 | <desc>
|
---|
6515 | An alpha blended overlay for displaying status icons above an IFramebuffer.
|
---|
6516 | It is always created not visible, so that it must be explicitly shown. It
|
---|
6517 | only covers a portion of the IFramebuffer, determined by its width, height
|
---|
6518 | and co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
6519 | that order) format, and may be written to directly. Do re-read the width
|
---|
6520 | though, after setting it, as it may be adjusted (increased) to make it more
|
---|
6521 | suitable for the front end.
|
---|
6522 | </desc>
|
---|
6523 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
6524 | <desc>X position of the overlay, relative to the framebuffer.</desc>
|
---|
6525 | </attribute>
|
---|
6526 |
|
---|
6527 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
6528 | <desc>Y position of the overlay, relative to the framebuffer.</desc>
|
---|
6529 | </attribute>
|
---|
6530 |
|
---|
6531 | <attribute name="visible" type="boolean" readonly="no">
|
---|
6532 | <desc>
|
---|
6533 | Whether the overlay is currently visible.
|
---|
6534 | </desc>
|
---|
6535 | </attribute>
|
---|
6536 |
|
---|
6537 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
6538 | <desc>
|
---|
6539 | The global alpha value for the overlay. This may or may not be
|
---|
6540 | supported by a given front end.
|
---|
6541 | </desc>
|
---|
6542 | </attribute>
|
---|
6543 |
|
---|
6544 | <method name="move">
|
---|
6545 | <desc>
|
---|
6546 | Changes the overlay's position relative to the IFramebuffer.
|
---|
6547 | </desc>
|
---|
6548 | <param name="x" type="unsigned long" dir="in"/>
|
---|
6549 | <param name="y" type="unsigned long" dir="in"/>
|
---|
6550 | </method>
|
---|
6551 |
|
---|
6552 | </interface>
|
---|
6553 |
|
---|
6554 | <interface
|
---|
6555 | name="IDisplay" extends="$unknown"
|
---|
6556 | uuid="09789f63-4525-48e5-a5e4-1080453b0eab"
|
---|
6557 | wsmap="suppress"
|
---|
6558 | >
|
---|
6559 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
6560 | <desc>Current display width.</desc>
|
---|
6561 | </attribute>
|
---|
6562 |
|
---|
6563 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
6564 | <desc>Current display height.</desc>
|
---|
6565 | </attribute>
|
---|
6566 |
|
---|
6567 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
6568 | <desc>
|
---|
6569 | Current guest display color depth. Note that this may differ
|
---|
6570 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
6571 | </desc>
|
---|
6572 | </attribute>
|
---|
6573 |
|
---|
6574 | <method name="setupInternalFramebuffer">
|
---|
6575 | <desc>
|
---|
6576 | Prepares an internally managed framebuffer.
|
---|
6577 | </desc>
|
---|
6578 | <param name="depth" type="unsigned long" dir="in"/>
|
---|
6579 | </method>
|
---|
6580 |
|
---|
6581 | <method name="lockFramebuffer">
|
---|
6582 | <desc>
|
---|
6583 | Requests access to the internal framebuffer.
|
---|
6584 | </desc>
|
---|
6585 | <param name="address" type="octet" mod="ptr" dir="return"/>
|
---|
6586 | </method>
|
---|
6587 |
|
---|
6588 | <method name="unlockFramebuffer">
|
---|
6589 | <desc>
|
---|
6590 | Releases access to the internal framebuffer.
|
---|
6591 | </desc>
|
---|
6592 | </method>
|
---|
6593 |
|
---|
6594 | <method name="registerExternalFramebuffer">
|
---|
6595 | <desc>
|
---|
6596 | Registers an external framebuffer.
|
---|
6597 | </desc>
|
---|
6598 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
6599 | </method>
|
---|
6600 |
|
---|
6601 | <method name="setFramebuffer">
|
---|
6602 | <desc>
|
---|
6603 | Sets the framebuffer for given screen.
|
---|
6604 | </desc>
|
---|
6605 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
6606 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
6607 | </method>
|
---|
6608 |
|
---|
6609 | <method name="getFramebuffer">
|
---|
6610 | <desc>
|
---|
6611 | Queries the framebuffer for given screen.
|
---|
6612 | </desc>
|
---|
6613 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
6614 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
6615 | <param name="xOrigin" type="long" dir="out"/>
|
---|
6616 | <param name="yOrigin" type="long" dir="out"/>
|
---|
6617 | </method>
|
---|
6618 |
|
---|
6619 | <method name="setVideoModeHint">
|
---|
6620 | <desc>
|
---|
6621 | Asks VirtualBox to request the given video mode from
|
---|
6622 | the guest. This is just a hint and it cannot be guaranteed
|
---|
6623 | that the requested resolution will be used. Guest Additions
|
---|
6624 | are required for the request to be seen by guests. The caller
|
---|
6625 | should issue the request and wait for a resolution change and
|
---|
6626 | after a timeout retry.
|
---|
6627 | Specifying "0" for either width and height or the color depth
|
---|
6628 | means that the dimensions or color depth should not be changed.
|
---|
6629 | It is possible to specify the number of the guest display
|
---|
6630 | that has to be resized, if guest supports multimonitor configuration.
|
---|
6631 | The display value 0 means primary display, 1 - first secondary.
|
---|
6632 | </desc>
|
---|
6633 | <param name="width" type="unsigned long" dir="in"/>
|
---|
6634 | <param name="height" type="unsigned long" dir="in"/>
|
---|
6635 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
6636 | <param name="display" type="unsigned long" dir="in"/>
|
---|
6637 | </method>
|
---|
6638 |
|
---|
6639 | <method name="setSeamlessMode">
|
---|
6640 | <desc>
|
---|
6641 | Current guest seamless mode.
|
---|
6642 | </desc>
|
---|
6643 | <param name="enabled" type="boolean" dir="in"/>
|
---|
6644 | </method>
|
---|
6645 |
|
---|
6646 | <method name="takeScreenShot">
|
---|
6647 | <desc>
|
---|
6648 | Takes a screen shot of the requested size and copies it to the
|
---|
6649 | 32-bpp buffer allocated by the caller.
|
---|
6650 | </desc>
|
---|
6651 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
6652 | <param name="width" type="unsigned long" dir="in"/>
|
---|
6653 | <param name="height" type="unsigned long" dir="in"/>
|
---|
6654 | </method>
|
---|
6655 |
|
---|
6656 | <method name="drawToScreen">
|
---|
6657 | <desc>
|
---|
6658 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
6659 | to the given point on the VM display.
|
---|
6660 | </desc>
|
---|
6661 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
6662 | <param name="x" type="unsigned long" dir="in"/>
|
---|
6663 | <param name="y" type="unsigned long" dir="in"/>
|
---|
6664 | <param name="width" type="unsigned long" dir="in"/>
|
---|
6665 | <param name="height" type="unsigned long" dir="in"/>
|
---|
6666 | </method>
|
---|
6667 |
|
---|
6668 | <method name="invalidateAndUpdate">
|
---|
6669 | <desc>
|
---|
6670 | Does a full invalidation of the VM display and instructs the VM
|
---|
6671 | to update it.
|
---|
6672 | </desc>
|
---|
6673 | </method>
|
---|
6674 |
|
---|
6675 | <method name="resizeCompleted">
|
---|
6676 | <desc>
|
---|
6677 | Signals that a framebuffer has completed the resize operation.
|
---|
6678 | </desc>
|
---|
6679 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
6680 | </method>
|
---|
6681 |
|
---|
6682 | <method name="updateCompleted">
|
---|
6683 | <desc>
|
---|
6684 | Signals that a framebuffer has completed the update operation.
|
---|
6685 | </desc>
|
---|
6686 | </method>
|
---|
6687 |
|
---|
6688 | </interface>
|
---|
6689 |
|
---|
6690 | <!--
|
---|
6691 | // INetworkAdapter
|
---|
6692 | /////////////////////////////////////////////////////////////////////////
|
---|
6693 | -->
|
---|
6694 |
|
---|
6695 | <enum
|
---|
6696 | name="NetworkAttachmentType"
|
---|
6697 | uuid="8730d899-d036-4925-bc63-e58f3486f4bf"
|
---|
6698 | >
|
---|
6699 | <const name="NoNetworkAttachment" value="0"/>
|
---|
6700 | <const name="NATNetworkAttachment" value="1"/>
|
---|
6701 | <const name="HostInterfaceNetworkAttachment" value="2"/>
|
---|
6702 | <const name="InternalNetworkAttachment" value="3"/>
|
---|
6703 | </enum>
|
---|
6704 |
|
---|
6705 | <enum
|
---|
6706 | name="NetworkAdapterType"
|
---|
6707 | uuid="156b17b9-5d61-4d54-be90-62e37dda848d"
|
---|
6708 | >
|
---|
6709 | <const name="InvalidNetworkAdapterType" value="0"/>
|
---|
6710 | <const name="NetworkAdapterAm79C970A" value="1"/>
|
---|
6711 | <const name="NetworkAdapterAm79C973" value="2"/>
|
---|
6712 | </enum>
|
---|
6713 |
|
---|
6714 | <interface
|
---|
6715 | name="INetworkAdapter" extends="$unknown"
|
---|
6716 | uuid="78dfc978-ecb0-44ee-8b20-54549dd4539e"
|
---|
6717 | wsmap="managed"
|
---|
6718 | >
|
---|
6719 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
6720 | <desc>
|
---|
6721 | Type of the virtual network adapter. Depending on this value,
|
---|
6722 | VirtualBox will provide a different virtual network hardware
|
---|
6723 | to the guest.
|
---|
6724 | </desc>
|
---|
6725 | </attribute>
|
---|
6726 |
|
---|
6727 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
6728 | <desc>
|
---|
6729 | Slot number this adapter is plugged into. Corresponds to
|
---|
6730 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
6731 | to obtain this instance.
|
---|
6732 | </desc>
|
---|
6733 | </attribute>
|
---|
6734 |
|
---|
6735 | <attribute name="enabled" type="boolean">
|
---|
6736 | <desc>
|
---|
6737 | Flag whether the network adapter is present in the
|
---|
6738 | guest system. If disabled, the virtual guest hardware will
|
---|
6739 | not contain this network adapter. Can only be changed when
|
---|
6740 | the VM is not running.
|
---|
6741 | </desc>
|
---|
6742 | </attribute>
|
---|
6743 |
|
---|
6744 | <attribute name="MACAddress" type="wstring">
|
---|
6745 | <desc>
|
---|
6746 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
6747 | it to NULL, VirtualBox will generate a unique MAC address.
|
---|
6748 | </desc>
|
---|
6749 | </attribute>
|
---|
6750 |
|
---|
6751 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
6752 |
|
---|
6753 | <attribute name="hostInterface" type="wstring">
|
---|
6754 | <desc>
|
---|
6755 | Name of the Host Network Interface that is currently in use. NULL will be returned
|
---|
6756 | if no device has been allocated. On Linux, setting this refers to a permanent TAP
|
---|
6757 | device. However, a file descriptor has precedence over the interface name on Linux.
|
---|
6758 | Note that when VBox allocates a TAP device, this property will not be set, i.e. the
|
---|
6759 | interface name would have to be determined using the file descriptor and /proc/self/fd.
|
---|
6760 | </desc>
|
---|
6761 | </attribute>
|
---|
6762 |
|
---|
6763 | <if target="xpidl">
|
---|
6764 | <attribute name="TAPFileDescriptor" type="long">
|
---|
6765 | <desc>
|
---|
6766 | File descriptor of the TAP device. It can either be setup by the caller
|
---|
6767 | which has to supply an existing valid file handle allocated in the parent
|
---|
6768 | process of the VM process or allocated by VirtualBox. The value is -1 if it
|
---|
6769 | has not been defined. This property is non persistent, i.e. it will not be
|
---|
6770 | stored in the VM's configuration data and thus has to be set at each startup.
|
---|
6771 | </desc>
|
---|
6772 | </attribute>
|
---|
6773 | <attribute name="TAPSetupApplication" type="wstring">
|
---|
6774 | <desc>
|
---|
6775 | Application to start to configure the TAP device.
|
---|
6776 | It is being passed two parameters, 1) the file handle (as ascii),
|
---|
6777 | 2) the TAP device name if it is available.
|
---|
6778 | </desc>
|
---|
6779 | </attribute>
|
---|
6780 | <attribute name="TAPTerminateApplication" type="wstring">
|
---|
6781 | <desc>
|
---|
6782 | Application to start before closing a TAP device.
|
---|
6783 | It is being passed two parameters, 1) the file handle (as ascii),
|
---|
6784 | 2) the TAP device name if it is available.
|
---|
6785 | </desc>
|
---|
6786 | </attribute>
|
---|
6787 | </if>
|
---|
6788 |
|
---|
6789 | <attribute name="internalNetwork" type="wstring">
|
---|
6790 | <desc>
|
---|
6791 | Name of the internal network the VM is attached to.
|
---|
6792 | </desc>
|
---|
6793 | </attribute>
|
---|
6794 |
|
---|
6795 | <attribute name="cableConnected" type="boolean">
|
---|
6796 | <desc>
|
---|
6797 | Flag whether the adapter reports the cable as connected or not.
|
---|
6798 | It can be used to report offline situations to a VM.
|
---|
6799 | </desc>
|
---|
6800 | </attribute>
|
---|
6801 |
|
---|
6802 | <attribute name="traceEnabled" type="boolean">
|
---|
6803 | <desc>
|
---|
6804 | Flag whether network traffic from/to the network card should be traced.
|
---|
6805 | Can only be toggled when the VM is turned off.
|
---|
6806 | </desc>
|
---|
6807 | </attribute>
|
---|
6808 |
|
---|
6809 | <attribute name="traceFile" type="wstring">
|
---|
6810 | <desc>
|
---|
6811 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
6812 | will be used.
|
---|
6813 | </desc>
|
---|
6814 | </attribute>
|
---|
6815 |
|
---|
6816 | <method name="attachToNAT">
|
---|
6817 | <desc>
|
---|
6818 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
6819 | </desc>
|
---|
6820 | </method>
|
---|
6821 |
|
---|
6822 | <method name="attachToHostInterface">
|
---|
6823 | <desc>
|
---|
6824 | Attach the network adapter to a host interface. On Linux, the TAP
|
---|
6825 | setup application will be executed if configured and unless a device
|
---|
6826 | name and/or file descriptor has been set, a new TAP interface will be
|
---|
6827 | created.
|
---|
6828 | </desc>
|
---|
6829 | </method>
|
---|
6830 |
|
---|
6831 | <method name="attachToInternalNetwork">
|
---|
6832 | <desc>
|
---|
6833 | Attach the network adapter to an internal network.
|
---|
6834 | </desc>
|
---|
6835 | </method>
|
---|
6836 |
|
---|
6837 | <method name="detach">
|
---|
6838 | <desc>
|
---|
6839 | Detach the network adapter
|
---|
6840 | </desc>
|
---|
6841 | </method>
|
---|
6842 | </interface>
|
---|
6843 |
|
---|
6844 |
|
---|
6845 | <!--
|
---|
6846 | // ISerialPort
|
---|
6847 | /////////////////////////////////////////////////////////////////////////
|
---|
6848 | -->
|
---|
6849 |
|
---|
6850 | <interface
|
---|
6851 | name="ISerialPort" extends="$unknown"
|
---|
6852 | uuid="a5ab0989-0ca9-4d5e-b565-f7739b92bb0c"
|
---|
6853 | wsmap="managed"
|
---|
6854 | >
|
---|
6855 |
|
---|
6856 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
6857 | <desc>
|
---|
6858 | Slot number this serial port is plugged into. Corresponds to
|
---|
6859 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
6860 | to obtain this instance.
|
---|
6861 | </desc>
|
---|
6862 | </attribute>
|
---|
6863 |
|
---|
6864 | <attribute name="enabled" type="boolean">
|
---|
6865 | <desc>
|
---|
6866 | Flag whether the serial port is enabled. If it is disabled,
|
---|
6867 | the serial port will not be reported to the guest.
|
---|
6868 | </desc>
|
---|
6869 | </attribute>
|
---|
6870 |
|
---|
6871 | <attribute name="IOBase" type="unsigned long">
|
---|
6872 | <desc>Gets the I/O base of the serial port.</desc>
|
---|
6873 | </attribute>
|
---|
6874 |
|
---|
6875 | <attribute name="IRQ" type="unsigned long">
|
---|
6876 | <desc>Gets the IRQ of the serial port.</desc>
|
---|
6877 | </attribute>
|
---|
6878 |
|
---|
6879 | <attribute name="pipe" type="wstring">
|
---|
6880 | <desc>Gets the name of the host pipe connected to the serial port.</desc>
|
---|
6881 | </attribute>
|
---|
6882 |
|
---|
6883 | <attribute name="server" type="boolean">
|
---|
6884 | <desc>Flag whether this serial port acts as a server or a client.</desc>
|
---|
6885 | </attribute>
|
---|
6886 |
|
---|
6887 | </interface>
|
---|
6888 |
|
---|
6889 | <!--
|
---|
6890 | // IParallelPort
|
---|
6891 | /////////////////////////////////////////////////////////////////////////
|
---|
6892 | -->
|
---|
6893 |
|
---|
6894 | <interface
|
---|
6895 | name="IParallelPort" extends="$unknown"
|
---|
6896 | uuid="6d7f2385-8ce3-4342-a042-61fa1882354b"
|
---|
6897 | wsmap="managed"
|
---|
6898 | >
|
---|
6899 |
|
---|
6900 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
6901 | <desc>
|
---|
6902 | Slot number this parallel port is plugged into. Corresponds to
|
---|
6903 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
6904 | to obtain this instance.
|
---|
6905 | </desc>
|
---|
6906 | </attribute>
|
---|
6907 |
|
---|
6908 | <attribute name="enabled" type="boolean">
|
---|
6909 | <desc>
|
---|
6910 | Flag whether the parallel port is enabled. If it is disabled,
|
---|
6911 | the parallel port will not be reported to the guest.
|
---|
6912 | </desc>
|
---|
6913 | </attribute>
|
---|
6914 |
|
---|
6915 | <attribute name="IOBase" type="unsigned long">
|
---|
6916 | <desc>Gets the I/O base of the parallel port.</desc>
|
---|
6917 | </attribute>
|
---|
6918 |
|
---|
6919 | <attribute name="IRQ" type="unsigned long">
|
---|
6920 | <desc>Gets the IRQ of the parallel port.</desc>
|
---|
6921 | </attribute>
|
---|
6922 |
|
---|
6923 | <attribute name="DevicePath" type="wstring">
|
---|
6924 | <desc>Gets the of the device path connected to the parallel port.</desc>
|
---|
6925 | </attribute>
|
---|
6926 |
|
---|
6927 | </interface>
|
---|
6928 |
|
---|
6929 |
|
---|
6930 | <!--
|
---|
6931 | // IMachineDebugger
|
---|
6932 | /////////////////////////////////////////////////////////////////////////
|
---|
6933 | -->
|
---|
6934 |
|
---|
6935 | <interface
|
---|
6936 | name="IMachineDebugger" extends="$unknown"
|
---|
6937 | uuid="358b05cd-6d43-42b9-9c2b-75d466a58cfc"
|
---|
6938 | wsmap="suppress"
|
---|
6939 | >
|
---|
6940 | <method name="resetStats">
|
---|
6941 | <desc>
|
---|
6942 | Reset VM statistics.
|
---|
6943 | </desc>
|
---|
6944 | </method>
|
---|
6945 |
|
---|
6946 | <method name="dumpStats">
|
---|
6947 | <desc>
|
---|
6948 | Dumps VM statistics.
|
---|
6949 | </desc>
|
---|
6950 | </method>
|
---|
6951 |
|
---|
6952 | <attribute name="singlestep" type="boolean">
|
---|
6953 | <desc>Switch for enabling singlestepping.</desc>
|
---|
6954 | </attribute>
|
---|
6955 |
|
---|
6956 | <attribute name="recompileUser" type="boolean">
|
---|
6957 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
6958 | </attribute>
|
---|
6959 |
|
---|
6960 | <attribute name="recompileSupervisor" type="boolean">
|
---|
6961 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
6962 | </attribute>
|
---|
6963 |
|
---|
6964 | <attribute name="PATMEnabled" type="boolean">
|
---|
6965 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
6966 | </attribute>
|
---|
6967 |
|
---|
6968 | <attribute name="CSAMEnabled" type="boolean">
|
---|
6969 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
6970 | </attribute>
|
---|
6971 |
|
---|
6972 | <attribute name="logEnabled" type="boolean">
|
---|
6973 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
6974 | </attribute>
|
---|
6975 |
|
---|
6976 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
6977 | <desc>
|
---|
6978 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
6979 | virtualization extensions
|
---|
6980 | </desc>
|
---|
6981 | </attribute>
|
---|
6982 |
|
---|
6983 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
6984 | <desc>
|
---|
6985 | The rate at which the virtual time runs expressed as a percentage.
|
---|
6986 | The accepted range is 2% to 20000%.
|
---|
6987 | </desc>
|
---|
6988 | </attribute>
|
---|
6989 |
|
---|
6990 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
6991 |
|
---|
6992 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
6993 | <desc>
|
---|
6994 | Gets the VM handle. This is only for internal use while
|
---|
6995 | we carve the details of this interface.
|
---|
6996 | </desc>
|
---|
6997 | </attribute>
|
---|
6998 |
|
---|
6999 | </interface>
|
---|
7000 |
|
---|
7001 | <!--
|
---|
7002 | // IUSBController
|
---|
7003 | /////////////////////////////////////////////////////////////////////////
|
---|
7004 | -->
|
---|
7005 |
|
---|
7006 | <interface
|
---|
7007 | name="IUSBController" extends="$unknown"
|
---|
7008 | uuid="bf21872c-265c-41a9-99d4-ce0dcdc34a91"
|
---|
7009 | wsmap="managed"
|
---|
7010 | >
|
---|
7011 | <attribute name="enabled" type="boolean">
|
---|
7012 | <desc>
|
---|
7013 | Flag whether the USB controller is present in the
|
---|
7014 | guest system. If disabled, the virtual guest hardware will
|
---|
7015 | not contain any USB controller. Can only be changed when
|
---|
7016 | the VM is powered off.
|
---|
7017 | </desc>
|
---|
7018 | </attribute>
|
---|
7019 |
|
---|
7020 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
7021 | <desc>
|
---|
7022 | USB standard version which the controller implements.
|
---|
7023 | This is a BCD which means that the major version is in the
|
---|
7024 | high byte and minor version is in the low byte.
|
---|
7025 | </desc>
|
---|
7026 | </attribute>
|
---|
7027 |
|
---|
7028 | <attribute name="deviceFilters" type="IUSBDeviceFilterCollection" readonly="yes">
|
---|
7029 | <desc>
|
---|
7030 | List of USB device filters associated with the machine.
|
---|
7031 |
|
---|
7032 | If the machine is currently running, these filters are activated
|
---|
7033 | every time a new (supported) USB device is attached to the host
|
---|
7034 | computer that was not ignored by global filters
|
---|
7035 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
7036 |
|
---|
7037 | These filters are also activated when the machine is powered up.
|
---|
7038 | They are run against a list of all currently available USB
|
---|
7039 | devices (in states
|
---|
7040 | <link to="USBDeviceState::USBDeviceAvailable">USBDeviceAvailable</link>,
|
---|
7041 | <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>,
|
---|
7042 | <link to="USBDeviceState::USBDeviceHeld">USBDeviceHeld</link>)
|
---|
7043 | that were not previously ignored by global filters.
|
---|
7044 |
|
---|
7045 | If at least one filter matches the USB device in question, this
|
---|
7046 | device is automatically captured (attached to) the virtual USB
|
---|
7047 | controller of this machine.
|
---|
7048 |
|
---|
7049 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
7050 | </desc>
|
---|
7051 | </attribute>
|
---|
7052 |
|
---|
7053 | <method name="createDeviceFilter">
|
---|
7054 | <desc>
|
---|
7055 | Creates a new USB device filter. All attributes except
|
---|
7056 | the filter name are set to <tt>null</tt> (any match),
|
---|
7057 | <i>active</i> is <tt>false</tt> (the filter is not active).
|
---|
7058 |
|
---|
7059 | The created filter can then be added to the list of filters using
|
---|
7060 | <link to="#insertDeviceFilter()"/>.
|
---|
7061 |
|
---|
7062 | <see>#deviceFilters</see>
|
---|
7063 | </desc>
|
---|
7064 | <param name="name" type="wstring" dir="in">
|
---|
7065 | <desc>
|
---|
7066 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
7067 | for more info.
|
---|
7068 | </desc>
|
---|
7069 | </param>
|
---|
7070 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
7071 | <desc>Created filter object.</desc>
|
---|
7072 | </param>
|
---|
7073 | </method>
|
---|
7074 |
|
---|
7075 | <method name="insertDeviceFilter">
|
---|
7076 | <desc>
|
---|
7077 | Inserts the given USB device to the specified position
|
---|
7078 | in the list of filters.
|
---|
7079 |
|
---|
7080 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
7081 | position is equal to or greater than the number of elements in
|
---|
7082 | the list, the filter is added to the end of the collection.
|
---|
7083 |
|
---|
7084 | <note>
|
---|
7085 | Duplicates are not allowed, so an attempt to inster a
|
---|
7086 | filter that is already in the collection, will return an
|
---|
7087 | error.
|
---|
7088 | </note>
|
---|
7089 |
|
---|
7090 | <see>#deviceFilters</see>
|
---|
7091 | </desc>
|
---|
7092 | <param name="position" type="unsigned long" dir="in">
|
---|
7093 | <desc>Position to insert the filter to.</desc>
|
---|
7094 | </param>
|
---|
7095 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
7096 | <desc>USB device filter to insert.</desc>
|
---|
7097 | </param>
|
---|
7098 | </method>
|
---|
7099 |
|
---|
7100 | <method name="removeDeviceFilter">
|
---|
7101 | <desc>
|
---|
7102 | Removes a USB device filter from the specified position in the
|
---|
7103 | list of filters.
|
---|
7104 |
|
---|
7105 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
7106 | position equal to or greater than the number of elements in
|
---|
7107 | the list will produce an error.
|
---|
7108 |
|
---|
7109 | <see>#deviceFilters</see>
|
---|
7110 | </desc>
|
---|
7111 | <param name="position" type="unsigned long" dir="in">
|
---|
7112 | <desc>Position to remove the filter from.</desc>
|
---|
7113 | </param>
|
---|
7114 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
7115 | <desc>Removed USB device filter.</desc>
|
---|
7116 | </param>
|
---|
7117 | </method>
|
---|
7118 |
|
---|
7119 | </interface>
|
---|
7120 |
|
---|
7121 |
|
---|
7122 | <!--
|
---|
7123 | // IUSBDevice
|
---|
7124 | /////////////////////////////////////////////////////////////////////////
|
---|
7125 | -->
|
---|
7126 |
|
---|
7127 | <enumerator
|
---|
7128 | name="IUSBDeviceEnumerator" type="IUSBDevice"
|
---|
7129 | uuid="aefe00f7-eb8a-454b-9ea4-fd5ad93c0e99"
|
---|
7130 | />
|
---|
7131 |
|
---|
7132 | <collection
|
---|
7133 | name="IUSBDeviceCollection" type="IUSBDevice"
|
---|
7134 | enumerator="IUSBDeviceEnumerator"
|
---|
7135 | uuid="e31f3248-90dd-4ca2-95f0-6b36042d96a2"
|
---|
7136 | readonly="yes"
|
---|
7137 | >
|
---|
7138 | <method name="findById">
|
---|
7139 | <desc>
|
---|
7140 | Searches this collection for a USB device with the given UUID.
|
---|
7141 | <note>
|
---|
7142 | The method returns an error if the given UUID does not
|
---|
7143 | correspond to any USB device in the collection.
|
---|
7144 | </note>
|
---|
7145 | <see>IUSBDevice::id</see>
|
---|
7146 | </desc>
|
---|
7147 | <param name="id" type="uuid" dir="in">
|
---|
7148 | <desc>UUID of the USB device to search for.</desc>
|
---|
7149 | </param>
|
---|
7150 | <param name="device" type="IUSBDevice" dir="return">
|
---|
7151 | <desc>Found USB device object.</desc>
|
---|
7152 | </param>
|
---|
7153 | </method>
|
---|
7154 |
|
---|
7155 | <method name="findByAddress">
|
---|
7156 | <desc>
|
---|
7157 | Searches this collection for a USB device with the given
|
---|
7158 | host address.
|
---|
7159 | <note>
|
---|
7160 | The method returns an error if the given address does not
|
---|
7161 | correspond to any USB device in the collection.
|
---|
7162 | </note>
|
---|
7163 | <see>IUSBDevice::address</see>
|
---|
7164 | </desc>
|
---|
7165 | <param name="name" type="wstring" dir="in">
|
---|
7166 | <desc>
|
---|
7167 | Address of the USB device (as assigned by the host) to
|
---|
7168 | search for.
|
---|
7169 | </desc>
|
---|
7170 | </param>
|
---|
7171 | <param name="device" type="IUSBDevice" dir="return">
|
---|
7172 | <desc>Found USB device object.</desc>
|
---|
7173 | </param>
|
---|
7174 | </method>
|
---|
7175 |
|
---|
7176 | </collection>
|
---|
7177 |
|
---|
7178 | <interface
|
---|
7179 | name="IUSBDevice" extends="$unknown"
|
---|
7180 | uuid="c5ab8d05-1999-4e48-ae34-cdeb235aacf0"
|
---|
7181 | wsmap="managed"
|
---|
7182 | >
|
---|
7183 | <desc>
|
---|
7184 | The IUSBDevice interface represents a USB device captured by
|
---|
7185 | (attached to) a running virtual machine's USB controller.
|
---|
7186 | <see>IConsole::USBDevices</see>
|
---|
7187 | </desc>
|
---|
7188 |
|
---|
7189 | <attribute name="id" type="uuid" readonly="yes">
|
---|
7190 | <desc>
|
---|
7191 | Unique USB device ID. This ID is built from #vendorId,
|
---|
7192 | #productId, #revision and #serialNumber.
|
---|
7193 | </desc>
|
---|
7194 | </attribute>
|
---|
7195 |
|
---|
7196 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
7197 | <desc>Vendor ID.</desc>
|
---|
7198 | </attribute>
|
---|
7199 |
|
---|
7200 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
7201 | <desc>Product ID.</desc>
|
---|
7202 | </attribute>
|
---|
7203 |
|
---|
7204 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
7205 | <desc>
|
---|
7206 | Product revision number. This is a packed BCD represented as
|
---|
7207 | unsigned short. The high byte is the integer part and the low
|
---|
7208 | byte is the decimal.
|
---|
7209 | </desc>
|
---|
7210 | </attribute>
|
---|
7211 |
|
---|
7212 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
7213 | <desc>Manufacturer string.</desc>
|
---|
7214 | </attribute>
|
---|
7215 |
|
---|
7216 | <attribute name="product" type="wstring" readonly="yes">
|
---|
7217 | <desc>Product string.</desc>
|
---|
7218 | </attribute>
|
---|
7219 |
|
---|
7220 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
7221 | <desc>Serial number string.</desc>
|
---|
7222 | </attribute>
|
---|
7223 |
|
---|
7224 | <attribute name="address" type="wstring" readonly="yes">
|
---|
7225 | <desc>Host specific address of the device.</desc>
|
---|
7226 | </attribute>
|
---|
7227 |
|
---|
7228 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
7229 | <desc>
|
---|
7230 | Host USB port number the device is physically
|
---|
7231 | coonected to.
|
---|
7232 | </desc>
|
---|
7233 | </attribute>
|
---|
7234 |
|
---|
7235 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
7236 | <desc>
|
---|
7237 | Whether the device is physically connected to a remote VRDP
|
---|
7238 | client or to a local host machine.
|
---|
7239 | </desc>
|
---|
7240 | </attribute>
|
---|
7241 |
|
---|
7242 | </interface>
|
---|
7243 |
|
---|
7244 |
|
---|
7245 | <!--
|
---|
7246 | // IUSBDeviceFilter
|
---|
7247 | /////////////////////////////////////////////////////////////////////////
|
---|
7248 | -->
|
---|
7249 |
|
---|
7250 | <enumerator
|
---|
7251 | name="IUSBDeviceFilterEnumerator" type="IUSBDeviceFilter"
|
---|
7252 | uuid="8d066d8b-3576-4a22-a387-847840937453"
|
---|
7253 | />
|
---|
7254 |
|
---|
7255 | <collection
|
---|
7256 | name="IUSBDeviceFilterCollection" type="IUSBDeviceFilter"
|
---|
7257 | enumerator="IUSBDeviceFilterEnumerator"
|
---|
7258 | uuid="4fa3fc99-ceb1-4bf5-a9cb-e962d825c1ef"
|
---|
7259 | readonly="yes"
|
---|
7260 | />
|
---|
7261 |
|
---|
7262 | <interface
|
---|
7263 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
7264 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
7265 | wsmap="managed"
|
---|
7266 | >
|
---|
7267 | <desc>
|
---|
7268 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
7269 | to perform actions on a group of USB devices.
|
---|
7270 |
|
---|
7271 | This type of filters is used by running virtual machines to
|
---|
7272 | automatically capture selected USB devices once they are physically
|
---|
7273 | attached to the host computer.
|
---|
7274 |
|
---|
7275 | A USB device is matched to the given device filter if and only if all
|
---|
7276 | attributes of the device match the corresponding attributes of the
|
---|
7277 | filter (that is, attributes are joined together using the logical AND
|
---|
7278 | operation). On the other hand, all together, filters in the list of
|
---|
7279 | filters carry the semantics of the logical OR operation. So if it is
|
---|
7280 | desirable to create a match like "this vendor id OR this product id",
|
---|
7281 | one needs to create two filters and specify "any match" (see below)
|
---|
7282 | for unused attributes.
|
---|
7283 |
|
---|
7284 | All filter attributes used for matching are strings. Each string
|
---|
7285 | is an expression representing a set of values of the corresponding
|
---|
7286 | device attribute, that will match the given filter. Currently, the
|
---|
7287 | following filtering expressions are supported:
|
---|
7288 |
|
---|
7289 | <ul>
|
---|
7290 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
7291 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
7292 | The format of the string is:
|
---|
7293 |
|
---|
7294 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
7295 |
|
---|
7296 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
7297 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
7298 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
7299 | is ommitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
7300 | is assumed; if <tt>n</tt> is ommitted after a dash, the maximum
|
---|
7301 | possible integer is assummed.
|
---|
7302 | </li>
|
---|
7303 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
7304 | boolean device attributes. The format of the string is:
|
---|
7305 |
|
---|
7306 | <tt>true|false|yes|no|0|1</tt>
|
---|
7307 |
|
---|
7308 | </li>
|
---|
7309 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
7310 | device attribute. Any string that does't start with <tt>int:</tt>
|
---|
7311 | represents the exact match. String device attributes are compared to
|
---|
7312 | this string including case of symbols. Integer attributes are first
|
---|
7313 | converted to a string (see individual filter attributes) and then
|
---|
7314 | compared ignoring case.
|
---|
7315 |
|
---|
7316 | </li>
|
---|
7317 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
7318 | will match the given filter. An empty or <tt>null</tt> string is
|
---|
7319 | used to construct this type of filtering expressions.
|
---|
7320 |
|
---|
7321 | </li>
|
---|
7322 | </ul>
|
---|
7323 |
|
---|
7324 | <note>
|
---|
7325 | On the Windows host platform, interval filters are not currently
|
---|
7326 | available. Also all string filter attributes
|
---|
7327 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
7328 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
7329 | <i>any match</i> no matter what string expression is specified.
|
---|
7330 | </note>
|
---|
7331 |
|
---|
7332 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
7333 | </desc>
|
---|
7334 |
|
---|
7335 | <attribute name="name" type="wstring">
|
---|
7336 | <desc>
|
---|
7337 | Visible name for this filter.
|
---|
7338 | This name is used to visually distungish one filter from another,
|
---|
7339 | so it can neither be <tt>null</tt> nor an empty string.
|
---|
7340 | </desc>
|
---|
7341 | </attribute>
|
---|
7342 |
|
---|
7343 | <attribute name="active" type="boolean">
|
---|
7344 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
7345 | </attribute>
|
---|
7346 |
|
---|
7347 | <attribute name="vendorId" type="wstring">
|
---|
7348 | <desc>
|
---|
7349 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
7350 | The string representation for the <i>exact matching</i>
|
---|
7351 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
7352 | (including leading zeroes).
|
---|
7353 | </desc>
|
---|
7354 | </attribute>
|
---|
7355 |
|
---|
7356 | <attribute name="productId" type="wstring">
|
---|
7357 | <desc>
|
---|
7358 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
7359 | The string representation for the <i>exact matching</i>
|
---|
7360 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
7361 | (including leading zeroes).
|
---|
7362 | </desc>
|
---|
7363 | </attribute>
|
---|
7364 |
|
---|
7365 | <attribute name="revision" type="wstring">
|
---|
7366 | <desc>
|
---|
7367 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
7368 | filter. The string representation for the <i>exact matching</i>
|
---|
7369 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
7370 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
7371 | decimal digit of its fractional part (including leading and
|
---|
7372 | trailing zeroes).
|
---|
7373 | Note that for interval filters, it's best to use the hexadecimal
|
---|
7374 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
7375 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
7376 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
7377 | </desc>
|
---|
7378 | </attribute>
|
---|
7379 |
|
---|
7380 | <attribute name="manufacturer" type="wstring">
|
---|
7381 | <desc>
|
---|
7382 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
7383 | </desc>
|
---|
7384 | </attribute>
|
---|
7385 |
|
---|
7386 | <attribute name="product" type="wstring">
|
---|
7387 | <desc>
|
---|
7388 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
7389 | </desc>
|
---|
7390 | </attribute>
|
---|
7391 |
|
---|
7392 | <attribute name="serialNumber" type="wstring">
|
---|
7393 | <desc>
|
---|
7394 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
7395 | </desc>
|
---|
7396 | </attribute>
|
---|
7397 |
|
---|
7398 | <attribute name="port" type="wstring">
|
---|
7399 | <desc>
|
---|
7400 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
7401 | </desc>
|
---|
7402 | </attribute>
|
---|
7403 |
|
---|
7404 | <attribute name="remote" type="wstring">
|
---|
7405 | <desc>
|
---|
7406 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
7407 | <note>
|
---|
7408 | This filter makes sense only for machine USB filters,
|
---|
7409 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
7410 | </note>
|
---|
7411 | </desc>
|
---|
7412 | </attribute>
|
---|
7413 |
|
---|
7414 | </interface>
|
---|
7415 |
|
---|
7416 |
|
---|
7417 | <!--
|
---|
7418 | // IHostUSBDevice
|
---|
7419 | /////////////////////////////////////////////////////////////////////////
|
---|
7420 | -->
|
---|
7421 |
|
---|
7422 | <enum
|
---|
7423 | name="USBDeviceState"
|
---|
7424 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
7425 | >
|
---|
7426 | <desc>
|
---|
7427 | USB device state. This enumeration represents all possible states
|
---|
7428 | of the USB device physically attached to the host computer regarding
|
---|
7429 | its state on the host computer and availability to guest computers
|
---|
7430 | (all currently running virtual machines).
|
---|
7431 |
|
---|
7432 | Once a supported USB device is attached to the host, global USB
|
---|
7433 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
7434 | either ignore the device, or put ot to #USBDeviceHeld state, or do
|
---|
7435 | nothing. Unless the device is ignored by global filters, filters of
|
---|
7436 | all currently running guests (<link to="IUSBController::deviceFilters"/>)
|
---|
7437 | are activated that can put it to #USBDeviceCaptured state.
|
---|
7438 |
|
---|
7439 | If the device was ignored by global filters, or didn't match
|
---|
7440 | any filters at all (including guest ones), it is handled by the host
|
---|
7441 | in a normal way. In this case, the device state is determined by
|
---|
7442 | the host and can be one of #USBDeviceUnavailable, #USBDeviceBusy or
|
---|
7443 | #USBDeviceAvailable, depending on the current device usage.
|
---|
7444 |
|
---|
7445 | Besides auto-capturing based on filters, the device can be manually
|
---|
7446 | captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its
|
---|
7447 | state is #USBDeviceBusy, #USBDeviceAvailable or #USBDeviceHeld.
|
---|
7448 |
|
---|
7449 | <note>
|
---|
7450 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
7451 | states #USBDeviceBusy and #USBDeviceAvailable are applicable
|
---|
7452 | only to the Linux version of the product. This also means that
|
---|
7453 | (<link to="IConsole::attachUSBDevice()"/>) can only succeed
|
---|
7454 | on Win32 if the device state is #USBDeviceHeld.
|
---|
7455 | </note>
|
---|
7456 |
|
---|
7457 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
7458 | </desc>
|
---|
7459 |
|
---|
7460 | <const name="USBDeviceNotSupported" value="0">
|
---|
7461 | <desc>
|
---|
7462 | Not supported by the VirtualBox server, not available to guests.
|
---|
7463 | </desc>
|
---|
7464 | </const>
|
---|
7465 | <const name="USBDeviceUnavailable" value="1">
|
---|
7466 | <desc>
|
---|
7467 | Being used by the host computer exclusively,
|
---|
7468 | not available to guests.
|
---|
7469 | </desc>
|
---|
7470 | </const>
|
---|
7471 | <const name="USBDeviceBusy" value="2">
|
---|
7472 | <desc>
|
---|
7473 | Being used by the host computer, potentially available to guests.
|
---|
7474 | </desc>
|
---|
7475 | </const>
|
---|
7476 | <const name="USBDeviceAvailable" value="3">
|
---|
7477 | <desc>
|
---|
7478 | Not used by the host computer, available to guests.
|
---|
7479 | The host computer can also start using the device at any time.
|
---|
7480 | </desc>
|
---|
7481 | </const>
|
---|
7482 | <const name="USBDeviceHeld" value="4">
|
---|
7483 | <desc>
|
---|
7484 | Held by the VirtualBox server (ignored by the host computer),
|
---|
7485 | available to guests.
|
---|
7486 | </desc>
|
---|
7487 | </const>
|
---|
7488 | <const name="USBDeviceCaptured" value="5">
|
---|
7489 | <desc>
|
---|
7490 | Captured by one of the guest computers, not available
|
---|
7491 | to anybody else.
|
---|
7492 | </desc>
|
---|
7493 | </const>
|
---|
7494 | </enum>
|
---|
7495 |
|
---|
7496 | <enumerator
|
---|
7497 | name="IHostUSBDeviceEnumerator" type="IHostUSBDevice"
|
---|
7498 | uuid="a0c55136-939f-4d20-b9d3-4d406f08bfa5"
|
---|
7499 | />
|
---|
7500 |
|
---|
7501 | <collection
|
---|
7502 | name="IHostUSBDeviceCollection" type="IHostUSBDevice"
|
---|
7503 | enumerator="IHostUSBDeviceEnumerator"
|
---|
7504 | uuid="f9d3f96d-b027-4994-b589-70bb9ee0d364"
|
---|
7505 | readonly="yes"
|
---|
7506 | >
|
---|
7507 | <method name="findById">
|
---|
7508 | <desc>
|
---|
7509 | Searches this collection for a USB device with the given UUID.
|
---|
7510 | <note>
|
---|
7511 | The method returns an error if the given UUID does not
|
---|
7512 | correspond to any USB device in the collection.
|
---|
7513 | </note>
|
---|
7514 | <see>IHostUSBDevice::id</see>
|
---|
7515 | </desc>
|
---|
7516 | <param name="id" type="uuid" dir="in">
|
---|
7517 | <desc>UUID of the USB device to search for.</desc>
|
---|
7518 | </param>
|
---|
7519 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7520 | <desc>Found USB device object.</desc>
|
---|
7521 | </param>
|
---|
7522 | </method>
|
---|
7523 |
|
---|
7524 | <method name="findByAddress">
|
---|
7525 | <desc>
|
---|
7526 | Searches this collection for a USB device with the given
|
---|
7527 | host address.
|
---|
7528 | <note>
|
---|
7529 | The method returns an error if the given address does not
|
---|
7530 | correspond to any USB device in the collection.
|
---|
7531 | </note>
|
---|
7532 | <see>IHostUSBDevice::address</see>
|
---|
7533 | </desc>
|
---|
7534 | <param name="name" type="wstring" dir="in">
|
---|
7535 | <desc>
|
---|
7536 | Address of the USB device (as assigned by the host) to
|
---|
7537 | search for.
|
---|
7538 | </desc>
|
---|
7539 | </param>
|
---|
7540 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7541 | <desc>Found USB device object.</desc>
|
---|
7542 | </param>
|
---|
7543 | </method>
|
---|
7544 |
|
---|
7545 | </collection>
|
---|
7546 |
|
---|
7547 | <interface
|
---|
7548 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
7549 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
7550 | wsmap="managed"
|
---|
7551 | >
|
---|
7552 | <desc>
|
---|
7553 | The IHostUSBDevice interface represents a USB device attached to
|
---|
7554 | the host computer.
|
---|
7555 |
|
---|
7556 | Among with properties inherited from IUSBDevice,
|
---|
7557 | this interface adds the <link to="#state"/> property
|
---|
7558 | that holds the courrent state of the USB device.
|
---|
7559 |
|
---|
7560 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
7561 | </desc>
|
---|
7562 |
|
---|
7563 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
7564 | <desc>
|
---|
7565 | Current state of the device.
|
---|
7566 | </desc>
|
---|
7567 | </attribute>
|
---|
7568 |
|
---|
7569 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
7570 |
|
---|
7571 | </interface>
|
---|
7572 |
|
---|
7573 |
|
---|
7574 | <!--
|
---|
7575 | // IHostUSBDeviceFilter
|
---|
7576 | /////////////////////////////////////////////////////////////////////////
|
---|
7577 | -->
|
---|
7578 |
|
---|
7579 | <enum
|
---|
7580 | name="USBDeviceFilterAction"
|
---|
7581 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
7582 | >
|
---|
7583 | <desc>
|
---|
7584 | Actions for host USB device filters.
|
---|
7585 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
7586 | </desc>
|
---|
7587 |
|
---|
7588 | <const name="InvalidUSBDeviceFilterAction" value="0"/>
|
---|
7589 | <const name="USBDeviceFilterIgnore" value="1">
|
---|
7590 | <desc>Ignore the matched USB device.</desc>
|
---|
7591 | </const>
|
---|
7592 | <const name="USBDeviceFilterHold" value="2">
|
---|
7593 | <desc>Hold the matched USB device.</desc>
|
---|
7594 | </const>
|
---|
7595 | </enum>
|
---|
7596 |
|
---|
7597 | <enumerator
|
---|
7598 | name="IHostUSBDeviceFilterEnumerator" type="IHostUSBDeviceFilter"
|
---|
7599 | uuid="ff735211-903e-4642-9c37-189eb44579fe"
|
---|
7600 | />
|
---|
7601 |
|
---|
7602 | <collection
|
---|
7603 | name="IHostUSBDeviceFilterCollection" type="IHostUSBDeviceFilter"
|
---|
7604 | enumerator="IHostUSBDeviceFilterEnumerator"
|
---|
7605 | uuid="1a80458b-87f1-4a74-995d-04e2330119e0"
|
---|
7606 | readonly="yes"
|
---|
7607 | />
|
---|
7608 |
|
---|
7609 | <interface
|
---|
7610 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
7611 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
7612 | wsmap="managed"
|
---|
7613 | >
|
---|
7614 | <desc>
|
---|
7615 | The IHostUSBDeviceFilter interface represents a USB device filter used
|
---|
7616 | by the host computer.
|
---|
7617 |
|
---|
7618 | Using filters of this type, the host computer determines the initial
|
---|
7619 | state of the USB device after it is physically attached to the
|
---|
7620 | host's USB controller.
|
---|
7621 |
|
---|
7622 | <note>
|
---|
7623 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
7624 | filters, because it makes sense only for
|
---|
7625 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
7626 | </note>
|
---|
7627 |
|
---|
7628 | <see>IHost::USBDeviceFilters</see>
|
---|
7629 | </desc>
|
---|
7630 |
|
---|
7631 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
7632 | <desc>
|
---|
7633 | Action performed by the host when an attached USB device
|
---|
7634 | matches this filter.
|
---|
7635 | </desc>
|
---|
7636 | </attribute>
|
---|
7637 |
|
---|
7638 | </interface>
|
---|
7639 |
|
---|
7640 | <!--
|
---|
7641 | // IAudioAdapter
|
---|
7642 | /////////////////////////////////////////////////////////////////////////
|
---|
7643 | -->
|
---|
7644 |
|
---|
7645 | <enum
|
---|
7646 | name="AudioDriverType"
|
---|
7647 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
7648 | >
|
---|
7649 | <const name="NullAudioDriver" value="0"/>
|
---|
7650 | <const name="WINMMAudioDriver" value="1"/>
|
---|
7651 | <const name="OSSAudioDriver" value="2"/>
|
---|
7652 | <const name="ALSAAudioDriver" value="3"/>
|
---|
7653 | <const name="DSOUNDAudioDriver" value="4"/>
|
---|
7654 | <const name="CoreAudioDriver" value="5"/>
|
---|
7655 | <const name="MMPMAudioDriver" value="6"/>
|
---|
7656 | </enum>
|
---|
7657 |
|
---|
7658 | <interface
|
---|
7659 | name="IAudioAdapter" extends="$unknown"
|
---|
7660 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
7661 | wsmap="struct"
|
---|
7662 | >
|
---|
7663 | <attribute name="enabled" type="boolean">
|
---|
7664 | <desc>
|
---|
7665 | Flag whether the audio adapter is present in the
|
---|
7666 | guest system. If disabled, the virtual guest hardware will
|
---|
7667 | not contain any audio adapter. Can only be changed when
|
---|
7668 | the VM is not running.
|
---|
7669 | </desc>
|
---|
7670 | </attribute>
|
---|
7671 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
7672 | <desc>
|
---|
7673 | Audio driver the adapter is connected to. This setting
|
---|
7674 | can only be changed when the VM is not running.
|
---|
7675 | </desc>
|
---|
7676 | </attribute>
|
---|
7677 | </interface>
|
---|
7678 |
|
---|
7679 | <!--
|
---|
7680 | // IVRDPServer
|
---|
7681 | /////////////////////////////////////////////////////////////////////////
|
---|
7682 | -->
|
---|
7683 |
|
---|
7684 | <enum
|
---|
7685 | name="VRDPAuthType"
|
---|
7686 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
7687 | >
|
---|
7688 | <const name="VRDPAuthNull" value="0"/>
|
---|
7689 | <const name="VRDPAuthExternal" value="1"/>
|
---|
7690 | <const name="VRDPAuthGuest" value="2"/>
|
---|
7691 | </enum>
|
---|
7692 |
|
---|
7693 | <interface
|
---|
7694 | name="IVRDPServer" extends="$unknown"
|
---|
7695 | uuid="ed9d31ae-867f-45fc-b727-6740084d1883"
|
---|
7696 | wsmap="struct"
|
---|
7697 | >
|
---|
7698 | <attribute name="enabled" type="boolean">
|
---|
7699 | <desc>VRDP server status.</desc>
|
---|
7700 | </attribute>
|
---|
7701 |
|
---|
7702 | <attribute name="port" type="unsigned long">
|
---|
7703 | <desc>
|
---|
7704 | VRDP server port number.
|
---|
7705 | <note>
|
---|
7706 | Setting the value of this property to <tt>0</tt> will reset the port
|
---|
7707 | number to the default value which is
|
---|
7708 | currently <tt>3389</tt>. Reading this property will always return a
|
---|
7709 | real port number, even after it has been set to <tt>0</tt> (in which
|
---|
7710 | case the default port is returned).
|
---|
7711 | </note>
|
---|
7712 | </desc>
|
---|
7713 | </attribute>
|
---|
7714 |
|
---|
7715 | <attribute name="netAddress" type="wstring">
|
---|
7716 | <desc>VRDP server address.</desc>
|
---|
7717 | </attribute>
|
---|
7718 |
|
---|
7719 | <attribute name="authType" type="VRDPAuthType">
|
---|
7720 | <desc>VRDP authentication method.</desc>
|
---|
7721 | </attribute>
|
---|
7722 |
|
---|
7723 | <attribute name="authTimeout" type="unsigned long">
|
---|
7724 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
7725 | </attribute>
|
---|
7726 |
|
---|
7727 | <attribute name="allowMultiConnection" type="boolean">
|
---|
7728 | <desc>
|
---|
7729 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
7730 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
7731 | </desc>
|
---|
7732 | </attribute>
|
---|
7733 |
|
---|
7734 | </interface>
|
---|
7735 |
|
---|
7736 |
|
---|
7737 | <!--
|
---|
7738 | // ISharedFolder
|
---|
7739 | /////////////////////////////////////////////////////////////////////////
|
---|
7740 | -->
|
---|
7741 |
|
---|
7742 | <enumerator
|
---|
7743 | name="ISharedFolderEnumerator" type="ISharedFolder"
|
---|
7744 | uuid="1d420fd8-e7c1-4511-abf4-a504dc6d0cbf"
|
---|
7745 | />
|
---|
7746 |
|
---|
7747 | <collection
|
---|
7748 | name="ISharedFolderCollection" type="ISharedFolder"
|
---|
7749 | enumerator="ISharedFolderEnumerator"
|
---|
7750 | uuid="9c7e2282-bb16-4fa7-9138-f383c5e02353"
|
---|
7751 | readonly="yes">
|
---|
7752 |
|
---|
7753 | <method name="findByName">
|
---|
7754 | <desc>
|
---|
7755 | Searches this collection for a shared folder drive with the
|
---|
7756 | given logical name.
|
---|
7757 | <note>
|
---|
7758 | The method returns an error if the given name does not
|
---|
7759 | correspond to any shared folder in the collection.
|
---|
7760 | </note>
|
---|
7761 | </desc>
|
---|
7762 | <param name="name" type="wstring" dir="in">
|
---|
7763 | <desc>Logical name of the shared folder to search for</desc>
|
---|
7764 | </param>
|
---|
7765 | <param name="sharedFolder" type="ISharedFolder" dir="return">
|
---|
7766 | <desc>Found shared folder object</desc>
|
---|
7767 | </param>
|
---|
7768 | </method>
|
---|
7769 |
|
---|
7770 | </collection>
|
---|
7771 |
|
---|
7772 | <interface
|
---|
7773 | name="ISharedFolder" extends="$unknown"
|
---|
7774 | uuid="8b0c5f70-9139-4f97-a421-64d5e9c335d5"
|
---|
7775 | wsmap="struct"
|
---|
7776 | >
|
---|
7777 | <desc>
|
---|
7778 | The ISharedFolder interface represents a folder in the host
|
---|
7779 | computer's file system accessible from a guest OS running inside a
|
---|
7780 | virtual machine using an associated logical name.
|
---|
7781 |
|
---|
7782 | There are three types of shared folders:
|
---|
7783 | <ul>
|
---|
7784 | <li>permanent (<link to="IMachine::sharedFolders"/>)</li>
|
---|
7785 | <li>transient (<link to="IConsole::sharedFolders"/>)</li>
|
---|
7786 | <li>global (<link to="IVirtualBox::sharedFolders"/>)</li>
|
---|
7787 | </ul>
|
---|
7788 |
|
---|
7789 | For a given virtual machine, both permanently and transiently
|
---|
7790 | shared folders have the same logical name space which also includes
|
---|
7791 | all globally shared folders. Thus, every folder in this name space
|
---|
7792 | must have an unique logical name. Note that permanent and transient
|
---|
7793 | shares of other machines are in different name spaces, so they don't
|
---|
7794 | have to have unique names.
|
---|
7795 | </desc>
|
---|
7796 |
|
---|
7797 | <attribute name="name" type="wstring" readonly="yes">
|
---|
7798 | <desc>Logical name of the shared folder.</desc>
|
---|
7799 | </attribute>
|
---|
7800 |
|
---|
7801 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
7802 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
7803 | </attribute>
|
---|
7804 |
|
---|
7805 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
7806 | <desc>
|
---|
7807 | Whether the folder defined by the host path is currently
|
---|
7808 | accessible or not.
|
---|
7809 | For example, the folder can be unaccessible if it is placed
|
---|
7810 | on the network share that is not available by the time
|
---|
7811 | this property is read.
|
---|
7812 | </desc>
|
---|
7813 | </attribute>
|
---|
7814 |
|
---|
7815 | </interface>
|
---|
7816 |
|
---|
7817 | <!--
|
---|
7818 | // ISession
|
---|
7819 | /////////////////////////////////////////////////////////////////////////
|
---|
7820 | -->
|
---|
7821 |
|
---|
7822 | <interface
|
---|
7823 | name="IInternalSessionControl" extends="$unknown"
|
---|
7824 | uuid="80a9b698-cc60-48cf-ab88-a7c2ea4013a6"
|
---|
7825 | internal="yes"
|
---|
7826 | wsmap="suppress"
|
---|
7827 | >
|
---|
7828 | <method name="getPID">
|
---|
7829 | <desc>PID of the process that has created this Session object.
|
---|
7830 | </desc>
|
---|
7831 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
7832 | </method>
|
---|
7833 |
|
---|
7834 | <method name="getRemoteConsole">
|
---|
7835 | <desc>Returns the console object suitable for remote control.</desc>
|
---|
7836 | <param name="console" type="IConsole" dir="return"/>
|
---|
7837 | </method>
|
---|
7838 |
|
---|
7839 | <method name="assignMachine">
|
---|
7840 | <desc>
|
---|
7841 | Assigns the machine object associated with this direct-type
|
---|
7842 | session or informs the session that it will be a remote one
|
---|
7843 | (if machine = NULL).
|
---|
7844 | </desc>
|
---|
7845 | <param name="machine" type="IMachine" dir="in"/>
|
---|
7846 | </method>
|
---|
7847 |
|
---|
7848 | <method name="assignRemoteMachine">
|
---|
7849 | <desc>
|
---|
7850 | Assigns the machine and the (remote) console object associated with
|
---|
7851 | this remote-type session.
|
---|
7852 | </desc>
|
---|
7853 | <param name="machine" type="IMachine" dir="in"/>
|
---|
7854 | <param name="console" type="IConsole" dir="in"/>
|
---|
7855 | </method>
|
---|
7856 |
|
---|
7857 | <method name="updateMachineState">
|
---|
7858 | <desc>
|
---|
7859 | Updates the machine state in the VM process.
|
---|
7860 | Must be called only in certain cases
|
---|
7861 | (see the method implementation).
|
---|
7862 | </desc>
|
---|
7863 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
7864 | </method>
|
---|
7865 |
|
---|
7866 | <method name="uninitialize">
|
---|
7867 | <desc>
|
---|
7868 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
7869 | the corresponding remote session when the direct session dies
|
---|
7870 | or gets closed.
|
---|
7871 | </desc>
|
---|
7872 | </method>
|
---|
7873 |
|
---|
7874 | <method name="onDVDDriveChange">
|
---|
7875 | <desc>
|
---|
7876 | Triggered when settings of the DVD drive object of the
|
---|
7877 | associated virtual machine have changed.
|
---|
7878 | </desc>
|
---|
7879 | </method>
|
---|
7880 |
|
---|
7881 | <method name="onFloppyDriveChange">
|
---|
7882 | <desc>
|
---|
7883 | Triggered when settings of the floppy drive object of the
|
---|
7884 | associated virtual machine have changed.
|
---|
7885 | </desc>
|
---|
7886 | </method>
|
---|
7887 |
|
---|
7888 | <method name="onNetworkAdapterChange">
|
---|
7889 | <desc>
|
---|
7890 | Triggered when settions of a network adapter of the
|
---|
7891 | associated virtual machine have changed.
|
---|
7892 | </desc>
|
---|
7893 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
7894 | </method>
|
---|
7895 |
|
---|
7896 | <method name="onSerialPortChange">
|
---|
7897 | <desc>
|
---|
7898 | Triggered when settions of a serial port of the
|
---|
7899 | associated virtual machine have changed.
|
---|
7900 | </desc>
|
---|
7901 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
7902 | </method>
|
---|
7903 |
|
---|
7904 | <method name="onParallelPortChange">
|
---|
7905 | <desc>
|
---|
7906 | Triggered when settings of a parallel port of the
|
---|
7907 | associated virtual machine have changed.
|
---|
7908 | </desc>
|
---|
7909 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
7910 | </method>
|
---|
7911 |
|
---|
7912 | <method name="onVRDPServerChange">
|
---|
7913 | <desc>
|
---|
7914 | Triggered when settings of the VRDP server object of the
|
---|
7915 | associated virtual machine have changed.
|
---|
7916 | </desc>
|
---|
7917 | </method>
|
---|
7918 |
|
---|
7919 | <method name="onUSBControllerChange">
|
---|
7920 | <desc>
|
---|
7921 | Triggered when settings of the USB controller object of the
|
---|
7922 | associated virtual machine have changed.
|
---|
7923 | </desc>
|
---|
7924 | </method>
|
---|
7925 |
|
---|
7926 | <method name="onUSBDeviceAttach">
|
---|
7927 | <desc>
|
---|
7928 | Triggered when a request to capture a USB device (as a result
|
---|
7929 | of matched USB filters or direct call to
|
---|
7930 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
7931 | A @c null @a error object means success, otherwise it
|
---|
7932 | describes a failure.
|
---|
7933 | </desc>
|
---|
7934 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
7935 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
7936 | </method>
|
---|
7937 |
|
---|
7938 | <method name="onUSBDeviceDetach">
|
---|
7939 | <desc>
|
---|
7940 | Triggered when a request to release the USB device (as a result
|
---|
7941 | of machine termination or direct call to
|
---|
7942 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
7943 | A @c null @a error object means success, otherwise it
|
---|
7944 | </desc>
|
---|
7945 | <param name="id" type="uuid" dir="in"/>
|
---|
7946 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
7947 | </method>
|
---|
7948 |
|
---|
7949 | <method name="onShowWindow">
|
---|
7950 | <desc>
|
---|
7951 | Called by <link to="IMachine::canShowConsoleWindow()"/> and by
|
---|
7952 | <link to="IMachine::showConsoleWindow()"/> in order to notify
|
---|
7953 | console callbacks
|
---|
7954 | <link to="IConsoleCallback::onCanShowWindow()"/>
|
---|
7955 | and <link to="IConsoleCallback::onShowWindow()"/>.
|
---|
7956 | </desc>
|
---|
7957 | <param name="check" type="boolean" dir="in"/>
|
---|
7958 | <param name="canShow" type="boolean" dir="out"/>
|
---|
7959 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
7960 | </method>
|
---|
7961 |
|
---|
7962 | </interface>
|
---|
7963 |
|
---|
7964 | <interface
|
---|
7965 | name="ISession" extends="$dispatched"
|
---|
7966 | uuid="12F4DCDB-12B2-4ec1-B7CD-DDD9F6C5BF4D"
|
---|
7967 | wsmap="managed"
|
---|
7968 | >
|
---|
7969 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
7970 | <desc>Current state of this session.</desc>
|
---|
7971 | </attribute>
|
---|
7972 |
|
---|
7973 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
7974 | <desc>
|
---|
7975 | Type of this session. The value of this attribute is valid only
|
---|
7976 | if the session is currently open (i.e. its #state is SessionType::SessionOpen),
|
---|
7977 | otherwise an error will be returned.
|
---|
7978 | </desc>
|
---|
7979 | </attribute>
|
---|
7980 |
|
---|
7981 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
7982 | <desc>Machine object associated with this session.</desc>
|
---|
7983 | </attribute>
|
---|
7984 |
|
---|
7985 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
7986 | <desc>Console object associated with this session.</desc>
|
---|
7987 | </attribute>
|
---|
7988 |
|
---|
7989 | <method name="close">
|
---|
7990 | <desc>
|
---|
7991 | Closes this session.
|
---|
7992 | <note>
|
---|
7993 | If a direct session for a machine opened with
|
---|
7994 | <link to="IVirtualBox::openSession()"/> is not explicitly
|
---|
7995 | closed when the application terminates, the state of the
|
---|
7996 | machine will be set to <link to="MachineState::Aborted"/>
|
---|
7997 | on the server. Generally, it is recommended to close all
|
---|
7998 | open sessions explicitly before terminating the application
|
---|
7999 | (no matter what is the reason of the termination).
|
---|
8000 | </note>
|
---|
8001 | </desc>
|
---|
8002 | </method>
|
---|
8003 |
|
---|
8004 | </interface>
|
---|
8005 |
|
---|
8006 | <class name="Session" uuid="3C02F46D-C9D2-4f11-A384-53F0CF917214"
|
---|
8007 | namespace="virtualbox.org">
|
---|
8008 | <interface name="ISession" default="yes"/>
|
---|
8009 | </class>
|
---|
8010 |
|
---|
8011 | <if target="wsdl">
|
---|
8012 |
|
---|
8013 | <!--
|
---|
8014 | // IManagedObjectRef
|
---|
8015 | /////////////////////////////////////////////////////////////////////////
|
---|
8016 | -->
|
---|
8017 |
|
---|
8018 | <interface
|
---|
8019 | name="IManagedObjectRef" extends="$unknown"
|
---|
8020 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
8021 | internal="yes"
|
---|
8022 | wsmap="explicit"
|
---|
8023 | >
|
---|
8024 | <method name="getInterfaceName">
|
---|
8025 | <desc>
|
---|
8026 | Returns the name of the interface that this managed object represents,
|
---|
8027 | for example, "IMachine", as a string.
|
---|
8028 | </desc>
|
---|
8029 | </method>
|
---|
8030 |
|
---|
8031 | <method name="release">
|
---|
8032 | <desc>
|
---|
8033 | Releases this managed object reference and frees the resources that
|
---|
8034 | were allocated for it in the web service server process. After calling
|
---|
8035 | this method, the identifier of the reference can no longer be used.
|
---|
8036 | </desc>
|
---|
8037 | </method>
|
---|
8038 |
|
---|
8039 | </interface>
|
---|
8040 |
|
---|
8041 | </if>
|
---|
8042 |
|
---|
8043 | </module>
|
---|
8044 |
|
---|
8045 | </idl>
|
---|