1 | <?xml version="1.0" ?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 |
|
---|
5 | Copyright (C) 2006-2011 Oracle Corporation
|
---|
6 |
|
---|
7 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | available from http://www.virtualbox.org. This file is free software;
|
---|
9 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | General Public License (GPL) as published by the Free Software
|
---|
11 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | -->
|
---|
15 |
|
---|
16 | <!--
|
---|
17 | This is the master declaration for VirtualBox's Main API,
|
---|
18 | represented by COM/XPCOM and web service interfaces.
|
---|
19 |
|
---|
20 | From this document, the build system generates several files
|
---|
21 | via XSLT that are then used during the build process.
|
---|
22 |
|
---|
23 | Below is the list of XSL templates that operate on this file and
|
---|
24 | output files they generate. These XSL templates must be updated
|
---|
25 | whenever the schema of this file changes:
|
---|
26 |
|
---|
27 | 1. src/VBox/Main/idl/midl.xsl =>
|
---|
28 | out/<platform>/bin/sdk/idl/VirtualBox.idl
|
---|
29 | (MS COM interface definition file for Main API)
|
---|
30 |
|
---|
31 | 2. src/VBox/Main/idl/xpidl.xsl =>
|
---|
32 | out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
|
---|
33 | (XPCOM interface definition file for Main API)
|
---|
34 |
|
---|
35 | 3. src/VBox/Main/idl/doxygen.xsl =>
|
---|
36 | out/<platform>/obj/src/VBox/Main/VirtualBox.idl
|
---|
37 | (pseudo-IDL for Doxygen to generate the official Main API
|
---|
38 | documentation)
|
---|
39 |
|
---|
40 | 4. src/VBox/Main/webservice/*.xsl =>
|
---|
41 | a bunch of WSDL and C++ files
|
---|
42 | (VirtualBox web service sources and SOAP mappers;
|
---|
43 | see src/VBox/Main/webservice/Makefile.kmk for details)
|
---|
44 |
|
---|
45 | 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
|
---|
46 | out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
|
---|
47 | (smart Qt-based C++ wrapper classes for COM interfaces
|
---|
48 | of the Main API)
|
---|
49 |
|
---|
50 | 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
|
---|
51 | out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
|
---|
52 | (Main API TypeLib block for the WiX installer)
|
---|
53 |
|
---|
54 | 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
|
---|
55 | out/<platform>/obj/Runtime/errmsgvboxcomdata.h
|
---|
56 | (<result> extraction for the %Rhrc format specifier)
|
---|
57 | -->
|
---|
58 |
|
---|
59 | <idl>
|
---|
60 |
|
---|
61 | <desc>
|
---|
62 | Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
|
---|
63 | describes the so-called <i>VirtualBox Main API</i> which comprises all public
|
---|
64 | COM interfaces and components provided by the VirtualBox server and by the
|
---|
65 | VirtualBox client library.
|
---|
66 |
|
---|
67 | VirtualBox employs a client-server design, meaning that whenever any part of
|
---|
68 | VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
|
---|
69 | interface or any virtual machine --, a dedicated server process named
|
---|
70 | VBoxSVC runs in the background. This allows multiple processes working with
|
---|
71 | VirtualBox to cooperate without conflicts. These processes communicate to each
|
---|
72 | other using inter-process communication facilities provided by the COM
|
---|
73 | implementation of the host computer.
|
---|
74 |
|
---|
75 | On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
|
---|
76 | implementation. On all other platforms, Mozilla XPCOM, an open-source COM
|
---|
77 | implementation, is used.
|
---|
78 |
|
---|
79 | All the parts that a typical VirtualBox user interacts with (the Qt GUI
|
---|
80 | and the VBoxManage command-line interface) are technically
|
---|
81 | front-ends to the Main API and only use the interfaces that are documented
|
---|
82 | in this Main API documentation. This ensures that, with any given release
|
---|
83 | version of VirtualBox, all capabilities of the product that could be useful
|
---|
84 | to an external client program are always exposed by way of this API.
|
---|
85 |
|
---|
86 | The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
|
---|
87 | contains two public component classes:
|
---|
88 | <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
|
---|
89 | implement IVirtualBox and ISession interfaces respectively. These two classes
|
---|
90 | are of supreme importance and will be needed in order for any front-end
|
---|
91 | program to do anything useful. It is recommended to read the documentation of
|
---|
92 | the mentioned interfaces first.
|
---|
93 |
|
---|
94 | The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
|
---|
95 | there can be only one object of this class on the local machine at any given
|
---|
96 | time. This object is a parent of many other objects in the VirtualBox COM
|
---|
97 | library and lives in the VBoxSVC process. In fact, when you create an instance
|
---|
98 | of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
|
---|
99 | process is already running, starts it if not, and returns you a reference to
|
---|
100 | the <tt>VirtualBox</tt> object created in this process. When the last reference
|
---|
101 | to this object is released, the VBoxSVC process ends (with a 5 second delay to
|
---|
102 | protect from too frequent restarts).
|
---|
103 |
|
---|
104 | The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
|
---|
105 | as many <tt>Session</tt> objects as you need but all of them will live in a
|
---|
106 | process which issues the object instantiation call. <tt>Session</tt> objects
|
---|
107 | represent virtual machine sessions which are used to configure virtual
|
---|
108 | machines and control their execution.
|
---|
109 | </desc>
|
---|
110 |
|
---|
111 | <if target="midl">
|
---|
112 | <cpp line="enum {"/>
|
---|
113 | <cpp line=" kTypeLibraryMajorVersion = 1,"/>
|
---|
114 | <cpp line=" kTypeLibraryMinorVersion = 0"/>
|
---|
115 | <cpp line="};"/>
|
---|
116 | </if>
|
---|
117 |
|
---|
118 | <if target="xpidl">
|
---|
119 | <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
|
---|
120 | <cpp>
|
---|
121 | /* currently, nsISupportsImpl.h lacks the below-like macros */
|
---|
122 |
|
---|
123 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
|
---|
124 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
|
---|
125 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
|
---|
126 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI NS_IMPL_QUERY_INTERFACE4_CI
|
---|
127 |
|
---|
128 |
|
---|
129 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
130 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
131 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
132 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
133 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
134 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
135 | #endif
|
---|
136 |
|
---|
137 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
138 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
139 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
140 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
141 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
142 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
143 | #endif
|
---|
144 |
|
---|
145 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
|
---|
146 | # define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
|
---|
147 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
148 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
149 | NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
|
---|
150 | NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
|
---|
151 | #endif
|
---|
152 |
|
---|
153 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS4_CI
|
---|
154 | # define NS_IMPL_THREADSAFE_ISUPPORTS4_CI(_class, _i1, _i2, _i3, _i4) \
|
---|
155 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
156 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
157 | NS_IMPL_THREADSAFE_QUERY_INTERFACE4_CI(_class, _i1, _i2, _i3, _i4) \
|
---|
158 | NS_IMPL_CI_INTERFACE_GETTER4(_class, _i1, _i2, _i3, _i4)
|
---|
159 | #endif
|
---|
160 |
|
---|
161 | #ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
162 | # define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
163 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
164 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
165 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
166 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
167 | NS_INTERFACE_MAP_END
|
---|
168 | #endif
|
---|
169 |
|
---|
170 | #ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
171 | # define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
172 | _i2, _ic2) \
|
---|
173 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
174 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
175 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
176 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
177 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
178 | NS_INTERFACE_MAP_END
|
---|
179 | #endif
|
---|
180 |
|
---|
181 | #ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
|
---|
182 | # define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
183 | _i2, _ic2, _i3, _ic3) \
|
---|
184 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
185 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
186 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
187 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
|
---|
188 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
189 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
190 | NS_INTERFACE_MAP_END
|
---|
191 | #endif
|
---|
192 |
|
---|
193 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
194 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
195 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
|
---|
196 |
|
---|
197 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
|
---|
198 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
199 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
200 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
201 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
202 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
|
---|
203 | #endif
|
---|
204 |
|
---|
205 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
|
---|
206 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
207 | _i2, _ic2) \
|
---|
208 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
209 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
210 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
211 | _i2, _ic2) \
|
---|
212 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
213 | #endif
|
---|
214 |
|
---|
215 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
|
---|
216 | # define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
217 | _i2, _ic2, _i3, _ic3) \
|
---|
218 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
219 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
220 | NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
221 | _i2, _ic2, _i3, _ic3) \
|
---|
222 | NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
|
---|
223 | #endif
|
---|
224 |
|
---|
225 | </cpp>
|
---|
226 | </if>
|
---|
227 |
|
---|
228 | <library
|
---|
229 | name="VirtualBox"
|
---|
230 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
231 | version="1.3"
|
---|
232 | desc="VirtualBox Type Library"
|
---|
233 | appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
|
---|
234 | supportsErrorInfo="yes"
|
---|
235 | >
|
---|
236 |
|
---|
237 |
|
---|
238 | <!--
|
---|
239 | // COM result codes for VirtualBox
|
---|
240 | /////////////////////////////////////////////////////////////////////////
|
---|
241 | -->
|
---|
242 |
|
---|
243 | <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
|
---|
244 | <desc>
|
---|
245 | This section describes all VirtualBox-specific COM result codes that may
|
---|
246 | be returned by methods of VirtualBox COM interfaces in addition to
|
---|
247 | standard COM result codes.
|
---|
248 |
|
---|
249 | Note that along with the result code, every VirtualBox method returns
|
---|
250 | extended error information through the IVirtualBoxErrorInfo interface on
|
---|
251 | failure. This interface is a preferred way to present the error to the end
|
---|
252 | user because it contains a human readable description of the error. Raw
|
---|
253 | result codes, both standard and described in this section, are intended to
|
---|
254 | be used by programs to analyze the reason of a failure and select an
|
---|
255 | appropriate course of action without involving the end user (for example,
|
---|
256 | retry the operation later or make a different call).
|
---|
257 |
|
---|
258 | The standard COM result codes that may originate from our methods include:
|
---|
259 |
|
---|
260 | <table>
|
---|
261 | <tr><td>E_INVALIDARG</td>
|
---|
262 | <td>
|
---|
263 | Returned when the value of the method's argument is not within the range
|
---|
264 | of valid values. This should not be confused with situations when the
|
---|
265 | value is within the range but simply doesn't suit the current object
|
---|
266 | state and there is a possibility that it will be accepted later (in such
|
---|
267 | cases VirtualBox-specific codes are returned, for example,
|
---|
268 | <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
|
---|
269 | </td>
|
---|
270 | </tr>
|
---|
271 | <tr><td>E_POINTER</td>
|
---|
272 | <td>
|
---|
273 | Returned if a memory pointer for the output argument is invalid (for
|
---|
274 | example, @c null). Note that when pointers representing input
|
---|
275 | arguments (such as strings) are invalid, E_INVALIDARG is returned.
|
---|
276 | </td>
|
---|
277 | </tr>
|
---|
278 | <tr><td>E_ACCESSDENIED</td>
|
---|
279 | <td>
|
---|
280 | Returned when the called object is not ready. Since the lifetime of a
|
---|
281 | public COM object cannot be fully controlled by the implementation,
|
---|
282 | VirtualBox maintains the readiness state for all objects it creates and
|
---|
283 | returns this code in response to any method call on the object that was
|
---|
284 | deactivated by VirtualBox and is not functioning any more.
|
---|
285 | </td>
|
---|
286 | </tr>
|
---|
287 | <tr><td>E_OUTOFMEMORY</td>
|
---|
288 | <td>
|
---|
289 | Returned when a memory allocation operation fails.
|
---|
290 | </td>
|
---|
291 | </tr>
|
---|
292 | </table>
|
---|
293 | </desc>
|
---|
294 | </descGroup>
|
---|
295 |
|
---|
296 | <!--
|
---|
297 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
298 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
299 | the matter of the error code in the first sentence and keep it short.
|
---|
300 | -->
|
---|
301 |
|
---|
302 | <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
|
---|
303 | <desc>
|
---|
304 | Object corresponding to the supplied arguments does not exist.
|
---|
305 | </desc>
|
---|
306 | </result>
|
---|
307 |
|
---|
308 | <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
|
---|
309 | <desc>
|
---|
310 | Current virtual machine state prevents the operation.
|
---|
311 | </desc>
|
---|
312 | </result>
|
---|
313 |
|
---|
314 | <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
|
---|
315 | <desc>
|
---|
316 | Virtual machine error occurred attempting the operation.
|
---|
317 | </desc>
|
---|
318 | </result>
|
---|
319 |
|
---|
320 | <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
|
---|
321 | <desc>
|
---|
322 | File not accessible or erroneous file contents.
|
---|
323 | </desc>
|
---|
324 | </result>
|
---|
325 |
|
---|
326 | <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
|
---|
327 | <desc>
|
---|
328 | Runtime subsystem error.
|
---|
329 | </desc>
|
---|
330 | </result>
|
---|
331 |
|
---|
332 | <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
|
---|
333 | <desc>
|
---|
334 | Pluggable Device Manager error.
|
---|
335 | </desc>
|
---|
336 | </result>
|
---|
337 |
|
---|
338 | <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
|
---|
339 | <desc>
|
---|
340 | Current object state prohibits operation.
|
---|
341 | </desc>
|
---|
342 | </result>
|
---|
343 |
|
---|
344 | <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
|
---|
345 | <desc>
|
---|
346 | Host operating system related error.
|
---|
347 | </desc>
|
---|
348 | </result>
|
---|
349 |
|
---|
350 | <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
|
---|
351 | <desc>
|
---|
352 | Requested operation is not supported.
|
---|
353 | </desc>
|
---|
354 | </result>
|
---|
355 |
|
---|
356 | <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
|
---|
357 | <desc>
|
---|
358 | Invalid XML found.
|
---|
359 | </desc>
|
---|
360 | </result>
|
---|
361 |
|
---|
362 | <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
|
---|
363 | <desc>
|
---|
364 | Current session state prohibits operation.
|
---|
365 | </desc>
|
---|
366 | </result>
|
---|
367 |
|
---|
368 | <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
|
---|
369 | <desc>
|
---|
370 | Object being in use prohibits operation.
|
---|
371 | </desc>
|
---|
372 | </result>
|
---|
373 |
|
---|
374 | <!--
|
---|
375 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
376 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
377 | the matter of the error code in the first sentence and keep it short.
|
---|
378 | -->
|
---|
379 |
|
---|
380 | <descGroup/>
|
---|
381 |
|
---|
382 | <!--
|
---|
383 | // all common enums
|
---|
384 | /////////////////////////////////////////////////////////////////////////
|
---|
385 | -->
|
---|
386 |
|
---|
387 | <enum
|
---|
388 | name="SettingsVersion"
|
---|
389 | uuid="52bd6f5f-1adb-4493-975d-581a9c4b803f"
|
---|
390 | >
|
---|
391 | <desc>
|
---|
392 | Settings version of VirtualBox settings files. This is written to
|
---|
393 | the "version" attribute of the root "VirtualBox" element in the settings
|
---|
394 | file XML and indicates which VirtualBox version wrote the file.
|
---|
395 | </desc>
|
---|
396 |
|
---|
397 | <const name="Null" value="0">
|
---|
398 | <desc>Null value, indicates invalid version.</desc>
|
---|
399 | </const>
|
---|
400 | <const name="v1_0" value="1">
|
---|
401 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
402 | </const>
|
---|
403 | <const name="v1_1" value="2">
|
---|
404 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
405 | </const>
|
---|
406 | <const name="v1_2" value="3">
|
---|
407 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
408 | </const>
|
---|
409 | <const name="v1_3pre" value="4">
|
---|
410 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
411 | </const>
|
---|
412 | <const name="v1_3" value="5">
|
---|
413 | <desc>Settings version "1.3", written by VirtualBox 2.0.12.</desc>
|
---|
414 | <!--
|
---|
415 | Machine XML: Capitalization of Uart, Lpt elements and many attributes changed.
|
---|
416 | -->
|
---|
417 | </const>
|
---|
418 | <const name="v1_4" value="6">
|
---|
419 | <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
|
---|
420 | <!--
|
---|
421 | VirtualBox.xml: big DiskRegistry -> MediaRegistry revamp, various HardDisk types merged
|
---|
422 | (was VirtualDiskImage, VMDKImage, VHDImage, ISCSIHardDisk, CustomHardDisk, DiffHardDisk)
|
---|
423 | -->
|
---|
424 | </const>
|
---|
425 | <const name="v1_5" value="7">
|
---|
426 | <desc>Intermediate settings version, understood by VirtualBox 2.1.x.</desc>
|
---|
427 | <!--
|
---|
428 | 2008-09-04: 2.0.0 released
|
---|
429 | 2008-11-20: settings version 1.5 introduced
|
---|
430 | 2008-12-17: 2.1.0 released
|
---|
431 | Machine changes:
|
---|
432 | guest OS identifiers changed;
|
---|
433 | Machine/Hardware/Display/MonitorCount renamed to monitorCount;
|
---|
434 | Machine/Hardware/Display/Accelerate3D renamed to accelerate3D;
|
---|
435 | Machine/Hardware/CPU/CPUCount/@count changed to CPU/@count
|
---|
436 | -->
|
---|
437 | </const>
|
---|
438 | <const name="v1_6" value="8">
|
---|
439 | <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
|
---|
440 | <!--
|
---|
441 | 2008-12-17: 2.1.0 released
|
---|
442 | 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
|
---|
443 | 2009-04-08: 2.2.0 released
|
---|
444 | Machine changes: remove all Machine/Hardware/Network/Adapter/HostInterface[@TAPSetup or @TAPTerminate]/ attributes (done)
|
---|
445 | -->
|
---|
446 | </const>
|
---|
447 | <const name="v1_7" value="9">
|
---|
448 | <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
|
---|
449 | <!--
|
---|
450 | 2008-12-17: 2.1.0 released
|
---|
451 | 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
|
---|
452 | 2009-04-08: 2.2.0 released
|
---|
453 | VirtualBox.xml additions: NetserviceRegistry with DHCPServers (done)
|
---|
454 | Machine changes: HardDiskAttachments is now StorageControllers (done)
|
---|
455 | -->
|
---|
456 | </const>
|
---|
457 | <const name="v1_8" value="10">
|
---|
458 | <desc>Intermediate settings version "1.8", understood by VirtualBox 3.1.x.</desc>
|
---|
459 | <!--
|
---|
460 | Machine additions: Display/@accelerate2DVideo (done)
|
---|
461 | -->
|
---|
462 | </const>
|
---|
463 | <const name="v1_9" value="11">
|
---|
464 | <desc>Settings version "1.9", written by VirtualBox 3.1.x.</desc>
|
---|
465 | <!--
|
---|
466 | The big storage controller / DVD / Floppy rework (done)
|
---|
467 | -->
|
---|
468 | </const>
|
---|
469 | <const name="v1_10" value="12">
|
---|
470 | <desc>Settings version "1.10", written by VirtualBox 3.2.x.</desc>
|
---|
471 | <!--
|
---|
472 | Machine changes: RTC localOrUTC (done)
|
---|
473 | CPU hot-plug support
|
---|
474 | -->
|
---|
475 | </const>
|
---|
476 | <const name="v1_11" value="13">
|
---|
477 | <desc>Settings version "1.11", written by VirtualBox 4.0.x.</desc>
|
---|
478 | <!--
|
---|
479 | Machine changes: HD Audio controller, per-machine disk registries,
|
---|
480 | /@format attribute for DVD and floppy images.
|
---|
481 | -->
|
---|
482 | </const>
|
---|
483 | <const name="v1_12" value="14">
|
---|
484 | <desc>Settings version "1.12", written by VirtualBox 4.1.x.</desc>
|
---|
485 | <!--
|
---|
486 | Machine changes: raw PCI device attachment.
|
---|
487 | -->
|
---|
488 | </const>
|
---|
489 |
|
---|
490 | <const name="Future" value="99999">
|
---|
491 | <desc>Settings version greater than "1.11", written by a future VirtualBox version.</desc>
|
---|
492 | </const>
|
---|
493 | </enum>
|
---|
494 |
|
---|
495 | <enum
|
---|
496 | name="AccessMode"
|
---|
497 | uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
|
---|
498 | >
|
---|
499 | <desc>
|
---|
500 | Access mode for opening files.
|
---|
501 | </desc>
|
---|
502 |
|
---|
503 | <const name="ReadOnly" value="1"/>
|
---|
504 | <const name="ReadWrite" value="2"/>
|
---|
505 | </enum>
|
---|
506 |
|
---|
507 | <enum
|
---|
508 | name="MachineState"
|
---|
509 | uuid="ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe"
|
---|
510 | >
|
---|
511 | <desc>
|
---|
512 | Virtual machine execution state.
|
---|
513 |
|
---|
514 | This enumeration represents possible values of the <link
|
---|
515 | to="IMachine::state"/> attribute.
|
---|
516 |
|
---|
517 | Below is the basic virtual machine state diagram. It shows how the state
|
---|
518 | changes during virtual machine execution. The text in square braces shows
|
---|
519 | a method of the IConsole interface that performs the given state
|
---|
520 | transition.
|
---|
521 |
|
---|
522 | <pre>
|
---|
523 | +---------[powerDown()] <- Stuck <--[failure]-+
|
---|
524 | V |
|
---|
525 | +-> PoweredOff --+-->[powerUp()]--> Starting --+ | +-----[resume()]-----+
|
---|
526 | | | | | V |
|
---|
527 | | Aborted -----+ +--> Running --[pause()]--> Paused
|
---|
528 | | | ^ | ^ |
|
---|
529 | | Saved -----------[powerUp()]--> Restoring -+ | | | |
|
---|
530 | | ^ | | | |
|
---|
531 | | | +-----------------------------------------+-|-------------------+ +
|
---|
532 | | | | | |
|
---|
533 | | | +-- Saving <--------[takeSnapshot()]<-------+---------------------+
|
---|
534 | | | | |
|
---|
535 | | +-------- Saving <--------[saveState()]<----------+---------------------+
|
---|
536 | | | |
|
---|
537 | +-------------- Stopping -------[powerDown()]<----------+---------------------+
|
---|
538 | </pre>
|
---|
539 |
|
---|
540 | Note that states to the right from PoweredOff, Aborted and Saved in the
|
---|
541 | above diagram are called <i>online VM states</i>. These states
|
---|
542 | represent the virtual machine which is being executed in a dedicated
|
---|
543 | process (usually with a GUI window attached to it where you can see the
|
---|
544 | activity of the virtual machine and interact with it). There are two
|
---|
545 | special pseudo-states, FirstOnline and LastOnline, that can be used in
|
---|
546 | relational expressions to detect if the given machine state is online or
|
---|
547 | not:
|
---|
548 |
|
---|
549 | <pre>
|
---|
550 | if (machine.GetState() >= MachineState_FirstOnline &&
|
---|
551 | machine.GetState() <= MachineState_LastOnline)
|
---|
552 | {
|
---|
553 | ...the machine is being executed...
|
---|
554 | }
|
---|
555 | </pre>
|
---|
556 |
|
---|
557 | When the virtual machine is in one of the online VM states (that is, being
|
---|
558 | executed), only a few machine settings can be modified. Methods working
|
---|
559 | with such settings contain an explicit note about that. An attempt to
|
---|
560 | change any oter setting or perform a modifying operation during this time
|
---|
561 | will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
|
---|
562 |
|
---|
563 | All online states except Running, Paused and Stuck are transitional: they
|
---|
564 | represent temporary conditions of the virtual machine that will last as
|
---|
565 | long as the operation that initiated such a condition.
|
---|
566 |
|
---|
567 | The Stuck state is a special case. It means that execution of the machine
|
---|
568 | has reached the "Guru Meditation" condition. This condition indicates an
|
---|
569 | internal VMM (virtual machine manager) failure which may happen as a
|
---|
570 | result of either an unhandled low-level virtual hardware exception or one
|
---|
571 | of the recompiler exceptions (such as the <i>too-many-traps</i>
|
---|
572 | condition).
|
---|
573 |
|
---|
574 | Note also that any online VM state may transit to the Aborted state. This
|
---|
575 | happens if the process that is executing the virtual machine terminates
|
---|
576 | unexpectedly (for example, crashes). Other than that, the Aborted state is
|
---|
577 | equivalent to PoweredOff.
|
---|
578 |
|
---|
579 | There are also a few additional state diagrams that do not deal with
|
---|
580 | virtual machine execution and therefore are shown separately. The states
|
---|
581 | shown on these diagrams are called <i>offline VM states</i> (this includes
|
---|
582 | PoweredOff, Aborted and Saved too).
|
---|
583 |
|
---|
584 | The first diagram shows what happens when a lengthy setup operation is
|
---|
585 | being executed (such as <link to="IMachine::attachDevice"/>).
|
---|
586 |
|
---|
587 | <pre>
|
---|
588 | +----------------------------------(same state as before the call)------+
|
---|
589 | | |
|
---|
590 | +-> PoweredOff --+ |
|
---|
591 | | | |
|
---|
592 | |-> Aborted -----+-->[lengthy VM configuration call] --> SettingUp -----+
|
---|
593 | | |
|
---|
594 | +-> Saved -------+
|
---|
595 | </pre>
|
---|
596 |
|
---|
597 | The next two diagrams demonstrate the process of taking a snapshot of a
|
---|
598 | powered off virtual machine, restoring the state to that as of a snapshot
|
---|
599 | or deleting a snapshot, respectively.
|
---|
600 |
|
---|
601 | <pre>
|
---|
602 | +----------------------------------(same state as before the call)------+
|
---|
603 | | |
|
---|
604 | +-> PoweredOff --+ |
|
---|
605 | | +-->[takeSnapshot()] -------------------> Saving ------+
|
---|
606 | +-> Aborted -----+
|
---|
607 |
|
---|
608 | +-> PoweredOff --+
|
---|
609 | | |
|
---|
610 | | Aborted -----+-->[restoreSnapshot() ]-------> RestoringSnapshot -+
|
---|
611 | | | [deleteSnapshot() ]-------> DeletingSnapshot --+
|
---|
612 | +-> Saved -------+ |
|
---|
613 | | |
|
---|
614 | +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
|
---|
615 | </pre>
|
---|
616 |
|
---|
617 | Note that the Saving state is present in both the offline state group and
|
---|
618 | online state group. Currently, the only way to determine what group is
|
---|
619 | assumed in a particular case is to remember the previous machine state: if
|
---|
620 | it was Running or Paused, then Saving is an online state, otherwise it is
|
---|
621 | an offline state. This inconsistency may be removed in one of the future
|
---|
622 | versions of VirtualBox by adding a new state.
|
---|
623 |
|
---|
624 | <note internal="yes">
|
---|
625 | For whoever decides to touch this enum: In order to keep the
|
---|
626 | comparisons involving FirstOnline and LastOnline pseudo-states valid,
|
---|
627 | the numeric values of these states must be correspondingly updated if
|
---|
628 | needed: for any online VM state, the condition
|
---|
629 | <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
630 | @c true. The same relates to transient states for which
|
---|
631 | the condition <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
632 | @c true.
|
---|
633 | </note>
|
---|
634 | </desc>
|
---|
635 |
|
---|
636 | <const name="Null" value="0">
|
---|
637 | <desc>Null value (never used by the API).</desc>
|
---|
638 | </const>
|
---|
639 | <const name="PoweredOff" value="1">
|
---|
640 | <desc>
|
---|
641 | The machine is not running and has no saved execution state; it has
|
---|
642 | either never been started or been shut down successfully.
|
---|
643 | </desc>
|
---|
644 | </const>
|
---|
645 | <const name="Saved" value="2">
|
---|
646 | <desc>
|
---|
647 | The machine is not currently running, but the execution state of the machine
|
---|
648 | has been saved to an external file when it was running, from where
|
---|
649 | it can be resumed.
|
---|
650 | </desc>
|
---|
651 | </const>
|
---|
652 | <const name="Teleported" value="3">
|
---|
653 | <desc>
|
---|
654 | The machine was teleported to a different host (or process) and then
|
---|
655 | powered off. Take care when powering it on again may corrupt resources
|
---|
656 | it shares with the teleportation target (e.g. disk and network).
|
---|
657 | </desc>
|
---|
658 | </const>
|
---|
659 | <const name="Aborted" value="4">
|
---|
660 | <desc>
|
---|
661 | The process running the machine has terminated abnormally. This may
|
---|
662 | indicate a crash of the VM process in host execution context, or
|
---|
663 | the VM process has been terminated externally.
|
---|
664 | </desc>
|
---|
665 | </const>
|
---|
666 | <const name="Running" value="5">
|
---|
667 | <desc>
|
---|
668 | The machine is currently being executed.
|
---|
669 | <note internal="yes">
|
---|
670 | For whoever decides to touch this enum: In order to keep the
|
---|
671 | comparisons in the old source code valid, this state must immediately
|
---|
672 | precede the Paused state.
|
---|
673 | TODO: Lift this spectacularly wonderful restriction.
|
---|
674 | </note>
|
---|
675 | </desc>
|
---|
676 | </const>
|
---|
677 | <const name="Paused" value="6">
|
---|
678 | <desc>
|
---|
679 | Execution of the machine has been paused.
|
---|
680 | <note internal="yes">
|
---|
681 | For whoever decides to touch this enum: In order to keep the
|
---|
682 | comparisons in the old source code valid, this state must immediately
|
---|
683 | follow the Running state.
|
---|
684 | TODO: Lift this spectacularly wonderful restriction.
|
---|
685 | </note>
|
---|
686 | </desc>
|
---|
687 | </const>
|
---|
688 | <const name="Stuck" value="7">
|
---|
689 | <desc>
|
---|
690 | Execution of the machine has reached the "Guru Meditation"
|
---|
691 | condition. This indicates a severe error in the hypervisor itself.
|
---|
692 | <note internal="yes">
|
---|
693 | bird: Why this uncool name? Could we rename it to "GuruMeditation" or
|
---|
694 | "Guru", perhaps? Or are there some other VMM states that are
|
---|
695 | intended to be lumped in here as well?
|
---|
696 | </note>
|
---|
697 | </desc>
|
---|
698 | </const>
|
---|
699 | <const name="Teleporting" value="8">
|
---|
700 | <desc>
|
---|
701 | The machine is about to be teleported to a different host or process.
|
---|
702 | It is possible to pause a machine in this state, but it will go to the
|
---|
703 | @c TeleportingPausedVM state and it will not be
|
---|
704 | possible to resume it again unless the teleportation fails.
|
---|
705 | </desc>
|
---|
706 | </const>
|
---|
707 | <const name="LiveSnapshotting" value="9">
|
---|
708 | <desc>
|
---|
709 | A live snapshot is being taken. The machine is running normally, but
|
---|
710 | some of the runtime configuration options are inaccessible. Also, if
|
---|
711 | paused while in this state it will transition to
|
---|
712 | @c Saving and it will not be resume the
|
---|
713 | execution until the snapshot operation has completed.
|
---|
714 | </desc>
|
---|
715 | </const>
|
---|
716 | <const name="Starting" value="10">
|
---|
717 | <desc>
|
---|
718 | Machine is being started after powering it on from a
|
---|
719 | zero execution state.
|
---|
720 | </desc>
|
---|
721 | </const>
|
---|
722 | <const name="Stopping" value="11">
|
---|
723 | <desc>
|
---|
724 | Machine is being normally stopped powering it off, or after the guest OS
|
---|
725 | has initiated a shutdown sequence.
|
---|
726 | </desc>
|
---|
727 | </const>
|
---|
728 | <const name="Saving" value="12">
|
---|
729 | <desc>
|
---|
730 | Machine is saving its execution state to a file, or an online
|
---|
731 | snapshot of the machine is being taken.
|
---|
732 | </desc>
|
---|
733 | </const>
|
---|
734 | <const name="Restoring" value="13">
|
---|
735 | <desc>
|
---|
736 | Execution state of the machine is being restored from a file
|
---|
737 | after powering it on from the saved execution state.
|
---|
738 | </desc>
|
---|
739 | </const>
|
---|
740 | <const name="TeleportingPausedVM" value="14">
|
---|
741 | <desc>
|
---|
742 | The machine is being teleported to another host or process, but it is
|
---|
743 | not running. This is the paused variant of the
|
---|
744 | @c state.
|
---|
745 | </desc>
|
---|
746 | </const>
|
---|
747 | <const name="TeleportingIn" value="15">
|
---|
748 | <desc>
|
---|
749 | Teleporting the machine state in from another host or process.
|
---|
750 | </desc>
|
---|
751 | </const>
|
---|
752 | <const name="FaultTolerantSyncing" value="16">
|
---|
753 | <desc>
|
---|
754 | The machine is being synced with a fault tolerant VM running elsewhere.
|
---|
755 | </desc>
|
---|
756 | </const>
|
---|
757 | <const name="DeletingSnapshotOnline" value="17">
|
---|
758 | <desc>
|
---|
759 | Like @c DeletingSnapshot, but the merging of media is ongoing in
|
---|
760 | the background while the machine is running.
|
---|
761 | </desc>
|
---|
762 | </const>
|
---|
763 | <const name="DeletingSnapshotPaused" value="18">
|
---|
764 | <desc>
|
---|
765 | Like @c DeletingSnapshotOnline, but the machine was paused when the
|
---|
766 | merging of differencing media was started.
|
---|
767 | </desc>
|
---|
768 | </const>
|
---|
769 | <const name="RestoringSnapshot" value="19">
|
---|
770 | <desc>
|
---|
771 | A machine snapshot is being restored; this typically does not take long.
|
---|
772 | </desc>
|
---|
773 | </const>
|
---|
774 | <const name="DeletingSnapshot" value="20">
|
---|
775 | <desc>
|
---|
776 | A machine snapshot is being deleted; this can take a long time since this
|
---|
777 | may require merging differencing media. This value indicates that the
|
---|
778 | machine is not running while the snapshot is being deleted.
|
---|
779 | </desc>
|
---|
780 | </const>
|
---|
781 | <const name="SettingUp" value="21">
|
---|
782 | <desc>
|
---|
783 | Lengthy setup operation is in progress.
|
---|
784 | </desc>
|
---|
785 | </const>
|
---|
786 |
|
---|
787 | <const name="FirstOnline" value="5" wsmap="suppress"> <!-- Running -->
|
---|
788 | <desc>
|
---|
789 | Pseudo-state: first online state (for use in relational expressions).
|
---|
790 | </desc>
|
---|
791 | </const>
|
---|
792 | <const name="LastOnline" value="18" wsmap="suppress"> <!-- DeletingSnapshotPaused -->
|
---|
793 | <desc>
|
---|
794 | Pseudo-state: last online state (for use in relational expressions).
|
---|
795 | </desc>
|
---|
796 | </const>
|
---|
797 |
|
---|
798 | <const name="FirstTransient" value="8" wsmap="suppress"> <!-- Teleporting -->
|
---|
799 | <desc>
|
---|
800 | Pseudo-state: first transient state (for use in relational expressions).
|
---|
801 | </desc>
|
---|
802 | </const>
|
---|
803 | <const name="LastTransient" value="21" wsmap="suppress"> <!-- SettingUp -->
|
---|
804 | <desc>
|
---|
805 | Pseudo-state: last transient state (for use in relational expressions).
|
---|
806 | </desc>
|
---|
807 | </const>
|
---|
808 |
|
---|
809 | </enum>
|
---|
810 |
|
---|
811 | <enum
|
---|
812 | name="SessionState"
|
---|
813 | uuid="cf2700c0-ea4b-47ae-9725-7810114b94d8"
|
---|
814 | >
|
---|
815 | <desc>
|
---|
816 | Session state. This enumeration represents possible values of
|
---|
817 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
818 | attributes.
|
---|
819 | </desc>
|
---|
820 |
|
---|
821 | <const name="Null" value="0">
|
---|
822 | <desc>Null value (never used by the API).</desc>
|
---|
823 | </const>
|
---|
824 | <const name="Unlocked" value="1">
|
---|
825 | <desc>
|
---|
826 | In <link to="IMachine::sessionState"/>, this means that the machine
|
---|
827 | is not locked for any sessions.
|
---|
828 |
|
---|
829 | In <link to="ISession::state"/>, this means that no machine is
|
---|
830 | currently locked for this session.
|
---|
831 | </desc>
|
---|
832 | </const>
|
---|
833 | <const name="Locked" value="2">
|
---|
834 | <desc>
|
---|
835 | In <link to="IMachine::sessionState"/>, this means that the machine
|
---|
836 | is currently locked for a session, whose process identifier can
|
---|
837 | then be found in the <link to="IMachine::sessionPid" /> attribute.
|
---|
838 |
|
---|
839 | In <link to="ISession::state"/>, this means that a machine is
|
---|
840 | currently locked for this session, and the mutable machine object
|
---|
841 | can be found in the <link to="ISession::machine"/> attribute
|
---|
842 | (see <link to="IMachine::lockMachine" /> for details).
|
---|
843 | </desc>
|
---|
844 | </const>
|
---|
845 | <const name="Spawning" value="3">
|
---|
846 | <desc>
|
---|
847 | A new process is being spawned for the machine as a result of
|
---|
848 | <link to="IMachine::launchVMProcess"/> call. This state also occurs
|
---|
849 | as a short transient state during an <link to="IMachine::lockMachine"/>
|
---|
850 | call.
|
---|
851 | </desc>
|
---|
852 | </const>
|
---|
853 | <const name="Unlocking" value="4">
|
---|
854 | <desc>
|
---|
855 | The session is being unlocked.
|
---|
856 | </desc>
|
---|
857 | </const>
|
---|
858 | </enum>
|
---|
859 |
|
---|
860 | <enum
|
---|
861 | name="CPUPropertyType"
|
---|
862 | uuid="24d356a6-2f45-4abd-b977-1cbe9c4701f5"
|
---|
863 | >
|
---|
864 | <desc>
|
---|
865 | Virtual CPU property type. This enumeration represents possible values of the
|
---|
866 | IMachine get- and setCPUProperty methods.
|
---|
867 | </desc>
|
---|
868 | <const name="Null" value="0">
|
---|
869 | <desc>Null value (never used by the API).</desc>
|
---|
870 | </const>
|
---|
871 | <const name="PAE" value="1">
|
---|
872 | <desc>
|
---|
873 | This setting determines whether VirtualBox will expose the Physical Address
|
---|
874 | Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
|
---|
875 | is not available, it will not be reported.
|
---|
876 | </desc>
|
---|
877 | </const>
|
---|
878 | <const name="Synthetic" value="2">
|
---|
879 | <desc>
|
---|
880 | This setting determines whether VirtualBox will expose a synthetic CPU to the guest to allow
|
---|
881 | teleporting between host systems that differ significantly.
|
---|
882 | </desc>
|
---|
883 | </const>
|
---|
884 | </enum>
|
---|
885 |
|
---|
886 |
|
---|
887 | <enum
|
---|
888 | name="HWVirtExPropertyType"
|
---|
889 | uuid="ce81dfdd-d2b8-4a90-bbea-40ee8b7ffcee"
|
---|
890 | >
|
---|
891 | <desc>
|
---|
892 | Hardware virtualization property type. This enumeration represents possible values
|
---|
893 | for the <link to="IMachine::getHWVirtExProperty"/> and
|
---|
894 | <link to="IMachine::setHWVirtExProperty"/> methods.
|
---|
895 | </desc>
|
---|
896 | <const name="Null" value="0">
|
---|
897 | <desc>Null value (never used by the API).</desc>
|
---|
898 | </const>
|
---|
899 | <const name="Enabled" value="1">
|
---|
900 | <desc>
|
---|
901 | Whether hardware virtualization (VT-x/AMD-V) is enabled at all. If
|
---|
902 | such extensions are not available, they will not be used.
|
---|
903 | </desc>
|
---|
904 | </const>
|
---|
905 | <const name="Exclusive" value="2">
|
---|
906 | <desc>
|
---|
907 | Whether hardware virtualization is used exclusively by VirtualBox. When enabled,
|
---|
908 | VirtualBox assumes it can acquire full and exclusive access to the VT-x or AMD-V
|
---|
909 | feature of the host. To share these with other hypervisors, you must disable this property.
|
---|
910 | </desc>
|
---|
911 | </const>
|
---|
912 | <const name="VPID" value="3">
|
---|
913 | <desc>
|
---|
914 | Whether VT-x VPID is enabled. If this extension is not available, it will not be used.
|
---|
915 | </desc>
|
---|
916 | </const>
|
---|
917 | <const name="NestedPaging" value="4">
|
---|
918 | <desc>
|
---|
919 | Whether Nested Paging is enabled. If this extension is not available, it will not be used.
|
---|
920 | </desc>
|
---|
921 | </const>
|
---|
922 | <const name="LargePages" value="5">
|
---|
923 | <desc>
|
---|
924 | Whether large page allocation is enabled; requires nested paging and a 64 bits host.
|
---|
925 | </desc>
|
---|
926 | </const>
|
---|
927 | <const name="Force" value="6">
|
---|
928 | <desc>
|
---|
929 | Whether the VM should fail to start if hardware virtualization (VT-x/AMD-V) cannot be used. If
|
---|
930 | not set, there will be an automatic fallback to software virtualization.
|
---|
931 | </desc>
|
---|
932 | </const>
|
---|
933 | </enum>
|
---|
934 |
|
---|
935 | <enum
|
---|
936 | name="FaultToleranceState"
|
---|
937 | uuid="5124f7ec-6b67-493c-9dee-ee45a44114e1"
|
---|
938 | >
|
---|
939 | <desc>
|
---|
940 | Used with <link to="IMachine::faultToleranceState" />.
|
---|
941 | </desc>
|
---|
942 | <const name="Inactive" value="1">
|
---|
943 | <desc>No fault tolerance enabled.</desc>
|
---|
944 | </const>
|
---|
945 | <const name="Master" value="2">
|
---|
946 | <desc>Fault tolerant master VM.</desc>
|
---|
947 | </const>
|
---|
948 | <const name="Standby" value="3">
|
---|
949 | <desc>Fault tolerant standby VM.</desc>
|
---|
950 | </const>
|
---|
951 | </enum>
|
---|
952 |
|
---|
953 | <enum
|
---|
954 | name="LockType"
|
---|
955 | uuid="138b53f8-db4b-47c5-b32b-4ef52f769413"
|
---|
956 | >
|
---|
957 | <desc>
|
---|
958 | Used with <link to="IMachine::lockMachine" />.
|
---|
959 | </desc>
|
---|
960 | <const name="Write" value="2">
|
---|
961 | <desc>Lock the machine for writing.</desc>
|
---|
962 | </const>
|
---|
963 | <const name="Shared" value="1">
|
---|
964 | <desc>Request only a shared read lock for remote-controlling the machine.</desc>
|
---|
965 | </const>
|
---|
966 | </enum>
|
---|
967 |
|
---|
968 | <enum
|
---|
969 | name="SessionType"
|
---|
970 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
971 | >
|
---|
972 | <desc>
|
---|
973 | Session type. This enumeration represents possible values of the
|
---|
974 | <link to="ISession::type"/> attribute.
|
---|
975 | </desc>
|
---|
976 |
|
---|
977 | <const name="Null" value="0">
|
---|
978 | <desc>Null value (never used by the API).</desc>
|
---|
979 | </const>
|
---|
980 | <const name="WriteLock" value="1">
|
---|
981 | <desc>
|
---|
982 | Session has acquired an exclusive write lock on a machine
|
---|
983 | using <link to="IMachine::lockMachine"/>.
|
---|
984 | </desc>
|
---|
985 | </const>
|
---|
986 | <const name="Remote" value="2">
|
---|
987 | <desc>
|
---|
988 | Session has launched a VM process using
|
---|
989 | <link to="IMachine::launchVMProcess"/>
|
---|
990 | </desc>
|
---|
991 | </const>
|
---|
992 | <const name="Shared" value="3">
|
---|
993 | <desc>
|
---|
994 | Session has obtained a link to another session using
|
---|
995 | <link to="IMachine::lockMachine"/>
|
---|
996 | </desc>
|
---|
997 | </const>
|
---|
998 | </enum>
|
---|
999 |
|
---|
1000 | <enum
|
---|
1001 | name="DeviceType"
|
---|
1002 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
1003 | >
|
---|
1004 | <desc>
|
---|
1005 | Device type.
|
---|
1006 | </desc>
|
---|
1007 | <const name="Null" value="0">
|
---|
1008 | <desc>
|
---|
1009 | Null value, may also mean "no device" (not allowed for
|
---|
1010 | <link to="IConsole::getDeviceActivity"/>).
|
---|
1011 | </desc>
|
---|
1012 | </const>
|
---|
1013 | <const name="Floppy" value="1">
|
---|
1014 | <desc>Floppy device.</desc>
|
---|
1015 | </const>
|
---|
1016 | <const name="DVD" value="2">
|
---|
1017 | <desc>CD/DVD-ROM device.</desc>
|
---|
1018 | </const>
|
---|
1019 | <const name="HardDisk" value="3">
|
---|
1020 | <desc>Hard disk device.</desc>
|
---|
1021 | </const>
|
---|
1022 | <const name="Network" value="4">
|
---|
1023 | <desc>Network device.</desc>
|
---|
1024 | </const>
|
---|
1025 | <const name="USB" value="5">
|
---|
1026 | <desc>USB device.</desc>
|
---|
1027 | </const>
|
---|
1028 | <const name="SharedFolder" value="6">
|
---|
1029 | <desc>Shared folder device.</desc>
|
---|
1030 | </const>
|
---|
1031 | </enum>
|
---|
1032 |
|
---|
1033 | <enum
|
---|
1034 | name="DeviceActivity"
|
---|
1035 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
1036 | >
|
---|
1037 | <desc>
|
---|
1038 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
1039 | </desc>
|
---|
1040 |
|
---|
1041 | <const name="Null" value="0"/>
|
---|
1042 | <const name="Idle" value="1"/>
|
---|
1043 | <const name="Reading" value="2"/>
|
---|
1044 | <const name="Writing" value="3"/>
|
---|
1045 | </enum>
|
---|
1046 |
|
---|
1047 | <enum
|
---|
1048 | name="ClipboardMode"
|
---|
1049 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
1050 | >
|
---|
1051 | <desc>
|
---|
1052 | Host-Guest clipboard interchange mode.
|
---|
1053 | </desc>
|
---|
1054 |
|
---|
1055 | <const name="Disabled" value="0"/>
|
---|
1056 | <const name="HostToGuest" value="1"/>
|
---|
1057 | <const name="GuestToHost" value="2"/>
|
---|
1058 | <const name="Bidirectional" value="3"/>
|
---|
1059 | </enum>
|
---|
1060 |
|
---|
1061 | <enum
|
---|
1062 | name="Scope"
|
---|
1063 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
1064 | >
|
---|
1065 | <desc>
|
---|
1066 | Scope of the operation.
|
---|
1067 |
|
---|
1068 | A generic enumeration used in various methods to define the action or
|
---|
1069 | argument scope.
|
---|
1070 | </desc>
|
---|
1071 |
|
---|
1072 | <const name="Global" value="0"/>
|
---|
1073 | <const name="Machine" value="1"/>
|
---|
1074 | <const name="Session" value="2"/>
|
---|
1075 | </enum>
|
---|
1076 |
|
---|
1077 | <enum
|
---|
1078 | name="BIOSBootMenuMode"
|
---|
1079 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
1080 | >
|
---|
1081 | <desc>
|
---|
1082 | BIOS boot menu mode.
|
---|
1083 | </desc>
|
---|
1084 |
|
---|
1085 | <const name="Disabled" value="0"/>
|
---|
1086 | <const name="MenuOnly" value="1"/>
|
---|
1087 | <const name="MessageAndMenu" value="2"/>
|
---|
1088 | </enum>
|
---|
1089 |
|
---|
1090 | <enum
|
---|
1091 | name="ProcessorFeature"
|
---|
1092 | uuid="64c38e6b-8bcf-45ad-ac03-9b406287c5bf"
|
---|
1093 | >
|
---|
1094 | <desc>
|
---|
1095 | CPU features.
|
---|
1096 | </desc>
|
---|
1097 |
|
---|
1098 | <const name="HWVirtEx" value="0"/>
|
---|
1099 | <const name="PAE" value="1"/>
|
---|
1100 | <const name="LongMode" value="2"/>
|
---|
1101 | <const name="NestedPaging" value="3"/>
|
---|
1102 | </enum>
|
---|
1103 |
|
---|
1104 | <enum
|
---|
1105 | name="FirmwareType"
|
---|
1106 | uuid="b903f264-c230-483e-ac74-2b37ce60d371"
|
---|
1107 | >
|
---|
1108 | <desc>
|
---|
1109 | Firmware type.
|
---|
1110 | </desc>
|
---|
1111 | <const name="BIOS" value="1">
|
---|
1112 | <desc>BIOS Firmware.</desc>
|
---|
1113 | </const>
|
---|
1114 | <const name="EFI" value="2">
|
---|
1115 | <desc>EFI Firmware, bitness detected basing on OS type.</desc>
|
---|
1116 | </const>
|
---|
1117 | <const name="EFI32" value="3">
|
---|
1118 | <desc>Efi firmware, 32-bit.</desc>
|
---|
1119 | </const>
|
---|
1120 | <const name="EFI64" value="4">
|
---|
1121 | <desc>Efi firmware, 64-bit.</desc>
|
---|
1122 | </const>
|
---|
1123 | <const name="EFIDUAL" value="5">
|
---|
1124 | <desc>Efi firmware, combined 32 and 64-bit.</desc>
|
---|
1125 | </const>
|
---|
1126 | </enum>
|
---|
1127 |
|
---|
1128 | <enum
|
---|
1129 | name="PointingHidType"
|
---|
1130 | uuid="0d3c17a2-821a-4b2e-ae41-890c6c60aa97"
|
---|
1131 | >
|
---|
1132 | <desc>
|
---|
1133 | Type of pointing device used in a virtual machine.
|
---|
1134 | </desc>
|
---|
1135 | <const name="None" value="1">
|
---|
1136 | <desc>No mouse.</desc>
|
---|
1137 | </const>
|
---|
1138 | <const name="PS2Mouse" value="2">
|
---|
1139 | <desc>PS/2 auxiliary device, a.k.a. mouse.</desc>
|
---|
1140 | </const>
|
---|
1141 | <const name="USBMouse" value="3">
|
---|
1142 | <desc>USB mouse (relative pointer).</desc>
|
---|
1143 | </const>
|
---|
1144 | <const name="USBTablet" value="4">
|
---|
1145 | <desc>USB tablet (absolute pointer).</desc>
|
---|
1146 | </const>
|
---|
1147 | <const name="ComboMouse" value="5">
|
---|
1148 | <desc>Combined device, working as PS/2 or USB mouse, depending on guest behavior.
|
---|
1149 | Using of such device can have negative performance implications. </desc>
|
---|
1150 | </const>
|
---|
1151 | </enum>
|
---|
1152 |
|
---|
1153 | <enum
|
---|
1154 | name="KeyboardHidType"
|
---|
1155 | uuid="5a5b0996-3a3e-44bb-9019-56979812cbcc"
|
---|
1156 | >
|
---|
1157 | <desc>
|
---|
1158 | Type of keyboard device used in a virtual machine.
|
---|
1159 | </desc>
|
---|
1160 | <const name="None" value="1">
|
---|
1161 | <desc>No keyboard.</desc>
|
---|
1162 | </const>
|
---|
1163 | <const name="PS2Keyboard" value="2">
|
---|
1164 | <desc>PS/2 keyboard.</desc>
|
---|
1165 | </const>
|
---|
1166 | <const name="USBKeyboard" value="3">
|
---|
1167 | <desc>USB keyboard.</desc>
|
---|
1168 | </const>
|
---|
1169 | <const name="ComboKeyboard" value="4">
|
---|
1170 | <desc>Combined device, working as PS/2 or USB keyboard, depending on guest behavior.
|
---|
1171 | Using of such device can have negative performance implications. </desc>
|
---|
1172 | </const>
|
---|
1173 | </enum>
|
---|
1174 |
|
---|
1175 | <!--
|
---|
1176 | // IVirtualBoxErrorInfo
|
---|
1177 | /////////////////////////////////////////////////////////////////////////
|
---|
1178 | -->
|
---|
1179 |
|
---|
1180 | <interface
|
---|
1181 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
1182 | uuid="e053d3c0-f493-491b-a735-3a9f0b1feed4"
|
---|
1183 | supportsErrorInfo="no"
|
---|
1184 | wsmap="managed"
|
---|
1185 | >
|
---|
1186 | <desc>
|
---|
1187 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
1188 |
|
---|
1189 | Extended error information can be set by VirtualBox components after
|
---|
1190 | unsuccessful or partially successful method invocation. This information
|
---|
1191 | can be retrieved by the calling party as an IVirtualBoxErrorInfo object
|
---|
1192 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
1193 |
|
---|
1194 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
1195 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
1196 | it provides a set of common attributes to retrieve error
|
---|
1197 | information.
|
---|
1198 |
|
---|
1199 | Sometimes invocation of some component's method may involve methods of
|
---|
1200 | other components that may also fail (independently of this method's
|
---|
1201 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
1202 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
1203 | information about all errors happened during method invocation and deliver
|
---|
1204 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
1205 | specifically for this purpose and allows to represent a chain of errors
|
---|
1206 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
1207 |
|
---|
1208 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
1209 | initial error object you query right after method invocation is the last
|
---|
1210 | error set by the callee, the object it points to in the @a next attribute
|
---|
1211 | is the previous error and so on, up to the first error (which is the last
|
---|
1212 | in the chain).
|
---|
1213 | </desc>
|
---|
1214 |
|
---|
1215 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
1216 | <desc>
|
---|
1217 | Result code of the error.
|
---|
1218 | Usually, it will be the same as the result code returned
|
---|
1219 | by the method that provided this error information, but not
|
---|
1220 | always. For example, on Win32, CoCreateInstance() will most
|
---|
1221 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
1222 | instantiation attempt, but not the value the component factory
|
---|
1223 | returned. Value is typed 'long', not 'result',
|
---|
1224 | to make interface usable from scripting languages.
|
---|
1225 | <note>
|
---|
1226 | In MS COM, there is no equivalent.
|
---|
1227 | In XPCOM, it is the same as nsIException::result.
|
---|
1228 | </note>
|
---|
1229 | </desc>
|
---|
1230 | </attribute>
|
---|
1231 |
|
---|
1232 | <attribute name="interfaceID" type="uuid" mod="string" readonly="yes">
|
---|
1233 | <desc>
|
---|
1234 | UUID of the interface that defined the error.
|
---|
1235 | <note>
|
---|
1236 | In MS COM, it is the same as IErrorInfo::GetGUID, except for the
|
---|
1237 | data type.
|
---|
1238 | In XPCOM, there is no equivalent.
|
---|
1239 | </note>
|
---|
1240 | </desc>
|
---|
1241 | </attribute>
|
---|
1242 |
|
---|
1243 | <attribute name="component" type="wstring" readonly="yes">
|
---|
1244 | <desc>
|
---|
1245 | Name of the component that generated the error.
|
---|
1246 | <note>
|
---|
1247 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
1248 | In XPCOM, there is no equivalent.
|
---|
1249 | </note>
|
---|
1250 | </desc>
|
---|
1251 | </attribute>
|
---|
1252 |
|
---|
1253 | <attribute name="text" type="wstring" readonly="yes">
|
---|
1254 | <desc>
|
---|
1255 | Text description of the error.
|
---|
1256 | <note>
|
---|
1257 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
1258 | In XPCOM, it is the same as nsIException::message.
|
---|
1259 | </note>
|
---|
1260 | </desc>
|
---|
1261 | </attribute>
|
---|
1262 |
|
---|
1263 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
1264 | <desc>
|
---|
1265 | Next error object if there is any, or @c null otherwise.
|
---|
1266 | <note>
|
---|
1267 | In MS COM, there is no equivalent.
|
---|
1268 | In XPCOM, it is the same as nsIException::inner.
|
---|
1269 | </note>
|
---|
1270 | </desc>
|
---|
1271 | </attribute>
|
---|
1272 |
|
---|
1273 | </interface>
|
---|
1274 |
|
---|
1275 | <!--
|
---|
1276 | // IVirtualBox
|
---|
1277 | /////////////////////////////////////////////////////////////////////////
|
---|
1278 | -->
|
---|
1279 |
|
---|
1280 | <interface
|
---|
1281 | name="IDHCPServer" extends="$unknown"
|
---|
1282 | uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
|
---|
1283 | wsmap="managed"
|
---|
1284 | >
|
---|
1285 | <desc>
|
---|
1286 | The IDHCPServer interface represents the vbox dhcp server configuration.
|
---|
1287 |
|
---|
1288 | To enumerate all the dhcp servers on the host, use the
|
---|
1289 | <link to="IVirtualBox::DHCPServers"/> attribute.
|
---|
1290 | </desc>
|
---|
1291 |
|
---|
1292 | <attribute name="enabled" type="boolean">
|
---|
1293 | <desc>
|
---|
1294 | specifies if the dhcp server is enabled
|
---|
1295 | </desc>
|
---|
1296 | </attribute>
|
---|
1297 |
|
---|
1298 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
1299 | <desc>
|
---|
1300 | specifies server IP
|
---|
1301 | </desc>
|
---|
1302 | </attribute>
|
---|
1303 |
|
---|
1304 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
1305 | <desc>
|
---|
1306 | specifies server network mask
|
---|
1307 | </desc>
|
---|
1308 | </attribute>
|
---|
1309 |
|
---|
1310 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
1311 | <desc>
|
---|
1312 | specifies internal network name the server is used for
|
---|
1313 | </desc>
|
---|
1314 | </attribute>
|
---|
1315 |
|
---|
1316 | <attribute name="lowerIP" type="wstring" readonly="yes">
|
---|
1317 | <desc>
|
---|
1318 | specifies from IP address in server address range
|
---|
1319 | </desc>
|
---|
1320 | </attribute>
|
---|
1321 |
|
---|
1322 | <attribute name="upperIP" type="wstring" readonly="yes">
|
---|
1323 | <desc>
|
---|
1324 | specifies to IP address in server address range
|
---|
1325 | </desc>
|
---|
1326 | </attribute>
|
---|
1327 |
|
---|
1328 | <method name="setConfiguration">
|
---|
1329 | <desc>
|
---|
1330 | configures the server
|
---|
1331 | <result name="E_INVALIDARG">
|
---|
1332 | invalid configuration supplied
|
---|
1333 | </result>
|
---|
1334 | </desc>
|
---|
1335 | <param name="IPAddress" type="wstring" dir="in">
|
---|
1336 | <desc>
|
---|
1337 | server IP address
|
---|
1338 | </desc>
|
---|
1339 | </param>
|
---|
1340 | <param name="networkMask" type="wstring" dir="in">
|
---|
1341 | <desc>
|
---|
1342 | server network mask
|
---|
1343 | </desc>
|
---|
1344 | </param>
|
---|
1345 | <param name="FromIPAddress" type="wstring" dir="in">
|
---|
1346 | <desc>
|
---|
1347 | server From IP address for address range
|
---|
1348 | </desc>
|
---|
1349 | </param>
|
---|
1350 | <param name="ToIPAddress" type="wstring" dir="in">
|
---|
1351 | <desc>
|
---|
1352 | server To IP address for address range
|
---|
1353 | </desc>
|
---|
1354 | </param>
|
---|
1355 | </method>
|
---|
1356 |
|
---|
1357 | <method name="start">
|
---|
1358 | <desc>
|
---|
1359 | Starts DHCP server process.
|
---|
1360 | <result name="E_FAIL">
|
---|
1361 | Failed to start the process.
|
---|
1362 | </result>
|
---|
1363 | </desc>
|
---|
1364 | <param name="networkName" type="wstring" dir="in">
|
---|
1365 | <desc>
|
---|
1366 | Name of internal network DHCP server should attach to.
|
---|
1367 | </desc>
|
---|
1368 | </param>
|
---|
1369 | <param name="trunkName" type="wstring" dir="in">
|
---|
1370 | <desc>
|
---|
1371 | Name of internal network trunk.
|
---|
1372 | </desc>
|
---|
1373 | </param>
|
---|
1374 | <param name="trunkType" type="wstring" dir="in">
|
---|
1375 | <desc>
|
---|
1376 | Type of internal network trunk.
|
---|
1377 | </desc>
|
---|
1378 | </param>
|
---|
1379 | </method>
|
---|
1380 |
|
---|
1381 | <method name="stop">
|
---|
1382 | <desc>
|
---|
1383 | Stops DHCP server process.
|
---|
1384 | <result name="E_FAIL">
|
---|
1385 | Failed to stop the process.
|
---|
1386 | </result>
|
---|
1387 | </desc>
|
---|
1388 | </method>
|
---|
1389 | </interface>
|
---|
1390 |
|
---|
1391 | <interface
|
---|
1392 | name="IVirtualBox" extends="$unknown"
|
---|
1393 | uuid="d2de270c-1d4b-4c9e-843f-bbb9b47269ff"
|
---|
1394 | wsmap="managed"
|
---|
1395 | >
|
---|
1396 | <desc>
|
---|
1397 | The IVirtualBox interface represents the main interface exposed by the
|
---|
1398 | product that provides virtual machine management.
|
---|
1399 |
|
---|
1400 | An instance of IVirtualBox is required for the product to do anything
|
---|
1401 | useful. Even though the interface does not expose this, internally,
|
---|
1402 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
1403 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
1404 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
1405 | host, regardless of which frontend started them.
|
---|
1406 |
|
---|
1407 | To enumerate all the virtual machines on the host, use the
|
---|
1408 | <link to="IVirtualBox::machines"/> attribute.
|
---|
1409 | </desc>
|
---|
1410 |
|
---|
1411 | <attribute name="version" type="wstring" readonly="yes">
|
---|
1412 | <desc>
|
---|
1413 | A string representing the version number of the product. The
|
---|
1414 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
1415 | last number represents the build number and will frequently change.
|
---|
1416 | </desc>
|
---|
1417 | </attribute>
|
---|
1418 |
|
---|
1419 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
1420 | <desc>
|
---|
1421 | The internal build revision number of the product.
|
---|
1422 | </desc>
|
---|
1423 | </attribute>
|
---|
1424 |
|
---|
1425 | <attribute name="packageType" type="wstring" readonly="yes">
|
---|
1426 | <desc>
|
---|
1427 | A string representing the package type of this product. The
|
---|
1428 | format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
|
---|
1429 | SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
|
---|
1430 | is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
|
---|
1431 | this.
|
---|
1432 | </desc>
|
---|
1433 | </attribute>
|
---|
1434 |
|
---|
1435 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
1436 | <desc>
|
---|
1437 | Full path to the directory where the global settings file,
|
---|
1438 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
1439 |
|
---|
1440 | In this version of VirtualBox, the value of this property is
|
---|
1441 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
1442 | <tt><user_dir></tt> is the path to the user directory,
|
---|
1443 | as determined by the host OS), and cannot be changed.
|
---|
1444 |
|
---|
1445 | This path is also used as the base to resolve relative paths in
|
---|
1446 | places where relative paths are allowed (unless otherwise
|
---|
1447 | expressly indicated).
|
---|
1448 | </desc>
|
---|
1449 | </attribute>
|
---|
1450 |
|
---|
1451 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
1452 | <desc>
|
---|
1453 | Full name of the global settings file.
|
---|
1454 | The value of this property corresponds to the value of
|
---|
1455 | <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
|
---|
1456 | </desc>
|
---|
1457 | </attribute>
|
---|
1458 |
|
---|
1459 | <attribute name="host" type="IHost" readonly="yes">
|
---|
1460 | <desc>Associated host object.</desc>
|
---|
1461 | </attribute>
|
---|
1462 |
|
---|
1463 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
1464 | <desc>Associated system information object.</desc>
|
---|
1465 | </attribute>
|
---|
1466 |
|
---|
1467 | <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
|
---|
1468 | <desc>
|
---|
1469 | Array of machine objects registered within this VirtualBox instance.
|
---|
1470 | </desc>
|
---|
1471 | </attribute>
|
---|
1472 |
|
---|
1473 | <attribute name="hardDisks" type="IMedium" readonly="yes" safearray="yes">
|
---|
1474 | <desc>
|
---|
1475 | Array of medium objects known to this VirtualBox installation.
|
---|
1476 |
|
---|
1477 | This array contains only base media. All differencing
|
---|
1478 | media of the given base medium can be enumerated using
|
---|
1479 | <link to="IMedium::children"/>.
|
---|
1480 | </desc>
|
---|
1481 | </attribute>
|
---|
1482 |
|
---|
1483 | <attribute name="DVDImages" type="IMedium" readonly="yes" safearray="yes">
|
---|
1484 | <desc>
|
---|
1485 | Array of CD/DVD image objects currently in use by this VirtualBox instance.
|
---|
1486 | </desc>
|
---|
1487 | </attribute>
|
---|
1488 |
|
---|
1489 | <attribute name="floppyImages" type="IMedium" readonly="yes" safearray="yes">
|
---|
1490 | <desc>
|
---|
1491 | Array of floppy image objects currently in use by this VirtualBox instance.
|
---|
1492 | </desc>
|
---|
1493 | </attribute>
|
---|
1494 |
|
---|
1495 | <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
|
---|
1496 |
|
---|
1497 | <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
|
---|
1498 |
|
---|
1499 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
1500 | <desc>
|
---|
1501 | Collection of global shared folders. Global shared folders are
|
---|
1502 | available to all virtual machines.
|
---|
1503 |
|
---|
1504 | New shared folders are added to the collection using
|
---|
1505 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
1506 | removed using <link to="#removeSharedFolder"/>.
|
---|
1507 |
|
---|
1508 | <note>
|
---|
1509 | In the current version of the product, global shared folders are not
|
---|
1510 | implemented and therefore this collection is always empty.
|
---|
1511 | </note>
|
---|
1512 | </desc>
|
---|
1513 | </attribute>
|
---|
1514 |
|
---|
1515 | <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
|
---|
1516 | <desc>
|
---|
1517 | Associated performance collector object.
|
---|
1518 | </desc>
|
---|
1519 | </attribute>
|
---|
1520 |
|
---|
1521 | <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
|
---|
1522 | <desc>
|
---|
1523 | DHCP servers.
|
---|
1524 | </desc>
|
---|
1525 | </attribute>
|
---|
1526 |
|
---|
1527 | <attribute name="eventSource" type="IEventSource" readonly="yes">
|
---|
1528 | <desc>
|
---|
1529 | Event source for VirtualBox events.
|
---|
1530 | </desc>
|
---|
1531 | </attribute>
|
---|
1532 |
|
---|
1533 | <attribute name="extensionPackManager" type="IExtPackManager" readonly="yes">
|
---|
1534 | <desc>
|
---|
1535 | The extension pack manager.
|
---|
1536 | </desc>
|
---|
1537 | </attribute>
|
---|
1538 |
|
---|
1539 |
|
---|
1540 | <method name="composeMachineFilename">
|
---|
1541 | <desc>
|
---|
1542 | Returns a recommended full path of the settings file name for a new virtual
|
---|
1543 | machine.
|
---|
1544 |
|
---|
1545 | This API serves two purposes:
|
---|
1546 |
|
---|
1547 | <ul>
|
---|
1548 | <li>It gets called by <link to="#createMachine" /> if NULL is specified
|
---|
1549 | for the @a settingsFile argument there, which means that API should use
|
---|
1550 | a recommended default file name.</li>
|
---|
1551 |
|
---|
1552 | <li>It can be called manually by a client software before creating a machine,
|
---|
1553 | e.g. if that client wants to pre-create the machine directory to create
|
---|
1554 | virtual hard disks in that directory together with the new machine
|
---|
1555 | settings file. In that case, the file name should be stripped from the
|
---|
1556 | full settings file path returned by this function to obtain the
|
---|
1557 | machine directory.</li>
|
---|
1558 | </ul>
|
---|
1559 |
|
---|
1560 | See <link to="IMachine::name"/> and <link to="#createMachine"/> for more
|
---|
1561 | details about the machine name.
|
---|
1562 |
|
---|
1563 | If @a baseFolder is a @c null or empty string (which is recommended), the
|
---|
1564 | default machine settings folder
|
---|
1565 | (see <link to="ISystemProperties::defaultMachineFolder" />) will be used as
|
---|
1566 | a base folder for the created machine, resulting in a file name like
|
---|
1567 | "/home/user/VirtualBox VMs/name/name.vbox". Otherwise the given base folder
|
---|
1568 | will be used.
|
---|
1569 |
|
---|
1570 | This method does not access the host disks. In particular, it does not check
|
---|
1571 | for whether a machine of this name already exists.
|
---|
1572 | </desc>
|
---|
1573 | <param name="name" type="wstring" dir="in">
|
---|
1574 | <desc>Suggested machine name.</desc>
|
---|
1575 | </param>
|
---|
1576 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1577 | <desc>Base machine folder (optional).</desc>
|
---|
1578 | </param>
|
---|
1579 | <param name="file" type="wstring" dir="return">
|
---|
1580 | <desc>Fully qualified path where the machine would be created.</desc>
|
---|
1581 | </param>
|
---|
1582 | </method>
|
---|
1583 |
|
---|
1584 | <method name="createMachine">
|
---|
1585 | <desc>
|
---|
1586 | Creates a new virtual machine by creating a machine settings file at
|
---|
1587 | the given location.
|
---|
1588 |
|
---|
1589 | VirtualBox machine settings files use a custom XML dialect. Starting
|
---|
1590 | with VirtualBox 4.0, a ".vbox" extension is recommended, but not enforced,
|
---|
1591 | and machine files can be created at arbitrary locations.
|
---|
1592 |
|
---|
1593 | However, it is is recommended that machines be created in the default
|
---|
1594 | machine folder (e.g. "/home/user/VirtualBox VMs/name/name.vbox"; see
|
---|
1595 | <link to="ISystemProperties::defaultMachineFolder" />). If you specify
|
---|
1596 | NULL for the @a settingsFile argument, <link to="#composeMachineFilename" />
|
---|
1597 | is called automatically to have such a recommended name composed based
|
---|
1598 | on the machine name given in the @a name argument.
|
---|
1599 |
|
---|
1600 | If the resulting settings file already exists, this method will fail,
|
---|
1601 | unless @a forceOverwrite is set.
|
---|
1602 |
|
---|
1603 | The new machine is created unregistered, with the initial configuration
|
---|
1604 | set according to the specified guest OS type. A typical sequence of
|
---|
1605 | actions to create a new virtual machine is as follows:
|
---|
1606 |
|
---|
1607 | <ol>
|
---|
1608 | <li>
|
---|
1609 | Call this method to have a new machine created. The returned machine
|
---|
1610 | object will be "mutable" allowing to change any machine property.
|
---|
1611 | </li>
|
---|
1612 |
|
---|
1613 | <li>
|
---|
1614 | Configure the machine using the appropriate attributes and methods.
|
---|
1615 | </li>
|
---|
1616 |
|
---|
1617 | <li>
|
---|
1618 | Call <link to="IMachine::saveSettings" /> to write the settings
|
---|
1619 | to the machine's XML settings file. The configuration of the newly
|
---|
1620 | created machine will not be saved to disk until this method is
|
---|
1621 | called.
|
---|
1622 | </li>
|
---|
1623 |
|
---|
1624 | <li>
|
---|
1625 | Call <link to="#registerMachine" /> to add the machine to the list
|
---|
1626 | of machines known to VirtualBox.
|
---|
1627 | </li>
|
---|
1628 | </ol>
|
---|
1629 |
|
---|
1630 | The specified guest OS type identifier must match an ID of one of known
|
---|
1631 | guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
|
---|
1632 | array.
|
---|
1633 |
|
---|
1634 | Optionally, you may specify an UUID of to assign to the created machine.
|
---|
1635 | However, this is not recommended and you should normally pass an empty
|
---|
1636 | (@c null) UUID to this method so that a new UUID will be automatically
|
---|
1637 | generated for every created machine. You can use UUID
|
---|
1638 | 00000000-0000-0000-0000-000000000000 as @c null value.
|
---|
1639 |
|
---|
1640 | <note>
|
---|
1641 | There is no way to change the name of the settings file or
|
---|
1642 | subfolder of the created machine directly.
|
---|
1643 | </note>
|
---|
1644 |
|
---|
1645 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1646 | @a osTypeId is invalid.
|
---|
1647 | </result>
|
---|
1648 | <result name="VBOX_E_FILE_ERROR">
|
---|
1649 | Resulting settings file name is invalid or the settings file already
|
---|
1650 | exists or could not be created due to an I/O error.
|
---|
1651 | </result>
|
---|
1652 | <result name="E_INVALIDARG">
|
---|
1653 | @a name is empty or @c null.
|
---|
1654 | </result>
|
---|
1655 | </desc>
|
---|
1656 |
|
---|
1657 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1658 | <desc>Fully qualified path where the settings file should be created,
|
---|
1659 | or NULL for a default folder and file based on the @a name argument
|
---|
1660 | (see <link to="#composeMachineFilename" />).</desc>
|
---|
1661 | </param>
|
---|
1662 | <param name="name" type="wstring" dir="in">
|
---|
1663 | <desc>Machine name.</desc>
|
---|
1664 | </param>
|
---|
1665 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1666 | <desc>Guest OS Type ID.</desc>
|
---|
1667 | </param>
|
---|
1668 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
1669 | <desc>Machine UUID (optional).</desc>
|
---|
1670 | </param>
|
---|
1671 | <param name="forceOverwrite" type="boolean" dir="in">
|
---|
1672 | <desc>If true, an existing machine settings file will be overwritten.</desc>
|
---|
1673 | </param>
|
---|
1674 | <param name="machine" type="IMachine" dir="return">
|
---|
1675 | <desc>Created machine object.</desc>
|
---|
1676 | </param>
|
---|
1677 | </method>
|
---|
1678 |
|
---|
1679 | <method name="openMachine">
|
---|
1680 | <desc>
|
---|
1681 | Opens a virtual machine from the existing settings file.
|
---|
1682 | The opened machine remains unregistered until you call
|
---|
1683 | <link to="#registerMachine"/>.
|
---|
1684 |
|
---|
1685 | The specified settings file name must be fully qualified.
|
---|
1686 | The file must exist and be a valid machine XML settings file
|
---|
1687 | whose contents will be used to construct the machine object.
|
---|
1688 |
|
---|
1689 | <result name="VBOX_E_FILE_ERROR">
|
---|
1690 | Settings file name invalid, not found or sharing violation.
|
---|
1691 | </result>
|
---|
1692 | </desc>
|
---|
1693 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1694 | <desc>
|
---|
1695 | Name of the machine settings file.
|
---|
1696 | </desc>
|
---|
1697 | </param>
|
---|
1698 | <param name="machine" type="IMachine" dir="return">
|
---|
1699 | <desc>Opened machine object.</desc>
|
---|
1700 | </param>
|
---|
1701 | <note>
|
---|
1702 | <link to="IMachine::settingsModified"/> will return
|
---|
1703 | @c false for the created machine, until any of machine settings
|
---|
1704 | are changed.
|
---|
1705 | </note>
|
---|
1706 | </method>
|
---|
1707 |
|
---|
1708 | <method name="registerMachine">
|
---|
1709 | <desc>
|
---|
1710 |
|
---|
1711 | Registers the machine previously created using
|
---|
1712 | <link to="#createMachine"/> or opened using
|
---|
1713 | <link to="#openMachine"/> within this VirtualBox installation. After
|
---|
1714 | successful method invocation, the
|
---|
1715 | <link to="IMachineRegisteredEvent"/> event is fired.
|
---|
1716 |
|
---|
1717 | <note>
|
---|
1718 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1719 | to save all current machine settings before registering it.
|
---|
1720 | </note>
|
---|
1721 |
|
---|
1722 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1723 | No matching virtual machine found.
|
---|
1724 | </result>
|
---|
1725 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1726 | Virtual machine was not created within this VirtualBox instance.
|
---|
1727 | </result>
|
---|
1728 |
|
---|
1729 | </desc>
|
---|
1730 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1731 | </method>
|
---|
1732 |
|
---|
1733 | <method name="findMachine">
|
---|
1734 | <desc>
|
---|
1735 | Attempts to find a virtual machine given its name or UUID.
|
---|
1736 |
|
---|
1737 | <note>Inaccessible machines cannot be found by name, only by UUID, because their name
|
---|
1738 | cannot safely be determined.</note>
|
---|
1739 |
|
---|
1740 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1741 | Could not find registered machine matching @a nameOrId.
|
---|
1742 | </result>
|
---|
1743 |
|
---|
1744 | </desc>
|
---|
1745 | <param name="nameOrId" type="wstring" dir="in">
|
---|
1746 | <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
|
---|
1747 | </param>
|
---|
1748 | <param name="machine" type="IMachine" dir="return">
|
---|
1749 | <desc>Machine object, if found.</desc>
|
---|
1750 | </param>
|
---|
1751 | </method>
|
---|
1752 |
|
---|
1753 | <method name="createAppliance">
|
---|
1754 | <desc>
|
---|
1755 | Creates a new appliance object, which represents an appliance in the Open Virtual Machine
|
---|
1756 | Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
|
---|
1757 | machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
|
---|
1758 | </desc>
|
---|
1759 | <param name="appliance" type="IAppliance" dir="return">
|
---|
1760 | <desc>New appliance.</desc>
|
---|
1761 | </param>
|
---|
1762 | </method>
|
---|
1763 |
|
---|
1764 | <method name="createHardDisk">
|
---|
1765 | <desc>
|
---|
1766 | Creates a new base medium object that will use the given storage
|
---|
1767 | format and location for medium data.
|
---|
1768 |
|
---|
1769 | Note that the actual storage unit is not created by this method. In
|
---|
1770 | order to do it, and before you are able to attach the created medium
|
---|
1771 | to virtual machines, you must call one of the following methods to
|
---|
1772 | allocate a format-specific storage unit at the specified location:
|
---|
1773 | <ul>
|
---|
1774 | <li><link to="IMedium::createBaseStorage"/></li>
|
---|
1775 | <li><link to="IMedium::createDiffStorage"/></li>
|
---|
1776 | </ul>
|
---|
1777 |
|
---|
1778 | Some medium attributes, such as <link to="IMedium::id"/>, may
|
---|
1779 | remain uninitialized until the medium storage unit is successfully
|
---|
1780 | created by one of the above methods.
|
---|
1781 |
|
---|
1782 | After the storage unit is successfully created, it will be
|
---|
1783 | accessible through the <link to="#findMedium"/> method and can
|
---|
1784 | be found in the <link to="#hardDisks"/> array.
|
---|
1785 |
|
---|
1786 | The list of all storage formats supported by this VirtualBox
|
---|
1787 | installation can be obtained using
|
---|
1788 | <link to="ISystemProperties::mediumFormats"/>. If the @a format
|
---|
1789 | attribute is empty or @c null then the default storage format
|
---|
1790 | specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
|
---|
1791 | be used for creating a storage unit of the medium.
|
---|
1792 |
|
---|
1793 | Note that the format of the location string is storage format specific.
|
---|
1794 | See <link to="IMedium::location"/> and IMedium for more details.
|
---|
1795 |
|
---|
1796 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1797 | @a format identifier is invalid. See
|
---|
1798 | <link to="ISystemProperties::mediumFormats"/>.
|
---|
1799 | </result>
|
---|
1800 | <result name="VBOX_E_FILE_ERROR">
|
---|
1801 | @a location is a not valid file name (for file-based formats only).
|
---|
1802 | </result>
|
---|
1803 | </desc>
|
---|
1804 | <param name="format" type="wstring" dir="in">
|
---|
1805 | <desc>
|
---|
1806 | Identifier of the storage format to use for the new medium.
|
---|
1807 | </desc>
|
---|
1808 | </param>
|
---|
1809 | <param name="location" type="wstring" dir="in">
|
---|
1810 | <desc>
|
---|
1811 | Location of the storage unit for the new medium.
|
---|
1812 | </desc>
|
---|
1813 | </param>
|
---|
1814 | <param name="medium" type="IMedium" dir="return">
|
---|
1815 | <desc>Created medium object.</desc>
|
---|
1816 | </param>
|
---|
1817 | </method>
|
---|
1818 |
|
---|
1819 | <method name="openMedium">
|
---|
1820 | <desc>
|
---|
1821 | Opens a medium from an existing storage location.
|
---|
1822 |
|
---|
1823 | Once a medium has been opened, it can be passed to other VirtualBox
|
---|
1824 | methods, in particular to <link to="IMachine::attachDevice" />.
|
---|
1825 |
|
---|
1826 | Depending on the given device type, the file at the storage location
|
---|
1827 | must be in one of the media formats understood by VirtualBox:
|
---|
1828 |
|
---|
1829 | <ul>
|
---|
1830 | <li>With a "HardDisk" device type, the file must be a hard disk image
|
---|
1831 | in one of the formats supported by VirtualBox (see
|
---|
1832 | <link to="ISystemProperties::mediumFormats" />).
|
---|
1833 | After this method succeeds, if the medium is a base medium, it
|
---|
1834 | will be added to the <link to="#hardDisks"/> array attribute. </li>
|
---|
1835 | <li>With a "DVD" device type, the file must be an ISO 9960 CD/DVD image.
|
---|
1836 | After this method succeeds, the medium will be added to the
|
---|
1837 | <link to="#DVDImages"/> array attribute.</li>
|
---|
1838 | <li>With a "Floppy" device type, the file must be an RAW floppy image.
|
---|
1839 | After this method succeeds, the medium will be added to the
|
---|
1840 | <link to="#floppyImages"/> array attribute.</li>
|
---|
1841 | </ul>
|
---|
1842 |
|
---|
1843 | After having been opened, the medium can be found by the <link to="#findMedium"/>
|
---|
1844 | method and can be attached to virtual machines. See <link to="IMedium" /> for more details.
|
---|
1845 |
|
---|
1846 | The UUID of the newly opened medium will either be retrieved from the
|
---|
1847 | storage location, if the format supports it (e.g. for hard disk images),
|
---|
1848 | or a new UUID will be randomly generated (e.g. for ISO and RAW files).
|
---|
1849 | If for some reason you need to change the medium's UUID, use
|
---|
1850 | <link to="IMedium::setIDs" />.
|
---|
1851 |
|
---|
1852 | If a differencing hard disk medium is to be opened by this method, the
|
---|
1853 | operation will succeed only if its parent medium and all ancestors,
|
---|
1854 | if any, are already known to this VirtualBox installation (for example,
|
---|
1855 | were opened by this method before).
|
---|
1856 |
|
---|
1857 | This method attempts to guess the storage format of the specified medium
|
---|
1858 | by reading medium data at the specified location.
|
---|
1859 |
|
---|
1860 | If @a accessMode is ReadWrite (which it should be for hard disks and floppies),
|
---|
1861 | the image is opened for read/write access and must have according permissions,
|
---|
1862 | as VirtualBox may actually write status information into the disk's metadata
|
---|
1863 | sections.
|
---|
1864 |
|
---|
1865 | Note that write access is required for all typical hard disk usage in VirtualBox,
|
---|
1866 | since VirtualBox may need to write metadata such as a UUID into the image.
|
---|
1867 | The only exception is opening a source image temporarily for copying and
|
---|
1868 | cloning (see <link to="IMedium::cloneTo" /> when the image will be closed
|
---|
1869 | again soon.
|
---|
1870 |
|
---|
1871 | The format of the location string is storage format specific. See
|
---|
1872 | <link to="IMedium::location"/> and IMedium for more details.
|
---|
1873 |
|
---|
1874 | <result name="VBOX_E_FILE_ERROR">
|
---|
1875 | Invalid medium storage file location or could not find the medium
|
---|
1876 | at the specified location.
|
---|
1877 | </result>
|
---|
1878 | <result name="VBOX_E_IPRT_ERROR">
|
---|
1879 | Could not get medium storage format.
|
---|
1880 | </result>
|
---|
1881 | <result name="E_INVALIDARG">
|
---|
1882 | Invalid medium storage format.
|
---|
1883 | </result>
|
---|
1884 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1885 | Medium has already been added to a media registry.
|
---|
1886 | </result>
|
---|
1887 | </desc>
|
---|
1888 | <param name="location" type="wstring" dir="in">
|
---|
1889 | <desc>
|
---|
1890 | Location of the storage unit that contains medium data in one of
|
---|
1891 | the supported storage formats.
|
---|
1892 | </desc>
|
---|
1893 | </param>
|
---|
1894 | <param name="deviceType" type="DeviceType" dir="in">
|
---|
1895 | <desc>
|
---|
1896 | Must be one of "HardDisk", "DVD" or "Floppy".
|
---|
1897 | </desc>
|
---|
1898 | </param>
|
---|
1899 | <param name="accessMode" type="AccessMode" dir="in">
|
---|
1900 | <desc>Whether to open the image in read/write or read-only mode. For
|
---|
1901 | a "DVD" device type, this is ignored and read-only mode is always assumed.</desc>
|
---|
1902 | </param>
|
---|
1903 | <param name="medium" type="IMedium" dir="return">
|
---|
1904 | <desc>Opened medium object.</desc>
|
---|
1905 | </param>
|
---|
1906 | </method>
|
---|
1907 |
|
---|
1908 | <method name="findMedium">
|
---|
1909 | <desc>
|
---|
1910 | Returns a medium of the given type that uses the given fully qualified
|
---|
1911 | location or UUID to store medium data.
|
---|
1912 |
|
---|
1913 | The given medium must be known to this VirtualBox installation, i.e.
|
---|
1914 | it must be previously created by <link to="#createHardDisk"/> or opened
|
---|
1915 | by <link to="#openMedium"/>.
|
---|
1916 |
|
---|
1917 | The search is done by comparing the value of the @a location argument to
|
---|
1918 | the <link to="IMedium::location"/> and <link to="IMedium::id" />
|
---|
1919 | attributes of each known medium.
|
---|
1920 |
|
---|
1921 | On case sensitive file systems, a case sensitive comparison is performed,
|
---|
1922 | otherwise the case of symbols in the file path is ignored.
|
---|
1923 |
|
---|
1924 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1925 | No medium object matching @a location found.
|
---|
1926 | </result>
|
---|
1927 | </desc>
|
---|
1928 | <param name="location" type="wstring" dir="in">
|
---|
1929 | <desc>What to search for. This can either be the UUID or the location string of an open medium.</desc>
|
---|
1930 | </param>
|
---|
1931 | <param name="type" type="DeviceType" dir="in">
|
---|
1932 | <desc>Device type (must be HardDisk, DVD or Floppy)</desc>
|
---|
1933 | </param>
|
---|
1934 | <param name="medium" type="IMedium" dir="return">
|
---|
1935 | <desc>Medium object, if found.</desc>
|
---|
1936 | </param>
|
---|
1937 | </method>
|
---|
1938 |
|
---|
1939 | <method name="getGuestOSType">
|
---|
1940 | <desc>
|
---|
1941 | Returns an object describing the specified guest OS type.
|
---|
1942 |
|
---|
1943 | The requested guest OS type is specified using a string which is a
|
---|
1944 | mnemonic identifier of the guest operating system, such as
|
---|
1945 | <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
|
---|
1946 | particular virtual machine can be read or set using the
|
---|
1947 | <link to="IMachine::OSTypeId"/> attribute.
|
---|
1948 |
|
---|
1949 | The <link to="IVirtualBox::guestOSTypes"/> collection contains all
|
---|
1950 | available guest OS type objects. Each object has an
|
---|
1951 | <link to="IGuestOSType::id"/> attribute which contains an identifier of
|
---|
1952 | the guest OS this object describes.
|
---|
1953 |
|
---|
1954 | <result name="E_INVALIDARG">
|
---|
1955 | @a id is not a valid Guest OS type.
|
---|
1956 | </result>
|
---|
1957 |
|
---|
1958 | </desc>
|
---|
1959 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
1960 | <desc>Guest OS type ID string.</desc>
|
---|
1961 | </param>
|
---|
1962 | <param name="type" type="IGuestOSType" dir="return">
|
---|
1963 | <desc>Guest OS type object.</desc>
|
---|
1964 | </param>
|
---|
1965 | </method>
|
---|
1966 |
|
---|
1967 | <method name="createSharedFolder">
|
---|
1968 | <desc>
|
---|
1969 | Creates a new global shared folder by associating the given logical
|
---|
1970 | name with the given host path, adds it to the collection of shared
|
---|
1971 | folders and starts sharing it. Refer to the description of
|
---|
1972 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
1973 | <note>
|
---|
1974 | In the current implementation, this operation is not
|
---|
1975 | implemented.
|
---|
1976 | </note>
|
---|
1977 | </desc>
|
---|
1978 | <param name="name" type="wstring" dir="in">
|
---|
1979 | <desc>Unique logical name of the shared folder.</desc>
|
---|
1980 | </param>
|
---|
1981 | <param name="hostPath" type="wstring" dir="in">
|
---|
1982 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
1983 | </param>
|
---|
1984 | <param name="writable" type="boolean" dir="in">
|
---|
1985 | <desc>Whether the share is writable or readonly</desc>
|
---|
1986 | </param>
|
---|
1987 | <param name="automount" type="boolean" dir="in">
|
---|
1988 | <desc>Whether the share gets automatically mounted by the guest
|
---|
1989 | or not.</desc>
|
---|
1990 | </param>
|
---|
1991 | </method>
|
---|
1992 |
|
---|
1993 | <method name="removeSharedFolder">
|
---|
1994 | <desc>
|
---|
1995 | Removes the global shared folder with the given name previously
|
---|
1996 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
1997 | shared folders and stops sharing it.
|
---|
1998 | <note>
|
---|
1999 | In the current implementation, this operation is not
|
---|
2000 | implemented.
|
---|
2001 | </note>
|
---|
2002 | </desc>
|
---|
2003 | <param name="name" type="wstring" dir="in">
|
---|
2004 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
2005 | </param>
|
---|
2006 | </method>
|
---|
2007 |
|
---|
2008 | <method name="getExtraDataKeys">
|
---|
2009 | <desc>
|
---|
2010 | Returns an array representing the global extra data keys which currently
|
---|
2011 | have values defined.
|
---|
2012 | </desc>
|
---|
2013 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
2014 | <desc>Array of extra data keys.</desc>
|
---|
2015 | </param>
|
---|
2016 | </method>
|
---|
2017 |
|
---|
2018 | <method name="getExtraData">
|
---|
2019 | <desc>
|
---|
2020 | Returns associated global extra data.
|
---|
2021 |
|
---|
2022 | If the requested data @a key does not exist, this function will
|
---|
2023 | succeed and return an empty string in the @a value argument.
|
---|
2024 |
|
---|
2025 | <result name="VBOX_E_FILE_ERROR">
|
---|
2026 | Settings file not accessible.
|
---|
2027 | </result>
|
---|
2028 | <result name="VBOX_E_XML_ERROR">
|
---|
2029 | Could not parse the settings file.
|
---|
2030 | </result>
|
---|
2031 |
|
---|
2032 | </desc>
|
---|
2033 | <param name="key" type="wstring" dir="in">
|
---|
2034 | <desc>Name of the data key to get.</desc>
|
---|
2035 | </param>
|
---|
2036 | <param name="value" type="wstring" dir="return">
|
---|
2037 | <desc>Value of the requested data key.</desc>
|
---|
2038 | </param>
|
---|
2039 | </method>
|
---|
2040 |
|
---|
2041 | <method name="setExtraData">
|
---|
2042 | <desc>
|
---|
2043 | Sets associated global extra data.
|
---|
2044 |
|
---|
2045 | If you pass @c null or empty string as a key @a value, the given @a key
|
---|
2046 | will be deleted.
|
---|
2047 |
|
---|
2048 | <note>
|
---|
2049 | Before performing the actual data change, this method will ask all
|
---|
2050 | registered event listener using the
|
---|
2051 | <link to="IExtraDataCanChangeEvent"/>
|
---|
2052 | notification for a permission. If one of the listeners refuses the
|
---|
2053 | new value, the change will not be performed.
|
---|
2054 | </note>
|
---|
2055 | <note>
|
---|
2056 | On success, the
|
---|
2057 | <link to="IExtraDataChangedEvent"/> notification
|
---|
2058 | is called to inform all registered listeners about a successful data
|
---|
2059 | change.
|
---|
2060 | </note>
|
---|
2061 |
|
---|
2062 | <result name="VBOX_E_FILE_ERROR">
|
---|
2063 | Settings file not accessible.
|
---|
2064 | </result>
|
---|
2065 | <result name="VBOX_E_XML_ERROR">
|
---|
2066 | Could not parse the settings file.
|
---|
2067 | </result>
|
---|
2068 | <result name="E_ACCESSDENIED">
|
---|
2069 | Modification request refused.
|
---|
2070 | </result>
|
---|
2071 |
|
---|
2072 | </desc>
|
---|
2073 | <param name="key" type="wstring" dir="in">
|
---|
2074 | <desc>Name of the data key to set.</desc>
|
---|
2075 | </param>
|
---|
2076 | <param name="value" type="wstring" dir="in">
|
---|
2077 | <desc>Value to assign to the key.</desc>
|
---|
2078 | </param>
|
---|
2079 | </method>
|
---|
2080 |
|
---|
2081 | <!--method name="createDHCPServerForInterface">
|
---|
2082 | <desc>
|
---|
2083 | Creates a dhcp server settings to be used for the given interface
|
---|
2084 | <result name="E_INVALIDARG">
|
---|
2085 | Host network interface @a name already exists.
|
---|
2086 | </result>
|
---|
2087 | </desc>
|
---|
2088 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2089 | <desc>Network Interface</desc>
|
---|
2090 | </param>
|
---|
2091 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2092 | <desc>Dhcp server settings</desc>
|
---|
2093 | </param>
|
---|
2094 | </method-->
|
---|
2095 |
|
---|
2096 | <method name="createDHCPServer">
|
---|
2097 | <desc>
|
---|
2098 | Creates a dhcp server settings to be used for the given internal network name
|
---|
2099 | <result name="E_INVALIDARG">
|
---|
2100 | Host network interface @a name already exists.
|
---|
2101 | </result>
|
---|
2102 | </desc>
|
---|
2103 | <param name="name" type="wstring" dir="in">
|
---|
2104 | <desc>server name</desc>
|
---|
2105 | </param>
|
---|
2106 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2107 | <desc>Dhcp server settings</desc>
|
---|
2108 | </param>
|
---|
2109 | </method>
|
---|
2110 |
|
---|
2111 | <method name="findDHCPServerByNetworkName">
|
---|
2112 | <desc>
|
---|
2113 | Searches a dhcp server settings to be used for the given internal network name
|
---|
2114 | <result name="E_INVALIDARG">
|
---|
2115 | Host network interface @a name already exists.
|
---|
2116 | </result>
|
---|
2117 |
|
---|
2118 | </desc>
|
---|
2119 | <param name="name" type="wstring" dir="in">
|
---|
2120 | <desc>server name</desc>
|
---|
2121 | </param>
|
---|
2122 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2123 | <desc>Dhcp server settings</desc>
|
---|
2124 | </param>
|
---|
2125 | </method>
|
---|
2126 |
|
---|
2127 | <!--method name="findDHCPServerForInterface">
|
---|
2128 | <desc>
|
---|
2129 | Searches a dhcp server settings to be used for the given interface
|
---|
2130 | <result name="E_INVALIDARG">
|
---|
2131 | Host network interface @a name already exists.
|
---|
2132 | </result>
|
---|
2133 | </desc>
|
---|
2134 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2135 | <desc>Network Interface</desc>
|
---|
2136 | </param>
|
---|
2137 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2138 | <desc>Dhcp server settings</desc>
|
---|
2139 | </param>
|
---|
2140 | </method-->
|
---|
2141 |
|
---|
2142 | <method name="removeDHCPServer">
|
---|
2143 | <desc>
|
---|
2144 | Removes the dhcp server settings
|
---|
2145 | <result name="E_INVALIDARG">
|
---|
2146 | Host network interface @a name already exists.
|
---|
2147 | </result>
|
---|
2148 | </desc>
|
---|
2149 | <param name="server" type="IDHCPServer" dir="in">
|
---|
2150 | <desc>Dhcp server settings to be removed</desc>
|
---|
2151 | </param>
|
---|
2152 | </method>
|
---|
2153 |
|
---|
2154 |
|
---|
2155 | <method name="checkFirmwarePresent">
|
---|
2156 | <desc>
|
---|
2157 | Check if this VirtualBox installation has a firmware
|
---|
2158 | of the given type available, either system-wide or per-user.
|
---|
2159 | Optionally, this may return a hint where this firmware can be
|
---|
2160 | downloaded from.
|
---|
2161 | </desc>
|
---|
2162 | <param name="firmwareType" type="FirmwareType" dir="in">
|
---|
2163 | <desc>
|
---|
2164 | Type of firmware to check.
|
---|
2165 | </desc>
|
---|
2166 | </param>
|
---|
2167 | <param name="version" type="wstring" dir="in">
|
---|
2168 | <desc>Expected version number, usually empty string (presently ignored).</desc>
|
---|
2169 | </param>
|
---|
2170 |
|
---|
2171 | <param name="url" type="wstring" dir="out">
|
---|
2172 | <desc>
|
---|
2173 | Suggested URL to download this firmware from.
|
---|
2174 | </desc>
|
---|
2175 | </param>
|
---|
2176 |
|
---|
2177 | <param name="file" type="wstring" dir="out">
|
---|
2178 | <desc>
|
---|
2179 | Filename of firmware, only valid if result == TRUE.
|
---|
2180 | </desc>
|
---|
2181 | </param>
|
---|
2182 |
|
---|
2183 | <param name="result" type="boolean" dir="return">
|
---|
2184 | <desc>If firmware of this type and version is available.</desc>
|
---|
2185 | </param>
|
---|
2186 | </method>
|
---|
2187 |
|
---|
2188 | </interface>
|
---|
2189 |
|
---|
2190 | <!--
|
---|
2191 | // IVFSExplorer
|
---|
2192 | /////////////////////////////////////////////////////////////////////////
|
---|
2193 | -->
|
---|
2194 |
|
---|
2195 | <enum
|
---|
2196 | name="VFSType"
|
---|
2197 | uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
|
---|
2198 | >
|
---|
2199 | <desc>
|
---|
2200 | Virtual file systems supported by VFSExplorer.
|
---|
2201 | </desc>
|
---|
2202 |
|
---|
2203 | <const name="File" value="1" />
|
---|
2204 | <const name="Cloud" value="2" />
|
---|
2205 | <const name="S3" value="3" />
|
---|
2206 | <const name="WebDav" value="4" />
|
---|
2207 | </enum>
|
---|
2208 |
|
---|
2209 | <enum
|
---|
2210 | name="VFSFileType"
|
---|
2211 | uuid="714333cd-44e2-415f-a245-d378fa9b1242"
|
---|
2212 | >
|
---|
2213 | <desc>
|
---|
2214 | File types known by VFSExplorer.
|
---|
2215 | </desc>
|
---|
2216 |
|
---|
2217 | <const name="Unknown" value="1" />
|
---|
2218 | <const name="Fifo" value="2" />
|
---|
2219 | <const name="DevChar" value="3" />
|
---|
2220 | <const name="Directory" value="4" />
|
---|
2221 | <const name="DevBlock" value="5" />
|
---|
2222 | <const name="File" value="6" />
|
---|
2223 | <const name="SymLink" value="7" />
|
---|
2224 | <const name="Socket" value="8" />
|
---|
2225 | <const name="WhiteOut" value="9" />
|
---|
2226 | </enum>
|
---|
2227 |
|
---|
2228 | <interface
|
---|
2229 | name="IVFSExplorer" extends="$unknown"
|
---|
2230 | uuid="003d7f92-d38e-487f-b790-8c5e8631cb2f"
|
---|
2231 | wsmap="managed"
|
---|
2232 | >
|
---|
2233 | <desc>
|
---|
2234 | The VFSExplorer interface unifies access to different file system
|
---|
2235 | types. This includes local file systems as well remote file systems like
|
---|
2236 | S3. For a list of supported types see <link to="VFSType" />.
|
---|
2237 | An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
|
---|
2238 | </desc>
|
---|
2239 |
|
---|
2240 | <attribute name="path" type="wstring" readonly="yes">
|
---|
2241 | <desc>Returns the current path in the virtual file system.</desc>
|
---|
2242 | </attribute>
|
---|
2243 |
|
---|
2244 | <attribute name="type" type="VFSType" readonly="yes">
|
---|
2245 | <desc>Returns the file system type which is currently in use.</desc>
|
---|
2246 | </attribute>
|
---|
2247 |
|
---|
2248 | <method name="update">
|
---|
2249 | <desc>Updates the internal list of files/directories from the
|
---|
2250 | current directory level. Use <link to="#entryList" /> to get the full list
|
---|
2251 | after a call to this method.</desc>
|
---|
2252 |
|
---|
2253 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2254 | <desc>Progress object to track the operation completion.</desc>
|
---|
2255 | </param>
|
---|
2256 | </method>
|
---|
2257 |
|
---|
2258 | <method name="cd">
|
---|
2259 | <desc>Change the current directory level.</desc>
|
---|
2260 |
|
---|
2261 | <param name="aDir" type="wstring" dir="in">
|
---|
2262 | <desc>The name of the directory to go in.</desc>
|
---|
2263 | </param>
|
---|
2264 |
|
---|
2265 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2266 | <desc>Progress object to track the operation completion.</desc>
|
---|
2267 | </param>
|
---|
2268 | </method>
|
---|
2269 |
|
---|
2270 | <method name="cdUp">
|
---|
2271 | <desc>Go one directory upwards from the current directory level.</desc>
|
---|
2272 |
|
---|
2273 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2274 | <desc>Progress object to track the operation completion.</desc>
|
---|
2275 | </param>
|
---|
2276 | </method>
|
---|
2277 |
|
---|
2278 | <method name="entryList">
|
---|
2279 | <desc>Returns a list of files/directories after a call to <link
|
---|
2280 | to="#update" />. The user is responsible for keeping this internal
|
---|
2281 | list up do date.</desc>
|
---|
2282 |
|
---|
2283 | <param name="aNames" type="wstring" safearray="yes" dir="out">
|
---|
2284 | <desc>The list of names for the entries.</desc>
|
---|
2285 | </param>
|
---|
2286 |
|
---|
2287 | <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
|
---|
2288 | <desc>The list of types for the entries.</desc>
|
---|
2289 | </param>
|
---|
2290 |
|
---|
2291 | <param name="aSizes" type="unsigned long" safearray="yes" dir="out">
|
---|
2292 | <desc>The list of sizes (in bytes) for the entries.</desc>
|
---|
2293 | </param>
|
---|
2294 |
|
---|
2295 | <param name="aModes" type="unsigned long" safearray="yes" dir="out">
|
---|
2296 | <desc>The list of file modes (in octal form) for the entries.</desc>
|
---|
2297 | </param>
|
---|
2298 | </method>
|
---|
2299 |
|
---|
2300 | <method name="exists">
|
---|
2301 | <desc>Checks if the given file list exists in the current directory
|
---|
2302 | level.</desc>
|
---|
2303 |
|
---|
2304 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
2305 | <desc>The names to check.</desc>
|
---|
2306 | </param>
|
---|
2307 |
|
---|
2308 | <param name="aExists" type="wstring" safearray="yes" dir="return">
|
---|
2309 | <desc>The names which exist.</desc>
|
---|
2310 | </param>
|
---|
2311 | </method>
|
---|
2312 |
|
---|
2313 | <method name="remove">
|
---|
2314 | <desc>Deletes the given files in the current directory level.</desc>
|
---|
2315 |
|
---|
2316 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
2317 | <desc>The names to remove.</desc>
|
---|
2318 | </param>
|
---|
2319 |
|
---|
2320 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2321 | <desc>Progress object to track the operation completion.</desc>
|
---|
2322 | </param>
|
---|
2323 | </method>
|
---|
2324 |
|
---|
2325 | </interface>
|
---|
2326 |
|
---|
2327 | <!--
|
---|
2328 | // IAppliance
|
---|
2329 | /////////////////////////////////////////////////////////////////////////
|
---|
2330 | -->
|
---|
2331 |
|
---|
2332 | <interface
|
---|
2333 | name="IAppliance" extends="$unknown"
|
---|
2334 | uuid="7b148032-4124-4f46-b56a-b48ac1273f5a"
|
---|
2335 | wsmap="managed"
|
---|
2336 | >
|
---|
2337 | <desc>
|
---|
2338 | Represents a platform-independent appliance in OVF format. An instance of this is returned
|
---|
2339 | by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
|
---|
2340 | virtual machines within an appliance with VirtualBox.
|
---|
2341 |
|
---|
2342 | The OVF standard suggests two different physical file formats:
|
---|
2343 |
|
---|
2344 | <ol>
|
---|
2345 | <li>If the appliance is distributed as a set of files, there must be at least one XML descriptor
|
---|
2346 | file that conforms to the OVF standard and carries an <tt>.ovf</tt> file extension. If
|
---|
2347 | this descriptor file references other files such as disk images, as OVF appliances typically
|
---|
2348 | do, those additional files must be in the same directory as the descriptor file.</li>
|
---|
2349 |
|
---|
2350 | <li>If the appliance is distributed as a single file, it must be in TAR format and have the
|
---|
2351 | <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
|
---|
2352 | files and optionally other files.
|
---|
2353 |
|
---|
2354 | At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
|
---|
2355 | be added with a later version.</li>
|
---|
2356 | </ol>
|
---|
2357 |
|
---|
2358 | <b>Importing</b> an OVF appliance into VirtualBox as instances of
|
---|
2359 | <link to="IMachine" /> involves the following sequence of API calls:
|
---|
2360 |
|
---|
2361 | <ol>
|
---|
2362 | <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
|
---|
2363 | </li>
|
---|
2364 |
|
---|
2365 | <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
|
---|
2366 | would like to import. So long as this file is syntactically valid, this will succeed
|
---|
2367 | and fill the appliance object with the parsed data from the OVF file.
|
---|
2368 | </li>
|
---|
2369 |
|
---|
2370 | <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
|
---|
2371 | contents of the IAppliance attributes accordingly. These can be inspected by a
|
---|
2372 | VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
|
---|
2373 | user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
|
---|
2374 | instances of <link to="IVirtualSystemDescription" /> which represent the virtual
|
---|
2375 | systems (machines) in the OVF, which in turn describe the virtual hardware prescribed
|
---|
2376 | by the OVF (network and hardware adapters, virtual disk images, memory size and so on).
|
---|
2377 | The GUI can then give the user the option to confirm and/or change these suggestions.
|
---|
2378 | </li>
|
---|
2379 |
|
---|
2380 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
2381 | virtual system (machine) to override the suggestions made by the interpret() routine.
|
---|
2382 | </li>
|
---|
2383 |
|
---|
2384 | <li>Finally, call <link to="#importMachines" /> to create virtual machines in
|
---|
2385 | VirtualBox as instances of <link to="IMachine" /> that match the information in the
|
---|
2386 | virtual system descriptions. After this call succeeded, the UUIDs of the machines created
|
---|
2387 | can be found in the <link to="#machines" /> array attribute.
|
---|
2388 | </li>
|
---|
2389 | </ol>
|
---|
2390 |
|
---|
2391 | <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
|
---|
2392 |
|
---|
2393 | <ol>
|
---|
2394 | <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
|
---|
2395 | an empty IAppliance object.
|
---|
2396 | </li>
|
---|
2397 |
|
---|
2398 | <li>For each machine you would like to export, call <link to="IMachine::export" />
|
---|
2399 | with the IAppliance object you just created. Each such call creates one instance of
|
---|
2400 | <link to="IVirtualSystemDescription" /> inside the appliance.
|
---|
2401 | </li>
|
---|
2402 |
|
---|
2403 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
2404 | virtual system (machine) to override the suggestions made by the export() routine.
|
---|
2405 | </li>
|
---|
2406 |
|
---|
2407 | <li>Finally, call <link to="#write" /> with a path specification to have the OVF
|
---|
2408 | file written.</li>
|
---|
2409 | </ol>
|
---|
2410 |
|
---|
2411 | </desc>
|
---|
2412 |
|
---|
2413 | <attribute name="path" type="wstring" readonly="yes">
|
---|
2414 | <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
|
---|
2415 | the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
|
---|
2416 | <link to="#write" /> (for export).
|
---|
2417 | This attribute is empty until one of these methods has been called.
|
---|
2418 | </desc>
|
---|
2419 | </attribute>
|
---|
2420 |
|
---|
2421 | <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
|
---|
2422 | <desc>
|
---|
2423 | Array of virtual disk definitions. One such description exists for each
|
---|
2424 | disk definition in the OVF; each string array item represents one such piece of
|
---|
2425 | disk information, with the information fields separated by tab (\\t) characters.
|
---|
2426 |
|
---|
2427 | The caller should be prepared for additional fields being appended to
|
---|
2428 | this string in future versions of VirtualBox and therefore check for
|
---|
2429 | the number of tabs in the strings returned.
|
---|
2430 |
|
---|
2431 | In the current version, the following eight fields are returned per string
|
---|
2432 | in the array:
|
---|
2433 |
|
---|
2434 | <ol>
|
---|
2435 | <li>Disk ID (unique string identifier given to disk)</li>
|
---|
2436 |
|
---|
2437 | <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
|
---|
2438 |
|
---|
2439 | <li>Populated size (optional unsigned integer indicating the current size of the
|
---|
2440 | disk; can be approximate; -1 if unspecified)</li>
|
---|
2441 |
|
---|
2442 | <li>Format (string identifying the disk format, typically
|
---|
2443 | "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
|
---|
2444 |
|
---|
2445 | <li>Reference (where to find the disk image, typically a file name; if empty,
|
---|
2446 | then the disk should be created on import)</li>
|
---|
2447 |
|
---|
2448 | <li>Image size (optional unsigned integer indicating the size of the image,
|
---|
2449 | which need not necessarily be the same as the values specified above, since
|
---|
2450 | the image may be compressed or sparse; -1 if not specified)</li>
|
---|
2451 |
|
---|
2452 | <li>Chunk size (optional unsigned integer if the image is split into chunks;
|
---|
2453 | presently unsupported and always -1)</li>
|
---|
2454 |
|
---|
2455 | <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
|
---|
2456 | </ol>
|
---|
2457 | </desc>
|
---|
2458 | </attribute>
|
---|
2459 |
|
---|
2460 | <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
|
---|
2461 | <desc> Array of virtual system descriptions. One such description is created
|
---|
2462 | for each virtual system (machine) found in the OVF.
|
---|
2463 | This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
|
---|
2464 | (for export) has been called.
|
---|
2465 | </desc>
|
---|
2466 | </attribute>
|
---|
2467 |
|
---|
2468 | <attribute name="machines" type="wstring" readonly="yes" safearray="yes">
|
---|
2469 | <desc>
|
---|
2470 | Contains the UUIDs of the machines created from the information in this appliances. This is only
|
---|
2471 | relevant for the import case, and will only contain data after a call to <link to="#importMachines" />
|
---|
2472 | succeeded.
|
---|
2473 | </desc>
|
---|
2474 | </attribute>
|
---|
2475 |
|
---|
2476 | <method name="read">
|
---|
2477 | <desc>
|
---|
2478 | Reads an OVF file into the appliance object.
|
---|
2479 |
|
---|
2480 | This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
|
---|
2481 | mere fact that this method returns successfully does not mean that VirtualBox supports all
|
---|
2482 | features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
|
---|
2483 | </desc>
|
---|
2484 | <param name="file" type="wstring" dir="in">
|
---|
2485 | <desc>
|
---|
2486 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
2487 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
2488 | </desc>
|
---|
2489 | </param>
|
---|
2490 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2491 | <desc>Progress object to track the operation completion.</desc>
|
---|
2492 | </param>
|
---|
2493 | </method>
|
---|
2494 |
|
---|
2495 | <method name="interpret">
|
---|
2496 | <desc>
|
---|
2497 | Interprets the OVF data that was read when the appliance was constructed. After
|
---|
2498 | calling this method, one can inspect the
|
---|
2499 | <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
|
---|
2500 | one <link to="IVirtualSystemDescription" /> for each virtual machine found in
|
---|
2501 | the appliance.
|
---|
2502 |
|
---|
2503 | Calling this method is the second step of importing an appliance into VirtualBox;
|
---|
2504 | see <link to="IAppliance" /> for an overview.
|
---|
2505 |
|
---|
2506 | After calling this method, one should call <link to="#getWarnings" /> to find out
|
---|
2507 | if problems were encountered during the processing which might later lead to
|
---|
2508 | errors.
|
---|
2509 | </desc>
|
---|
2510 | </method>
|
---|
2511 |
|
---|
2512 | <method name="importMachines">
|
---|
2513 | <desc>
|
---|
2514 | Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
|
---|
2515 | and other interfaces that match the information contained in the appliance as
|
---|
2516 | closely as possible, as represented by the import instructions in the
|
---|
2517 | <link to="#virtualSystemDescriptions" /> array.
|
---|
2518 |
|
---|
2519 | Calling this method is the final step of importing an appliance into VirtualBox;
|
---|
2520 | see <link to="IAppliance" /> for an overview.
|
---|
2521 |
|
---|
2522 | Since importing the appliance will most probably involve copying and converting
|
---|
2523 | disk images, which can take a long time, this method operates asynchronously and
|
---|
2524 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
2525 |
|
---|
2526 | After the import succeeded, the UUIDs of the IMachine instances created can be
|
---|
2527 | retrieved from the <link to="#machines" /> array attribute.
|
---|
2528 | </desc>
|
---|
2529 |
|
---|
2530 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2531 | <desc>Progress object to track the operation completion.</desc>
|
---|
2532 | </param>
|
---|
2533 | </method>
|
---|
2534 |
|
---|
2535 | <method name="createVFSExplorer">
|
---|
2536 | <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
|
---|
2537 |
|
---|
2538 | <param name="aUri" type="wstring" dir="in">
|
---|
2539 | <desc>The URI describing the file system to use.</desc>
|
---|
2540 | </param>
|
---|
2541 |
|
---|
2542 | <param name="aExplorer" type="IVFSExplorer" dir="return">
|
---|
2543 | <desc></desc>
|
---|
2544 | </param>
|
---|
2545 | </method>
|
---|
2546 |
|
---|
2547 | <method name="write">
|
---|
2548 | <desc>
|
---|
2549 | Writes the contents of the appliance exports into a new OVF file.
|
---|
2550 |
|
---|
2551 | Calling this method is the final step of exporting an appliance from VirtualBox;
|
---|
2552 | see <link to="IAppliance" /> for an overview.
|
---|
2553 |
|
---|
2554 | Since exporting the appliance will most probably involve copying and converting
|
---|
2555 | disk images, which can take a long time, this method operates asynchronously and
|
---|
2556 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
2557 | </desc>
|
---|
2558 | <param name="format" type="wstring" dir="in">
|
---|
2559 | <desc>
|
---|
2560 | Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
|
---|
2561 | future versions of VirtualBox may support additional formats.
|
---|
2562 | </desc>
|
---|
2563 | </param>
|
---|
2564 | <param name="manifest" type="boolean" dir="in">
|
---|
2565 | <desc>
|
---|
2566 | Indicate if the optional manifest file (.mf) should be written. The manifest file
|
---|
2567 | is used for integrity checks prior import.
|
---|
2568 | </desc>
|
---|
2569 | </param>
|
---|
2570 | <param name="path" type="wstring" dir="in">
|
---|
2571 | <desc>
|
---|
2572 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
2573 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
2574 | </desc>
|
---|
2575 | </param>
|
---|
2576 | <param name="progress" type="IProgress" dir="return">
|
---|
2577 | <desc>Progress object to track the operation completion.</desc>
|
---|
2578 | </param>
|
---|
2579 | </method>
|
---|
2580 |
|
---|
2581 | <method name="getWarnings">
|
---|
2582 | <desc>Returns textual warnings which occurred during execution of <link to="#interpret" />.</desc>
|
---|
2583 |
|
---|
2584 | <param name="aWarnings" type="wstring" dir="return" safearray="yes">
|
---|
2585 | <desc></desc>
|
---|
2586 | </param>
|
---|
2587 | </method>
|
---|
2588 |
|
---|
2589 | </interface>
|
---|
2590 |
|
---|
2591 | <enum
|
---|
2592 | name="VirtualSystemDescriptionType"
|
---|
2593 | uuid="c0f8f135-3a1d-417d-afa6-b38b95a91f90"
|
---|
2594 | >
|
---|
2595 | <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
|
---|
2596 | a configuration value.</desc>
|
---|
2597 |
|
---|
2598 | <const name="Ignore" value="1" />
|
---|
2599 | <const name="OS" value="2" />
|
---|
2600 | <const name="Name" value="3" />
|
---|
2601 | <const name="Product" value="4" />
|
---|
2602 | <const name="Vendor" value="5" />
|
---|
2603 | <const name="Version" value="6" />
|
---|
2604 | <const name="ProductUrl" value="7" />
|
---|
2605 | <const name="VendorUrl" value="8" />
|
---|
2606 | <const name="Description" value="9" />
|
---|
2607 | <const name="License" value="10" />
|
---|
2608 | <const name="Miscellaneous" value="11" />
|
---|
2609 | <const name="CPU" value="12" />
|
---|
2610 | <const name="Memory" value="13" />
|
---|
2611 | <const name="HardDiskControllerIDE" value="14" />
|
---|
2612 | <const name="HardDiskControllerSATA" value="15" />
|
---|
2613 | <const name="HardDiskControllerSCSI" value="16" />
|
---|
2614 | <const name="HardDiskControllerSAS" value="17" />
|
---|
2615 | <const name="HardDiskImage" value="18" />
|
---|
2616 | <const name="Floppy" value="19" />
|
---|
2617 | <const name="CDROM" value="20" />
|
---|
2618 | <const name="NetworkAdapter" value="21" />
|
---|
2619 | <const name="USBController" value="22" />
|
---|
2620 | <const name="SoundCard" value="23" />
|
---|
2621 |
|
---|
2622 | </enum>
|
---|
2623 |
|
---|
2624 | <enum
|
---|
2625 | name="VirtualSystemDescriptionValueType"
|
---|
2626 | uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
|
---|
2627 | >
|
---|
2628 | <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
|
---|
2629 | type to fetch.</desc>
|
---|
2630 |
|
---|
2631 | <const name="Reference" value="1" />
|
---|
2632 | <const name="Original" value="2" />
|
---|
2633 | <const name="Auto" value="3" />
|
---|
2634 | <const name="ExtraConfig" value="4" />
|
---|
2635 |
|
---|
2636 | </enum>
|
---|
2637 |
|
---|
2638 | <interface
|
---|
2639 | name="IVirtualSystemDescription" extends="$unknown"
|
---|
2640 | uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
|
---|
2641 | wsmap="managed"
|
---|
2642 | >
|
---|
2643 |
|
---|
2644 | <desc>Represents one virtual system (machine) in an appliance. This interface is used in
|
---|
2645 | the <link to="IAppliance::virtualSystemDescriptions" /> array. After
|
---|
2646 | <link to="IAppliance::interpret" /> has been called, that array contains information
|
---|
2647 | about how the virtual systems described in the OVF should best be imported into
|
---|
2648 | VirtualBox virtual machines. See <link to="IAppliance" /> for the steps required to
|
---|
2649 | import an OVF into VirtualBox.
|
---|
2650 | </desc>
|
---|
2651 |
|
---|
2652 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
2653 | <desc>Return the number of virtual system description entries.</desc>
|
---|
2654 | </attribute>
|
---|
2655 |
|
---|
2656 | <method name="getDescription">
|
---|
2657 | <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
|
---|
2658 | items with the same indices correspond and jointly represent an import instruction for VirtualBox.
|
---|
2659 |
|
---|
2660 | The list below identifies the value sets that are possible depending on the
|
---|
2661 | <link to="VirtualSystemDescriptionType" /> enum value in the array item in @a aTypes[]. In each case,
|
---|
2662 | the array item with the same index in @a aOvfValues[] will contain the original value as contained
|
---|
2663 | in the OVF file (just for informational purposes), and the corresponding item in @a aVBoxValues[]
|
---|
2664 | will contain a suggested value to be used for VirtualBox. Depending on the description type,
|
---|
2665 | the @a aExtraConfigValues[] array item may also be used.
|
---|
2666 |
|
---|
2667 | <ul>
|
---|
2668 | <li>
|
---|
2669 | "OS": the guest operating system type. There must be exactly one such array item on import. The
|
---|
2670 | corresponding item in @a aVBoxValues[] contains the suggested guest operating system for VirtualBox.
|
---|
2671 | This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
|
---|
2672 | item in @a aOvfValues[] will contain a numerical value that described the operating system in the OVF.
|
---|
2673 | </li>
|
---|
2674 | <li>
|
---|
2675 | "Name": the name to give to the new virtual machine. There can be at most one such array item;
|
---|
2676 | if none is present on import, then an automatic name will be created from the operating system
|
---|
2677 | type. The corresponding item im @a aOvfValues[] will contain the suggested virtual machine name
|
---|
2678 | from the OVF file, and @a aVBoxValues[] will contain a suggestion for a unique VirtualBox
|
---|
2679 | <link to="IMachine" /> name that does not exist yet.
|
---|
2680 | </li>
|
---|
2681 | <li>
|
---|
2682 | "Description": an arbitrary description.
|
---|
2683 | </li>
|
---|
2684 | <li>
|
---|
2685 | "License": the EULA section from the OVF, if present. It is the responsibility of the calling
|
---|
2686 | code to display such a license for agreement; the Main API does not enforce any such policy.
|
---|
2687 | </li>
|
---|
2688 | <li>
|
---|
2689 | Miscellaneous: reserved for future use.
|
---|
2690 | </li>
|
---|
2691 | <li>
|
---|
2692 | "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
|
---|
2693 | </li>
|
---|
2694 | <li>
|
---|
2695 | "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
|
---|
2696 | is present on import, then VirtualBox will set a meaningful default based on the operating system
|
---|
2697 | type.
|
---|
2698 | </li>
|
---|
2699 | <li>
|
---|
2700 | "HardDiskControllerIDE": an IDE hard disk controller. There can be at most two such items.
|
---|
2701 | An optional value in @a aOvfValues[] and @a aVBoxValues[] can be "PIIX3" or "PIIX4" to specify
|
---|
2702 | the type of IDE controller; this corresponds to the ResourceSubType element which VirtualBox
|
---|
2703 | writes into the OVF.
|
---|
2704 | The matching item in the @a aRefs[] array will contain an integer that items of the "Harddisk"
|
---|
2705 | type can use to specify which hard disk controller a virtual disk should be connected to.
|
---|
2706 | Note that in OVF, an IDE controller has two channels, corresponding to "master" and "slave"
|
---|
2707 | in traditional terminology, whereas the IDE storage controller that VirtualBox supports in
|
---|
2708 | its virtual machines supports four channels (primary master, primary slave, secondary master,
|
---|
2709 | secondary slave) and thus maps to two IDE controllers in the OVF sense.
|
---|
2710 | </li>
|
---|
2711 | <li>
|
---|
2712 | "HardDiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
|
---|
2713 | has no value in @a aOvfValues[] or @a aVBoxValues[].
|
---|
2714 | The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
|
---|
2715 | </li>
|
---|
2716 | <li>
|
---|
2717 | "HardDiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
|
---|
2718 | The items in @a aOvfValues[] and @a aVBoxValues[] will either be "LsiLogic", "BusLogic" or
|
---|
2719 | "LsiLogicSas". (Note that in OVF, the LsiLogicSas controller is treated as a SCSI controller
|
---|
2720 | whereas VirtualBox considers it a class of storage controllers of its own; see
|
---|
2721 | <link to="StorageControllerType" />).
|
---|
2722 | The matching item in the @a aRefs[] array will be used as with IDE controllers (see above).
|
---|
2723 | </li>
|
---|
2724 | <li>
|
---|
2725 | "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
|
---|
2726 | arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
|
---|
2727 |
|
---|
2728 | The array item in @a aOvfValues[] will contain the file specification from the OVF file (without
|
---|
2729 | a path since the image file should be in the same location as the OVF file itself), whereas the
|
---|
2730 | item in @a aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
|
---|
2731 | hard disk image. This means that on import the image will be copied and converted from the
|
---|
2732 | "ovf" location to the "vbox" location; on export, this will be handled the other way round.
|
---|
2733 |
|
---|
2734 | The matching item in the @a aExtraConfigValues[] array must contain a string of the following
|
---|
2735 | format: "controller=<index>;channel=<c>"
|
---|
2736 | In this string, <index> must be an integer specifying the hard disk controller to connect
|
---|
2737 | the image to. That number must be the index of an array item with one of the hard disk controller
|
---|
2738 | types (HardDiskControllerSCSI, HardDiskControllerSATA, HardDiskControllerIDE).
|
---|
2739 | In addition, <c> must specify the channel to use on that controller. For IDE controllers,
|
---|
2740 | this can be 0 or 1 for master or slave, respectively. For compatibility with VirtualBox versions
|
---|
2741 | before 3.2, the values 2 and 3 (for secondary master and secondary slave) are also supported, but
|
---|
2742 | no longer exported. For SATA and SCSI controllers, the channel can range from 0-29.
|
---|
2743 | </li>
|
---|
2744 | <li>
|
---|
2745 | "CDROM": a virtual CD-ROM drive. The matching item in @a aExtraConfigValue[] contains the same
|
---|
2746 | attachment information as with "HardDiskImage" items.
|
---|
2747 | </li>
|
---|
2748 | <li>
|
---|
2749 | "CDROM": a virtual floppy drive. The matching item in @a aExtraConfigValue[] contains the same
|
---|
2750 | attachment information as with "HardDiskImage" items.
|
---|
2751 | </li>
|
---|
2752 | <li>
|
---|
2753 | "NetworkAdapter": a network adapter. The array item in @a aVBoxValues[] will specify the hardware
|
---|
2754 | for the network adapter, whereas the array item in @a aExtraConfigValues[] will have a string
|
---|
2755 | of the "type=<X>" format, where <X> must be either "NAT" or "Bridged".
|
---|
2756 | </li>
|
---|
2757 | <li>
|
---|
2758 | "USBController": a USB controller. There can be at most one such item. If and only if such an
|
---|
2759 | item ispresent, USB support will be enabled for the new virtual machine.
|
---|
2760 | </li>
|
---|
2761 | <li>
|
---|
2762 | "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
|
---|
2763 | present, sound support will be enabled for the new virtual machine. Note that the virtual
|
---|
2764 | machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
|
---|
2765 | may be different from the virtual soundcard expected by the appliance.
|
---|
2766 | </li>
|
---|
2767 | </ul>
|
---|
2768 |
|
---|
2769 | </desc>
|
---|
2770 |
|
---|
2771 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
2772 | <desc></desc>
|
---|
2773 | </param>
|
---|
2774 |
|
---|
2775 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
2776 | <desc></desc>
|
---|
2777 | </param>
|
---|
2778 |
|
---|
2779 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
2780 | <desc></desc>
|
---|
2781 | </param>
|
---|
2782 |
|
---|
2783 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
2784 | <desc></desc>
|
---|
2785 | </param>
|
---|
2786 |
|
---|
2787 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
2788 | <desc></desc>
|
---|
2789 | </param>
|
---|
2790 |
|
---|
2791 | </method>
|
---|
2792 |
|
---|
2793 | <method name="getDescriptionByType">
|
---|
2794 | <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
|
---|
2795 | should be returned.</desc>
|
---|
2796 |
|
---|
2797 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
2798 | <desc></desc>
|
---|
2799 | </param>
|
---|
2800 |
|
---|
2801 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
2802 | <desc></desc>
|
---|
2803 | </param>
|
---|
2804 |
|
---|
2805 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
2806 | <desc></desc>
|
---|
2807 | </param>
|
---|
2808 |
|
---|
2809 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
2810 | <desc></desc>
|
---|
2811 | </param>
|
---|
2812 |
|
---|
2813 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
2814 | <desc></desc>
|
---|
2815 | </param>
|
---|
2816 |
|
---|
2817 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
2818 | <desc></desc>
|
---|
2819 | </param>
|
---|
2820 |
|
---|
2821 | </method>
|
---|
2822 |
|
---|
2823 | <method name="getValuesByType">
|
---|
2824 | <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
|
---|
2825 | value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
|
---|
2826 | values.</desc>
|
---|
2827 |
|
---|
2828 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
2829 | <desc></desc>
|
---|
2830 | </param>
|
---|
2831 |
|
---|
2832 | <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
|
---|
2833 | <desc></desc>
|
---|
2834 | </param>
|
---|
2835 |
|
---|
2836 | <param name="aValues" type="wstring" dir="return" safearray="yes">
|
---|
2837 | <desc></desc>
|
---|
2838 | </param>
|
---|
2839 |
|
---|
2840 | </method>
|
---|
2841 |
|
---|
2842 | <method name="setFinalValues">
|
---|
2843 | <desc>
|
---|
2844 | This method allows the appliance's user to change the configuration for the virtual
|
---|
2845 | system descriptions. For each array item returned from <link to="#getDescription" />,
|
---|
2846 | you must pass in one boolean value and one configuration value.
|
---|
2847 |
|
---|
2848 | Each item in the boolean array determines whether the particular configuration item
|
---|
2849 | should be enabled.
|
---|
2850 | You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
|
---|
2851 | HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
|
---|
2852 | and SoundCard.
|
---|
2853 |
|
---|
2854 | For the "vbox" and "extra configuration" values, if you pass in the same arrays
|
---|
2855 | as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
|
---|
2856 | the configuration remains unchanged. Please see the documentation for getDescription()
|
---|
2857 | for valid configuration values for the individual array item types. If the
|
---|
2858 | corresponding item in the aEnabled array is @c false, the configuration value is ignored.
|
---|
2859 | </desc>
|
---|
2860 |
|
---|
2861 | <param name="aEnabled" type="boolean" dir="in" safearray="yes">
|
---|
2862 | <desc></desc>
|
---|
2863 | </param>
|
---|
2864 |
|
---|
2865 | <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
|
---|
2866 | <desc></desc>
|
---|
2867 | </param>
|
---|
2868 |
|
---|
2869 | <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
|
---|
2870 | <desc></desc>
|
---|
2871 | </param>
|
---|
2872 | </method>
|
---|
2873 |
|
---|
2874 | <method name="addDescription">
|
---|
2875 | <desc>
|
---|
2876 | This method adds an additional description entry to the stack of already
|
---|
2877 | available descriptions for this virtual system. This is handy for writing
|
---|
2878 | values which aren't directly supported by VirtualBox. One example would
|
---|
2879 | be the License type of <link to="VirtualSystemDescriptionType" />.
|
---|
2880 | </desc>
|
---|
2881 |
|
---|
2882 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
2883 | <desc></desc>
|
---|
2884 | </param>
|
---|
2885 |
|
---|
2886 | <param name="aVBoxValue" type="wstring" dir="in">
|
---|
2887 | <desc></desc>
|
---|
2888 | </param>
|
---|
2889 |
|
---|
2890 | <param name="aExtraConfigValue" type="wstring" dir="in">
|
---|
2891 | <desc></desc>
|
---|
2892 | </param>
|
---|
2893 | </method>
|
---|
2894 | </interface>
|
---|
2895 |
|
---|
2896 |
|
---|
2897 | <!--
|
---|
2898 | // IMachine
|
---|
2899 | /////////////////////////////////////////////////////////////////////////
|
---|
2900 | -->
|
---|
2901 |
|
---|
2902 | <interface
|
---|
2903 | name="IInternalMachineControl" extends="$unknown"
|
---|
2904 | uuid="8e723ab0-812c-5662-dd8e-7ebc89637acf"
|
---|
2905 | internal="yes"
|
---|
2906 | wsmap="suppress"
|
---|
2907 | >
|
---|
2908 | <method name="setRemoveSavedStateFile">
|
---|
2909 | <desc>
|
---|
2910 | Updates the flag whether the saved state file is removed on a
|
---|
2911 | machine state change from Saved to PoweredOff.
|
---|
2912 | </desc>
|
---|
2913 | <param name="aRemove" type="boolean" dir="in"/>
|
---|
2914 | </method>
|
---|
2915 |
|
---|
2916 | <method name="updateState">
|
---|
2917 | <desc>
|
---|
2918 | Updates the VM state.
|
---|
2919 | <note>
|
---|
2920 | This operation will also update the settings file with the correct
|
---|
2921 | information about the saved state file and delete this file from disk
|
---|
2922 | when appropriate.
|
---|
2923 | </note>
|
---|
2924 | </desc>
|
---|
2925 | <param name="state" type="MachineState" dir="in"/>
|
---|
2926 | </method>
|
---|
2927 |
|
---|
2928 | <method name="getIPCId">
|
---|
2929 | <param name="id" type="wstring" dir="return"/>
|
---|
2930 | </method>
|
---|
2931 |
|
---|
2932 | <method name="beginPowerUp">
|
---|
2933 | <desc>
|
---|
2934 | Tells VBoxSVC that <link to="IConsole::powerUp"/> is under ways and
|
---|
2935 | gives it the progress object that should be part of any pending
|
---|
2936 | <link to="IMachine::launchVMProcess"/> operations. The progress
|
---|
2937 | object may be called back to reflect an early cancelation, so some care
|
---|
2938 | have to be taken with respect to any cancelation callbacks. The console
|
---|
2939 | object will call <link to="IInternalMachineControl::endPowerUp"/>
|
---|
2940 | to signal the completion of the progress object.
|
---|
2941 | </desc>
|
---|
2942 | <param name="aProgress" type="IProgress" dir="in" />
|
---|
2943 | </method>
|
---|
2944 |
|
---|
2945 | <method name="endPowerUp">
|
---|
2946 | <desc>
|
---|
2947 | Tells VBoxSVC that <link to="IConsole::powerUp"/> has completed.
|
---|
2948 | This method may query status information from the progress object it
|
---|
2949 | received in <link to="IInternalMachineControl::beginPowerUp"/> and copy
|
---|
2950 | it over to any in-progress <link to="IMachine::launchVMProcess"/>
|
---|
2951 | call in order to complete that progress object.
|
---|
2952 | </desc>
|
---|
2953 | <param name="result" type="long" dir="in"/>
|
---|
2954 | </method>
|
---|
2955 |
|
---|
2956 | <method name="beginPoweringDown">
|
---|
2957 | <desc>
|
---|
2958 | Called by the VM process to inform the server it wants to
|
---|
2959 | stop the VM execution and power down.
|
---|
2960 | </desc>
|
---|
2961 | <param name="progress" type="IProgress" dir="out">
|
---|
2962 | <desc>
|
---|
2963 | Progress object created by VBoxSVC to wait until
|
---|
2964 | the VM is powered down.
|
---|
2965 | </desc>
|
---|
2966 | </param>
|
---|
2967 | </method>
|
---|
2968 |
|
---|
2969 | <method name="endPoweringDown">
|
---|
2970 | <desc>
|
---|
2971 | Called by the VM process to inform the server that powering
|
---|
2972 | down previously requested by #beginPoweringDown is either
|
---|
2973 | successfully finished or there was a failure.
|
---|
2974 |
|
---|
2975 | <result name="VBOX_E_FILE_ERROR">
|
---|
2976 | Settings file not accessible.
|
---|
2977 | </result>
|
---|
2978 | <result name="VBOX_E_XML_ERROR">
|
---|
2979 | Could not parse the settings file.
|
---|
2980 | </result>
|
---|
2981 |
|
---|
2982 | </desc>
|
---|
2983 |
|
---|
2984 | <param name="result" type="long" dir="in">
|
---|
2985 | <desc>@c S_OK to indicate success.
|
---|
2986 | </desc>
|
---|
2987 | </param>
|
---|
2988 | <param name="errMsg" type="wstring" dir="in">
|
---|
2989 | <desc>@c human readable error message in case of failure.
|
---|
2990 | </desc>
|
---|
2991 | </param>
|
---|
2992 | </method>
|
---|
2993 |
|
---|
2994 | <method name="runUSBDeviceFilters">
|
---|
2995 | <desc>
|
---|
2996 | Asks the server to run USB devices filters of the associated
|
---|
2997 | machine against the given USB device and tell if there is
|
---|
2998 | a match.
|
---|
2999 | <note>
|
---|
3000 | Intended to be used only for remote USB devices. Local
|
---|
3001 | ones don't require to call this method (this is done
|
---|
3002 | implicitly by the Host and USBProxyService).
|
---|
3003 | </note>
|
---|
3004 | </desc>
|
---|
3005 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
3006 | <param name="matched" type="boolean" dir="out"/>
|
---|
3007 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
3008 | </method>
|
---|
3009 |
|
---|
3010 | <method name="captureUSBDevice">
|
---|
3011 | <desc>
|
---|
3012 | Requests a capture of the given host USB device.
|
---|
3013 | When the request is completed, the VM process will
|
---|
3014 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3015 | notification.
|
---|
3016 | </desc>
|
---|
3017 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
3018 | </method>
|
---|
3019 |
|
---|
3020 | <method name="detachUSBDevice">
|
---|
3021 | <desc>
|
---|
3022 | Notification that a VM is going to detach (@a done = @c false) or has
|
---|
3023 | already detached (@a done = @c true) the given USB device.
|
---|
3024 | When the @a done = @c true request is completed, the VM process will
|
---|
3025 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
3026 | notification.
|
---|
3027 | <note>
|
---|
3028 | In the @a done = @c true case, the server must run its own filters
|
---|
3029 | and filters of all VMs but this one on the detached device
|
---|
3030 | as if it were just attached to the host computer.
|
---|
3031 | </note>
|
---|
3032 | </desc>
|
---|
3033 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
3034 | <param name="done" type="boolean" dir="in"/>
|
---|
3035 | </method>
|
---|
3036 |
|
---|
3037 | <method name="autoCaptureUSBDevices">
|
---|
3038 | <desc>
|
---|
3039 | Requests a capture all matching USB devices attached to the host.
|
---|
3040 | When the request is completed, the VM process will
|
---|
3041 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3042 | notification per every captured device.
|
---|
3043 | </desc>
|
---|
3044 | </method>
|
---|
3045 |
|
---|
3046 | <method name="detachAllUSBDevices">
|
---|
3047 | <desc>
|
---|
3048 | Notification that a VM that is being powered down. The done
|
---|
3049 | parameter indicates whether which stage of the power down
|
---|
3050 | we're at. When @a done = @c false the VM is announcing its
|
---|
3051 | intentions, while when @a done = @c true the VM is reporting
|
---|
3052 | what it has done.
|
---|
3053 | <note>
|
---|
3054 | In the @a done = @c true case, the server must run its own filters
|
---|
3055 | and filters of all VMs but this one on all detach devices as
|
---|
3056 | if they were just attached to the host computer.
|
---|
3057 | </note>
|
---|
3058 | </desc>
|
---|
3059 | <param name="done" type="boolean" dir="in"/>
|
---|
3060 | </method>
|
---|
3061 |
|
---|
3062 | <method name="onSessionEnd">
|
---|
3063 | <desc>
|
---|
3064 | Triggered by the given session object when the session is about
|
---|
3065 | to close normally.
|
---|
3066 | </desc>
|
---|
3067 | <param name="session" type="ISession" dir="in">
|
---|
3068 | <desc>Session that is being closed</desc>
|
---|
3069 | </param>
|
---|
3070 | <param name="progress" type="IProgress" dir="return">
|
---|
3071 | <desc>
|
---|
3072 | Used to wait until the corresponding machine is actually
|
---|
3073 | dissociated from the given session on the server.
|
---|
3074 | Returned only when this session is a direct one.
|
---|
3075 | </desc>
|
---|
3076 | </param>
|
---|
3077 | </method>
|
---|
3078 |
|
---|
3079 | <method name="beginSavingState">
|
---|
3080 | <desc>
|
---|
3081 | Called by the VM process to inform the server it wants to
|
---|
3082 | save the current state and stop the VM execution.
|
---|
3083 | </desc>
|
---|
3084 | <param name="progress" type="IProgress" dir="out">
|
---|
3085 | <desc>
|
---|
3086 | Progress object created by VBoxSVC to wait until
|
---|
3087 | the state is saved.
|
---|
3088 | </desc>
|
---|
3089 | </param>
|
---|
3090 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3091 | <desc>
|
---|
3092 | File path the VM process must save the execution state to.
|
---|
3093 | </desc>
|
---|
3094 | </param>
|
---|
3095 | </method>
|
---|
3096 |
|
---|
3097 | <method name="endSavingState">
|
---|
3098 | <desc>
|
---|
3099 | Called by the VM process to inform the server that saving
|
---|
3100 | the state previously requested by #beginSavingState is either
|
---|
3101 | successfully finished or there was a failure.
|
---|
3102 |
|
---|
3103 | <result name="VBOX_E_FILE_ERROR">
|
---|
3104 | Settings file not accessible.
|
---|
3105 | </result>
|
---|
3106 | <result name="VBOX_E_XML_ERROR">
|
---|
3107 | Could not parse the settings file.
|
---|
3108 | </result>
|
---|
3109 |
|
---|
3110 | </desc>
|
---|
3111 |
|
---|
3112 | <param name="result" type="long" dir="in">
|
---|
3113 | <desc>@c S_OK to indicate success.
|
---|
3114 | </desc>
|
---|
3115 | </param>
|
---|
3116 | <param name="errMsg" type="wstring" dir="in">
|
---|
3117 | <desc>@c human readable error message in case of failure.
|
---|
3118 | </desc>
|
---|
3119 | </param>
|
---|
3120 | </method>
|
---|
3121 |
|
---|
3122 | <method name="adoptSavedState">
|
---|
3123 | <desc>
|
---|
3124 | Gets called by IConsole::adoptSavedState.
|
---|
3125 | <result name="VBOX_E_FILE_ERROR">
|
---|
3126 | Invalid saved state file path.
|
---|
3127 | </result>
|
---|
3128 | </desc>
|
---|
3129 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3130 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3131 | </param>
|
---|
3132 | </method>
|
---|
3133 |
|
---|
3134 | <method name="beginTakingSnapshot">
|
---|
3135 | <desc>
|
---|
3136 | Called from the VM process to request from the server to perform the
|
---|
3137 | server-side actions of creating a snapshot (creating differencing images
|
---|
3138 | and the snapshot object).
|
---|
3139 |
|
---|
3140 | <result name="VBOX_E_FILE_ERROR">
|
---|
3141 | Settings file not accessible.
|
---|
3142 | </result>
|
---|
3143 | <result name="VBOX_E_XML_ERROR">
|
---|
3144 | Could not parse the settings file.
|
---|
3145 | </result>
|
---|
3146 | </desc>
|
---|
3147 | <param name="initiator" type="IConsole" dir="in">
|
---|
3148 | <desc>The console object that initiated this call.</desc>
|
---|
3149 | </param>
|
---|
3150 | <param name="name" type="wstring" dir="in">
|
---|
3151 | <desc>Snapshot name.</desc>
|
---|
3152 | </param>
|
---|
3153 | <param name="description" type="wstring" dir="in">
|
---|
3154 | <desc>Snapshot description.</desc>
|
---|
3155 | </param>
|
---|
3156 | <param name="consoleProgress" type="IProgress" dir="in">
|
---|
3157 | <desc>
|
---|
3158 | Progress object created by the VM process tracking the
|
---|
3159 | snapshot's progress. This has the following sub-operations:
|
---|
3160 | <ul>
|
---|
3161 | <li>setting up (weight 1);</li>
|
---|
3162 | <li>one for each medium attachment that needs a differencing image (weight 1 each);</li>
|
---|
3163 | <li>another one to copy the VM state (if offline with saved state, weight is VM memory size in MB);</li>
|
---|
3164 | <li>another one to save the VM state (if online, weight is VM memory size in MB);</li>
|
---|
3165 | <li>finishing up (weight 1)</li>
|
---|
3166 | </ul>
|
---|
3167 | </desc>
|
---|
3168 | </param>
|
---|
3169 | <param name="fTakingSnapshotOnline" type="boolean" dir="in">
|
---|
3170 | <desc>
|
---|
3171 | Whether this is an online snapshot (i.e. the machine is running).
|
---|
3172 | </desc>
|
---|
3173 | </param>
|
---|
3174 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3175 | <desc>
|
---|
3176 | File path the VM process must save the execution state to.
|
---|
3177 | </desc>
|
---|
3178 | </param>
|
---|
3179 | </method>
|
---|
3180 |
|
---|
3181 | <method name="endTakingSnapshot">
|
---|
3182 | <desc>
|
---|
3183 | Called by the VM process to inform the server that the snapshot
|
---|
3184 | previously requested by #beginTakingSnapshot is either
|
---|
3185 | successfully taken or there was a failure.
|
---|
3186 | </desc>
|
---|
3187 |
|
---|
3188 | <param name="success" type="boolean" dir="in">
|
---|
3189 | <desc>@c true to indicate success and @c false otherwise</desc>
|
---|
3190 | </param>
|
---|
3191 | </method>
|
---|
3192 |
|
---|
3193 | <method name="deleteSnapshot">
|
---|
3194 | <desc>
|
---|
3195 | Gets called by IConsole::deleteSnapshot.
|
---|
3196 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3197 | Snapshot has more than one child snapshot.
|
---|
3198 | </result>
|
---|
3199 | </desc>
|
---|
3200 | <param name="initiator" type="IConsole" dir="in">
|
---|
3201 | <desc>The console object that initiated this call.</desc>
|
---|
3202 | </param>
|
---|
3203 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
3204 | <desc>UUID of the snapshot to delete.</desc>
|
---|
3205 | </param>
|
---|
3206 | <param name="machineState" type="MachineState" dir="out">
|
---|
3207 | <desc>New machine state after this operation is started.</desc>
|
---|
3208 | </param>
|
---|
3209 | <param name="progress" type="IProgress" dir="return">
|
---|
3210 | <desc>Progress object to track the operation completion.</desc>
|
---|
3211 | </param>
|
---|
3212 | </method>
|
---|
3213 |
|
---|
3214 | <method name="finishOnlineMergeMedium">
|
---|
3215 | <desc>
|
---|
3216 | Gets called by IConsole::onlineMergeMedium.
|
---|
3217 | </desc>
|
---|
3218 | <param name="mediumAttachment" type="IMediumAttachment" dir="in">
|
---|
3219 | <desc>The medium attachment which needs to be cleaned up.</desc>
|
---|
3220 | </param>
|
---|
3221 | <param name="source" type="IMedium" dir="in">
|
---|
3222 | <desc>Merge source medium.</desc>
|
---|
3223 | </param>
|
---|
3224 | <param name="target" type="IMedium" dir="in">
|
---|
3225 | <desc>Merge target medium.</desc>
|
---|
3226 | </param>
|
---|
3227 | <param name="mergeForward" type="boolean" dir="in">
|
---|
3228 | <desc>Merge direction.</desc>
|
---|
3229 | </param>
|
---|
3230 | <param name="parentForTarget" type="IMedium" dir="in">
|
---|
3231 | <desc>For forward merges: new parent for target medium.</desc>
|
---|
3232 | </param>
|
---|
3233 | <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
|
---|
3234 | <desc>For backward merges: list of media which need their parent UUID
|
---|
3235 | updated.</desc>
|
---|
3236 | </param>
|
---|
3237 | </method>
|
---|
3238 |
|
---|
3239 | <method name="restoreSnapshot">
|
---|
3240 | <desc>
|
---|
3241 | Gets called by IConsole::RestoreSnapshot.
|
---|
3242 | </desc>
|
---|
3243 | <param name="initiator" type="IConsole" dir="in">
|
---|
3244 | <desc>The console object that initiated this call.</desc>
|
---|
3245 | </param>
|
---|
3246 | <param name="snapshot" type="ISnapshot" dir="in">
|
---|
3247 | <desc>The snapshot to restore the VM state from.</desc>
|
---|
3248 | </param>
|
---|
3249 | <param name="machineState" type="MachineState" dir="out">
|
---|
3250 | <desc>New machine state after this operation is started.</desc>
|
---|
3251 | </param>
|
---|
3252 | <param name="progress" type="IProgress" dir="return">
|
---|
3253 | <desc>Progress object to track the operation completion.</desc>
|
---|
3254 | </param>
|
---|
3255 | </method>
|
---|
3256 |
|
---|
3257 | <method name="pullGuestProperties">
|
---|
3258 | <desc>
|
---|
3259 | Get the list of the guest properties matching a set of patterns along
|
---|
3260 | with their values, time stamps and flags and give responsibility for
|
---|
3261 | managing properties to the console.
|
---|
3262 | </desc>
|
---|
3263 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
3264 | <desc>
|
---|
3265 | The names of the properties returned.
|
---|
3266 | </desc>
|
---|
3267 | </param>
|
---|
3268 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
3269 | <desc>
|
---|
3270 | The values of the properties returned. The array entries match the
|
---|
3271 | corresponding entries in the @a name array.
|
---|
3272 | </desc>
|
---|
3273 | </param>
|
---|
3274 | <param name="timestamp" type="long long" dir="out" safearray="yes">
|
---|
3275 | <desc>
|
---|
3276 | The time stamps of the properties returned. The array entries match
|
---|
3277 | the corresponding entries in the @a name array.
|
---|
3278 | </desc>
|
---|
3279 | </param>
|
---|
3280 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
3281 | <desc>
|
---|
3282 | The flags of the properties returned. The array entries match the
|
---|
3283 | corresponding entries in the @a name array.
|
---|
3284 | </desc>
|
---|
3285 | </param>
|
---|
3286 | </method>
|
---|
3287 |
|
---|
3288 | <method name="pushGuestProperty">
|
---|
3289 | <desc>
|
---|
3290 | Update a single guest property in IMachine.
|
---|
3291 | </desc>
|
---|
3292 | <param name="name" type="wstring" dir="in">
|
---|
3293 | <desc>
|
---|
3294 | The name of the property to be updated.
|
---|
3295 | </desc>
|
---|
3296 | </param>
|
---|
3297 | <param name="value" type="wstring" dir="in">
|
---|
3298 | <desc>
|
---|
3299 | The value of the property.
|
---|
3300 | </desc>
|
---|
3301 | </param>
|
---|
3302 | <param name="timestamp" type="long long" dir="in">
|
---|
3303 | <desc>
|
---|
3304 | The timestamp of the property.
|
---|
3305 | </desc>
|
---|
3306 | </param>
|
---|
3307 | <param name="flags" type="wstring" dir="in">
|
---|
3308 | <desc>
|
---|
3309 | The flags of the property.
|
---|
3310 | </desc>
|
---|
3311 | </param>
|
---|
3312 | </method>
|
---|
3313 |
|
---|
3314 | <method name="lockMedia">
|
---|
3315 | <desc>
|
---|
3316 | Locks all media attached to the machine for writing and parents of
|
---|
3317 | attached differencing media (if any) for reading. This operation is
|
---|
3318 | atomic so that if it fails no media is actually locked.
|
---|
3319 |
|
---|
3320 | This method is intended to be called when the machine is in Starting or
|
---|
3321 | Restoring state. The locked media will be automatically unlocked when
|
---|
3322 | the machine is powered off or crashed.
|
---|
3323 | </desc>
|
---|
3324 | </method>
|
---|
3325 | <method name="unlockMedia">
|
---|
3326 | <desc>
|
---|
3327 | Unlocks all media previously locked using
|
---|
3328 | <link to="IInternalMachineControl::lockMedia"/>.
|
---|
3329 |
|
---|
3330 | This method is intended to be used with teleportation so that it is
|
---|
3331 | possible to teleport between processes on the same machine.
|
---|
3332 | </desc>
|
---|
3333 | </method>
|
---|
3334 | </interface>
|
---|
3335 |
|
---|
3336 | <interface
|
---|
3337 | name="IBIOSSettings" extends="$unknown"
|
---|
3338 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
3339 | wsmap="managed"
|
---|
3340 | >
|
---|
3341 | <desc>
|
---|
3342 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
3343 | machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
|
---|
3344 | </desc>
|
---|
3345 | <attribute name="logoFadeIn" type="boolean">
|
---|
3346 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
3347 | </attribute>
|
---|
3348 |
|
---|
3349 | <attribute name="logoFadeOut" type="boolean">
|
---|
3350 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
3351 | </attribute>
|
---|
3352 |
|
---|
3353 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
3354 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
3355 | </attribute>
|
---|
3356 |
|
---|
3357 | <attribute name="logoImagePath" type="wstring">
|
---|
3358 | <desc>
|
---|
3359 | Local file system path for external BIOS splash image. Empty string
|
---|
3360 | means the default image is shown on boot.
|
---|
3361 | </desc>
|
---|
3362 | </attribute>
|
---|
3363 |
|
---|
3364 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
3365 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
3366 | </attribute>
|
---|
3367 |
|
---|
3368 | <attribute name="ACPIEnabled" type="boolean">
|
---|
3369 | <desc>ACPI support flag.</desc>
|
---|
3370 | </attribute>
|
---|
3371 |
|
---|
3372 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
3373 | <desc>
|
---|
3374 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
3375 | and support IRQs above 15.
|
---|
3376 | </desc>
|
---|
3377 | </attribute>
|
---|
3378 |
|
---|
3379 | <attribute name="timeOffset" type="long long">
|
---|
3380 | <desc>
|
---|
3381 | Offset in milliseconds from the host system time. This allows for
|
---|
3382 | guests running with a different system date/time than the host.
|
---|
3383 | It is equivalent to setting the system date/time in the BIOS except
|
---|
3384 | it is not an absolute value but a relative one. Guest Additions
|
---|
3385 | time synchronization honors this offset.
|
---|
3386 | </desc>
|
---|
3387 | </attribute>
|
---|
3388 |
|
---|
3389 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
3390 | <desc>
|
---|
3391 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
3392 | PXE trace information to the release log.
|
---|
3393 | </desc>
|
---|
3394 | </attribute>
|
---|
3395 |
|
---|
3396 | </interface>
|
---|
3397 |
|
---|
3398 | <enum
|
---|
3399 | name="CleanupMode"
|
---|
3400 | uuid="67897c50-7cca-47a9-83f6-ce8fd8eb5441"
|
---|
3401 | >
|
---|
3402 | <desc>Cleanup mode, used with <link to="IMachine::unregister" />.
|
---|
3403 | </desc>
|
---|
3404 | <const name="UnregisterOnly" value="1">
|
---|
3405 | <desc>Unregister only the machine, but neither delete snapshots nor detach media.</desc>
|
---|
3406 | </const>
|
---|
3407 | <const name="DetachAllReturnNone" value="2">
|
---|
3408 | <desc>Delete all snapshots and detach all media but return none; this will keep all media registered.</desc>
|
---|
3409 | </const>
|
---|
3410 | <const name="DetachAllReturnHardDisksOnly" value="3">
|
---|
3411 | <desc>Delete all snapshots, detach all media and return hard disks for closing, but not removable media.</desc>
|
---|
3412 | </const>
|
---|
3413 | <const name="Full" value="4">
|
---|
3414 | <desc>Delete all snapshots, detach all media and return all media for closing.</desc>
|
---|
3415 | </const>
|
---|
3416 | </enum>
|
---|
3417 |
|
---|
3418 | <interface
|
---|
3419 | name="IPciAddress" extends="$unknown"
|
---|
3420 | uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8"
|
---|
3421 | wsmap="struct"
|
---|
3422 | >
|
---|
3423 |
|
---|
3424 | <desc>
|
---|
3425 | Address on the PCI bus.
|
---|
3426 | </desc>
|
---|
3427 |
|
---|
3428 | <attribute name="bus" type="short">
|
---|
3429 | <desc>
|
---|
3430 | Bus number.
|
---|
3431 | </desc>
|
---|
3432 | </attribute>
|
---|
3433 |
|
---|
3434 | <attribute name="device" type="short">
|
---|
3435 | <desc>
|
---|
3436 | Device number.
|
---|
3437 | </desc>
|
---|
3438 | </attribute>
|
---|
3439 |
|
---|
3440 | <attribute name="devFunction" type="short">
|
---|
3441 | <desc>
|
---|
3442 | Device function number.
|
---|
3443 | </desc>
|
---|
3444 | </attribute>
|
---|
3445 |
|
---|
3446 | <method name="asLong">
|
---|
3447 | <desc>
|
---|
3448 | Convert PCI address into long.
|
---|
3449 | </desc>
|
---|
3450 | <param name="result" type="long" dir="return" />
|
---|
3451 | </method>
|
---|
3452 |
|
---|
3453 | <method name="fromLong">
|
---|
3454 | <desc>
|
---|
3455 | Make PCI address from long.
|
---|
3456 | </desc>
|
---|
3457 | <param name="number" type="long" dir="in" />
|
---|
3458 | </method>
|
---|
3459 | </interface>
|
---|
3460 |
|
---|
3461 | <interface
|
---|
3462 | name="IPciDeviceAttachment" extends="$unknown"
|
---|
3463 | uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5"
|
---|
3464 | wsmap="struct"
|
---|
3465 | >
|
---|
3466 |
|
---|
3467 | <desc>
|
---|
3468 | Information about PCI attachments.
|
---|
3469 | </desc>
|
---|
3470 |
|
---|
3471 | <attribute name="name" type="wstring" readonly="yes">
|
---|
3472 | <desc>
|
---|
3473 | Device name.
|
---|
3474 | </desc>
|
---|
3475 | </attribute>
|
---|
3476 |
|
---|
3477 | <attribute name="isPhysicalDevice" type="boolean" readonly="yes">
|
---|
3478 | <desc>
|
---|
3479 | If this is physical or virtual device.
|
---|
3480 | </desc>
|
---|
3481 | </attribute>
|
---|
3482 |
|
---|
3483 | <attribute name="hostAddress" type="long" readonly="yes">
|
---|
3484 | <desc>
|
---|
3485 | Address of device on the host, applicable only to host devices.
|
---|
3486 | </desc>
|
---|
3487 | </attribute>
|
---|
3488 |
|
---|
3489 | <attribute name="guestAddress" type="long" readonly="yes">
|
---|
3490 | <desc>
|
---|
3491 | Address of device on the guest.
|
---|
3492 | </desc>
|
---|
3493 | </attribute>
|
---|
3494 |
|
---|
3495 | </interface>
|
---|
3496 |
|
---|
3497 |
|
---|
3498 | <interface
|
---|
3499 | name="IMachine" extends="$unknown"
|
---|
3500 | uuid="662c175e-a69d-40b8-a77a-1d719d0ab062"
|
---|
3501 | wsmap="managed"
|
---|
3502 | >
|
---|
3503 | <desc>
|
---|
3504 | The IMachine interface represents a virtual machine, or guest, created
|
---|
3505 | in VirtualBox.
|
---|
3506 |
|
---|
3507 | This interface is used in two contexts. First of all, a collection of
|
---|
3508 | objects implementing this interface is stored in the
|
---|
3509 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
3510 | machines that are currently registered with this VirtualBox
|
---|
3511 | installation. Also, once a session has been opened for the given virtual
|
---|
3512 | machine (e.g. the virtual machine is running), the machine object
|
---|
3513 | associated with the open session can be queried from the session object;
|
---|
3514 | see <link to="ISession"/> for details.
|
---|
3515 |
|
---|
3516 | The main role of this interface is to expose the settings of the virtual
|
---|
3517 | machine and provide methods to change various aspects of the virtual
|
---|
3518 | machine's configuration. For machine objects stored in the
|
---|
3519 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
3520 | read-only unless explicitly stated otherwise in individual attribute
|
---|
3521 | and method descriptions.
|
---|
3522 |
|
---|
3523 | In order to change a machine setting, a session for this machine must be
|
---|
3524 | opened using one of the <link to="IMachine::lockMachine" /> or
|
---|
3525 | <link to="IMachine::launchVMProcess"/> methods. After the
|
---|
3526 | machine has been successfully locked for a session, a mutable machine object
|
---|
3527 | needs to be queried from the session object and then the desired settings
|
---|
3528 | changes can be applied to the returned object using IMachine attributes and
|
---|
3529 | methods. See the <link to="ISession"/> interface description for more
|
---|
3530 | information about sessions.
|
---|
3531 |
|
---|
3532 | Note that IMachine does not provide methods to control virtual machine
|
---|
3533 | execution (such as start the machine, or power it down) -- these methods
|
---|
3534 | are grouped in a separate interface called <link to="IConsole" />.
|
---|
3535 |
|
---|
3536 | <see>ISession, IConsole</see>
|
---|
3537 | </desc>
|
---|
3538 |
|
---|
3539 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
3540 | <desc>Associated parent object.</desc>
|
---|
3541 | </attribute>
|
---|
3542 |
|
---|
3543 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
3544 | <desc>
|
---|
3545 | Whether this virtual machine is currently accessible or not.
|
---|
3546 |
|
---|
3547 | A machine is always deemed accessible unless it is registered <i>and</i>
|
---|
3548 | its settings file cannot be read or parsed (either because the file itself
|
---|
3549 | is unavailable or has invalid XML contents).
|
---|
3550 |
|
---|
3551 | Every time this property is read, the accessibility state of
|
---|
3552 | this machine is re-evaluated. If the returned value is @c false,
|
---|
3553 | the <link to="#accessError"/> property may be used to get the
|
---|
3554 | detailed error information describing the reason of
|
---|
3555 | inaccessibility, including XML error messages.
|
---|
3556 |
|
---|
3557 | When the machine is inaccessible, only the following properties
|
---|
3558 | can be used on it:
|
---|
3559 | <ul>
|
---|
3560 | <li><link to="#parent"/></li>
|
---|
3561 | <li><link to="#id"/></li>
|
---|
3562 | <li><link to="#settingsFilePath"/></li>
|
---|
3563 | <li><link to="#accessible"/></li>
|
---|
3564 | <li><link to="#accessError"/></li>
|
---|
3565 | </ul>
|
---|
3566 |
|
---|
3567 | An attempt to access any other property or method will return
|
---|
3568 | an error.
|
---|
3569 |
|
---|
3570 | The only possible action you can perform on an inaccessible
|
---|
3571 | machine is to unregister it using the
|
---|
3572 | <link to="IMachine::unregister"/> call (or, to check
|
---|
3573 | for the accessibility state once more by querying this
|
---|
3574 | property).
|
---|
3575 |
|
---|
3576 | <note>
|
---|
3577 | In the current implementation, once this property returns
|
---|
3578 | @c true, the machine will never become inaccessible
|
---|
3579 | later, even if its settings file cannot be successfully
|
---|
3580 | read/written any more (at least, until the VirtualBox
|
---|
3581 | server is restarted). This limitation may be removed in
|
---|
3582 | future releases.
|
---|
3583 | </note>
|
---|
3584 | </desc>
|
---|
3585 | </attribute>
|
---|
3586 |
|
---|
3587 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
3588 | <desc>
|
---|
3589 | Error information describing the reason of machine
|
---|
3590 | inaccessibility.
|
---|
3591 |
|
---|
3592 | Reading this property is only valid after the last call to
|
---|
3593 | <link to="#accessible"/> returned @c false (i.e. the
|
---|
3594 | machine is currently inaccessible). Otherwise, a @c null
|
---|
3595 | IVirtualBoxErrorInfo object will be returned.
|
---|
3596 | </desc>
|
---|
3597 | </attribute>
|
---|
3598 |
|
---|
3599 | <attribute name="name" type="wstring">
|
---|
3600 | <desc>
|
---|
3601 | Name of the virtual machine.
|
---|
3602 |
|
---|
3603 | Besides being used for human-readable identification purposes
|
---|
3604 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
3605 | as a name of the machine's settings file and as a name of the
|
---|
3606 | subdirectory this settings file resides in. Thus, every time you
|
---|
3607 | change the value of this property, the settings file will be
|
---|
3608 | renamed once you call <link to="#saveSettings"/> to confirm the
|
---|
3609 | change. The containing subdirectory will be also renamed, but
|
---|
3610 | only if it has exactly the same name as the settings file
|
---|
3611 | itself prior to changing this property (for backward compatibility
|
---|
3612 | with previous API releases). The above implies the following
|
---|
3613 | limitations:
|
---|
3614 | <ul>
|
---|
3615 | <li>The machine name cannot be empty.</li>
|
---|
3616 | <li>The machine name can contain only characters that are valid
|
---|
3617 | file name characters according to the rules of the file
|
---|
3618 | system used to store VirtualBox configuration.</li>
|
---|
3619 | <li>You cannot have two or more machines with the same name
|
---|
3620 | if they use the same subdirectory for storing the machine
|
---|
3621 | settings files.</li>
|
---|
3622 | <li>You cannot change the name of the machine if it is running,
|
---|
3623 | or if any file in the directory containing the settings file
|
---|
3624 | is being used by another running machine or by any other
|
---|
3625 | process in the host operating system at a time when
|
---|
3626 | <link to="#saveSettings"/> is called.
|
---|
3627 | </li>
|
---|
3628 | </ul>
|
---|
3629 | If any of the above limitations are hit, <link to="#saveSettings"/>
|
---|
3630 | will return an appropriate error message explaining the exact
|
---|
3631 | reason and the changes you made to this machine will not be saved.
|
---|
3632 |
|
---|
3633 | Starting with VirtualBox 4.0, a “.vbox” extension of the settings
|
---|
3634 | file is recommended, but not enforced. (Previous versions always
|
---|
3635 | used a generic ".xml" extension.)
|
---|
3636 | </desc>
|
---|
3637 | </attribute>
|
---|
3638 |
|
---|
3639 | <attribute name="description" type="wstring">
|
---|
3640 | <desc>
|
---|
3641 | Description of the virtual machine.
|
---|
3642 |
|
---|
3643 | The description attribute can contain any text and is
|
---|
3644 | typically used to describe the hardware and software
|
---|
3645 | configuration of the virtual machine in detail (i.e. network
|
---|
3646 | settings, versions of the installed software and so on).
|
---|
3647 | </desc>
|
---|
3648 | </attribute>
|
---|
3649 |
|
---|
3650 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
3651 | <desc>UUID of the virtual machine.</desc>
|
---|
3652 | </attribute>
|
---|
3653 |
|
---|
3654 | <attribute name="OSTypeId" type="wstring">
|
---|
3655 | <desc>
|
---|
3656 | User-defined identifier of the Guest OS type.
|
---|
3657 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
3658 | an IGuestOSType object representing details about the given
|
---|
3659 | Guest OS type.
|
---|
3660 | <note>
|
---|
3661 | This value may differ from the value returned by
|
---|
3662 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
3663 | installed to the guest OS.
|
---|
3664 | </note>
|
---|
3665 | </desc>
|
---|
3666 | </attribute>
|
---|
3667 |
|
---|
3668 | <attribute name="HardwareVersion" type="wstring">
|
---|
3669 | <desc>Hardware version identifier. Internal use only for now.</desc>
|
---|
3670 | </attribute>
|
---|
3671 |
|
---|
3672 | <attribute name="hardwareUUID" type="uuid" mod="string">
|
---|
3673 | <desc>
|
---|
3674 | The UUID presented to the guest via memory tables, hardware and guest
|
---|
3675 | properties. For most VMs this is the same as the @a id, but for VMs
|
---|
3676 | which have been cloned or teleported it may be the same as the source
|
---|
3677 | VM. This latter is because the guest shouldn't notice that it was
|
---|
3678 | cloned or teleported.
|
---|
3679 | </desc>
|
---|
3680 | </attribute>
|
---|
3681 |
|
---|
3682 | <attribute name="CPUCount" type="unsigned long">
|
---|
3683 | <desc>Number of virtual CPUs in the VM.</desc>
|
---|
3684 | </attribute>
|
---|
3685 |
|
---|
3686 | <attribute name="CPUHotPlugEnabled" type="boolean">
|
---|
3687 | <desc>
|
---|
3688 | This setting determines whether VirtualBox allows CPU
|
---|
3689 | hotplugging for this machine.</desc>
|
---|
3690 | </attribute>
|
---|
3691 |
|
---|
3692 | <attribute name="CPUExecutionCap" type="unsigned long">
|
---|
3693 | <desc>
|
---|
3694 | Means to limit the number of CPU cycles a guest can use. The unit
|
---|
3695 | is percentage of host CPU cycles per second. The valid range
|
---|
3696 | is 1 - 100. 100 (the default) implies no limit.
|
---|
3697 | </desc>
|
---|
3698 | </attribute>
|
---|
3699 |
|
---|
3700 | <attribute name="memorySize" type="unsigned long">
|
---|
3701 | <desc>System memory size in megabytes.</desc>
|
---|
3702 | </attribute>
|
---|
3703 |
|
---|
3704 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
3705 | <desc>Memory balloon size in megabytes.</desc>
|
---|
3706 | </attribute>
|
---|
3707 |
|
---|
3708 | <attribute name="PageFusionEnabled" type="boolean">
|
---|
3709 | <desc>
|
---|
3710 | This setting determines whether VirtualBox allows page
|
---|
3711 | fusion for this machine (64 bits host only).
|
---|
3712 | </desc>
|
---|
3713 | </attribute>
|
---|
3714 |
|
---|
3715 | <attribute name="VRAMSize" type="unsigned long">
|
---|
3716 | <desc>Video memory size in megabytes.</desc>
|
---|
3717 | </attribute>
|
---|
3718 |
|
---|
3719 | <attribute name="accelerate3DEnabled" type="boolean" default="false">
|
---|
3720 | <desc>
|
---|
3721 | This setting determines whether VirtualBox allows this machine to make
|
---|
3722 | use of the 3D graphics support available on the host.</desc>
|
---|
3723 | </attribute>
|
---|
3724 |
|
---|
3725 | <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
|
---|
3726 | <desc>
|
---|
3727 | This setting determines whether VirtualBox allows this machine to make
|
---|
3728 | use of the 2D video acceleration support available on the host.</desc>
|
---|
3729 | </attribute>
|
---|
3730 |
|
---|
3731 | <attribute name="monitorCount" type="unsigned long">
|
---|
3732 | <desc>
|
---|
3733 | Number of virtual monitors.
|
---|
3734 | <note>
|
---|
3735 | Only effective on Windows XP and later guests with
|
---|
3736 | Guest Additions installed.
|
---|
3737 | </note>
|
---|
3738 | </desc>
|
---|
3739 | </attribute>
|
---|
3740 |
|
---|
3741 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
3742 | <desc>Object containing all BIOS settings.</desc>
|
---|
3743 | </attribute>
|
---|
3744 |
|
---|
3745 | <attribute name="firmwareType" type="FirmwareType">
|
---|
3746 | <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
|
---|
3747 | bootstrap in this VM.</desc>
|
---|
3748 | </attribute>
|
---|
3749 |
|
---|
3750 | <attribute name="pointingHidType" type="PointingHidType">
|
---|
3751 | <desc>Type of pointing HID (such as mouse or tablet) used in this VM.
|
---|
3752 | The default is typically "PS2Mouse" but can vary depending on the
|
---|
3753 | requirements of the guest operating system.</desc>
|
---|
3754 | </attribute>
|
---|
3755 |
|
---|
3756 | <attribute name="keyboardHidType" type="KeyboardHidType">
|
---|
3757 | <desc>Type of keyboard HID used in this VM.
|
---|
3758 | The default is typically "PS2Keyboard" but can vary depending on the
|
---|
3759 | requirements of the guest operating system.</desc>
|
---|
3760 | </attribute>
|
---|
3761 |
|
---|
3762 | <attribute name="hpetEnabled" type="boolean">
|
---|
3763 | <desc>This attribute controls if High Precision Event Timer (HPET) is
|
---|
3764 | enabled in this VM. Use this property if you want to provide guests
|
---|
3765 | with additional time source, or if guest requires HPET to function correctly.
|
---|
3766 | Default is false.</desc>
|
---|
3767 | </attribute>
|
---|
3768 |
|
---|
3769 | <attribute name="chipsetType" type="ChipsetType">
|
---|
3770 | <desc>Chipset type used in this VM.</desc>
|
---|
3771 | </attribute>
|
---|
3772 |
|
---|
3773 | <attribute name="snapshotFolder" type="wstring">
|
---|
3774 | <desc>
|
---|
3775 | Full path to the directory used to store snapshot data
|
---|
3776 | (differencing media and saved state files) of this machine.
|
---|
3777 |
|
---|
3778 | The initial value of this property is
|
---|
3779 | <tt><</tt><link to="#settingsFilePath">
|
---|
3780 | path_to_settings_file</link><tt>>/<</tt>
|
---|
3781 | <link to="#id">machine_uuid</link>
|
---|
3782 | <tt>></tt>.
|
---|
3783 |
|
---|
3784 | Currently, it is an error to try to change this property on
|
---|
3785 | a machine that has snapshots (because this would require to
|
---|
3786 | move possibly large files to a different location).
|
---|
3787 | A separate method will be available for this purpose later.
|
---|
3788 |
|
---|
3789 | <note>
|
---|
3790 | Setting this property to @c null or to an empty string will restore
|
---|
3791 | the initial value.
|
---|
3792 | </note>
|
---|
3793 | <note>
|
---|
3794 | When setting this property, the specified path can be
|
---|
3795 | absolute (full path) or relative to the directory where the
|
---|
3796 | <link to="#settingsFilePath">machine settings file</link>
|
---|
3797 | is located. When reading this property, a full path is
|
---|
3798 | always returned.
|
---|
3799 | </note>
|
---|
3800 | <note>
|
---|
3801 | The specified path may not exist, it will be created
|
---|
3802 | when necessary.
|
---|
3803 | </note>
|
---|
3804 | </desc>
|
---|
3805 | </attribute>
|
---|
3806 |
|
---|
3807 | <attribute name="VRDEServer" type="IVRDEServer" readonly="yes">
|
---|
3808 | <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc>
|
---|
3809 | </attribute>
|
---|
3810 |
|
---|
3811 | <attribute name="mediumAttachments" type="IMediumAttachment" readonly="yes" safearray="yes">
|
---|
3812 | <desc>Array of media attached to this machine.</desc>
|
---|
3813 | </attribute>
|
---|
3814 |
|
---|
3815 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
3816 | <desc>
|
---|
3817 | Associated USB controller object.
|
---|
3818 |
|
---|
3819 | <note>
|
---|
3820 | If USB functionality is not available in the given edition of
|
---|
3821 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
3822 | </note>
|
---|
3823 | </desc>
|
---|
3824 | </attribute>
|
---|
3825 |
|
---|
3826 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
3827 | <desc>Associated audio adapter, always present.</desc>
|
---|
3828 | </attribute>
|
---|
3829 |
|
---|
3830 | <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
|
---|
3831 | <desc>Array of storage controllers attached to this machine.</desc>
|
---|
3832 | </attribute>
|
---|
3833 |
|
---|
3834 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
3835 | <desc>
|
---|
3836 | Full name of the file containing machine settings data.
|
---|
3837 | </desc>
|
---|
3838 | </attribute>
|
---|
3839 |
|
---|
3840 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
3841 | <desc>
|
---|
3842 | Whether the settings of this machine have been modified
|
---|
3843 | (but neither yet saved nor discarded).
|
---|
3844 | <note>
|
---|
3845 | Reading this property is only valid on instances returned
|
---|
3846 | by <link to="ISession::machine"/> and on new machines
|
---|
3847 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
3848 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
3849 | yet registered, or on unregistered machines after calling
|
---|
3850 | <link to="IMachine::unregister"/>. For all other
|
---|
3851 | cases, the settings can never be modified.
|
---|
3852 | </note>
|
---|
3853 | <note>
|
---|
3854 | For newly created unregistered machines, the value of this
|
---|
3855 | property is always @c true until <link to="#saveSettings"/>
|
---|
3856 | is called (no matter if any machine settings have been
|
---|
3857 | changed after the creation or not). For opened machines
|
---|
3858 | the value is set to @c false (and then follows to normal rules).
|
---|
3859 | </note>
|
---|
3860 | </desc>
|
---|
3861 | </attribute>
|
---|
3862 |
|
---|
3863 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
3864 | <desc>Current session state for this machine.</desc>
|
---|
3865 | </attribute>
|
---|
3866 |
|
---|
3867 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
3868 | <desc>
|
---|
3869 | Type of the session. If <link to="#sessionState"/> is
|
---|
3870 | Spawning or Locked, this attribute contains the
|
---|
3871 | same value as passed to the
|
---|
3872 | <link to="IMachine::launchVMProcess"/> method in the
|
---|
3873 | @a type parameter. If the session was used with
|
---|
3874 | <link to="IMachine::lockMachine" />, or if
|
---|
3875 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
3876 | attribute is an empty string.
|
---|
3877 | </desc>
|
---|
3878 | </attribute>
|
---|
3879 |
|
---|
3880 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
3881 | <desc>
|
---|
3882 | Identifier of the session process. This attribute contains the
|
---|
3883 | platform-dependent identifier of the process whose session was
|
---|
3884 | used with <link to="IMachine::lockMachine" /> call. The returned
|
---|
3885 | value is only valid if <link to="#sessionState"/> is Locked or
|
---|
3886 | Unlocking by the time this property is read.
|
---|
3887 | </desc>
|
---|
3888 | </attribute>
|
---|
3889 |
|
---|
3890 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
3891 | <desc>Current execution state of this machine.</desc>
|
---|
3892 | </attribute>
|
---|
3893 |
|
---|
3894 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
3895 | <desc>
|
---|
3896 | Time stamp of the last execution state change,
|
---|
3897 | in milliseconds since 1970-01-01 UTC.
|
---|
3898 | </desc>
|
---|
3899 | </attribute>
|
---|
3900 |
|
---|
3901 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
3902 | <desc>
|
---|
3903 | Full path to the file that stores the execution state of
|
---|
3904 | the machine when it is in the <link to="MachineState_Saved"/> state.
|
---|
3905 | <note>
|
---|
3906 | When the machine is not in the Saved state, this attribute is
|
---|
3907 | an empty string.
|
---|
3908 | </note>
|
---|
3909 | </desc>
|
---|
3910 | </attribute>
|
---|
3911 |
|
---|
3912 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
3913 | <desc>
|
---|
3914 | Full path to the folder that stores a set of rotated log files
|
---|
3915 | recorded during machine execution. The most recent log file is
|
---|
3916 | named <tt>VBox.log</tt>, the previous log file is
|
---|
3917 | named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
|
---|
3918 | in the current version).
|
---|
3919 | </desc>
|
---|
3920 | </attribute>
|
---|
3921 |
|
---|
3922 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
3923 | <desc>
|
---|
3924 | Current snapshot of this machine. This is @c null if the machine
|
---|
3925 | currently has no snapshots. If it is not @c null, then it was
|
---|
3926 | set by one of <link to="IConsole::takeSnapshot" />,
|
---|
3927 | <link to="IConsole::deleteSnapshot" />
|
---|
3928 | or <link to="IConsole::restoreSnapshot" />, depending on which
|
---|
3929 | was called last. See <link to="ISnapshot"/> for details.
|
---|
3930 | </desc>
|
---|
3931 | </attribute>
|
---|
3932 |
|
---|
3933 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
3934 | <desc>
|
---|
3935 | Number of snapshots taken on this machine. Zero means the
|
---|
3936 | machine doesn't have any snapshots.
|
---|
3937 | </desc>
|
---|
3938 | </attribute>
|
---|
3939 |
|
---|
3940 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
3941 | <desc>
|
---|
3942 | Returns @c true if the current state of the machine is not
|
---|
3943 | identical to the state stored in the current snapshot.
|
---|
3944 |
|
---|
3945 | The current state is identical to the current snapshot only
|
---|
3946 | directly after one of the following calls are made:
|
---|
3947 |
|
---|
3948 | <ul>
|
---|
3949 | <li><link to="IConsole::restoreSnapshot"/>
|
---|
3950 | </li>
|
---|
3951 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
3952 | "powered off" or "saved" machine, for which
|
---|
3953 | <link to="#settingsModified"/> returns @c false)
|
---|
3954 | </li>
|
---|
3955 | </ul>
|
---|
3956 |
|
---|
3957 | The current state remains identical until one of the following
|
---|
3958 | happens:
|
---|
3959 | <ul>
|
---|
3960 | <li>settings of the machine are changed</li>
|
---|
3961 | <li>the saved state is deleted</li>
|
---|
3962 | <li>the current snapshot is deleted</li>
|
---|
3963 | <li>an attempt to execute the machine is made</li>
|
---|
3964 | </ul>
|
---|
3965 |
|
---|
3966 | <note>
|
---|
3967 | For machines that don't have snapshots, this property is
|
---|
3968 | always @c false.
|
---|
3969 | </note>
|
---|
3970 | </desc>
|
---|
3971 | </attribute>
|
---|
3972 |
|
---|
3973 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
3974 | <desc>
|
---|
3975 | Collection of shared folders for this machine (permanent shared
|
---|
3976 | folders). These folders are shared automatically at machine startup
|
---|
3977 | and available only to the guest OS installed within this machine.
|
---|
3978 |
|
---|
3979 | New shared folders are added to the collection using
|
---|
3980 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
3981 | removed using <link to="#removeSharedFolder"/>.
|
---|
3982 | </desc>
|
---|
3983 | </attribute>
|
---|
3984 |
|
---|
3985 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
3986 | <desc>
|
---|
3987 | Synchronization mode between the host OS clipboard
|
---|
3988 | and the guest OS clipboard.
|
---|
3989 | </desc>
|
---|
3990 | </attribute>
|
---|
3991 |
|
---|
3992 | <attribute name="guestPropertyNotificationPatterns" type="wstring">
|
---|
3993 | <desc>
|
---|
3994 | A comma-separated list of simple glob patterns. Changes to guest
|
---|
3995 | properties whose name matches one of the patterns will generate an
|
---|
3996 | <link to="IGuestPropertyChangedEvent"/> signal.
|
---|
3997 | </desc>
|
---|
3998 | </attribute>
|
---|
3999 |
|
---|
4000 | <attribute name="teleporterEnabled" type="boolean">
|
---|
4001 | <desc>
|
---|
4002 | When set to @a true, the virtual machine becomes a target teleporter
|
---|
4003 | the next time it is powered on. This can only set to @a true when the
|
---|
4004 | VM is in the @a PoweredOff or @a Aborted state.
|
---|
4005 |
|
---|
4006 | <!-- This property is automatically set to @a false when the VM is powered
|
---|
4007 | on. (bird: This doesn't work yet ) -->
|
---|
4008 | </desc>
|
---|
4009 | </attribute>
|
---|
4010 |
|
---|
4011 | <attribute name="teleporterPort" type="unsigned long">
|
---|
4012 | <desc>
|
---|
4013 | The TCP port the target teleporter will listen for incoming
|
---|
4014 | teleportations on.
|
---|
4015 |
|
---|
4016 | 0 means the port is automatically selected upon power on. The actual
|
---|
4017 | value can be read from this property while the machine is waiting for
|
---|
4018 | incoming teleportations.
|
---|
4019 | </desc>
|
---|
4020 | </attribute>
|
---|
4021 |
|
---|
4022 | <attribute name="teleporterAddress" type="wstring">
|
---|
4023 | <desc>
|
---|
4024 | The address the target teleporter will listen on. If set to an empty
|
---|
4025 | string, it will listen on all addresses.
|
---|
4026 | </desc>
|
---|
4027 | </attribute>
|
---|
4028 |
|
---|
4029 | <attribute name="teleporterPassword" type="wstring">
|
---|
4030 | <desc>
|
---|
4031 | The password to check for on the target teleporter. This is just a
|
---|
4032 | very basic measure to prevent simple hacks and operators accidentally
|
---|
4033 | beaming a virtual machine to the wrong place.
|
---|
4034 | </desc>
|
---|
4035 | </attribute>
|
---|
4036 |
|
---|
4037 | <attribute name="faultToleranceState" type="FaultToleranceState">
|
---|
4038 | <desc>
|
---|
4039 | Fault tolerance state; disabled, source or target.
|
---|
4040 | This property can be changed at any time. If you change it for a running
|
---|
4041 | VM, then the fault tolerance address and port must be set beforehand.
|
---|
4042 | </desc>
|
---|
4043 | </attribute>
|
---|
4044 |
|
---|
4045 | <attribute name="faultTolerancePort" type="unsigned long">
|
---|
4046 | <desc>
|
---|
4047 | The TCP port the fault tolerance source or target will use for
|
---|
4048 | communication.
|
---|
4049 | </desc>
|
---|
4050 | </attribute>
|
---|
4051 |
|
---|
4052 | <attribute name="faultToleranceAddress" type="wstring">
|
---|
4053 | <desc>
|
---|
4054 | The address the fault tolerance source or target.
|
---|
4055 | </desc>
|
---|
4056 | </attribute>
|
---|
4057 |
|
---|
4058 | <attribute name="faultTolerancePassword" type="wstring">
|
---|
4059 | <desc>
|
---|
4060 | The password to check for on the standby VM. This is just a
|
---|
4061 | very basic measure to prevent simple hacks and operators accidentally
|
---|
4062 | choosing the wrong standby VM.
|
---|
4063 | </desc>
|
---|
4064 | </attribute>
|
---|
4065 |
|
---|
4066 | <attribute name="faultToleranceSyncInterval" type="unsigned long">
|
---|
4067 | <desc>
|
---|
4068 | The interval in ms used for syncing the state between source and target.
|
---|
4069 | </desc>
|
---|
4070 | </attribute>
|
---|
4071 |
|
---|
4072 | <attribute name="RTCUseUTC" type="boolean">
|
---|
4073 | <desc>
|
---|
4074 | When set to @a true, the RTC device of the virtual machine will run
|
---|
4075 | in UTC time, otherwise in local time. Especially Unix guests prefer
|
---|
4076 | the time in UTC.
|
---|
4077 | </desc>
|
---|
4078 | </attribute>
|
---|
4079 |
|
---|
4080 | <attribute name="ioCacheEnabled" type="boolean">
|
---|
4081 | <desc>
|
---|
4082 | When set to @a true, the builtin I/O cache of the virtual machine
|
---|
4083 | will be enabled.
|
---|
4084 | </desc>
|
---|
4085 | </attribute>
|
---|
4086 |
|
---|
4087 | <attribute name="ioCacheSize" type="unsigned long">
|
---|
4088 | <desc>
|
---|
4089 | Maximum size of the I/O cache in MB.
|
---|
4090 | </desc>
|
---|
4091 | </attribute>
|
---|
4092 |
|
---|
4093 | <attribute name="bandwidthControl" type="IBandwidthControl" readonly="yes">
|
---|
4094 | <desc>
|
---|
4095 | Bandwidth control manager.
|
---|
4096 | </desc>
|
---|
4097 | </attribute>
|
---|
4098 |
|
---|
4099 | <attribute name="pciDeviceAssignments" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
|
---|
4100 | <desc>Array of PCI devices assigned to this machine, to get list of all PCI devices
|
---|
4101 | attached to the machine use IConsole::attachedPciDevices attribute, as
|
---|
4102 | this attribute is intended to list only devices additional to what
|
---|
4103 | described in virtual hardware config. Usually, this list keeps host's
|
---|
4104 | physical devices assigned to the particular machine.
|
---|
4105 | </desc>
|
---|
4106 | </attribute>
|
---|
4107 |
|
---|
4108 | <method name="lockMachine">
|
---|
4109 | <desc>
|
---|
4110 | Locks the machine for the given session to enable the caller
|
---|
4111 | to make changes to the machine or start the VM or control
|
---|
4112 | VM execution.
|
---|
4113 |
|
---|
4114 | There are two ways to lock a machine for such uses:
|
---|
4115 |
|
---|
4116 | <ul>
|
---|
4117 | <li>If you want to make changes to the machine settings,
|
---|
4118 | you must obtain an exclusive write lock on the machine
|
---|
4119 | by setting @a lockType to @c Write.
|
---|
4120 |
|
---|
4121 | This will only succeed if no other process has locked
|
---|
4122 | the machine to prevent conflicting changes. Only after
|
---|
4123 | an exclusive write lock has been obtained using this method, one
|
---|
4124 | can change all VM settings or execute the VM in the process
|
---|
4125 | space of the session object. (Note that the latter is only of
|
---|
4126 | interest if you actually want to write a new front-end for
|
---|
4127 | virtual machines; but this API gets called internally by
|
---|
4128 | the existing front-ends such as VBoxHeadless and the VirtualBox
|
---|
4129 | GUI to acquire a write lock on the machine that they are running.)
|
---|
4130 |
|
---|
4131 | On success, write-locking the machine for a session creates
|
---|
4132 | a second copy of the IMachine object. It is this second object
|
---|
4133 | upon which changes can be made; in VirtualBox terminology, the
|
---|
4134 | second copy is "mutable". It is only this second, mutable machine
|
---|
4135 | object upon which you can call methods that change the
|
---|
4136 | machine state. After having called this method, you can
|
---|
4137 | obtain this second, mutable machine object using the
|
---|
4138 | <link to="ISession::machine" /> attribute.
|
---|
4139 | </li>
|
---|
4140 | <li>If you only want to check the machine state or control
|
---|
4141 | machine execution without actually changing machine
|
---|
4142 | settings (e.g. to get access to VM statistics or take
|
---|
4143 | a snapshot or save the machine state), then set the
|
---|
4144 | @a lockType argument to @c Shared.
|
---|
4145 |
|
---|
4146 | If no other session has obtained a lock, you will obtain an
|
---|
4147 | exclusive write lock as described above. However, if another
|
---|
4148 | session has already obtained such a lock, then a link to that
|
---|
4149 | existing session will be established which allows you
|
---|
4150 | to control that existing session.
|
---|
4151 |
|
---|
4152 | To find out which type of lock was obtained, you can
|
---|
4153 | inspect <link to="ISession::type" />, which will have been
|
---|
4154 | set to either @c WriteLock or @c Shared.
|
---|
4155 | </li>
|
---|
4156 | </ul>
|
---|
4157 |
|
---|
4158 | In either case, you can get access to the <link to="IConsole" />
|
---|
4159 | object which controls VM execution.
|
---|
4160 |
|
---|
4161 | Also in all of the above cases, one must always call
|
---|
4162 | <link to="ISession::unlockMachine" /> to release the lock on the machine, or
|
---|
4163 | the machine's state will eventually be set to "Aborted".
|
---|
4164 |
|
---|
4165 | To change settings on a machine, the following sequence is typically
|
---|
4166 | performed:
|
---|
4167 |
|
---|
4168 | <ol>
|
---|
4169 | <li>Call this method to obtain an exclusive write lock for the current session.</li>
|
---|
4170 |
|
---|
4171 | <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
|
---|
4172 |
|
---|
4173 | <li>Change the settings of the machine by invoking IMachine methods.</li>
|
---|
4174 |
|
---|
4175 | <li>Call <link to="IMachine::saveSettings" />.</li>
|
---|
4176 |
|
---|
4177 | <li>Release the write lock by calling <link to="ISession::unlockMachine"/>.</li>
|
---|
4178 | </ol>
|
---|
4179 |
|
---|
4180 | <result name="E_UNEXPECTED">
|
---|
4181 | Virtual machine not registered.
|
---|
4182 | </result>
|
---|
4183 | <result name="E_ACCESSDENIED">
|
---|
4184 | Process not started by OpenRemoteSession.
|
---|
4185 | </result>
|
---|
4186 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4187 | Session already open or being opened.
|
---|
4188 | </result>
|
---|
4189 | <result name="VBOX_E_VM_ERROR">
|
---|
4190 | Failed to assign machine to session.
|
---|
4191 | </result>
|
---|
4192 | </desc>
|
---|
4193 | <param name="session" type="ISession" dir="in">
|
---|
4194 | <desc>
|
---|
4195 | Session object for which the machine will be locked.
|
---|
4196 | </desc>
|
---|
4197 | </param>
|
---|
4198 | <param name="lockType" type="LockType" dir="in">
|
---|
4199 | <desc>
|
---|
4200 | If set to @c Write, then attempt to acquire an exclusive write lock or fail.
|
---|
4201 | If set to @c Shared, then either acquire an exclusive write lock or establish
|
---|
4202 | a link to an existing session.
|
---|
4203 | </desc>
|
---|
4204 | </param>
|
---|
4205 | </method>
|
---|
4206 |
|
---|
4207 | <method name="launchVMProcess">
|
---|
4208 | <desc>
|
---|
4209 | Spawns a new process that will execute the virtual machine and obtains a shared
|
---|
4210 | lock on the machine for the calling session.
|
---|
4211 |
|
---|
4212 | If launching the VM succeeds, the new VM process will create its own session
|
---|
4213 | and write-lock the machine for it, preventing conflicting changes from other
|
---|
4214 | processes. If the machine is already locked (because it is already running or
|
---|
4215 | because another session has a write lock), launching the VM process will therefore
|
---|
4216 | fail. Reversely, future attempts to obtain a write lock will also fail while the
|
---|
4217 | machine is running.
|
---|
4218 |
|
---|
4219 | The caller's session object remains separate from the session opened by the new
|
---|
4220 | VM process. It receives its own <link to="IConsole" /> object which can be used
|
---|
4221 | to control machine execution, but it cannot be used to change all VM settings
|
---|
4222 | which would be available after a <link to="#lockMachine" /> call.
|
---|
4223 |
|
---|
4224 | The caller must eventually release the session's shared lock by calling
|
---|
4225 | <link to="ISession::unlockMachine" /> on the local session object once this call
|
---|
4226 | has returned. However, the session's state (see <link to="ISession::state" />)
|
---|
4227 | will not return to "Unlocked" until the remote session has also unlocked
|
---|
4228 | the machine (i.e. the machine has stopped running).
|
---|
4229 |
|
---|
4230 | Launching a VM process can take some time (a new VM is started in a new process,
|
---|
4231 | for which memory and other resources need to be set up). Because of this,
|
---|
4232 | an <link to="IProgress" /> object is returned to allow the caller to wait
|
---|
4233 | for this asynchronous operation to be completed. Until then, the caller's
|
---|
4234 | session object remains in the "Unlocked" state, and its <link to="ISession::machine" />
|
---|
4235 | and <link to="ISession::console" /> attributes cannot be accessed.
|
---|
4236 | It is recommended to use <link to="IProgress::waitForCompletion" /> or
|
---|
4237 | similar calls to wait for completion. Completion is signalled when the VM
|
---|
4238 | is powered on. If launching the VM fails, error messages can be queried
|
---|
4239 | via the progress object, if available.
|
---|
4240 |
|
---|
4241 | The progress object will have at least 2 sub-operations. The first
|
---|
4242 | operation covers the period up to the new VM process calls powerUp.
|
---|
4243 | The subsequent operations mirror the <link to="IConsole::powerUp"/>
|
---|
4244 | progress object. Because <link to="IConsole::powerUp"/> may require
|
---|
4245 | some extra sub-operations, the <link to="IProgress::operationCount"/>
|
---|
4246 | may change at the completion of operation.
|
---|
4247 |
|
---|
4248 | For details on the teleportation progress operation, see
|
---|
4249 | <link to="IConsole::powerUp"/>.
|
---|
4250 |
|
---|
4251 | The @a environment argument is a string containing definitions of
|
---|
4252 | environment variables in the following format:
|
---|
4253 | @code
|
---|
4254 | NAME[=VALUE]\n
|
---|
4255 | NAME[=VALUE]\n
|
---|
4256 | ...
|
---|
4257 | @endcode
|
---|
4258 | where <tt>\\n</tt> is the new line character. These environment
|
---|
4259 | variables will be appended to the environment of the VirtualBox server
|
---|
4260 | process. If an environment variable exists both in the server process
|
---|
4261 | and in this list, the value from this list takes precedence over the
|
---|
4262 | server's variable. If the value of the environment variable is
|
---|
4263 | omitted, this variable will be removed from the resulting environment.
|
---|
4264 | If the environment string is @c null or empty, the server environment
|
---|
4265 | is inherited by the started process as is.
|
---|
4266 |
|
---|
4267 | <result name="E_UNEXPECTED">
|
---|
4268 | Virtual machine not registered.
|
---|
4269 | </result>
|
---|
4270 | <result name="E_INVALIDARG">
|
---|
4271 | Invalid session type @a type.
|
---|
4272 | </result>
|
---|
4273 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4274 | No machine matching @a machineId found.
|
---|
4275 | </result>
|
---|
4276 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4277 | Session already open or being opened.
|
---|
4278 | </result>
|
---|
4279 | <result name="VBOX_E_IPRT_ERROR">
|
---|
4280 | Launching process for machine failed.
|
---|
4281 | </result>
|
---|
4282 | <result name="VBOX_E_VM_ERROR">
|
---|
4283 | Failed to assign machine to session.
|
---|
4284 | </result>
|
---|
4285 | </desc>
|
---|
4286 | <param name="session" type="ISession" dir="in">
|
---|
4287 | <desc>
|
---|
4288 | Client session object to which the VM process will be connected (this
|
---|
4289 | must be in "Unlocked" state).
|
---|
4290 | </desc>
|
---|
4291 | </param>
|
---|
4292 | <param name="type" type="wstring" dir="in">
|
---|
4293 | <desc>
|
---|
4294 | Front-end to use for the new VM process. The following are currently supported:
|
---|
4295 | <ul>
|
---|
4296 | <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li>
|
---|
4297 | <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li>
|
---|
4298 | <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li>
|
---|
4299 | </ul>
|
---|
4300 | </desc>
|
---|
4301 | </param>
|
---|
4302 | <param name="environment" type="wstring" dir="in">
|
---|
4303 | <desc>
|
---|
4304 | Environment to pass to the VM process.
|
---|
4305 | </desc>
|
---|
4306 | </param>
|
---|
4307 | <param name="progress" type="IProgress" dir="return">
|
---|
4308 | <desc>Progress object to track the operation completion.</desc>
|
---|
4309 | </param>
|
---|
4310 | </method>
|
---|
4311 |
|
---|
4312 | <method name="setBootOrder">
|
---|
4313 | <desc>
|
---|
4314 | Puts the given device to the specified position in
|
---|
4315 | the boot order.
|
---|
4316 |
|
---|
4317 | To indicate that no device is associated with the given position,
|
---|
4318 | <link to="DeviceType_Null"/> should be used.
|
---|
4319 |
|
---|
4320 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
4321 |
|
---|
4322 | <result name="E_INVALIDARG">
|
---|
4323 | Boot @a position out of range.
|
---|
4324 | </result>
|
---|
4325 | <result name="E_NOTIMPL">
|
---|
4326 | Booting from USB @a device currently not supported.
|
---|
4327 | </result>
|
---|
4328 |
|
---|
4329 | </desc>
|
---|
4330 | <param name="position" type="unsigned long" dir="in">
|
---|
4331 | <desc>
|
---|
4332 | Position in the boot order (@c 1 to the total number of
|
---|
4333 | devices the machine can boot from, as returned by
|
---|
4334 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4335 | </desc>
|
---|
4336 | </param>
|
---|
4337 | <param name="device" type="DeviceType" dir="in">
|
---|
4338 | <desc>
|
---|
4339 | The type of the device used to boot at the given position.
|
---|
4340 | </desc>
|
---|
4341 | </param>
|
---|
4342 | </method>
|
---|
4343 |
|
---|
4344 | <method name="getBootOrder" const="yes">
|
---|
4345 | <desc>
|
---|
4346 | Returns the device type that occupies the specified
|
---|
4347 | position in the boot order.
|
---|
4348 |
|
---|
4349 | @todo [remove?]
|
---|
4350 | If the machine can have more than one device of the returned type
|
---|
4351 | (such as hard disks), then a separate method should be used to
|
---|
4352 | retrieve the individual device that occupies the given position.
|
---|
4353 |
|
---|
4354 | If here are no devices at the given position, then
|
---|
4355 | <link to="DeviceType_Null"/> is returned.
|
---|
4356 |
|
---|
4357 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
4358 |
|
---|
4359 | <result name="E_INVALIDARG">
|
---|
4360 | Boot @a position out of range.
|
---|
4361 | </result>
|
---|
4362 |
|
---|
4363 | </desc>
|
---|
4364 | <param name="position" type="unsigned long" dir="in">
|
---|
4365 | <desc>
|
---|
4366 | Position in the boot order (@c 1 to the total number of
|
---|
4367 | devices the machine can boot from, as returned by
|
---|
4368 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4369 | </desc>
|
---|
4370 | </param>
|
---|
4371 | <param name="device" type="DeviceType" dir="return">
|
---|
4372 | <desc>
|
---|
4373 | Device at the given position.
|
---|
4374 | </desc>
|
---|
4375 | </param>
|
---|
4376 | </method>
|
---|
4377 |
|
---|
4378 | <method name="attachDevice">
|
---|
4379 | <desc>
|
---|
4380 | Attaches a device and optionally mounts a medium to the given storage
|
---|
4381 | controller (<link to="IStorageController" />, identified by @a name),
|
---|
4382 | at the indicated port and device.
|
---|
4383 |
|
---|
4384 | This method is intended for managing storage devices in general while a
|
---|
4385 | machine is powered off. It can be used to attach and detach fixed
|
---|
4386 | and removable media. The following kind of media can be attached
|
---|
4387 | to a machine:
|
---|
4388 |
|
---|
4389 | <ul>
|
---|
4390 | <li>For fixed and removable media, you can pass in a medium that was
|
---|
4391 | previously opened using <link to="IVirtualBox::openMedium" />.
|
---|
4392 | </li>
|
---|
4393 |
|
---|
4394 | <li>Only for storage devices supporting removable media (such as
|
---|
4395 | DVDs and floppies), you can also specify a null pointer to
|
---|
4396 | indicate an empty drive or one of the medium objects listed
|
---|
4397 | in the <link to="IHost::DVDDrives" /> and <link to="IHost::floppyDrives"/>
|
---|
4398 | arrays to indicate a host drive.
|
---|
4399 | For removable devices, you can also use <link to="IMachine::mountMedium"/>
|
---|
4400 | to change the media while the machine is running.
|
---|
4401 | </li>
|
---|
4402 | </ul>
|
---|
4403 |
|
---|
4404 | In a VM's default configuration of virtual machines, the secondary
|
---|
4405 | master of the IDE controller is used for a CD/DVD drive.
|
---|
4406 |
|
---|
4407 | After calling this returns successfully, a new instance of
|
---|
4408 | <link to="IMediumAttachment"/> will appear in the machine's list of medium
|
---|
4409 | attachments (see <link to="IMachine::mediumAttachments"/>).
|
---|
4410 |
|
---|
4411 | See <link to="IMedium"/> and <link to="IMediumAttachment"/> for more
|
---|
4412 | information about attaching media.
|
---|
4413 |
|
---|
4414 | The specified device slot must not have a device attached to it,
|
---|
4415 | or this method will fail.
|
---|
4416 |
|
---|
4417 | <note>
|
---|
4418 | You cannot attach a device to a newly created machine until
|
---|
4419 | this machine's settings are saved to disk using
|
---|
4420 | <link to="#saveSettings"/>.
|
---|
4421 | </note>
|
---|
4422 | <note>
|
---|
4423 | If the medium is being attached indirectly, a new differencing medium
|
---|
4424 | will implicitly be created for it and attached instead. If the
|
---|
4425 | changes made to the machine settings (including this indirect
|
---|
4426 | attachment) are later cancelled using <link to="#discardSettings"/>,
|
---|
4427 | this implicitly created differencing medium will implicitly
|
---|
4428 | be deleted.
|
---|
4429 | </note>
|
---|
4430 |
|
---|
4431 | <result name="E_INVALIDARG">
|
---|
4432 | SATA device, SATA port, IDE port or IDE slot out of range, or
|
---|
4433 | file or UUID not found.
|
---|
4434 | </result>
|
---|
4435 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4436 | Machine must be registered before media can be attached.
|
---|
4437 | </result>
|
---|
4438 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4439 | Invalid machine state.
|
---|
4440 | </result>
|
---|
4441 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4442 | A medium is already attached to this or another virtual machine.
|
---|
4443 | </result>
|
---|
4444 |
|
---|
4445 | </desc>
|
---|
4446 | <param name="name" type="wstring" dir="in">
|
---|
4447 | <desc>Name of the storage controller to attach the device to.</desc>
|
---|
4448 | </param>
|
---|
4449 | <param name="controllerPort" type="long" dir="in">
|
---|
4450 | <desc>Port to attach the device to. For an IDE controller, 0 specifies
|
---|
4451 | the primary controller and 1 specifies the secondary controller.
|
---|
4452 | For a SCSI controller, this must range from 0 to 15; for a SATA controller,
|
---|
4453 | from 0 to 29; for an SAS controller, from 0 to 7.</desc>
|
---|
4454 | </param>
|
---|
4455 | <param name="device" type="long" dir="in">
|
---|
4456 | <desc>Device slot in the given port to attach the device to. This is only
|
---|
4457 | relevant for IDE controllers, for which 0 specifies the master device and
|
---|
4458 | 1 specifies the slave device. For all other controller types, this must
|
---|
4459 | be 0.</desc>
|
---|
4460 | </param>
|
---|
4461 | <param name="type" type="DeviceType" dir="in">
|
---|
4462 | <desc>Device type of the attached device. For media opened by
|
---|
4463 | <link to="IVirtualBox::openMedium" />, this must match the device type
|
---|
4464 | specified there.</desc>
|
---|
4465 | </param>
|
---|
4466 | <param name="medium" type="IMedium" dir="in">
|
---|
4467 | <desc>Medium to mount or NULL for an empty drive.</desc>
|
---|
4468 | </param>
|
---|
4469 | </method>
|
---|
4470 |
|
---|
4471 | <method name="detachDevice">
|
---|
4472 | <desc>
|
---|
4473 | Detaches the device attached to a device slot of the specified bus.
|
---|
4474 |
|
---|
4475 | Detaching the device from the virtual machine is deferred. This means
|
---|
4476 | that the medium remains associated with the machine when this method
|
---|
4477 | returns and gets actually de-associated only after a successful
|
---|
4478 | <link to="#saveSettings"/> call. See <link to="IMedium"/>
|
---|
4479 | for more detailed information about attaching media.
|
---|
4480 |
|
---|
4481 | <note>
|
---|
4482 | You cannot detach a device from a running machine.
|
---|
4483 | </note>
|
---|
4484 | <note>
|
---|
4485 | Detaching differencing media implicitly created by <link
|
---|
4486 | to="#attachDevice"/> for the indirect attachment using this
|
---|
4487 | method will <b>not</b> implicitly delete them. The
|
---|
4488 | <link to="IMedium::deleteStorage"/> operation should be
|
---|
4489 | explicitly performed by the caller after the medium is successfully
|
---|
4490 | detached and the settings are saved with
|
---|
4491 | <link to="#saveSettings"/>, if it is the desired action.
|
---|
4492 | </note>
|
---|
4493 |
|
---|
4494 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4495 | Attempt to detach medium from a running virtual machine.
|
---|
4496 | </result>
|
---|
4497 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4498 | No medium attached to given slot/bus.
|
---|
4499 | </result>
|
---|
4500 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4501 | Medium format does not support storage deletion.
|
---|
4502 | </result>
|
---|
4503 |
|
---|
4504 | </desc>
|
---|
4505 | <param name="name" type="wstring" dir="in">
|
---|
4506 | <desc>Name of the storage controller to detach the medium from.</desc>
|
---|
4507 | </param>
|
---|
4508 | <param name="controllerPort" type="long" dir="in">
|
---|
4509 | <desc>Port number to detach the medium from.</desc>
|
---|
4510 | </param>
|
---|
4511 | <param name="device" type="long" dir="in">
|
---|
4512 | <desc>Device slot number to detach the medium from.</desc>
|
---|
4513 | </param>
|
---|
4514 | </method>
|
---|
4515 |
|
---|
4516 | <method name="passthroughDevice">
|
---|
4517 | <desc>
|
---|
4518 | Sets the passthrough mode of an existing DVD device. Changing the
|
---|
4519 | setting while the VM is running is forbidden. The setting is only used
|
---|
4520 | if at VM start the device is configured as a host DVD drive, in all
|
---|
4521 | other cases it is ignored. The device must already exist; see
|
---|
4522 | <link to="IMachine::attachDevice"/> for how to attach a new device.
|
---|
4523 |
|
---|
4524 | The @a controllerPort and @a device parameters specify the device slot and
|
---|
4525 | have have the same meaning as with <link to="IMachine::attachDevice" />.
|
---|
4526 |
|
---|
4527 | <result name="E_INVALIDARG">
|
---|
4528 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4529 | </result>
|
---|
4530 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4531 | Attempt to modify an unregistered virtual machine.
|
---|
4532 | </result>
|
---|
4533 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4534 | Invalid machine state.
|
---|
4535 | </result>
|
---|
4536 |
|
---|
4537 | </desc>
|
---|
4538 | <param name="name" type="wstring" dir="in">
|
---|
4539 | <desc>Name of the storage controller.</desc>
|
---|
4540 | </param>
|
---|
4541 | <param name="controllerPort" type="long" dir="in">
|
---|
4542 | <desc>Storage controller port.</desc>
|
---|
4543 | </param>
|
---|
4544 | <param name="device" type="long" dir="in">
|
---|
4545 | <desc>Device slot in the given port.</desc>
|
---|
4546 | </param>
|
---|
4547 | <param name="passthrough" type="boolean" dir="in">
|
---|
4548 | <desc>New value for the passthrough setting.</desc>
|
---|
4549 | </param>
|
---|
4550 | </method>
|
---|
4551 |
|
---|
4552 | <method name="setBandwidthGroupForDevice">
|
---|
4553 | <desc>
|
---|
4554 | Sets the passthrough mode of an existing DVD device. Changing the
|
---|
4555 | setting while the VM is running is forbidden. The setting is only used
|
---|
4556 | if at VM start the device is configured as a host DVD drive, in all
|
---|
4557 | other cases it is ignored. The device must already exist; see
|
---|
4558 | <link to="IMachine::attachDevice"/> for how to attach a new device.
|
---|
4559 |
|
---|
4560 | The @a controllerPort and @a device parameters specify the device slot and
|
---|
4561 | have have the same meaning as with <link to="IMachine::attachDevice" />.
|
---|
4562 |
|
---|
4563 | <result name="E_INVALIDARG">
|
---|
4564 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4565 | </result>
|
---|
4566 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4567 | Attempt to modify an unregistered virtual machine.
|
---|
4568 | </result>
|
---|
4569 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4570 | Invalid machine state.
|
---|
4571 | </result>
|
---|
4572 |
|
---|
4573 | </desc>
|
---|
4574 | <param name="name" type="wstring" dir="in">
|
---|
4575 | <desc>Name of the storage controller.</desc>
|
---|
4576 | </param>
|
---|
4577 | <param name="controllerPort" type="long" dir="in">
|
---|
4578 | <desc>Storage controller port.</desc>
|
---|
4579 | </param>
|
---|
4580 | <param name="device" type="long" dir="in">
|
---|
4581 | <desc>Device slot in the given port.</desc>
|
---|
4582 | </param>
|
---|
4583 | <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
|
---|
4584 | <desc>New value for the bandwidth group or NULL for no group.</desc>
|
---|
4585 | </param>
|
---|
4586 | </method>
|
---|
4587 |
|
---|
4588 | <method name="mountMedium">
|
---|
4589 | <desc>
|
---|
4590 | Mounts a medium (<link to="IMedium" />, identified
|
---|
4591 | by the given UUID @a id) to the given storage controller
|
---|
4592 | (<link to="IStorageController" />, identified by @a name),
|
---|
4593 | at the indicated port and device. The device must already exist;
|
---|
4594 | see <link to="IMachine::attachDevice"/> for how to attach a new device.
|
---|
4595 |
|
---|
4596 | This method is intended only for managing removable media, where the
|
---|
4597 | device is fixed but media is changeable at runtime (such as DVDs
|
---|
4598 | and floppies). It cannot be used for fixed media such as hard disks.
|
---|
4599 |
|
---|
4600 | The @a controllerPort and @a device parameters specify the device slot and
|
---|
4601 | have have the same meaning as with <link to="IMachine::attachDevice" />.
|
---|
4602 |
|
---|
4603 | The specified device slot can have a medium mounted, which will be
|
---|
4604 | unmounted first. Specifying a zero UUID (or an empty string) for
|
---|
4605 | @a medium does just an unmount.
|
---|
4606 |
|
---|
4607 | See <link to="IMedium"/> for more detailed information about
|
---|
4608 | attaching media.
|
---|
4609 |
|
---|
4610 | <result name="E_INVALIDARG">
|
---|
4611 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4612 | </result>
|
---|
4613 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4614 | Attempt to attach medium to an unregistered virtual machine.
|
---|
4615 | </result>
|
---|
4616 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4617 | Invalid machine state.
|
---|
4618 | </result>
|
---|
4619 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4620 | Medium already attached to this or another virtual machine.
|
---|
4621 | </result>
|
---|
4622 |
|
---|
4623 | </desc>
|
---|
4624 | <param name="name" type="wstring" dir="in">
|
---|
4625 | <desc>Name of the storage controller to attach the medium to.</desc>
|
---|
4626 | </param>
|
---|
4627 | <param name="controllerPort" type="long" dir="in">
|
---|
4628 | <desc>Port to attach the medium to.</desc>
|
---|
4629 | </param>
|
---|
4630 | <param name="device" type="long" dir="in">
|
---|
4631 | <desc>Device slot in the given port to attach the medium to.</desc>
|
---|
4632 | </param>
|
---|
4633 | <param name="medium" type="IMedium" dir="in">
|
---|
4634 | <desc>Medium to mount or NULL for an empty drive.</desc>
|
---|
4635 | </param>
|
---|
4636 | <param name="force" type="boolean" dir="in">
|
---|
4637 | <desc>Allows to force unmount/mount of a medium which is locked by
|
---|
4638 | the device slot in the given port to attach the medium to.</desc>
|
---|
4639 | </param>
|
---|
4640 | </method>
|
---|
4641 |
|
---|
4642 | <method name="getMedium" const="yes">
|
---|
4643 | <desc>
|
---|
4644 | Returns the virtual medium attached to a device slot of the specified
|
---|
4645 | bus.
|
---|
4646 |
|
---|
4647 | Note that if the medium was indirectly attached by
|
---|
4648 | <link to="#mountMedium"/> to the given device slot then this
|
---|
4649 | method will return not the same object as passed to the
|
---|
4650 | <link to="#mountMedium"/> call. See <link to="IMedium"/> for
|
---|
4651 | more detailed information about mounting a medium.
|
---|
4652 |
|
---|
4653 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4654 | No medium attached to given slot/bus.
|
---|
4655 | </result>
|
---|
4656 |
|
---|
4657 | </desc>
|
---|
4658 | <param name="name" type="wstring" dir="in">
|
---|
4659 | <desc>Name of the storage controller the medium is attached to.</desc>
|
---|
4660 | </param>
|
---|
4661 | <param name="controllerPort" type="long" dir="in">
|
---|
4662 | <desc>Port to query.</desc>
|
---|
4663 | </param>
|
---|
4664 | <param name="device" type="long" dir="in">
|
---|
4665 | <desc>Device slot in the given port to query.</desc>
|
---|
4666 | </param>
|
---|
4667 | <param name="medium" type="IMedium" dir="return">
|
---|
4668 | <desc>Attached medium object.</desc>
|
---|
4669 | </param>
|
---|
4670 | </method>
|
---|
4671 |
|
---|
4672 | <method name="getMediumAttachmentsOfController" const="yes">
|
---|
4673 | <desc>
|
---|
4674 | Returns an array of medium attachments which are attached to the
|
---|
4675 | the controller with the given name.
|
---|
4676 |
|
---|
4677 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4678 | A storage controller with given name doesn't exist.
|
---|
4679 | </result>
|
---|
4680 | </desc>
|
---|
4681 | <param name="name" type="wstring" dir="in"/>
|
---|
4682 | <param name="mediumAttachments" type="IMediumAttachment" safearray="yes" dir="return"/>
|
---|
4683 | </method>
|
---|
4684 |
|
---|
4685 | <method name="getMediumAttachment" const="yes">
|
---|
4686 | <desc>
|
---|
4687 | Returns a medium attachment which corresponds to the controller with
|
---|
4688 | the given name, on the given port and device slot.
|
---|
4689 |
|
---|
4690 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4691 | No attachment exists for the given controller/port/device combination.
|
---|
4692 | </result>
|
---|
4693 | </desc>
|
---|
4694 | <param name="name" type="wstring" dir="in"/>
|
---|
4695 | <param name="controllerPort" type="long" dir="in"/>
|
---|
4696 | <param name="device" type="long" dir="in"/>
|
---|
4697 | <param name="attachment" type="IMediumAttachment" dir="return"/>
|
---|
4698 | </method>
|
---|
4699 |
|
---|
4700 | <method name="attachHostPciDevice">
|
---|
4701 | <desc>
|
---|
4702 | Attaches host PCI device with the given (host) PCI address to the
|
---|
4703 | PCI bus of the virtual machine. Please note, that this operation
|
---|
4704 | is two phase, as real attachment will happen when VM will start,
|
---|
4705 | and most information will be delivered as IHostPciDevicePlugEvent
|
---|
4706 | on IVirtualBox event source.
|
---|
4707 | <note>
|
---|
4708 | Not yet implemented.
|
---|
4709 | </note>
|
---|
4710 |
|
---|
4711 | <see>IHostPciDevicePlugEvent</see>
|
---|
4712 |
|
---|
4713 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4714 | Virtual machine state is not stopped (PCI hotplug not yet implemented).
|
---|
4715 | </result>
|
---|
4716 | <result name="VBOX_E_PDM_ERROR">
|
---|
4717 | Virtual machine does not have a PCI controller allowing attachment of physical devices.
|
---|
4718 | </result>
|
---|
4719 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4720 | Hardware or host OS doesn't allow PCI device passthrought.
|
---|
4721 | </result>
|
---|
4722 | </desc>
|
---|
4723 | <param name="hostAddress" type="long" dir="in">
|
---|
4724 | <desc>Address of the host PCI device.</desc>
|
---|
4725 | </param>
|
---|
4726 | <param name="desiredGuestAddress" type="long" dir="in">
|
---|
4727 | <desc>Desired position of this device on guest PCI bus.</desc>
|
---|
4728 | </param>
|
---|
4729 | <param name="tryToUnbind" type="boolean" dir="in">
|
---|
4730 | <desc>If VMM shall try to unbind existing drivers from the
|
---|
4731 | device before attaching it to the guest.</desc>
|
---|
4732 | </param>
|
---|
4733 | </method>
|
---|
4734 |
|
---|
4735 | <method name="detachHostPciDevice">
|
---|
4736 | <desc>
|
---|
4737 | Detach host PCI device from the virtual machine.
|
---|
4738 | Also HostPciDevicePlugEvent on IVirtualBox event source
|
---|
4739 | will be delivered. As currently we don't support hot device
|
---|
4740 | unplug, IHostPciDevicePlugEvent event is delivered immediately.
|
---|
4741 |
|
---|
4742 | <note>
|
---|
4743 | Not yet implemented.
|
---|
4744 | </note>
|
---|
4745 |
|
---|
4746 | <see>IHostPciDevicePlugEvent</see>
|
---|
4747 |
|
---|
4748 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4749 | Virtual machine state is not stopped (PCI hotplug not yet implemented).
|
---|
4750 | </result>
|
---|
4751 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4752 | This host device is not attached to this machine.
|
---|
4753 | </result>
|
---|
4754 | <result name="VBOX_E_PDM_ERROR">
|
---|
4755 | Virtual machine does not have a PCI controller allowing attachment of physical devices.
|
---|
4756 | </result>
|
---|
4757 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4758 | Hardware or host OS doesn't allow PCI device passthrought.
|
---|
4759 | </result>
|
---|
4760 | </desc>
|
---|
4761 | <param name="hostAddress" type="long" dir="in">
|
---|
4762 | <desc>Address of the host PCI device.</desc>
|
---|
4763 | </param>
|
---|
4764 | </method>
|
---|
4765 |
|
---|
4766 | <method name="getNetworkAdapter" const="yes">
|
---|
4767 | <desc>
|
---|
4768 | Returns the network adapter associated with the given slot.
|
---|
4769 | Slots are numbered sequentially, starting with zero. The total
|
---|
4770 | number of adapters per machine is defined by the
|
---|
4771 | <link to="ISystemProperties::getMaxNetworkAdapters"/> property,
|
---|
4772 | so the maximum slot number is one less than that property's value.
|
---|
4773 |
|
---|
4774 | <result name="E_INVALIDARG">
|
---|
4775 | Invalid @a slot number.
|
---|
4776 | </result>
|
---|
4777 |
|
---|
4778 | </desc>
|
---|
4779 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4780 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
4781 | </method>
|
---|
4782 |
|
---|
4783 | <method name="addStorageController">
|
---|
4784 | <desc>
|
---|
4785 | Adds a new storage controller (SCSI, SAS or SATA controller) to the
|
---|
4786 | machine and returns it as an instance of
|
---|
4787 | <link to="IStorageController" />.
|
---|
4788 |
|
---|
4789 | @a name identifies the controller for subsequent calls such as
|
---|
4790 | <link to="#getStorageControllerByName" />,
|
---|
4791 | <link to="#getStorageControllerByInstance" />,
|
---|
4792 | <link to="#removeStorageController" />,
|
---|
4793 | <link to="#attachDevice" /> or <link to="#mountMedium" />.
|
---|
4794 |
|
---|
4795 | After the controller has been added, you can set its exact
|
---|
4796 | type by setting the <link to="IStorageController::controllerType" />.
|
---|
4797 |
|
---|
4798 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4799 | A storage controller with given name exists already.
|
---|
4800 | </result>
|
---|
4801 | <result name="E_INVALIDARG">
|
---|
4802 | Invalid @a controllerType.
|
---|
4803 | </result>
|
---|
4804 | </desc>
|
---|
4805 | <param name="name" type="wstring" dir="in"/>
|
---|
4806 | <param name="connectionType" type="StorageBus" dir="in"/>
|
---|
4807 | <param name="controller" type="IStorageController" dir="return"/>
|
---|
4808 | </method>
|
---|
4809 |
|
---|
4810 | <method name="getStorageControllerByName" const="yes">
|
---|
4811 | <desc>
|
---|
4812 | Returns a storage controller with the given name.
|
---|
4813 |
|
---|
4814 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4815 | A storage controller with given name doesn't exist.
|
---|
4816 | </result>
|
---|
4817 | </desc>
|
---|
4818 | <param name="name" type="wstring" dir="in"/>
|
---|
4819 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
4820 | </method>
|
---|
4821 |
|
---|
4822 | <method name="getStorageControllerByInstance" const="yes">
|
---|
4823 | <desc>
|
---|
4824 | Returns a storage controller with the given instance number.
|
---|
4825 |
|
---|
4826 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4827 | A storage controller with given instance number doesn't exist.
|
---|
4828 | </result>
|
---|
4829 | </desc>
|
---|
4830 | <param name="instance" type="unsigned long" dir="in"/>
|
---|
4831 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
4832 | </method>
|
---|
4833 |
|
---|
4834 | <method name="removeStorageController">
|
---|
4835 | <desc>
|
---|
4836 | Removes a storage controller from the machine.
|
---|
4837 |
|
---|
4838 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4839 | A storage controller with given name doesn't exist.
|
---|
4840 | </result>
|
---|
4841 | </desc>
|
---|
4842 | <param name="name" type="wstring" dir="in"/>
|
---|
4843 | </method>
|
---|
4844 |
|
---|
4845 | <method name="setStorageControllerBootable">
|
---|
4846 | <desc>
|
---|
4847 | Sets the bootable flag of the storage controller with the given name.
|
---|
4848 |
|
---|
4849 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4850 | A storage controller with given name doesn't exist.
|
---|
4851 | </result>
|
---|
4852 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4853 | Another storage controller is marked as bootable already.
|
---|
4854 | </result>
|
---|
4855 | </desc>
|
---|
4856 | <param name="name" type="wstring" dir="in"/>
|
---|
4857 | <param name="bootable" type="boolean" dir="in"/>
|
---|
4858 | </method>
|
---|
4859 |
|
---|
4860 | <method name="getSerialPort" const="yes">
|
---|
4861 | <desc>
|
---|
4862 | Returns the serial port associated with the given slot.
|
---|
4863 | Slots are numbered sequentially, starting with zero. The total
|
---|
4864 | number of serial ports per machine is defined by the
|
---|
4865 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
4866 | so the maximum slot number is one less than that property's value.
|
---|
4867 |
|
---|
4868 | <result name="E_INVALIDARG">
|
---|
4869 | Invalid @a slot number.
|
---|
4870 | </result>
|
---|
4871 |
|
---|
4872 | </desc>
|
---|
4873 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4874 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
4875 | </method>
|
---|
4876 |
|
---|
4877 | <method name="getParallelPort" const="yes">
|
---|
4878 | <desc>
|
---|
4879 | Returns the parallel port associated with the given slot.
|
---|
4880 | Slots are numbered sequentially, starting with zero. The total
|
---|
4881 | number of parallel ports per machine is defined by the
|
---|
4882 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
4883 | so the maximum slot number is one less than that property's value.
|
---|
4884 |
|
---|
4885 | <result name="E_INVALIDARG">
|
---|
4886 | Invalid @a slot number.
|
---|
4887 | </result>
|
---|
4888 |
|
---|
4889 | </desc>
|
---|
4890 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4891 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
4892 | </method>
|
---|
4893 |
|
---|
4894 | <method name="getExtraDataKeys">
|
---|
4895 | <desc>
|
---|
4896 | Returns an array representing the machine-specific extra data keys
|
---|
4897 | which currently have values defined.
|
---|
4898 | </desc>
|
---|
4899 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
4900 | <desc>Array of extra data keys.</desc>
|
---|
4901 | </param>
|
---|
4902 | </method>
|
---|
4903 |
|
---|
4904 | <method name="getExtraData">
|
---|
4905 | <desc>
|
---|
4906 | Returns associated machine-specific extra data.
|
---|
4907 |
|
---|
4908 | If the requested data @a key does not exist, this function will
|
---|
4909 | succeed and return an empty string in the @a value argument.
|
---|
4910 |
|
---|
4911 | <result name="VBOX_E_FILE_ERROR">
|
---|
4912 | Settings file not accessible.
|
---|
4913 | </result>
|
---|
4914 | <result name="VBOX_E_XML_ERROR">
|
---|
4915 | Could not parse the settings file.
|
---|
4916 | </result>
|
---|
4917 |
|
---|
4918 | </desc>
|
---|
4919 | <param name="key" type="wstring" dir="in">
|
---|
4920 | <desc>Name of the data key to get.</desc>
|
---|
4921 | </param>
|
---|
4922 | <param name="value" type="wstring" dir="return">
|
---|
4923 | <desc>Value of the requested data key.</desc>
|
---|
4924 | </param>
|
---|
4925 | </method>
|
---|
4926 |
|
---|
4927 | <method name="setExtraData">
|
---|
4928 | <desc>
|
---|
4929 | Sets associated machine-specific extra data.
|
---|
4930 |
|
---|
4931 | If you pass @c null or an empty string as a key @a value, the given
|
---|
4932 | @a key will be deleted.
|
---|
4933 |
|
---|
4934 | <note>
|
---|
4935 | Before performing the actual data change, this method will ask all
|
---|
4936 | registered listeners using the
|
---|
4937 | <link to="IExtraDataCanChangeEvent"/>
|
---|
4938 | notification for a permission. If one of the listeners refuses the
|
---|
4939 | new value, the change will not be performed.
|
---|
4940 | </note>
|
---|
4941 | <note>
|
---|
4942 | On success, the
|
---|
4943 | <link to="IExtraDataChangedEvent"/> notification
|
---|
4944 | is called to inform all registered listeners about a successful data
|
---|
4945 | change.
|
---|
4946 | </note>
|
---|
4947 | <note>
|
---|
4948 | This method can be called outside the machine session and therefore
|
---|
4949 | it's a caller's responsibility to handle possible race conditions
|
---|
4950 | when several clients change the same key at the same time.
|
---|
4951 | </note>
|
---|
4952 |
|
---|
4953 | <result name="VBOX_E_FILE_ERROR">
|
---|
4954 | Settings file not accessible.
|
---|
4955 | </result>
|
---|
4956 | <result name="VBOX_E_XML_ERROR">
|
---|
4957 | Could not parse the settings file.
|
---|
4958 | </result>
|
---|
4959 |
|
---|
4960 | </desc>
|
---|
4961 | <param name="key" type="wstring" dir="in">
|
---|
4962 | <desc>Name of the data key to set.</desc>
|
---|
4963 | </param>
|
---|
4964 | <param name="value" type="wstring" dir="in">
|
---|
4965 | <desc>Value to assign to the key.</desc>
|
---|
4966 | </param>
|
---|
4967 | </method>
|
---|
4968 |
|
---|
4969 | <method name="getCPUProperty" const="yes">
|
---|
4970 | <desc>
|
---|
4971 | Returns the virtual CPU boolean value of the specified property.
|
---|
4972 |
|
---|
4973 | <result name="E_INVALIDARG">
|
---|
4974 | Invalid property.
|
---|
4975 | </result>
|
---|
4976 |
|
---|
4977 | </desc>
|
---|
4978 | <param name="property" type="CPUPropertyType" dir="in">
|
---|
4979 | <desc>
|
---|
4980 | Property type to query.
|
---|
4981 | </desc>
|
---|
4982 | </param>
|
---|
4983 | <param name="value" type="boolean" dir="return">
|
---|
4984 | <desc>
|
---|
4985 | Property value.
|
---|
4986 | </desc>
|
---|
4987 | </param>
|
---|
4988 | </method>
|
---|
4989 |
|
---|
4990 | <method name="setCPUProperty">
|
---|
4991 | <desc>
|
---|
4992 | Sets the virtual CPU boolean value of the specified property.
|
---|
4993 |
|
---|
4994 | <result name="E_INVALIDARG">
|
---|
4995 | Invalid property.
|
---|
4996 | </result>
|
---|
4997 |
|
---|
4998 | </desc>
|
---|
4999 | <param name="property" type="CPUPropertyType" dir="in">
|
---|
5000 | <desc>
|
---|
5001 | Property type to query.
|
---|
5002 | </desc>
|
---|
5003 | </param>
|
---|
5004 | <param name="value" type="boolean" dir="in">
|
---|
5005 | <desc>
|
---|
5006 | Property value.
|
---|
5007 | </desc>
|
---|
5008 | </param>
|
---|
5009 | </method>
|
---|
5010 |
|
---|
5011 | <method name="getCPUIDLeaf" const="yes">
|
---|
5012 | <desc>
|
---|
5013 | Returns the virtual CPU cpuid information for the specified leaf.
|
---|
5014 |
|
---|
5015 | Currently supported index values for cpuid:
|
---|
5016 | Standard CPUID leafs: 0 - 0xA
|
---|
5017 | Extended CPUID leafs: 0x80000000 - 0x8000000A
|
---|
5018 |
|
---|
5019 | See the Intel and AMD programmer's manuals for detailed information
|
---|
5020 | about the cpuid instruction and its leafs.
|
---|
5021 | <result name="E_INVALIDARG">
|
---|
5022 | Invalid id.
|
---|
5023 | </result>
|
---|
5024 |
|
---|
5025 | </desc>
|
---|
5026 | <param name="id" type="unsigned long" dir="in">
|
---|
5027 | <desc>
|
---|
5028 | CPUID leaf index.
|
---|
5029 | </desc>
|
---|
5030 | </param>
|
---|
5031 | <param name="valEax" type="unsigned long" dir="out">
|
---|
5032 | <desc>
|
---|
5033 | CPUID leaf value for register eax.
|
---|
5034 | </desc>
|
---|
5035 | </param>
|
---|
5036 | <param name="valEbx" type="unsigned long" dir="out">
|
---|
5037 | <desc>
|
---|
5038 | CPUID leaf value for register ebx.
|
---|
5039 | </desc>
|
---|
5040 | </param>
|
---|
5041 | <param name="valEcx" type="unsigned long" dir="out">
|
---|
5042 | <desc>
|
---|
5043 | CPUID leaf value for register ecx.
|
---|
5044 | </desc>
|
---|
5045 | </param>
|
---|
5046 | <param name="valEdx" type="unsigned long" dir="out">
|
---|
5047 | <desc>
|
---|
5048 | CPUID leaf value for register edx.
|
---|
5049 | </desc>
|
---|
5050 | </param>
|
---|
5051 | </method>
|
---|
5052 |
|
---|
5053 | <method name="setCPUIDLeaf">
|
---|
5054 | <desc>
|
---|
5055 | Sets the virtual CPU cpuid information for the specified leaf. Note that these values
|
---|
5056 | are not passed unmodified. VirtualBox clears features that it doesn't support.
|
---|
5057 |
|
---|
5058 | Currently supported index values for cpuid:
|
---|
5059 | Standard CPUID leafs: 0 - 0xA
|
---|
5060 | Extended CPUID leafs: 0x80000000 - 0x8000000A
|
---|
5061 |
|
---|
5062 | See the Intel and AMD programmer's manuals for detailed information
|
---|
5063 | about the cpuid instruction and its leafs.
|
---|
5064 |
|
---|
5065 | Do not use this method unless you know exactly what you're doing. Misuse can lead to
|
---|
5066 | random crashes inside VMs.
|
---|
5067 | <result name="E_INVALIDARG">
|
---|
5068 | Invalid id.
|
---|
5069 | </result>
|
---|
5070 |
|
---|
5071 | </desc>
|
---|
5072 | <param name="id" type="unsigned long" dir="in">
|
---|
5073 | <desc>
|
---|
5074 | CPUID leaf index.
|
---|
5075 | </desc>
|
---|
5076 | </param>
|
---|
5077 | <param name="valEax" type="unsigned long" dir="in">
|
---|
5078 | <desc>
|
---|
5079 | CPUID leaf value for register eax.
|
---|
5080 | </desc>
|
---|
5081 | </param>
|
---|
5082 | <param name="valEbx" type="unsigned long" dir="in">
|
---|
5083 | <desc>
|
---|
5084 | CPUID leaf value for register ebx.
|
---|
5085 | </desc>
|
---|
5086 | </param>
|
---|
5087 | <param name="valEcx" type="unsigned long" dir="in">
|
---|
5088 | <desc>
|
---|
5089 | CPUID leaf value for register ecx.
|
---|
5090 | </desc>
|
---|
5091 | </param>
|
---|
5092 | <param name="valEdx" type="unsigned long" dir="in">
|
---|
5093 | <desc>
|
---|
5094 | CPUID leaf value for register edx.
|
---|
5095 | </desc>
|
---|
5096 | </param>
|
---|
5097 | </method>
|
---|
5098 |
|
---|
5099 | <method name="removeCPUIDLeaf">
|
---|
5100 | <desc>
|
---|
5101 | Removes the virtual CPU cpuid leaf for the specified index
|
---|
5102 |
|
---|
5103 | <result name="E_INVALIDARG">
|
---|
5104 | Invalid id.
|
---|
5105 | </result>
|
---|
5106 |
|
---|
5107 | </desc>
|
---|
5108 | <param name="id" type="unsigned long" dir="in">
|
---|
5109 | <desc>
|
---|
5110 | CPUID leaf index.
|
---|
5111 | </desc>
|
---|
5112 | </param>
|
---|
5113 | </method>
|
---|
5114 |
|
---|
5115 | <method name="removeAllCPUIDLeaves">
|
---|
5116 | <desc>
|
---|
5117 | Removes all the virtual CPU cpuid leaves
|
---|
5118 | </desc>
|
---|
5119 | </method>
|
---|
5120 |
|
---|
5121 | <method name="getHWVirtExProperty" const="yes">
|
---|
5122 | <desc>
|
---|
5123 | Returns the value of the specified hardware virtualization boolean property.
|
---|
5124 |
|
---|
5125 | <result name="E_INVALIDARG">
|
---|
5126 | Invalid property.
|
---|
5127 | </result>
|
---|
5128 |
|
---|
5129 | </desc>
|
---|
5130 | <param name="property" type="HWVirtExPropertyType" dir="in">
|
---|
5131 | <desc>
|
---|
5132 | Property type to query.
|
---|
5133 | </desc>
|
---|
5134 | </param>
|
---|
5135 | <param name="value" type="boolean" dir="return">
|
---|
5136 | <desc>
|
---|
5137 | Property value.
|
---|
5138 | </desc>
|
---|
5139 | </param>
|
---|
5140 | </method>
|
---|
5141 |
|
---|
5142 | <method name="setHWVirtExProperty">
|
---|
5143 | <desc>
|
---|
5144 | Sets a new value for the specified hardware virtualization boolean property.
|
---|
5145 |
|
---|
5146 | <result name="E_INVALIDARG">
|
---|
5147 | Invalid property.
|
---|
5148 | </result>
|
---|
5149 |
|
---|
5150 | </desc>
|
---|
5151 | <param name="property" type="HWVirtExPropertyType" dir="in">
|
---|
5152 | <desc>
|
---|
5153 | Property type to set.
|
---|
5154 | </desc>
|
---|
5155 | </param>
|
---|
5156 | <param name="value" type="boolean" dir="in">
|
---|
5157 | <desc>
|
---|
5158 | New property value.
|
---|
5159 | </desc>
|
---|
5160 | </param>
|
---|
5161 | </method>
|
---|
5162 |
|
---|
5163 | <method name="saveSettings">
|
---|
5164 | <desc>
|
---|
5165 | Saves any changes to machine settings made since the session
|
---|
5166 | has been opened or a new machine has been created, or since the
|
---|
5167 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
5168 | For registered machines, new settings become visible to all
|
---|
5169 | other VirtualBox clients after successful invocation of this
|
---|
5170 | method.
|
---|
5171 | <note>
|
---|
5172 | The method sends <link to="IMachineDataChangedEvent"/>
|
---|
5173 | notification event after the configuration has been successfully
|
---|
5174 | saved (only for registered machines).
|
---|
5175 | </note>
|
---|
5176 | <note>
|
---|
5177 | Calling this method is only valid on instances returned
|
---|
5178 | by <link to="ISession::machine"/> and on new machines
|
---|
5179 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
5180 | yet registered, or on unregistered machines after calling
|
---|
5181 | <link to="IMachine::unregister"/>.
|
---|
5182 | </note>
|
---|
5183 |
|
---|
5184 | <result name="VBOX_E_FILE_ERROR">
|
---|
5185 | Settings file not accessible.
|
---|
5186 | </result>
|
---|
5187 | <result name="VBOX_E_XML_ERROR">
|
---|
5188 | Could not parse the settings file.
|
---|
5189 | </result>
|
---|
5190 | <result name="E_ACCESSDENIED">
|
---|
5191 | Modification request refused.
|
---|
5192 | </result>
|
---|
5193 |
|
---|
5194 | </desc>
|
---|
5195 | </method>
|
---|
5196 |
|
---|
5197 | <method name="discardSettings">
|
---|
5198 | <desc>
|
---|
5199 | Discards any changes to the machine settings made since the session
|
---|
5200 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
5201 | or <link to="#discardSettings"/>.
|
---|
5202 | <note>
|
---|
5203 | Calling this method is only valid on instances returned
|
---|
5204 | by <link to="ISession::machine"/> and on new machines
|
---|
5205 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
5206 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
5207 | yet registered, or on unregistered machines after calling
|
---|
5208 | <link to="IMachine::unregister"/>.
|
---|
5209 | </note>
|
---|
5210 |
|
---|
5211 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5212 | Virtual machine is not mutable.
|
---|
5213 | </result>
|
---|
5214 |
|
---|
5215 | </desc>
|
---|
5216 | </method>
|
---|
5217 |
|
---|
5218 | <method name="unregister">
|
---|
5219 | <desc>
|
---|
5220 | Unregisters a machine previously registered with
|
---|
5221 | <link to="IVirtualBox::registerMachine"/> and optionally do additional
|
---|
5222 | cleanup before the machine is unregistered.
|
---|
5223 |
|
---|
5224 | This method does not delete any files. It only changes the machine configuration and
|
---|
5225 | the list of registered machines in the VirtualBox object. To delete the files which
|
---|
5226 | belonged to the machine, including the XML file of the machine itself, call
|
---|
5227 | <link to="#delete"/>, optionally with the array of IMedium objects which was returned
|
---|
5228 | from this method.
|
---|
5229 |
|
---|
5230 | How thoroughly this method cleans up the machine configuration before unregistering
|
---|
5231 | the machine depends on the @a cleanupMode argument.
|
---|
5232 |
|
---|
5233 | <ul>
|
---|
5234 | <li>With "UnregisterOnly", the machine will only be unregistered, but no additional
|
---|
5235 | cleanup will be performed. The call will fail if the machine is in "Saved" state
|
---|
5236 | or has any snapshots or any media attached (see <link to="IMediumAttachment" />).
|
---|
5237 | It is the responsibility of the caller to delete all such configuration in this mode.
|
---|
5238 | In this mode, the API behaves like the former @c IVirtualBox::unregisterMachine() API
|
---|
5239 | which it replaces.</li>
|
---|
5240 | <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
|
---|
5241 | state or if it has snapshots or media attached. All media attached to the current machine
|
---|
5242 | state or in snapshots will be detached. No medium objects will be returned;
|
---|
5243 | all of the machine's media will remain open.</li>
|
---|
5244 | <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
|
---|
5245 | except that all the hard disk medium objects which were detached from the machine will
|
---|
5246 | be returned as an array. This allows for quickly passing them to the <link to="#delete" />
|
---|
5247 | API for closing and deletion.</li>
|
---|
5248 | <li>With "Full", the call will behave like with "DetachAllReturnHardDisksOnly", except
|
---|
5249 | that all media will be returned in the array, including removable media like DVDs and
|
---|
5250 | floppies. This might be useful if the user wants to inspect in detail which media were
|
---|
5251 | attached to the machine. Be careful when passing the media array to <link to="#delete" />
|
---|
5252 | in that case because users will typically want to preserve ISO and RAW image files.</li>
|
---|
5253 | </ul>
|
---|
5254 |
|
---|
5255 | A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
|
---|
5256 | resulting IMedium array to <link to="#delete"/>. This way, the machine is completely
|
---|
5257 | deleted with all its saved states and hard disk images, but images for removable
|
---|
5258 | drives (such as ISO and RAW files) will remain on disk.
|
---|
5259 |
|
---|
5260 | This API does not verify whether the media files returned in the array are still
|
---|
5261 | attached to other machines (i.e. shared between several machines). If such a shared
|
---|
5262 | image is passed to <link to="#delete" /> however, closing the image will fail there
|
---|
5263 | and the image will be silently skipped.
|
---|
5264 |
|
---|
5265 | This API may, however, move media from this machine's media registry to other media
|
---|
5266 | registries (see <link to="IMedium" /> for details on media registries). For machines
|
---|
5267 | created with VirtualBox 4.0 or later, if media from this machine's media registry
|
---|
5268 | are also attached to another machine (shared attachments), each such medium will be
|
---|
5269 | moved to another machine's registry. This is because without this machine's media
|
---|
5270 | registry, the other machine cannot find its media any more and would become inaccessible.
|
---|
5271 |
|
---|
5272 | This API implicitly calls <link to="#saveSettings"/> to save all current machine settings
|
---|
5273 | before unregistering it. It may also silently call saveSettings() on other machines
|
---|
5274 | if media are moved to other machines' media registries.
|
---|
5275 |
|
---|
5276 | After successful method invocation, the <link to="IMachineRegisteredEvent"/> event
|
---|
5277 | is fired.
|
---|
5278 |
|
---|
5279 | The call will fail if the machine is currently locked (see <link to="ISession" />).
|
---|
5280 |
|
---|
5281 | <note>
|
---|
5282 | If the given machine is inaccessible (see <link to="#accessible"/>), it
|
---|
5283 | will be unregistered and fully uninitialized right afterwards. As a result,
|
---|
5284 | the returned machine object will be unusable and an attempt to call
|
---|
5285 | <b>any</b> method will return the "Object not ready" error.
|
---|
5286 | </note>
|
---|
5287 |
|
---|
5288 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5289 | Machine is currently locked for a session.
|
---|
5290 | </result>
|
---|
5291 | </desc>
|
---|
5292 |
|
---|
5293 | <param name="cleanupMode" type="CleanupMode" dir="in">
|
---|
5294 | <desc>How to clean up after the machine has been unregistered.</desc>
|
---|
5295 | </param>
|
---|
5296 | <param name="aMedia" type="IMedium" safearray="yes" dir="return">
|
---|
5297 | <desc>List of media detached from the machine, depending on the @a cleanupMode parameter.</desc>
|
---|
5298 | </param>
|
---|
5299 | </method>
|
---|
5300 |
|
---|
5301 | <method name="delete">
|
---|
5302 | <desc>
|
---|
5303 | Deletes the files associated with this machine from disk. If medium objects are passed
|
---|
5304 | in with the @a aMedia argument, they are closed and, if closing was successful, their
|
---|
5305 | storage files are deleted as well. For convenience, this array of media files can be
|
---|
5306 | the same as the one returned from a previous <link to="#unregister" /> call.
|
---|
5307 |
|
---|
5308 | This method must only be called on machines which are either write-locked (i.e. on instances
|
---|
5309 | returned by <link to="ISession::machine"/>) or on unregistered machines (i.e. not yet
|
---|
5310 | registered machines created by <link to="IVirtualBox::createMachine"/> or opened by
|
---|
5311 | <link to="IVirtualBox::openMachine"/>, or after having called <link to="#unregister"/>).
|
---|
5312 |
|
---|
5313 | The following files will be deleted by this method:
|
---|
5314 | <ul>
|
---|
5315 | <li>If <link to="#unregister" /> had been previously called with a @a cleanupMode
|
---|
5316 | argument other than "UnregisterOnly", this will delete all saved state files that
|
---|
5317 | the machine had in use; possibly one if the machine was in "Saved" state and one
|
---|
5318 | for each online snapshot that the machine had.</li>
|
---|
5319 | <li>On each medium object passed in the @a aMedia array, this will call
|
---|
5320 | <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
|
---|
5321 | medium's storage on disk. Since the close() call will fail if the medium is still
|
---|
5322 | in use, e.g. because it is still attached to a second machine; in that case the
|
---|
5323 | storage will not be deleted.</li>
|
---|
5324 | <li>Finally, the machine's own XML file will be deleted.</li>
|
---|
5325 | </ul>
|
---|
5326 |
|
---|
5327 | Since deleting large disk image files can be a time-consuming I/O operation, this
|
---|
5328 | method operates asynchronously and returns an IProgress object to allow the caller
|
---|
5329 | to monitor the progress. There will be one sub-operation for each file that is
|
---|
5330 | being deleted (saved state or medium storage file).
|
---|
5331 |
|
---|
5332 | <note>
|
---|
5333 | <link to="#settingsModified"/> will return @c true after this
|
---|
5334 | method successfully returns.
|
---|
5335 | </note>
|
---|
5336 |
|
---|
5337 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5338 | Machine is registered but not write-locked.
|
---|
5339 | </result>
|
---|
5340 | <result name="VBOX_E_IPRT_ERROR">
|
---|
5341 | Could not delete the settings file.
|
---|
5342 | </result>
|
---|
5343 | </desc>
|
---|
5344 | <param name="aMedia" type="IMedium" safearray="yes" dir="in">
|
---|
5345 | <desc>List of media to be closed and whose storage files will be deleted.</desc>
|
---|
5346 | </param>
|
---|
5347 | <param name="aProgress" type="IProgress" dir="return">
|
---|
5348 | <desc>Progress object to track the operation completion.</desc>
|
---|
5349 | </param>
|
---|
5350 | </method>
|
---|
5351 |
|
---|
5352 | <method name="export">
|
---|
5353 | <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
|
---|
5354 | steps required to export VirtualBox machines to OVF.
|
---|
5355 | </desc>
|
---|
5356 |
|
---|
5357 | <param name="aAppliance" type="IAppliance" dir="in">
|
---|
5358 | <desc>Appliance to export this machine to.</desc>
|
---|
5359 | </param>
|
---|
5360 | <param name="location" type="wstring" dir="in">
|
---|
5361 | <desc>The target location.</desc>
|
---|
5362 | </param>
|
---|
5363 | <param name="aDescription" type="IVirtualSystemDescription" dir="return">
|
---|
5364 | <desc>VirtualSystemDescription object which is created for this machine.</desc>
|
---|
5365 | </param>
|
---|
5366 | </method >
|
---|
5367 |
|
---|
5368 | <method name="findSnapshot">
|
---|
5369 | <desc>
|
---|
5370 | Returns a snapshot of this machine with the given name or UUID.
|
---|
5371 |
|
---|
5372 | Returns a snapshot of this machine with the given UUID.
|
---|
5373 | A @c null argument can be used to obtain the first snapshot
|
---|
5374 | taken on this machine. To traverse the whole tree of snapshots
|
---|
5375 | starting from the root, inspect the root snapshot's
|
---|
5376 | <link to="ISnapshot::children" /> attribute and recurse over those children.
|
---|
5377 |
|
---|
5378 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5379 | Virtual machine has no snapshots or snapshot not found.
|
---|
5380 | </result>
|
---|
5381 |
|
---|
5382 | </desc>
|
---|
5383 | <param name="nameOrId" type="wstring" dir="in">
|
---|
5384 | <desc>What to search for. Name or UUID of the snapshot to find</desc>
|
---|
5385 | </param>
|
---|
5386 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5387 | <desc>Snapshot object with the given name.</desc>
|
---|
5388 | </param>
|
---|
5389 | </method>
|
---|
5390 |
|
---|
5391 | <method name="createSharedFolder">
|
---|
5392 | <desc>
|
---|
5393 | Creates a new permanent shared folder by associating the given logical
|
---|
5394 | name with the given host path, adds it to the collection of shared
|
---|
5395 | folders and starts sharing it. Refer to the description of
|
---|
5396 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
5397 |
|
---|
5398 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5399 | Shared folder already exists.
|
---|
5400 | </result>
|
---|
5401 | <result name="VBOX_E_FILE_ERROR">
|
---|
5402 | Shared folder @a hostPath not accessible.
|
---|
5403 | </result>
|
---|
5404 |
|
---|
5405 | </desc>
|
---|
5406 | <param name="name" type="wstring" dir="in">
|
---|
5407 | <desc>Unique logical name of the shared folder.</desc>
|
---|
5408 | </param>
|
---|
5409 | <param name="hostPath" type="wstring" dir="in">
|
---|
5410 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
5411 | </param>
|
---|
5412 | <param name="writable" type="boolean" dir="in">
|
---|
5413 | <desc>Whether the share is writable or readonly.</desc>
|
---|
5414 | </param>
|
---|
5415 | <param name="automount" type="boolean" dir="in">
|
---|
5416 | <desc>Whether the share gets automatically mounted by the guest
|
---|
5417 | or not.</desc>
|
---|
5418 | </param>
|
---|
5419 | </method>
|
---|
5420 |
|
---|
5421 | <method name="removeSharedFolder">
|
---|
5422 | <desc>
|
---|
5423 | Removes the permanent shared folder with the given name previously
|
---|
5424 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
5425 | shared folders and stops sharing it.
|
---|
5426 |
|
---|
5427 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5428 | Virtual machine is not mutable.
|
---|
5429 | </result>
|
---|
5430 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5431 | Shared folder @a name does not exist.
|
---|
5432 | </result>
|
---|
5433 |
|
---|
5434 | </desc>
|
---|
5435 | <param name="name" type="wstring" dir="in">
|
---|
5436 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
5437 | </param>
|
---|
5438 | </method>
|
---|
5439 |
|
---|
5440 | <method name="canShowConsoleWindow">
|
---|
5441 | <desc>
|
---|
5442 | Returns @c true if the VM console process can activate the
|
---|
5443 | console window and bring it to foreground on the desktop of
|
---|
5444 | the host PC.
|
---|
5445 | <note>
|
---|
5446 | This method will fail if a session for this machine is not
|
---|
5447 | currently open.
|
---|
5448 | </note>
|
---|
5449 |
|
---|
5450 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5451 | Machine session is not open.
|
---|
5452 | </result>
|
---|
5453 |
|
---|
5454 | </desc>
|
---|
5455 | <param name="canShow" type="boolean" dir="return">
|
---|
5456 | <desc>
|
---|
5457 | @c true if the console window can be shown and @c false otherwise.
|
---|
5458 | </desc>
|
---|
5459 | </param>
|
---|
5460 | </method>
|
---|
5461 |
|
---|
5462 | <method name="showConsoleWindow">
|
---|
5463 | <desc>
|
---|
5464 | Activates the console window and brings it to foreground on
|
---|
5465 | the desktop of the host PC. Many modern window managers on
|
---|
5466 | many platforms implement some sort of focus stealing
|
---|
5467 | prevention logic, so that it may be impossible to activate
|
---|
5468 | a window without the help of the currently active
|
---|
5469 | application. In this case, this method will return a non-zero
|
---|
5470 | identifier that represents the top-level window of the VM
|
---|
5471 | console process. The caller, if it represents a currently
|
---|
5472 | active process, is responsible to use this identifier (in a
|
---|
5473 | platform-dependent manner) to perform actual window
|
---|
5474 | activation.
|
---|
5475 | <note>
|
---|
5476 | This method will fail if a session for this machine is not
|
---|
5477 | currently open.
|
---|
5478 | </note>
|
---|
5479 |
|
---|
5480 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5481 | Machine session is not open.
|
---|
5482 | </result>
|
---|
5483 |
|
---|
5484 | </desc>
|
---|
5485 | <param name="winId" type="long long" dir="return">
|
---|
5486 | <desc>
|
---|
5487 | Platform-dependent identifier of the top-level VM console
|
---|
5488 | window, or zero if this method has performed all actions
|
---|
5489 | necessary to implement the <i>show window</i> semantics for
|
---|
5490 | the given platform and/or VirtualBox front-end.
|
---|
5491 | </desc>
|
---|
5492 | </param>
|
---|
5493 | </method>
|
---|
5494 |
|
---|
5495 | <method name="getGuestProperty" const="yes">
|
---|
5496 | <desc>
|
---|
5497 | Reads an entry from the machine's guest property store.
|
---|
5498 |
|
---|
5499 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5500 | Machine session is not open.
|
---|
5501 | </result>
|
---|
5502 |
|
---|
5503 | </desc>
|
---|
5504 | <param name="name" type="wstring" dir="in">
|
---|
5505 | <desc>
|
---|
5506 | The name of the property to read.
|
---|
5507 | </desc>
|
---|
5508 | </param>
|
---|
5509 | <param name="value" type="wstring" dir="out">
|
---|
5510 | <desc>
|
---|
5511 | The value of the property. If the property does not exist then this
|
---|
5512 | will be empty.
|
---|
5513 | </desc>
|
---|
5514 | </param>
|
---|
5515 | <param name="timestamp" type="long long" dir="out">
|
---|
5516 | <desc>
|
---|
5517 | The time at which the property was last modified, as seen by the
|
---|
5518 | server process.
|
---|
5519 | </desc>
|
---|
5520 | </param>
|
---|
5521 | <param name="flags" type="wstring" dir="out">
|
---|
5522 | <desc>
|
---|
5523 | Additional property parameters, passed as a comma-separated list of
|
---|
5524 | "name=value" type entries.
|
---|
5525 | </desc>
|
---|
5526 | </param>
|
---|
5527 | </method>
|
---|
5528 |
|
---|
5529 | <method name="getGuestPropertyValue" const="yes">
|
---|
5530 | <desc>
|
---|
5531 | Reads a value from the machine's guest property store.
|
---|
5532 |
|
---|
5533 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5534 | Machine session is not open.
|
---|
5535 | </result>
|
---|
5536 |
|
---|
5537 | </desc>
|
---|
5538 | <param name="property" type="wstring" dir="in">
|
---|
5539 | <desc>
|
---|
5540 | The name of the property to read.
|
---|
5541 | </desc>
|
---|
5542 | </param>
|
---|
5543 | <param name="value" type="wstring" dir="return">
|
---|
5544 | <desc>
|
---|
5545 | The value of the property. If the property does not exist then this
|
---|
5546 | will be empty.
|
---|
5547 | </desc>
|
---|
5548 | </param>
|
---|
5549 | </method>
|
---|
5550 |
|
---|
5551 | <method name="getGuestPropertyTimestamp" const="yes">
|
---|
5552 | <desc>
|
---|
5553 | Reads a property timestamp from the machine's guest property store.
|
---|
5554 |
|
---|
5555 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5556 | Machine session is not open.
|
---|
5557 | </result>
|
---|
5558 |
|
---|
5559 | </desc>
|
---|
5560 | <param name="property" type="wstring" dir="in">
|
---|
5561 | <desc>
|
---|
5562 | The name of the property to read.
|
---|
5563 | </desc>
|
---|
5564 | </param>
|
---|
5565 | <param name="value" type="long long" dir="return">
|
---|
5566 | <desc>
|
---|
5567 | The timestamp. If the property does not exist then this will be
|
---|
5568 | empty.
|
---|
5569 | </desc>
|
---|
5570 | </param>
|
---|
5571 | </method>
|
---|
5572 |
|
---|
5573 | <method name="setGuestProperty">
|
---|
5574 | <desc>
|
---|
5575 | Sets, changes or deletes an entry in the machine's guest property
|
---|
5576 | store.
|
---|
5577 |
|
---|
5578 | <result name="E_ACCESSDENIED">
|
---|
5579 | Property cannot be changed.
|
---|
5580 | </result>
|
---|
5581 | <result name="E_INVALIDARG">
|
---|
5582 | Invalid @a flags.
|
---|
5583 | </result>
|
---|
5584 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5585 | Virtual machine is not mutable or session not open.
|
---|
5586 | </result>
|
---|
5587 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5588 | Cannot set transient property when machine not running.
|
---|
5589 | </result>
|
---|
5590 |
|
---|
5591 | </desc>
|
---|
5592 | <param name="property" type="wstring" dir="in">
|
---|
5593 | <desc>
|
---|
5594 | The name of the property to set, change or delete.
|
---|
5595 | </desc>
|
---|
5596 | </param>
|
---|
5597 | <param name="value" type="wstring" dir="in">
|
---|
5598 | <desc>
|
---|
5599 | The new value of the property to set, change or delete. If the
|
---|
5600 | property does not yet exist and value is non-empty, it will be
|
---|
5601 | created. If the value is @c null or empty, the property will be
|
---|
5602 | deleted if it exists.
|
---|
5603 | </desc>
|
---|
5604 | </param>
|
---|
5605 | <param name="flags" type="wstring" dir="in">
|
---|
5606 | <desc>
|
---|
5607 | Additional property parameters, passed as a comma-separated list of
|
---|
5608 | "name=value" type entries.
|
---|
5609 | </desc>
|
---|
5610 | </param>
|
---|
5611 | </method>
|
---|
5612 |
|
---|
5613 | <method name="setGuestPropertyValue">
|
---|
5614 | <desc>
|
---|
5615 | Sets, changes or deletes a value in the machine's guest property
|
---|
5616 | store. The flags field will be left unchanged or created empty for a
|
---|
5617 | new property.
|
---|
5618 |
|
---|
5619 | <result name="E_ACCESSDENIED">
|
---|
5620 | Property cannot be changed.
|
---|
5621 | </result>
|
---|
5622 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5623 | Virtual machine is not mutable or session not open.
|
---|
5624 | </result>
|
---|
5625 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5626 | Cannot set transient property when machine not running.
|
---|
5627 | </result>
|
---|
5628 | </desc>
|
---|
5629 |
|
---|
5630 | <param name="property" type="wstring" dir="in">
|
---|
5631 | <desc>
|
---|
5632 | The name of the property to set, change or delete.
|
---|
5633 | </desc>
|
---|
5634 | </param>
|
---|
5635 | <param name="value" type="wstring" dir="in">
|
---|
5636 | <desc>
|
---|
5637 | The new value of the property to set, change or delete. If the
|
---|
5638 | property does not yet exist and value is non-empty, it will be
|
---|
5639 | created. If the value is @c null or empty, the property will be
|
---|
5640 | deleted if it exists.
|
---|
5641 | </desc>
|
---|
5642 | </param>
|
---|
5643 | </method>
|
---|
5644 |
|
---|
5645 | <method name="enumerateGuestProperties">
|
---|
5646 | <desc>
|
---|
5647 | Return a list of the guest properties matching a set of patterns along
|
---|
5648 | with their values, time stamps and flags.
|
---|
5649 | </desc>
|
---|
5650 | <param name="patterns" type="wstring" dir="in">
|
---|
5651 | <desc>
|
---|
5652 | The patterns to match the properties against, separated by '|'
|
---|
5653 | characters. If this is empty or @c null, all properties will match.
|
---|
5654 | </desc>
|
---|
5655 | </param>
|
---|
5656 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
5657 | <desc>
|
---|
5658 | The names of the properties returned.
|
---|
5659 | </desc>
|
---|
5660 | </param>
|
---|
5661 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
5662 | <desc>
|
---|
5663 | The values of the properties returned. The array entries match the
|
---|
5664 | corresponding entries in the @a name array.
|
---|
5665 | </desc>
|
---|
5666 | </param>
|
---|
5667 | <param name="timestamp" type="long long" dir="out" safearray="yes">
|
---|
5668 | <desc>
|
---|
5669 | The time stamps of the properties returned. The array entries match
|
---|
5670 | the corresponding entries in the @a name array.
|
---|
5671 | </desc>
|
---|
5672 | </param>
|
---|
5673 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
5674 | <desc>
|
---|
5675 | The flags of the properties returned. The array entries match the
|
---|
5676 | corresponding entries in the @a name array.
|
---|
5677 | </desc>
|
---|
5678 | </param>
|
---|
5679 | </method>
|
---|
5680 |
|
---|
5681 | <method name="querySavedGuestSize">
|
---|
5682 | <desc>
|
---|
5683 | Returns the guest dimensions from the saved state.
|
---|
5684 | </desc>
|
---|
5685 | <param name="screenId" type="unsigned long" dir="in">
|
---|
5686 | <desc>
|
---|
5687 | Saved guest screen to query info from.
|
---|
5688 | </desc>
|
---|
5689 | </param>
|
---|
5690 | <param name="width" type="unsigned long" dir="out">
|
---|
5691 | <desc>
|
---|
5692 | Guest width at the time of the saved state was taken.
|
---|
5693 | </desc>
|
---|
5694 | </param>
|
---|
5695 | <param name="height" type="unsigned long" dir="out">
|
---|
5696 | <desc>
|
---|
5697 | Guest height at the time of the saved state was taken.
|
---|
5698 | </desc>
|
---|
5699 | </param>
|
---|
5700 | </method>
|
---|
5701 |
|
---|
5702 | <method name="querySavedThumbnailSize">
|
---|
5703 | <desc>
|
---|
5704 | Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
|
---|
5705 | </desc>
|
---|
5706 | <param name="screenId" type="unsigned long" dir="in">
|
---|
5707 | <desc>
|
---|
5708 | Saved guest screen to query info from.
|
---|
5709 | </desc>
|
---|
5710 | </param>
|
---|
5711 | <param name="size" type="unsigned long" dir="out">
|
---|
5712 | <desc>
|
---|
5713 | Size of buffer required to store the bitmap.
|
---|
5714 | </desc>
|
---|
5715 | </param>
|
---|
5716 | <param name="width" type="unsigned long" dir="out">
|
---|
5717 | <desc>
|
---|
5718 | Bitmap width.
|
---|
5719 | </desc>
|
---|
5720 | </param>
|
---|
5721 | <param name="height" type="unsigned long" dir="out">
|
---|
5722 | <desc>
|
---|
5723 | Bitmap height.
|
---|
5724 | </desc>
|
---|
5725 | </param>
|
---|
5726 | </method>
|
---|
5727 |
|
---|
5728 | <method name="readSavedThumbnailToArray">
|
---|
5729 | <desc>
|
---|
5730 | Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
|
---|
5731 | </desc>
|
---|
5732 | <param name="screenId" type="unsigned long" dir="in">
|
---|
5733 | <desc>
|
---|
5734 | Saved guest screen to read from.
|
---|
5735 | </desc>
|
---|
5736 | </param>
|
---|
5737 | <param name="BGR" type="boolean" dir="in">
|
---|
5738 | <desc>
|
---|
5739 | How to order bytes in the pixel. A pixel consists of 4 bytes. If this parameter is true, then
|
---|
5740 | bytes order is: B, G, R, 0xFF. If this parameter is false, then bytes order is: R, G, B, 0xFF.
|
---|
5741 | </desc>
|
---|
5742 | </param>
|
---|
5743 | <param name="width" type="unsigned long" dir="out">
|
---|
5744 | <desc>
|
---|
5745 | Bitmap width.
|
---|
5746 | </desc>
|
---|
5747 | </param>
|
---|
5748 | <param name="height" type="unsigned long" dir="out">
|
---|
5749 | <desc>
|
---|
5750 | Bitmap height.
|
---|
5751 | </desc>
|
---|
5752 | </param>
|
---|
5753 | <param name="data" type="octet" safearray="yes" dir="return">
|
---|
5754 | <desc>
|
---|
5755 | Array with resulting bitmap data.
|
---|
5756 | </desc>
|
---|
5757 | </param>
|
---|
5758 | </method>
|
---|
5759 |
|
---|
5760 | <method name="readSavedThumbnailPNGToArray">
|
---|
5761 | <desc>
|
---|
5762 | Thumbnail in PNG format is retrieved to an array of bytes.
|
---|
5763 | </desc>
|
---|
5764 | <param name="screenId" type="unsigned long" dir="in">
|
---|
5765 | <desc>
|
---|
5766 | Saved guest screen to read from.
|
---|
5767 | </desc>
|
---|
5768 | </param>
|
---|
5769 | <param name="width" type="unsigned long" dir="out">
|
---|
5770 | <desc>
|
---|
5771 | Image width.
|
---|
5772 | </desc>
|
---|
5773 | </param>
|
---|
5774 | <param name="height" type="unsigned long" dir="out">
|
---|
5775 | <desc>
|
---|
5776 | Image height.
|
---|
5777 | </desc>
|
---|
5778 | </param>
|
---|
5779 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
5780 | <desc>
|
---|
5781 | Array with resulting PNG data.
|
---|
5782 | </desc>
|
---|
5783 | </param>
|
---|
5784 | </method>
|
---|
5785 |
|
---|
5786 | <method name="querySavedScreenshotPNGSize">
|
---|
5787 | <desc>
|
---|
5788 | Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
|
---|
5789 | </desc>
|
---|
5790 | <param name="screenId" type="unsigned long" dir="in">
|
---|
5791 | <desc>
|
---|
5792 | Saved guest screen to query info from.
|
---|
5793 | </desc>
|
---|
5794 | </param>
|
---|
5795 | <param name="size" type="unsigned long" dir="out">
|
---|
5796 | <desc>
|
---|
5797 | Size of buffer required to store the PNG binary data.
|
---|
5798 | </desc>
|
---|
5799 | </param>
|
---|
5800 | <param name="width" type="unsigned long" dir="out">
|
---|
5801 | <desc>
|
---|
5802 | Image width.
|
---|
5803 | </desc>
|
---|
5804 | </param>
|
---|
5805 | <param name="height" type="unsigned long" dir="out">
|
---|
5806 | <desc>
|
---|
5807 | Image height.
|
---|
5808 | </desc>
|
---|
5809 | </param>
|
---|
5810 | </method>
|
---|
5811 |
|
---|
5812 | <method name="readSavedScreenshotPNGToArray">
|
---|
5813 | <desc>
|
---|
5814 | Screenshot in PNG format is retrieved to an array of bytes.
|
---|
5815 | </desc>
|
---|
5816 | <param name="screenId" type="unsigned long" dir="in">
|
---|
5817 | <desc>
|
---|
5818 | Saved guest screen to read from.
|
---|
5819 | </desc>
|
---|
5820 | </param>
|
---|
5821 | <param name="width" type="unsigned long" dir="out">
|
---|
5822 | <desc>
|
---|
5823 | Image width.
|
---|
5824 | </desc>
|
---|
5825 | </param>
|
---|
5826 | <param name="height" type="unsigned long" dir="out">
|
---|
5827 | <desc>
|
---|
5828 | Image height.
|
---|
5829 | </desc>
|
---|
5830 | </param>
|
---|
5831 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
5832 | <desc>
|
---|
5833 | Array with resulting PNG data.
|
---|
5834 | </desc>
|
---|
5835 | </param>
|
---|
5836 | </method>
|
---|
5837 |
|
---|
5838 | <method name="hotPlugCPU">
|
---|
5839 | <desc>
|
---|
5840 | Plugs a CPU into the machine.
|
---|
5841 | </desc>
|
---|
5842 | <param name="cpu" type="unsigned long" dir="in">
|
---|
5843 | <desc>
|
---|
5844 | The CPU id to insert.
|
---|
5845 | </desc>
|
---|
5846 | </param>
|
---|
5847 | </method>
|
---|
5848 |
|
---|
5849 | <method name="hotUnplugCPU">
|
---|
5850 | <desc>
|
---|
5851 | Removes a CPU from the machine.
|
---|
5852 | </desc>
|
---|
5853 | <param name="cpu" type="unsigned long" dir="in">
|
---|
5854 | <desc>
|
---|
5855 | The CPU id to remove.
|
---|
5856 | </desc>
|
---|
5857 | </param>
|
---|
5858 | </method>
|
---|
5859 |
|
---|
5860 | <method name="getCPUStatus">
|
---|
5861 | <desc>
|
---|
5862 | Returns the current status of the given CPU.
|
---|
5863 | </desc>
|
---|
5864 | <param name="cpu" type="unsigned long" dir="in">
|
---|
5865 | <desc>
|
---|
5866 | The CPU id to check for.
|
---|
5867 | </desc>
|
---|
5868 | </param>
|
---|
5869 | <param name="attached" type="boolean" dir="return">
|
---|
5870 | <desc>
|
---|
5871 | Status of the CPU.
|
---|
5872 | </desc>
|
---|
5873 | </param>
|
---|
5874 | </method>
|
---|
5875 |
|
---|
5876 | <method name="queryLogFilename">
|
---|
5877 | <desc>
|
---|
5878 | Queries for the VM log file name of an given index. Returns an empty
|
---|
5879 | string if a log file with that index doesn't exists.
|
---|
5880 | </desc>
|
---|
5881 | <param name="idx" type="unsigned long" dir="in">
|
---|
5882 | <desc>
|
---|
5883 | Which log file name to query. 0=current log file.
|
---|
5884 | </desc>
|
---|
5885 | </param>
|
---|
5886 | <param name="filename" type="wstring" dir="return">
|
---|
5887 | <desc>
|
---|
5888 | On return the full path to the log file or an empty string on error.
|
---|
5889 | </desc>
|
---|
5890 | </param>
|
---|
5891 | </method>
|
---|
5892 |
|
---|
5893 | <method name="readLog">
|
---|
5894 | <desc>
|
---|
5895 | Reads the VM log file. The chunk size is limited, so even if you
|
---|
5896 | ask for a big piece there might be less data returned.
|
---|
5897 | </desc>
|
---|
5898 | <param name="idx" type="unsigned long" dir="in">
|
---|
5899 | <desc>
|
---|
5900 | Which log file to read. 0=current log file.
|
---|
5901 | </desc>
|
---|
5902 | </param>
|
---|
5903 | <param name="offset" type="long long" dir="in">
|
---|
5904 | <desc>
|
---|
5905 | Offset in the log file.
|
---|
5906 | </desc>
|
---|
5907 | </param>
|
---|
5908 | <param name="size" type="long long" dir="in">
|
---|
5909 | <desc>
|
---|
5910 | Chunk size to read in the log file.
|
---|
5911 | </desc>
|
---|
5912 | </param>
|
---|
5913 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
5914 | <desc>
|
---|
5915 | Data read from the log file. A data size of 0 means end of file
|
---|
5916 | if the requested chunk size was not 0. This is the unprocessed
|
---|
5917 | file data, i.e. the line ending style depends on the platform of
|
---|
5918 | the system the server is running on.
|
---|
5919 | </desc>
|
---|
5920 | </param>
|
---|
5921 | </method>
|
---|
5922 | </interface>
|
---|
5923 |
|
---|
5924 | <!--
|
---|
5925 | // IConsole
|
---|
5926 | /////////////////////////////////////////////////////////////////////////
|
---|
5927 | -->
|
---|
5928 |
|
---|
5929 | <interface
|
---|
5930 | name="IVRDEServerInfo" extends="$unknown"
|
---|
5931 | uuid="714434a1-58c3-4aab-9049-7652c5df113b"
|
---|
5932 | wsmap="struct"
|
---|
5933 | >
|
---|
5934 | <desc>
|
---|
5935 | Contains information about the remote desktop (VRDE) server capabilities and status.
|
---|
5936 | This is used in the <link to="IConsole::VRDEServerInfo" /> attribute.
|
---|
5937 | </desc>
|
---|
5938 |
|
---|
5939 | <attribute name="active" type="boolean" readonly="yes">
|
---|
5940 | <desc>
|
---|
5941 | Whether the remote desktop connection is active.
|
---|
5942 | </desc>
|
---|
5943 | </attribute>
|
---|
5944 |
|
---|
5945 | <attribute name="port" type="long" readonly="yes">
|
---|
5946 | <desc>
|
---|
5947 | VRDE server port number. If this property is equal to <tt>0</tt>, then
|
---|
5948 | the VRDE server failed to start, usually because there are no free IP
|
---|
5949 | ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE
|
---|
5950 | server has not yet been started.
|
---|
5951 | </desc>
|
---|
5952 | </attribute>
|
---|
5953 |
|
---|
5954 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
5955 | <desc>
|
---|
5956 | How many times a client connected.
|
---|
5957 | </desc>
|
---|
5958 | </attribute>
|
---|
5959 |
|
---|
5960 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
5961 | <desc>
|
---|
5962 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
5963 | </desc>
|
---|
5964 | </attribute>
|
---|
5965 |
|
---|
5966 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
5967 | <desc>
|
---|
5968 | When the last connection was terminated or the current time, if
|
---|
5969 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
5970 | </desc>
|
---|
5971 | </attribute>
|
---|
5972 |
|
---|
5973 | <attribute name="bytesSent" type="long long" readonly="yes">
|
---|
5974 | <desc>
|
---|
5975 | How many bytes were sent in last or current, if still active, connection.
|
---|
5976 | </desc>
|
---|
5977 | </attribute>
|
---|
5978 |
|
---|
5979 | <attribute name="bytesSentTotal" type="long long" readonly="yes">
|
---|
5980 | <desc>
|
---|
5981 | How many bytes were sent in all connections.
|
---|
5982 | </desc>
|
---|
5983 | </attribute>
|
---|
5984 |
|
---|
5985 | <attribute name="bytesReceived" type="long long" readonly="yes">
|
---|
5986 | <desc>
|
---|
5987 | How many bytes were received in last or current, if still active, connection.
|
---|
5988 | </desc>
|
---|
5989 | </attribute>
|
---|
5990 |
|
---|
5991 | <attribute name="bytesReceivedTotal" type="long long" readonly="yes">
|
---|
5992 | <desc>
|
---|
5993 | How many bytes were received in all connections.
|
---|
5994 | </desc>
|
---|
5995 | </attribute>
|
---|
5996 |
|
---|
5997 | <attribute name="user" type="wstring" readonly="yes">
|
---|
5998 | <desc>
|
---|
5999 | Login user name supplied by the client.
|
---|
6000 | </desc>
|
---|
6001 | </attribute>
|
---|
6002 |
|
---|
6003 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
6004 | <desc>
|
---|
6005 | Login domain name supplied by the client.
|
---|
6006 | </desc>
|
---|
6007 | </attribute>
|
---|
6008 |
|
---|
6009 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
6010 | <desc>
|
---|
6011 | The client name supplied by the client.
|
---|
6012 | </desc>
|
---|
6013 | </attribute>
|
---|
6014 |
|
---|
6015 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
6016 | <desc>
|
---|
6017 | The IP address of the client.
|
---|
6018 | </desc>
|
---|
6019 | </attribute>
|
---|
6020 |
|
---|
6021 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
6022 | <desc>
|
---|
6023 | The client software version number.
|
---|
6024 | </desc>
|
---|
6025 | </attribute>
|
---|
6026 |
|
---|
6027 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
6028 | <desc>
|
---|
6029 | Public key exchange method used when connection was established.
|
---|
6030 | Values: 0 - RDP4 public key exchange scheme.
|
---|
6031 | 1 - X509 certificates were sent to client.
|
---|
6032 | </desc>
|
---|
6033 | </attribute>
|
---|
6034 |
|
---|
6035 | </interface>
|
---|
6036 |
|
---|
6037 | <interface
|
---|
6038 | name="IConsole" extends="$unknown"
|
---|
6039 | uuid="515e8e8d-f932-4d8e-9f32-79a52aead882"
|
---|
6040 | wsmap="managed"
|
---|
6041 | >
|
---|
6042 | <desc>
|
---|
6043 | The IConsole interface represents an interface to control virtual
|
---|
6044 | machine execution.
|
---|
6045 |
|
---|
6046 | A console object gets created when a machine has been locked for a
|
---|
6047 | particular session (client process) using <link to="IMachine::lockMachine" />
|
---|
6048 | or <link to="IMachine::launchVMProcess"/>. The console object can
|
---|
6049 | then be found in the session's <link to="ISession::console" /> attribute.
|
---|
6050 |
|
---|
6051 | Methods of the IConsole interface allow the caller to query the current
|
---|
6052 | virtual machine execution state, pause the machine or power it down, save
|
---|
6053 | the machine state or take a snapshot, attach and detach removable media
|
---|
6054 | and so on.
|
---|
6055 |
|
---|
6056 | <see>ISession</see>
|
---|
6057 | </desc>
|
---|
6058 |
|
---|
6059 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
6060 | <desc>
|
---|
6061 | Machine object for this console session.
|
---|
6062 | <note>
|
---|
6063 | This is a convenience property, it has the same value as
|
---|
6064 | <link to="ISession::machine"/> of the corresponding session
|
---|
6065 | object.
|
---|
6066 | </note>
|
---|
6067 | </desc>
|
---|
6068 | </attribute>
|
---|
6069 |
|
---|
6070 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
6071 | <desc>
|
---|
6072 | Current execution state of the machine.
|
---|
6073 | <note>
|
---|
6074 | This property always returns the same value as the corresponding
|
---|
6075 | property of the IMachine object for this console session.
|
---|
6076 | For the process that owns (executes) the VM, this is the
|
---|
6077 | preferable way of querying the VM state, because no IPC
|
---|
6078 | calls are made.
|
---|
6079 | </note>
|
---|
6080 | </desc>
|
---|
6081 | </attribute>
|
---|
6082 |
|
---|
6083 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
6084 | <desc>Guest object.</desc>
|
---|
6085 | </attribute>
|
---|
6086 |
|
---|
6087 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
6088 | <desc>
|
---|
6089 | Virtual keyboard object.
|
---|
6090 | <note>
|
---|
6091 | If the machine is not running, any attempt to use
|
---|
6092 | the returned object will result in an error.
|
---|
6093 | </note>
|
---|
6094 | </desc>
|
---|
6095 | </attribute>
|
---|
6096 |
|
---|
6097 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
6098 | <desc>
|
---|
6099 | Virtual mouse object.
|
---|
6100 | <note>
|
---|
6101 | If the machine is not running, any attempt to use
|
---|
6102 | the returned object will result in an error.
|
---|
6103 | </note>
|
---|
6104 | </desc>
|
---|
6105 | </attribute>
|
---|
6106 |
|
---|
6107 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
6108 | <desc>Virtual display object.
|
---|
6109 | <note>
|
---|
6110 | If the machine is not running, any attempt to use
|
---|
6111 | the returned object will result in an error.
|
---|
6112 | </note>
|
---|
6113 | </desc>
|
---|
6114 | </attribute>
|
---|
6115 |
|
---|
6116 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
6117 | <desc>Debugging interface.</desc>
|
---|
6118 | </attribute>
|
---|
6119 |
|
---|
6120 | <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
|
---|
6121 | <desc>
|
---|
6122 | Collection of USB devices currently attached to the virtual
|
---|
6123 | USB controller.
|
---|
6124 | <note>
|
---|
6125 | The collection is empty if the machine is not running.
|
---|
6126 | </note>
|
---|
6127 | </desc>
|
---|
6128 | </attribute>
|
---|
6129 |
|
---|
6130 | <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6131 | <desc>
|
---|
6132 | List of USB devices currently attached to the remote VRDE client.
|
---|
6133 | Once a new device is physically attached to the remote host computer,
|
---|
6134 | it appears in this list and remains there until detached.
|
---|
6135 | </desc>
|
---|
6136 | </attribute>
|
---|
6137 |
|
---|
6138 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
6139 | <desc>
|
---|
6140 | Collection of shared folders for the current session. These folders
|
---|
6141 | are called transient shared folders because they are available to the
|
---|
6142 | guest OS running inside the associated virtual machine only for the
|
---|
6143 | duration of the session (as opposed to
|
---|
6144 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
6145 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
6146 | these folders are automatically discarded.
|
---|
6147 |
|
---|
6148 | New shared folders are added to the collection using
|
---|
6149 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
6150 | removed using <link to="#removeSharedFolder"/>.
|
---|
6151 | </desc>
|
---|
6152 | </attribute>
|
---|
6153 |
|
---|
6154 | <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes">
|
---|
6155 | <desc>
|
---|
6156 | Interface that provides information on Remote Desktop Extension (VRDE) connection.
|
---|
6157 | </desc>
|
---|
6158 | </attribute>
|
---|
6159 |
|
---|
6160 | <attribute name="eventSource" type="IEventSource" readonly="yes">
|
---|
6161 | <desc>
|
---|
6162 | Event source for console events.
|
---|
6163 | </desc>
|
---|
6164 | </attribute>
|
---|
6165 |
|
---|
6166 | <attribute name="attachedPciDevices" type="IPciDeviceAttachment" readonly="yes" safearray="yes">
|
---|
6167 | <desc>Array of PCI devices attached to this machine.</desc>
|
---|
6168 | </attribute>
|
---|
6169 |
|
---|
6170 | <method name="powerUp">
|
---|
6171 | <desc>
|
---|
6172 | Starts the virtual machine execution using the current machine
|
---|
6173 | state (that is, its current execution state, current settings and
|
---|
6174 | current storage devices).
|
---|
6175 |
|
---|
6176 | <note>
|
---|
6177 | This method is only useful for front-ends that want to actually
|
---|
6178 | execute virtual machines in their own process (like the VirtualBox
|
---|
6179 | or VBoxSDL front-ends). Unless you are intending to write such a
|
---|
6180 | front-end, do not call this method. If you simply want to
|
---|
6181 | start virtual machine execution using one of the existing front-ends
|
---|
6182 | (for example the VirtualBox GUI or headless server), use
|
---|
6183 | <link to="IMachine::launchVMProcess"/> instead; these
|
---|
6184 | front-ends will power up the machine automatically for you.
|
---|
6185 | </note>
|
---|
6186 |
|
---|
6187 | If the machine is powered off or aborted, the execution will
|
---|
6188 | start from the beginning (as if the real hardware were just
|
---|
6189 | powered on).
|
---|
6190 |
|
---|
6191 | If the machine is in the <link to="MachineState_Saved"/> state,
|
---|
6192 | it will continue its execution the point where the state has
|
---|
6193 | been saved.
|
---|
6194 |
|
---|
6195 | If the machine <link to="IMachine::teleporterEnabled"/> property is
|
---|
6196 | enabled on the machine being powered up, the machine will wait for an
|
---|
6197 | incoming teleportation in the <link to="MachineState_TeleportingIn"/>
|
---|
6198 | state. The returned progress object will have at least three
|
---|
6199 | operations where the last three are defined as: (1) powering up and
|
---|
6200 | starting TCP server, (2) waiting for incoming teleportations, and
|
---|
6201 | (3) perform teleportation. These operations will be reflected as the
|
---|
6202 | last three operations of the progress objected returned by
|
---|
6203 | <link to="IMachine::launchVMProcess"/> as well.
|
---|
6204 |
|
---|
6205 | <see>#saveState</see>
|
---|
6206 |
|
---|
6207 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6208 | Virtual machine already running.
|
---|
6209 | </result>
|
---|
6210 | <result name="VBOX_E_HOST_ERROR">
|
---|
6211 | Host interface does not exist or name not set.
|
---|
6212 | </result>
|
---|
6213 | <result name="VBOX_E_FILE_ERROR">
|
---|
6214 | Invalid saved state file.
|
---|
6215 | </result>
|
---|
6216 | </desc>
|
---|
6217 | <param name="progress" type="IProgress" dir="return">
|
---|
6218 | <desc>Progress object to track the operation completion.</desc>
|
---|
6219 | </param>
|
---|
6220 | </method>
|
---|
6221 |
|
---|
6222 | <method name="powerUpPaused">
|
---|
6223 | <desc>
|
---|
6224 | Identical to powerUp except that the VM will enter the
|
---|
6225 | <link to="MachineState_Paused"/> state, instead of
|
---|
6226 | <link to="MachineState_Running"/>.
|
---|
6227 |
|
---|
6228 | <see>#powerUp</see>
|
---|
6229 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6230 | Virtual machine already running.
|
---|
6231 | </result>
|
---|
6232 | <result name="VBOX_E_HOST_ERROR">
|
---|
6233 | Host interface does not exist or name not set.
|
---|
6234 | </result>
|
---|
6235 | <result name="VBOX_E_FILE_ERROR">
|
---|
6236 | Invalid saved state file.
|
---|
6237 | </result>
|
---|
6238 | </desc>
|
---|
6239 | <param name="progress" type="IProgress" dir="return">
|
---|
6240 | <desc>Progress object to track the operation completion.</desc>
|
---|
6241 | </param>
|
---|
6242 | </method>
|
---|
6243 |
|
---|
6244 | <method name="powerDown">
|
---|
6245 | <desc>
|
---|
6246 | Initiates the power down procedure to stop the virtual machine
|
---|
6247 | execution.
|
---|
6248 |
|
---|
6249 | The completion of the power down procedure is tracked using the returned
|
---|
6250 | IProgress object. After the operation is complete, the machine will go
|
---|
6251 | to the PoweredOff state.
|
---|
6252 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6253 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
6254 | </result>
|
---|
6255 | </desc>
|
---|
6256 | <param name="progress" type="IProgress" dir="return">
|
---|
6257 | <desc>Progress object to track the operation completion.</desc>
|
---|
6258 | </param>
|
---|
6259 | </method>
|
---|
6260 |
|
---|
6261 | <method name="reset">
|
---|
6262 | <desc>Resets the virtual machine.
|
---|
6263 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6264 | Virtual machine not in Running state.
|
---|
6265 | </result>
|
---|
6266 | <result name="VBOX_E_VM_ERROR">
|
---|
6267 | Virtual machine error in reset operation.
|
---|
6268 | </result>
|
---|
6269 | </desc>
|
---|
6270 | </method>
|
---|
6271 |
|
---|
6272 | <method name="pause">
|
---|
6273 | <desc>Pauses the virtual machine execution.
|
---|
6274 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6275 | Virtual machine not in Running state.
|
---|
6276 | </result>
|
---|
6277 | <result name="VBOX_E_VM_ERROR">
|
---|
6278 | Virtual machine error in suspend operation.
|
---|
6279 | </result>
|
---|
6280 | </desc>
|
---|
6281 | </method>
|
---|
6282 |
|
---|
6283 | <method name="resume">
|
---|
6284 | <desc>Resumes the virtual machine execution.
|
---|
6285 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6286 | Virtual machine not in Paused state.
|
---|
6287 | </result>
|
---|
6288 | <result name="VBOX_E_VM_ERROR">
|
---|
6289 | Virtual machine error in resume operation.
|
---|
6290 | </result>
|
---|
6291 | </desc>
|
---|
6292 | </method>
|
---|
6293 |
|
---|
6294 | <method name="powerButton">
|
---|
6295 | <desc>Sends the ACPI power button event to the guest.
|
---|
6296 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6297 | Virtual machine not in Running state.
|
---|
6298 | </result>
|
---|
6299 | <result name="VBOX_E_PDM_ERROR">
|
---|
6300 | Controlled power off failed.
|
---|
6301 | </result>
|
---|
6302 | </desc>
|
---|
6303 | </method>
|
---|
6304 |
|
---|
6305 | <method name="sleepButton">
|
---|
6306 | <desc>Sends the ACPI sleep button event to the guest.
|
---|
6307 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6308 | Virtual machine not in Running state.
|
---|
6309 | </result>
|
---|
6310 | <result name="VBOX_E_PDM_ERROR">
|
---|
6311 | Sending sleep button event failed.
|
---|
6312 | </result>
|
---|
6313 | </desc>
|
---|
6314 | </method>
|
---|
6315 |
|
---|
6316 | <method name="getPowerButtonHandled">
|
---|
6317 | <desc>Checks if the last power button event was handled by guest.
|
---|
6318 | <result name="VBOX_E_PDM_ERROR">
|
---|
6319 | Checking if the event was handled by the guest OS failed.
|
---|
6320 | </result>
|
---|
6321 | </desc>
|
---|
6322 | <param name="handled" type="boolean" dir="return"/>
|
---|
6323 | </method>
|
---|
6324 |
|
---|
6325 | <method name="getGuestEnteredACPIMode">
|
---|
6326 | <desc>Checks if the guest entered the ACPI mode G0 (working) or
|
---|
6327 | G1 (sleeping). If this method returns @c false, the guest will
|
---|
6328 | most likely not respond to external ACPI events.
|
---|
6329 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6330 | Virtual machine not in Running state.
|
---|
6331 | </result>
|
---|
6332 | </desc>
|
---|
6333 | <param name="entered" type="boolean" dir="return"/>
|
---|
6334 | </method>
|
---|
6335 |
|
---|
6336 | <method name="saveState">
|
---|
6337 | <desc>
|
---|
6338 | Saves the current execution state of a running virtual machine
|
---|
6339 | and stops its execution.
|
---|
6340 |
|
---|
6341 | After this operation completes, the machine will go to the
|
---|
6342 | Saved state. Next time it is powered up, this state will
|
---|
6343 | be restored and the machine will continue its execution from
|
---|
6344 | the place where it was saved.
|
---|
6345 |
|
---|
6346 | This operation differs from taking a snapshot to the effect
|
---|
6347 | that it doesn't create new differencing media. Also, once
|
---|
6348 | the machine is powered up from the state saved using this method,
|
---|
6349 | the saved state is deleted, so it will be impossible to return
|
---|
6350 | to this state later.
|
---|
6351 |
|
---|
6352 | <note>
|
---|
6353 | On success, this method implicitly calls
|
---|
6354 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
6355 | settings (including runtime changes to the DVD medium, etc.).
|
---|
6356 | Together with the impossibility to change any VM settings when it is
|
---|
6357 | in the Saved state, this guarantees adequate hardware
|
---|
6358 | configuration of the machine when it is restored from the saved
|
---|
6359 | state file.
|
---|
6360 | </note>
|
---|
6361 |
|
---|
6362 | <note>
|
---|
6363 | The machine must be in the Running or Paused state, otherwise
|
---|
6364 | the operation will fail.
|
---|
6365 | </note>
|
---|
6366 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6367 | Virtual machine state neither Running nor Paused.
|
---|
6368 | </result>
|
---|
6369 | <result name="VBOX_E_FILE_ERROR">
|
---|
6370 | Failed to create directory for saved state file.
|
---|
6371 | </result>
|
---|
6372 |
|
---|
6373 | <see><link to="#takeSnapshot"/></see>
|
---|
6374 | </desc>
|
---|
6375 | <param name="progress" type="IProgress" dir="return">
|
---|
6376 | <desc>Progress object to track the operation completion.</desc>
|
---|
6377 | </param>
|
---|
6378 | </method>
|
---|
6379 |
|
---|
6380 | <method name="adoptSavedState">
|
---|
6381 | <desc>
|
---|
6382 | Associates the given saved state file to the virtual machine.
|
---|
6383 |
|
---|
6384 | On success, the machine will go to the Saved state. Next time it is
|
---|
6385 | powered up, it will be restored from the adopted saved state and
|
---|
6386 | continue execution from the place where the saved state file was
|
---|
6387 | created.
|
---|
6388 |
|
---|
6389 | The specified saved state file path may be absolute or relative to the
|
---|
6390 | folder the VM normally saves the state to (usually,
|
---|
6391 | <link to="IMachine::snapshotFolder"/>).
|
---|
6392 |
|
---|
6393 | <note>
|
---|
6394 | It's a caller's responsibility to make sure the given saved state
|
---|
6395 | file is compatible with the settings of this virtual machine that
|
---|
6396 | represent its virtual hardware (memory size, storage disk configuration
|
---|
6397 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
6398 | is undefined.
|
---|
6399 | </note>
|
---|
6400 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6401 | Virtual machine state neither PoweredOff nor Aborted.
|
---|
6402 | </result>
|
---|
6403 | </desc>
|
---|
6404 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
6405 | <desc>Path to the saved state file to adopt.</desc>
|
---|
6406 | </param>
|
---|
6407 | </method>
|
---|
6408 |
|
---|
6409 | <method name="discardSavedState">
|
---|
6410 | <desc>
|
---|
6411 | Forcibly resets the machine to "Powered Off" state if it is
|
---|
6412 | currently in the "Saved" state (previously created by <link to="#saveState"/>).
|
---|
6413 | Next time the machine is powered up, a clean boot will occur.
|
---|
6414 | <note>
|
---|
6415 | This operation is equivalent to resetting or powering off
|
---|
6416 | the machine without doing a proper shutdown of the guest
|
---|
6417 | operating system; as with resetting a running phyiscal
|
---|
6418 | computer, it can can lead to data loss.
|
---|
6419 | </note>
|
---|
6420 | If @a fRemoveFile is @c true, the file in the machine directory
|
---|
6421 | into which the machine state was saved is also deleted. If
|
---|
6422 | this is @c false, then the state can be recovered and later
|
---|
6423 | re-inserted into a machine using <link to="#adoptSavedState" />.
|
---|
6424 | The location of the file can be found in the
|
---|
6425 | <link to="IMachine::stateFilePath" /> attribute.
|
---|
6426 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6427 | Virtual machine not in state Saved.
|
---|
6428 | </result>
|
---|
6429 | </desc>
|
---|
6430 | <param name="fRemoveFile" type="boolean" dir="in" >
|
---|
6431 | <desc>Whether to also remove the saved state file.</desc>
|
---|
6432 | </param>
|
---|
6433 | </method>
|
---|
6434 |
|
---|
6435 | <method name="getDeviceActivity">
|
---|
6436 | <desc>
|
---|
6437 | Gets the current activity type of a given device or device group.
|
---|
6438 | <result name="E_INVALIDARG">
|
---|
6439 | Invalid device type.
|
---|
6440 | </result>
|
---|
6441 | </desc>
|
---|
6442 | <param name="type" type="DeviceType" dir="in"/>
|
---|
6443 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
6444 | </method>
|
---|
6445 |
|
---|
6446 | <method name="attachUSBDevice">
|
---|
6447 | <desc>
|
---|
6448 | Attaches a host USB device with the given UUID to the
|
---|
6449 | USB controller of the virtual machine.
|
---|
6450 |
|
---|
6451 | The device needs to be in one of the following states:
|
---|
6452 | <link to="USBDeviceState_Busy"/>,
|
---|
6453 | <link to="USBDeviceState_Available"/> or
|
---|
6454 | <link to="USBDeviceState_Held"/>,
|
---|
6455 | otherwise an error is immediately returned.
|
---|
6456 |
|
---|
6457 | When the device state is
|
---|
6458 | <link to="USBDeviceState_Busy">Busy</link>, an error may also
|
---|
6459 | be returned if the host computer refuses to release it for some reason.
|
---|
6460 |
|
---|
6461 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6462 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6463 | Virtual machine state neither Running nor Paused.
|
---|
6464 | </result>
|
---|
6465 | <result name="VBOX_E_PDM_ERROR">
|
---|
6466 | Virtual machine does not have a USB controller.
|
---|
6467 | </result>
|
---|
6468 | </desc>
|
---|
6469 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6470 | <desc>UUID of the host USB device to attach.</desc>
|
---|
6471 | </param>
|
---|
6472 | </method>
|
---|
6473 |
|
---|
6474 | <method name="detachUSBDevice">
|
---|
6475 | <desc>
|
---|
6476 | Detaches an USB device with the given UUID from the USB controller
|
---|
6477 | of the virtual machine.
|
---|
6478 |
|
---|
6479 | After this method succeeds, the VirtualBox server re-initiates
|
---|
6480 | all USB filters as if the device were just physically attached
|
---|
6481 | to the host, but filters of this machine are ignored to avoid
|
---|
6482 | a possible automatic re-attachment.
|
---|
6483 |
|
---|
6484 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6485 |
|
---|
6486 | <result name="VBOX_E_PDM_ERROR">
|
---|
6487 | Virtual machine does not have a USB controller.
|
---|
6488 | </result>
|
---|
6489 | <result name="E_INVALIDARG">
|
---|
6490 | USB device not attached to this virtual machine.
|
---|
6491 | </result>
|
---|
6492 | </desc>
|
---|
6493 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6494 | <desc>UUID of the USB device to detach.</desc>
|
---|
6495 | </param>
|
---|
6496 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6497 | <desc>Detached USB device.</desc>
|
---|
6498 | </param>
|
---|
6499 | </method>
|
---|
6500 |
|
---|
6501 | <method name="findUSBDeviceByAddress">
|
---|
6502 | <desc>
|
---|
6503 | Searches for a USB device with the given host address.
|
---|
6504 |
|
---|
6505 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6506 | Given @c name does not correspond to any USB device.
|
---|
6507 | </result>
|
---|
6508 |
|
---|
6509 | <see>IUSBDevice::address</see>
|
---|
6510 | </desc>
|
---|
6511 | <param name="name" type="wstring" dir="in">
|
---|
6512 | <desc>
|
---|
6513 | Address of the USB device (as assigned by the host) to
|
---|
6514 | search for.
|
---|
6515 | </desc>
|
---|
6516 | </param>
|
---|
6517 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6518 | <desc>Found USB device object.</desc>
|
---|
6519 | </param>
|
---|
6520 | </method>
|
---|
6521 |
|
---|
6522 | <method name="findUSBDeviceById">
|
---|
6523 | <desc>
|
---|
6524 | Searches for a USB device with the given UUID.
|
---|
6525 |
|
---|
6526 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6527 | Given @c id does not correspond to any USB device.
|
---|
6528 | </result>
|
---|
6529 |
|
---|
6530 | <see>IUSBDevice::id</see>
|
---|
6531 | </desc>
|
---|
6532 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6533 | <desc>UUID of the USB device to search for.</desc>
|
---|
6534 | </param>
|
---|
6535 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6536 | <desc>Found USB device object.</desc>
|
---|
6537 | </param>
|
---|
6538 | </method>
|
---|
6539 |
|
---|
6540 | <method name="createSharedFolder">
|
---|
6541 | <desc>
|
---|
6542 | Creates a transient new shared folder by associating the given logical
|
---|
6543 | name with the given host path, adds it to the collection of shared
|
---|
6544 | folders and starts sharing it. Refer to the description of
|
---|
6545 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
6546 |
|
---|
6547 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6548 | Virtual machine in Saved state or currently changing state.
|
---|
6549 | </result>
|
---|
6550 | <result name="VBOX_E_FILE_ERROR">
|
---|
6551 | Shared folder already exists or not accessible.
|
---|
6552 | </result>
|
---|
6553 | </desc>
|
---|
6554 | <param name="name" type="wstring" dir="in">
|
---|
6555 | <desc>Unique logical name of the shared folder.</desc>
|
---|
6556 | </param>
|
---|
6557 | <param name="hostPath" type="wstring" dir="in">
|
---|
6558 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
6559 | </param>
|
---|
6560 | <param name="writable" type="boolean" dir="in">
|
---|
6561 | <desc>Whether the share is writable or readonly</desc>
|
---|
6562 | </param>
|
---|
6563 | <param name="automount" type="boolean" dir="in">
|
---|
6564 | <desc>Whether the share gets automatically mounted by the guest
|
---|
6565 | or not.</desc>
|
---|
6566 | </param>
|
---|
6567 | </method>
|
---|
6568 |
|
---|
6569 | <method name="removeSharedFolder">
|
---|
6570 | <desc>
|
---|
6571 | Removes a transient shared folder with the given name previously
|
---|
6572 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
6573 | shared folders and stops sharing it.
|
---|
6574 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6575 | Virtual machine in Saved state or currently changing state.
|
---|
6576 | </result>
|
---|
6577 | <result name="VBOX_E_FILE_ERROR">
|
---|
6578 | Shared folder does not exists.
|
---|
6579 | </result>
|
---|
6580 | </desc>
|
---|
6581 | <param name="name" type="wstring" dir="in">
|
---|
6582 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
6583 | </param>
|
---|
6584 | </method>
|
---|
6585 |
|
---|
6586 | <method name="takeSnapshot">
|
---|
6587 | <desc>
|
---|
6588 | Saves the current execution state
|
---|
6589 | and all settings of the machine and creates differencing images
|
---|
6590 | for all normal (non-independent) media.
|
---|
6591 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6592 |
|
---|
6593 | This method can be called for a PoweredOff, Saved (see
|
---|
6594 | <link to="#saveState"/>), Running or
|
---|
6595 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
6596 | offline snapshot is created. When the machine is Running a live
|
---|
6597 | snapshot is created, and an online snapshot is is created when Paused.
|
---|
6598 |
|
---|
6599 | The taken snapshot is always based on the
|
---|
6600 | <link to="IMachine::currentSnapshot">current snapshot</link>
|
---|
6601 | of the associated virtual machine and becomes a new current snapshot.
|
---|
6602 |
|
---|
6603 | <note>
|
---|
6604 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
6605 | save all current machine settings before taking an offline snapshot.
|
---|
6606 | </note>
|
---|
6607 |
|
---|
6608 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6609 | Virtual machine currently changing state.
|
---|
6610 | </result>
|
---|
6611 | </desc>
|
---|
6612 | <param name="name" type="wstring" dir="in">
|
---|
6613 | <desc>Short name for the snapshot.</desc>
|
---|
6614 | </param>
|
---|
6615 | <param name="description" type="wstring" dir="in">
|
---|
6616 | <desc>Optional description of the snapshot.</desc>
|
---|
6617 | </param>
|
---|
6618 | <param name="progress" type="IProgress" dir="return">
|
---|
6619 | <desc>Progress object to track the operation completion.</desc>
|
---|
6620 | </param>
|
---|
6621 | </method>
|
---|
6622 |
|
---|
6623 | <method name="deleteSnapshot">
|
---|
6624 | <desc>
|
---|
6625 | Starts deleting the specified snapshot asynchronously.
|
---|
6626 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6627 |
|
---|
6628 | The execution state and settings of the associated machine stored in
|
---|
6629 | the snapshot will be deleted. The contents of all differencing media of
|
---|
6630 | this snapshot will be merged with the contents of their dependent child
|
---|
6631 | media to keep the medium chain valid (in other words, all changes
|
---|
6632 | represented by media being deleted will be propagated to their child
|
---|
6633 | medium). After that, this snapshot's differencing medium will be
|
---|
6634 | deleted. The parent of this snapshot will become a new parent for all
|
---|
6635 | its child snapshots.
|
---|
6636 |
|
---|
6637 | If the deleted snapshot is the current one, its parent snapshot will
|
---|
6638 | become a new current snapshot. The current machine state is not directly
|
---|
6639 | affected in this case, except that currently attached differencing
|
---|
6640 | media based on media of the deleted snapshot will be also merged as
|
---|
6641 | described above.
|
---|
6642 |
|
---|
6643 | If the deleted snapshot is the first or current snapshot, then the
|
---|
6644 | respective IMachine attributes will be adjusted. Deleting the current
|
---|
6645 | snapshot will also implicitly call <link to="IMachine::saveSettings"/>
|
---|
6646 | to make all current machine settings permanent.
|
---|
6647 |
|
---|
6648 | Deleting a snapshot has the following preconditions:
|
---|
6649 |
|
---|
6650 | <ul>
|
---|
6651 | <li>Child media of all normal media of the deleted snapshot
|
---|
6652 | must be accessible (see <link to="IMedium::state"/>) for this
|
---|
6653 | operation to succeed. In particular, this means that all virtual
|
---|
6654 | machines whose media are directly or indirectly based on the
|
---|
6655 | media of deleted snapshot must be powered off.</li>
|
---|
6656 |
|
---|
6657 | <li>You cannot delete the snapshot if a medium attached to it has
|
---|
6658 | more than once child medium (differencing images) because otherwise
|
---|
6659 | merging would be impossible. This might be the case if there is
|
---|
6660 | more than one child snapshot or differencing images were created
|
---|
6661 | for other reason (e.g. implicitly because of multiple machine
|
---|
6662 | attachments).</li>
|
---|
6663 | </ul>
|
---|
6664 |
|
---|
6665 |
|
---|
6666 | The virtual machine's <link to="IMachine::state">state</link> is
|
---|
6667 | changed to "DeletingSnapshot", "DeletingSnapshotOnline" or
|
---|
6668 | "DeletingSnapshotPaused" while this operation is in progress.
|
---|
6669 |
|
---|
6670 | <note>
|
---|
6671 | Merging medium contents can be very time and disk space
|
---|
6672 | consuming, if these media are big in size and have many
|
---|
6673 | children. However, if the snapshot being deleted is the last
|
---|
6674 | (head) snapshot on the branch, the operation will be rather
|
---|
6675 | quick.
|
---|
6676 | </note>
|
---|
6677 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6678 | The running virtual machine prevents deleting this snapshot. This
|
---|
6679 | happens only in very specific situations, usually snapshots can be
|
---|
6680 | deleted without trouble while a VM is running. The error message
|
---|
6681 | text explains the reason for the failure.
|
---|
6682 | </result>
|
---|
6683 | </desc>
|
---|
6684 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
6685 | <desc>UUID of the snapshot to delete.</desc>
|
---|
6686 | </param>
|
---|
6687 | <param name="progress" type="IProgress" dir="return">
|
---|
6688 | <desc>Progress object to track the operation completion.</desc>
|
---|
6689 | </param>
|
---|
6690 | </method>
|
---|
6691 |
|
---|
6692 | <method name="restoreSnapshot">
|
---|
6693 | <desc>
|
---|
6694 | Starts resetting the machine's current state to the state contained
|
---|
6695 | in the given snapshot, asynchronously. All current settings of the
|
---|
6696 | machine will be reset and changes stored in differencing media
|
---|
6697 | will be lost.
|
---|
6698 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6699 |
|
---|
6700 | After this operation is successfully completed, new empty differencing
|
---|
6701 | media are created for all normal media of the machine.
|
---|
6702 |
|
---|
6703 | If the given snapshot is an online snapshot, the machine will go to
|
---|
6704 | the <link to="MachineState_Saved"> saved state</link>, so that the
|
---|
6705 | next time it is powered on, the execution state will be restored
|
---|
6706 | from the state of the snapshot.
|
---|
6707 |
|
---|
6708 | <note>
|
---|
6709 | The machine must not be running, otherwise the operation will fail.
|
---|
6710 | </note>
|
---|
6711 |
|
---|
6712 | <note>
|
---|
6713 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
6714 | prior to this operation, the saved state file will be implicitly
|
---|
6715 | deleted (as if <link to="IConsole::discardSavedState"/> were
|
---|
6716 | called).
|
---|
6717 | </note>
|
---|
6718 |
|
---|
6719 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6720 | Virtual machine is running.
|
---|
6721 | </result>
|
---|
6722 | </desc>
|
---|
6723 | <param name="snapshot" type="ISnapshot" dir="in">
|
---|
6724 | <desc>The snapshot to restore the VM state from.</desc>
|
---|
6725 | </param>
|
---|
6726 | <param name="progress" type="IProgress" dir="return">
|
---|
6727 | <desc>Progress object to track the operation completion.</desc>
|
---|
6728 | </param>
|
---|
6729 | </method>
|
---|
6730 |
|
---|
6731 | <method name="teleport">
|
---|
6732 | <desc>
|
---|
6733 | Teleport the VM to a different host machine or process.
|
---|
6734 |
|
---|
6735 | TODO explain the details.
|
---|
6736 |
|
---|
6737 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6738 | Virtual machine not running or paused.
|
---|
6739 | </result>
|
---|
6740 | </desc>
|
---|
6741 | <param name="hostname" type="wstring" dir="in">
|
---|
6742 | <desc>The name or IP of the host to teleport to.</desc>
|
---|
6743 | </param>
|
---|
6744 | <param name="tcpport" type="unsigned long" dir="in">
|
---|
6745 | <desc>The TCP port to connect to (1..65535).</desc>
|
---|
6746 | </param>
|
---|
6747 | <param name="password" type="wstring" dir="in">
|
---|
6748 | <desc>The password.</desc>
|
---|
6749 | </param>
|
---|
6750 | <param name="maxDowntime" type="unsigned long" dir="in">
|
---|
6751 | <desc>
|
---|
6752 | The maximum allowed downtime given as milliseconds. 0 is not a valid
|
---|
6753 | value. Recommended value: 250 ms.
|
---|
6754 |
|
---|
6755 | The higher the value is, the greater the chance for a successful
|
---|
6756 | teleportation. A small value may easily result in the teleportation
|
---|
6757 | process taking hours and eventually fail.
|
---|
6758 |
|
---|
6759 | <note>
|
---|
6760 | The current implementation treats this a guideline, not as an
|
---|
6761 | absolute rule.
|
---|
6762 | </note>
|
---|
6763 | </desc>
|
---|
6764 | </param>
|
---|
6765 | <param name="progress" type="IProgress" dir="return">
|
---|
6766 | <desc>Progress object to track the operation completion.</desc>
|
---|
6767 | </param>
|
---|
6768 | </method>
|
---|
6769 |
|
---|
6770 | </interface>
|
---|
6771 |
|
---|
6772 | <!--
|
---|
6773 | // IHost
|
---|
6774 | /////////////////////////////////////////////////////////////////////////
|
---|
6775 | -->
|
---|
6776 |
|
---|
6777 | <enum
|
---|
6778 | name="HostNetworkInterfaceMediumType"
|
---|
6779 | uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
|
---|
6780 | >
|
---|
6781 | <desc>
|
---|
6782 | Type of encapsulation. Ethernet encapsulation includes both wired and
|
---|
6783 | wireless Ethernet connections.
|
---|
6784 | <see>IHostNetworkInterface</see>
|
---|
6785 | </desc>
|
---|
6786 |
|
---|
6787 | <const name="Unknown" value="0">
|
---|
6788 | <desc>
|
---|
6789 | The type of interface cannot be determined.
|
---|
6790 | </desc>
|
---|
6791 | </const>
|
---|
6792 | <const name="Ethernet" value="1">
|
---|
6793 | <desc>
|
---|
6794 | Ethernet frame encapsulation.
|
---|
6795 | </desc>
|
---|
6796 | </const>
|
---|
6797 | <const name="PPP" value="2">
|
---|
6798 | <desc>
|
---|
6799 | Point-to-point protocol encapsulation.
|
---|
6800 | </desc>
|
---|
6801 | </const>
|
---|
6802 | <const name="SLIP" value="3">
|
---|
6803 | <desc>
|
---|
6804 | Serial line IP encapsulation.
|
---|
6805 | </desc>
|
---|
6806 | </const>
|
---|
6807 | </enum>
|
---|
6808 |
|
---|
6809 | <enum
|
---|
6810 | name="HostNetworkInterfaceStatus"
|
---|
6811 | uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
|
---|
6812 | >
|
---|
6813 | <desc>
|
---|
6814 | Current status of the interface.
|
---|
6815 | <see>IHostNetworkInterface</see>
|
---|
6816 | </desc>
|
---|
6817 |
|
---|
6818 | <const name="Unknown" value="0">
|
---|
6819 | <desc>
|
---|
6820 | The state of interface cannot be determined.
|
---|
6821 | </desc>
|
---|
6822 | </const>
|
---|
6823 | <const name="Up" value="1">
|
---|
6824 | <desc>
|
---|
6825 | The interface is fully operational.
|
---|
6826 | </desc>
|
---|
6827 | </const>
|
---|
6828 | <const name="Down" value="2">
|
---|
6829 | <desc>
|
---|
6830 | The interface is not functioning.
|
---|
6831 | </desc>
|
---|
6832 | </const>
|
---|
6833 | </enum>
|
---|
6834 |
|
---|
6835 | <enum
|
---|
6836 | name="HostNetworkInterfaceType"
|
---|
6837 | uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
|
---|
6838 | >
|
---|
6839 | <desc>
|
---|
6840 | Network interface type.
|
---|
6841 | </desc>
|
---|
6842 | <const name="Bridged" value="1"/>
|
---|
6843 | <const name="HostOnly" value="2"/>
|
---|
6844 | </enum>
|
---|
6845 |
|
---|
6846 | <interface
|
---|
6847 | name="IHostNetworkInterface" extends="$unknown"
|
---|
6848 | uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
|
---|
6849 | wsmap="managed"
|
---|
6850 | >
|
---|
6851 | <desc>
|
---|
6852 | Represents one of host's network interfaces. IP V6 address and network
|
---|
6853 | mask are strings of 32 hexdecimal digits grouped by four. Groups are
|
---|
6854 | separated by colons.
|
---|
6855 | For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
|
---|
6856 | </desc>
|
---|
6857 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6858 | <desc>Returns the host network interface name.</desc>
|
---|
6859 | </attribute>
|
---|
6860 |
|
---|
6861 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
6862 | <desc>Returns the interface UUID.</desc>
|
---|
6863 | </attribute>
|
---|
6864 |
|
---|
6865 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
6866 | <desc>Returns the name of a virtual network the interface gets attached to.</desc>
|
---|
6867 | </attribute>
|
---|
6868 |
|
---|
6869 | <attribute name="dhcpEnabled" type="boolean" readonly="yes">
|
---|
6870 | <desc>Specifies whether the DHCP is enabled for the interface.</desc>
|
---|
6871 | </attribute>
|
---|
6872 |
|
---|
6873 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
6874 | <desc>Returns the IP V4 address of the interface.</desc>
|
---|
6875 | </attribute>
|
---|
6876 |
|
---|
6877 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
6878 | <desc>Returns the network mask of the interface.</desc>
|
---|
6879 | </attribute>
|
---|
6880 |
|
---|
6881 | <attribute name="IPV6Supported" type="boolean" readonly="yes">
|
---|
6882 | <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
|
---|
6883 | </attribute>
|
---|
6884 |
|
---|
6885 | <attribute name="IPV6Address" type="wstring" readonly="yes">
|
---|
6886 | <desc>Returns the IP V6 address of the interface.</desc>
|
---|
6887 | </attribute>
|
---|
6888 |
|
---|
6889 | <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
|
---|
6890 | <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
|
---|
6891 | </attribute>
|
---|
6892 |
|
---|
6893 | <attribute name="hardwareAddress" type="wstring" readonly="yes">
|
---|
6894 | <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
|
---|
6895 | </attribute>
|
---|
6896 |
|
---|
6897 | <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
|
---|
6898 | <desc>Type of protocol encapsulation used.</desc>
|
---|
6899 | </attribute>
|
---|
6900 |
|
---|
6901 | <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
|
---|
6902 | <desc>Status of the interface.</desc>
|
---|
6903 | </attribute>
|
---|
6904 |
|
---|
6905 | <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
|
---|
6906 | <desc>specifies the host interface type.</desc>
|
---|
6907 | </attribute>
|
---|
6908 |
|
---|
6909 | <method name="enableStaticIpConfig">
|
---|
6910 | <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
|
---|
6911 | <param name="IPAddress" type="wstring" dir="in">
|
---|
6912 | <desc>
|
---|
6913 | IP address.
|
---|
6914 | </desc>
|
---|
6915 | </param>
|
---|
6916 | <param name="networkMask" type="wstring" dir="in">
|
---|
6917 | <desc>
|
---|
6918 | network mask.
|
---|
6919 | </desc>
|
---|
6920 | </param>
|
---|
6921 | </method>
|
---|
6922 |
|
---|
6923 | <method name="enableStaticIpConfigV6">
|
---|
6924 | <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
|
---|
6925 | <param name="IPV6Address" type="wstring" dir="in">
|
---|
6926 | <desc>
|
---|
6927 | IP address.
|
---|
6928 | </desc>
|
---|
6929 | </param>
|
---|
6930 | <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
|
---|
6931 | <desc>
|
---|
6932 | network mask.
|
---|
6933 | </desc>
|
---|
6934 | </param>
|
---|
6935 | </method>
|
---|
6936 |
|
---|
6937 | <method name="enableDynamicIpConfig">
|
---|
6938 | <desc>enables the dynamic IP configuration.</desc>
|
---|
6939 | </method>
|
---|
6940 |
|
---|
6941 | <method name="dhcpRediscover">
|
---|
6942 | <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
|
---|
6943 | </method>
|
---|
6944 |
|
---|
6945 | </interface>
|
---|
6946 |
|
---|
6947 | <interface
|
---|
6948 | name="IHost" extends="$unknown"
|
---|
6949 | uuid="35b004f4-7806-4009-bfa8-d1308adba7e5"
|
---|
6950 | wsmap="managed"
|
---|
6951 | >
|
---|
6952 | <desc>
|
---|
6953 | The IHost interface represents the physical machine that this VirtualBox
|
---|
6954 | installation runs on.
|
---|
6955 |
|
---|
6956 | An object implementing this interface is returned by the
|
---|
6957 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
6958 | read-only information about the host's physical hardware (such as what
|
---|
6959 | processors and disks are available, what the host operating system is,
|
---|
6960 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
6961 | such as global USB device filters and host interface networking.
|
---|
6962 |
|
---|
6963 | </desc>
|
---|
6964 | <attribute name="DVDDrives" type="IMedium" readonly="yes" safearray="yes">
|
---|
6965 | <desc>List of DVD drives available on the host.</desc>
|
---|
6966 | </attribute>
|
---|
6967 |
|
---|
6968 | <attribute name="floppyDrives" type="IMedium" readonly="yes" safearray="yes">
|
---|
6969 | <desc>List of floppy drives available on the host.</desc>
|
---|
6970 | </attribute>
|
---|
6971 |
|
---|
6972 | <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6973 | <desc>
|
---|
6974 | List of USB devices currently attached to the host.
|
---|
6975 | Once a new device is physically attached to the host computer,
|
---|
6976 | it appears in this list and remains there until detached.
|
---|
6977 |
|
---|
6978 | <note>
|
---|
6979 | If USB functionality is not available in the given edition of
|
---|
6980 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
6981 | </note>
|
---|
6982 | </desc>
|
---|
6983 | </attribute>
|
---|
6984 |
|
---|
6985 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
6986 | <desc>
|
---|
6987 | List of USB device filters in action.
|
---|
6988 | When a new device is physically attached to the host computer,
|
---|
6989 | filters from this list are applied to it (in order they are stored
|
---|
6990 | in the list). The first matched filter will determine the
|
---|
6991 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
6992 | performed on the device.
|
---|
6993 |
|
---|
6994 | Unless the device is ignored by these filters, filters of all
|
---|
6995 | currently running virtual machines
|
---|
6996 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
6997 |
|
---|
6998 | <note>
|
---|
6999 | If USB functionality is not available in the given edition of
|
---|
7000 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7001 | </note>
|
---|
7002 |
|
---|
7003 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
7004 | </desc>
|
---|
7005 | </attribute>
|
---|
7006 |
|
---|
7007 | <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
|
---|
7008 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
7009 | </attribute>
|
---|
7010 |
|
---|
7011 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
7012 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
7013 | </attribute>
|
---|
7014 |
|
---|
7015 | <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
|
---|
7016 | <desc>Number of (logical) CPUs online in the host system.</desc>
|
---|
7017 | </attribute>
|
---|
7018 |
|
---|
7019 | <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
|
---|
7020 | <desc>Number of physical processor cores installed in the host system.</desc>
|
---|
7021 | </attribute>
|
---|
7022 |
|
---|
7023 | <method name="getProcessorSpeed">
|
---|
7024 | <desc>Query the (approximate) maximum speed of a specified host CPU in
|
---|
7025 | Megahertz.
|
---|
7026 | </desc>
|
---|
7027 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7028 | <desc>
|
---|
7029 | Identifier of the CPU.
|
---|
7030 | </desc>
|
---|
7031 | </param>
|
---|
7032 | <param name="speed" type="unsigned long" dir="return">
|
---|
7033 | <desc>
|
---|
7034 | Speed value. 0 is returned if value is not known or @a cpuId is
|
---|
7035 | invalid.
|
---|
7036 | </desc>
|
---|
7037 | </param>
|
---|
7038 | </method>
|
---|
7039 |
|
---|
7040 | <method name="getProcessorFeature">
|
---|
7041 | <desc>Query whether a CPU feature is supported or not.</desc>
|
---|
7042 | <param name="feature" type="ProcessorFeature" dir="in">
|
---|
7043 | <desc>
|
---|
7044 | CPU Feature identifier.
|
---|
7045 | </desc>
|
---|
7046 | </param>
|
---|
7047 | <param name="supported" type="boolean" dir="return">
|
---|
7048 | <desc>
|
---|
7049 | Feature is supported or not.
|
---|
7050 | </desc>
|
---|
7051 | </param>
|
---|
7052 | </method>
|
---|
7053 |
|
---|
7054 | <method name="getProcessorDescription">
|
---|
7055 | <desc>Query the model string of a specified host CPU.
|
---|
7056 | </desc>
|
---|
7057 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7058 | <desc>
|
---|
7059 | Identifier of the CPU.
|
---|
7060 | <note>
|
---|
7061 | The current implementation might not necessarily return the
|
---|
7062 | description for this exact CPU.
|
---|
7063 | </note>
|
---|
7064 | </desc>
|
---|
7065 | </param>
|
---|
7066 | <param name="description" type="wstring" dir="return">
|
---|
7067 | <desc>
|
---|
7068 | Model string. An empty string is returned if value is not known or
|
---|
7069 | @a cpuId is invalid.
|
---|
7070 | </desc>
|
---|
7071 | </param>
|
---|
7072 | </method>
|
---|
7073 |
|
---|
7074 | <method name="getProcessorCPUIDLeaf">
|
---|
7075 | <desc>
|
---|
7076 | Returns the CPU cpuid information for the specified leaf.
|
---|
7077 | </desc>
|
---|
7078 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7079 | <desc>
|
---|
7080 | Identifier of the CPU. The CPU most be online.
|
---|
7081 | <note>
|
---|
7082 | The current implementation might not necessarily return the
|
---|
7083 | description for this exact CPU.
|
---|
7084 | </note>
|
---|
7085 | </desc>
|
---|
7086 | </param>
|
---|
7087 | <param name="leaf" type="unsigned long" dir="in">
|
---|
7088 | <desc>
|
---|
7089 | CPUID leaf index (eax).
|
---|
7090 | </desc>
|
---|
7091 | </param>
|
---|
7092 | <param name="subLeaf" type="unsigned long" dir="in">
|
---|
7093 | <desc>
|
---|
7094 | CPUID leaf sub index (ecx). This currently only applies to cache
|
---|
7095 | information on Intel CPUs. Use 0 if retrieving values for
|
---|
7096 | <link to="IMachine::setCPUIDLeaf"/>.
|
---|
7097 | </desc>
|
---|
7098 | </param>
|
---|
7099 | <param name="valEax" type="unsigned long" dir="out">
|
---|
7100 | <desc>
|
---|
7101 | CPUID leaf value for register eax.
|
---|
7102 | </desc>
|
---|
7103 | </param>
|
---|
7104 | <param name="valEbx" type="unsigned long" dir="out">
|
---|
7105 | <desc>
|
---|
7106 | CPUID leaf value for register ebx.
|
---|
7107 | </desc>
|
---|
7108 | </param>
|
---|
7109 | <param name="valEcx" type="unsigned long" dir="out">
|
---|
7110 | <desc>
|
---|
7111 | CPUID leaf value for register ecx.
|
---|
7112 | </desc>
|
---|
7113 | </param>
|
---|
7114 | <param name="valEdx" type="unsigned long" dir="out">
|
---|
7115 | <desc>
|
---|
7116 | CPUID leaf value for register edx.
|
---|
7117 | </desc>
|
---|
7118 | </param>
|
---|
7119 | </method>
|
---|
7120 |
|
---|
7121 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
7122 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
7123 | </attribute>
|
---|
7124 |
|
---|
7125 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
7126 | <desc>Available system memory in the host system.</desc>
|
---|
7127 | </attribute>
|
---|
7128 |
|
---|
7129 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
7130 | <desc>Name of the host system's operating system.</desc>
|
---|
7131 | </attribute>
|
---|
7132 |
|
---|
7133 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
7134 | <desc>Host operating system's version string.</desc>
|
---|
7135 | </attribute>
|
---|
7136 |
|
---|
7137 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
7138 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
7139 | </attribute>
|
---|
7140 |
|
---|
7141 | <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
|
---|
7142 | <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
|
---|
7143 | </attribute>
|
---|
7144 |
|
---|
7145 | <method name="createHostOnlyNetworkInterface">
|
---|
7146 | <desc>
|
---|
7147 | Creates a new adapter for Host Only Networking.
|
---|
7148 | <result name="E_INVALIDARG">
|
---|
7149 | Host network interface @a name already exists.
|
---|
7150 | </result>
|
---|
7151 | </desc>
|
---|
7152 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
7153 | <desc>
|
---|
7154 | Created host interface object.
|
---|
7155 | </desc>
|
---|
7156 | </param>
|
---|
7157 | <param name="progress" type="IProgress" dir="return">
|
---|
7158 | <desc>
|
---|
7159 | Progress object to track the operation completion.
|
---|
7160 | </desc>
|
---|
7161 | </param>
|
---|
7162 | </method>
|
---|
7163 |
|
---|
7164 | <method name="removeHostOnlyNetworkInterface">
|
---|
7165 | <desc>
|
---|
7166 | Removes the given Host Only Networking interface.
|
---|
7167 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7168 | No host network interface matching @a id found.
|
---|
7169 | </result>
|
---|
7170 | </desc>
|
---|
7171 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7172 | <desc>
|
---|
7173 | Adapter GUID.
|
---|
7174 | </desc>
|
---|
7175 | </param>
|
---|
7176 | <param name="progress" type="IProgress" dir="return">
|
---|
7177 | <desc>
|
---|
7178 | Progress object to track the operation completion.
|
---|
7179 | </desc>
|
---|
7180 | </param>
|
---|
7181 | </method>
|
---|
7182 |
|
---|
7183 | <method name="createUSBDeviceFilter">
|
---|
7184 | <desc>
|
---|
7185 | Creates a new USB device filter. All attributes except
|
---|
7186 | the filter name are set to empty (any match),
|
---|
7187 | <i>active</i> is @c false (the filter is not active).
|
---|
7188 |
|
---|
7189 | The created filter can be added to the list of filters using
|
---|
7190 | <link to="#insertUSBDeviceFilter"/>.
|
---|
7191 |
|
---|
7192 | <see>#USBDeviceFilters</see>
|
---|
7193 | </desc>
|
---|
7194 | <param name="name" type="wstring" dir="in">
|
---|
7195 | <desc>
|
---|
7196 | Filter name. See <link to="IUSBDeviceFilter::name"/> for more information.
|
---|
7197 | </desc>
|
---|
7198 | </param>
|
---|
7199 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7200 | <desc>Created filter object.</desc>
|
---|
7201 | </param>
|
---|
7202 | </method>
|
---|
7203 |
|
---|
7204 | <method name="insertUSBDeviceFilter">
|
---|
7205 | <desc>
|
---|
7206 | Inserts the given USB device to the specified position
|
---|
7207 | in the list of filters.
|
---|
7208 |
|
---|
7209 | Positions are numbered starting from @c 0. If the specified
|
---|
7210 | position is equal to or greater than the number of elements in
|
---|
7211 | the list, the filter is added at the end of the collection.
|
---|
7212 |
|
---|
7213 | <note>
|
---|
7214 | Duplicates are not allowed, so an attempt to insert a
|
---|
7215 | filter already in the list is an error.
|
---|
7216 | </note>
|
---|
7217 | <note>
|
---|
7218 | If USB functionality is not available in the given edition of
|
---|
7219 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7220 | </note>
|
---|
7221 |
|
---|
7222 | <see>#USBDeviceFilters</see>
|
---|
7223 |
|
---|
7224 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7225 | USB device filter is not created within this VirtualBox instance.
|
---|
7226 | </result>
|
---|
7227 | <result name="E_INVALIDARG">
|
---|
7228 | USB device filter already in list.
|
---|
7229 | </result>
|
---|
7230 |
|
---|
7231 | </desc>
|
---|
7232 | <param name="position" type="unsigned long" dir="in">
|
---|
7233 | <desc>Position to insert the filter to.</desc>
|
---|
7234 | </param>
|
---|
7235 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
7236 | <desc>USB device filter to insert.</desc>
|
---|
7237 | </param>
|
---|
7238 | </method>
|
---|
7239 |
|
---|
7240 | <method name="removeUSBDeviceFilter">
|
---|
7241 | <desc>
|
---|
7242 | Removes a USB device filter from the specified position in the
|
---|
7243 | list of filters.
|
---|
7244 |
|
---|
7245 | Positions are numbered starting from @c 0. Specifying a
|
---|
7246 | position equal to or greater than the number of elements in
|
---|
7247 | the list will produce an error.
|
---|
7248 |
|
---|
7249 | <note>
|
---|
7250 | If USB functionality is not available in the given edition of
|
---|
7251 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7252 | </note>
|
---|
7253 |
|
---|
7254 | <see>#USBDeviceFilters</see>
|
---|
7255 |
|
---|
7256 | <result name="E_INVALIDARG">
|
---|
7257 | USB device filter list empty or invalid @a position.
|
---|
7258 | </result>
|
---|
7259 |
|
---|
7260 | </desc>
|
---|
7261 | <param name="position" type="unsigned long" dir="in">
|
---|
7262 | <desc>Position to remove the filter from.</desc>
|
---|
7263 | </param>
|
---|
7264 | </method>
|
---|
7265 |
|
---|
7266 | <method name="findHostDVDDrive">
|
---|
7267 | <desc>
|
---|
7268 | Searches for a host DVD drive with the given @c name.
|
---|
7269 |
|
---|
7270 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7271 | Given @c name does not correspond to any host drive.
|
---|
7272 | </result>
|
---|
7273 |
|
---|
7274 | </desc>
|
---|
7275 | <param name="name" type="wstring" dir="in">
|
---|
7276 | <desc>Name of the host drive to search for</desc>
|
---|
7277 | </param>
|
---|
7278 | <param name="drive" type="IMedium" dir="return">
|
---|
7279 | <desc>Found host drive object</desc>
|
---|
7280 | </param>
|
---|
7281 | </method>
|
---|
7282 |
|
---|
7283 | <method name="findHostFloppyDrive">
|
---|
7284 | <desc>
|
---|
7285 | Searches for a host floppy drive with the given @c name.
|
---|
7286 |
|
---|
7287 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7288 | Given @c name does not correspond to any host floppy drive.
|
---|
7289 | </result>
|
---|
7290 |
|
---|
7291 | </desc>
|
---|
7292 | <param name="name" type="wstring" dir="in">
|
---|
7293 | <desc>Name of the host floppy drive to search for</desc>
|
---|
7294 | </param>
|
---|
7295 | <param name="drive" type="IMedium" dir="return">
|
---|
7296 | <desc>Found host floppy drive object</desc>
|
---|
7297 | </param>
|
---|
7298 | </method>
|
---|
7299 |
|
---|
7300 | <method name="findHostNetworkInterfaceByName">
|
---|
7301 | <desc>
|
---|
7302 | Searches through all host network interfaces for an interface with
|
---|
7303 | the given @c name.
|
---|
7304 | <note>
|
---|
7305 | The method returns an error if the given @c name does not
|
---|
7306 | correspond to any host network interface.
|
---|
7307 | </note>
|
---|
7308 | </desc>
|
---|
7309 | <param name="name" type="wstring" dir="in">
|
---|
7310 | <desc>Name of the host network interface to search for.</desc>
|
---|
7311 | </param>
|
---|
7312 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7313 | <desc>Found host network interface object.</desc>
|
---|
7314 | </param>
|
---|
7315 | </method>
|
---|
7316 | <method name="findHostNetworkInterfaceById">
|
---|
7317 | <desc>
|
---|
7318 | Searches through all host network interfaces for an interface with
|
---|
7319 | the given GUID.
|
---|
7320 | <note>
|
---|
7321 | The method returns an error if the given GUID does not
|
---|
7322 | correspond to any host network interface.
|
---|
7323 | </note>
|
---|
7324 | </desc>
|
---|
7325 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7326 | <desc>GUID of the host network interface to search for.</desc>
|
---|
7327 | </param>
|
---|
7328 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7329 | <desc>Found host network interface object.</desc>
|
---|
7330 | </param>
|
---|
7331 | </method>
|
---|
7332 | <method name="findHostNetworkInterfacesOfType">
|
---|
7333 | <desc>
|
---|
7334 | Searches through all host network interfaces and returns a list of interfaces of the specified type
|
---|
7335 | </desc>
|
---|
7336 | <param name="type" type="HostNetworkInterfaceType" dir="in">
|
---|
7337 | <desc>type of the host network interfaces to search for.</desc>
|
---|
7338 | </param>
|
---|
7339 | <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
|
---|
7340 | <desc>Found host network interface objects.</desc>
|
---|
7341 | </param>
|
---|
7342 | </method>
|
---|
7343 |
|
---|
7344 | <method name="findUSBDeviceById">
|
---|
7345 | <desc>
|
---|
7346 | Searches for a USB device with the given UUID.
|
---|
7347 |
|
---|
7348 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7349 | Given @c id does not correspond to any USB device.
|
---|
7350 | </result>
|
---|
7351 |
|
---|
7352 | <see>IHostUSBDevice::id</see>
|
---|
7353 | </desc>
|
---|
7354 | <param name="id" type="uuid" mod="string" dir="in">
|
---|
7355 | <desc>UUID of the USB device to search for.</desc>
|
---|
7356 | </param>
|
---|
7357 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7358 | <desc>Found USB device object.</desc>
|
---|
7359 | </param>
|
---|
7360 | </method>
|
---|
7361 |
|
---|
7362 | <method name="findUSBDeviceByAddress">
|
---|
7363 | <desc>
|
---|
7364 | Searches for a USB device with the given host address.
|
---|
7365 |
|
---|
7366 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7367 | Given @c name does not correspond to any USB device.
|
---|
7368 | </result>
|
---|
7369 |
|
---|
7370 | <see>IHostUSBDevice::address</see>
|
---|
7371 | </desc>
|
---|
7372 | <param name="name" type="wstring" dir="in">
|
---|
7373 | <desc>
|
---|
7374 | Address of the USB device (as assigned by the host) to
|
---|
7375 | search for.
|
---|
7376 | </desc>
|
---|
7377 | </param>
|
---|
7378 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7379 | <desc>Found USB device object.</desc>
|
---|
7380 | </param>
|
---|
7381 | </method>
|
---|
7382 |
|
---|
7383 | </interface>
|
---|
7384 |
|
---|
7385 | <!--
|
---|
7386 | // ISystemProperties
|
---|
7387 | /////////////////////////////////////////////////////////////////////////
|
---|
7388 | -->
|
---|
7389 |
|
---|
7390 | <interface
|
---|
7391 | name="ISystemProperties"
|
---|
7392 | extends="$unknown"
|
---|
7393 | uuid="2f89cdfe-2d10-43d4-b37f-61760f877f29"
|
---|
7394 | wsmap="managed"
|
---|
7395 | >
|
---|
7396 | <desc>
|
---|
7397 | The ISystemProperties interface represents global properties of the given
|
---|
7398 | VirtualBox installation.
|
---|
7399 |
|
---|
7400 | These properties define limits and default values for various attributes
|
---|
7401 | and parameters. Most of the properties are read-only, but some can be
|
---|
7402 | changed by a user.
|
---|
7403 | </desc>
|
---|
7404 |
|
---|
7405 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
7406 | <desc>Minimum guest system memory in Megabytes.</desc>
|
---|
7407 | </attribute>
|
---|
7408 |
|
---|
7409 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
7410 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
7411 | </attribute>
|
---|
7412 |
|
---|
7413 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7414 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
7415 | </attribute>
|
---|
7416 |
|
---|
7417 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7418 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
7419 | </attribute>
|
---|
7420 |
|
---|
7421 | <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7422 | <desc>Minimum CPU count.</desc>
|
---|
7423 | </attribute>
|
---|
7424 |
|
---|
7425 | <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7426 | <desc>Maximum CPU count.</desc>
|
---|
7427 | </attribute>
|
---|
7428 |
|
---|
7429 | <attribute name="maxGuestMonitors" type="unsigned long" readonly="yes">
|
---|
7430 | <desc>Maximum of monitors which could be connected.</desc>
|
---|
7431 | </attribute>
|
---|
7432 |
|
---|
7433 | <attribute name="infoVDSize" type="long long" readonly="yes">
|
---|
7434 | <desc>Maximum size of a virtual disk image in bytes. Informational value,
|
---|
7435 | does not reflect the limits of any virtual disk image format.</desc>
|
---|
7436 | </attribute>
|
---|
7437 |
|
---|
7438 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
7439 | <desc>
|
---|
7440 | Maximum number of serial ports associated with every
|
---|
7441 | <link to="IMachine"/> instance.
|
---|
7442 | </desc>
|
---|
7443 | </attribute>
|
---|
7444 |
|
---|
7445 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
7446 | <desc>
|
---|
7447 | Maximum number of parallel ports associated with every
|
---|
7448 | <link to="IMachine"/> instance.
|
---|
7449 | </desc>
|
---|
7450 | </attribute>
|
---|
7451 |
|
---|
7452 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
7453 | <desc>
|
---|
7454 | Maximum device position in the boot order. This value corresponds
|
---|
7455 | to the total number of devices a machine can boot from, to make it
|
---|
7456 | possible to include all possible devices to the boot list.
|
---|
7457 | <see><link to="IMachine::setBootOrder"/></see>
|
---|
7458 | </desc>
|
---|
7459 | </attribute>
|
---|
7460 |
|
---|
7461 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
7462 | <desc>
|
---|
7463 | Full path to the default directory used to create new or open
|
---|
7464 | existing machines when a machine settings file name contains no
|
---|
7465 | path.
|
---|
7466 |
|
---|
7467 | Starting with VirtualBox 4.0, by default, this attribute contains
|
---|
7468 | the full path of folder named "VirtualBox VMs" in the user's
|
---|
7469 | home directory, which depends on the host platform.
|
---|
7470 |
|
---|
7471 | When setting this attribute, a full path must be specified.
|
---|
7472 | Setting this property to @c null or an empty string or the
|
---|
7473 | special value "Machines" (for compatibility reasons) will restore
|
---|
7474 | that default value.
|
---|
7475 |
|
---|
7476 | If the folder specified herein does not exist, it will be created
|
---|
7477 | automatically as needed.
|
---|
7478 |
|
---|
7479 | <see>
|
---|
7480 | <link to="IVirtualBox::createMachine"/>,
|
---|
7481 | <link to="IVirtualBox::openMachine"/>
|
---|
7482 | </see>
|
---|
7483 | </desc>
|
---|
7484 | </attribute>
|
---|
7485 |
|
---|
7486 | <attribute name="mediumFormats" type="IMediumFormat" safearray="yes" readonly="yes">
|
---|
7487 | <desc>
|
---|
7488 | List of all medium storage formats supported by this VirtualBox
|
---|
7489 | installation.
|
---|
7490 |
|
---|
7491 | Keep in mind that the medium format identifier
|
---|
7492 | (<link to="IMediumFormat::id"/>) used in other API calls like
|
---|
7493 | <link to="IVirtualBox::createHardDisk"/> to refer to a particular
|
---|
7494 | medium format is a case-insensitive string. This means that, for
|
---|
7495 | example, all of the following strings:
|
---|
7496 | <pre>
|
---|
7497 | "VDI"
|
---|
7498 | "vdi"
|
---|
7499 | "VdI"</pre>
|
---|
7500 | refer to the same medium format.
|
---|
7501 |
|
---|
7502 | Note that the virtual medium framework is backend-based, therefore
|
---|
7503 | the list of supported formats depends on what backends are currently
|
---|
7504 | installed.
|
---|
7505 |
|
---|
7506 | <see>
|
---|
7507 | <link to="IMediumFormat"/>,
|
---|
7508 | </see>
|
---|
7509 | </desc>
|
---|
7510 | </attribute>
|
---|
7511 |
|
---|
7512 | <attribute name="defaultHardDiskFormat" type="wstring">
|
---|
7513 | <desc>
|
---|
7514 | Identifier of the default medium format used by VirtualBox.
|
---|
7515 |
|
---|
7516 | The medium format set by this attribute is used by VirtualBox
|
---|
7517 | when the medium format was not specified explicitly. One example is
|
---|
7518 | <link to="IVirtualBox::createHardDisk"/> with the empty
|
---|
7519 | format argument. A more complex example is implicit creation of
|
---|
7520 | differencing media when taking a snapshot of a virtual machine:
|
---|
7521 | this operation will try to use a format of the parent medium first
|
---|
7522 | and if this format does not support differencing media the default
|
---|
7523 | format specified by this argument will be used.
|
---|
7524 |
|
---|
7525 | The list of supported medium formats may be obtained by the
|
---|
7526 | <link to="#mediumFormats"/> call. Note that the default medium
|
---|
7527 | format must have a capability to create differencing media;
|
---|
7528 | otherwise operations that create media implicitly may fail
|
---|
7529 | unexpectedly.
|
---|
7530 |
|
---|
7531 | The initial value of this property is <tt>"VDI"</tt> in the current
|
---|
7532 | version of the VirtualBox product, but may change in the future.
|
---|
7533 |
|
---|
7534 | <note>
|
---|
7535 | Setting this property to @c null or empty string will restore the
|
---|
7536 | initial value.
|
---|
7537 | </note>
|
---|
7538 |
|
---|
7539 | <see>
|
---|
7540 | <link to="#mediumFormats"/>,
|
---|
7541 | <link to="IMediumFormat::id"/>,
|
---|
7542 | <link to="IVirtualBox::createHardDisk"/>
|
---|
7543 | </see>
|
---|
7544 | </desc>
|
---|
7545 | </attribute>
|
---|
7546 |
|
---|
7547 | <attribute name="freeDiskSpaceWarning" type="long long">
|
---|
7548 | <desc>Issue a warning if the free disk space is below (or in some disk
|
---|
7549 | intensive operation is expected to go below) the given size in
|
---|
7550 | bytes.</desc>
|
---|
7551 | </attribute>
|
---|
7552 |
|
---|
7553 | <attribute name="freeDiskSpacePercentWarning" type="unsigned long">
|
---|
7554 | <desc>Issue a warning if the free disk space is below (or in some disk
|
---|
7555 | intensive operation is expected to go below) the given percentage.</desc>
|
---|
7556 | </attribute>
|
---|
7557 |
|
---|
7558 | <attribute name="freeDiskSpaceError" type="long long">
|
---|
7559 | <desc>Issue an error if the free disk space is below (or in some disk
|
---|
7560 | intensive operation is expected to go below) the given size in
|
---|
7561 | bytes.</desc>
|
---|
7562 | </attribute>
|
---|
7563 |
|
---|
7564 | <attribute name="freeDiskSpacePercentError" type="unsigned long">
|
---|
7565 | <desc>Issue an error if the free disk space is below (or in some disk
|
---|
7566 | intensive operation is expected to go below) the given percentage.</desc>
|
---|
7567 | </attribute>
|
---|
7568 |
|
---|
7569 | <attribute name="VRDEAuthLibrary" type="wstring">
|
---|
7570 | <desc>
|
---|
7571 | Library that provides authentication for Remote Desktop clients. The library
|
---|
7572 | is used if a virtual machine's authentication type is set to "external"
|
---|
7573 | in the VM RemoteDisplay configuration.
|
---|
7574 |
|
---|
7575 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
7576 | A full path can be specified; if not, then the library must reside on the
|
---|
7577 | system's default library path.
|
---|
7578 |
|
---|
7579 | The default value of this property is <tt>"VBoxAuth"</tt>. There is a library
|
---|
7580 | of that name in one of the default VirtualBox library directories.
|
---|
7581 |
|
---|
7582 | For details about VirtualBox authentication libraries and how to implement
|
---|
7583 | them, please refer to the VirtualBox manual.
|
---|
7584 |
|
---|
7585 | <note>
|
---|
7586 | Setting this property to @c null or empty string will restore the
|
---|
7587 | initial value.
|
---|
7588 | </note>
|
---|
7589 | </desc>
|
---|
7590 | </attribute>
|
---|
7591 |
|
---|
7592 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
7593 | <desc>
|
---|
7594 | Library that provides authentication for webservice clients. The library
|
---|
7595 | is used if a virtual machine's authentication type is set to "external"
|
---|
7596 | in the VM RemoteDisplay configuration and will be called from
|
---|
7597 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
7598 |
|
---|
7599 | As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />,
|
---|
7600 | there is no per-VM setting for this, as the webservice is a global
|
---|
7601 | resource (if it is running). Only for this setting (for the webservice),
|
---|
7602 | setting this value to a literal <tt>"null"</tt> string disables authentication,
|
---|
7603 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
7604 | no matter what user name and password are supplied.
|
---|
7605 |
|
---|
7606 | The initial value of this property is <tt>"VBoxAuth"</tt>,
|
---|
7607 | meaning that the webservice will use the same authentication
|
---|
7608 | library that is used by default for VRDE (again, see
|
---|
7609 | <link to="ISystemProperties::VRDEAuthLibrary" />).
|
---|
7610 | The format and calling convention of authentication libraries
|
---|
7611 | is the same for the webservice as it is for VRDE.
|
---|
7612 |
|
---|
7613 | <note>
|
---|
7614 | Setting this property to @c null or empty string will restore the
|
---|
7615 | initial value.
|
---|
7616 | </note>
|
---|
7617 | </desc>
|
---|
7618 | </attribute>
|
---|
7619 |
|
---|
7620 | <attribute name="defaultVRDEExtPack" type="wstring">
|
---|
7621 | <desc>
|
---|
7622 | The name of the extension pack providing the default VRDE.
|
---|
7623 |
|
---|
7624 | This attribute is for choosing between multiple extension packs
|
---|
7625 | providing VRDE. If only one is installed, it will automatically be the
|
---|
7626 | default one. The attribute value can be empty if no VRDE extension
|
---|
7627 | pack is installed.
|
---|
7628 |
|
---|
7629 | For details about VirtualBox Remote Desktop Extension and how to
|
---|
7630 | implement one, please refer to the VirtualBox SDK.
|
---|
7631 | </desc>
|
---|
7632 | </attribute>
|
---|
7633 |
|
---|
7634 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
7635 | <desc>
|
---|
7636 | This value specifies how many old release log files are kept.
|
---|
7637 | </desc>
|
---|
7638 | </attribute>
|
---|
7639 |
|
---|
7640 | <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
|
---|
7641 | <desc>This value hold the default audio driver for the current
|
---|
7642 | system.</desc>
|
---|
7643 | </attribute>
|
---|
7644 |
|
---|
7645 |
|
---|
7646 | <method name="getMaxNetworkAdapters">
|
---|
7647 | <desc>
|
---|
7648 | Maximum total number of network adapters associated with every
|
---|
7649 | <link to="IMachine"/> instance.
|
---|
7650 | </desc>
|
---|
7651 |
|
---|
7652 | <param name="chipset" type="ChipsetType" dir="in">
|
---|
7653 | <desc>The chipset type to get the value for.</desc>
|
---|
7654 | </param>
|
---|
7655 |
|
---|
7656 |
|
---|
7657 | <param name="maxNetworkAdapters" type="unsigned long" dir="return">
|
---|
7658 | <desc>The maximum total number of network adapters allowed.</desc>
|
---|
7659 | </param>
|
---|
7660 |
|
---|
7661 | </method>
|
---|
7662 |
|
---|
7663 | <method name="getMaxNetworkAdaptersOfType">
|
---|
7664 | <desc>
|
---|
7665 | Maximum number of network adapters of a given attachment type,
|
---|
7666 | associated with every <link to="IMachine"/> instance.
|
---|
7667 | </desc>
|
---|
7668 |
|
---|
7669 | <param name="chipset" type="ChipsetType" dir="in">
|
---|
7670 | <desc>The chipset type to get the value for.</desc>
|
---|
7671 | </param>
|
---|
7672 |
|
---|
7673 | <param name="type" type="NetworkAttachmentType" dir="in">
|
---|
7674 | <desc>Type of attachment.</desc>
|
---|
7675 | </param>
|
---|
7676 |
|
---|
7677 | <param name="maxNetworkAdapters" type="unsigned long" dir="return">
|
---|
7678 | <desc>The maximum number of network adapters allowed for
|
---|
7679 | particular chipset and attachment type.</desc>
|
---|
7680 | </param>
|
---|
7681 |
|
---|
7682 | </method>
|
---|
7683 |
|
---|
7684 |
|
---|
7685 | <method name="getMaxDevicesPerPortForStorageBus">
|
---|
7686 | <desc>Returns the maximum number of devices which can be attached to a port
|
---|
7687 | for the given storage bus.</desc>
|
---|
7688 |
|
---|
7689 | <param name="bus" type="StorageBus" dir="in">
|
---|
7690 | <desc>The storage bus type to get the value for.</desc>
|
---|
7691 | </param>
|
---|
7692 |
|
---|
7693 | <param name="maxDevicesPerPort" type="unsigned long" dir="return">
|
---|
7694 | <desc>The maximum number of devices which can be attached to the port for the given
|
---|
7695 | storage bus.</desc>
|
---|
7696 | </param>
|
---|
7697 | </method>
|
---|
7698 |
|
---|
7699 | <method name="getMinPortCountForStorageBus">
|
---|
7700 | <desc>Returns the minimum number of ports the given storage bus supports.</desc>
|
---|
7701 |
|
---|
7702 | <param name="bus" type="StorageBus" dir="in">
|
---|
7703 | <desc>The storage bus type to get the value for.</desc>
|
---|
7704 | </param>
|
---|
7705 |
|
---|
7706 | <param name="minPortCount" type="unsigned long" dir="return">
|
---|
7707 | <desc>The minimum number of ports for the given storage bus.</desc>
|
---|
7708 | </param>
|
---|
7709 | </method>
|
---|
7710 |
|
---|
7711 | <method name="getMaxPortCountForStorageBus">
|
---|
7712 | <desc>Returns the maximum number of ports the given storage bus supports.</desc>
|
---|
7713 |
|
---|
7714 | <param name="bus" type="StorageBus" dir="in">
|
---|
7715 | <desc>The storage bus type to get the value for.</desc>
|
---|
7716 | </param>
|
---|
7717 |
|
---|
7718 | <param name="maxPortCount" type="unsigned long" dir="return">
|
---|
7719 | <desc>The maximum number of ports for the given storage bus.</desc>
|
---|
7720 | </param>
|
---|
7721 | </method>
|
---|
7722 |
|
---|
7723 | <method name="getMaxInstancesOfStorageBus">
|
---|
7724 | <desc>Returns the maximum number of storage bus instances which
|
---|
7725 | can be configured for each VM. This corresponds to the number of
|
---|
7726 | storage controllers one can have. Value may depend on chipset type
|
---|
7727 | used.</desc>
|
---|
7728 |
|
---|
7729 | <param name="chipset" type="ChipsetType" dir="in">
|
---|
7730 | <desc>The chipset type to get the value for.</desc>
|
---|
7731 | </param>
|
---|
7732 |
|
---|
7733 | <param name="bus" type="StorageBus" dir="in">
|
---|
7734 | <desc>The storage bus type to get the value for.</desc>
|
---|
7735 | </param>
|
---|
7736 |
|
---|
7737 | <param name="maxInstances" type="unsigned long" dir="return">
|
---|
7738 | <desc>The maximum number of instances for the given storage bus.</desc>
|
---|
7739 | </param>
|
---|
7740 | </method>
|
---|
7741 |
|
---|
7742 | <method name="getDeviceTypesForStorageBus">
|
---|
7743 | <desc>Returns list of all the supported device types
|
---|
7744 | (<link to="DeviceType"/>) for the given type of storage
|
---|
7745 | bus.</desc>
|
---|
7746 |
|
---|
7747 | <param name="bus" type="StorageBus" dir="in">
|
---|
7748 | <desc>The storage bus type to get the value for.</desc>
|
---|
7749 | </param>
|
---|
7750 |
|
---|
7751 | <param name="deviceTypes" type="DeviceType" safearray="yes" dir="return">
|
---|
7752 | <desc>The list of all supported device types for the given storage bus.</desc>
|
---|
7753 | </param>
|
---|
7754 | </method>
|
---|
7755 |
|
---|
7756 | <method name="getDefaultIoCacheSettingForStorageController">
|
---|
7757 | <desc>Returns the default I/O cache setting for the
|
---|
7758 | given storage controller</desc>
|
---|
7759 |
|
---|
7760 | <param name="controllerType" type="StorageControllerType" dir="in">
|
---|
7761 | <desc>The storage controller to the setting for.</desc>
|
---|
7762 | </param>
|
---|
7763 |
|
---|
7764 | <param name="enabled" type="boolean" dir="return">
|
---|
7765 | <desc>Returned flag indicating the default value</desc>
|
---|
7766 | </param>
|
---|
7767 | </method>
|
---|
7768 | </interface>
|
---|
7769 |
|
---|
7770 | <!--
|
---|
7771 | // IGuest
|
---|
7772 | /////////////////////////////////////////////////////////////////////////
|
---|
7773 | -->
|
---|
7774 |
|
---|
7775 | <interface
|
---|
7776 | name="IGuestOSType" extends="$unknown"
|
---|
7777 | uuid="432c1546-1354-4abf-bf08-878a32a373f5"
|
---|
7778 | wsmap="struct"
|
---|
7779 | >
|
---|
7780 | <desc>
|
---|
7781 | </desc>
|
---|
7782 |
|
---|
7783 | <attribute name="familyId" type="wstring" readonly="yes">
|
---|
7784 | <desc>Guest OS family identifier string.</desc>
|
---|
7785 | </attribute>
|
---|
7786 |
|
---|
7787 | <attribute name="familyDescription" type="wstring" readonly="yes">
|
---|
7788 | <desc>Human readable description of the guest OS family.</desc>
|
---|
7789 | </attribute>
|
---|
7790 |
|
---|
7791 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7792 | <desc>Guest OS identifier string.</desc>
|
---|
7793 | </attribute>
|
---|
7794 |
|
---|
7795 | <attribute name="description" type="wstring" readonly="yes">
|
---|
7796 | <desc>Human readable description of the guest OS.</desc>
|
---|
7797 | </attribute>
|
---|
7798 |
|
---|
7799 | <attribute name="is64Bit" type="boolean" readonly="yes">
|
---|
7800 | <desc>Returns @c true if the given OS is 64-bit</desc>
|
---|
7801 | </attribute>
|
---|
7802 |
|
---|
7803 | <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
|
---|
7804 | <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
|
---|
7805 | </attribute>
|
---|
7806 |
|
---|
7807 | <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
|
---|
7808 | <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
|
---|
7809 | </attribute>
|
---|
7810 |
|
---|
7811 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
7812 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
7813 | </attribute>
|
---|
7814 |
|
---|
7815 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
7816 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
7817 | </attribute>
|
---|
7818 |
|
---|
7819 | <attribute name="recommendedHDD" type="long long" readonly="yes">
|
---|
7820 | <desc>Recommended hard disk size in bytes.</desc>
|
---|
7821 | </attribute>
|
---|
7822 |
|
---|
7823 | <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
|
---|
7824 | <desc>Returns recommended network adapter for this OS type.</desc>
|
---|
7825 | </attribute>
|
---|
7826 |
|
---|
7827 | <attribute name="recommendedPae" type="boolean" readonly="yes">
|
---|
7828 | <desc>Returns @c true if using PAE is recommended for this OS type.</desc>
|
---|
7829 | </attribute>
|
---|
7830 |
|
---|
7831 | <attribute name="recommendedDvdStorageController" type="StorageControllerType" readonly="yes">
|
---|
7832 | <desc>Recommended storage controller type for DVD/CD drives.</desc>
|
---|
7833 | </attribute>
|
---|
7834 |
|
---|
7835 | <attribute name="recommendedDvdStorageBus" type="StorageBus" readonly="yes">
|
---|
7836 | <desc>Recommended storage bus type for DVD/CD drives.</desc>
|
---|
7837 | </attribute>
|
---|
7838 |
|
---|
7839 | <attribute name="recommendedHdStorageController" type="StorageControllerType" readonly="yes">
|
---|
7840 | <desc>Recommended storage controller type for HD drives.</desc>
|
---|
7841 | </attribute>
|
---|
7842 |
|
---|
7843 | <attribute name="recommendedHdStorageBus" type="StorageBus" readonly="yes">
|
---|
7844 | <desc>Recommended storage bus type for HD drives.</desc>
|
---|
7845 | </attribute>
|
---|
7846 |
|
---|
7847 | <attribute name="recommendedFirmware" type="FirmwareType" readonly="yes">
|
---|
7848 | <desc>Recommended firmware type.</desc>
|
---|
7849 | </attribute>
|
---|
7850 |
|
---|
7851 | <attribute name="recommendedUsbHid" type="boolean" readonly="yes">
|
---|
7852 | <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc>
|
---|
7853 | </attribute>
|
---|
7854 |
|
---|
7855 | <attribute name="recommendedHpet" type="boolean" readonly="yes">
|
---|
7856 | <desc>Returns @c true if using HPET is recommended for this OS type.</desc>
|
---|
7857 | </attribute>
|
---|
7858 |
|
---|
7859 | <attribute name="recommendedUsbTablet" type="boolean" readonly="yes">
|
---|
7860 | <desc>Returns @c true if using a USB Tablet is recommended.</desc>
|
---|
7861 | </attribute>
|
---|
7862 |
|
---|
7863 | <attribute name="recommendedRtcUseUtc" type="boolean" readonly="yes">
|
---|
7864 | <desc>Returns @c true if the RTC of this VM should be set to UTC</desc>
|
---|
7865 | </attribute>
|
---|
7866 |
|
---|
7867 | <attribute name="recommendedChipset" type="ChipsetType" readonly="yes">
|
---|
7868 | <desc>Recommended chipset type.</desc>
|
---|
7869 | </attribute>
|
---|
7870 |
|
---|
7871 | <attribute name="recommendedAudioController" type="AudioControllerType" readonly="yes">
|
---|
7872 | <desc>Recommended audio type.</desc>
|
---|
7873 | </attribute>
|
---|
7874 |
|
---|
7875 | </interface>
|
---|
7876 |
|
---|
7877 | <enum
|
---|
7878 | name="AdditionsFacilityType"
|
---|
7879 | uuid="98f7f957-89fb-49b6-a3b1-31e3285eb1d8"
|
---|
7880 | >
|
---|
7881 | <desc>
|
---|
7882 | Guest Additions facility IDs.
|
---|
7883 | </desc>
|
---|
7884 |
|
---|
7885 | <const name="None" value="0">
|
---|
7886 | <desc>No/invalid facility.</desc>
|
---|
7887 | </const>
|
---|
7888 | <const name="VBoxGuestDriver" value="20">
|
---|
7889 | <desc>VirtualBox base driver (VBoxGuest).</desc>
|
---|
7890 | </const>
|
---|
7891 | <const name="VBoxService" value="100">
|
---|
7892 | <desc>VirtualBox system service (VBoxService).</desc>
|
---|
7893 | </const>
|
---|
7894 | <const name="VBoxTrayClient" value="101">
|
---|
7895 | <desc>VirtualBox desktop integration (VBoxTray on Windows, VBoxClient on non-Windows).</desc>
|
---|
7896 | </const>
|
---|
7897 | <const name="Seamless" value="1000">
|
---|
7898 | <desc>Seamless guest desktop integration.</desc>
|
---|
7899 | </const>
|
---|
7900 | <const name="Graphics" value="1100">
|
---|
7901 | <desc>Guest graphics mode. If not enabled, seamless rendering will not work, resize hints
|
---|
7902 | are not immediately acted on and guest display resizes are probably not initiated by
|
---|
7903 | the guest additions.
|
---|
7904 | </desc>
|
---|
7905 | </const>
|
---|
7906 | <const name="All" value="2147483646">
|
---|
7907 | <desc>All facilities selected.</desc>
|
---|
7908 | </const>
|
---|
7909 | </enum>
|
---|
7910 |
|
---|
7911 | <enum
|
---|
7912 | name="AdditionsFacilityStatus"
|
---|
7913 | uuid="ce06f9e1-394e-4fe9-9368-5a88c567dbde"
|
---|
7914 | >
|
---|
7915 | <desc>
|
---|
7916 | Guest Additions facility states.
|
---|
7917 | </desc>
|
---|
7918 |
|
---|
7919 | <const name="Inactive" value="0">
|
---|
7920 | <desc>Facility is not active.</desc>
|
---|
7921 | </const>
|
---|
7922 | <const name="Paused" value="1">
|
---|
7923 | <desc>Facility has been paused.</desc>
|
---|
7924 | </const>
|
---|
7925 | <const name="PreInit" value="20">
|
---|
7926 | <desc>Facility is preparing to initialize.</desc>
|
---|
7927 | </const>
|
---|
7928 | <const name="Init" value="30">
|
---|
7929 | <desc>Facility is initializing.</desc>
|
---|
7930 | </const>
|
---|
7931 | <const name="Active" value="50">
|
---|
7932 | <desc>Facility is up and running.</desc>
|
---|
7933 | </const>
|
---|
7934 | <const name="Terminating" value="100">
|
---|
7935 | <desc>Facility is shutting down.</desc>
|
---|
7936 | </const>
|
---|
7937 | <const name="Terminated" value="101">
|
---|
7938 | <desc>Facility successfully shut down.</desc>
|
---|
7939 | </const>
|
---|
7940 | <const name="Failed" value="800">
|
---|
7941 | <desc>Facility failed to start.</desc>
|
---|
7942 | </const>
|
---|
7943 | <const name="Unknown" value="999">
|
---|
7944 | <desc>Facility status is unknown.</desc>
|
---|
7945 | </const>
|
---|
7946 | </enum>
|
---|
7947 |
|
---|
7948 | <enum
|
---|
7949 | name="AdditionsRunLevelType"
|
---|
7950 | uuid="a25417ee-a9dd-4f5b-b0dc-377860087754"
|
---|
7951 | >
|
---|
7952 | <desc>
|
---|
7953 | Guest Additions run level type.
|
---|
7954 | </desc>
|
---|
7955 |
|
---|
7956 | <const name="None" value="0">
|
---|
7957 | <desc>Guest Additions are not loaded.</desc>
|
---|
7958 | </const>
|
---|
7959 | <const name="System" value="1">
|
---|
7960 | <desc>Guest drivers are loaded.</desc>
|
---|
7961 | </const>
|
---|
7962 | <const name="Userland" value="2">
|
---|
7963 | <desc>Common components (such as application services) are loaded.</desc>
|
---|
7964 | </const>
|
---|
7965 | <const name="Desktop" value="3">
|
---|
7966 | <desc>Per-user desktop components are loaded.</desc>
|
---|
7967 | </const>
|
---|
7968 | </enum>
|
---|
7969 |
|
---|
7970 | <enum
|
---|
7971 | name="AdditionsUpdateFlag"
|
---|
7972 | uuid="726a818d-18d6-4389-94e8-3e9e6826171a"
|
---|
7973 | >
|
---|
7974 | <desc>
|
---|
7975 | Guest Additions update flags.
|
---|
7976 | </desc>
|
---|
7977 |
|
---|
7978 | <const name="None" value="0">
|
---|
7979 | <desc>No flag set.</desc>
|
---|
7980 | </const>
|
---|
7981 | <const name="WaitForUpdateStartOnly" value="1">
|
---|
7982 | <desc>Only wait for the update process being started and do not
|
---|
7983 | wait while peforming the actual update.</desc>
|
---|
7984 | </const>
|
---|
7985 | </enum>
|
---|
7986 |
|
---|
7987 | <enum
|
---|
7988 | name="ExecuteProcessFlag"
|
---|
7989 | uuid="3258e8a5-ba0c-43d5-86b5-cf91405fddc0"
|
---|
7990 | >
|
---|
7991 | <desc>
|
---|
7992 | Guest process execution flags.
|
---|
7993 | </desc>
|
---|
7994 |
|
---|
7995 | <const name="None" value="0">
|
---|
7996 | <desc>No flag set.</desc>
|
---|
7997 | </const>
|
---|
7998 |
|
---|
7999 | <const name="WaitForProcessStartOnly" value="1">
|
---|
8000 | <desc>Only use the specified timeout value to wait for starting the guest process - the guest
|
---|
8001 | process itself then uses an infinite timeout.</desc>
|
---|
8002 | </const>
|
---|
8003 |
|
---|
8004 | <const name="IgnoreOrphanedProcesses" value="2">
|
---|
8005 | <desc>Do not report an error when executed processes are still alive when VBoxService or the guest OS is shutting down.</desc>
|
---|
8006 | </const>
|
---|
8007 |
|
---|
8008 | <const name="Hidden" value="4">
|
---|
8009 | <desc>Don't show the started process according to the guest OS guidelines.</desc>
|
---|
8010 | </const>
|
---|
8011 | </enum>
|
---|
8012 |
|
---|
8013 | <enum
|
---|
8014 | name="ProcessInputFlag"
|
---|
8015 | uuid="5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5"
|
---|
8016 | >
|
---|
8017 | <desc>
|
---|
8018 | Guest process input flags.
|
---|
8019 | </desc>
|
---|
8020 |
|
---|
8021 | <const name="None" value="0">
|
---|
8022 | <desc>No flag set.</desc>
|
---|
8023 | </const>
|
---|
8024 | <const name="EndOfFile" value="1">
|
---|
8025 | <desc>End of file (input) reached.</desc>
|
---|
8026 | </const>
|
---|
8027 | </enum>
|
---|
8028 |
|
---|
8029 | <enum
|
---|
8030 | name="CopyFileFlag"
|
---|
8031 | uuid="23f79fdf-738a-493d-b80b-42d607c9b916"
|
---|
8032 | >
|
---|
8033 | <desc>
|
---|
8034 | Host/Guest copy flags. At the moment none of these flags
|
---|
8035 | are implemented.
|
---|
8036 | </desc>
|
---|
8037 |
|
---|
8038 | <const name="None" value="0">
|
---|
8039 | <desc>No flag set.</desc>
|
---|
8040 | </const>
|
---|
8041 |
|
---|
8042 | <const name="Recursive" value="1">
|
---|
8043 | <desc>Copy directories recursively.</desc>
|
---|
8044 | </const>
|
---|
8045 |
|
---|
8046 | <const name="Update" value="2">
|
---|
8047 | <desc>Only copy when the source file is newer than the destination file or when the destination file is missing.</desc>
|
---|
8048 | </const>
|
---|
8049 |
|
---|
8050 | <const name="FollowLinks" value="4">
|
---|
8051 | <desc>Follow symbolic links.</desc>
|
---|
8052 | </const>
|
---|
8053 | </enum>
|
---|
8054 |
|
---|
8055 | <enum
|
---|
8056 | name="CreateDirectoryFlag"
|
---|
8057 | uuid="26ff5bdd-c81f-4304-857b-b8be5e3f9cd6"
|
---|
8058 | >
|
---|
8059 | <desc>
|
---|
8060 | Directory creation flags.
|
---|
8061 | </desc>
|
---|
8062 |
|
---|
8063 | <const name="None" value="0">
|
---|
8064 | <desc>No flag set.</desc>
|
---|
8065 | </const>
|
---|
8066 |
|
---|
8067 | <const name="Parents" value="1">
|
---|
8068 | <desc>No error if existing, make parent directories as needed.</desc>
|
---|
8069 | </const>
|
---|
8070 | </enum>
|
---|
8071 |
|
---|
8072 | <interface
|
---|
8073 | name="IGuest" extends="$unknown"
|
---|
8074 | uuid="4db4f806-0a20-4772-9419-14563b662f93"
|
---|
8075 | wsmap="managed"
|
---|
8076 | >
|
---|
8077 | <desc>
|
---|
8078 | The IGuest interface represents information about the operating system
|
---|
8079 | running inside the virtual machine. Used in
|
---|
8080 | <link to="IConsole::guest"/>.
|
---|
8081 |
|
---|
8082 | IGuest provides information about the guest operating system, whether
|
---|
8083 | Guest Additions are installed and other OS-specific virtual machine
|
---|
8084 | properties.
|
---|
8085 | </desc>
|
---|
8086 |
|
---|
8087 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
8088 | <desc>
|
---|
8089 | Identifier of the Guest OS type as reported by the Guest
|
---|
8090 | Additions.
|
---|
8091 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
8092 | an IGuestOSType object representing details about the given
|
---|
8093 | Guest OS type.
|
---|
8094 | <note>
|
---|
8095 | If Guest Additions are not installed, this value will be
|
---|
8096 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
8097 | </note>
|
---|
8098 | </desc>
|
---|
8099 | </attribute>
|
---|
8100 |
|
---|
8101 | <attribute name="additionsRunLevel" type="AdditionsRunLevelType" readonly="yes">
|
---|
8102 | <desc>
|
---|
8103 | Current run level of the Guest Additions.
|
---|
8104 | </desc>
|
---|
8105 | </attribute>
|
---|
8106 |
|
---|
8107 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
8108 | <desc>
|
---|
8109 | Version of the Guest Additions including the revision (3 decimal numbers
|
---|
8110 | separated by dots + revision number) installed on the guest or empty
|
---|
8111 | when the Additions are not installed.
|
---|
8112 | </desc>
|
---|
8113 | </attribute>
|
---|
8114 |
|
---|
8115 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
8116 | <desc>Guest system memory balloon size in megabytes (transient property).</desc>
|
---|
8117 | </attribute>
|
---|
8118 |
|
---|
8119 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
8120 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
8121 | </attribute>
|
---|
8122 |
|
---|
8123 | <method name="internalGetStatistics">
|
---|
8124 | <desc>
|
---|
8125 | Internal method; do not use as it might change at any time.
|
---|
8126 | </desc>
|
---|
8127 | <param name="cpuUser" type="unsigned long" dir="out">
|
---|
8128 | <desc>Percentage of processor time spent in user mode as seen by the guest.</desc>
|
---|
8129 | </param>
|
---|
8130 | <param name="cpuKernel" type="unsigned long" dir="out">
|
---|
8131 | <desc>Percentage of processor time spent in kernel mode as seen by the guest.</desc>
|
---|
8132 | </param>
|
---|
8133 | <param name="cpuIdle" type="unsigned long" dir="out">
|
---|
8134 | <desc>Percentage of processor time spent idling as seen by the guest.</desc>
|
---|
8135 | </param>
|
---|
8136 | <param name="memTotal" type="unsigned long" dir="out">
|
---|
8137 | <desc>Total amount of physical guest RAM.</desc>
|
---|
8138 | </param>
|
---|
8139 | <param name="memFree" type="unsigned long" dir="out">
|
---|
8140 | <desc>Free amount of physical guest RAM.</desc>
|
---|
8141 | </param>
|
---|
8142 | <param name="memBalloon" type="unsigned long" dir="out">
|
---|
8143 | <desc>Amount of ballooned physical guest RAM.</desc>
|
---|
8144 | </param>
|
---|
8145 | <param name="memShared" type="unsigned long" dir="out">
|
---|
8146 | <desc>Amount of shared physical guest RAM.</desc>
|
---|
8147 | </param>
|
---|
8148 | <param name="memCache" type="unsigned long" dir="out">
|
---|
8149 | <desc>Total amount of guest (disk) cache memory.</desc>
|
---|
8150 | </param>
|
---|
8151 | <param name="pagedTotal" type="unsigned long" dir="out">
|
---|
8152 | <desc>Total amount of space in the page file.</desc>
|
---|
8153 | </param>
|
---|
8154 | <param name="memAllocTotal" type="unsigned long" dir="out">
|
---|
8155 | <desc>Total amount of memory allocated by the hypervisor.</desc>
|
---|
8156 | </param>
|
---|
8157 | <param name="memFreeTotal" type="unsigned long" dir="out">
|
---|
8158 | <desc>Total amount of free memory available in the hypervisor.</desc>
|
---|
8159 | </param>
|
---|
8160 | <param name="memBalloonTotal" type="unsigned long" dir="out">
|
---|
8161 | <desc>Total amount of memory ballooned by the hypervisor.</desc>
|
---|
8162 | </param>
|
---|
8163 | <param name="memSharedTotal" type="unsigned long" dir="out">
|
---|
8164 | <desc>Total amount of shared memory in the hypervisor.</desc>
|
---|
8165 | </param>
|
---|
8166 | </method>
|
---|
8167 |
|
---|
8168 | <method name="getFacilityStatus">
|
---|
8169 | <desc>
|
---|
8170 | Get the current status of a Guest Additions facility.
|
---|
8171 | </desc>
|
---|
8172 | <param name="facility" type="AdditionsFacilityType" dir="in">
|
---|
8173 | <desc>Facility to check status for.</desc>
|
---|
8174 | </param>
|
---|
8175 | <param name="timestamp" type="long long" dir="out">
|
---|
8176 | <desc>Timestamp (in ms) of last status update seen by the host.</desc>
|
---|
8177 | </param>
|
---|
8178 | <param name="status" type="AdditionsFacilityStatus" dir="return">
|
---|
8179 | <desc>The current (latest) facility status.</desc>
|
---|
8180 | </param>
|
---|
8181 | </method>
|
---|
8182 |
|
---|
8183 | <method name="getAdditionsStatus">
|
---|
8184 | <desc>
|
---|
8185 | Retrieve the current status of a certain Guest Additions run level.
|
---|
8186 |
|
---|
8187 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
8188 | Wrong status level specified.
|
---|
8189 | </result>
|
---|
8190 |
|
---|
8191 | </desc>
|
---|
8192 | <param name="level" type="AdditionsRunLevelType" dir="in">
|
---|
8193 | <desc>Status level to check</desc>
|
---|
8194 | </param>
|
---|
8195 | <param name="active" type="boolean" dir="return">
|
---|
8196 | <desc>Flag whether the status level has been reached or not</desc>
|
---|
8197 | </param>
|
---|
8198 | </method>
|
---|
8199 |
|
---|
8200 | <method name="setCredentials">
|
---|
8201 | <desc>
|
---|
8202 | Store login credentials that can be queried by guest operating
|
---|
8203 | systems with Additions installed. The credentials are transient
|
---|
8204 | to the session and the guest may also choose to erase them. Note
|
---|
8205 | that the caller cannot determine whether the guest operating system
|
---|
8206 | has queried or made use of the credentials.
|
---|
8207 |
|
---|
8208 | <result name="VBOX_E_VM_ERROR">
|
---|
8209 | VMM device is not available.
|
---|
8210 | </result>
|
---|
8211 |
|
---|
8212 | </desc>
|
---|
8213 | <param name="userName" type="wstring" dir="in">
|
---|
8214 | <desc>User name string, can be empty</desc>
|
---|
8215 | </param>
|
---|
8216 | <param name="password" type="wstring" dir="in">
|
---|
8217 | <desc>Password string, can be empty</desc>
|
---|
8218 | </param>
|
---|
8219 | <param name="domain" type="wstring" dir="in">
|
---|
8220 | <desc>Domain name (guest logon scheme specific), can be empty</desc>
|
---|
8221 | </param>
|
---|
8222 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
8223 | <desc>
|
---|
8224 | Flag whether the guest should alternatively allow the user to
|
---|
8225 | interactively specify different credentials. This flag might
|
---|
8226 | not be supported by all versions of the Additions.
|
---|
8227 | </desc>
|
---|
8228 | </param>
|
---|
8229 | </method>
|
---|
8230 |
|
---|
8231 | <method name="executeProcess">
|
---|
8232 | <desc>
|
---|
8233 | Executes an existing program inside the guest VM.
|
---|
8234 |
|
---|
8235 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8236 | Could not execute process.
|
---|
8237 | </result>
|
---|
8238 |
|
---|
8239 | </desc>
|
---|
8240 | <param name="execName" type="wstring" dir="in">
|
---|
8241 | <desc>
|
---|
8242 | Full path name of the command to execute on the guest; the
|
---|
8243 | commands has to exists in the guest VM in order to be executed.
|
---|
8244 | </desc>
|
---|
8245 | </param>
|
---|
8246 | <param name="flags" type="unsigned long" dir="in">
|
---|
8247 | <desc>
|
---|
8248 | <link to="ExecuteProcessFlag"/> flags.
|
---|
8249 | </desc>
|
---|
8250 | </param>
|
---|
8251 | <param name="arguments" type="wstring" safearray="yes" dir="in">
|
---|
8252 | <desc>
|
---|
8253 | Array of arguments passed to the execution command.
|
---|
8254 | </desc>
|
---|
8255 | </param>
|
---|
8256 | <param name="environment" type="wstring" safearray="yes" dir="in">
|
---|
8257 | <desc>
|
---|
8258 | Environment variables that can be set while the command is being
|
---|
8259 | executed, in form of "NAME=VALUE"; one pair per entry. To unset a
|
---|
8260 | variable just set its name ("NAME") without a value.
|
---|
8261 | </desc>
|
---|
8262 | </param>
|
---|
8263 | <param name="userName" type="wstring" dir="in">
|
---|
8264 | <desc>
|
---|
8265 | User name under which the command will be executed; has to exist
|
---|
8266 | and have the appropriate rights to execute programs in the VM.
|
---|
8267 | </desc>
|
---|
8268 | </param>
|
---|
8269 | <param name="password" type="wstring" dir="in">
|
---|
8270 | <desc>
|
---|
8271 | Password of the user account specified.
|
---|
8272 | </desc>
|
---|
8273 | </param>
|
---|
8274 | <param name="timeoutMS" type="unsigned long" dir="in">
|
---|
8275 | <desc>
|
---|
8276 | The maximum timeout value (in msec) to wait for finished program
|
---|
8277 | execution. Pass 0 for an infinite timeout.
|
---|
8278 | </desc>
|
---|
8279 | </param>
|
---|
8280 | <param name="pid" type="unsigned long" dir="out">
|
---|
8281 | <desc>
|
---|
8282 | The PID (process ID) of the started command for later reference.
|
---|
8283 | </desc>
|
---|
8284 | </param>
|
---|
8285 | <param name="progress" type="IProgress" dir="return">
|
---|
8286 | <desc>Progress object to track the operation completion.</desc>
|
---|
8287 | </param>
|
---|
8288 | </method>
|
---|
8289 |
|
---|
8290 | <method name="getProcessOutput">
|
---|
8291 | <desc>
|
---|
8292 | Retrieves output of a formerly started process.
|
---|
8293 |
|
---|
8294 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8295 | Could not retrieve output.
|
---|
8296 | </result>
|
---|
8297 |
|
---|
8298 | </desc>
|
---|
8299 | <param name="pid" type="unsigned long" dir="in">
|
---|
8300 | <desc>
|
---|
8301 | Process id returned by earlier executeProcess() call.
|
---|
8302 | </desc>
|
---|
8303 | </param>
|
---|
8304 | <param name="flags" type="unsigned long" dir="in">
|
---|
8305 | <desc>
|
---|
8306 | Flags describing which output to retrieve.
|
---|
8307 | </desc>
|
---|
8308 | </param>
|
---|
8309 | <param name="timeoutMS" type="unsigned long" dir="in">
|
---|
8310 | <desc>
|
---|
8311 | The maximum timeout value (in msec) to wait for output
|
---|
8312 | data. Pass 0 for an infinite timeout.
|
---|
8313 | </desc>
|
---|
8314 | </param>
|
---|
8315 | <param name="size" type="long long" dir="in">
|
---|
8316 | <desc>
|
---|
8317 | Size in bytes to read in the buffer.
|
---|
8318 | </desc>
|
---|
8319 | </param>
|
---|
8320 | <param name="data" type="octet" dir="return" safearray="yes">
|
---|
8321 | <desc>
|
---|
8322 | Buffer for retrieving the actual output. A data size of 0 means end of file
|
---|
8323 | if the requested size was not 0. This is the unprocessed
|
---|
8324 | output data, i.e. the line ending style depends on the platform of
|
---|
8325 | the system the server is running on.
|
---|
8326 | </desc>
|
---|
8327 | </param>
|
---|
8328 | </method>
|
---|
8329 |
|
---|
8330 | <method name="getProcessStatus">
|
---|
8331 | <desc>
|
---|
8332 | Retrieves status, exit code and the exit reason of a formerly started process.
|
---|
8333 |
|
---|
8334 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8335 | Process with specified PID was not found.
|
---|
8336 | </result>
|
---|
8337 |
|
---|
8338 | </desc>
|
---|
8339 | <param name="pid" type="unsigned long" dir="in">
|
---|
8340 | <desc>
|
---|
8341 | Process id returned by earlier executeProcess() call.
|
---|
8342 | </desc>
|
---|
8343 | </param>
|
---|
8344 | <param name="exitcode" type="unsigned long" dir="out">
|
---|
8345 | <desc>
|
---|
8346 | The exit code (if available).
|
---|
8347 | </desc>
|
---|
8348 | </param>
|
---|
8349 | <param name="flags" type="unsigned long" dir="out">
|
---|
8350 | <desc>
|
---|
8351 | Additional flags of process status. Not used at the moment and
|
---|
8352 | must be set to 0.
|
---|
8353 | </desc>
|
---|
8354 | </param>
|
---|
8355 | <param name="reason" type="unsigned long" dir="return">
|
---|
8356 | <desc>
|
---|
8357 | The current process status.
|
---|
8358 | </desc>
|
---|
8359 | </param>
|
---|
8360 | </method>
|
---|
8361 |
|
---|
8362 | <method name="copyToGuest">
|
---|
8363 | <desc>
|
---|
8364 | Copies files/directories from host to the guest.
|
---|
8365 |
|
---|
8366 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8367 | Error while copying.
|
---|
8368 | </result>
|
---|
8369 |
|
---|
8370 | </desc>
|
---|
8371 | <param name="source" type="wstring" dir="in">
|
---|
8372 | <desc>
|
---|
8373 | Source file on the host to copy.
|
---|
8374 | </desc>
|
---|
8375 | </param>
|
---|
8376 | <param name="dest" type="wstring" dir="in">
|
---|
8377 | <desc>
|
---|
8378 | Destination path on the guest.
|
---|
8379 | </desc>
|
---|
8380 | </param>
|
---|
8381 | <param name="userName" type="wstring" dir="in">
|
---|
8382 | <desc>
|
---|
8383 | User name under which the copy command will be executed; the
|
---|
8384 | user has to exist and have the appropriate rights to write to
|
---|
8385 | the destination path.
|
---|
8386 | </desc>
|
---|
8387 | </param>
|
---|
8388 | <param name="password" type="wstring" dir="in">
|
---|
8389 | <desc>
|
---|
8390 | Password of the user account specified.
|
---|
8391 | </desc>
|
---|
8392 | </param>
|
---|
8393 | <param name="flags" type="unsigned long" dir="in">
|
---|
8394 | <desc>
|
---|
8395 | <link to="CopyFileFlag"/> flags. Not used at the moment and should be set to 0.
|
---|
8396 | </desc>
|
---|
8397 | </param>
|
---|
8398 | <param name="progress" type="IProgress" dir="return">
|
---|
8399 | <desc>Progress object to track the operation completion.</desc>
|
---|
8400 | </param>
|
---|
8401 | </method>
|
---|
8402 |
|
---|
8403 | <method name="createDirectory">
|
---|
8404 | <desc>
|
---|
8405 | Creates a directory on the guest.
|
---|
8406 |
|
---|
8407 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8408 | Error while creating directory.
|
---|
8409 | </result>
|
---|
8410 |
|
---|
8411 | </desc>
|
---|
8412 | <param name="directory" type="wstring" dir="in">
|
---|
8413 | <desc>
|
---|
8414 | Directory to create.
|
---|
8415 | </desc>
|
---|
8416 | </param>
|
---|
8417 | <param name="userName" type="wstring" dir="in">
|
---|
8418 | <desc>
|
---|
8419 | User name under which the directory creation will be executed; the
|
---|
8420 | user has to exist and have the appropriate rights to create the
|
---|
8421 | desired directory.
|
---|
8422 | </desc>
|
---|
8423 | </param>
|
---|
8424 | <param name="password" type="wstring" dir="in">
|
---|
8425 | <desc>
|
---|
8426 | Password of the user account specified.
|
---|
8427 | </desc>
|
---|
8428 | </param>
|
---|
8429 | <param name="mode" type="unsigned long" dir="in">
|
---|
8430 | <desc>
|
---|
8431 | File mode.
|
---|
8432 | </desc>
|
---|
8433 | </param>
|
---|
8434 | <param name="flags" type="unsigned long" dir="in">
|
---|
8435 | <desc>
|
---|
8436 | <link to="CreateDirectoryFlag"/> flags.
|
---|
8437 | </desc>
|
---|
8438 | </param>
|
---|
8439 | <param name="progress" type="IProgress" dir="return">
|
---|
8440 | <desc>Progress object to track the operation completion.</desc>
|
---|
8441 | </param>
|
---|
8442 | </method>
|
---|
8443 |
|
---|
8444 | <method name="setProcessInput">
|
---|
8445 | <desc>
|
---|
8446 | Sends input into a formerly started process.
|
---|
8447 |
|
---|
8448 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8449 | Could not send input.
|
---|
8450 | </result>
|
---|
8451 |
|
---|
8452 | </desc>
|
---|
8453 | <param name="pid" type="unsigned long" dir="in">
|
---|
8454 | <desc>
|
---|
8455 | Process id returned by earlier executeProcess() call.
|
---|
8456 | </desc>
|
---|
8457 | </param>
|
---|
8458 | <param name="flags" type="unsigned long" dir="in">
|
---|
8459 | <desc>
|
---|
8460 | <link to="ProcessInputFlag"/> flags.
|
---|
8461 | </desc>
|
---|
8462 | </param>
|
---|
8463 | <param name="timeoutMS" type="unsigned long" dir="in">
|
---|
8464 | <desc>
|
---|
8465 | The maximum timeout value (in msec) to wait for getting the
|
---|
8466 | data transfered to the guest. Pass 0 for an infinite timeout.
|
---|
8467 | </desc>
|
---|
8468 | </param>
|
---|
8469 | <param name="data" type="octet" dir="in" safearray="yes">
|
---|
8470 | <desc>
|
---|
8471 | Buffer of input data to send to the started process to.
|
---|
8472 | </desc>
|
---|
8473 | </param>
|
---|
8474 | <param name="written" type="unsigned long" dir="return">
|
---|
8475 | <desc>
|
---|
8476 | Number of bytes written.
|
---|
8477 | </desc>
|
---|
8478 | </param>
|
---|
8479 | </method>
|
---|
8480 |
|
---|
8481 | <method name="updateGuestAdditions">
|
---|
8482 | <desc>
|
---|
8483 | Updates already installed Guest Additions in a VM
|
---|
8484 | (Windows guests only).
|
---|
8485 |
|
---|
8486 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8487 | Error while updating.
|
---|
8488 | </result>
|
---|
8489 |
|
---|
8490 | </desc>
|
---|
8491 | <param name="source" type="wstring" dir="in">
|
---|
8492 | <desc>
|
---|
8493 | Path to the Guest Additions .ISO file to use for the upate.
|
---|
8494 | </desc>
|
---|
8495 | </param>
|
---|
8496 | <param name="flags" type="unsigned long" dir="in">
|
---|
8497 | <desc>
|
---|
8498 | <link to="AdditionsUpdateFlag"/> flags.
|
---|
8499 | </desc>
|
---|
8500 | </param>
|
---|
8501 | <param name="progress" type="IProgress" dir="return">
|
---|
8502 | <desc>Progress object to track the operation completion.</desc>
|
---|
8503 | </param>
|
---|
8504 | </method>
|
---|
8505 |
|
---|
8506 | </interface>
|
---|
8507 |
|
---|
8508 |
|
---|
8509 | <!--
|
---|
8510 | // IProgress
|
---|
8511 | /////////////////////////////////////////////////////////////////////////
|
---|
8512 | -->
|
---|
8513 |
|
---|
8514 | <interface
|
---|
8515 | name="IProgress" extends="$unknown"
|
---|
8516 | uuid="A163C98F-8635-4AA8-B770-A9941737F3EF"
|
---|
8517 | wsmap="managed"
|
---|
8518 | >
|
---|
8519 | <desc>
|
---|
8520 | The IProgress interface is used to track and control
|
---|
8521 | asynchronous tasks within VirtualBox.
|
---|
8522 |
|
---|
8523 | An instance of this is returned every time VirtualBox starts
|
---|
8524 | an asynchronous task (in other words, a separate thread) which
|
---|
8525 | continues to run after a method call returns. For example,
|
---|
8526 | <link to="IConsole::saveState" />, which saves the state of
|
---|
8527 | a running virtual machine, can take a long time to complete.
|
---|
8528 | To be able to display a progress bar, a user interface such as
|
---|
8529 | the VirtualBox graphical user interface can use the IProgress
|
---|
8530 | object returned by that method.
|
---|
8531 |
|
---|
8532 | Note that IProgress is a "read-only" interface in the sense
|
---|
8533 | that only the VirtualBox internals behind the Main API can
|
---|
8534 | create and manipulate progress objects, whereas client code
|
---|
8535 | can only use the IProgress object to monitor a task's
|
---|
8536 | progress and, if <link to="#cancelable" /> is @c true,
|
---|
8537 | cancel the task by calling <link to="#cancel" />.
|
---|
8538 |
|
---|
8539 | A task represented by IProgress consists of either one or
|
---|
8540 | several sub-operations that run sequentially, one by one (see
|
---|
8541 | <link to="#operation" /> and <link to="#operationCount" />).
|
---|
8542 | Every operation is identified by a number (starting from 0)
|
---|
8543 | and has a separate description.
|
---|
8544 |
|
---|
8545 | You can find the individual percentage of completion of the current
|
---|
8546 | operation in <link to="#operationPercent" /> and the
|
---|
8547 | percentage of completion of the task as a whole
|
---|
8548 | in <link to="#percent" />.
|
---|
8549 |
|
---|
8550 | Similarly, you can wait for the completion of a particular
|
---|
8551 | operation via <link to="#waitForOperationCompletion" /> or
|
---|
8552 | for the completion of the whole task via
|
---|
8553 | <link to="#waitForCompletion" />.
|
---|
8554 | </desc>
|
---|
8555 |
|
---|
8556 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
8557 | <desc>ID of the task.</desc>
|
---|
8558 | </attribute>
|
---|
8559 |
|
---|
8560 | <attribute name="description" type="wstring" readonly="yes">
|
---|
8561 | <desc>Description of the task.</desc>
|
---|
8562 | </attribute>
|
---|
8563 |
|
---|
8564 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
8565 | <desc>Initiator of the task.</desc>
|
---|
8566 | </attribute>
|
---|
8567 |
|
---|
8568 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
8569 | <desc>Whether the task can be interrupted.</desc>
|
---|
8570 | </attribute>
|
---|
8571 |
|
---|
8572 | <attribute name="percent" type="unsigned long" readonly="yes">
|
---|
8573 | <desc>
|
---|
8574 | Current progress value of the task as a whole, in percent.
|
---|
8575 | This value depends on how many operations are already complete.
|
---|
8576 | Returns 100 if <link to="#completed" /> is @c true.
|
---|
8577 | </desc>
|
---|
8578 | </attribute>
|
---|
8579 |
|
---|
8580 | <attribute name="timeRemaining" type="long" readonly="yes">
|
---|
8581 | <desc>
|
---|
8582 | Estimated remaining time until the task completes, in
|
---|
8583 | seconds. Returns 0 once the task has completed; returns -1
|
---|
8584 | if the remaining time cannot be computed, in particular if
|
---|
8585 | the current progress is 0.
|
---|
8586 |
|
---|
8587 | Even if a value is returned, the estimate will be unreliable
|
---|
8588 | for low progress values. It will become more reliable as the
|
---|
8589 | task progresses; it is not recommended to display an ETA
|
---|
8590 | before at least 20% of a task have completed.
|
---|
8591 | </desc>
|
---|
8592 | </attribute>
|
---|
8593 |
|
---|
8594 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
8595 | <desc>Whether the task has been completed.</desc>
|
---|
8596 | </attribute>
|
---|
8597 |
|
---|
8598 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
8599 | <desc>Whether the task has been canceled.</desc>
|
---|
8600 | </attribute>
|
---|
8601 |
|
---|
8602 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
8603 | <desc>
|
---|
8604 | Result code of the progress task.
|
---|
8605 | Valid only if <link to="#completed"/> is @c true.
|
---|
8606 | </desc>
|
---|
8607 | </attribute>
|
---|
8608 |
|
---|
8609 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
8610 | <desc>
|
---|
8611 | Extended information about the unsuccessful result of the
|
---|
8612 | progress operation. May be @c null if no extended information
|
---|
8613 | is available.
|
---|
8614 | Valid only if <link to="#completed"/> is @c true and
|
---|
8615 | <link to="#resultCode"/> indicates a failure.
|
---|
8616 | </desc>
|
---|
8617 | </attribute>
|
---|
8618 |
|
---|
8619 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
8620 | <desc>
|
---|
8621 | Number of sub-operations this task is divided into.
|
---|
8622 | Every task consists of at least one suboperation.
|
---|
8623 | </desc>
|
---|
8624 | </attribute>
|
---|
8625 |
|
---|
8626 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
8627 | <desc>Number of the sub-operation being currently executed.</desc>
|
---|
8628 | </attribute>
|
---|
8629 |
|
---|
8630 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
8631 | <desc>
|
---|
8632 | Description of the sub-operation being currently executed.
|
---|
8633 | </desc>
|
---|
8634 | </attribute>
|
---|
8635 |
|
---|
8636 | <attribute name="operationPercent" type="unsigned long" readonly="yes">
|
---|
8637 | <desc>Progress value of the current sub-operation only, in percent.</desc>
|
---|
8638 | </attribute>
|
---|
8639 |
|
---|
8640 | <attribute name="operationWeight" type="unsigned long" readonly="yes">
|
---|
8641 | <desc>Weight value of the current sub-operation only.</desc>
|
---|
8642 | </attribute>
|
---|
8643 |
|
---|
8644 | <attribute name="timeout" type="unsigned long">
|
---|
8645 | <desc>
|
---|
8646 | When non-zero, this specifies the number of milliseconds after which
|
---|
8647 | the operation will automatically be canceled. This can only be set on
|
---|
8648 | cancelable objects.
|
---|
8649 | </desc>
|
---|
8650 | </attribute>
|
---|
8651 |
|
---|
8652 | <method name="setCurrentOperationProgress">
|
---|
8653 | <desc>Internal method, not to be called externally.</desc>
|
---|
8654 | <param name="percent" type="unsigned long" dir="in" />
|
---|
8655 | </method>
|
---|
8656 | <method name="setNextOperation">
|
---|
8657 | <desc>Internal method, not to be called externally.</desc>
|
---|
8658 | <param name="nextOperationDescription" type="wstring" dir="in" />
|
---|
8659 | <param name="nextOperationsWeight" type="unsigned long" dir="in" />
|
---|
8660 | </method>
|
---|
8661 |
|
---|
8662 | <method name="waitForCompletion">
|
---|
8663 | <desc>
|
---|
8664 | Waits until the task is done (including all sub-operations)
|
---|
8665 | with a given timeout in milliseconds; specify -1 for an indefinite wait.
|
---|
8666 |
|
---|
8667 | Note that the VirtualBox/XPCOM/COM/native event queues of the calling
|
---|
8668 | thread are not processed while waiting. Neglecting event queues may
|
---|
8669 | have dire consequences (degrade performance, resource hogs,
|
---|
8670 | deadlocks, etc.), this is specially so for the main thread on
|
---|
8671 | platforms using XPCOM. Callers are adviced wait for short periods
|
---|
8672 | and service their event queues between calls, or to create a worker
|
---|
8673 | thread to do the waiting.
|
---|
8674 |
|
---|
8675 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8676 | Failed to wait for task completion.
|
---|
8677 | </result>
|
---|
8678 | </desc>
|
---|
8679 |
|
---|
8680 | <param name="timeout" type="long" dir="in">
|
---|
8681 | <desc>
|
---|
8682 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
8683 | </desc>
|
---|
8684 | </param>
|
---|
8685 | </method>
|
---|
8686 |
|
---|
8687 | <method name="waitForOperationCompletion">
|
---|
8688 | <desc>
|
---|
8689 | Waits until the given operation is done with a given timeout in
|
---|
8690 | milliseconds; specify -1 for an indefinite wait.
|
---|
8691 |
|
---|
8692 | See <link to="#waitForCompletion"> for event queue considerations.</link>
|
---|
8693 |
|
---|
8694 | <result name="VBOX_E_IPRT_ERROR">
|
---|
8695 | Failed to wait for operation completion.
|
---|
8696 | </result>
|
---|
8697 |
|
---|
8698 | </desc>
|
---|
8699 | <param name="operation" type="unsigned long" dir="in">
|
---|
8700 | <desc>
|
---|
8701 | Number of the operation to wait for.
|
---|
8702 | Must be less than <link to="#operationCount"/>.
|
---|
8703 | </desc>
|
---|
8704 | </param>
|
---|
8705 | <param name="timeout" type="long" dir="in">
|
---|
8706 | <desc>
|
---|
8707 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
8708 | </desc>
|
---|
8709 | </param>
|
---|
8710 | </method>
|
---|
8711 |
|
---|
8712 | <method name="cancel">
|
---|
8713 | <desc>
|
---|
8714 | Cancels the task.
|
---|
8715 | <note>
|
---|
8716 | If <link to="#cancelable"/> is @c false, then this method will fail.
|
---|
8717 | </note>
|
---|
8718 |
|
---|
8719 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8720 | Operation cannot be canceled.
|
---|
8721 | </result>
|
---|
8722 |
|
---|
8723 | </desc>
|
---|
8724 | </method>
|
---|
8725 |
|
---|
8726 | </interface>
|
---|
8727 |
|
---|
8728 | <!--
|
---|
8729 | // ISnapshot
|
---|
8730 | /////////////////////////////////////////////////////////////////////////
|
---|
8731 | -->
|
---|
8732 |
|
---|
8733 | <interface
|
---|
8734 | name="ISnapshot" extends="$unknown"
|
---|
8735 | uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
|
---|
8736 | wsmap="managed"
|
---|
8737 | >
|
---|
8738 | <desc>
|
---|
8739 | The ISnapshot interface represents a snapshot of the virtual
|
---|
8740 | machine.
|
---|
8741 |
|
---|
8742 | Together with the differencing media that are created
|
---|
8743 | when a snapshot is taken, a machine can be brought back to
|
---|
8744 | the exact state it was in when the snapshot was taken.
|
---|
8745 |
|
---|
8746 | The ISnapshot interface has no methods, only attributes; snapshots
|
---|
8747 | are controlled through methods of the <link to="IConsole" /> interface
|
---|
8748 | which also manage the media associated with the snapshot.
|
---|
8749 | The following operations exist:
|
---|
8750 |
|
---|
8751 | <ul>
|
---|
8752 | <li><link to="IConsole::takeSnapshot"/> creates a new snapshot
|
---|
8753 | by creating new, empty differencing images for the machine's
|
---|
8754 | media and saving the VM settings and (if the VM is running)
|
---|
8755 | the current VM state in the snapshot.
|
---|
8756 |
|
---|
8757 | The differencing images will then receive all data written to
|
---|
8758 | the machine's media, while their parent (base) images
|
---|
8759 | remain unmodified after the snapshot has been taken (see
|
---|
8760 | <link to="IMedium" /> for details about differencing images).
|
---|
8761 | This simplifies restoring a machine to the state of a snapshot:
|
---|
8762 | only the differencing images need to be deleted.
|
---|
8763 |
|
---|
8764 | The current machine state is not changed by taking a snapshot
|
---|
8765 | except that <link to="IMachine::currentSnapshot" /> is set to
|
---|
8766 | the newly created snapshot, which is also added to the machine's
|
---|
8767 | snapshots tree.
|
---|
8768 | </li>
|
---|
8769 |
|
---|
8770 | <li><link to="IConsole::restoreSnapshot"/> resets a machine to
|
---|
8771 | the state of a previous snapshot by deleting the differencing
|
---|
8772 | image of each of the machine's media and setting the machine's
|
---|
8773 | settings and state to the state that was saved in the snapshot (if any).
|
---|
8774 |
|
---|
8775 | This destroys the machine's current state. After calling this,
|
---|
8776 | <link to="IMachine::currentSnapshot" /> points to the snapshot
|
---|
8777 | that was restored.
|
---|
8778 | </li>
|
---|
8779 |
|
---|
8780 | <li><link to="IConsole::deleteSnapshot"/> deletes a snapshot
|
---|
8781 | without affecting the current machine state.
|
---|
8782 |
|
---|
8783 | This does not change the current machine state, but instead frees the
|
---|
8784 | resources allocated when the snapshot was taken: the settings and machine
|
---|
8785 | state file are deleted (if any), and the snapshot's differencing image for
|
---|
8786 | each of the machine's media gets merged with its parent image.
|
---|
8787 |
|
---|
8788 | Neither the current machine state nor other snapshots are affected
|
---|
8789 | by this operation, except that parent media will be modified
|
---|
8790 | to contain the disk data associated with the snapshot being deleted.
|
---|
8791 |
|
---|
8792 | When deleting the current snapshot, the <link to="IMachine::currentSnapshot" />
|
---|
8793 | attribute is set to the current snapshot's parent or NULL if it
|
---|
8794 | has no parent. Otherwise the attribute is unchanged.
|
---|
8795 | </li>
|
---|
8796 | </ul>
|
---|
8797 |
|
---|
8798 | Each snapshot contains a copy of virtual machine's settings (hardware
|
---|
8799 | configuration etc.). This copy is contained in an immutable (read-only)
|
---|
8800 | instance of <link to="IMachine" /> which is available from the snapshot's
|
---|
8801 | <link to="#machine" /> attribute. When restoring the snapshot, these
|
---|
8802 | settings are copied back to the original machine.
|
---|
8803 |
|
---|
8804 | In addition, if the machine was running when the
|
---|
8805 | snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
|
---|
8806 | the current VM state is saved in the snapshot (similarly to what happens
|
---|
8807 | when a VM's state is saved). The snapshot is then said to be <i>online</i>
|
---|
8808 | because when restoring it, the VM will be running.
|
---|
8809 |
|
---|
8810 | If the machine was in <link to="MachineState_Saved">saved</link> saved,
|
---|
8811 | the snapshot receives a copy of the execution state file
|
---|
8812 | (<link to="IMachine::stateFilePath"/>).
|
---|
8813 |
|
---|
8814 | Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
|
---|
8815 | or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
|
---|
8816 | it then contains a so-called "zero execution state", representing a
|
---|
8817 | machine that is powered off.
|
---|
8818 | </desc>
|
---|
8819 |
|
---|
8820 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
8821 | <desc>UUID of the snapshot.</desc>
|
---|
8822 | </attribute>
|
---|
8823 |
|
---|
8824 | <attribute name="name" type="wstring">
|
---|
8825 | <desc>Short name of the snapshot.
|
---|
8826 | <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
|
---|
8827 | be called implicitly.</note>
|
---|
8828 | </desc>
|
---|
8829 | </attribute>
|
---|
8830 |
|
---|
8831 | <attribute name="description" type="wstring">
|
---|
8832 | <desc>Optional description of the snapshot.
|
---|
8833 | <note>Setting this attribute causes <link to="IMachine::saveSettings" /> to
|
---|
8834 | be called implicitly.</note>
|
---|
8835 | </desc>
|
---|
8836 | </attribute>
|
---|
8837 |
|
---|
8838 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
8839 | <desc>
|
---|
8840 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
8841 | </desc>
|
---|
8842 | </attribute>
|
---|
8843 |
|
---|
8844 | <attribute name="online" type="boolean" readonly="yes">
|
---|
8845 | <desc>
|
---|
8846 | @c true if this snapshot is an online snapshot and @c false otherwise.
|
---|
8847 |
|
---|
8848 | When this attribute is @c true, the
|
---|
8849 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
8850 | <link to="#machine"/> object associated with this snapshot
|
---|
8851 | will point to the saved state file. Otherwise, it will be
|
---|
8852 | an empty string.
|
---|
8853 | </desc>
|
---|
8854 | </attribute>
|
---|
8855 |
|
---|
8856 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
8857 | <desc>
|
---|
8858 | Virtual machine this snapshot is taken on. This object
|
---|
8859 | stores all settings the machine had when taking this snapshot.
|
---|
8860 | <note>
|
---|
8861 | The returned machine object is immutable, i.e. no
|
---|
8862 | any settings can be changed.
|
---|
8863 | </note>
|
---|
8864 | </desc>
|
---|
8865 | </attribute>
|
---|
8866 |
|
---|
8867 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
8868 | <desc>
|
---|
8869 | Parent snapshot (a snapshot this one is based on), or
|
---|
8870 | @c null if the snapshot has no parent (i.e. is the first snapshot).
|
---|
8871 | </desc>
|
---|
8872 | </attribute>
|
---|
8873 |
|
---|
8874 | <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
|
---|
8875 | <desc>
|
---|
8876 | Child snapshots (all snapshots having this one as a parent).
|
---|
8877 | By inspecting this attribute starting with a machine's root snapshot
|
---|
8878 | (which can be obtained by calling <link to="IMachine::findSnapshot" />
|
---|
8879 | with a @c null UUID), a machine's snapshots tree can be iterated over.
|
---|
8880 | </desc>
|
---|
8881 | </attribute>
|
---|
8882 |
|
---|
8883 | </interface>
|
---|
8884 |
|
---|
8885 |
|
---|
8886 | <!--
|
---|
8887 | // IMedium
|
---|
8888 | /////////////////////////////////////////////////////////////////////////
|
---|
8889 | -->
|
---|
8890 |
|
---|
8891 | <enum
|
---|
8892 | name="MediumState"
|
---|
8893 | uuid="ef41e980-e012-43cd-9dea-479d4ef14d13"
|
---|
8894 | >
|
---|
8895 | <desc>
|
---|
8896 | Virtual medium state.
|
---|
8897 | <see>IMedium</see>
|
---|
8898 | </desc>
|
---|
8899 |
|
---|
8900 | <const name="NotCreated" value="0">
|
---|
8901 | <desc>
|
---|
8902 | Associated medium storage does not exist (either was not created yet or
|
---|
8903 | was deleted).
|
---|
8904 | </desc>
|
---|
8905 | </const>
|
---|
8906 | <const name="Created" value="1">
|
---|
8907 | <desc>
|
---|
8908 | Associated storage exists and accessible; this gets set if the
|
---|
8909 | accessibility check performed by <link to="IMedium::refreshState" />
|
---|
8910 | was successful.
|
---|
8911 | </desc>
|
---|
8912 | </const>
|
---|
8913 | <const name="LockedRead" value="2">
|
---|
8914 | <desc>
|
---|
8915 | Medium is locked for reading (see <link to="IMedium::lockRead"/>),
|
---|
8916 | no data modification is possible.
|
---|
8917 | </desc>
|
---|
8918 | </const>
|
---|
8919 | <const name="LockedWrite" value="3">
|
---|
8920 | <desc>
|
---|
8921 | Medium is locked for writing (see <link to="IMedium::lockWrite"/>),
|
---|
8922 | no concurrent data reading or modification is possible.
|
---|
8923 | </desc>
|
---|
8924 | </const>
|
---|
8925 | <const name="Inaccessible" value="4">
|
---|
8926 | <desc>
|
---|
8927 | Medium accessibility check (see <link to="IMedium::refreshState" />) has
|
---|
8928 | not yet been performed, or else, associated medium storage is not
|
---|
8929 | accessible. In the first case, <link to="IMedium::lastAccessError"/>
|
---|
8930 | is empty, in the second case, it describes the error that occurred.
|
---|
8931 | </desc>
|
---|
8932 | </const>
|
---|
8933 | <const name="Creating" value="5">
|
---|
8934 | <desc>
|
---|
8935 | Associated medium storage is being created.
|
---|
8936 | </desc>
|
---|
8937 | </const>
|
---|
8938 | <const name="Deleting" value="6">
|
---|
8939 | <desc>
|
---|
8940 | Associated medium storage is being deleted.
|
---|
8941 | </desc>
|
---|
8942 | </const>
|
---|
8943 | </enum>
|
---|
8944 |
|
---|
8945 | <enum
|
---|
8946 | name="MediumType"
|
---|
8947 | uuid="fe663fb5-c244-4e1b-9d81-c628b417dd04"
|
---|
8948 | >
|
---|
8949 | <desc>
|
---|
8950 | Virtual medium type. For each <link to="IMedium" />, this defines how the medium is
|
---|
8951 | attached to a virtual machine (see <link to="IMediumAttachment" />) and what happens
|
---|
8952 | when a snapshot (see <link to="ISnapshot" />) is taken of a virtual machine which has
|
---|
8953 | the medium attached. At the moment DVD and floppy media are always of type "writethrough".
|
---|
8954 | </desc>
|
---|
8955 |
|
---|
8956 | <const name="Normal" value="0">
|
---|
8957 | <desc>
|
---|
8958 | Normal medium (attached directly or indirectly, preserved
|
---|
8959 | when taking snapshots).
|
---|
8960 | </desc>
|
---|
8961 | </const>
|
---|
8962 | <const name="Immutable" value="1">
|
---|
8963 | <desc>
|
---|
8964 | Immutable medium (attached indirectly, changes are wiped out
|
---|
8965 | the next time the virtual machine is started).
|
---|
8966 | </desc>
|
---|
8967 | </const>
|
---|
8968 | <const name="Writethrough" value="2">
|
---|
8969 | <desc>
|
---|
8970 | Write through medium (attached directly, ignored when
|
---|
8971 | taking snapshots).
|
---|
8972 | </desc>
|
---|
8973 | </const>
|
---|
8974 | <const name="Shareable" value="3">
|
---|
8975 | <desc>
|
---|
8976 | Allow using this medium concurrently by several machines.
|
---|
8977 | <note>Present since VirtualBox 3.2.0, and accepted since 3.2.8.</note>
|
---|
8978 | </desc>
|
---|
8979 | </const>
|
---|
8980 | <const name="Readonly" value="4">
|
---|
8981 | <desc>
|
---|
8982 | A readonly medium, which can of course be used by several machines.
|
---|
8983 | <note>Present and accepted since VirtualBox 4.0.</note>
|
---|
8984 | </desc>
|
---|
8985 | </const>
|
---|
8986 | <const name="MultiAttach" value="5">
|
---|
8987 | <desc>
|
---|
8988 | A medium which is is indirectly attached, so that one base medium can
|
---|
8989 | be used for several VMs which have their own differencing medium to
|
---|
8990 | store their modifications. In some sense a variant of Immutable
|
---|
8991 | with unset AutoReset flag in each differencing medium.
|
---|
8992 | <note>Present and accepted since VirtualBox 4.0.</note>
|
---|
8993 | </desc>
|
---|
8994 | </const>
|
---|
8995 | </enum>
|
---|
8996 |
|
---|
8997 | <enum
|
---|
8998 | name="MediumVariant"
|
---|
8999 | uuid="584ea502-143b-4ab0-ad14-d1028fdf0316"
|
---|
9000 | >
|
---|
9001 | <desc>
|
---|
9002 | Virtual medium image variant. More than one flag may be set.
|
---|
9003 | <see>IMedium</see>
|
---|
9004 | </desc>
|
---|
9005 |
|
---|
9006 | <const name="Standard" value="0">
|
---|
9007 | <desc>
|
---|
9008 | No particular variant requested, results in using the backend default.
|
---|
9009 | </desc>
|
---|
9010 | </const>
|
---|
9011 | <const name="VmdkSplit2G" value="0x01">
|
---|
9012 | <desc>
|
---|
9013 | VMDK image split in chunks of less than 2GByte.
|
---|
9014 | </desc>
|
---|
9015 | </const>
|
---|
9016 | <const name="VmdkStreamOptimized" value="0x04">
|
---|
9017 | <desc>
|
---|
9018 | VMDK streamOptimized image. Special import/export format which is
|
---|
9019 | read-only/append-only.
|
---|
9020 | </desc>
|
---|
9021 | </const>
|
---|
9022 | <const name="VmdkESX" value="0x08">
|
---|
9023 | <desc>
|
---|
9024 | VMDK format variant used on ESX products.
|
---|
9025 | </desc>
|
---|
9026 | </const>
|
---|
9027 | <const name="Fixed" value="0x10000">
|
---|
9028 | <desc>
|
---|
9029 | Fixed image. Only allowed for base images.
|
---|
9030 | </desc>
|
---|
9031 | </const>
|
---|
9032 | <const name="Diff" value="0x20000">
|
---|
9033 | <desc>
|
---|
9034 | Differencing image. Only allowed for child images.
|
---|
9035 | </desc>
|
---|
9036 | </const>
|
---|
9037 | </enum>
|
---|
9038 |
|
---|
9039 | <interface
|
---|
9040 | name="IMediumAttachment" extends="$unknown"
|
---|
9041 | uuid="aa4b4840-934f-454d-9a28-23e8f4235edf"
|
---|
9042 | wsmap="struct"
|
---|
9043 | >
|
---|
9044 | <desc>
|
---|
9045 | The IMediumAttachment interface links storage media to virtual machines.
|
---|
9046 | For each medium (<link to="IMedium"/>) which has been attached to a
|
---|
9047 | storage controller (<link to="IStorageController"/>) of a machine
|
---|
9048 | (<link to="IMachine"/>) via the <link to="IMachine::attachDevice" />
|
---|
9049 | method, one instance of IMediumAttachment is added to the machine's
|
---|
9050 | <link to="IMachine::mediumAttachments"/> array attribute.
|
---|
9051 |
|
---|
9052 | Each medium attachment specifies the storage controller as well as a
|
---|
9053 | port and device number and the IMedium instance representing a virtual
|
---|
9054 | hard disk or floppy or DVD image.
|
---|
9055 |
|
---|
9056 | For removable media (DVDs or floppies), there are two additional
|
---|
9057 | options. For one, the IMedium instance can be @c null to represent
|
---|
9058 | an empty drive with no media inserted (see <link to="IMachine::mountMedium" />);
|
---|
9059 | secondly, the medium can be one of the pseudo-media for host drives
|
---|
9060 | listed in <link to="IHost::DVDDrives"/> or <link to="IHost::floppyDrives"/>.
|
---|
9061 |
|
---|
9062 | <h3>Attaching Hard Disks</h3>
|
---|
9063 |
|
---|
9064 | Hard disks are attached to virtual machines using the
|
---|
9065 | <link to="IMachine::attachDevice"/> method and detached using the
|
---|
9066 | <link to="IMachine::detachDevice"/> method. Depending on a medium's
|
---|
9067 | type (see <link to="IMedium::type" />), hard disks are attached either
|
---|
9068 | <i>directly</i> or <i>indirectly</i>.
|
---|
9069 |
|
---|
9070 | When a hard disk is being attached directly, it is associated with the
|
---|
9071 | virtual machine and used for hard disk operations when the machine is
|
---|
9072 | running. When a hard disk is being attached indirectly, a new differencing
|
---|
9073 | hard disk linked to it is implicitly created and this differencing hard
|
---|
9074 | disk is associated with the machine and used for hard disk operations.
|
---|
9075 | This also means that if <link to="IMachine::attachDevice"/> performs
|
---|
9076 | a direct attachment then the same hard disk will be returned in response
|
---|
9077 | to the subsequent <link to="IMachine::getMedium"/> call; however if
|
---|
9078 | an indirect attachment is performed then
|
---|
9079 | <link to="IMachine::getMedium"/> will return the implicitly created
|
---|
9080 | differencing hard disk, not the original one passed to <link
|
---|
9081 | to="IMachine::attachDevice"/>. In detail:
|
---|
9082 |
|
---|
9083 | <ul>
|
---|
9084 | <li><b>Normal base</b> hard disks that do not have children (i.e.
|
---|
9085 | differencing hard disks linked to them) and that are not already
|
---|
9086 | attached to virtual machines in snapshots are attached <b>directly</b>.
|
---|
9087 | Otherwise, they are attached <b>indirectly</b> because having
|
---|
9088 | dependent children or being part of the snapshot makes it impossible
|
---|
9089 | to modify hard disk contents without breaking the integrity of the
|
---|
9090 | dependent party. The <link to="IMedium::readOnly"/> attribute allows to
|
---|
9091 | quickly determine the kind of the attachment for the given hard
|
---|
9092 | disk. Note that if a normal base hard disk is to be indirectly
|
---|
9093 | attached to a virtual machine with snapshots then a special
|
---|
9094 | procedure called <i>smart attachment</i> is performed (see below).</li>
|
---|
9095 | <li><b>Normal differencing</b> hard disks are like normal base hard disks:
|
---|
9096 | they are attached <b>directly</b> if they do not have children and are
|
---|
9097 | not attached to virtual machines in snapshots, and <b>indirectly</b>
|
---|
9098 | otherwise. Note that the smart attachment procedure is never performed
|
---|
9099 | for differencing hard disks.</li>
|
---|
9100 | <li><b>Immutable</b> hard disks are always attached <b>indirectly</b> because
|
---|
9101 | they are designed to be non-writable. If an immutable hard disk is
|
---|
9102 | attached to a virtual machine with snapshots then a special
|
---|
9103 | procedure called smart attachment is performed (see below).</li>
|
---|
9104 | <li><b>Writethrough</b> hard disks are always attached <b>directly</b>,
|
---|
9105 | also as designed. This also means that writethrough hard disks cannot
|
---|
9106 | have other hard disks linked to them at all.</li>
|
---|
9107 | <li><b>Shareable</b> hard disks are always attached <b>directly</b>,
|
---|
9108 | also as designed. This also means that shareable hard disks cannot
|
---|
9109 | have other hard disks linked to them at all. They behave almost
|
---|
9110 | like writethrough hard disks, except that shareable hard disks can
|
---|
9111 | be attached to several virtual machines which are running, allowing
|
---|
9112 | concurrent accesses. You need special cluster software running in
|
---|
9113 | the virtual machines to make use of such disks.</li>
|
---|
9114 | </ul>
|
---|
9115 |
|
---|
9116 | Note that the same hard disk, regardless of its type, may be attached to
|
---|
9117 | more than one virtual machine at a time. In this case, the machine that is
|
---|
9118 | started first gains exclusive access to the hard disk and attempts to
|
---|
9119 | start other machines having this hard disk attached will fail until the
|
---|
9120 | first machine is powered down.
|
---|
9121 |
|
---|
9122 | Detaching hard disks is performed in a <i>deferred</i> fashion. This means
|
---|
9123 | that the given hard disk remains associated with the given machine after a
|
---|
9124 | successful <link to="IMachine::detachDevice"/> call until
|
---|
9125 | <link to="IMachine::saveSettings"/> is called to save all changes to
|
---|
9126 | machine settings to disk. This deferring is necessary to guarantee that
|
---|
9127 | the hard disk configuration may be restored at any time by a call to
|
---|
9128 | <link to="IMachine::discardSettings"/> before the settings
|
---|
9129 | are saved (committed).
|
---|
9130 |
|
---|
9131 | Note that if <link to="IMachine::discardSettings"/> is called after
|
---|
9132 | indirectly attaching some hard disks to the machine but before a call to
|
---|
9133 | <link to="IMachine::saveSettings"/> is made, it will implicitly delete
|
---|
9134 | all differencing hard disks implicitly created by
|
---|
9135 | <link to="IMachine::attachDevice"/> for these indirect attachments.
|
---|
9136 | Such implicitly created hard disks will also be immediately deleted when
|
---|
9137 | detached explicitly using the <link to="IMachine::detachDevice"/>
|
---|
9138 | call if it is made before <link to="IMachine::saveSettings"/>. This
|
---|
9139 | implicit deletion is safe because newly created differencing hard
|
---|
9140 | disks do not contain any user data.
|
---|
9141 |
|
---|
9142 | However, keep in mind that detaching differencing hard disks that were
|
---|
9143 | implicitly created by <link to="IMachine::attachDevice"/>
|
---|
9144 | before the last <link to="IMachine::saveSettings"/> call will
|
---|
9145 | <b>not</b> implicitly delete them as they may already contain some data
|
---|
9146 | (for example, as a result of virtual machine execution). If these hard
|
---|
9147 | disks are no more necessary, the caller can always delete them explicitly
|
---|
9148 | using <link to="IMedium::deleteStorage"/> after they are actually de-associated
|
---|
9149 | from this machine by the <link to="IMachine::saveSettings"/> call.
|
---|
9150 |
|
---|
9151 | <h3>Smart Attachment</h3>
|
---|
9152 |
|
---|
9153 | When normal base or immutable hard disks are indirectly attached to a
|
---|
9154 | virtual machine then some additional steps are performed to make sure the
|
---|
9155 | virtual machine will have the most recent "view" of the hard disk being
|
---|
9156 | attached. These steps include walking through the machine's snapshots
|
---|
9157 | starting from the current one and going through ancestors up to the first
|
---|
9158 | snapshot. Hard disks attached to the virtual machine in all
|
---|
9159 | of the encountered snapshots are checked whether they are descendants of
|
---|
9160 | the given normal base or immutable hard disk. The first found child (which
|
---|
9161 | is the differencing hard disk) will be used instead of the normal base or
|
---|
9162 | immutable hard disk as a parent for creating a new differencing hard disk
|
---|
9163 | that will be actually attached to the machine. And only if no descendants
|
---|
9164 | are found or if the virtual machine does not have any snapshots then the
|
---|
9165 | normal base or immutable hard disk will be used itself as a parent for
|
---|
9166 | this differencing hard disk.
|
---|
9167 |
|
---|
9168 | It is easier to explain what smart attachment does using the
|
---|
9169 | following example:
|
---|
9170 | <pre>
|
---|
9171 | BEFORE attaching B.vdi: AFTER attaching B.vdi:
|
---|
9172 |
|
---|
9173 | Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
|
---|
9174 | Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
|
---|
9175 | Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
|
---|
9176 | Snapshot 4 (none) Snapshot 4 (none)
|
---|
9177 | CurState (none) CurState (D3->D2.vdi)
|
---|
9178 |
|
---|
9179 | NOT
|
---|
9180 | ...
|
---|
9181 | CurState (D3->B.vdi)
|
---|
9182 | </pre>
|
---|
9183 | The first column is the virtual machine configuration before the base hard
|
---|
9184 | disk <tt>B.vdi</tt> is attached, the second column shows the machine after
|
---|
9185 | this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
|
---|
9186 | mean that the hard disk that is actually attached to the machine is a
|
---|
9187 | differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
|
---|
9188 | another hard disk, <tt>B.vdi</tt>.
|
---|
9189 |
|
---|
9190 | As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
|
---|
9191 | from the machine before taking Snapshot 4. Later, after Snapshot 4 was
|
---|
9192 | taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
|
---|
9193 | dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
|
---|
9194 | it cannot be attached directly and needs an indirect attachment (i.e.
|
---|
9195 | implicit creation of a new differencing hard disk). Due to the smart
|
---|
9196 | attachment procedure, the new differencing hard disk
|
---|
9197 | (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
|
---|
9198 | <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
|
---|
9199 | <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
|
---|
9200 | machine.
|
---|
9201 |
|
---|
9202 | Note that if there is more than one descendant hard disk of the given base
|
---|
9203 | hard disk found in a snapshot, and there is an exact device, channel and
|
---|
9204 | bus match, then this exact match will be used. Otherwise, the youngest
|
---|
9205 | descendant will be picked up.
|
---|
9206 |
|
---|
9207 | There is one more important aspect of the smart attachment procedure which
|
---|
9208 | is not related to snapshots at all. Before walking through the snapshots
|
---|
9209 | as described above, the backup copy of the current list of hard disk
|
---|
9210 | attachment is searched for descendants. This backup copy is created when
|
---|
9211 | the hard disk configuration is changed for the first time after the last
|
---|
9212 | <link to="IMachine::saveSettings"/> call and used by
|
---|
9213 | <link to="IMachine::discardSettings"/> to undo the recent hard disk
|
---|
9214 | changes. When such a descendant is found in this backup copy, it will be
|
---|
9215 | simply re-attached back, without creating a new differencing hard disk for
|
---|
9216 | it. This optimization is necessary to make it possible to re-attach the
|
---|
9217 | base or immutable hard disk to a different bus, channel or device slot
|
---|
9218 | without losing the contents of the differencing hard disk actually
|
---|
9219 | attached to the machine in place of it.
|
---|
9220 |
|
---|
9221 | </desc>
|
---|
9222 |
|
---|
9223 | <attribute name="medium" type="IMedium" readonly="yes">
|
---|
9224 | <desc>Medium object associated with this attachment; it
|
---|
9225 | can be @c null for removable devices.</desc>
|
---|
9226 | </attribute>
|
---|
9227 |
|
---|
9228 | <attribute name="controller" type="wstring" readonly="yes">
|
---|
9229 | <desc>Name of the storage controller of this attachment; this
|
---|
9230 | refers to one of the controllers in <link to="IMachine::storageControllers" />
|
---|
9231 | by name.</desc>
|
---|
9232 | </attribute>
|
---|
9233 |
|
---|
9234 | <attribute name="port" type="long" readonly="yes">
|
---|
9235 | <desc>Port number of this attachment.
|
---|
9236 | See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
|
---|
9237 | </desc>
|
---|
9238 | </attribute>
|
---|
9239 |
|
---|
9240 | <attribute name="device" type="long" readonly="yes">
|
---|
9241 | <desc>Device slot number of this attachment.
|
---|
9242 | See <link to="IMachine::attachDevice" /> for the meaning of this value for the different controller types.
|
---|
9243 | </desc>
|
---|
9244 | </attribute>
|
---|
9245 |
|
---|
9246 | <attribute name="type" type="DeviceType" readonly="yes">
|
---|
9247 | <desc>Device type of this attachment.</desc>
|
---|
9248 | </attribute>
|
---|
9249 |
|
---|
9250 | <attribute name="passthrough" type="boolean" readonly="yes">
|
---|
9251 | <desc>Pass I/O requests through to a device on the host.</desc>
|
---|
9252 | </attribute>
|
---|
9253 |
|
---|
9254 | <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
|
---|
9255 | <desc>The bandwidth group this medium attachment is assigned to.</desc>
|
---|
9256 | </attribute>
|
---|
9257 |
|
---|
9258 | </interface>
|
---|
9259 |
|
---|
9260 | <interface
|
---|
9261 | name="IMedium" extends="$unknown"
|
---|
9262 | uuid="9edda847-1279-4b0a-9af7-9d66251ccc18"
|
---|
9263 | wsmap="managed"
|
---|
9264 | >
|
---|
9265 | <desc>
|
---|
9266 | The IMedium interface represents virtual storage for a machine's
|
---|
9267 | hard disks, CD/DVD or floppy drives. It will typically represent
|
---|
9268 | a disk image on the host, for example a VDI or VMDK file representing
|
---|
9269 | a virtual hard disk, or an ISO or RAW file representing virtual
|
---|
9270 | removable media, but can also point to a network location (e.g.
|
---|
9271 | for iSCSI targets).
|
---|
9272 |
|
---|
9273 | Instances of IMedium are connected to virtual machines by way of medium
|
---|
9274 | attachments, which link the storage medium to a particular device slot
|
---|
9275 | of a storage controller of the virtual machine.
|
---|
9276 | In the VirtualBox API, virtual storage is therefore always represented
|
---|
9277 | by the following chain of object links:
|
---|
9278 |
|
---|
9279 | <ul>
|
---|
9280 | <li><link to="IMachine::storageControllers"/> contains an array of
|
---|
9281 | storage controllers (IDE, SATA, SCSI, SAS or a floppy controller;
|
---|
9282 | these are instances of <link to="IStorageController"/>).</li>
|
---|
9283 | <li><link to="IMachine::mediumAttachments"/> contains an array of
|
---|
9284 | medium attachments (instances of <link to="IMediumAttachment"/>
|
---|
9285 | created by <link to="IMachine::attachDevice" />),
|
---|
9286 | each containing a storage controller from the above array, a
|
---|
9287 | port/device specification, and an instance of IMedium representing
|
---|
9288 | the medium storage (image file).
|
---|
9289 |
|
---|
9290 | For removable media, the storage medium is optional; a medium
|
---|
9291 | attachment with no medium represents a CD/DVD or floppy drive
|
---|
9292 | with no medium inserted. By contrast, hard disk attachments
|
---|
9293 | will always have an IMedium object attached.</li>
|
---|
9294 | <li>Each IMedium in turn points to a storage unit (such as a file
|
---|
9295 | on the host computer or a network resource) that holds actual
|
---|
9296 | data. This location is represented by the <link to="#location"/>
|
---|
9297 | attribute.</li>
|
---|
9298 | </ul>
|
---|
9299 |
|
---|
9300 | Existing media are opened using <link to="IVirtualBox::openMedium"/>;
|
---|
9301 | new hard disk media can be created with the VirtualBox API using the
|
---|
9302 | <link to="IVirtualBox::createHardDisk"/> method. Differencing hard
|
---|
9303 | disks (see below) are usually implicitly created by VirtualBox as
|
---|
9304 | needed, but may also be created explicitly using <link to="#createDiffStorage"/>.
|
---|
9305 | VirtualBox cannot create CD/DVD or floppy images (ISO and RAW files); these
|
---|
9306 | should be created with external tools and then opened from within VirtualBox.
|
---|
9307 |
|
---|
9308 | Only for CD/DVDs and floppies, an IMedium instance can also represent a host
|
---|
9309 | drive. In that case the <link to="#id" /> attribute contains the UUID of
|
---|
9310 | one of the drives in <link to="IHost::DVDDrives" /> or <link to="IHost::floppyDrives" />.
|
---|
9311 |
|
---|
9312 | <h3>Media registries</h3>
|
---|
9313 |
|
---|
9314 | When a medium has been opened or created using one of the aforementioned
|
---|
9315 | APIs, it becomes "known" to VirtualBox. Known media can be attached
|
---|
9316 | to virtual machines and accessed through <link to="IVirtualBox::findMedium"/>.
|
---|
9317 | They also appear in the global
|
---|
9318 | <link to="IVirtualBox::hardDisks" />,
|
---|
9319 | <link to="IVirtualBox::DVDImages" /> and
|
---|
9320 | <link to="IVirtualBox::floppyImages" /> arrays.
|
---|
9321 |
|
---|
9322 | Prior to VirtualBox 4.0, opening a medium added it to a global media registry
|
---|
9323 | in the VirtualBox.xml file, which was shared between all machines and made
|
---|
9324 | transporting machines and their media from one host to another difficult.
|
---|
9325 |
|
---|
9326 | Starting with VirtualBox 4.0, media are only added to a registry when they are
|
---|
9327 | <i>attached</i> to a machine using <link to="IMachine::attachDevice" />. For
|
---|
9328 | backwards compatibility, which registry a medium is added to depends on which
|
---|
9329 | VirtualBox version created a machine:
|
---|
9330 |
|
---|
9331 | <ul>
|
---|
9332 | <li>If the medium has first been attached to a machine which was created by
|
---|
9333 | VirtualBox 4.0 or later, it is added to that machine's media registry in
|
---|
9334 | the machine XML settings file. This way all information about a machine's
|
---|
9335 | media attachments is contained in a single file and can be transported
|
---|
9336 | easily.</li>
|
---|
9337 | <li>For older media attachments (i.e. if the medium was first attached to a
|
---|
9338 | machine which was created with a VirtualBox version before 4.0), media
|
---|
9339 | continue to be registered in the global VirtualBox settings file, for
|
---|
9340 | backwards compatibility.</li>
|
---|
9341 | </ul>
|
---|
9342 |
|
---|
9343 | See <link to="IVirtualBox::openMedium" /> for more information.
|
---|
9344 |
|
---|
9345 | Media are removed from media registries by the <link to="#close"/>,
|
---|
9346 | <link to="#deleteStorage"/> and <link to="#mergeTo"/> methods.
|
---|
9347 |
|
---|
9348 | <h3>Accessibility checks</h3>
|
---|
9349 |
|
---|
9350 | VirtualBox defers media accessibility checks until the <link to="#refreshState" />
|
---|
9351 | method is called explicitly on a medium. This is done to make the VirtualBox object
|
---|
9352 | ready for serving requests as fast as possible and let the end-user
|
---|
9353 | application decide if it needs to check media accessibility right away or not.
|
---|
9354 |
|
---|
9355 | As a result, when VirtualBox starts up (e.g. the VirtualBox
|
---|
9356 | object gets created for the first time), all known media are in the
|
---|
9357 | "Inaccessible" state, but the value of the <link to="#lastAccessError"/>
|
---|
9358 | attribute is an empty string because no actual accessibility check has
|
---|
9359 | been made yet.
|
---|
9360 |
|
---|
9361 | After calling <link to="#refreshState" />, a medium is considered
|
---|
9362 | <i>accessible</i> if its storage unit can be read. In that case, the
|
---|
9363 | <link to="#state"/> attribute has a value of "Created". If the storage
|
---|
9364 | unit cannot be read (for example, because it is located on a disconnected
|
---|
9365 | network resource, or was accidentally deleted outside VirtualBox),
|
---|
9366 | the medium is considered <i>inaccessible</i>, which is indicated by the
|
---|
9367 | "Inaccessible" state. The exact reason why the medium is inaccessible can be
|
---|
9368 | obtained by reading the <link to="#lastAccessError"/> attribute.
|
---|
9369 |
|
---|
9370 | <h3>Medium types</h3>
|
---|
9371 |
|
---|
9372 | There are five types of medium behavior which are stored in the
|
---|
9373 | <link to="#type"/> attribute (see <link to="MediumType" />) and
|
---|
9374 | which define the medium's behavior with attachments and snapshots.
|
---|
9375 |
|
---|
9376 | All media can be also divided in two groups: <i>base</i> media and
|
---|
9377 | <i>differencing</i> media. A base medium contains all sectors of the
|
---|
9378 | medium data in its own storage and therefore can be used independently.
|
---|
9379 | In contrast, a differencing medium is a "delta" to some other medium and
|
---|
9380 | contains only those sectors which differ from that other medium, which is
|
---|
9381 | then called a <i>parent</i>. The differencing medium is said to be
|
---|
9382 | <i>linked to</i> that parent. The parent may be itself a differencing
|
---|
9383 | medium, thus forming a chain of linked media. The last element in that
|
---|
9384 | chain must always be a base medium. Note that several differencing
|
---|
9385 | media may be linked to the same parent medium.
|
---|
9386 |
|
---|
9387 | Differencing media can be distinguished from base media by querying the
|
---|
9388 | <link to="#parent"/> attribute: base media do not have parents they would
|
---|
9389 | depend on, so the value of this attribute is always @c null for them.
|
---|
9390 | Using this attribute, it is possible to walk up the medium tree (from the
|
---|
9391 | child medium to its parent). It is also possible to walk down the tree
|
---|
9392 | using the <link to="#children"/> attribute.
|
---|
9393 |
|
---|
9394 | Note that the type of all differencing media is "normal"; all other
|
---|
9395 | values are meaningless for them. Base media may be of any type.
|
---|
9396 |
|
---|
9397 | <h3>Automatic composition of the file name part</h3>
|
---|
9398 |
|
---|
9399 | Another extension to the <link to="IMedium::location"/> attribute is that
|
---|
9400 | there is a possibility to cause VirtualBox to compose a unique value for
|
---|
9401 | the file name part of the location using the UUID of the hard disk. This
|
---|
9402 | applies only to hard disks in <link to="MediumState_NotCreated"/> state,
|
---|
9403 | e.g. before the storage unit is created, and works as follows. You set the
|
---|
9404 | value of the <link to="IMedium::location"/> attribute to a location
|
---|
9405 | specification which only contains the path specification but not the file
|
---|
9406 | name part and ends with either a forward slash or a backslash character.
|
---|
9407 | In response, VirtualBox will generate a new UUID for the hard disk and
|
---|
9408 | compose the file name using the following pattern:
|
---|
9409 | <pre>
|
---|
9410 | <path>/{<uuid>}.<ext>
|
---|
9411 | </pre>
|
---|
9412 | where <tt><path></tt> is the supplied path specification,
|
---|
9413 | <tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
|
---|
9414 | is the default extension for the storage format of this hard disk. After
|
---|
9415 | that, you may call any of the methods that create a new hard disk storage
|
---|
9416 | unit and they will use the generated UUID and file name.
|
---|
9417 | </desc>
|
---|
9418 |
|
---|
9419 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
9420 | <desc>
|
---|
9421 | UUID of the medium. For a newly created medium, this value is a randomly
|
---|
9422 | generated UUID.
|
---|
9423 |
|
---|
9424 | <note>
|
---|
9425 | For media in one of MediumState_NotCreated, MediumState_Creating or
|
---|
9426 | MediumState_Deleting states, the value of this property is undefined
|
---|
9427 | and will most likely be an empty UUID.
|
---|
9428 | </note>
|
---|
9429 | </desc>
|
---|
9430 | </attribute>
|
---|
9431 |
|
---|
9432 | <attribute name="description" type="wstring">
|
---|
9433 | <desc>
|
---|
9434 | Optional description of the medium. For a newly created medium the value
|
---|
9435 | of this attribute is an empty string.
|
---|
9436 |
|
---|
9437 | Medium types that don't support this attribute will return E_NOTIMPL in
|
---|
9438 | attempt to get or set this attribute's value.
|
---|
9439 |
|
---|
9440 | <note>
|
---|
9441 | For some storage types, reading this attribute may return an outdated
|
---|
9442 | (last known) value when <link to="#state"/> is <link
|
---|
9443 | to="MediumState_Inaccessible"/> or <link
|
---|
9444 | to="MediumState_LockedWrite"/> because the value of this attribute is
|
---|
9445 | stored within the storage unit itself. Also note that changing the
|
---|
9446 | attribute value is not possible in such case, as well as when the
|
---|
9447 | medium is the <link to="MediumState_LockedRead"/> state.
|
---|
9448 | </note>
|
---|
9449 | </desc>
|
---|
9450 | </attribute>
|
---|
9451 |
|
---|
9452 | <attribute name="state" type="MediumState" readonly="yes">
|
---|
9453 | <desc>
|
---|
9454 | Returns the current medium state, which is the last state set by
|
---|
9455 | the accessibility check performed by <link to="#refreshState"/>.
|
---|
9456 | If that method has not yet been called on the medium, the state
|
---|
9457 | is "Inaccessible"; as opposed to truly inaccessible media, the
|
---|
9458 | value of <link to="#lastAccessError"/> will be an empty string in
|
---|
9459 | that case.
|
---|
9460 |
|
---|
9461 | <note>As of version 3.1, this no longer performs an accessibility check
|
---|
9462 | automatically; call <link to="#refreshState"/> for that.
|
---|
9463 | </note>
|
---|
9464 | </desc>
|
---|
9465 | </attribute>
|
---|
9466 |
|
---|
9467 | <attribute name="variant" type="unsigned long" readonly="yes">
|
---|
9468 | <desc>
|
---|
9469 | Returns the storage format variant information for this medium
|
---|
9470 | as a combination of the flags described at <link to="MediumVariant" />.
|
---|
9471 | Before <link to="#refreshState"/> is called this method returns
|
---|
9472 | an undefined value.
|
---|
9473 | </desc>
|
---|
9474 | </attribute>
|
---|
9475 |
|
---|
9476 | <attribute name="location" type="wstring">
|
---|
9477 | <desc>
|
---|
9478 | Location of the storage unit holding medium data.
|
---|
9479 |
|
---|
9480 | The format of the location string is medium type specific. For medium
|
---|
9481 | types using regular files in a host's file system, the location
|
---|
9482 | string is the full file name.
|
---|
9483 |
|
---|
9484 | Some medium types may support changing the storage unit location by
|
---|
9485 | simply changing the value of this property. If this operation is not
|
---|
9486 | supported, the implementation will return E_NOTIMPL in attempt to set
|
---|
9487 | this attribute's value.
|
---|
9488 |
|
---|
9489 | When setting a value of the location attribute which is a regular file
|
---|
9490 | in the host's file system, the given file name may be either relative to
|
---|
9491 | the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
|
---|
9492 | absolute. Note that if the given location specification does not contain
|
---|
9493 | the file extension part then a proper default extension will be
|
---|
9494 | automatically appended by the implementation depending on the medium type.
|
---|
9495 | </desc>
|
---|
9496 | </attribute>
|
---|
9497 |
|
---|
9498 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9499 | <desc>
|
---|
9500 | Name of the storage unit holding medium data.
|
---|
9501 |
|
---|
9502 | The returned string is a short version of the <link to="#location"/>
|
---|
9503 | attribute that is suitable for representing the medium in situations
|
---|
9504 | where the full location specification is too long (such as lists
|
---|
9505 | and comboboxes in GUI frontends). This string is also used by frontends
|
---|
9506 | to sort the media list alphabetically when needed.
|
---|
9507 |
|
---|
9508 | For example, for locations that are regular files in the host's file
|
---|
9509 | system, the value of this attribute is just the file name (+ extension),
|
---|
9510 | without the path specification.
|
---|
9511 |
|
---|
9512 | Note that as opposed to the <link to="#location"/> attribute, the name
|
---|
9513 | attribute will not necessary be unique for a list of media of the
|
---|
9514 | given type and format.
|
---|
9515 | </desc>
|
---|
9516 | </attribute>
|
---|
9517 |
|
---|
9518 | <attribute name="deviceType" type="DeviceType" readonly="yes">
|
---|
9519 | <desc>Kind of device (DVD/Floppy/HardDisk) which is applicable to this
|
---|
9520 | medium.</desc>
|
---|
9521 | </attribute>
|
---|
9522 |
|
---|
9523 | <attribute name="hostDrive" type="boolean" readonly="yes">
|
---|
9524 | <desc>True if this corresponds to a drive on the host.</desc>
|
---|
9525 | </attribute>
|
---|
9526 |
|
---|
9527 | <attribute name="size" type="long long" readonly="yes">
|
---|
9528 | <desc>
|
---|
9529 | Physical size of the storage unit used to hold medium data (in bytes).
|
---|
9530 |
|
---|
9531 | <note>
|
---|
9532 | For media whose <link to="#state"/> is <link
|
---|
9533 | to="MediumState_Inaccessible"/>, the value of this property is the
|
---|
9534 | last known size. For <link to="MediumState_NotCreated"/> media,
|
---|
9535 | the returned value is zero.
|
---|
9536 | </note>
|
---|
9537 | </desc>
|
---|
9538 | </attribute>
|
---|
9539 |
|
---|
9540 | <attribute name="format" type="wstring" readonly="yes">
|
---|
9541 | <desc>
|
---|
9542 | Storage format of this medium.
|
---|
9543 |
|
---|
9544 | The value of this attribute is a string that specifies a backend used
|
---|
9545 | to store medium data. The storage format is defined when you create a
|
---|
9546 | new medium or automatically detected when you open an existing medium,
|
---|
9547 | and cannot be changed later.
|
---|
9548 |
|
---|
9549 | The list of all storage formats supported by this VirtualBox
|
---|
9550 | installation can be obtained using
|
---|
9551 | <link to="ISystemProperties::mediumFormats"/>.
|
---|
9552 | </desc>
|
---|
9553 | </attribute>
|
---|
9554 |
|
---|
9555 | <attribute name="mediumFormat" type="IMediumFormat" readonly="yes">
|
---|
9556 | <desc>
|
---|
9557 | Storage medium format object corresponding to this medium.
|
---|
9558 |
|
---|
9559 | The value of this attribute is a reference to the medium format object
|
---|
9560 | that specifies the backend properties used to store medium data. The
|
---|
9561 | storage format is defined when you create a new medium or automatically
|
---|
9562 | detected when you open an existing medium, and cannot be changed later.
|
---|
9563 |
|
---|
9564 | <note>@c null is returned if there is no associated medium format
|
---|
9565 | object. This can e.g. happen for medium objects representing host
|
---|
9566 | drives and other special medium objects.</note>
|
---|
9567 | </desc>
|
---|
9568 | </attribute>
|
---|
9569 |
|
---|
9570 | <attribute name="type" type="MediumType">
|
---|
9571 | <desc>
|
---|
9572 | Type (role) of this medium.
|
---|
9573 |
|
---|
9574 | The following constraints apply when changing the value of this
|
---|
9575 | attribute:
|
---|
9576 | <ul>
|
---|
9577 | <li>If a medium is attached to a virtual machine (either in the
|
---|
9578 | current state or in one of the snapshots), its type cannot be
|
---|
9579 | changed.
|
---|
9580 | </li>
|
---|
9581 | <li>As long as the medium has children, its type cannot be set
|
---|
9582 | to <link to="MediumType_Writethrough"/>.
|
---|
9583 | </li>
|
---|
9584 | <li>The type of all differencing media is
|
---|
9585 | <link to="MediumType_Normal"/> and cannot be changed.
|
---|
9586 | </li>
|
---|
9587 | </ul>
|
---|
9588 |
|
---|
9589 | The type of a newly created or opened medium is set to
|
---|
9590 | <link to="MediumType_Normal"/>, except for DVD and floppy media,
|
---|
9591 | which have a type of <link to="MediumType_Writethrough"/>.
|
---|
9592 | </desc>
|
---|
9593 | </attribute>
|
---|
9594 |
|
---|
9595 | <attribute name="parent" type="IMedium" readonly="yes">
|
---|
9596 | <desc>
|
---|
9597 | Parent of this medium (the medium this medium is directly based
|
---|
9598 | on).
|
---|
9599 |
|
---|
9600 | Only differencing media have parents. For base (non-differencing)
|
---|
9601 | media, @c null is returned.
|
---|
9602 | </desc>
|
---|
9603 | </attribute>
|
---|
9604 |
|
---|
9605 | <attribute name="children" type="IMedium" safearray="yes" readonly="yes">
|
---|
9606 | <desc>
|
---|
9607 | Children of this medium (all differencing media directly based
|
---|
9608 | on this medium). A @c null array is returned if this medium
|
---|
9609 | does not have any children.
|
---|
9610 | </desc>
|
---|
9611 | </attribute>
|
---|
9612 |
|
---|
9613 | <attribute name="base" type="IMedium" readonly="yes">
|
---|
9614 | <desc>
|
---|
9615 | Base medium of this medium.
|
---|
9616 |
|
---|
9617 | If this is a differencing medium, its base medium is the medium
|
---|
9618 | the given medium branch starts from. For all other types of media, this
|
---|
9619 | property returns the medium object itself (i.e. the same object this
|
---|
9620 | property is read on).
|
---|
9621 | </desc>
|
---|
9622 | </attribute>
|
---|
9623 |
|
---|
9624 | <attribute name="readOnly" type="boolean" readonly="yes">
|
---|
9625 | <desc>
|
---|
9626 | Returns @c true if this medium is read-only and @c false otherwise.
|
---|
9627 |
|
---|
9628 | A medium is considered to be read-only when its contents cannot be
|
---|
9629 | modified without breaking the integrity of other parties that depend on
|
---|
9630 | this medium such as its child media or snapshots of virtual machines
|
---|
9631 | where this medium is attached to these machines. If there are no
|
---|
9632 | children and no such snapshots then there is no dependency and the
|
---|
9633 | medium is not read-only.
|
---|
9634 |
|
---|
9635 | The value of this attribute can be used to determine the kind of the
|
---|
9636 | attachment that will take place when attaching this medium to a
|
---|
9637 | virtual machine. If the value is @c false then the medium will
|
---|
9638 | be attached directly. If the value is @c true then the medium
|
---|
9639 | will be attached indirectly by creating a new differencing child
|
---|
9640 | medium for that. See the interface description for more information.
|
---|
9641 |
|
---|
9642 | Note that all <link to="MediumType_Immutable">Immutable</link> media
|
---|
9643 | are always read-only while all
|
---|
9644 | <link to="MediumType_Writethrough">Writethrough</link> media are
|
---|
9645 | always not.
|
---|
9646 |
|
---|
9647 | <note>
|
---|
9648 | The read-only condition represented by this attribute is related to
|
---|
9649 | the medium type and usage, not to the current
|
---|
9650 | <link to="IMedium::state">medium state</link> and not to the read-only
|
---|
9651 | state of the storage unit.
|
---|
9652 | </note>
|
---|
9653 | </desc>
|
---|
9654 | </attribute>
|
---|
9655 |
|
---|
9656 | <attribute name="logicalSize" type="long long" readonly="yes">
|
---|
9657 | <desc>
|
---|
9658 | Logical size of this medium (in bytes), as reported to the
|
---|
9659 | guest OS running inside the virtual machine this medium is
|
---|
9660 | attached to. The logical size is defined when the medium is created
|
---|
9661 | and cannot be changed later.
|
---|
9662 |
|
---|
9663 | <note>
|
---|
9664 | Reading this property on a differencing medium will return the size
|
---|
9665 | of its <link to="#base"/> medium.
|
---|
9666 | </note>
|
---|
9667 | <note>
|
---|
9668 | For media whose state is <link to="#state"/> is <link
|
---|
9669 | to="MediumState_Inaccessible"/>, the value of this property is the
|
---|
9670 | last known logical size. For <link to="MediumState_NotCreated"/>
|
---|
9671 | media, the returned value is zero.
|
---|
9672 | </note>
|
---|
9673 | </desc>
|
---|
9674 | </attribute>
|
---|
9675 |
|
---|
9676 | <attribute name="autoReset" type="boolean">
|
---|
9677 | <desc>
|
---|
9678 | Whether this differencing medium will be automatically reset each
|
---|
9679 | time a virtual machine it is attached to is powered up. This
|
---|
9680 | attribute is automatically set to @c true for the last
|
---|
9681 | differencing image of an "immutable" medium (see
|
---|
9682 | <link to="MediumType" />).
|
---|
9683 |
|
---|
9684 | See <link to="#reset"/> for more information about resetting
|
---|
9685 | differencing media.
|
---|
9686 |
|
---|
9687 | <note>
|
---|
9688 | Reading this property on a base (non-differencing) medium will
|
---|
9689 | always @c false. Changing the value of this property in this
|
---|
9690 | case is not supported.
|
---|
9691 | </note>
|
---|
9692 |
|
---|
9693 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9694 | This is not a differencing medium (when changing the attribute
|
---|
9695 | value).
|
---|
9696 | </result>
|
---|
9697 | </desc>
|
---|
9698 | </attribute>
|
---|
9699 |
|
---|
9700 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
9701 | <desc>
|
---|
9702 | Text message that represents the result of the last accessibility
|
---|
9703 | check performed by <link to="#refreshState"/>.
|
---|
9704 |
|
---|
9705 | An empty string is returned if the last accessibility check
|
---|
9706 | was successful or has not yet been called. As a result, if
|
---|
9707 | <link to="#state" /> is "Inaccessible" and this attribute is empty,
|
---|
9708 | then <link to="#refreshState"/> has yet to be called; this is the
|
---|
9709 | default value of media after VirtualBox initialization.
|
---|
9710 | A non-empty string indicates a failure and should normally describe
|
---|
9711 | a reason of the failure (for example, a file read error).
|
---|
9712 | </desc>
|
---|
9713 | </attribute>
|
---|
9714 |
|
---|
9715 | <attribute name="machineIds" type="uuid" mod="string" safearray="yes" readonly="yes">
|
---|
9716 | <desc>
|
---|
9717 | Array of UUIDs of all machines this medium is attached to.
|
---|
9718 |
|
---|
9719 | A @c null array is returned if this medium is not attached to any
|
---|
9720 | machine or to any machine's snapshot.
|
---|
9721 |
|
---|
9722 | <note>
|
---|
9723 | The returned array will include a machine even if this medium is not
|
---|
9724 | attached to that machine in the current state but attached to it in
|
---|
9725 | one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
|
---|
9726 | details.
|
---|
9727 | </note>
|
---|
9728 | </desc>
|
---|
9729 | </attribute>
|
---|
9730 |
|
---|
9731 | <method name="setIDs">
|
---|
9732 | <desc>
|
---|
9733 | Changes the UUID and parent UUID for a hard disk medium.
|
---|
9734 | </desc>
|
---|
9735 | <param name="setImageId" type="boolean" dir="in">
|
---|
9736 | <desc>
|
---|
9737 | Select whether a new image UUID is set or not.
|
---|
9738 | </desc>
|
---|
9739 | </param>
|
---|
9740 | <param name="imageId" type="uuid" mod="string" dir="in">
|
---|
9741 | <desc>
|
---|
9742 | New UUID for the image. If an empty string is passed, then a new
|
---|
9743 | UUID is automatically created, provided that @a setImageId is @c true.
|
---|
9744 | Specifying a zero UUID is not allowed.
|
---|
9745 | </desc>
|
---|
9746 | </param>
|
---|
9747 | <param name="setParentId" type="boolean" dir="in">
|
---|
9748 | <desc>
|
---|
9749 | Select whether a new parent UUID is set or not.
|
---|
9750 | </desc>
|
---|
9751 | </param>
|
---|
9752 | <param name="parentId" type="uuid" mod="string" dir="in">
|
---|
9753 | <desc>
|
---|
9754 | New parent UUID for the image. If an empty string is passed, then a
|
---|
9755 | new UUID is automatically created, provided @a setParentId is
|
---|
9756 | @c true. A zero UUID is valid.
|
---|
9757 | </desc>
|
---|
9758 | </param>
|
---|
9759 | <result name="E_INVALIDARG">
|
---|
9760 | Invalid parameter combination.
|
---|
9761 | </result>
|
---|
9762 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9763 | Medium is not a hard disk medium.
|
---|
9764 | </result>
|
---|
9765 | </method>
|
---|
9766 |
|
---|
9767 | <method name="refreshState">
|
---|
9768 | <desc>
|
---|
9769 | If the current medium state (see <link to="MediumState"/>) is one of
|
---|
9770 | "Created", "Inaccessible" or "LockedRead", then this performs an
|
---|
9771 | accessibility check on the medium and sets the value of the <link to="#state"/>
|
---|
9772 | attribute accordingly; that value is also returned for convenience.
|
---|
9773 |
|
---|
9774 | For all other state values, this does not perform a refresh but returns
|
---|
9775 | the state only.
|
---|
9776 |
|
---|
9777 | The refresh, if performed, may take a long time (several seconds or even
|
---|
9778 | minutes, depending on the storage unit location and format) because it performs an
|
---|
9779 | accessibility check of the storage unit. This check may cause a significant
|
---|
9780 | delay if the storage unit of the given medium is, for example, a file located
|
---|
9781 | on a network share which is not currently accessible due to connectivity
|
---|
9782 | problems. In that case, the call will not return until a timeout
|
---|
9783 | interval defined by the host OS for this operation expires. For this reason,
|
---|
9784 | it is recommended to never read this attribute on the main UI thread to avoid
|
---|
9785 | making the UI unresponsive.
|
---|
9786 |
|
---|
9787 | If the last known state of the medium is "Created" and the accessibility
|
---|
9788 | check fails, then the state would be set to "Inaccessible", and
|
---|
9789 | <link to="#lastAccessError"/> may be used to get more details about the
|
---|
9790 | failure. If the state of the medium is "LockedRead", then it remains the
|
---|
9791 | same, and a non-empty value of <link to="#lastAccessError"/> will
|
---|
9792 | indicate a failed accessibility check in this case.
|
---|
9793 |
|
---|
9794 | Note that not all medium states are applicable to all medium types.
|
---|
9795 | </desc>
|
---|
9796 | <param name="state" type="MediumState" dir="return">
|
---|
9797 | <desc>
|
---|
9798 | New medium state.
|
---|
9799 | </desc>
|
---|
9800 | </param>
|
---|
9801 | </method>
|
---|
9802 |
|
---|
9803 | <method name="getSnapshotIds">
|
---|
9804 | <desc>
|
---|
9805 | Returns an array of UUIDs of all snapshots of the given machine where
|
---|
9806 | this medium is attached to.
|
---|
9807 |
|
---|
9808 | If the medium is attached to the machine in the current state, then the
|
---|
9809 | first element in the array will always be the ID of the queried machine
|
---|
9810 | (i.e. the value equal to the @c machineId argument), followed by
|
---|
9811 | snapshot IDs (if any).
|
---|
9812 |
|
---|
9813 | If the medium is not attached to the machine in the current state, then
|
---|
9814 | the array will contain only snapshot IDs.
|
---|
9815 |
|
---|
9816 | The returned array may be @c null if this medium is not attached
|
---|
9817 | to the given machine at all, neither in the current state nor in one of
|
---|
9818 | the snapshots.
|
---|
9819 | </desc>
|
---|
9820 | <param name="machineId" type="uuid" mod="string" dir="in">
|
---|
9821 | <desc>
|
---|
9822 | UUID of the machine to query.
|
---|
9823 | </desc>
|
---|
9824 | </param>
|
---|
9825 | <param name="snapshotIds" type="uuid" mod="string" safearray="yes" dir="return">
|
---|
9826 | <desc>
|
---|
9827 | Array of snapshot UUIDs of the given machine using this medium.
|
---|
9828 | </desc>
|
---|
9829 | </param>
|
---|
9830 | </method>
|
---|
9831 |
|
---|
9832 | <method name="lockRead">
|
---|
9833 | <desc>
|
---|
9834 | Locks this medium for reading.
|
---|
9835 |
|
---|
9836 | A read lock is shared: many clients can simultaneously lock the
|
---|
9837 | same medium for reading unless it is already locked for writing (see
|
---|
9838 | <link to="#lockWrite"/>) in which case an error is returned.
|
---|
9839 |
|
---|
9840 | When the medium is locked for reading, it cannot be modified
|
---|
9841 | from within VirtualBox. This means that any method that changes
|
---|
9842 | the properties of this medium or contents of the storage unit
|
---|
9843 | will return an error (unless explicitly stated otherwise). That
|
---|
9844 | includes an attempt to start a virtual machine that wants to
|
---|
9845 | write to the the medium.
|
---|
9846 |
|
---|
9847 | When the virtual machine is started up, it locks for reading all
|
---|
9848 | media it uses in read-only mode. If some medium cannot be locked
|
---|
9849 | for reading, the startup procedure will fail.
|
---|
9850 | A medium is typically locked for reading while it is used by a running
|
---|
9851 | virtual machine but has a depending differencing image that receives
|
---|
9852 | the actual write operations. This way one base medium can have
|
---|
9853 | multiple child differencing images which can be written to
|
---|
9854 | simultaneously. Read-only media such as DVD and floppy images are
|
---|
9855 | also locked for reading only (so they can be in use by multiple
|
---|
9856 | machines simultaneously).
|
---|
9857 |
|
---|
9858 | A medium is also locked for reading when it is the source of a
|
---|
9859 | write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
|
---|
9860 |
|
---|
9861 | The medium locked for reading must be unlocked using the <link
|
---|
9862 | to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
|
---|
9863 | can be nested and must be followed by the same number of paired
|
---|
9864 | <link to="#unlockRead"/> calls.
|
---|
9865 |
|
---|
9866 | This method sets the medium state (see <link to="#state"/>) to
|
---|
9867 | "LockedRead" on success. The medium's previous state must be
|
---|
9868 | one of "Created", "Inaccessible" or "LockedRead".
|
---|
9869 |
|
---|
9870 | Locking an inaccessible medium is not an error; this method performs
|
---|
9871 | a logical lock that prevents modifications of this medium through
|
---|
9872 | the VirtualBox API, not a physical file-system lock of the underlying
|
---|
9873 | storage unit.
|
---|
9874 |
|
---|
9875 | This method returns the current state of the medium
|
---|
9876 | <i>before</i> the operation.
|
---|
9877 |
|
---|
9878 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9879 | Invalid medium state (e.g. not created, locked, inaccessible,
|
---|
9880 | creating, deleting).
|
---|
9881 | </result>
|
---|
9882 |
|
---|
9883 | </desc>
|
---|
9884 | <param name="state" type="MediumState" dir="return">
|
---|
9885 | <desc>
|
---|
9886 | State of the medium after the operation.
|
---|
9887 | </desc>
|
---|
9888 | </param>
|
---|
9889 | </method>
|
---|
9890 |
|
---|
9891 | <method name="unlockRead">
|
---|
9892 | <desc>
|
---|
9893 | Cancels the read lock previously set by <link to="#lockRead"/>.
|
---|
9894 |
|
---|
9895 | For both success and failure, this method returns the current state
|
---|
9896 | of the medium <i>after</i> the operation.
|
---|
9897 |
|
---|
9898 | See <link to="#lockRead"/> for more details.
|
---|
9899 |
|
---|
9900 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9901 | Medium not locked for reading.
|
---|
9902 | </result>
|
---|
9903 |
|
---|
9904 | </desc>
|
---|
9905 | <param name="state" type="MediumState" dir="return">
|
---|
9906 | <desc>
|
---|
9907 | State of the medium after the operation.
|
---|
9908 | </desc>
|
---|
9909 | </param>
|
---|
9910 | </method>
|
---|
9911 |
|
---|
9912 | <method name="lockWrite">
|
---|
9913 | <desc>
|
---|
9914 | Locks this medium for writing.
|
---|
9915 |
|
---|
9916 | A write lock, as opposed to <link to="#lockRead"/>, is
|
---|
9917 | exclusive: there may be only one client holding a write lock,
|
---|
9918 | and there may be no read locks while the write lock is held.
|
---|
9919 | As a result, read-locking fails if a write lock is held, and
|
---|
9920 | write-locking fails if either a read or another write lock is held.
|
---|
9921 |
|
---|
9922 | When a medium is locked for writing, it cannot be modified
|
---|
9923 | from within VirtualBox, and it is not guaranteed that the values
|
---|
9924 | of its properties are up-to-date. Any method that changes the
|
---|
9925 | properties of this medium or contents of the storage unit will
|
---|
9926 | return an error (unless explicitly stated otherwise).
|
---|
9927 |
|
---|
9928 | When a virtual machine is started up, it locks for writing all
|
---|
9929 | media it uses to write data to. If any medium could not be locked
|
---|
9930 | for writing, the startup procedure will fail. If a medium has
|
---|
9931 | differencing images, then while the machine is running, only
|
---|
9932 | the last ("leaf") differencing image is locked for writing,
|
---|
9933 | whereas its parents are locked for reading only.
|
---|
9934 |
|
---|
9935 | A medium is also locked for writing when it is the target of a
|
---|
9936 | write operation such as <link to="#cloneTo"/> or <link to="#mergeTo"/>.
|
---|
9937 |
|
---|
9938 | The medium locked for writing must be unlocked using the <link
|
---|
9939 | to="#unlockWrite"/> method. Write locks <i>cannot</i> be nested.
|
---|
9940 |
|
---|
9941 | This method sets the medium state (see <link to="#state"/>) to
|
---|
9942 | "LockedWrite" on success. The medium's previous state must be
|
---|
9943 | either "Created" or "Inaccessible".
|
---|
9944 |
|
---|
9945 | Locking an inaccessible medium is not an error; this method performs
|
---|
9946 | a logical lock that prevents modifications of this medium through
|
---|
9947 | the VirtualBox API, not a physical file-system lock of the underlying
|
---|
9948 | storage unit.
|
---|
9949 |
|
---|
9950 | For both, success and failure, this method returns the current
|
---|
9951 | state of the medium <i>before</i> the operation.
|
---|
9952 |
|
---|
9953 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9954 | Invalid medium state (e.g. not created, locked, inaccessible,
|
---|
9955 | creating, deleting).
|
---|
9956 | </result>
|
---|
9957 |
|
---|
9958 | </desc>
|
---|
9959 | <param name="state" type="MediumState" dir="return">
|
---|
9960 | <desc>
|
---|
9961 | State of the medium after the operation.
|
---|
9962 | </desc>
|
---|
9963 | </param>
|
---|
9964 | </method>
|
---|
9965 |
|
---|
9966 | <method name="unlockWrite">
|
---|
9967 | <desc>
|
---|
9968 | Cancels the write lock previously set by <link to="#lockWrite"/>.
|
---|
9969 |
|
---|
9970 | For both success and failure, this method returns the current
|
---|
9971 | state of the medium <i>after</i> the operation.
|
---|
9972 |
|
---|
9973 | See <link to="#lockWrite"/> for more details.
|
---|
9974 |
|
---|
9975 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9976 | Medium not locked for writing.
|
---|
9977 | </result>
|
---|
9978 |
|
---|
9979 | </desc>
|
---|
9980 | <param name="state" type="MediumState" dir="return">
|
---|
9981 | <desc>
|
---|
9982 | State of the medium after the operation.
|
---|
9983 | </desc>
|
---|
9984 | </param>
|
---|
9985 | </method>
|
---|
9986 |
|
---|
9987 | <method name="close">
|
---|
9988 | <desc>
|
---|
9989 | Closes this medium.
|
---|
9990 |
|
---|
9991 | The medium must not be attached to any known virtual machine
|
---|
9992 | and must not have any known child media, otherwise the
|
---|
9993 | operation will fail.
|
---|
9994 |
|
---|
9995 | When the medium is successfully closed, it is removed from
|
---|
9996 | the list of registered media, but its storage unit is not
|
---|
9997 | deleted. In particular, this means that this medium can
|
---|
9998 | later be opened again using the <link to="IVirtualBox::openMedium"/>
|
---|
9999 | call.
|
---|
10000 |
|
---|
10001 | Note that after this method successfully returns, the given medium
|
---|
10002 | object becomes uninitialized. This means that any attempt
|
---|
10003 | to call any of its methods or attributes will fail with the
|
---|
10004 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
|
---|
10005 |
|
---|
10006 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
10007 | Invalid medium state (other than not created, created or
|
---|
10008 | inaccessible).
|
---|
10009 | </result>
|
---|
10010 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
10011 | Medium attached to virtual machine.
|
---|
10012 | </result>
|
---|
10013 | <result name="VBOX_E_FILE_ERROR">
|
---|
10014 | Settings file not accessible.
|
---|
10015 | </result>
|
---|
10016 | <result name="VBOX_E_XML_ERROR">
|
---|
10017 | Could not parse the settings file.
|
---|
10018 | </result>
|
---|
10019 |
|
---|
10020 | </desc>
|
---|
10021 | </method>
|
---|
10022 |
|
---|
10023 | <!-- storage methods -->
|
---|
10024 |
|
---|
10025 | <method name="getProperty">
|
---|
10026 | <desc>
|
---|
10027 | Returns the value of the custom medium property with the given name.
|
---|
10028 |
|
---|
10029 | The list of all properties supported by the given medium format can
|
---|
10030 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10031 |
|
---|
10032 | Note that if this method returns an empty string in @a value, the
|
---|
10033 | requested property is supported but currently not assigned any value.
|
---|
10034 |
|
---|
10035 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
10036 | Requested property does not exist (not supported by the format).
|
---|
10037 | </result>
|
---|
10038 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
10039 | </desc>
|
---|
10040 | <param name="name" type="wstring" dir="in">
|
---|
10041 | <desc>Name of the property to get.</desc>
|
---|
10042 | </param>
|
---|
10043 | <param name="value" type="wstring" dir="return">
|
---|
10044 | <desc>Current property value.</desc>
|
---|
10045 | </param>
|
---|
10046 | </method>
|
---|
10047 |
|
---|
10048 | <method name="setProperty">
|
---|
10049 | <desc>
|
---|
10050 | Sets the value of the custom medium property with the given name.
|
---|
10051 |
|
---|
10052 | The list of all properties supported by the given medium format can
|
---|
10053 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10054 |
|
---|
10055 | Note that setting the property value to @c null or an empty string is
|
---|
10056 | equivalent to deleting the existing value. A default value (if it is
|
---|
10057 | defined for this property) will be used by the format backend in this
|
---|
10058 | case.
|
---|
10059 |
|
---|
10060 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
10061 | Requested property does not exist (not supported by the format).
|
---|
10062 | </result>
|
---|
10063 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
10064 | </desc>
|
---|
10065 | <param name="name" type="wstring" dir="in">
|
---|
10066 | <desc>Name of the property to set.</desc>
|
---|
10067 | </param>
|
---|
10068 | <param name="value" type="wstring" dir="in">
|
---|
10069 | <desc>Property value to set.</desc>
|
---|
10070 | </param>
|
---|
10071 | </method>
|
---|
10072 |
|
---|
10073 | <method name="getProperties">
|
---|
10074 | <desc>
|
---|
10075 | Returns values for a group of properties in one call.
|
---|
10076 |
|
---|
10077 | The names of the properties to get are specified using the @a names
|
---|
10078 | argument which is a list of comma-separated property names or
|
---|
10079 | an empty string if all properties are to be returned. Note that currently
|
---|
10080 | the value of this argument is ignored and the method always returns all
|
---|
10081 | existing properties.
|
---|
10082 |
|
---|
10083 | The list of all properties supported by the given medium format can
|
---|
10084 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10085 |
|
---|
10086 | The method returns two arrays, the array of property names corresponding
|
---|
10087 | to the @a names argument and the current values of these properties.
|
---|
10088 | Both arrays have the same number of elements with each elemend at the
|
---|
10089 | given index in the first array corresponds to an element at the same
|
---|
10090 | index in the second array.
|
---|
10091 |
|
---|
10092 | Note that for properties that do not have assigned values,
|
---|
10093 | an empty string is returned at the appropriate index in the
|
---|
10094 | @a returnValues array.
|
---|
10095 |
|
---|
10096 | </desc>
|
---|
10097 | <param name="names" type="wstring" dir="in">
|
---|
10098 | <desc>
|
---|
10099 | Names of properties to get.
|
---|
10100 | </desc>
|
---|
10101 | </param>
|
---|
10102 | <param name="returnNames" type="wstring" safearray="yes" dir="out">
|
---|
10103 | <desc>Names of returned properties.</desc>
|
---|
10104 | </param>
|
---|
10105 | <param name="returnValues" type="wstring" safearray="yes" dir="return">
|
---|
10106 | <desc>Values of returned properties.</desc>
|
---|
10107 | </param>
|
---|
10108 | </method>
|
---|
10109 |
|
---|
10110 | <method name="setProperties">
|
---|
10111 | <desc>
|
---|
10112 | Sets values for a group of properties in one call.
|
---|
10113 |
|
---|
10114 | The names of the properties to set are passed in the @a names
|
---|
10115 | array along with the new values for them in the @a values array. Both
|
---|
10116 | arrays have the same number of elements with each elemend at the given
|
---|
10117 | index in the first array corresponding to an element at the same index
|
---|
10118 | in the second array.
|
---|
10119 |
|
---|
10120 | If there is at least one property name in @a names that is not valid,
|
---|
10121 | the method will fail before changing the values of any other properties
|
---|
10122 | from the @a names array.
|
---|
10123 |
|
---|
10124 | Using this method over <link to="#setProperty"/> is preferred if you
|
---|
10125 | need to set several properties at once since it will result into less
|
---|
10126 | IPC calls.
|
---|
10127 |
|
---|
10128 | The list of all properties supported by the given medium format can
|
---|
10129 | be obtained with <link to="IMediumFormat::describeProperties"/>.
|
---|
10130 |
|
---|
10131 | Note that setting the property value to @c null or an empty string is
|
---|
10132 | equivalent to deleting the existing value. A default value (if it is
|
---|
10133 | defined for this property) will be used by the format backend in this
|
---|
10134 | case.
|
---|
10135 | </desc>
|
---|
10136 | <param name="names" type="wstring" safearray="yes" dir="in">
|
---|
10137 | <desc>Names of properties to set.</desc>
|
---|
10138 | </param>
|
---|
10139 | <param name="values" type="wstring" safearray="yes" dir="in">
|
---|
10140 | <desc>Values of properties to set.</desc>
|
---|
10141 | </param>
|
---|
10142 | </method>
|
---|
10143 |
|
---|
10144 | <!-- storage methods -->
|
---|
10145 |
|
---|
10146 | <method name="createBaseStorage">
|
---|
10147 | <desc>
|
---|
10148 | Starts creating a hard disk storage unit (fixed/dynamic, according
|
---|
10149 | to the variant flags) in in the background. The previous storage unit
|
---|
10150 | created for this object, if any, must first be deleted using
|
---|
10151 | <link to="#deleteStorage"/>, otherwise the operation will fail.
|
---|
10152 |
|
---|
10153 | Before the operation starts, the medium is placed in
|
---|
10154 | <link to="MediumState_Creating"/> state. If the create operation
|
---|
10155 | fails, the medium will be placed back in <link to="MediumState_NotCreated"/>
|
---|
10156 | state.
|
---|
10157 |
|
---|
10158 | After the returned progress object reports that the operation has
|
---|
10159 | successfully completed, the medium state will be set to <link
|
---|
10160 | to="MediumState_Created"/>, the medium will be remembered by this
|
---|
10161 | VirtualBox installation and may be attached to virtual machines.
|
---|
10162 |
|
---|
10163 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10164 | The variant of storage creation operation is not supported. See <link
|
---|
10165 | to="IMediumFormat::capabilities"/>.
|
---|
10166 | </result>
|
---|
10167 | </desc>
|
---|
10168 | <param name="logicalSize" type="long long" dir="in">
|
---|
10169 | <desc>Maximum logical size of the medium in bytes.</desc>
|
---|
10170 | </param>
|
---|
10171 | <param name="variant" type="unsigned long" dir="in">
|
---|
10172 | <desc>Exact image variant which should be created (as a combination of
|
---|
10173 | <link to="MediumVariant" /> flags).</desc>
|
---|
10174 | </param>
|
---|
10175 | <param name="progress" type="IProgress" dir="return">
|
---|
10176 | <desc>Progress object to track the operation completion.</desc>
|
---|
10177 | </param>
|
---|
10178 | </method>
|
---|
10179 |
|
---|
10180 | <method name="deleteStorage">
|
---|
10181 | <desc>
|
---|
10182 | Starts deleting the storage unit of this medium.
|
---|
10183 |
|
---|
10184 | The medium must not be attached to any known virtual machine and must
|
---|
10185 | not have any known child media, otherwise the operation will fail.
|
---|
10186 | It will also fail if there is no storage unit to delete or if deletion
|
---|
10187 | is already in progress, or if the medium is being in use (locked for
|
---|
10188 | read or for write) or inaccessible. Therefore, the only valid state for
|
---|
10189 | this operation to succeed is <link to="MediumState_Created"/>.
|
---|
10190 |
|
---|
10191 | Before the operation starts, the medium is placed in
|
---|
10192 | <link to="MediumState_Deleting"/> state and gets removed from the list
|
---|
10193 | of remembered hard disks (media registry). If the delete operation
|
---|
10194 | fails, the medium will be remembered again and placed back to
|
---|
10195 | <link to="MediumState_Created"/> state.
|
---|
10196 |
|
---|
10197 | After the returned progress object reports that the operation is
|
---|
10198 | complete, the medium state will be set to
|
---|
10199 | <link to="MediumState_NotCreated"/> and you will be able to use one of
|
---|
10200 | the storage creation methods to create it again.
|
---|
10201 |
|
---|
10202 | <see>#close()</see>
|
---|
10203 |
|
---|
10204 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
10205 | Medium is attached to a virtual machine.
|
---|
10206 | </result>
|
---|
10207 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10208 | Storage deletion is not allowed because neither of storage creation
|
---|
10209 | operations are supported. See
|
---|
10210 | <link to="IMediumFormat::capabilities"/>.
|
---|
10211 | </result>
|
---|
10212 |
|
---|
10213 | <note>
|
---|
10214 | If the deletion operation fails, it is not guaranteed that the storage
|
---|
10215 | unit still exists. You may check the <link to="IMedium::state"/> value
|
---|
10216 | to answer this question.
|
---|
10217 | </note>
|
---|
10218 | </desc>
|
---|
10219 | <param name="progress" type="IProgress" dir="return">
|
---|
10220 | <desc>Progress object to track the operation completion.</desc>
|
---|
10221 | </param>
|
---|
10222 | </method>
|
---|
10223 |
|
---|
10224 | <!-- diff methods -->
|
---|
10225 |
|
---|
10226 | <method name="createDiffStorage">
|
---|
10227 | <desc>
|
---|
10228 | Starts creating an empty differencing storage unit based on this
|
---|
10229 | medium in the format and at the location defined by the @a target
|
---|
10230 | argument.
|
---|
10231 |
|
---|
10232 | The target medium must be in <link to="MediumState_NotCreated"/>
|
---|
10233 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
10234 | completion, this operation will set the type of the target medium to
|
---|
10235 | <link to="MediumType_Normal"/> and create a storage unit necessary to
|
---|
10236 | represent the differencing medium data in the given format (according
|
---|
10237 | to the storage format of the target object).
|
---|
10238 |
|
---|
10239 | After the returned progress object reports that the operation is
|
---|
10240 | successfully complete, the target medium gets remembered by this
|
---|
10241 | VirtualBox installation and may be attached to virtual machines.
|
---|
10242 |
|
---|
10243 | <note>
|
---|
10244 | The medium will be set to <link to="MediumState_LockedRead"/>
|
---|
10245 | state for the duration of this operation.
|
---|
10246 | </note>
|
---|
10247 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
10248 | Medium not in @c NotCreated state.
|
---|
10249 | </result>
|
---|
10250 | </desc>
|
---|
10251 | <param name="target" type="IMedium" dir="in">
|
---|
10252 | <desc>Target medium.</desc>
|
---|
10253 | </param>
|
---|
10254 | <param name="variant" type="unsigned long" dir="in">
|
---|
10255 | <desc>Exact image variant which should be created (as a combination of
|
---|
10256 | <link to="MediumVariant" /> flags).</desc>
|
---|
10257 | </param>
|
---|
10258 | <param name="progress" type="IProgress" dir="return">
|
---|
10259 | <desc>Progress object to track the operation completion.</desc>
|
---|
10260 | </param>
|
---|
10261 | </method>
|
---|
10262 |
|
---|
10263 | <method name="mergeTo">
|
---|
10264 | <desc>
|
---|
10265 | Starts merging the contents of this medium and all intermediate
|
---|
10266 | differencing media in the chain to the given target medium.
|
---|
10267 |
|
---|
10268 | The target medium must be either a descendant of this medium or
|
---|
10269 | its ancestor (otherwise this method will immediately return a failure).
|
---|
10270 | It follows that there are two logical directions of the merge operation:
|
---|
10271 | from ancestor to descendant (<i>forward merge</i>) and from descendant to
|
---|
10272 | ancestor (<i>backward merge</i>). Let us consider the following medium
|
---|
10273 | chain:
|
---|
10274 |
|
---|
10275 | <pre>Base <- Diff_1 <- Diff_2</pre>
|
---|
10276 |
|
---|
10277 | Here, calling this method on the <tt>Base</tt> medium object with
|
---|
10278 | <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
|
---|
10279 | <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
|
---|
10280 | merge. Note that in both cases the contents of the resulting medium
|
---|
10281 | will be the same, the only difference is the medium object that takes
|
---|
10282 | the result of the merge operation. In case of the forward merge in the
|
---|
10283 | above example, the result will be written to <tt>Diff_2</tt>; in case of
|
---|
10284 | the backward merge, the result will be written to <tt>Base</tt>. In
|
---|
10285 | other words, the result of the operation is always stored in the target
|
---|
10286 | medium.
|
---|
10287 |
|
---|
10288 | Upon successful operation completion, the storage units of all media in
|
---|
10289 | the chain between this (source) medium and the target medium, including
|
---|
10290 | the source medium itself, will be automatically deleted and the
|
---|
10291 | relevant medium objects (including this medium) will become
|
---|
10292 | uninitialized. This means that any attempt to call any of
|
---|
10293 | their methods or attributes will fail with the
|
---|
10294 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
|
---|
10295 | example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
|
---|
10296 | delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> media.
|
---|
10297 | Note that <tt>Diff_2</tt> in this case will become a base medium
|
---|
10298 | itself since it will no longer be based on any other medium.
|
---|
10299 |
|
---|
10300 | Considering the above, all of the following conditions must be met in
|
---|
10301 | order for the merge operation to succeed:
|
---|
10302 | <ul>
|
---|
10303 | <li>
|
---|
10304 | Neither this (source) medium nor any intermediate
|
---|
10305 | differencing medium in the chain between it and the target
|
---|
10306 | medium is attached to any virtual machine.
|
---|
10307 | </li>
|
---|
10308 | <li>
|
---|
10309 | Neither the source medium nor the target medium is an
|
---|
10310 | <link to="MediumType_Immutable"/> medium.
|
---|
10311 | </li>
|
---|
10312 | <li>
|
---|
10313 | The part of the medium tree from the source medium to the
|
---|
10314 | target medium is a linear chain, i.e. all medium in this
|
---|
10315 | chain have exactly one child which is the next medium in this
|
---|
10316 | chain. The only exception from this rule is the target medium in
|
---|
10317 | the forward merge operation; it is allowed to have any number of
|
---|
10318 | child media because the merge operation will not change its
|
---|
10319 | logical contents (as it is seen by the guest OS or by children).
|
---|
10320 | </li>
|
---|
10321 | <li>
|
---|
10322 | None of the involved media are in
|
---|
10323 | <link to="MediumState_LockedRead"/> or
|
---|
10324 | <link to="MediumState_LockedWrite"/> state.
|
---|
10325 | </li>
|
---|
10326 | </ul>
|
---|
10327 |
|
---|
10328 | <note>
|
---|
10329 | This (source) medium and all intermediates will be placed to <link
|
---|
10330 | to="MediumState_Deleting"/> state and the target medium will be
|
---|
10331 | placed to <link to="MediumState_LockedWrite"/> state and for the
|
---|
10332 | duration of this operation.
|
---|
10333 | </note>
|
---|
10334 | </desc>
|
---|
10335 | <param name="target" type="IMedium" dir="in">
|
---|
10336 | <desc>Target medium.</desc>
|
---|
10337 | </param>
|
---|
10338 | <param name="progress" type="IProgress" dir="return">
|
---|
10339 | <desc>Progress object to track the operation completion.</desc>
|
---|
10340 | </param>
|
---|
10341 | </method>
|
---|
10342 |
|
---|
10343 | <!-- clone method -->
|
---|
10344 |
|
---|
10345 | <method name="cloneTo">
|
---|
10346 | <desc>
|
---|
10347 | Starts creating a clone of this medium in the format and at the
|
---|
10348 | location defined by the @a target argument.
|
---|
10349 |
|
---|
10350 | The target medium must be either in <link to="MediumState_NotCreated"/>
|
---|
10351 | state (i.e. must not have an existing storage unit) or in
|
---|
10352 | <link to="MediumState_Created"/> state (i.e. created and not locked, and
|
---|
10353 | big enough to hold the data or else the copy will be partial). Upon
|
---|
10354 | successful completion, the cloned medium will contain exactly the
|
---|
10355 | same sector data as the medium being cloned, except that in the
|
---|
10356 | first case a new UUID for the clone will be randomly generated, and in
|
---|
10357 | the second case the UUID will remain unchanged.
|
---|
10358 |
|
---|
10359 | The @a parent argument defines which medium will be the parent
|
---|
10360 | of the clone. Passing a @c null reference indicates that the clone will
|
---|
10361 | be a base image, i.e. completely independent. It is possible to specify
|
---|
10362 | an arbitrary medium for this parameter, including the parent of the
|
---|
10363 | medium which is being cloned. Even cloning to a child of the source
|
---|
10364 | medium is possible. Note that when cloning to an existing image, the
|
---|
10365 | @a parent irgument is ignored.
|
---|
10366 |
|
---|
10367 | After the returned progress object reports that the operation is
|
---|
10368 | successfully complete, the target medium gets remembered by this
|
---|
10369 | VirtualBox installation and may be attached to virtual machines.
|
---|
10370 |
|
---|
10371 | <note>
|
---|
10372 | This medium will be placed to <link to="MediumState_LockedRead"/>
|
---|
10373 | state for the duration of this operation.
|
---|
10374 | </note>
|
---|
10375 | <result name="E_NOTIMPL">
|
---|
10376 | The specified cloning variant is not supported at the moment.
|
---|
10377 | </result>
|
---|
10378 | </desc>
|
---|
10379 | <param name="target" type="IMedium" dir="in">
|
---|
10380 | <desc>Target medium.</desc>
|
---|
10381 | </param>
|
---|
10382 | <param name="variant" type="unsigned long" dir="in">
|
---|
10383 | <desc>Exact image variant which should be created (as a combination of
|
---|
10384 | <link to="MediumVariant" /> flags).</desc>
|
---|
10385 | </param>
|
---|
10386 | <param name="parent" type="IMedium" dir="in">
|
---|
10387 | <desc>Parent of the cloned medium.</desc>
|
---|
10388 | </param>
|
---|
10389 | <param name="progress" type="IProgress" dir="return">
|
---|
10390 | <desc>Progress object to track the operation completion.</desc>
|
---|
10391 | </param>
|
---|
10392 | </method>
|
---|
10393 |
|
---|
10394 | <!-- other methods -->
|
---|
10395 |
|
---|
10396 | <method name="compact">
|
---|
10397 | <desc>
|
---|
10398 | Starts compacting of this medium. This means that the medium is
|
---|
10399 | transformed into a possibly more compact storage representation.
|
---|
10400 | This potentially creates temporary images, which can require a
|
---|
10401 | substantial amount of additional disk space.
|
---|
10402 |
|
---|
10403 | This medium will be placed to <link to="MediumState_LockedWrite"/>
|
---|
10404 | state and all its parent media (if any) will be placed to
|
---|
10405 | <link to="MediumState_LockedRead"/> state for the duration of this
|
---|
10406 | operation.
|
---|
10407 |
|
---|
10408 | Please note that the results can be either returned straight away,
|
---|
10409 | or later as the result of the background operation via the object
|
---|
10410 | returned via the @a progress parameter.
|
---|
10411 |
|
---|
10412 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10413 | Medium format does not support compacting (but potentially
|
---|
10414 | needs it).
|
---|
10415 | </result>
|
---|
10416 | </desc>
|
---|
10417 | <param name="progress" type="IProgress" dir="return">
|
---|
10418 | <desc>Progress object to track the operation completion.</desc>
|
---|
10419 | </param>
|
---|
10420 | </method>
|
---|
10421 |
|
---|
10422 | <method name="resize">
|
---|
10423 | <desc>
|
---|
10424 | Starts resizing this medium. This means that the nominal size of the
|
---|
10425 | medium is set to the new value. Both increasing and decreasing the
|
---|
10426 | size is possible, and there are no safety checks, since VirtualBox
|
---|
10427 | does not make any assumptions about the medium contents.
|
---|
10428 |
|
---|
10429 | Resizing usually needs additional disk space, and possibly also
|
---|
10430 | some temporary disk space. Note that resize does not create a full
|
---|
10431 | temporary copy of the medium, so the additional disk space requirement
|
---|
10432 | is usually much lower than using the clone operation.
|
---|
10433 |
|
---|
10434 | This medium will be placed to <link to="MediumState_LockedWrite"/>
|
---|
10435 | state for the duration of this operation.
|
---|
10436 |
|
---|
10437 | Please note that the results can be either returned straight away,
|
---|
10438 | or later as the result of the background operation via the object
|
---|
10439 | returned via the @a progress parameter.
|
---|
10440 |
|
---|
10441 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10442 | Medium format does not support resizing.
|
---|
10443 | </result>
|
---|
10444 | </desc>
|
---|
10445 | <param name="logicalSize" type="long long" dir="in">
|
---|
10446 | <desc>New nominal capacity of the medium in bytes.</desc>
|
---|
10447 | </param>
|
---|
10448 | <param name="progress" type="IProgress" dir="return">
|
---|
10449 | <desc>Progress object to track the operation completion.</desc>
|
---|
10450 | </param>
|
---|
10451 | </method>
|
---|
10452 |
|
---|
10453 | <method name="reset">
|
---|
10454 | <desc>
|
---|
10455 | Starts erasing the contents of this differencing medium.
|
---|
10456 |
|
---|
10457 | This operation will reset the differencing medium to its initial
|
---|
10458 | state when it does not contain any sector data and any read operation is
|
---|
10459 | redirected to its parent medium. This automatically gets called
|
---|
10460 | during VM power-up for every medium whose <link to="#autoReset" />
|
---|
10461 | attribute is @c true.
|
---|
10462 |
|
---|
10463 | The medium will be write-locked for the duration of this operation (see
|
---|
10464 | <link to="#lockWrite" />).
|
---|
10465 |
|
---|
10466 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10467 | This is not a differencing medium.
|
---|
10468 | </result>
|
---|
10469 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
10470 | Medium is not in <link to="MediumState_Created"/> or
|
---|
10471 | <link to="MediumState_Inaccessible"/> state.
|
---|
10472 | </result>
|
---|
10473 | </desc>
|
---|
10474 | <param name="progress" type="IProgress" dir="return">
|
---|
10475 | <desc>Progress object to track the operation completion.</desc>
|
---|
10476 | </param>
|
---|
10477 | </method>
|
---|
10478 |
|
---|
10479 | </interface>
|
---|
10480 |
|
---|
10481 |
|
---|
10482 | <!--
|
---|
10483 | // IMediumFormat
|
---|
10484 | /////////////////////////////////////////////////////////////////////////
|
---|
10485 | -->
|
---|
10486 |
|
---|
10487 | <enum
|
---|
10488 | name="DataType"
|
---|
10489 | uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
|
---|
10490 | >
|
---|
10491 | <const name="Int32" value="0"/>
|
---|
10492 | <const name="Int8" value="1"/>
|
---|
10493 | <const name="String" value="2"/>
|
---|
10494 | </enum>
|
---|
10495 |
|
---|
10496 | <enum
|
---|
10497 | name="DataFlags"
|
---|
10498 | uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
|
---|
10499 | >
|
---|
10500 | <const name="None" value="0x00"/>
|
---|
10501 | <const name="Mandatory" value="0x01"/>
|
---|
10502 | <const name="Expert" value="0x02"/>
|
---|
10503 | <const name="Array" value="0x04"/>
|
---|
10504 | <const name="FlagMask" value="0x07"/>
|
---|
10505 | </enum>
|
---|
10506 |
|
---|
10507 | <enum
|
---|
10508 | name="MediumFormatCapabilities"
|
---|
10509 | uuid="7342ba79-7ce0-4d94-8f86-5ed5a185d9bd"
|
---|
10510 | >
|
---|
10511 | <desc>
|
---|
10512 | Medium format capability flags.
|
---|
10513 | </desc>
|
---|
10514 |
|
---|
10515 | <const name="Uuid" value="0x01">
|
---|
10516 | <desc>
|
---|
10517 | Supports UUIDs as expected by VirtualBox code.
|
---|
10518 | </desc>
|
---|
10519 | </const>
|
---|
10520 |
|
---|
10521 | <const name="CreateFixed" value="0x02">
|
---|
10522 | <desc>
|
---|
10523 | Supports creating fixed size images, allocating all space instantly.
|
---|
10524 | </desc>
|
---|
10525 | </const>
|
---|
10526 |
|
---|
10527 | <const name="CreateDynamic" value="0x04">
|
---|
10528 | <desc>
|
---|
10529 | Supports creating dynamically growing images, allocating space on
|
---|
10530 | demand.
|
---|
10531 | </desc>
|
---|
10532 | </const>
|
---|
10533 |
|
---|
10534 | <const name="CreateSplit2G" value="0x08">
|
---|
10535 | <desc>
|
---|
10536 | Supports creating images split in chunks of a bit less than 2 GBytes.
|
---|
10537 | </desc>
|
---|
10538 | </const>
|
---|
10539 |
|
---|
10540 | <const name="Differencing" value="0x10">
|
---|
10541 | <desc>
|
---|
10542 | Supports being used as a format for differencing media (see <link
|
---|
10543 | to="IMedium::createDiffStorage"/>).
|
---|
10544 | </desc>
|
---|
10545 | </const>
|
---|
10546 |
|
---|
10547 | <const name="Asynchronous" value="0x20">
|
---|
10548 | <desc>
|
---|
10549 | Supports asynchronous I/O operations for at least some configurations.
|
---|
10550 | </desc>
|
---|
10551 | </const>
|
---|
10552 |
|
---|
10553 | <const name="File" value="0x40">
|
---|
10554 | <desc>
|
---|
10555 | The format backend operates on files (the <link to="IMedium::location"/>
|
---|
10556 | attribute of the medium specifies a file used to store medium
|
---|
10557 | data; for a list of supported file extensions see
|
---|
10558 | <link to="IMediumFormat::describeFileExtensions"/>).
|
---|
10559 | </desc>
|
---|
10560 | </const>
|
---|
10561 |
|
---|
10562 | <const name="Properties" value="0x80">
|
---|
10563 | <desc>
|
---|
10564 | The format backend uses the property interface to configure the storage
|
---|
10565 | location and properties (the <link to="IMediumFormat::describeProperties"/>
|
---|
10566 | method is used to get access to properties supported by the given medium format).
|
---|
10567 | </desc>
|
---|
10568 | </const>
|
---|
10569 |
|
---|
10570 | <const name="TcpNetworking" value="0x100">
|
---|
10571 | <desc>
|
---|
10572 | The format backend uses the TCP networking interface for network access.
|
---|
10573 | </desc>
|
---|
10574 | </const>
|
---|
10575 |
|
---|
10576 | <const name="VFS" value="0x200">
|
---|
10577 | <desc>
|
---|
10578 | The format backend supports virtual filesystem functionality.
|
---|
10579 | </desc>
|
---|
10580 | </const>
|
---|
10581 |
|
---|
10582 | <const name="CapabilityMask" value="0x3FF"/>
|
---|
10583 | </enum>
|
---|
10584 |
|
---|
10585 | <interface
|
---|
10586 | name="IMediumFormat" extends="$unknown"
|
---|
10587 | uuid="4e9a873f-0599-434a-8345-619ef3fb3111"
|
---|
10588 | wsmap="managed"
|
---|
10589 | >
|
---|
10590 | <desc>
|
---|
10591 | The IMediumFormat interface represents a medium format.
|
---|
10592 |
|
---|
10593 | Each medium format has an associated backend which is used to handle
|
---|
10594 | media stored in this format. This interface provides information
|
---|
10595 | about the properties of the associated backend.
|
---|
10596 |
|
---|
10597 | Each medium format is identified by a string represented by the
|
---|
10598 | <link to="#id"/> attribute. This string is used in calls like
|
---|
10599 | <link to="IVirtualBox::createHardDisk"/> to specify the desired
|
---|
10600 | format.
|
---|
10601 |
|
---|
10602 | The list of all supported medium formats can be obtained using
|
---|
10603 | <link to="ISystemProperties::mediumFormats"/>.
|
---|
10604 |
|
---|
10605 | <see>IMedium</see>
|
---|
10606 | </desc>
|
---|
10607 |
|
---|
10608 | <attribute name="id" type="wstring" readonly="yes">
|
---|
10609 | <desc>
|
---|
10610 | Identifier of this format.
|
---|
10611 |
|
---|
10612 | The format identifier is a non-@c null non-empty ASCII string. Note that
|
---|
10613 | this string is case-insensitive. This means that, for example, all of
|
---|
10614 | the following strings:
|
---|
10615 | <pre>
|
---|
10616 | "VDI"
|
---|
10617 | "vdi"
|
---|
10618 | "VdI"</pre>
|
---|
10619 | refer to the same medium format.
|
---|
10620 |
|
---|
10621 | This string is used in methods of other interfaces where it is necessary
|
---|
10622 | to specify a medium format, such as
|
---|
10623 | <link to="IVirtualBox::createHardDisk"/>.
|
---|
10624 | </desc>
|
---|
10625 | </attribute>
|
---|
10626 |
|
---|
10627 | <attribute name="name" type="wstring" readonly="yes">
|
---|
10628 | <desc>
|
---|
10629 | Human readable description of this format.
|
---|
10630 |
|
---|
10631 | Mainly for use in file open dialogs.
|
---|
10632 | </desc>
|
---|
10633 | </attribute>
|
---|
10634 |
|
---|
10635 | <attribute name="capabilities" type="unsigned long" readonly="yes">
|
---|
10636 | <desc>
|
---|
10637 | Capabilities of the format as a set of bit flags.
|
---|
10638 |
|
---|
10639 | For the meaning of individual capability flags see
|
---|
10640 | <link to="MediumFormatCapabilities"/>.
|
---|
10641 | </desc>
|
---|
10642 | </attribute>
|
---|
10643 |
|
---|
10644 | <method name="describeFileExtensions">
|
---|
10645 | <desc>
|
---|
10646 | Returns two arrays describing the supported file extensions.
|
---|
10647 |
|
---|
10648 | The first array contains the supported extensions and the seconds one
|
---|
10649 | the type each extension supports. Both have the same size.
|
---|
10650 |
|
---|
10651 | Note that some backends do not work on files, so this array may be
|
---|
10652 | empty.
|
---|
10653 |
|
---|
10654 | <see>IMediumFormat::capabilities</see>
|
---|
10655 | </desc>
|
---|
10656 | <param name="extensions" type="wstring" safearray="yes" dir="out">
|
---|
10657 | <desc>The array of supported extensions.</desc>
|
---|
10658 | </param>
|
---|
10659 | <param name="type" type="DeviceType" safearray="yes" dir="out">
|
---|
10660 | <desc>The array which indicates the device type for every given extension.</desc>
|
---|
10661 | </param>
|
---|
10662 | </method>
|
---|
10663 |
|
---|
10664 | <method name="describeProperties">
|
---|
10665 | <desc>
|
---|
10666 | Returns several arrays describing the properties supported by this
|
---|
10667 | format.
|
---|
10668 |
|
---|
10669 | An element with the given index in each array describes one
|
---|
10670 | property. Thus, the number of elements in each returned array is the
|
---|
10671 | same and corresponds to the number of supported properties.
|
---|
10672 |
|
---|
10673 | The returned arrays are filled in only if the
|
---|
10674 | <link to="MediumFormatCapabilities_Properties"/> flag is set.
|
---|
10675 | All arguments must be non-@c null.
|
---|
10676 |
|
---|
10677 | <see>DataType</see>
|
---|
10678 | <see>DataFlags</see>
|
---|
10679 | </desc>
|
---|
10680 |
|
---|
10681 | <param name="names" type="wstring" safearray="yes" dir="out">
|
---|
10682 | <desc>Array of property names.</desc>
|
---|
10683 | </param>
|
---|
10684 | <param name="description" type="wstring" safearray="yes" dir="out">
|
---|
10685 | <desc>Array of property descriptions.</desc>
|
---|
10686 | </param>
|
---|
10687 | <param name="types" type="DataType" safearray="yes" dir="out">
|
---|
10688 | <desc>Array of property types.</desc>
|
---|
10689 | </param>
|
---|
10690 | <param name="flags" type="unsigned long" safearray="yes" dir="out">
|
---|
10691 | <desc>Array of property flags.</desc>
|
---|
10692 | </param>
|
---|
10693 | <param name="defaults" type="wstring" safearray="yes" dir="out">
|
---|
10694 | <desc>Array of default property values.</desc>
|
---|
10695 | </param>
|
---|
10696 | </method>
|
---|
10697 |
|
---|
10698 | </interface>
|
---|
10699 |
|
---|
10700 |
|
---|
10701 | <!--
|
---|
10702 | // IKeyboard
|
---|
10703 | /////////////////////////////////////////////////////////////////////////
|
---|
10704 | -->
|
---|
10705 |
|
---|
10706 | <interface
|
---|
10707 | name="IKeyboard" extends="$unknown"
|
---|
10708 | uuid="f6916ec5-a881-4237-898f-7de58cf88672"
|
---|
10709 | wsmap="managed"
|
---|
10710 | >
|
---|
10711 | <desc>
|
---|
10712 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
10713 | in <link to="IConsole::keyboard"/>.
|
---|
10714 |
|
---|
10715 | Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
|
---|
10716 | to the virtual machine.
|
---|
10717 |
|
---|
10718 | </desc>
|
---|
10719 | <method name="putScancode">
|
---|
10720 | <desc>Sends a scancode to the keyboard.
|
---|
10721 |
|
---|
10722 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10723 | Could not send scan code to virtual keyboard.
|
---|
10724 | </result>
|
---|
10725 |
|
---|
10726 | </desc>
|
---|
10727 | <param name="scancode" type="long" dir="in"/>
|
---|
10728 | </method>
|
---|
10729 |
|
---|
10730 | <method name="putScancodes">
|
---|
10731 | <desc>Sends an array of scancodes to the keyboard.
|
---|
10732 |
|
---|
10733 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10734 | Could not send all scan codes to virtual keyboard.
|
---|
10735 | </result>
|
---|
10736 |
|
---|
10737 | </desc>
|
---|
10738 | <param name="scancodes" type="long" dir="in" safearray="yes"/>
|
---|
10739 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
10740 | </method>
|
---|
10741 |
|
---|
10742 | <method name="putCAD">
|
---|
10743 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
|
---|
10744 | function is nothing special, it is just a convenience function
|
---|
10745 | calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
|
---|
10746 |
|
---|
10747 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10748 | Could not send all scan codes to virtual keyboard.
|
---|
10749 | </result>
|
---|
10750 |
|
---|
10751 | </desc>
|
---|
10752 | </method>
|
---|
10753 |
|
---|
10754 | <attribute name="eventSource" type="IEventSource" readonly="yes">
|
---|
10755 | <desc>
|
---|
10756 | Event source for keyboard events.
|
---|
10757 | </desc>
|
---|
10758 | </attribute>
|
---|
10759 |
|
---|
10760 | </interface>
|
---|
10761 |
|
---|
10762 |
|
---|
10763 | <!--
|
---|
10764 | // IMouse
|
---|
10765 | /////////////////////////////////////////////////////////////////////////
|
---|
10766 | -->
|
---|
10767 |
|
---|
10768 | <enum
|
---|
10769 | name="MouseButtonState"
|
---|
10770 | uuid="9ee094b8-b28a-4d56-a166-973cb588d7f8"
|
---|
10771 | >
|
---|
10772 | <desc>
|
---|
10773 | Mouse button state.
|
---|
10774 | </desc>
|
---|
10775 |
|
---|
10776 | <const name="LeftButton" value="0x01"/>
|
---|
10777 | <const name="RightButton" value="0x02"/>
|
---|
10778 | <const name="MiddleButton" value="0x04"/>
|
---|
10779 | <const name="WheelUp" value="0x08"/>
|
---|
10780 | <const name="WheelDown" value="0x10"/>
|
---|
10781 | <const name="XButton1" value="0x20"/>
|
---|
10782 | <const name="XButton2" value="0x40"/>
|
---|
10783 | <const name="MouseStateMask" value="0x7F"/>
|
---|
10784 | </enum>
|
---|
10785 |
|
---|
10786 | <interface
|
---|
10787 | name="IMouse" extends="$unknown"
|
---|
10788 | uuid="05044a52-7811-4f00-ae3a-0ab7ff707b10"
|
---|
10789 | wsmap="managed"
|
---|
10790 | >
|
---|
10791 | <desc>
|
---|
10792 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
10793 | <link to="IConsole::mouse"/>.
|
---|
10794 |
|
---|
10795 | Through this interface, the virtual machine's virtual mouse can be
|
---|
10796 | controlled.
|
---|
10797 | </desc>
|
---|
10798 |
|
---|
10799 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
10800 | <desc>
|
---|
10801 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
10802 | or not.
|
---|
10803 | <note>
|
---|
10804 | You can use the <link to="IMouseCapabilityChangedEvent"/>
|
---|
10805 | event to be instantly informed about changes of this attribute
|
---|
10806 | during virtual machine execution.
|
---|
10807 | </note>
|
---|
10808 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
10809 | </desc>
|
---|
10810 | </attribute>
|
---|
10811 |
|
---|
10812 | <attribute name="relativeSupported" type="boolean" readonly="yes">
|
---|
10813 | <desc>
|
---|
10814 | Whether the guest OS supports relative mouse pointer positioning
|
---|
10815 | or not.
|
---|
10816 | <note>
|
---|
10817 | You can use the <link to="IMouseCapabilityChangedEvent"/>
|
---|
10818 | event to be instantly informed about changes of this attribute
|
---|
10819 | during virtual machine execution.
|
---|
10820 | </note>
|
---|
10821 | <see><link to="#putMouseEvent"/></see>
|
---|
10822 | </desc>
|
---|
10823 | </attribute>
|
---|
10824 |
|
---|
10825 | <attribute name="needsHostCursor" type="boolean" readonly="yes">
|
---|
10826 | <desc>
|
---|
10827 | Whether the guest OS can currently switch to drawing it's own mouse
|
---|
10828 | cursor on demand.
|
---|
10829 | <note>
|
---|
10830 | You can use the <link to="IMouseCapabilityChangedEvent"/>
|
---|
10831 | event to be instantly informed about changes of this attribute
|
---|
10832 | during virtual machine execution.
|
---|
10833 | </note>
|
---|
10834 | <see><link to="#putMouseEvent"/></see>
|
---|
10835 | </desc>
|
---|
10836 | </attribute>
|
---|
10837 |
|
---|
10838 | <method name="putMouseEvent">
|
---|
10839 | <desc>
|
---|
10840 | Initiates a mouse event using relative pointer movements
|
---|
10841 | along x and y axis.
|
---|
10842 |
|
---|
10843 | <result name="E_ACCESSDENIED">
|
---|
10844 | Console not powered up.
|
---|
10845 | </result>
|
---|
10846 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10847 | Could not send mouse event to virtual mouse.
|
---|
10848 | </result>
|
---|
10849 |
|
---|
10850 | </desc>
|
---|
10851 |
|
---|
10852 | <param name="dx" type="long" dir="in">
|
---|
10853 | <desc>
|
---|
10854 | Amount of pixels the mouse should move to the right.
|
---|
10855 | Negative values move the mouse to the left.
|
---|
10856 | </desc>
|
---|
10857 | </param>
|
---|
10858 | <param name="dy" type="long" dir="in">
|
---|
10859 | <desc>
|
---|
10860 | Amount of pixels the mouse should move downwards.
|
---|
10861 | Negative values move the mouse upwards.
|
---|
10862 | </desc>
|
---|
10863 | </param>
|
---|
10864 | <param name="dz" type="long" dir="in">
|
---|
10865 | <desc>
|
---|
10866 | Amount of mouse wheel moves.
|
---|
10867 | Positive values describe clockwise wheel rotations,
|
---|
10868 | negative values describe counterclockwise rotations.
|
---|
10869 | </desc>
|
---|
10870 | </param>
|
---|
10871 | <param name="dw" type="long" dir="in">
|
---|
10872 | <desc>
|
---|
10873 | Amount of horizontal mouse wheel moves.
|
---|
10874 | Positive values describe a movement to the left,
|
---|
10875 | negative values describe a movement to the right.
|
---|
10876 | </desc>
|
---|
10877 | </param>
|
---|
10878 | <param name="buttonState" type="long" dir="in">
|
---|
10879 | <desc>
|
---|
10880 | The current state of mouse buttons. Every bit represents
|
---|
10881 | a mouse button as follows:
|
---|
10882 | <table>
|
---|
10883 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10884 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10885 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10886 | </table>
|
---|
10887 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
10888 | otherwise it is released.
|
---|
10889 | </desc>
|
---|
10890 | </param>
|
---|
10891 | </method>
|
---|
10892 |
|
---|
10893 | <method name="putMouseEventAbsolute">
|
---|
10894 | <desc>
|
---|
10895 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
10896 | These coordinates are expressed in pixels and
|
---|
10897 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
10898 | corner of the virtual display.
|
---|
10899 |
|
---|
10900 | <result name="E_ACCESSDENIED">
|
---|
10901 | Console not powered up.
|
---|
10902 | </result>
|
---|
10903 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10904 | Could not send mouse event to virtual mouse.
|
---|
10905 | </result>
|
---|
10906 |
|
---|
10907 | <note>
|
---|
10908 | This method will have effect only if absolute mouse
|
---|
10909 | positioning is supported by the guest OS.
|
---|
10910 | </note>
|
---|
10911 |
|
---|
10912 | <see><link to="#absoluteSupported"/></see>
|
---|
10913 | </desc>
|
---|
10914 |
|
---|
10915 | <param name="x" type="long" dir="in">
|
---|
10916 | <desc>
|
---|
10917 | X coordinate of the pointer in pixels, starting from @c 1.
|
---|
10918 | </desc>
|
---|
10919 | </param>
|
---|
10920 | <param name="y" type="long" dir="in">
|
---|
10921 | <desc>
|
---|
10922 | Y coordinate of the pointer in pixels, starting from @c 1.
|
---|
10923 | </desc>
|
---|
10924 | </param>
|
---|
10925 | <param name="dz" type="long" dir="in">
|
---|
10926 | <desc>
|
---|
10927 | Amount of mouse wheel moves.
|
---|
10928 | Positive values describe clockwise wheel rotations,
|
---|
10929 | negative values describe counterclockwise rotations.
|
---|
10930 | </desc>
|
---|
10931 | </param>
|
---|
10932 | <param name="dw" type="long" dir="in">
|
---|
10933 | <desc>
|
---|
10934 | Amount of horizontal mouse wheel moves.
|
---|
10935 | Positive values describe a movement to the left,
|
---|
10936 | negative values describe a movement to the right.
|
---|
10937 | </desc>
|
---|
10938 | </param>
|
---|
10939 | <param name="buttonState" type="long" dir="in">
|
---|
10940 | <desc>
|
---|
10941 | The current state of mouse buttons. Every bit represents
|
---|
10942 | a mouse button as follows:
|
---|
10943 | <table>
|
---|
10944 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10945 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10946 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10947 | </table>
|
---|
10948 | A value of @c 1 means the corresponding button is pressed.
|
---|
10949 | otherwise it is released.
|
---|
10950 | </desc>
|
---|
10951 | </param>
|
---|
10952 | </method>
|
---|
10953 |
|
---|
10954 | <attribute name="eventSource" type="IEventSource" readonly="yes">
|
---|
10955 | <desc>
|
---|
10956 | Event source for mouse events.
|
---|
10957 | </desc>
|
---|
10958 | </attribute>
|
---|
10959 |
|
---|
10960 | </interface>
|
---|
10961 |
|
---|
10962 | <!--
|
---|
10963 | // IDisplay
|
---|
10964 | /////////////////////////////////////////////////////////////////////////
|
---|
10965 | -->
|
---|
10966 |
|
---|
10967 | <enum
|
---|
10968 | name="FramebufferPixelFormat"
|
---|
10969 | uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
|
---|
10970 | >
|
---|
10971 | <desc>
|
---|
10972 | Format of the video memory buffer. Constants represented by this enum can
|
---|
10973 | be used to test for particular values of <link
|
---|
10974 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
10975 | to="IFramebuffer::requestResize"/>.
|
---|
10976 |
|
---|
10977 | See also www.fourcc.org for more information about FOURCC pixel formats.
|
---|
10978 | </desc>
|
---|
10979 |
|
---|
10980 | <const name="Opaque" value="0">
|
---|
10981 | <desc>
|
---|
10982 | Unknown buffer format (the user may not assume any particular format of
|
---|
10983 | the buffer).
|
---|
10984 | </desc>
|
---|
10985 | </const>
|
---|
10986 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
10987 | <desc>
|
---|
10988 | Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
|
---|
10989 | bit layout).
|
---|
10990 | </desc>
|
---|
10991 | </const>
|
---|
10992 | </enum>
|
---|
10993 |
|
---|
10994 | <interface
|
---|
10995 | name="IFramebuffer" extends="$unknown"
|
---|
10996 | uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
|
---|
10997 | wsmap="suppress"
|
---|
10998 | >
|
---|
10999 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
11000 | <desc>Address of the start byte of the frame buffer.</desc>
|
---|
11001 | </attribute>
|
---|
11002 |
|
---|
11003 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
11004 | <desc>Frame buffer width, in pixels.</desc>
|
---|
11005 | </attribute>
|
---|
11006 |
|
---|
11007 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
11008 | <desc>Frame buffer height, in pixels.</desc>
|
---|
11009 | </attribute>
|
---|
11010 |
|
---|
11011 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
11012 | <desc>
|
---|
11013 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
11014 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
11015 | are: 8, 15, 16, 24 and 32.
|
---|
11016 | </desc>
|
---|
11017 | </attribute>
|
---|
11018 |
|
---|
11019 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
11020 | <desc>
|
---|
11021 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
11022 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
11023 | size of the scan line must be aligned to 32 bits.
|
---|
11024 | </desc>
|
---|
11025 | </attribute>
|
---|
11026 |
|
---|
11027 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
11028 | <desc>
|
---|
11029 | Frame buffer pixel format. It's either one of the values defined by <link
|
---|
11030 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
11031 | <note>
|
---|
11032 | This attribute must never return <link
|
---|
11033 | to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
|
---|
11034 | <link to="#address"/> points to must be always known.
|
---|
11035 | </note>
|
---|
11036 | </desc>
|
---|
11037 | </attribute>
|
---|
11038 |
|
---|
11039 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
11040 | <desc>
|
---|
11041 | Defines whether this frame buffer uses the virtual video card's memory
|
---|
11042 | buffer (guest VRAM) directly or not. See <link
|
---|
11043 | to="IFramebuffer::requestResize"/> for more information.
|
---|
11044 | </desc>
|
---|
11045 | </attribute>
|
---|
11046 |
|
---|
11047 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
11048 | <desc>
|
---|
11049 | Hint from the frame buffer about how much of the standard
|
---|
11050 | screen height it wants to use for itself. This information is
|
---|
11051 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
11052 | so that it can use it for determining its video mode table. It
|
---|
11053 | is not guaranteed that the guest respects the value.
|
---|
11054 | </desc>
|
---|
11055 | </attribute>
|
---|
11056 |
|
---|
11057 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
11058 | <desc>
|
---|
11059 | An alpha-blended overlay which is superposed over the frame buffer.
|
---|
11060 | The initial purpose is to allow the display of icons providing
|
---|
11061 | information about the VM state, including disk activity, in front
|
---|
11062 | ends which do not have other means of doing that. The overlay is
|
---|
11063 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
11064 | of its own, and any changes made to it are not guaranteed to be
|
---|
11065 | visible until the affected portion of IFramebuffer is updated. The
|
---|
11066 | overlay can be created lazily the first time it is requested. This
|
---|
11067 | attribute can also return @c null to signal that the overlay is not
|
---|
11068 | implemented.
|
---|
11069 | </desc>
|
---|
11070 | </attribute>
|
---|
11071 |
|
---|
11072 | <attribute name="winId" type="long long" readonly="yes">
|
---|
11073 | <desc>
|
---|
11074 | Platform-dependent identifier of the window where context of this
|
---|
11075 | frame buffer is drawn, or zero if there's no such window.
|
---|
11076 | </desc>
|
---|
11077 | </attribute>
|
---|
11078 |
|
---|
11079 | <method name="lock">
|
---|
11080 | <desc>
|
---|
11081 | Locks the frame buffer.
|
---|
11082 | Gets called by the IDisplay object where this frame buffer is
|
---|
11083 | bound to.
|
---|
11084 | </desc>
|
---|
11085 | </method>
|
---|
11086 |
|
---|
11087 | <method name="unlock">
|
---|
11088 | <desc>
|
---|
11089 | Unlocks the frame buffer.
|
---|
11090 | Gets called by the IDisplay object where this frame buffer is
|
---|
11091 | bound to.
|
---|
11092 | </desc>
|
---|
11093 | </method>
|
---|
11094 |
|
---|
11095 | <method name="notifyUpdate">
|
---|
11096 | <desc>
|
---|
11097 | Informs about an update.
|
---|
11098 | Gets called by the display object where this buffer is
|
---|
11099 | registered.
|
---|
11100 | </desc>
|
---|
11101 | <param name="x" type="unsigned long" dir="in"/>
|
---|
11102 | <param name="y" type="unsigned long" dir="in"/>
|
---|
11103 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11104 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11105 | </method>
|
---|
11106 |
|
---|
11107 | <method name="requestResize">
|
---|
11108 | <desc>
|
---|
11109 | Requests a size and pixel format change.
|
---|
11110 |
|
---|
11111 | There are two modes of working with the video buffer of the virtual
|
---|
11112 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
11113 | implementation allocates a memory buffer for the requested display mode
|
---|
11114 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
11115 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
11116 | by the virtual machine. This buffer represents the video memory of the
|
---|
11117 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
11118 | usually faster because the implementation gets a raw pointer to the
|
---|
11119 | guest VRAM buffer which it can directly use for visualizing the contents
|
---|
11120 | of the virtual display, as opposed to the indirect mode where the
|
---|
11121 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
11122 | the implementation every time a display update occurs.
|
---|
11123 |
|
---|
11124 | It is important to note that the direct mode is really fast only when
|
---|
11125 | the implementation uses the given guest VRAM buffer directly, for
|
---|
11126 | example, by blitting it to the window representing the virtual machine's
|
---|
11127 | display, which saves at least one copy operation comparing to the
|
---|
11128 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
11129 | always possible: the format and the color depth of this buffer may be
|
---|
11130 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
11131 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
11132 | the indirect mode (that is always available) should be used as a
|
---|
11133 | fallback: when the guest VRAM contents are copied to the
|
---|
11134 | implementation-provided memory buffer, color and format conversion is
|
---|
11135 | done automatically by the underlying code.
|
---|
11136 |
|
---|
11137 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
11138 | available or not. If @a pixelFormat is <link
|
---|
11139 | to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
|
---|
11140 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
|
---|
11141 | @a bytesPerLine parameters must be ignored and the implementation must use
|
---|
11142 | the indirect mode (where it provides its own buffer in one of the
|
---|
11143 | supported formats). In all other cases, @a pixelFormat together with
|
---|
11144 | @a bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
11145 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
11146 | free to choose which mode to use. To indicate that this frame buffer uses
|
---|
11147 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
11148 | attribute must return @c true and <link to="#address"/> must
|
---|
11149 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
11150 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
11151 | chosen.
|
---|
11152 |
|
---|
11153 | The @a width and @a height parameters represent the size of the
|
---|
11154 | requested display mode in both modes. In case of indirect mode, the
|
---|
11155 | provided memory buffer should be big enough to store data of the given
|
---|
11156 | display mode. In case of direct mode, it is guaranteed that the given
|
---|
11157 | @a VRAM buffer contains enough space to represent the display mode of the
|
---|
11158 | given size. Note that this frame buffer's <link to="#width"/> and <link
|
---|
11159 | to="#height"/> attributes must return exactly the same values as
|
---|
11160 | passed to this method after the resize is completed (see below).
|
---|
11161 |
|
---|
11162 | The @a finished output parameter determines if the implementation has
|
---|
11163 | finished resizing the frame buffer or not. If, for some reason, the
|
---|
11164 | resize cannot be finished immediately during this call, @a finished
|
---|
11165 | must be set to @c false, and the implementation must call
|
---|
11166 | <link to="IDisplay::resizeCompleted"/> after it has returned from
|
---|
11167 | this method as soon as possible. If @a finished is @c false, the
|
---|
11168 | machine will not call any frame buffer methods until
|
---|
11169 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
11170 |
|
---|
11171 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
11172 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
11173 | this frame buffer must return exactly the same values as specified in the
|
---|
11174 | parameters of this method, after the resize is completed. If the
|
---|
11175 | indirect mode is chosen, these attributes must return values describing
|
---|
11176 | the format of the implementation's own memory buffer <link
|
---|
11177 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
11178 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
11179 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
11180 | to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
|
---|
11181 |
|
---|
11182 | <note>
|
---|
11183 | This method is called by the IDisplay object under the
|
---|
11184 | <link to="#lock"/> provided by this IFramebuffer
|
---|
11185 | implementation. If this method returns @c false in @a finished, then
|
---|
11186 | this lock is not released until
|
---|
11187 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
11188 | </note>
|
---|
11189 | </desc>
|
---|
11190 | <param name="screenId" type="unsigned long" dir="in">
|
---|
11191 | <desc>
|
---|
11192 | Logical screen number. Must be used in the corresponding call to
|
---|
11193 | <link to="IDisplay::resizeCompleted"/> if this call is made.
|
---|
11194 | </desc>
|
---|
11195 | </param>
|
---|
11196 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
11197 | <desc>
|
---|
11198 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
11199 | See also <link to="FramebufferPixelFormat"/>.
|
---|
11200 | </desc>
|
---|
11201 | </param>
|
---|
11202 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
11203 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
11204 | </param>
|
---|
11205 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
11206 | <desc>Color depth, bits per pixel.</desc>
|
---|
11207 | </param>
|
---|
11208 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
11209 | <desc>Size of one scan line, in bytes.</desc>
|
---|
11210 | </param>
|
---|
11211 | <param name="width" type="unsigned long" dir="in">
|
---|
11212 | <desc>Width of the guest display, in pixels.</desc>
|
---|
11213 | </param>
|
---|
11214 | <param name="height" type="unsigned long" dir="in">
|
---|
11215 | <desc>Height of the guest display, in pixels.</desc>
|
---|
11216 | </param>
|
---|
11217 | <param name="finished" type="boolean" dir="return">
|
---|
11218 | <desc>
|
---|
11219 | Can the VM start using the new frame buffer immediately
|
---|
11220 | after this method returns or it should wait for
|
---|
11221 | <link to="IDisplay::resizeCompleted"/>.
|
---|
11222 | </desc>
|
---|
11223 | </param>
|
---|
11224 | </method>
|
---|
11225 |
|
---|
11226 | <method name="videoModeSupported">
|
---|
11227 | <desc>
|
---|
11228 | Returns whether the frame buffer implementation is willing to
|
---|
11229 | support a given video mode. In case it is not able to render
|
---|
11230 | the video mode (or for some reason not willing), it should
|
---|
11231 | return @c false. Usually this method is called when the guest
|
---|
11232 | asks the VMM device whether a given video mode is supported
|
---|
11233 | so the information returned is directly exposed to the guest.
|
---|
11234 | It is important that this method returns very quickly.
|
---|
11235 | </desc>
|
---|
11236 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11237 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11238 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
11239 | <param name="supported" type="boolean" dir="return"/>
|
---|
11240 | </method>
|
---|
11241 |
|
---|
11242 | <method name="getVisibleRegion">
|
---|
11243 | <desc>
|
---|
11244 | Returns the visible region of this frame buffer.
|
---|
11245 |
|
---|
11246 | If the @a rectangles parameter is @c null then the value of the
|
---|
11247 | @a count parameter is ignored and the number of elements necessary to
|
---|
11248 | describe the current visible region is returned in @a countCopied.
|
---|
11249 |
|
---|
11250 | If @a rectangles is not @c null but @a count is less
|
---|
11251 | than the required number of elements to store region data, the method
|
---|
11252 | will report a failure. If @a count is equal or greater than the
|
---|
11253 | required number of elements, then the actual number of elements copied
|
---|
11254 | to the provided array will be returned in @a countCopied.
|
---|
11255 |
|
---|
11256 | <note>
|
---|
11257 | The address of the provided array must be in the process space of
|
---|
11258 | this IFramebuffer object.
|
---|
11259 | </note>
|
---|
11260 | <note>
|
---|
11261 | Method not yet implemented.
|
---|
11262 | </note>
|
---|
11263 | </desc>
|
---|
11264 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
11265 | <desc>Pointer to the @c RTRECT array to receive region data.</desc>
|
---|
11266 | </param>
|
---|
11267 | <param name="count" type="unsigned long" dir="in">
|
---|
11268 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
11269 | </param>
|
---|
11270 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
11271 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
11272 | </param>
|
---|
11273 | </method>
|
---|
11274 |
|
---|
11275 | <method name="setVisibleRegion">
|
---|
11276 | <desc>
|
---|
11277 | Suggests a new visible region to this frame buffer. This region
|
---|
11278 | represents the area of the VM display which is a union of regions of
|
---|
11279 | all top-level windows of the guest operating system running inside the
|
---|
11280 | VM (if the Guest Additions for this system support this
|
---|
11281 | functionality). This information may be used by the frontends to
|
---|
11282 | implement the seamless desktop integration feature.
|
---|
11283 |
|
---|
11284 | <note>
|
---|
11285 | The address of the provided array must be in the process space of
|
---|
11286 | this IFramebuffer object.
|
---|
11287 | </note>
|
---|
11288 | <note>
|
---|
11289 | The IFramebuffer implementation must make a copy of the provided
|
---|
11290 | array of rectangles.
|
---|
11291 | </note>
|
---|
11292 | <note>
|
---|
11293 | Method not yet implemented.
|
---|
11294 | </note>
|
---|
11295 | </desc>
|
---|
11296 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
11297 | <desc>Pointer to the @c RTRECT array.</desc>
|
---|
11298 | </param>
|
---|
11299 | <param name="count" type="unsigned long" dir="in">
|
---|
11300 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
11301 | </param>
|
---|
11302 | </method>
|
---|
11303 |
|
---|
11304 | <method name="processVHWACommand">
|
---|
11305 | <desc>
|
---|
11306 | Posts a Video HW Acceleration Command to the frame buffer for processing.
|
---|
11307 | The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color conversion, overlaying, etc.)
|
---|
11308 | are posted from quest to the host to be processed by the host hardware.
|
---|
11309 |
|
---|
11310 | <note>
|
---|
11311 | The address of the provided command must be in the process space of
|
---|
11312 | this IFramebuffer object.
|
---|
11313 | </note>
|
---|
11314 | </desc>
|
---|
11315 |
|
---|
11316 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
11317 | <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
|
---|
11318 | </param>
|
---|
11319 | </method>
|
---|
11320 |
|
---|
11321 | </interface>
|
---|
11322 |
|
---|
11323 | <interface
|
---|
11324 | name="IFramebufferOverlay" extends="IFramebuffer"
|
---|
11325 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
11326 | wsmap="suppress"
|
---|
11327 | >
|
---|
11328 | <desc>
|
---|
11329 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
11330 | for displaying status icons above an IFramebuffer. It is always created
|
---|
11331 | not visible, so that it must be explicitly shown. It only covers a
|
---|
11332 | portion of the IFramebuffer, determined by its width, height and
|
---|
11333 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
11334 | that order) format, and may be written to directly. Do re-read the
|
---|
11335 | width though, after setting it, as it may be adjusted (increased) to
|
---|
11336 | make it more suitable for the front end.
|
---|
11337 | </desc>
|
---|
11338 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
11339 | <desc>X position of the overlay, relative to the frame buffer.</desc>
|
---|
11340 | </attribute>
|
---|
11341 |
|
---|
11342 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
11343 | <desc>Y position of the overlay, relative to the frame buffer.</desc>
|
---|
11344 | </attribute>
|
---|
11345 |
|
---|
11346 | <attribute name="visible" type="boolean" readonly="no">
|
---|
11347 | <desc>
|
---|
11348 | Whether the overlay is currently visible.
|
---|
11349 | </desc>
|
---|
11350 | </attribute>
|
---|
11351 |
|
---|
11352 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
11353 | <desc>
|
---|
11354 | The global alpha value for the overlay. This may or may not be
|
---|
11355 | supported by a given front end.
|
---|
11356 | </desc>
|
---|
11357 | </attribute>
|
---|
11358 |
|
---|
11359 | <method name="move">
|
---|
11360 | <desc>
|
---|
11361 | Changes the overlay's position relative to the IFramebuffer.
|
---|
11362 | </desc>
|
---|
11363 | <param name="x" type="unsigned long" dir="in"/>
|
---|
11364 | <param name="y" type="unsigned long" dir="in"/>
|
---|
11365 | </method>
|
---|
11366 |
|
---|
11367 | </interface>
|
---|
11368 |
|
---|
11369 | <interface
|
---|
11370 | name="IDisplay" extends="$unknown"
|
---|
11371 | uuid="09EED313-CD56-4D06-BD56-FAC0F716B5DD"
|
---|
11372 | wsmap="managed"
|
---|
11373 | >
|
---|
11374 | <desc>
|
---|
11375 | The IDisplay interface represents the virtual machine's display.
|
---|
11376 |
|
---|
11377 | The object implementing this interface is contained in each
|
---|
11378 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
11379 | output of the virtual machine.
|
---|
11380 |
|
---|
11381 | The virtual display supports pluggable output targets represented by the
|
---|
11382 | IFramebuffer interface. Examples of the output target are a window on
|
---|
11383 | the host computer or an RDP session's display on a remote computer.
|
---|
11384 | </desc>
|
---|
11385 | <method name="getScreenResolution">
|
---|
11386 | <desc>Queries display width, height and color depth for given screen.</desc>
|
---|
11387 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11388 | <param name="width" type="unsigned long" dir="out"/>
|
---|
11389 | <param name="height" type="unsigned long" dir="out"/>
|
---|
11390 | <param name="bitsPerPixel" type="unsigned long" dir="out"/>
|
---|
11391 | </method>
|
---|
11392 |
|
---|
11393 | <method name="setFramebuffer">
|
---|
11394 | <desc>
|
---|
11395 | Sets the framebuffer for given screen.
|
---|
11396 | </desc>
|
---|
11397 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11398 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
11399 | </method>
|
---|
11400 |
|
---|
11401 | <method name="getFramebuffer">
|
---|
11402 | <desc>
|
---|
11403 | Queries the framebuffer for given screen.
|
---|
11404 | </desc>
|
---|
11405 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11406 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
11407 | <param name="xOrigin" type="long" dir="out"/>
|
---|
11408 | <param name="yOrigin" type="long" dir="out"/>
|
---|
11409 | </method>
|
---|
11410 |
|
---|
11411 | <method name="setVideoModeHint">
|
---|
11412 | <desc>
|
---|
11413 | Asks VirtualBox to request the given video mode from
|
---|
11414 | the guest. This is just a hint and it cannot be guaranteed
|
---|
11415 | that the requested resolution will be used. Guest Additions
|
---|
11416 | are required for the request to be seen by guests. The caller
|
---|
11417 | should issue the request and wait for a resolution change and
|
---|
11418 | after a timeout retry.
|
---|
11419 |
|
---|
11420 | Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
|
---|
11421 | parameters means that the corresponding values should be taken from the
|
---|
11422 | current video mode (i.e. left unchanged).
|
---|
11423 |
|
---|
11424 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
11425 | parameter specifies the number of the guest display to send the hint to:
|
---|
11426 | @c 0 is the primary display, @c 1 is the first secondary and
|
---|
11427 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
11428 | must be @c 0.
|
---|
11429 |
|
---|
11430 | <result name="E_INVALIDARG">
|
---|
11431 | The @a display is not associated with any monitor.
|
---|
11432 | </result>
|
---|
11433 |
|
---|
11434 | </desc>
|
---|
11435 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11436 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11437 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
11438 | <param name="display" type="unsigned long" dir="in"/>
|
---|
11439 | </method>
|
---|
11440 |
|
---|
11441 | <method name="setSeamlessMode">
|
---|
11442 | <desc>
|
---|
11443 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
11444 | integration) mode.
|
---|
11445 | <note>
|
---|
11446 | Calling this method has no effect if <link
|
---|
11447 | to="IGuest::getFacilityStatus"/> with facility <link to="AdditionsFacilityType::Seamless"/>
|
---|
11448 | does not return <link to="AdditionsFacilityStatus::Active"/>.
|
---|
11449 | </note>
|
---|
11450 | </desc>
|
---|
11451 | <param name="enabled" type="boolean" dir="in"/>
|
---|
11452 | </method>
|
---|
11453 |
|
---|
11454 | <method name="takeScreenShot">
|
---|
11455 | <desc>
|
---|
11456 | Takes a screen shot of the requested size and copies it to the
|
---|
11457 | 32-bpp buffer allocated by the caller and pointed to by @a address.
|
---|
11458 | A pixel consists of 4 bytes in order: B, G, R, 0.
|
---|
11459 |
|
---|
11460 | <note>This API can be used only by the COM/XPCOM C++ API as it
|
---|
11461 | requires pointer support. Use <link to="#takeScreenShotToArray" />
|
---|
11462 | with other language bindings.
|
---|
11463 | </note>
|
---|
11464 |
|
---|
11465 | <result name="E_NOTIMPL">
|
---|
11466 | Feature not implemented.
|
---|
11467 | </result>
|
---|
11468 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11469 | Could not take a screenshot.
|
---|
11470 | </result>
|
---|
11471 |
|
---|
11472 | </desc>
|
---|
11473 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11474 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
11475 | <param name="width" type="unsigned long" dir="in"/>
|
---|
11476 | <param name="height" type="unsigned long" dir="in"/>
|
---|
11477 | </method>
|
---|
11478 |
|
---|
11479 | <method name="takeScreenShotToArray">
|
---|
11480 | <desc>
|
---|
11481 | Takes a guest screen shot of the requested size and returns it as
|
---|
11482 | an array of bytes in uncompressed 32-bit RGBA format.
|
---|
11483 | A pixel consists of 4 bytes in order: R, G, B, 0xFF.
|
---|
11484 |
|
---|
11485 | This API is slow, but could be the only option to get guest screenshot
|
---|
11486 | for scriptable languages not allowed to manipulate with addresses
|
---|
11487 | directly.
|
---|
11488 |
|
---|
11489 | <result name="E_NOTIMPL">
|
---|
11490 | Feature not implemented.
|
---|
11491 | </result>
|
---|
11492 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11493 | Could not take a screenshot.
|
---|
11494 | </result>
|
---|
11495 | </desc>
|
---|
11496 | <param name="screenId" type="unsigned long" dir="in">
|
---|
11497 | <desc>
|
---|
11498 | Monitor to take screenshot from.
|
---|
11499 | </desc>
|
---|
11500 | </param>
|
---|
11501 | <param name="width" type="unsigned long" dir="in">
|
---|
11502 | <desc>
|
---|
11503 | Desired image width.
|
---|
11504 | </desc>
|
---|
11505 | </param>
|
---|
11506 | <param name="height" type="unsigned long" dir="in">
|
---|
11507 | <desc>
|
---|
11508 | Desired image height.
|
---|
11509 | </desc>
|
---|
11510 | </param>
|
---|
11511 | <param name="screenData" type="octet" dir="return" safearray="yes">
|
---|
11512 | <desc>
|
---|
11513 | Array with resulting screen data.
|
---|
11514 | </desc>
|
---|
11515 | </param>
|
---|
11516 | </method>
|
---|
11517 |
|
---|
11518 | <method name="takeScreenShotPNGToArray">
|
---|
11519 | <desc>
|
---|
11520 | Takes a guest screen shot of the requested size and returns it as
|
---|
11521 | PNG image in array.
|
---|
11522 |
|
---|
11523 | <result name="E_NOTIMPL">
|
---|
11524 | Feature not implemented.
|
---|
11525 | </result>
|
---|
11526 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11527 | Could not take a screenshot.
|
---|
11528 | </result>
|
---|
11529 | </desc>
|
---|
11530 | <param name="screenId" type="unsigned long" dir="in">
|
---|
11531 | <desc>
|
---|
11532 | Monitor to take the screenshot from.
|
---|
11533 | </desc>
|
---|
11534 | </param>
|
---|
11535 | <param name="width" type="unsigned long" dir="in">
|
---|
11536 | <desc>
|
---|
11537 | Desired image width.
|
---|
11538 | </desc>
|
---|
11539 | </param>
|
---|
11540 | <param name="height" type="unsigned long" dir="in">
|
---|
11541 | <desc>
|
---|
11542 | Desired image height.
|
---|
11543 | </desc>
|
---|
11544 | </param>
|
---|
11545 | <param name="screenData" type="octet" dir="return" safearray="yes">
|
---|
11546 | <desc>
|
---|
11547 | Array with resulting screen data.
|
---|
11548 | </desc>
|
---|
11549 | </param>
|
---|
11550 | </method>
|
---|
11551 |
|
---|
11552 | <method name="drawToScreen">
|
---|
11553 | <desc>
|
---|
11554 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
11555 | to the given point on the VM display.
|
---|
11556 |
|
---|
11557 | <result name="E_NOTIMPL">
|
---|
11558 | Feature not implemented.
|
---|
11559 | </result>
|
---|
11560 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11561 | Could not draw to screen.
|
---|
11562 | </result>
|
---|
11563 |
|
---|
11564 | </desc>
|
---|
11565 | <param name="screenId" type="unsigned long" dir="in">
|
---|
11566 | <desc>
|
---|
11567 | Monitor to take the screenshot from.
|
---|
11568 | </desc>
|
---|
11569 | </param>
|
---|
11570 | <param name="address" type="octet" mod="ptr" dir="in">
|
---|
11571 | <desc>
|
---|
11572 | Address to store the screenshot to
|
---|
11573 | </desc>
|
---|
11574 | </param>
|
---|
11575 | <param name="x" type="unsigned long" dir="in">
|
---|
11576 | <desc>
|
---|
11577 | Relative to the screen top left corner.
|
---|
11578 | </desc>
|
---|
11579 | </param>
|
---|
11580 | <param name="y" type="unsigned long" dir="in">
|
---|
11581 | <desc>
|
---|
11582 | Relative to the screen top left corner.
|
---|
11583 | </desc>
|
---|
11584 | </param>
|
---|
11585 | <param name="width" type="unsigned long" dir="in">
|
---|
11586 | <desc>
|
---|
11587 | Desired image width.
|
---|
11588 | </desc>
|
---|
11589 | </param>
|
---|
11590 | <param name="height" type="unsigned long" dir="in">
|
---|
11591 | <desc>
|
---|
11592 | Desired image height.
|
---|
11593 | </desc>
|
---|
11594 | </param>
|
---|
11595 | </method>
|
---|
11596 |
|
---|
11597 | <method name="invalidateAndUpdate">
|
---|
11598 | <desc>
|
---|
11599 | Does a full invalidation of the VM display and instructs the VM
|
---|
11600 | to update it.
|
---|
11601 |
|
---|
11602 | <result name="VBOX_E_IPRT_ERROR">
|
---|
11603 | Could not invalidate and update screen.
|
---|
11604 | </result>
|
---|
11605 |
|
---|
11606 | </desc>
|
---|
11607 | </method>
|
---|
11608 |
|
---|
11609 | <method name="resizeCompleted">
|
---|
11610 | <desc>
|
---|
11611 | Signals that a framebuffer has completed the resize operation.
|
---|
11612 |
|
---|
11613 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
11614 | Operation only valid for external frame buffers.
|
---|
11615 | </result>
|
---|
11616 |
|
---|
11617 | </desc>
|
---|
11618 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
11619 | </method>
|
---|
11620 |
|
---|
11621 | <method name="completeVHWACommand">
|
---|
11622 | <desc>
|
---|
11623 | Signals that the Video HW Acceleration command has completed.
|
---|
11624 | </desc>
|
---|
11625 |
|
---|
11626 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
11627 | <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
|
---|
11628 | </param>
|
---|
11629 | </method>
|
---|
11630 |
|
---|
11631 | </interface>
|
---|
11632 |
|
---|
11633 | <!--
|
---|
11634 | // INetworkAdapter
|
---|
11635 | /////////////////////////////////////////////////////////////////////////
|
---|
11636 | -->
|
---|
11637 |
|
---|
11638 | <enum
|
---|
11639 | name="NetworkAttachmentType"
|
---|
11640 | uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
|
---|
11641 | >
|
---|
11642 | <desc>
|
---|
11643 | Network attachment type.
|
---|
11644 | </desc>
|
---|
11645 |
|
---|
11646 | <const name="Null" value="0">
|
---|
11647 | <desc>Null value, also means "not attached".</desc>
|
---|
11648 | </const>
|
---|
11649 | <const name="NAT" value="1"/>
|
---|
11650 | <const name="Bridged" value="2"/>
|
---|
11651 | <const name="Internal" value="3"/>
|
---|
11652 | <const name="HostOnly" value="4"/>
|
---|
11653 | <const name="VDE" value="5"/>
|
---|
11654 | </enum>
|
---|
11655 |
|
---|
11656 | <enum
|
---|
11657 | name="NetworkAdapterType"
|
---|
11658 | uuid="3c2281e4-d952-4e87-8c7d-24379cb6a81c"
|
---|
11659 | >
|
---|
11660 | <desc>
|
---|
11661 | Network adapter type.
|
---|
11662 | </desc>
|
---|
11663 |
|
---|
11664 | <const name="Null" value="0">
|
---|
11665 | <desc>Null value (never used by the API).</desc>
|
---|
11666 | </const>
|
---|
11667 | <const name="Am79C970A" value="1">
|
---|
11668 | <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
|
---|
11669 | </const>
|
---|
11670 | <const name="Am79C973" value="2">
|
---|
11671 | <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
|
---|
11672 | </const>
|
---|
11673 | <const name="I82540EM" value="3">
|
---|
11674 | <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
|
---|
11675 | </const>
|
---|
11676 | <const name="I82543GC" value="4">
|
---|
11677 | <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
|
---|
11678 | </const>
|
---|
11679 | <const name="I82545EM" value="5">
|
---|
11680 | <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
|
---|
11681 | </const>
|
---|
11682 | <const name="Virtio" value="6">
|
---|
11683 | <desc>Virtio network device.</desc>
|
---|
11684 | </const>
|
---|
11685 | </enum>
|
---|
11686 |
|
---|
11687 | <interface
|
---|
11688 | name="INetworkAdapter" extends="$unknown"
|
---|
11689 | uuid="9bf58a46-c3f7-4f31-80fa-dde9a5dc0b7b"
|
---|
11690 | wsmap="managed"
|
---|
11691 | >
|
---|
11692 | <desc>
|
---|
11693 | Represents a virtual network adapter that is attached to a virtual machine.
|
---|
11694 | Each virtual machine has a fixed number of network adapter slots with one
|
---|
11695 | instance of this attached to each of them. Call
|
---|
11696 | <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
|
---|
11697 | is attached to a given slot in a given machine.
|
---|
11698 |
|
---|
11699 | Each network adapter can be in one of five attachment modes, which are
|
---|
11700 | represented by the <link to="NetworkAttachmentType" /> enumeration;
|
---|
11701 | see the <link to="#attachmentType" /> attribute.
|
---|
11702 | </desc>
|
---|
11703 |
|
---|
11704 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
11705 | <desc>
|
---|
11706 | Type of the virtual network adapter. Depending on this value,
|
---|
11707 | VirtualBox will provide a different virtual network hardware
|
---|
11708 | to the guest.
|
---|
11709 | </desc>
|
---|
11710 | </attribute>
|
---|
11711 |
|
---|
11712 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11713 | <desc>
|
---|
11714 | Slot number this adapter is plugged into. Corresponds to
|
---|
11715 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
11716 | to obtain this instance.
|
---|
11717 | </desc>
|
---|
11718 | </attribute>
|
---|
11719 |
|
---|
11720 | <attribute name="enabled" type="boolean">
|
---|
11721 | <desc>
|
---|
11722 | Flag whether the network adapter is present in the
|
---|
11723 | guest system. If disabled, the virtual guest hardware will
|
---|
11724 | not contain this network adapter. Can only be changed when
|
---|
11725 | the VM is not running.
|
---|
11726 | </desc>
|
---|
11727 | </attribute>
|
---|
11728 |
|
---|
11729 | <attribute name="MACAddress" type="wstring">
|
---|
11730 | <desc>
|
---|
11731 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
11732 | it to @c null or an empty string, VirtualBox will generate a unique MAC address.
|
---|
11733 | </desc>
|
---|
11734 | </attribute>
|
---|
11735 |
|
---|
11736 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
11737 |
|
---|
11738 | <attribute name="hostInterface" type="wstring">
|
---|
11739 | <desc>
|
---|
11740 | Name of the host network interface the VM is attached to.
|
---|
11741 | </desc>
|
---|
11742 | </attribute>
|
---|
11743 |
|
---|
11744 | <attribute name="internalNetwork" type="wstring">
|
---|
11745 | <desc>
|
---|
11746 | Name of the internal network the VM is attached to.
|
---|
11747 | </desc>
|
---|
11748 | </attribute>
|
---|
11749 |
|
---|
11750 | <attribute name="NATNetwork" type="wstring">
|
---|
11751 | <desc>
|
---|
11752 | Name of the NAT network the VM is attached to.
|
---|
11753 | </desc>
|
---|
11754 | </attribute>
|
---|
11755 |
|
---|
11756 | <attribute name="VDENetwork" type="wstring">
|
---|
11757 | <desc>
|
---|
11758 | Name of the VDE switch the VM is attached to.
|
---|
11759 | </desc>
|
---|
11760 | </attribute>
|
---|
11761 |
|
---|
11762 | <attribute name="cableConnected" type="boolean">
|
---|
11763 | <desc>
|
---|
11764 | Flag whether the adapter reports the cable as connected or not.
|
---|
11765 | It can be used to report offline situations to a VM.
|
---|
11766 | </desc>
|
---|
11767 | </attribute>
|
---|
11768 |
|
---|
11769 | <attribute name="lineSpeed" type="unsigned long">
|
---|
11770 | <desc>
|
---|
11771 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
11772 | </desc>
|
---|
11773 | </attribute>
|
---|
11774 |
|
---|
11775 | <attribute name="traceEnabled" type="boolean">
|
---|
11776 | <desc>
|
---|
11777 | Flag whether network traffic from/to the network card should be traced.
|
---|
11778 | Can only be toggled when the VM is turned off.
|
---|
11779 | </desc>
|
---|
11780 | </attribute>
|
---|
11781 |
|
---|
11782 | <attribute name="traceFile" type="wstring">
|
---|
11783 | <desc>
|
---|
11784 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
11785 | will be used.
|
---|
11786 | </desc>
|
---|
11787 | </attribute>
|
---|
11788 |
|
---|
11789 | <attribute name="natDriver" type="INATEngine" readonly="yes">
|
---|
11790 | <desc>
|
---|
11791 | Points to the NAT engine which handles the network address translation
|
---|
11792 | for this interface. This is active only when the interface actually uses
|
---|
11793 | NAT (see <link to="#attachToNAT" />).
|
---|
11794 | </desc>
|
---|
11795 | </attribute>
|
---|
11796 |
|
---|
11797 | <attribute name="bootPriority" type="unsigned long">
|
---|
11798 | <desc>
|
---|
11799 | Network boot priority of the adapter. Priority 1 is highest. If not set,
|
---|
11800 | the priority is considered to be at the lowest possible setting.
|
---|
11801 | </desc>
|
---|
11802 | </attribute>
|
---|
11803 |
|
---|
11804 | <attribute name="bandwidthLimit" type="unsigned long">
|
---|
11805 | <desc>
|
---|
11806 | Maximum throughput allowed for this network adapter, in units of 1 mbps.
|
---|
11807 | A zero value means uncapped/unlimited.
|
---|
11808 | </desc>
|
---|
11809 | </attribute>
|
---|
11810 |
|
---|
11811 | <method name="attachToNAT">
|
---|
11812 | <desc>
|
---|
11813 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
11814 | </desc>
|
---|
11815 | </method>
|
---|
11816 |
|
---|
11817 | <method name="attachToBridgedInterface">
|
---|
11818 | <desc>
|
---|
11819 | Attach the network adapter to a bridged host interface.
|
---|
11820 | </desc>
|
---|
11821 | </method>
|
---|
11822 |
|
---|
11823 | <method name="attachToInternalNetwork">
|
---|
11824 | <desc>
|
---|
11825 | Attach the network adapter to an internal network.
|
---|
11826 | </desc>
|
---|
11827 | </method>
|
---|
11828 |
|
---|
11829 | <method name="attachToHostOnlyInterface">
|
---|
11830 | <desc>
|
---|
11831 | Attach the network adapter to the host-only network.
|
---|
11832 | </desc>
|
---|
11833 | </method>
|
---|
11834 |
|
---|
11835 | <method name="attachToVDE">
|
---|
11836 | <desc>
|
---|
11837 | Attach the network adapter to a VDE network.
|
---|
11838 | </desc>
|
---|
11839 | </method>
|
---|
11840 |
|
---|
11841 | <method name="detach">
|
---|
11842 | <desc>
|
---|
11843 | Detach the network adapter
|
---|
11844 | </desc>
|
---|
11845 | </method>
|
---|
11846 | </interface>
|
---|
11847 |
|
---|
11848 |
|
---|
11849 | <!--
|
---|
11850 | // ISerialPort
|
---|
11851 | /////////////////////////////////////////////////////////////////////////
|
---|
11852 | -->
|
---|
11853 |
|
---|
11854 | <enum
|
---|
11855 | name="PortMode"
|
---|
11856 | uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
|
---|
11857 | >
|
---|
11858 | <desc>
|
---|
11859 | The PortMode enumeration represents possible communication modes for
|
---|
11860 | the virtual serial port device.
|
---|
11861 | </desc>
|
---|
11862 |
|
---|
11863 | <const name="Disconnected" value="0">
|
---|
11864 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
11865 | </const>
|
---|
11866 | <const name="HostPipe" value="1">
|
---|
11867 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
11868 | </const>
|
---|
11869 | <const name="HostDevice" value="2">
|
---|
11870 | <desc>Virtual device is attached to a host device.</desc>
|
---|
11871 | </const>
|
---|
11872 | <const name="RawFile" value="3">
|
---|
11873 | <desc>Virtual device is attached to a raw file.</desc>
|
---|
11874 | </const>
|
---|
11875 | </enum>
|
---|
11876 |
|
---|
11877 | <interface
|
---|
11878 | name="ISerialPort" extends="$unknown"
|
---|
11879 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
11880 | wsmap="managed"
|
---|
11881 | >
|
---|
11882 |
|
---|
11883 | <desc>
|
---|
11884 | The ISerialPort interface represents the virtual serial port device.
|
---|
11885 |
|
---|
11886 | The virtual serial port device acts like an ordinary serial port
|
---|
11887 | inside the virtual machine. This device communicates to the real
|
---|
11888 | serial port hardware in one of two modes: host pipe or host device.
|
---|
11889 |
|
---|
11890 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
11891 | the host computer that represents a serial port. The #server attribute
|
---|
11892 | determines if this pipe is created by the virtual machine process at
|
---|
11893 | machine startup or it must already exist before starting machine
|
---|
11894 | execution.
|
---|
11895 |
|
---|
11896 | In host device mode, the #path attribute specifies the name of the
|
---|
11897 | serial port device on the host computer.
|
---|
11898 |
|
---|
11899 | There is also a third communication mode: the disconnected mode. In this
|
---|
11900 | mode, the guest OS running inside the virtual machine will be able to
|
---|
11901 | detect the serial port, but all port write operations will be discarded
|
---|
11902 | and all port read operations will return no data.
|
---|
11903 |
|
---|
11904 | <see>IMachine::getSerialPort</see>
|
---|
11905 | </desc>
|
---|
11906 |
|
---|
11907 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11908 | <desc>
|
---|
11909 | Slot number this serial port is plugged into. Corresponds to
|
---|
11910 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
11911 | to obtain this instance.
|
---|
11912 | </desc>
|
---|
11913 | </attribute>
|
---|
11914 |
|
---|
11915 | <attribute name="enabled" type="boolean">
|
---|
11916 | <desc>
|
---|
11917 | Flag whether the serial port is enabled. If disabled,
|
---|
11918 | the serial port will not be reported to the guest OS.
|
---|
11919 | </desc>
|
---|
11920 | </attribute>
|
---|
11921 |
|
---|
11922 | <attribute name="IOBase" type="unsigned long">
|
---|
11923 | <desc>Base I/O address of the serial port.</desc>
|
---|
11924 | </attribute>
|
---|
11925 |
|
---|
11926 | <attribute name="IRQ" type="unsigned long">
|
---|
11927 | <desc>IRQ number of the serial port.</desc>
|
---|
11928 | </attribute>
|
---|
11929 |
|
---|
11930 | <attribute name="hostMode" type="PortMode">
|
---|
11931 | <desc>
|
---|
11932 | How is this port connected to the host.
|
---|
11933 | <note>
|
---|
11934 | Changing this attribute may fail if the conditions for
|
---|
11935 | <link to="#path"/> are not met.
|
---|
11936 | </note>
|
---|
11937 | </desc>
|
---|
11938 | </attribute>
|
---|
11939 |
|
---|
11940 | <attribute name="server" type="boolean">
|
---|
11941 | <desc>
|
---|
11942 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
11943 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
11944 | used only when <link to="#hostMode"/> is PortMode_HostPipe.
|
---|
11945 | </desc>
|
---|
11946 | </attribute>
|
---|
11947 |
|
---|
11948 | <attribute name="path" type="wstring">
|
---|
11949 | <desc>
|
---|
11950 | Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
|
---|
11951 | PortMode_HostPipe, or the host serial device name when
|
---|
11952 | <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
|
---|
11953 | cases, setting a @c null or empty string as the attribute's value
|
---|
11954 | is an error. Otherwise, the value of this property is ignored.
|
---|
11955 | </desc>
|
---|
11956 | </attribute>
|
---|
11957 |
|
---|
11958 | </interface>
|
---|
11959 |
|
---|
11960 | <!--
|
---|
11961 | // IParallelPort
|
---|
11962 | /////////////////////////////////////////////////////////////////////////
|
---|
11963 | -->
|
---|
11964 |
|
---|
11965 | <interface
|
---|
11966 | name="IParallelPort" extends="$unknown"
|
---|
11967 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
11968 | wsmap="managed"
|
---|
11969 | >
|
---|
11970 |
|
---|
11971 | <desc>
|
---|
11972 | The IParallelPort interface represents the virtual parallel port device.
|
---|
11973 |
|
---|
11974 | The virtual parallel port device acts like an ordinary parallel port
|
---|
11975 | inside the virtual machine. This device communicates to the real
|
---|
11976 | parallel port hardware using the name of the parallel device on the host
|
---|
11977 | computer specified in the #path attribute.
|
---|
11978 |
|
---|
11979 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
11980 | IRQ number that will be reported to the guest operating system and used
|
---|
11981 | to operate the given parallel port from within the virtual machine.
|
---|
11982 |
|
---|
11983 | <see>IMachine::getParallelPort</see>
|
---|
11984 | </desc>
|
---|
11985 |
|
---|
11986 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11987 | <desc>
|
---|
11988 | Slot number this parallel port is plugged into. Corresponds to
|
---|
11989 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
11990 | to obtain this instance.
|
---|
11991 | </desc>
|
---|
11992 | </attribute>
|
---|
11993 |
|
---|
11994 | <attribute name="enabled" type="boolean">
|
---|
11995 | <desc>
|
---|
11996 | Flag whether the parallel port is enabled. If disabled,
|
---|
11997 | the parallel port will not be reported to the guest OS.
|
---|
11998 | </desc>
|
---|
11999 | </attribute>
|
---|
12000 |
|
---|
12001 | <attribute name="IOBase" type="unsigned long">
|
---|
12002 | <desc>Base I/O address of the parallel port.</desc>
|
---|
12003 | </attribute>
|
---|
12004 |
|
---|
12005 | <attribute name="IRQ" type="unsigned long">
|
---|
12006 | <desc>IRQ number of the parallel port.</desc>
|
---|
12007 | </attribute>
|
---|
12008 |
|
---|
12009 | <attribute name="path" type="wstring">
|
---|
12010 | <desc>
|
---|
12011 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
12012 | @c null or an empty string as this attribute's value will result into
|
---|
12013 | an error.
|
---|
12014 | </desc>
|
---|
12015 | </attribute>
|
---|
12016 |
|
---|
12017 | </interface>
|
---|
12018 |
|
---|
12019 |
|
---|
12020 | <!--
|
---|
12021 | // IMachineDebugger
|
---|
12022 | /////////////////////////////////////////////////////////////////////////
|
---|
12023 | -->
|
---|
12024 |
|
---|
12025 | <interface
|
---|
12026 | name="IMachineDebugger" extends="$unknown"
|
---|
12027 | uuid="1bfd2fa9-0d91-44d3-9515-368dcbb3eb4d"
|
---|
12028 | wsmap="suppress"
|
---|
12029 | >
|
---|
12030 | <method name="dumpGuestCore">
|
---|
12031 | <desc>
|
---|
12032 | Takes a core dump of the guest.
|
---|
12033 |
|
---|
12034 | See include/VBox/dbgfcorefmt.h for details on the file format.
|
---|
12035 | </desc>
|
---|
12036 | <param name="filename" type="wstring" dir="in">
|
---|
12037 | <desc>
|
---|
12038 | The name of the output file. The file must not exist.
|
---|
12039 | </desc>
|
---|
12040 | </param>
|
---|
12041 | <param name="compression" type="wstring" dir="in">
|
---|
12042 | <desc>
|
---|
12043 | Reserved for future compression method indicator.
|
---|
12044 | </desc>
|
---|
12045 | </param>
|
---|
12046 | </method>
|
---|
12047 |
|
---|
12048 | <method name="dumpHostProcessCore">
|
---|
12049 | <desc>
|
---|
12050 | Takes a core dump of the VM process on the host.
|
---|
12051 |
|
---|
12052 | This feature is not implemented in the 4.0.0 release but it may show up
|
---|
12053 | in a dot release.
|
---|
12054 | </desc>
|
---|
12055 | <param name="filename" type="wstring" dir="in">
|
---|
12056 | <desc>
|
---|
12057 | The name of the output file. The file must not exist.
|
---|
12058 | </desc>
|
---|
12059 | </param>
|
---|
12060 | <param name="compression" type="wstring" dir="in">
|
---|
12061 | <desc>
|
---|
12062 | Reserved for future compression method indicator.
|
---|
12063 | </desc>
|
---|
12064 | </param>
|
---|
12065 | </method>
|
---|
12066 |
|
---|
12067 | <method name="info">
|
---|
12068 | <desc>
|
---|
12069 | Interfaces with the info dumpers (DBGFInfo).
|
---|
12070 |
|
---|
12071 | This feature is not implemented in the 4.0.0 release but it may show up
|
---|
12072 | in a dot release.
|
---|
12073 | </desc>
|
---|
12074 | <param name="name" type="wstring" dir="in">
|
---|
12075 | <desc>
|
---|
12076 | The name of the info item.
|
---|
12077 | </desc>
|
---|
12078 | </param>
|
---|
12079 | <param name="args" type="wstring" dir="in">
|
---|
12080 | <desc>
|
---|
12081 | Arguments to the info dumper.
|
---|
12082 | </desc>
|
---|
12083 | </param>
|
---|
12084 | <param name="info" type="wstring" dir="return">
|
---|
12085 | <desc>
|
---|
12086 | The into string.
|
---|
12087 | </desc>
|
---|
12088 | </param>
|
---|
12089 | </method>
|
---|
12090 |
|
---|
12091 | <method name="injectNMI">
|
---|
12092 | <desc>
|
---|
12093 | Inject an NMI into a running VT-x/AMD-V VM.
|
---|
12094 | </desc>
|
---|
12095 | </method>
|
---|
12096 |
|
---|
12097 | <method name="modifyLogGroups">
|
---|
12098 | <desc>
|
---|
12099 | Modifies the group settings of the debug logger.
|
---|
12100 |
|
---|
12101 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12102 | in a dot release.
|
---|
12103 | </desc>
|
---|
12104 | <param name="settings" type="wstring" dir="in">
|
---|
12105 | <desc>The group settings string. See iprt/log.h for details.</desc>
|
---|
12106 | </param>
|
---|
12107 | </method>
|
---|
12108 |
|
---|
12109 | <method name="modifyLogFlags">
|
---|
12110 | <desc>
|
---|
12111 | Modifies the debug logger flags.
|
---|
12112 |
|
---|
12113 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12114 | in a dot release.
|
---|
12115 | </desc>
|
---|
12116 | <param name="settings" type="wstring" dir="in">
|
---|
12117 | <desc>The flags settings string. See iprt/log.h for details.</desc>
|
---|
12118 | </param>
|
---|
12119 | </method>
|
---|
12120 |
|
---|
12121 | <method name="modifyLogDestinations">
|
---|
12122 | <desc>
|
---|
12123 | Modifies the debug logger destinations.
|
---|
12124 |
|
---|
12125 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12126 | in a dot release.
|
---|
12127 | </desc>
|
---|
12128 | <param name="settings" type="wstring" dir="in">
|
---|
12129 | <desc>The destination settings string. See iprt/log.h for details.</desc>
|
---|
12130 | </param>
|
---|
12131 | </method>
|
---|
12132 |
|
---|
12133 | <method name="readPhysicalMemory">
|
---|
12134 | <desc>
|
---|
12135 | Reads guest physical memory, no side effects (MMIO++).
|
---|
12136 |
|
---|
12137 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12138 | in a dot release.
|
---|
12139 | </desc>
|
---|
12140 | <param name="address" type="long long" dir="in">
|
---|
12141 | <desc>The guest physical address.</desc>
|
---|
12142 | </param>
|
---|
12143 | <param name="size" type="unsigned long" dir="in">
|
---|
12144 | <desc>The number of bytes to read.</desc>
|
---|
12145 | </param>
|
---|
12146 | <param name="bytes" type="octet" safearray="yes" dir="return">
|
---|
12147 | <desc>The bytes read.</desc>
|
---|
12148 | </param>
|
---|
12149 | </method>
|
---|
12150 |
|
---|
12151 | <method name="writePhysicalMemory">
|
---|
12152 | <desc>
|
---|
12153 | Writes guest physical memory, access handles (MMIO++) are ignored.
|
---|
12154 |
|
---|
12155 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12156 | in a dot release.
|
---|
12157 | </desc>
|
---|
12158 | <param name="address" type="long long" dir="in">
|
---|
12159 | <desc>The guest physical address.</desc>
|
---|
12160 | </param>
|
---|
12161 | <param name="size" type="unsigned long" dir="in">
|
---|
12162 | <desc>The number of bytes to read.</desc>
|
---|
12163 | </param>
|
---|
12164 | <param name="bytes" type="octet" safearray="yes" dir="in">
|
---|
12165 | <desc>The bytes to write.</desc>
|
---|
12166 | </param>
|
---|
12167 | </method>
|
---|
12168 |
|
---|
12169 | <method name="readVirtualMemory">
|
---|
12170 | <desc>
|
---|
12171 | Reads guest virtual memory, no side effects (MMIO++).
|
---|
12172 |
|
---|
12173 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12174 | in a dot release.
|
---|
12175 | </desc>
|
---|
12176 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
12177 | <desc>The identifier of the Virtual CPU.</desc>
|
---|
12178 | </param>
|
---|
12179 | <param name="address" type="long long" dir="in">
|
---|
12180 | <desc>The guest virtual address.</desc>
|
---|
12181 | </param>
|
---|
12182 | <param name="size" type="unsigned long" dir="in">
|
---|
12183 | <desc>The number of bytes to read.</desc>
|
---|
12184 | </param>
|
---|
12185 | <param name="bytes" type="octet" safearray="yes" dir="return">
|
---|
12186 | <desc>The bytes read.</desc>
|
---|
12187 | </param>
|
---|
12188 | </method>
|
---|
12189 |
|
---|
12190 | <method name="writeVirtualMemory">
|
---|
12191 | <desc>
|
---|
12192 | Writes guest virtual memory, access handles (MMIO++) are ignored.
|
---|
12193 |
|
---|
12194 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12195 | in a dot release.
|
---|
12196 | </desc>
|
---|
12197 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
12198 | <desc>The identifier of the Virtual CPU.</desc>
|
---|
12199 | </param>
|
---|
12200 | <param name="address" type="long long" dir="in">
|
---|
12201 | <desc>The guest virtual address.</desc>
|
---|
12202 | </param>
|
---|
12203 | <param name="size" type="unsigned long" dir="in">
|
---|
12204 | <desc>The number of bytes to read.</desc>
|
---|
12205 | </param>
|
---|
12206 | <param name="bytes" type="octet" safearray="yes" dir="in">
|
---|
12207 | <desc>The bytes to write.</desc>
|
---|
12208 | </param>
|
---|
12209 | </method>
|
---|
12210 |
|
---|
12211 | <method name="detectOS">
|
---|
12212 | <desc>
|
---|
12213 | Tries to (re-)detect the guest OS kernel.
|
---|
12214 |
|
---|
12215 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12216 | in a dot release.
|
---|
12217 | </desc>
|
---|
12218 | <param name="os" type="wstring" dir="return">
|
---|
12219 | <desc>
|
---|
12220 | The detected OS kernel on success.
|
---|
12221 | </desc>
|
---|
12222 | </param>
|
---|
12223 | </method>
|
---|
12224 |
|
---|
12225 | <method name="getRegister">
|
---|
12226 | <desc>
|
---|
12227 | Gets one register.
|
---|
12228 |
|
---|
12229 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12230 | in a dot release.
|
---|
12231 | </desc>
|
---|
12232 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
12233 | <desc>The identifier of the Virtual CPU.</desc>
|
---|
12234 | </param>
|
---|
12235 | <param name="name" type="wstring" dir="in">
|
---|
12236 | <desc>The register name, case is ignored.</desc>
|
---|
12237 | </param>
|
---|
12238 | <param name="value" type="wstring" dir="return">
|
---|
12239 | <desc>
|
---|
12240 | The register value. This is usually a hex value (always 0x prefixed)
|
---|
12241 | but other format may be used for floating point registers (TBD).
|
---|
12242 | </desc>
|
---|
12243 | </param>
|
---|
12244 | </method>
|
---|
12245 |
|
---|
12246 | <method name="getRegisters">
|
---|
12247 | <desc>
|
---|
12248 | Gets all the registers for the given CPU.
|
---|
12249 |
|
---|
12250 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12251 | in a dot release.
|
---|
12252 | </desc>
|
---|
12253 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
12254 | <desc>The identifier of the Virtual CPU.</desc>
|
---|
12255 | </param>
|
---|
12256 | <param name="names" type="wstring" dir="out" safearray="yes">
|
---|
12257 | <desc>Array containing the lowercase register names.</desc>
|
---|
12258 | </param>
|
---|
12259 | <param name="values" type="wstring" dir="out" safearray="yes">
|
---|
12260 | <desc>
|
---|
12261 | Array paralell to the names holding the register values as if the
|
---|
12262 | register was returned by <link to="IMachineDebugger::getRegister"/>.
|
---|
12263 | </desc>
|
---|
12264 | </param>
|
---|
12265 | </method>
|
---|
12266 |
|
---|
12267 | <method name="setRegister">
|
---|
12268 | <desc>
|
---|
12269 | Gets one register.
|
---|
12270 |
|
---|
12271 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12272 | in a dot release.
|
---|
12273 | </desc>
|
---|
12274 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
12275 | <desc>The identifier of the Virtual CPU.</desc>
|
---|
12276 | </param>
|
---|
12277 | <param name="name" type="wstring" dir="in">
|
---|
12278 | <desc>The register name, case is ignored.</desc>
|
---|
12279 | </param>
|
---|
12280 | <param name="value" type="wstring" dir="in">
|
---|
12281 | <desc>
|
---|
12282 | The new register value. Hexadecimal, decimal and octal formattings
|
---|
12283 | are supported in addition to any special formattings returned by
|
---|
12284 | the getters.
|
---|
12285 | </desc>
|
---|
12286 | </param>
|
---|
12287 | </method>
|
---|
12288 |
|
---|
12289 | <method name="setRegisters">
|
---|
12290 | <desc>
|
---|
12291 | Sets zero or more registers atomically.
|
---|
12292 |
|
---|
12293 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12294 | in a dot release.
|
---|
12295 | </desc>
|
---|
12296 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
12297 | <desc>The identifier of the Virtual CPU.</desc>
|
---|
12298 | </param>
|
---|
12299 | <param name="names" type="wstring" dir="in" safearray="yes">
|
---|
12300 | <desc>Array containing the register names, case ignored.</desc>
|
---|
12301 | </param>
|
---|
12302 | <param name="values" type="wstring" dir="in" safearray="yes">
|
---|
12303 | <desc>
|
---|
12304 | Array paralell to the names holding the register values. See
|
---|
12305 | <link to="IMachineDebugger::setRegister"/> for formatting
|
---|
12306 | guidelines.
|
---|
12307 | </desc>
|
---|
12308 | </param>
|
---|
12309 | </method>
|
---|
12310 |
|
---|
12311 | <method name="dumpGuestStack">
|
---|
12312 | <desc>
|
---|
12313 | Produce a simple stack dump using the current guest state.
|
---|
12314 |
|
---|
12315 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12316 | in a dot release.
|
---|
12317 | </desc>
|
---|
12318 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
12319 | <desc>The identifier of the Virtual CPU.</desc>
|
---|
12320 | </param>
|
---|
12321 | <param name="stack" type="wstring" dir="return">
|
---|
12322 | <desc>String containing the formatted stack dump.</desc>
|
---|
12323 | </param>
|
---|
12324 | </method>
|
---|
12325 |
|
---|
12326 | <method name="resetStats">
|
---|
12327 | <desc>
|
---|
12328 | Reset VM statistics.
|
---|
12329 | </desc>
|
---|
12330 | <param name="pattern" type="wstring" dir="in">
|
---|
12331 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
12332 | </param>
|
---|
12333 | </method>
|
---|
12334 |
|
---|
12335 | <method name="dumpStats">
|
---|
12336 | <desc>
|
---|
12337 | Dumps VM statistics.
|
---|
12338 | </desc>
|
---|
12339 | <param name="pattern" type="wstring" dir="in">
|
---|
12340 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
12341 | </param>
|
---|
12342 | </method>
|
---|
12343 |
|
---|
12344 | <method name="getStats">
|
---|
12345 | <desc>
|
---|
12346 | Get the VM statistics in a XMLish format.
|
---|
12347 | </desc>
|
---|
12348 | <param name="pattern" type="wstring" dir="in">
|
---|
12349 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
12350 | </param>
|
---|
12351 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
12352 | <desc>Whether to include the descriptions.</desc>
|
---|
12353 | </param>
|
---|
12354 | <param name="stats" type="wstring" dir="out">
|
---|
12355 | <desc>The XML document containing the statistics.</desc>
|
---|
12356 | </param>
|
---|
12357 | </method>
|
---|
12358 |
|
---|
12359 | <attribute name="singlestep" type="boolean">
|
---|
12360 | <desc>Switch for enabling singlestepping.</desc>
|
---|
12361 | </attribute>
|
---|
12362 |
|
---|
12363 | <attribute name="recompileUser" type="boolean">
|
---|
12364 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
12365 | </attribute>
|
---|
12366 |
|
---|
12367 | <attribute name="recompileSupervisor" type="boolean">
|
---|
12368 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
12369 | </attribute>
|
---|
12370 |
|
---|
12371 | <attribute name="PATMEnabled" type="boolean">
|
---|
12372 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
12373 | </attribute>
|
---|
12374 |
|
---|
12375 | <attribute name="CSAMEnabled" type="boolean">
|
---|
12376 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
12377 | </attribute>
|
---|
12378 |
|
---|
12379 | <attribute name="logEnabled" type="boolean">
|
---|
12380 | <desc>Switch for enabling and disabling the debug logger.</desc>
|
---|
12381 | </attribute>
|
---|
12382 |
|
---|
12383 | <attribute name="logFlags" type="wstring" readonly="yes">
|
---|
12384 | <desc>The debug logger flags.</desc>
|
---|
12385 | </attribute>
|
---|
12386 |
|
---|
12387 | <attribute name="logGroups" type="wstring" readonly="yes">
|
---|
12388 | <desc>The debug logger's group settings.</desc>
|
---|
12389 | </attribute>
|
---|
12390 |
|
---|
12391 | <attribute name="logDestinations" type="wstring" readonly="yes">
|
---|
12392 | <desc>The debug logger's destination settings.</desc>
|
---|
12393 | </attribute>
|
---|
12394 |
|
---|
12395 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
12396 | <desc>
|
---|
12397 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
12398 | virtualization extensions.
|
---|
12399 | </desc>
|
---|
12400 | </attribute>
|
---|
12401 |
|
---|
12402 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
|
---|
12403 | <desc>
|
---|
12404 | Flag indicating whether the VM is currently making use of the nested paging
|
---|
12405 | CPU hardware virtualization extension.
|
---|
12406 | </desc>
|
---|
12407 | </attribute>
|
---|
12408 |
|
---|
12409 | <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
|
---|
12410 | <desc>
|
---|
12411 | Flag indicating whether the VM is currently making use of the VPID
|
---|
12412 | VT-x extension.
|
---|
12413 | </desc>
|
---|
12414 | </attribute>
|
---|
12415 |
|
---|
12416 | <attribute name="OSName" type="wstring" readonly="yes">
|
---|
12417 | <desc>
|
---|
12418 | Query the guest OS kernel name as detected by the DBGF.
|
---|
12419 |
|
---|
12420 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12421 | in a dot release.
|
---|
12422 | </desc>
|
---|
12423 | </attribute>
|
---|
12424 |
|
---|
12425 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
12426 | <desc>
|
---|
12427 | Query the guest OS kernel version string as detected by the DBGF.
|
---|
12428 |
|
---|
12429 | This feature is not implemented in the 4.0.0 release but may show up
|
---|
12430 | in a dot release.
|
---|
12431 | </desc>
|
---|
12432 | </attribute>
|
---|
12433 |
|
---|
12434 | <attribute name="PAEEnabled" type="boolean" readonly="yes">
|
---|
12435 | <desc>
|
---|
12436 | Flag indicating whether the VM is currently making use of the Physical
|
---|
12437 | Address Extension CPU feature.
|
---|
12438 | </desc>
|
---|
12439 | </attribute>
|
---|
12440 |
|
---|
12441 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
12442 | <desc>
|
---|
12443 | The rate at which the virtual time runs expressed as a percentage.
|
---|
12444 | The accepted range is 2% to 20000%.
|
---|
12445 | </desc>
|
---|
12446 | </attribute>
|
---|
12447 |
|
---|
12448 | <attribute name="VM" type="long long" readonly="yes">
|
---|
12449 | <desc>
|
---|
12450 | Gets the VM handle. This is only for internal use while
|
---|
12451 | we carve the details of this interface.
|
---|
12452 | </desc>
|
---|
12453 | </attribute>
|
---|
12454 |
|
---|
12455 | </interface>
|
---|
12456 |
|
---|
12457 | <!--
|
---|
12458 | // IUSBController
|
---|
12459 | /////////////////////////////////////////////////////////////////////////
|
---|
12460 | -->
|
---|
12461 |
|
---|
12462 | <interface
|
---|
12463 | name="IUSBController" extends="$unknown"
|
---|
12464 | uuid="6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"
|
---|
12465 | wsmap="managed"
|
---|
12466 | >
|
---|
12467 | <attribute name="enabled" type="boolean">
|
---|
12468 | <desc>
|
---|
12469 | Flag whether the USB controller is present in the
|
---|
12470 | guest system. If disabled, the virtual guest hardware will
|
---|
12471 | not contain any USB controller. Can only be changed when
|
---|
12472 | the VM is powered off.
|
---|
12473 | </desc>
|
---|
12474 | </attribute>
|
---|
12475 |
|
---|
12476 | <attribute name="enabledEhci" type="boolean">
|
---|
12477 | <desc>
|
---|
12478 | Flag whether the USB EHCI controller is present in the
|
---|
12479 | guest system. If disabled, the virtual guest hardware will
|
---|
12480 | not contain a USB EHCI controller. Can only be changed when
|
---|
12481 | the VM is powered off.
|
---|
12482 | </desc>
|
---|
12483 | </attribute>
|
---|
12484 |
|
---|
12485 | <attribute name="proxyAvailable" type="boolean" readonly="yes">
|
---|
12486 | <desc>
|
---|
12487 | Flag whether there is an USB proxy available.
|
---|
12488 | </desc>
|
---|
12489 | </attribute>
|
---|
12490 |
|
---|
12491 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
12492 | <desc>
|
---|
12493 | USB standard version which the controller implements.
|
---|
12494 | This is a BCD which means that the major version is in the
|
---|
12495 | high byte and minor version is in the low byte.
|
---|
12496 | </desc>
|
---|
12497 | </attribute>
|
---|
12498 |
|
---|
12499 | <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
12500 | <desc>
|
---|
12501 | List of USB device filters associated with the machine.
|
---|
12502 |
|
---|
12503 | If the machine is currently running, these filters are activated
|
---|
12504 | every time a new (supported) USB device is attached to the host
|
---|
12505 | computer that was not ignored by global filters
|
---|
12506 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
12507 |
|
---|
12508 | These filters are also activated when the machine is powered up.
|
---|
12509 | They are run against a list of all currently available USB
|
---|
12510 | devices (in states
|
---|
12511 | <link to="USBDeviceState_Available"/>,
|
---|
12512 | <link to="USBDeviceState_Busy"/>,
|
---|
12513 | <link to="USBDeviceState_Held"/>) that were not previously
|
---|
12514 | ignored by global filters.
|
---|
12515 |
|
---|
12516 | If at least one filter matches the USB device in question, this
|
---|
12517 | device is automatically captured (attached to) the virtual USB
|
---|
12518 | controller of this machine.
|
---|
12519 |
|
---|
12520 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
12521 | </desc>
|
---|
12522 | </attribute>
|
---|
12523 |
|
---|
12524 | <method name="createDeviceFilter">
|
---|
12525 | <desc>
|
---|
12526 | Creates a new USB device filter. All attributes except
|
---|
12527 | the filter name are set to empty (any match),
|
---|
12528 | <i>active</i> is @c false (the filter is not active).
|
---|
12529 |
|
---|
12530 | The created filter can then be added to the list of filters using
|
---|
12531 | <link to="#insertDeviceFilter"/>.
|
---|
12532 |
|
---|
12533 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12534 | The virtual machine is not mutable.
|
---|
12535 | </result>
|
---|
12536 |
|
---|
12537 | <see>#deviceFilters</see>
|
---|
12538 | </desc>
|
---|
12539 | <param name="name" type="wstring" dir="in">
|
---|
12540 | <desc>
|
---|
12541 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
12542 | for more info.
|
---|
12543 | </desc>
|
---|
12544 | </param>
|
---|
12545 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
12546 | <desc>Created filter object.</desc>
|
---|
12547 | </param>
|
---|
12548 | </method>
|
---|
12549 |
|
---|
12550 | <method name="insertDeviceFilter">
|
---|
12551 | <desc>
|
---|
12552 | Inserts the given USB device to the specified position
|
---|
12553 | in the list of filters.
|
---|
12554 |
|
---|
12555 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
12556 | position is equal to or greater than the number of elements in
|
---|
12557 | the list, the filter is added to the end of the collection.
|
---|
12558 |
|
---|
12559 | <note>
|
---|
12560 | Duplicates are not allowed, so an attempt to insert a
|
---|
12561 | filter that is already in the collection, will return an
|
---|
12562 | error.
|
---|
12563 | </note>
|
---|
12564 |
|
---|
12565 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12566 | Virtual machine is not mutable.
|
---|
12567 | </result>
|
---|
12568 | <result name="E_INVALIDARG">
|
---|
12569 | USB device filter not created within this VirtualBox instance.
|
---|
12570 | </result>
|
---|
12571 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12572 | USB device filter already in list.
|
---|
12573 | </result>
|
---|
12574 |
|
---|
12575 | <see>#deviceFilters</see>
|
---|
12576 | </desc>
|
---|
12577 | <param name="position" type="unsigned long" dir="in">
|
---|
12578 | <desc>Position to insert the filter to.</desc>
|
---|
12579 | </param>
|
---|
12580 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
12581 | <desc>USB device filter to insert.</desc>
|
---|
12582 | </param>
|
---|
12583 | </method>
|
---|
12584 |
|
---|
12585 | <method name="removeDeviceFilter">
|
---|
12586 | <desc>
|
---|
12587 | Removes a USB device filter from the specified position in the
|
---|
12588 | list of filters.
|
---|
12589 |
|
---|
12590 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
12591 | position equal to or greater than the number of elements in
|
---|
12592 | the list will produce an error.
|
---|
12593 |
|
---|
12594 | <see>#deviceFilters</see>
|
---|
12595 |
|
---|
12596 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12597 | Virtual machine is not mutable.
|
---|
12598 | </result>
|
---|
12599 | <result name="E_INVALIDARG">
|
---|
12600 | USB device filter list empty or invalid @a position.
|
---|
12601 | </result>
|
---|
12602 |
|
---|
12603 | </desc>
|
---|
12604 | <param name="position" type="unsigned long" dir="in">
|
---|
12605 | <desc>Position to remove the filter from.</desc>
|
---|
12606 | </param>
|
---|
12607 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
12608 | <desc>Removed USB device filter.</desc>
|
---|
12609 | </param>
|
---|
12610 | </method>
|
---|
12611 |
|
---|
12612 | </interface>
|
---|
12613 |
|
---|
12614 |
|
---|
12615 | <!--
|
---|
12616 | // IUSBDevice
|
---|
12617 | /////////////////////////////////////////////////////////////////////////
|
---|
12618 | -->
|
---|
12619 |
|
---|
12620 | <interface
|
---|
12621 | name="IUSBDevice" extends="$unknown"
|
---|
12622 | uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
|
---|
12623 | wsmap="managed"
|
---|
12624 | >
|
---|
12625 | <desc>
|
---|
12626 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
12627 | virtual machine.
|
---|
12628 |
|
---|
12629 | A collection of objects implementing this interface is stored in the
|
---|
12630 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
12631 | attached to a running virtual machine's USB controller.
|
---|
12632 | </desc>
|
---|
12633 |
|
---|
12634 | <attribute name="id" type="uuid" mod="string" readonly="yes">
|
---|
12635 | <desc>
|
---|
12636 | Unique USB device ID. This ID is built from #vendorId,
|
---|
12637 | #productId, #revision and #serialNumber.
|
---|
12638 | </desc>
|
---|
12639 | </attribute>
|
---|
12640 |
|
---|
12641 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
12642 | <desc>Vendor ID.</desc>
|
---|
12643 | </attribute>
|
---|
12644 |
|
---|
12645 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
12646 | <desc>Product ID.</desc>
|
---|
12647 | </attribute>
|
---|
12648 |
|
---|
12649 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
12650 | <desc>
|
---|
12651 | Product revision number. This is a packed BCD represented as
|
---|
12652 | unsigned short. The high byte is the integer part and the low
|
---|
12653 | byte is the decimal.
|
---|
12654 | </desc>
|
---|
12655 | </attribute>
|
---|
12656 |
|
---|
12657 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
12658 | <desc>Manufacturer string.</desc>
|
---|
12659 | </attribute>
|
---|
12660 |
|
---|
12661 | <attribute name="product" type="wstring" readonly="yes">
|
---|
12662 | <desc>Product string.</desc>
|
---|
12663 | </attribute>
|
---|
12664 |
|
---|
12665 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
12666 | <desc>Serial number string.</desc>
|
---|
12667 | </attribute>
|
---|
12668 |
|
---|
12669 | <attribute name="address" type="wstring" readonly="yes">
|
---|
12670 | <desc>Host specific address of the device.</desc>
|
---|
12671 | </attribute>
|
---|
12672 |
|
---|
12673 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
12674 | <desc>
|
---|
12675 | Host USB port number the device is physically
|
---|
12676 | connected to.
|
---|
12677 | </desc>
|
---|
12678 | </attribute>
|
---|
12679 |
|
---|
12680 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
12681 | <desc>
|
---|
12682 | The major USB version of the device - 1 or 2.
|
---|
12683 | </desc>
|
---|
12684 | </attribute>
|
---|
12685 |
|
---|
12686 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
12687 | <desc>
|
---|
12688 | The major USB version of the host USB port the device is
|
---|
12689 | physically connected to - 1 or 2. For devices not connected to
|
---|
12690 | anything this will have the same value as the version attribute.
|
---|
12691 | </desc>
|
---|
12692 | </attribute>
|
---|
12693 |
|
---|
12694 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
12695 | <desc>
|
---|
12696 | Whether the device is physically connected to a remote VRDE
|
---|
12697 | client or to a local host machine.
|
---|
12698 | </desc>
|
---|
12699 | </attribute>
|
---|
12700 |
|
---|
12701 | </interface>
|
---|
12702 |
|
---|
12703 |
|
---|
12704 | <!--
|
---|
12705 | // IUSBDeviceFilter
|
---|
12706 | /////////////////////////////////////////////////////////////////////////
|
---|
12707 | -->
|
---|
12708 |
|
---|
12709 | <interface
|
---|
12710 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
12711 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
12712 | wsmap="managed"
|
---|
12713 | >
|
---|
12714 | <desc>
|
---|
12715 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
12716 | to perform actions on a group of USB devices.
|
---|
12717 |
|
---|
12718 | This type of filters is used by running virtual machines to
|
---|
12719 | automatically capture selected USB devices once they are physically
|
---|
12720 | attached to the host computer.
|
---|
12721 |
|
---|
12722 | A USB device is matched to the given device filter if and only if all
|
---|
12723 | attributes of the device match the corresponding attributes of the
|
---|
12724 | filter (that is, attributes are joined together using the logical AND
|
---|
12725 | operation). On the other hand, all together, filters in the list of
|
---|
12726 | filters carry the semantics of the logical OR operation. So if it is
|
---|
12727 | desirable to create a match like "this vendor id OR this product id",
|
---|
12728 | one needs to create two filters and specify "any match" (see below)
|
---|
12729 | for unused attributes.
|
---|
12730 |
|
---|
12731 | All filter attributes used for matching are strings. Each string
|
---|
12732 | is an expression representing a set of values of the corresponding
|
---|
12733 | device attribute, that will match the given filter. Currently, the
|
---|
12734 | following filtering expressions are supported:
|
---|
12735 |
|
---|
12736 | <ul>
|
---|
12737 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
12738 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
12739 | The format of the string is:
|
---|
12740 |
|
---|
12741 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
12742 |
|
---|
12743 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
12744 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
12745 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
12746 | is omitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
12747 | is assumed; if <tt>n</tt> is omitted after a dash, the maximum
|
---|
12748 | possible integer is assumed.
|
---|
12749 | </li>
|
---|
12750 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
12751 | boolean device attributes. The format of the string is:
|
---|
12752 |
|
---|
12753 | <tt>true|false|yes|no|0|1</tt>
|
---|
12754 |
|
---|
12755 | </li>
|
---|
12756 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
12757 | device attribute. Any string that doesn't start with <tt>int:</tt>
|
---|
12758 | represents the exact match. String device attributes are compared to
|
---|
12759 | this string including case of symbols. Integer attributes are first
|
---|
12760 | converted to a string (see individual filter attributes) and then
|
---|
12761 | compared ignoring case.
|
---|
12762 |
|
---|
12763 | </li>
|
---|
12764 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
12765 | will match the given filter. An empty or @c null string is
|
---|
12766 | used to construct this type of filtering expressions.
|
---|
12767 |
|
---|
12768 | </li>
|
---|
12769 | </ul>
|
---|
12770 |
|
---|
12771 | <note>
|
---|
12772 | On the Windows host platform, interval filters are not currently
|
---|
12773 | available. Also all string filter attributes
|
---|
12774 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
12775 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
12776 | <i>any match</i> no matter what string expression is specified.
|
---|
12777 | </note>
|
---|
12778 |
|
---|
12779 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
12780 | </desc>
|
---|
12781 |
|
---|
12782 | <attribute name="name" type="wstring">
|
---|
12783 | <desc>
|
---|
12784 | Visible name for this filter.
|
---|
12785 | This name is used to visually distinguish one filter from another,
|
---|
12786 | so it can neither be @c null nor an empty string.
|
---|
12787 | </desc>
|
---|
12788 | </attribute>
|
---|
12789 |
|
---|
12790 | <attribute name="active" type="boolean">
|
---|
12791 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
12792 | </attribute>
|
---|
12793 |
|
---|
12794 | <attribute name="vendorId" type="wstring">
|
---|
12795 | <desc>
|
---|
12796 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
12797 | The string representation for the <i>exact matching</i>
|
---|
12798 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
12799 | (including leading zeroes).
|
---|
12800 | </desc>
|
---|
12801 | </attribute>
|
---|
12802 |
|
---|
12803 | <attribute name="productId" type="wstring">
|
---|
12804 | <desc>
|
---|
12805 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
12806 | The string representation for the <i>exact matching</i>
|
---|
12807 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
12808 | (including leading zeroes).
|
---|
12809 | </desc>
|
---|
12810 | </attribute>
|
---|
12811 |
|
---|
12812 | <attribute name="revision" type="wstring">
|
---|
12813 | <desc>
|
---|
12814 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
12815 | filter. The string representation for the <i>exact matching</i>
|
---|
12816 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
12817 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
12818 | decimal digit of its fractional part (including leading and
|
---|
12819 | trailing zeros).
|
---|
12820 | Note that for interval filters, it's best to use the hexadecimal
|
---|
12821 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
12822 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
12823 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
12824 | </desc>
|
---|
12825 | </attribute>
|
---|
12826 |
|
---|
12827 | <attribute name="manufacturer" type="wstring">
|
---|
12828 | <desc>
|
---|
12829 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
12830 | </desc>
|
---|
12831 | </attribute>
|
---|
12832 |
|
---|
12833 | <attribute name="product" type="wstring">
|
---|
12834 | <desc>
|
---|
12835 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
12836 | </desc>
|
---|
12837 | </attribute>
|
---|
12838 |
|
---|
12839 | <attribute name="serialNumber" type="wstring">
|
---|
12840 | <desc>
|
---|
12841 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
12842 | </desc>
|
---|
12843 | </attribute>
|
---|
12844 |
|
---|
12845 | <attribute name="port" type="wstring">
|
---|
12846 | <desc>
|
---|
12847 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
12848 | </desc>
|
---|
12849 | </attribute>
|
---|
12850 |
|
---|
12851 | <attribute name="remote" type="wstring">
|
---|
12852 | <desc>
|
---|
12853 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
12854 | <note>
|
---|
12855 | This filter makes sense only for machine USB filters,
|
---|
12856 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
12857 | </note>
|
---|
12858 | </desc>
|
---|
12859 | </attribute>
|
---|
12860 |
|
---|
12861 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
12862 | <desc>
|
---|
12863 | This is an advanced option for hiding one or more USB interfaces
|
---|
12864 | from the guest. The value is a bit mask where the bits that are set
|
---|
12865 | means the corresponding USB interface should be hidden, masked off
|
---|
12866 | if you like.
|
---|
12867 | This feature only works on Linux hosts.
|
---|
12868 | </desc>
|
---|
12869 | </attribute>
|
---|
12870 |
|
---|
12871 | </interface>
|
---|
12872 |
|
---|
12873 |
|
---|
12874 | <!--
|
---|
12875 | // IHostUSBDevice
|
---|
12876 | /////////////////////////////////////////////////////////////////////////
|
---|
12877 | -->
|
---|
12878 |
|
---|
12879 | <enum
|
---|
12880 | name="USBDeviceState"
|
---|
12881 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
12882 | >
|
---|
12883 | <desc>
|
---|
12884 | USB device state. This enumeration represents all possible states
|
---|
12885 | of the USB device physically attached to the host computer regarding
|
---|
12886 | its state on the host computer and availability to guest computers
|
---|
12887 | (all currently running virtual machines).
|
---|
12888 |
|
---|
12889 | Once a supported USB device is attached to the host, global USB
|
---|
12890 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
12891 | either ignore the device, or put it to USBDeviceState_Held state, or do
|
---|
12892 | nothing. Unless the device is ignored by global filters, filters of all
|
---|
12893 | currently running guests (<link to="IUSBController::deviceFilters"/>) are
|
---|
12894 | activated that can put it to USBDeviceState_Captured state.
|
---|
12895 |
|
---|
12896 | If the device was ignored by global filters, or didn't match
|
---|
12897 | any filters at all (including guest ones), it is handled by the host
|
---|
12898 | in a normal way. In this case, the device state is determined by
|
---|
12899 | the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
|
---|
12900 | or USBDeviceState_Available, depending on the current device usage.
|
---|
12901 |
|
---|
12902 | Besides auto-capturing based on filters, the device can be manually
|
---|
12903 | captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
|
---|
12904 | state is USBDeviceState_Busy, USBDeviceState_Available or
|
---|
12905 | USBDeviceState_Held.
|
---|
12906 |
|
---|
12907 | <note>
|
---|
12908 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
12909 | states USBDeviceState_Busy and USBDeviceState_Unavailable are applicable
|
---|
12910 | only to the Linux version of the product. This also means that (<link
|
---|
12911 | to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
|
---|
12912 | device state is USBDeviceState_Held.
|
---|
12913 | </note>
|
---|
12914 |
|
---|
12915 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
12916 | </desc>
|
---|
12917 |
|
---|
12918 | <const name="NotSupported" value="0">
|
---|
12919 | <desc>
|
---|
12920 | Not supported by the VirtualBox server, not available to guests.
|
---|
12921 | </desc>
|
---|
12922 | </const>
|
---|
12923 | <const name="Unavailable" value="1">
|
---|
12924 | <desc>
|
---|
12925 | Being used by the host computer exclusively,
|
---|
12926 | not available to guests.
|
---|
12927 | </desc>
|
---|
12928 | </const>
|
---|
12929 | <const name="Busy" value="2">
|
---|
12930 | <desc>
|
---|
12931 | Being used by the host computer, potentially available to guests.
|
---|
12932 | </desc>
|
---|
12933 | </const>
|
---|
12934 | <const name="Available" value="3">
|
---|
12935 | <desc>
|
---|
12936 | Not used by the host computer, available to guests (the host computer
|
---|
12937 | can also start using the device at any time).
|
---|
12938 | </desc>
|
---|
12939 | </const>
|
---|
12940 | <const name="Held" value="4">
|
---|
12941 | <desc>
|
---|
12942 | Held by the VirtualBox server (ignored by the host computer),
|
---|
12943 | available to guests.
|
---|
12944 | </desc>
|
---|
12945 | </const>
|
---|
12946 | <const name="Captured" value="5">
|
---|
12947 | <desc>
|
---|
12948 | Captured by one of the guest computers, not available
|
---|
12949 | to anybody else.
|
---|
12950 | </desc>
|
---|
12951 | </const>
|
---|
12952 | </enum>
|
---|
12953 |
|
---|
12954 | <interface
|
---|
12955 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
12956 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
12957 | wsmap="managed"
|
---|
12958 | >
|
---|
12959 | <desc>
|
---|
12960 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
12961 | to the host computer.
|
---|
12962 |
|
---|
12963 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
12964 | <link to="#state"/> property that holds the current state of the USB
|
---|
12965 | device.
|
---|
12966 |
|
---|
12967 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
12968 | </desc>
|
---|
12969 |
|
---|
12970 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
12971 | <desc>
|
---|
12972 | Current state of the device.
|
---|
12973 | </desc>
|
---|
12974 | </attribute>
|
---|
12975 |
|
---|
12976 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
12977 |
|
---|
12978 | </interface>
|
---|
12979 |
|
---|
12980 |
|
---|
12981 | <!--
|
---|
12982 | // IHostUSBDeviceFilter
|
---|
12983 | /////////////////////////////////////////////////////////////////////////
|
---|
12984 | -->
|
---|
12985 |
|
---|
12986 | <enum
|
---|
12987 | name="USBDeviceFilterAction"
|
---|
12988 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
12989 | >
|
---|
12990 | <desc>
|
---|
12991 | Actions for host USB device filters.
|
---|
12992 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
12993 | </desc>
|
---|
12994 |
|
---|
12995 | <const name="Null" value="0">
|
---|
12996 | <desc>Null value (never used by the API).</desc>
|
---|
12997 | </const>
|
---|
12998 | <const name="Ignore" value="1">
|
---|
12999 | <desc>Ignore the matched USB device.</desc>
|
---|
13000 | </const>
|
---|
13001 | <const name="Hold" value="2">
|
---|
13002 | <desc>Hold the matched USB device.</desc>
|
---|
13003 | </const>
|
---|
13004 | </enum>
|
---|
13005 |
|
---|
13006 | <interface
|
---|
13007 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
13008 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
13009 | wsmap="managed"
|
---|
13010 | >
|
---|
13011 | <desc>
|
---|
13012 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
13013 | physical USB device used by the host computer. Used indirectly in
|
---|
13014 | <link to="IHost::USBDeviceFilters"/>.
|
---|
13015 |
|
---|
13016 | Using filters of this type, the host computer determines the initial
|
---|
13017 | state of the USB device after it is physically attached to the
|
---|
13018 | host's USB controller.
|
---|
13019 |
|
---|
13020 | <note>
|
---|
13021 | The <link to="IUSBDeviceFilter::remote"/> attribute is ignored by this type of
|
---|
13022 | filters, because it makes sense only for
|
---|
13023 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
13024 | </note>
|
---|
13025 |
|
---|
13026 | <see>IHost::USBDeviceFilters</see>
|
---|
13027 | </desc>
|
---|
13028 |
|
---|
13029 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
13030 | <desc>
|
---|
13031 | Action performed by the host when an attached USB device
|
---|
13032 | matches this filter.
|
---|
13033 | </desc>
|
---|
13034 | </attribute>
|
---|
13035 |
|
---|
13036 | </interface>
|
---|
13037 |
|
---|
13038 | <!--
|
---|
13039 | // IAudioAdapter
|
---|
13040 | /////////////////////////////////////////////////////////////////////////
|
---|
13041 | -->
|
---|
13042 |
|
---|
13043 | <enum
|
---|
13044 | name="AudioDriverType"
|
---|
13045 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
13046 | >
|
---|
13047 | <desc>
|
---|
13048 | Host audio driver type.
|
---|
13049 | </desc>
|
---|
13050 |
|
---|
13051 | <const name="Null" value="0">
|
---|
13052 | <desc>Null value, also means "dummy audio driver".</desc>
|
---|
13053 | </const>
|
---|
13054 | <const name="WinMM" value="1">
|
---|
13055 | <desc>Windows multimedia (Windows hosts only).</desc>
|
---|
13056 | </const>
|
---|
13057 | <const name="OSS" value="2">
|
---|
13058 | <desc>Open Sound System (Linux hosts only).</desc>
|
---|
13059 | </const>
|
---|
13060 | <const name="ALSA" value="3">
|
---|
13061 | <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
|
---|
13062 | </const>
|
---|
13063 | <const name="DirectSound" value="4">
|
---|
13064 | <desc>DirectSound (Windows hosts only).</desc>
|
---|
13065 | </const>
|
---|
13066 | <const name="CoreAudio" value="5">
|
---|
13067 | <desc>CoreAudio (Mac hosts only).</desc>
|
---|
13068 | </const>
|
---|
13069 | <const name="MMPM" value="6">
|
---|
13070 | <desc>Reserved for historical reasons.</desc>
|
---|
13071 | </const>
|
---|
13072 | <const name="Pulse" value="7">
|
---|
13073 | <desc>PulseAudio (Linux hosts only).</desc>
|
---|
13074 | </const>
|
---|
13075 | <const name="SolAudio" value="8">
|
---|
13076 | <desc>Solaris audio (Solaris hosts only).</desc>
|
---|
13077 | </const>
|
---|
13078 | </enum>
|
---|
13079 |
|
---|
13080 | <enum
|
---|
13081 | name="AudioControllerType"
|
---|
13082 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
13083 | >
|
---|
13084 | <desc>
|
---|
13085 | Virtual audio controller type.
|
---|
13086 | </desc>
|
---|
13087 |
|
---|
13088 | <const name="AC97" value="0"/>
|
---|
13089 | <const name="SB16" value="1"/>
|
---|
13090 | <const name="HDA" value="2"/>
|
---|
13091 | </enum>
|
---|
13092 |
|
---|
13093 | <interface
|
---|
13094 | name="IAudioAdapter" extends="$unknown"
|
---|
13095 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
13096 | wsmap="managed"
|
---|
13097 | >
|
---|
13098 | <desc>
|
---|
13099 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
13100 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
13101 | </desc>
|
---|
13102 | <attribute name="enabled" type="boolean">
|
---|
13103 | <desc>
|
---|
13104 | Flag whether the audio adapter is present in the
|
---|
13105 | guest system. If disabled, the virtual guest hardware will
|
---|
13106 | not contain any audio adapter. Can only be changed when
|
---|
13107 | the VM is not running.
|
---|
13108 | </desc>
|
---|
13109 | </attribute>
|
---|
13110 | <attribute name="audioController" type="AudioControllerType">
|
---|
13111 | <desc>
|
---|
13112 | The audio hardware we emulate.
|
---|
13113 | </desc>
|
---|
13114 | </attribute>
|
---|
13115 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
13116 | <desc>
|
---|
13117 | Audio driver the adapter is connected to. This setting
|
---|
13118 | can only be changed when the VM is not running.
|
---|
13119 | </desc>
|
---|
13120 | </attribute>
|
---|
13121 | </interface>
|
---|
13122 |
|
---|
13123 | <enum
|
---|
13124 | name="AuthType"
|
---|
13125 | uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d"
|
---|
13126 | >
|
---|
13127 | <desc>
|
---|
13128 | VirtualBox authentication type.
|
---|
13129 | </desc>
|
---|
13130 |
|
---|
13131 | <const name="Null" value="0">
|
---|
13132 | <desc>Null value, also means "no authentication".</desc>
|
---|
13133 | </const>
|
---|
13134 | <const name="External" value="1"/>
|
---|
13135 | <const name="Guest" value="2"/>
|
---|
13136 | </enum>
|
---|
13137 |
|
---|
13138 | <!--
|
---|
13139 | // IVRDEServer
|
---|
13140 | /////////////////////////////////////////////////////////////////////////
|
---|
13141 | -->
|
---|
13142 |
|
---|
13143 | <interface
|
---|
13144 | name="IVRDEServer" extends="$unknown"
|
---|
13145 | uuid="be24e0db-e1d6-4d58-b85b-21053d1511b4"
|
---|
13146 | wsmap="managed"
|
---|
13147 | >
|
---|
13148 | <attribute name="enabled" type="boolean">
|
---|
13149 | <desc>VRDE server status.</desc>
|
---|
13150 | </attribute>
|
---|
13151 |
|
---|
13152 | <attribute name="authType" type="AuthType">
|
---|
13153 | <desc>VRDE authentication method.</desc>
|
---|
13154 | </attribute>
|
---|
13155 |
|
---|
13156 | <attribute name="authTimeout" type="unsigned long">
|
---|
13157 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
13158 | </attribute>
|
---|
13159 |
|
---|
13160 | <attribute name="allowMultiConnection" type="boolean">
|
---|
13161 | <desc>
|
---|
13162 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
13163 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
13164 | </desc>
|
---|
13165 | </attribute>
|
---|
13166 |
|
---|
13167 | <attribute name="reuseSingleConnection" type="boolean">
|
---|
13168 | <desc>
|
---|
13169 | Flag whether the existing connection must be dropped and a new connection
|
---|
13170 | must be established by the VRDE server, when a new client connects in single
|
---|
13171 | connection mode.
|
---|
13172 | </desc>
|
---|
13173 | </attribute>
|
---|
13174 |
|
---|
13175 | <attribute name="VRDEExtPack" type="wstring">
|
---|
13176 | <desc>
|
---|
13177 | The name of Extension Pack providing VRDE for this VM. Overrides
|
---|
13178 | <link to="ISystemProperties::defaultVRDEExtPack"/>.
|
---|
13179 | </desc>
|
---|
13180 | </attribute>
|
---|
13181 |
|
---|
13182 | <attribute name="AuthLibrary" type="wstring">
|
---|
13183 | <desc>
|
---|
13184 | Library used for authentication of RDP clients by this VM. Overrides
|
---|
13185 | <link to="ISystemProperties::VRDEAuthLibrary"/>.
|
---|
13186 | </desc>
|
---|
13187 | </attribute>
|
---|
13188 |
|
---|
13189 | <attribute name="VRDEProperties" type="wstring" readonly="yes" safearray="yes">
|
---|
13190 | <desc>
|
---|
13191 | Array of names of properties, which are supported by this VRDE server.
|
---|
13192 | </desc>
|
---|
13193 | </attribute>
|
---|
13194 |
|
---|
13195 | <method name="setVRDEProperty">
|
---|
13196 | <desc>
|
---|
13197 | Sets a VRDE specific property string.
|
---|
13198 |
|
---|
13199 | If you pass @c null or empty string as a key @a value, the given @a key
|
---|
13200 | will be deleted.
|
---|
13201 |
|
---|
13202 | </desc>
|
---|
13203 | <param name="key" type="wstring" dir="in">
|
---|
13204 | <desc>Name of the key to set.</desc>
|
---|
13205 | </param>
|
---|
13206 | <param name="value" type="wstring" dir="in">
|
---|
13207 | <desc>Value to assign to the key.</desc>
|
---|
13208 | </param>
|
---|
13209 | </method>
|
---|
13210 |
|
---|
13211 | <method name="getVRDEProperty">
|
---|
13212 | <desc>
|
---|
13213 | Returns a VRDE specific property string.
|
---|
13214 |
|
---|
13215 | If the requested data @a key does not exist, this function will
|
---|
13216 | succeed and return an empty string in the @a value argument.
|
---|
13217 |
|
---|
13218 | </desc>
|
---|
13219 | <param name="key" type="wstring" dir="in">
|
---|
13220 | <desc>Name of the key to get.</desc>
|
---|
13221 | </param>
|
---|
13222 | <param name="value" type="wstring" dir="return">
|
---|
13223 | <desc>Value of the requested key.</desc>
|
---|
13224 | </param>
|
---|
13225 | </method>
|
---|
13226 |
|
---|
13227 | </interface>
|
---|
13228 |
|
---|
13229 |
|
---|
13230 | <!--
|
---|
13231 | // ISharedFolder
|
---|
13232 | /////////////////////////////////////////////////////////////////////////
|
---|
13233 | -->
|
---|
13234 |
|
---|
13235 | <interface
|
---|
13236 | name="ISharedFolder" extends="$unknown"
|
---|
13237 | uuid="8388da11-b559-4574-a5b7-2bd7acd5cef8"
|
---|
13238 | wsmap="struct"
|
---|
13239 | >
|
---|
13240 | <desc>
|
---|
13241 | The ISharedFolder interface represents a folder in the host computer's
|
---|
13242 | file system accessible from the guest OS running inside a virtual
|
---|
13243 | machine using an associated logical name.
|
---|
13244 |
|
---|
13245 | There are three types of shared folders:
|
---|
13246 | <ul>
|
---|
13247 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
13248 | folders available to all virtual machines.</li>
|
---|
13249 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
13250 | VM-specific shared folders available to the given virtual machine at
|
---|
13251 | startup.</li>
|
---|
13252 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
13253 | VM-specific shared folders created in the session context (for
|
---|
13254 | example, when the virtual machine is running) and automatically
|
---|
13255 | discarded when the session is closed (the VM is powered off).</li>
|
---|
13256 | </ul>
|
---|
13257 |
|
---|
13258 | Logical names of shared folders must be unique within the given scope
|
---|
13259 | (global, permanent or transient). However, they do not need to be unique
|
---|
13260 | across scopes. In this case, the definition of the shared folder in a
|
---|
13261 | more specific scope takes precedence over definitions in all other
|
---|
13262 | scopes. The order of precedence is (more specific to more general):
|
---|
13263 | <ol>
|
---|
13264 | <li>Transient definitions</li>
|
---|
13265 | <li>Permanent definitions</li>
|
---|
13266 | <li>Global definitions</li>
|
---|
13267 | </ol>
|
---|
13268 |
|
---|
13269 | For example, if MyMachine has a shared folder named
|
---|
13270 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
|
---|
13271 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
13272 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
13273 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
13274 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
13275 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
13276 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
13277 | the previous (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
13278 | to <tt>C:\\</tt> if it still exists.
|
---|
13279 |
|
---|
13280 | Note that permanent and transient shared folders of different machines
|
---|
13281 | are in different name spaces, so they don't overlap and don't need to
|
---|
13282 | have unique logical names.
|
---|
13283 |
|
---|
13284 | <note>
|
---|
13285 | Global shared folders are not implemented in the current version of the
|
---|
13286 | product.
|
---|
13287 | </note>
|
---|
13288 | </desc>
|
---|
13289 |
|
---|
13290 | <attribute name="name" type="wstring" readonly="yes">
|
---|
13291 | <desc>Logical name of the shared folder.</desc>
|
---|
13292 | </attribute>
|
---|
13293 |
|
---|
13294 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
13295 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
13296 | </attribute>
|
---|
13297 |
|
---|
13298 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
13299 | <desc>
|
---|
13300 | Whether the folder defined by the host path is currently
|
---|
13301 | accessible or not.
|
---|
13302 | For example, the folder can be inaccessible if it is placed
|
---|
13303 | on the network share that is not available by the time
|
---|
13304 | this property is read.
|
---|
13305 | </desc>
|
---|
13306 | </attribute>
|
---|
13307 |
|
---|
13308 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
13309 | <desc>
|
---|
13310 | Whether the folder defined by the host path is writable or
|
---|
13311 | not.
|
---|
13312 | </desc>
|
---|
13313 | </attribute>
|
---|
13314 |
|
---|
13315 | <attribute name="autoMount" type="boolean" readonly="yes">
|
---|
13316 | <desc>
|
---|
13317 | Whether the folder gets automatically mounted by the guest or not.
|
---|
13318 | </desc>
|
---|
13319 | </attribute>
|
---|
13320 |
|
---|
13321 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
13322 | <desc>
|
---|
13323 | Text message that represents the result of the last accessibility
|
---|
13324 | check.
|
---|
13325 |
|
---|
13326 | Accessibility checks are performed each time the <link to="#accessible"/>
|
---|
13327 | attribute is read. An empty string is returned if the last
|
---|
13328 | accessibility check was successful. A non-empty string indicates a
|
---|
13329 | failure and should normally describe a reason of the failure (for
|
---|
13330 | example, a file read error).
|
---|
13331 | </desc>
|
---|
13332 | </attribute>
|
---|
13333 |
|
---|
13334 | </interface>
|
---|
13335 |
|
---|
13336 | <!--
|
---|
13337 | // ISession
|
---|
13338 | /////////////////////////////////////////////////////////////////////////
|
---|
13339 | -->
|
---|
13340 |
|
---|
13341 | <interface
|
---|
13342 | name="IInternalSessionControl" extends="$unknown"
|
---|
13343 | uuid="a2fbf834-149d-41da-ae52-0dc3b0f032b3"
|
---|
13344 | internal="yes"
|
---|
13345 | wsmap="suppress"
|
---|
13346 | >
|
---|
13347 | <method name="getPID">
|
---|
13348 | <desc>PID of the process that has created this Session object.
|
---|
13349 | </desc>
|
---|
13350 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
13351 | </method>
|
---|
13352 |
|
---|
13353 | <method name="getRemoteConsole">
|
---|
13354 | <desc>
|
---|
13355 | Returns the console object suitable for remote control.
|
---|
13356 |
|
---|
13357 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13358 | Session state prevents operation.
|
---|
13359 | </result>
|
---|
13360 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13361 | Session type prevents operation.
|
---|
13362 | </result>
|
---|
13363 |
|
---|
13364 | </desc>
|
---|
13365 | <param name="console" type="IConsole" dir="return"/>
|
---|
13366 | </method>
|
---|
13367 |
|
---|
13368 | <method name="assignMachine">
|
---|
13369 | <desc>
|
---|
13370 | Assigns the machine object associated with this direct-type
|
---|
13371 | session or informs the session that it will be a remote one
|
---|
13372 | (if @a machine == @c null).
|
---|
13373 |
|
---|
13374 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13375 | Session state prevents operation.
|
---|
13376 | </result>
|
---|
13377 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13378 | Session type prevents operation.
|
---|
13379 | </result>
|
---|
13380 |
|
---|
13381 | </desc>
|
---|
13382 | <param name="machine" type="IMachine" dir="in"/>
|
---|
13383 | </method>
|
---|
13384 |
|
---|
13385 | <method name="assignRemoteMachine">
|
---|
13386 | <desc>
|
---|
13387 | Assigns the machine and the (remote) console object associated with
|
---|
13388 | this remote-type session.
|
---|
13389 |
|
---|
13390 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13391 | Session state prevents operation.
|
---|
13392 | </result>
|
---|
13393 |
|
---|
13394 | </desc>
|
---|
13395 | <param name="machine" type="IMachine" dir="in"/>
|
---|
13396 | <param name="console" type="IConsole" dir="in"/>
|
---|
13397 | </method>
|
---|
13398 |
|
---|
13399 | <method name="updateMachineState">
|
---|
13400 | <desc>
|
---|
13401 | Updates the machine state in the VM process.
|
---|
13402 | Must be called only in certain cases
|
---|
13403 | (see the method implementation).
|
---|
13404 |
|
---|
13405 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13406 | Session state prevents operation.
|
---|
13407 | </result>
|
---|
13408 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13409 | Session type prevents operation.
|
---|
13410 | </result>
|
---|
13411 |
|
---|
13412 | </desc>
|
---|
13413 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
13414 | </method>
|
---|
13415 |
|
---|
13416 | <method name="uninitialize">
|
---|
13417 | <desc>
|
---|
13418 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
13419 | the corresponding remote session when the direct session dies
|
---|
13420 | or gets closed.
|
---|
13421 |
|
---|
13422 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13423 | Session state prevents operation.
|
---|
13424 | </result>
|
---|
13425 |
|
---|
13426 | </desc>
|
---|
13427 | </method>
|
---|
13428 |
|
---|
13429 | <method name="onNetworkAdapterChange">
|
---|
13430 | <desc>
|
---|
13431 | Triggered when settings of a network adapter of the
|
---|
13432 | associated virtual machine have changed.
|
---|
13433 |
|
---|
13434 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13435 | Session state prevents operation.
|
---|
13436 | </result>
|
---|
13437 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13438 | Session type prevents operation.
|
---|
13439 | </result>
|
---|
13440 |
|
---|
13441 | </desc>
|
---|
13442 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
13443 | <param name="changeAdapter" type="boolean" dir="in"/>
|
---|
13444 | </method>
|
---|
13445 |
|
---|
13446 | <method name="onSerialPortChange">
|
---|
13447 | <desc>
|
---|
13448 | Triggered when settings of a serial port of the
|
---|
13449 | associated virtual machine have changed.
|
---|
13450 |
|
---|
13451 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13452 | Session state prevents operation.
|
---|
13453 | </result>
|
---|
13454 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13455 | Session type prevents operation.
|
---|
13456 | </result>
|
---|
13457 |
|
---|
13458 | </desc>
|
---|
13459 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
13460 | </method>
|
---|
13461 |
|
---|
13462 | <method name="onParallelPortChange">
|
---|
13463 | <desc>
|
---|
13464 | Triggered when settings of a parallel port of the
|
---|
13465 | associated virtual machine have changed.
|
---|
13466 |
|
---|
13467 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13468 | Session state prevents operation.
|
---|
13469 | </result>
|
---|
13470 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13471 | Session type prevents operation.
|
---|
13472 | </result>
|
---|
13473 |
|
---|
13474 | </desc>
|
---|
13475 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
13476 | </method>
|
---|
13477 |
|
---|
13478 | <method name="onStorageControllerChange">
|
---|
13479 | <desc>
|
---|
13480 | Triggered when settings of a storage controller of the
|
---|
13481 | associated virtual machine have changed.
|
---|
13482 |
|
---|
13483 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13484 | Session state prevents operation.
|
---|
13485 | </result>
|
---|
13486 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13487 | Session type prevents operation.
|
---|
13488 | </result>
|
---|
13489 |
|
---|
13490 | </desc>
|
---|
13491 | </method>
|
---|
13492 |
|
---|
13493 | <method name="onMediumChange">
|
---|
13494 | <desc>
|
---|
13495 | Triggered when attached media of the
|
---|
13496 | associated virtual machine have changed.
|
---|
13497 |
|
---|
13498 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13499 | Session state prevents operation.
|
---|
13500 | </result>
|
---|
13501 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13502 | Session type prevents operation.
|
---|
13503 | </result>
|
---|
13504 |
|
---|
13505 | </desc>
|
---|
13506 |
|
---|
13507 | <param name="mediumAttachment" type="IMediumAttachment" dir="in"/>
|
---|
13508 | <param name="force" type="boolean" dir="in"/>
|
---|
13509 | </method>
|
---|
13510 |
|
---|
13511 | <method name="onCPUChange">
|
---|
13512 | <desc>
|
---|
13513 | Notification when a CPU changes.
|
---|
13514 | </desc>
|
---|
13515 | <param name="cpu" type="unsigned long" dir="in">
|
---|
13516 | <desc>The CPU which changed</desc>
|
---|
13517 | </param>
|
---|
13518 | <param name="add" type="boolean" dir="in">
|
---|
13519 | <desc>Flag whether the CPU was added or removed</desc>
|
---|
13520 | </param>
|
---|
13521 | </method>
|
---|
13522 |
|
---|
13523 | <method name="onCPUExecutionCapChange">
|
---|
13524 | <desc>
|
---|
13525 | Notification when the CPU execution cap changes.
|
---|
13526 | </desc>
|
---|
13527 | <param name="executionCap" type="unsigned long" dir="in">
|
---|
13528 | <desc>The new CPU execution cap value. (1-100)</desc>
|
---|
13529 | </param>
|
---|
13530 | </method>
|
---|
13531 |
|
---|
13532 | <method name="onVRDEServerChange">
|
---|
13533 | <desc>
|
---|
13534 | Triggered when settings of the VRDE server object of the
|
---|
13535 | associated virtual machine have changed.
|
---|
13536 |
|
---|
13537 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13538 | Session state prevents operation.
|
---|
13539 | </result>
|
---|
13540 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13541 | Session type prevents operation.
|
---|
13542 | </result>
|
---|
13543 |
|
---|
13544 | </desc>
|
---|
13545 | <param name="restart" type="boolean" dir="in">
|
---|
13546 | <desc>Flag whether the server must be restarted</desc>
|
---|
13547 | </param>
|
---|
13548 | </method>
|
---|
13549 |
|
---|
13550 | <method name="onUSBControllerChange">
|
---|
13551 | <desc>
|
---|
13552 | Triggered when settings of the USB controller object of the
|
---|
13553 | associated virtual machine have changed.
|
---|
13554 |
|
---|
13555 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13556 | Session state prevents operation.
|
---|
13557 | </result>
|
---|
13558 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13559 | Session type prevents operation.
|
---|
13560 | </result>
|
---|
13561 |
|
---|
13562 | </desc>
|
---|
13563 | </method>
|
---|
13564 |
|
---|
13565 | <method name="onSharedFolderChange">
|
---|
13566 | <desc>
|
---|
13567 | Triggered when a permanent (global or machine) shared folder has been
|
---|
13568 | created or removed.
|
---|
13569 | <note>
|
---|
13570 | We don't pass shared folder parameters in this notification because
|
---|
13571 | the order in which parallel notifications are delivered is not defined,
|
---|
13572 | therefore it could happen that these parameters were outdated by the
|
---|
13573 | time of processing this notification.
|
---|
13574 | </note>
|
---|
13575 |
|
---|
13576 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13577 | Session state prevents operation.
|
---|
13578 | </result>
|
---|
13579 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13580 | Session type prevents operation.
|
---|
13581 | </result>
|
---|
13582 |
|
---|
13583 | </desc>
|
---|
13584 | <param name="global" type="boolean" dir="in"/>
|
---|
13585 | </method>
|
---|
13586 |
|
---|
13587 | <method name="onUSBDeviceAttach">
|
---|
13588 | <desc>
|
---|
13589 | Triggered when a request to capture a USB device (as a result
|
---|
13590 | of matched USB filters or direct call to
|
---|
13591 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
13592 | A @c null @a error object means success, otherwise it
|
---|
13593 | describes a failure.
|
---|
13594 |
|
---|
13595 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13596 | Session state prevents operation.
|
---|
13597 | </result>
|
---|
13598 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13599 | Session type prevents operation.
|
---|
13600 | </result>
|
---|
13601 |
|
---|
13602 | </desc>
|
---|
13603 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
13604 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
13605 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
13606 | </method>
|
---|
13607 |
|
---|
13608 | <method name="onUSBDeviceDetach">
|
---|
13609 | <desc>
|
---|
13610 | Triggered when a request to release the USB device (as a result
|
---|
13611 | of machine termination or direct call to
|
---|
13612 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
13613 | A @c null @a error object means success, otherwise it
|
---|
13614 | describes a failure.
|
---|
13615 |
|
---|
13616 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13617 | Session state prevents operation.
|
---|
13618 | </result>
|
---|
13619 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13620 | Session type prevents operation.
|
---|
13621 | </result>
|
---|
13622 |
|
---|
13623 | </desc>
|
---|
13624 | <param name="id" type="uuid" mod="string" dir="in"/>
|
---|
13625 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
13626 | </method>
|
---|
13627 |
|
---|
13628 | <method name="onShowWindow">
|
---|
13629 | <desc>
|
---|
13630 | Called by <link to="IMachine::canShowConsoleWindow"/> and by
|
---|
13631 | <link to="IMachine::showConsoleWindow"/> in order to notify
|
---|
13632 | console listeners
|
---|
13633 | <link to="ICanShowWindowEvent"/>
|
---|
13634 | and <link to="IShowWindowEvent"/>.
|
---|
13635 |
|
---|
13636 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13637 | Session type prevents operation.
|
---|
13638 | </result>
|
---|
13639 |
|
---|
13640 | </desc>
|
---|
13641 | <param name="check" type="boolean" dir="in"/>
|
---|
13642 | <param name="canShow" type="boolean" dir="out"/>
|
---|
13643 | <param name="winId" type="long long" dir="out"/>
|
---|
13644 | </method>
|
---|
13645 |
|
---|
13646 | <method name="onBandwidthGroupChange">
|
---|
13647 | <desc>
|
---|
13648 | Notification when one of the bandwidth groups change.
|
---|
13649 | </desc>
|
---|
13650 | <param name="bandwidthGroup" type="IBandwidthGroup" dir="in">
|
---|
13651 | <desc>The bandwidth group which changed.</desc>
|
---|
13652 | </param>
|
---|
13653 | </method>
|
---|
13654 |
|
---|
13655 | <method name="accessGuestProperty">
|
---|
13656 | <desc>
|
---|
13657 | Called by <link to="IMachine::getGuestProperty"/> and by
|
---|
13658 | <link to="IMachine::setGuestProperty"/> in order to read and
|
---|
13659 | modify guest properties.
|
---|
13660 |
|
---|
13661 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13662 | Machine session is not open.
|
---|
13663 | </result>
|
---|
13664 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13665 | Session type is not direct.
|
---|
13666 | </result>
|
---|
13667 |
|
---|
13668 | </desc>
|
---|
13669 | <param name="name" type="wstring" dir="in"/>
|
---|
13670 | <param name="value" type="wstring" dir="in"/>
|
---|
13671 | <param name="flags" type="wstring" dir="in"/>
|
---|
13672 | <param name="isSetter" type="boolean" dir="in"/>
|
---|
13673 | <param name="retValue" type="wstring" dir="out"/>
|
---|
13674 | <param name="retTimestamp" type="long long" dir="out"/>
|
---|
13675 | <param name="retFlags" type="wstring" dir="out"/>
|
---|
13676 | </method>
|
---|
13677 |
|
---|
13678 | <method name="enumerateGuestProperties">
|
---|
13679 | <desc>
|
---|
13680 | Return a list of the guest properties matching a set of patterns along
|
---|
13681 | with their values, time stamps and flags.
|
---|
13682 |
|
---|
13683 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13684 | Machine session is not open.
|
---|
13685 | </result>
|
---|
13686 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13687 | Session type is not direct.
|
---|
13688 | </result>
|
---|
13689 |
|
---|
13690 | </desc>
|
---|
13691 | <param name="patterns" type="wstring" dir="in">
|
---|
13692 | <desc>
|
---|
13693 | The patterns to match the properties against as a comma-separated
|
---|
13694 | string. If this is empty, all properties currently set will be
|
---|
13695 | returned.
|
---|
13696 | </desc>
|
---|
13697 | </param>
|
---|
13698 | <param name="key" type="wstring" dir="out" safearray="yes">
|
---|
13699 | <desc>
|
---|
13700 | The key names of the properties returned.
|
---|
13701 | </desc>
|
---|
13702 | </param>
|
---|
13703 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
13704 | <desc>
|
---|
13705 | The values of the properties returned. The array entries match the
|
---|
13706 | corresponding entries in the @a key array.
|
---|
13707 | </desc>
|
---|
13708 | </param>
|
---|
13709 | <param name="timestamp" type="long long" dir="out" safearray="yes">
|
---|
13710 | <desc>
|
---|
13711 | The time stamps of the properties returned. The array entries match
|
---|
13712 | the corresponding entries in the @a key array.
|
---|
13713 | </desc>
|
---|
13714 | </param>
|
---|
13715 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
13716 | <desc>
|
---|
13717 | The flags of the properties returned. The array entries match the
|
---|
13718 | corresponding entries in the @a key array.
|
---|
13719 | </desc>
|
---|
13720 | </param>
|
---|
13721 | </method>
|
---|
13722 |
|
---|
13723 | <method name="onlineMergeMedium">
|
---|
13724 | <desc>
|
---|
13725 | Triggers online merging of a hard disk. Used internally when deleting
|
---|
13726 | a snapshot while a VM referring to the same hard disk chain is running.
|
---|
13727 |
|
---|
13728 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
13729 | Machine session is not open.
|
---|
13730 | </result>
|
---|
13731 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
13732 | Session type is not direct.
|
---|
13733 | </result>
|
---|
13734 |
|
---|
13735 | </desc>
|
---|
13736 | <param name="mediumAttachment" type="IMediumAttachment" dir="in">
|
---|
13737 | <desc>The medium attachment to identify the medium chain.</desc>
|
---|
13738 | </param>
|
---|
13739 | <param name="sourceIdx" type="unsigned long" dir="in">
|
---|
13740 | <desc>The index of the source image in the chain.
|
---|
13741 | Redundant, but drastically reduces IPC.</desc>
|
---|
13742 | </param>
|
---|
13743 | <param name="targetIdx" type="unsigned long" dir="in">
|
---|
13744 | <desc>The index of the target image in the chain.
|
---|
13745 | Redundant, but drastically reduces IPC.</desc>
|
---|
13746 | </param>
|
---|
13747 | <param name="source" type="IMedium" dir="in">
|
---|
13748 | <desc>Merge source medium.</desc>
|
---|
13749 | </param>
|
---|
13750 | <param name="target" type="IMedium" dir="in">
|
---|
13751 | <desc>Merge target medium.</desc>
|
---|
13752 | </param>
|
---|
13753 | <param name="mergeForward" type="boolean" dir="in">
|
---|
13754 | <desc>Merge direction.</desc>
|
---|
13755 | </param>
|
---|
13756 | <param name="parentForTarget" type="IMedium" dir="in">
|
---|
13757 | <desc>For forward merges: new parent for target medium.</desc>
|
---|
13758 | </param>
|
---|
13759 | <param name="childrenToReparent" type="IMedium" safearray="yes" dir="in">
|
---|
13760 | <desc>For backward merges: list of media which need their parent UUID
|
---|
13761 | updated.</desc>
|
---|
13762 | </param>
|
---|
13763 | <param name="progress" type="IProgress" dir="in">
|
---|
13764 | <desc>
|
---|
13765 | Progress object for this operation.
|
---|
13766 | </desc>
|
---|
13767 | </param>
|
---|
13768 | </method>
|
---|
13769 |
|
---|
13770 | </interface>
|
---|
13771 |
|
---|
13772 | <interface
|
---|
13773 | name="ISession" extends="$unknown"
|
---|
13774 | uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
|
---|
13775 | wsmap="managed"
|
---|
13776 | >
|
---|
13777 | <desc>
|
---|
13778 | The ISession interface represents a client process and allows for locking
|
---|
13779 | virtual machines (represented by IMachine objects) to prevent conflicting
|
---|
13780 | changes to the machine.
|
---|
13781 |
|
---|
13782 | Any caller wishing to manipulate a virtual machine needs to create a session
|
---|
13783 | object first, which lives in its own process space. Such session objects are
|
---|
13784 | then associated with <link to="IMachine" /> objects living in the VirtualBox
|
---|
13785 | server process to coordinate such changes.
|
---|
13786 |
|
---|
13787 | There are two typical scenarios in which sessions are used:
|
---|
13788 |
|
---|
13789 | <ul>
|
---|
13790 | <li>To alter machine settings or control a running virtual machine, one
|
---|
13791 | needs to lock a machine for a given session (client process) by calling
|
---|
13792 | <link to="IMachine::lockMachine"/>.
|
---|
13793 |
|
---|
13794 | Whereas multiple sessions may control a running virtual machine, only
|
---|
13795 | one process can obtain a write lock on the machine to prevent conflicting
|
---|
13796 | changes. A write lock is also needed if a process wants to actually run a
|
---|
13797 | virtual machine in its own context, such as the VirtualBox GUI or
|
---|
13798 | VBoxHeadless front-ends. They must also lock a machine for their own
|
---|
13799 | sessions before they are allowed to power up the virtual machine.
|
---|
13800 |
|
---|
13801 | As a result, no machine settings can be altered while another process is
|
---|
13802 | already using it, either because that process is modifying machine settings
|
---|
13803 | or because the machine is running.
|
---|
13804 | </li>
|
---|
13805 | <li>
|
---|
13806 | To start a VM using one of the existing VirtualBox front-ends (e.g. the
|
---|
13807 | VirtualBox GUI or VBoxHeadless), one would use
|
---|
13808 | <link to="IMachine::launchVMProcess"/>, which also takes a session object
|
---|
13809 | as its first parameter. This session then identifies the caller and lets the
|
---|
13810 | caller control the started machine (for example, pause machine execution or
|
---|
13811 | power it down) as well as be notified about machine execution state changes.
|
---|
13812 | </li>
|
---|
13813 | </ul>
|
---|
13814 |
|
---|
13815 | How sessions objects are created in a client process depends on whether you use
|
---|
13816 | the Main API via COM or via the webservice:
|
---|
13817 |
|
---|
13818 | <ul>
|
---|
13819 | <li>When using the COM API directly, an object of the Session class from the
|
---|
13820 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
13821 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
13822 | This object will then act as a local session object in further calls to open
|
---|
13823 | a session.
|
---|
13824 | </li>
|
---|
13825 |
|
---|
13826 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
13827 | a session object automatically whenever <link to="IWebsessionManager::logon" />
|
---|
13828 | is called. A managed object reference to that session object can be retrieved by
|
---|
13829 | calling <link to="IWebsessionManager::getSessionObject" />.
|
---|
13830 | </li>
|
---|
13831 | </ul>
|
---|
13832 | </desc>
|
---|
13833 |
|
---|
13834 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
13835 | <desc>Current state of this session.</desc>
|
---|
13836 | </attribute>
|
---|
13837 |
|
---|
13838 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
13839 | <desc>
|
---|
13840 | Type of this session. The value of this attribute is valid only
|
---|
13841 | if the session currently has a machine locked (i.e. its
|
---|
13842 | <link to="#state" /> is Locked), otherwise an error will be returned.
|
---|
13843 | </desc>
|
---|
13844 | </attribute>
|
---|
13845 |
|
---|
13846 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
13847 | <desc>Machine object associated with this session.</desc>
|
---|
13848 | </attribute>
|
---|
13849 |
|
---|
13850 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
13851 | <desc>Console object associated with this session.</desc>
|
---|
13852 | </attribute>
|
---|
13853 |
|
---|
13854 | <method name="unlockMachine">
|
---|
13855 | <desc>
|
---|
13856 | Unlocks a machine that was previously locked for the current session.
|
---|
13857 |
|
---|
13858 | Calling this method is required every time a machine has been locked
|
---|
13859 | for a particular session using the <link to="IMachine::launchVMProcess" />
|
---|
13860 | or <link to="IMachine::lockMachine" /> calls. Otherwise the state of
|
---|
13861 | the machine will be set to <link to="MachineState_Aborted" /> on the
|
---|
13862 | server, and changes made to the machine settings will be lost.
|
---|
13863 |
|
---|
13864 | Generally, it is recommended to unlock all machines explicitly
|
---|
13865 | before terminating the application (regardless of the reason for
|
---|
13866 | the termination).
|
---|
13867 |
|
---|
13868 | <note>
|
---|
13869 | Do not expect the session state (<link to="ISession::state" />
|
---|
13870 | to return to "Unlocked" immediately after you invoke this method,
|
---|
13871 | particularly if you have started a new VM process. The session
|
---|
13872 | state will automatically return to "Unlocked" once the VM is no
|
---|
13873 | longer executing, which can of course take a very long time.
|
---|
13874 | </note>
|
---|
13875 |
|
---|
13876 | <result name="E_UNEXPECTED">
|
---|
13877 | Session is not locked.
|
---|
13878 | </result>
|
---|
13879 |
|
---|
13880 | </desc>
|
---|
13881 | </method>
|
---|
13882 |
|
---|
13883 | </interface>
|
---|
13884 |
|
---|
13885 | <!--
|
---|
13886 | // IStorageController
|
---|
13887 | /////////////////////////////////////////////////////////////////////////
|
---|
13888 | -->
|
---|
13889 |
|
---|
13890 | <enum
|
---|
13891 | name="StorageBus"
|
---|
13892 | uuid="eee67ab3-668d-4ef5-91e0-7025fe4a0d7a"
|
---|
13893 | >
|
---|
13894 | <desc>
|
---|
13895 | The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy);
|
---|
13896 | see <link to="IStorageController::bus" />.
|
---|
13897 | </desc>
|
---|
13898 | <const name="Null" value="0">
|
---|
13899 | <desc>@c null value. Never used by the API.</desc>
|
---|
13900 | </const>
|
---|
13901 | <const name="IDE" value="1"/>
|
---|
13902 | <const name="SATA" value="2"/>
|
---|
13903 | <const name="SCSI" value="3"/>
|
---|
13904 | <const name="Floppy" value="4"/>
|
---|
13905 | <const name="SAS" value="5"/>
|
---|
13906 | </enum>
|
---|
13907 |
|
---|
13908 | <enum
|
---|
13909 | name="StorageControllerType"
|
---|
13910 | uuid="8a412b8a-f43e-4456-bd37-b474f0879a58"
|
---|
13911 | >
|
---|
13912 | <desc>
|
---|
13913 | The exact variant of storage controller hardware presented
|
---|
13914 | to the guest; see <link to="IStorageController::controllerType" />.
|
---|
13915 | </desc>
|
---|
13916 |
|
---|
13917 | <const name="Null" value="0">
|
---|
13918 | <desc>@c null value. Never used by the API.</desc>
|
---|
13919 | </const>
|
---|
13920 | <const name="LsiLogic" value="1">
|
---|
13921 | <desc>A SCSI controller of the LsiLogic variant.</desc>
|
---|
13922 | </const>
|
---|
13923 | <const name="BusLogic" value="2">
|
---|
13924 | <desc>A SCSI controller of the BusLogic variant.</desc>
|
---|
13925 | </const>
|
---|
13926 | <const name="IntelAhci" value="3">
|
---|
13927 | <desc>An Intel AHCI SATA controller; this is the only variant for SATA.</desc>
|
---|
13928 | </const>
|
---|
13929 | <const name="PIIX3" value="4">
|
---|
13930 | <desc>An IDE controller of the PIIX3 variant.</desc>
|
---|
13931 | </const>
|
---|
13932 | <const name="PIIX4" value="5">
|
---|
13933 | <desc>An IDE controller of the PIIX4 variant.</desc>
|
---|
13934 | </const>
|
---|
13935 | <const name="ICH6" value="6">
|
---|
13936 | <desc>An IDE controller of the ICH6 variant.</desc>
|
---|
13937 | </const>
|
---|
13938 | <const name="I82078" value="7">
|
---|
13939 | <desc>A floppy disk controller; this is the only variant for floppy drives.</desc>
|
---|
13940 | </const>
|
---|
13941 | <const name="LsiLogicSas" value="8">
|
---|
13942 | <desc>A variant of the LsiLogic controller using SAS.</desc>
|
---|
13943 | </const>
|
---|
13944 | </enum>
|
---|
13945 |
|
---|
13946 | <enum
|
---|
13947 | name="ChipsetType"
|
---|
13948 | uuid="8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394"
|
---|
13949 | >
|
---|
13950 | <desc>
|
---|
13951 | Type of emulated chipset (mostly southbridge).
|
---|
13952 | </desc>
|
---|
13953 |
|
---|
13954 | <const name="Null" value="0">
|
---|
13955 | <desc>@c null value. Never used by the API.</desc>
|
---|
13956 | </const>
|
---|
13957 | <const name="PIIX3" value="1">
|
---|
13958 | <desc>A PIIX3 (PCI IDE ISA Xcelerator) chipset.</desc>
|
---|
13959 | </const>
|
---|
13960 | <const name="ICH9" value="2">
|
---|
13961 | <desc>A ICH9 (I/O Controller Hub) chipset.</desc>
|
---|
13962 | </const>
|
---|
13963 | </enum>
|
---|
13964 |
|
---|
13965 | <interface
|
---|
13966 | name="IStorageController" extends="$unknown"
|
---|
13967 | uuid="a1556333-09b6-46d9-bfb7-fc239b7fbe1e"
|
---|
13968 | wsmap="managed"
|
---|
13969 | >
|
---|
13970 | <desc>
|
---|
13971 | Represents a storage controller that is attached to a virtual machine
|
---|
13972 | (<link to="IMachine" />). Just as drives (hard disks, DVDs, FDs) are
|
---|
13973 | attached to storage controllers in a real computer, virtual drives
|
---|
13974 | (represented by <link to="IMediumAttachment" />) are attached to virtual
|
---|
13975 | storage controllers, represented by this interface.
|
---|
13976 |
|
---|
13977 | As opposed to physical hardware, VirtualBox has a very generic concept
|
---|
13978 | of a storage controller, and for purposes of the Main API, all virtual
|
---|
13979 | storage is attached to virtual machines via instances of this interface.
|
---|
13980 | There are five types of such virtual storage controllers: IDE, SCSI, SATA,
|
---|
13981 | SAS and Floppy (see <link to="#bus" />). Depending on which of these four
|
---|
13982 | is used, certain sub-types may be available and can be selected in
|
---|
13983 | <link to="#controllerType" />.
|
---|
13984 |
|
---|
13985 | Depending on these settings, the guest operating system might see
|
---|
13986 | significantly different virtual hardware.
|
---|
13987 | </desc>
|
---|
13988 |
|
---|
13989 | <attribute name="name" type="wstring" readonly="yes">
|
---|
13990 | <desc>
|
---|
13991 | Name of the storage controller, as originally specified with
|
---|
13992 | <link to="IMachine::addStorageController" />. This then uniquely
|
---|
13993 | identifies this controller with other method calls such as
|
---|
13994 | <link to="IMachine::attachDevice" /> and <link to="IMachine::mountMedium" />.
|
---|
13995 | </desc>
|
---|
13996 | </attribute>
|
---|
13997 |
|
---|
13998 | <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
|
---|
13999 | <desc>
|
---|
14000 | Maximum number of devices which can be attached to one port.
|
---|
14001 | </desc>
|
---|
14002 | </attribute>
|
---|
14003 |
|
---|
14004 | <attribute name="minPortCount" type="unsigned long" readonly="yes">
|
---|
14005 | <desc>
|
---|
14006 | Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
14007 | </desc>
|
---|
14008 | </attribute>
|
---|
14009 |
|
---|
14010 | <attribute name="maxPortCount" type="unsigned long" readonly="yes">
|
---|
14011 | <desc>
|
---|
14012 | Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
14013 | </desc>
|
---|
14014 | </attribute>
|
---|
14015 |
|
---|
14016 | <attribute name="instance" type="unsigned long">
|
---|
14017 | <desc>
|
---|
14018 | The instance number of the device in the running VM.
|
---|
14019 | </desc>
|
---|
14020 | </attribute>
|
---|
14021 |
|
---|
14022 | <attribute name="portCount" type="unsigned long">
|
---|
14023 | <desc>
|
---|
14024 | The number of currently usable ports on the controller.
|
---|
14025 | The minimum and maximum number of ports for one controller are
|
---|
14026 | stored in <link to="IStorageController::minPortCount"/>
|
---|
14027 | and <link to="IStorageController::maxPortCount"/>.
|
---|
14028 | </desc>
|
---|
14029 | </attribute>
|
---|
14030 |
|
---|
14031 | <attribute name="bus" type="StorageBus" readonly="yes">
|
---|
14032 | <desc>
|
---|
14033 | The bus type of the storage controller (IDE, SATA, SCSI, SAS or Floppy).
|
---|
14034 | </desc>
|
---|
14035 | </attribute>
|
---|
14036 |
|
---|
14037 | <attribute name="controllerType" type="StorageControllerType">
|
---|
14038 | <desc>
|
---|
14039 | The exact variant of storage controller hardware presented
|
---|
14040 | to the guest.
|
---|
14041 | Depending on this value, VirtualBox will provide a different
|
---|
14042 | virtual storage controller hardware to the guest.
|
---|
14043 | For SATA, SAS and floppy controllers, only one variant is
|
---|
14044 | available, but for IDE and SCSI, there are several.
|
---|
14045 |
|
---|
14046 | For SCSI controllers, the default type is LsiLogic.
|
---|
14047 | </desc>
|
---|
14048 | </attribute>
|
---|
14049 |
|
---|
14050 | <attribute name="useHostIOCache" type="boolean">
|
---|
14051 | <desc>
|
---|
14052 | If true, the storage controller emulation will use a dedicated I/O thread, enable the host I/O
|
---|
14053 | caches and use synchronous file APIs on the host. This was the only option in the API before
|
---|
14054 | VirtualBox 3.2 and is still the default for IDE controllers.
|
---|
14055 |
|
---|
14056 | If false, the host I/O cache will be disabled for image files attached to this storage controller.
|
---|
14057 | Instead, the storage controller emulation will use asynchronous I/O APIs on the host. This makes
|
---|
14058 | it possible to turn off the host I/O caches because the emulation can handle unaligned access to
|
---|
14059 | the file. This should be used on OS X and Linux hosts if a high I/O load is expected or many
|
---|
14060 | virtual machines are running at the same time to prevent I/O cache related hangs.
|
---|
14061 | This option new with the API of VirtualBox 3.2 and is now the default for non-IDE storage controllers.
|
---|
14062 | </desc>
|
---|
14063 | </attribute>
|
---|
14064 |
|
---|
14065 | <attribute name="bootable" type="boolean" readonly="yes">
|
---|
14066 | <desc>
|
---|
14067 | Returns whether it is possible to boot from disks attached to this controller.
|
---|
14068 | </desc>
|
---|
14069 | </attribute>
|
---|
14070 |
|
---|
14071 | <method name="getIDEEmulationPort">
|
---|
14072 | <desc>
|
---|
14073 | Gets the corresponding port number which is emulated as an IDE device.
|
---|
14074 | Works only with SATA controllers.
|
---|
14075 |
|
---|
14076 | <result name="E_INVALIDARG">
|
---|
14077 | The @a devicePosition is not in the range 0 to 3.
|
---|
14078 | </result>
|
---|
14079 | <result name="E_NOTIMPL">
|
---|
14080 | The storage controller type is not SATAIntelAhci.
|
---|
14081 | </result>
|
---|
14082 |
|
---|
14083 | </desc>
|
---|
14084 | <param name="devicePosition" type="long" dir="in"/>
|
---|
14085 | <param name="portNumber" type="long" dir="return"/>
|
---|
14086 | </method>
|
---|
14087 |
|
---|
14088 | <method name="setIDEEmulationPort">
|
---|
14089 | <desc>
|
---|
14090 | Sets the port number which is emulated as an IDE device.
|
---|
14091 | Works only with SATA controllers.
|
---|
14092 |
|
---|
14093 | <result name="E_INVALIDARG">
|
---|
14094 | The @a devicePosition is not in the range 0 to 3 or the
|
---|
14095 | @a portNumber is not in the range 0 to 29.
|
---|
14096 | </result>
|
---|
14097 | <result name="E_NOTIMPL">
|
---|
14098 | The storage controller type is not SATAIntelAhci.
|
---|
14099 | </result>
|
---|
14100 |
|
---|
14101 | </desc>
|
---|
14102 | <param name="devicePosition" type="long" dir="in"/>
|
---|
14103 | <param name="portNumber" type="long" dir="in"/>
|
---|
14104 | </method>
|
---|
14105 |
|
---|
14106 | </interface>
|
---|
14107 |
|
---|
14108 | <if target="wsdl">
|
---|
14109 |
|
---|
14110 | <!--
|
---|
14111 | // IManagedObjectRef
|
---|
14112 | /////////////////////////////////////////////////////////////////////////
|
---|
14113 | -->
|
---|
14114 |
|
---|
14115 | <interface
|
---|
14116 | name="IManagedObjectRef" extends="$unknown"
|
---|
14117 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
14118 | internal="yes"
|
---|
14119 | wsmap="managed"
|
---|
14120 | wscpp="hardcoded"
|
---|
14121 | >
|
---|
14122 | <desc>
|
---|
14123 | Managed object reference.
|
---|
14124 |
|
---|
14125 | Only within the webservice, a managed object reference (which is really
|
---|
14126 | an opaque number) allows a webservice client to address an object
|
---|
14127 | that lives in the address space of the webservice server.
|
---|
14128 |
|
---|
14129 | Behind each managed object reference, there is a COM object that lives
|
---|
14130 | in the webservice server's address space. The COM object is not freed
|
---|
14131 | until the managed object reference is released, either by an explicit
|
---|
14132 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
14133 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
14134 | all objects created during the webservice session.
|
---|
14135 |
|
---|
14136 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
14137 | webservice representation of that method will instead return a
|
---|
14138 | managed object reference, which can then be used to invoke methods
|
---|
14139 | on that object.
|
---|
14140 | </desc>
|
---|
14141 |
|
---|
14142 | <method name="getInterfaceName">
|
---|
14143 | <desc>
|
---|
14144 | Returns the name of the interface that this managed object represents,
|
---|
14145 | for example, "IMachine", as a string.
|
---|
14146 | </desc>
|
---|
14147 | <param name="return" type="wstring" dir="return"/>
|
---|
14148 | </method>
|
---|
14149 |
|
---|
14150 | <method name="release">
|
---|
14151 | <desc>
|
---|
14152 | Releases this managed object reference and frees the resources that
|
---|
14153 | were allocated for it in the webservice server process. After calling
|
---|
14154 | this method, the identifier of the reference can no longer be used.
|
---|
14155 | </desc>
|
---|
14156 | </method>
|
---|
14157 |
|
---|
14158 | </interface>
|
---|
14159 |
|
---|
14160 | <!--
|
---|
14161 | // IWebsessionManager
|
---|
14162 | /////////////////////////////////////////////////////////////////////////
|
---|
14163 | -->
|
---|
14164 |
|
---|
14165 | <interface
|
---|
14166 | name="IWebsessionManager" extends="$unknown"
|
---|
14167 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
14168 | internal="yes"
|
---|
14169 | wsmap="global"
|
---|
14170 | wscpp="hardcoded"
|
---|
14171 | >
|
---|
14172 | <desc>
|
---|
14173 | Websession manager. This provides essential services
|
---|
14174 | to webservice clients.
|
---|
14175 | </desc>
|
---|
14176 | <method name="logon">
|
---|
14177 | <desc>
|
---|
14178 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
14179 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
14180 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
14181 | interface, in one way or the other.
|
---|
14182 | </desc>
|
---|
14183 | <param name="username" type="wstring" dir="in"/>
|
---|
14184 | <param name="password" type="wstring" dir="in"/>
|
---|
14185 | <param name="return" type="IVirtualBox" dir="return"/>
|
---|
14186 | </method>
|
---|
14187 |
|
---|
14188 | <method name="getSessionObject">
|
---|
14189 | <desc>
|
---|
14190 | Returns a managed object reference to the internal ISession object that was created
|
---|
14191 | for this web service session when the client logged on.
|
---|
14192 |
|
---|
14193 | <see>ISession</see>
|
---|
14194 | </desc>
|
---|
14195 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
14196 | <param name="return" type="ISession" dir="return"/>
|
---|
14197 | </method>
|
---|
14198 |
|
---|
14199 | <method name="logoff">
|
---|
14200 | <desc>
|
---|
14201 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
14202 | and destroys all resources associated with the session (most importantly, all
|
---|
14203 | managed objects created in the server while the session was active).
|
---|
14204 | </desc>
|
---|
14205 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
14206 | </method>
|
---|
14207 |
|
---|
14208 | </interface>
|
---|
14209 |
|
---|
14210 | </if>
|
---|
14211 |
|
---|
14212 | <!--
|
---|
14213 | // IPerformanceCollector & friends
|
---|
14214 | /////////////////////////////////////////////////////////////////////////
|
---|
14215 | -->
|
---|
14216 |
|
---|
14217 | <interface
|
---|
14218 | name="IPerformanceMetric" extends="$unknown"
|
---|
14219 | uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
|
---|
14220 | >
|
---|
14221 | <desc>
|
---|
14222 | The IPerformanceMetric interface represents parameters of the given
|
---|
14223 | performance metric.
|
---|
14224 | </desc>
|
---|
14225 |
|
---|
14226 | <attribute name="metricName" type="wstring" readonly="yes">
|
---|
14227 | <desc>
|
---|
14228 | Name of the metric.
|
---|
14229 | </desc>
|
---|
14230 | </attribute>
|
---|
14231 |
|
---|
14232 | <attribute name="object" type="$unknown" readonly="yes">
|
---|
14233 | <desc>
|
---|
14234 | Object this metric belongs to.
|
---|
14235 | </desc>
|
---|
14236 | </attribute>
|
---|
14237 |
|
---|
14238 | <attribute name="description" type="wstring" readonly="yes">
|
---|
14239 | <desc>
|
---|
14240 | Textual description of the metric.
|
---|
14241 | </desc>
|
---|
14242 | </attribute>
|
---|
14243 |
|
---|
14244 | <attribute name="period" type="unsigned long" readonly="yes">
|
---|
14245 | <desc>
|
---|
14246 | Time interval between samples, measured in seconds.
|
---|
14247 | </desc>
|
---|
14248 | </attribute>
|
---|
14249 |
|
---|
14250 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
14251 | <desc>
|
---|
14252 | Number of recent samples retained by the performance collector for this
|
---|
14253 | metric.
|
---|
14254 |
|
---|
14255 | When the collected sample count exceeds this number, older samples
|
---|
14256 | are discarded.
|
---|
14257 | </desc>
|
---|
14258 | </attribute>
|
---|
14259 |
|
---|
14260 | <attribute name="unit" type="wstring" readonly="yes">
|
---|
14261 | <desc>
|
---|
14262 | Unit of measurement.
|
---|
14263 | </desc>
|
---|
14264 | </attribute>
|
---|
14265 |
|
---|
14266 | <attribute name="minimumValue" type="long" readonly="yes">
|
---|
14267 | <desc>
|
---|
14268 | Minimum possible value of this metric.
|
---|
14269 | </desc>
|
---|
14270 | </attribute>
|
---|
14271 |
|
---|
14272 | <attribute name="maximumValue" type="long" readonly="yes">
|
---|
14273 | <desc>
|
---|
14274 | Maximum possible value of this metric.
|
---|
14275 | </desc>
|
---|
14276 | </attribute>
|
---|
14277 | </interface>
|
---|
14278 |
|
---|
14279 | <interface
|
---|
14280 | name="IPerformanceCollector" extends="$unknown"
|
---|
14281 | uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
|
---|
14282 | wsmap="managed"
|
---|
14283 | >
|
---|
14284 | <desc>
|
---|
14285 | The IPerformanceCollector interface represents a service that collects
|
---|
14286 | and stores performance metrics data.
|
---|
14287 |
|
---|
14288 | Performance metrics are associated with objects of interfaces like IHost
|
---|
14289 | and IMachine. Each object has a distinct set of performance metrics. The
|
---|
14290 | set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
|
---|
14291 |
|
---|
14292 | Metric data is collected at the specified intervals and is retained
|
---|
14293 | internally. The interval and the number of retained samples can be set
|
---|
14294 | with <link to="IPerformanceCollector::setupMetrics" />. Both metric data
|
---|
14295 | and collection settings are not persistent, they are discarded as soon as
|
---|
14296 | VBoxSVC process terminates. Moreover, metric settings and data associated
|
---|
14297 | with a particular VM only exist while VM is running. They disappear as
|
---|
14298 | soon as VM shuts down. It is not possible to set up metrics for machines
|
---|
14299 | that are powered off. One needs to start VM first, then set up metric
|
---|
14300 | collection parameters.
|
---|
14301 |
|
---|
14302 | Metrics are organized hierarchically, with each level separated by a
|
---|
14303 | slash (/) character. Generally, the scheme for metric names is like this:
|
---|
14304 |
|
---|
14305 | <tt>Category/Metric[/SubMetric][:aggregation]</tt>
|
---|
14306 |
|
---|
14307 | "Category/Metric" together form the base metric name. A base metric is
|
---|
14308 | the smallest unit for which a sampling interval and the number of
|
---|
14309 | retained samples can be set. Only base metrics can be enabled and
|
---|
14310 | disabled. All sub-metrics are collected when their base metric is
|
---|
14311 | collected. Collected values for any set of sub-metrics can be queried
|
---|
14312 | with <link to="IPerformanceCollector::queryMetricsData" />.
|
---|
14313 |
|
---|
14314 | For example "CPU/Load/User:avg" metric name stands for the "CPU"
|
---|
14315 | category, "Load" metric, "User" submetric, "average" aggregate. An
|
---|
14316 | aggregate function is computed over all retained data. Valid aggregate
|
---|
14317 | functions are:
|
---|
14318 |
|
---|
14319 | <ul>
|
---|
14320 | <li>avg -- average</li>
|
---|
14321 | <li>min -- minimum</li>
|
---|
14322 | <li>max -- maximum</li>
|
---|
14323 | </ul>
|
---|
14324 |
|
---|
14325 | When setting up metric parameters, querying metric data, enabling or
|
---|
14326 | disabling metrics wildcards can be used in metric names to specify a
|
---|
14327 | subset of metrics. For example, to select all CPU-related metrics
|
---|
14328 | use <tt>CPU/*</tt>, all averages can be queried using <tt>*:avg</tt> and
|
---|
14329 | so on. To query metric values without aggregates <tt>*:</tt> can be used.
|
---|
14330 |
|
---|
14331 | The valid names for base metrics are:
|
---|
14332 |
|
---|
14333 | <ul>
|
---|
14334 | <li>CPU/Load</li>
|
---|
14335 | <li>CPU/MHz</li>
|
---|
14336 | <li>RAM/Usage</li>
|
---|
14337 | </ul>
|
---|
14338 |
|
---|
14339 | The general sequence for collecting and retrieving the metrics is:
|
---|
14340 | <ul>
|
---|
14341 | <li>
|
---|
14342 | Obtain an instance of IPerformanceCollector with
|
---|
14343 | <link to="IVirtualBox::performanceCollector" />
|
---|
14344 | </li>
|
---|
14345 | <li>
|
---|
14346 | Allocate and populate an array with references to objects the metrics
|
---|
14347 | will be collected for. Use references to IHost and IMachine objects.
|
---|
14348 | </li>
|
---|
14349 | <li>
|
---|
14350 | Allocate and populate an array with base metric names the data will
|
---|
14351 | be collected for.
|
---|
14352 | </li>
|
---|
14353 | <li>
|
---|
14354 | Call <link to="IPerformanceCollector::setupMetrics" />. From now on
|
---|
14355 | the metric data will be collected and stored.
|
---|
14356 | </li>
|
---|
14357 | <li>
|
---|
14358 | Wait for the data to get collected.
|
---|
14359 | </li>
|
---|
14360 | <li>
|
---|
14361 | Allocate and populate an array with references to objects the metric
|
---|
14362 | values will be queried for. You can re-use the object array used for
|
---|
14363 | setting base metrics.
|
---|
14364 | </li>
|
---|
14365 | <li>
|
---|
14366 | Allocate and populate an array with metric names the data will be
|
---|
14367 | collected for. Note that metric names differ from base metric names.
|
---|
14368 | </li>
|
---|
14369 | <li>
|
---|
14370 | Call <link to="IPerformanceCollector::queryMetricsData" />. The data
|
---|
14371 | that have been collected so far are returned. Note that the values
|
---|
14372 | are still retained internally and data collection continues.
|
---|
14373 | </li>
|
---|
14374 | </ul>
|
---|
14375 |
|
---|
14376 | For an example of usage refer to the following files in VirtualBox SDK:
|
---|
14377 | <ul>
|
---|
14378 | <li>
|
---|
14379 | Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
|
---|
14380 | </li>
|
---|
14381 | <li>
|
---|
14382 | Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
|
---|
14383 | </li>
|
---|
14384 | </ul>
|
---|
14385 | </desc>
|
---|
14386 |
|
---|
14387 | <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
|
---|
14388 | <desc>
|
---|
14389 | Array of unique names of metrics.
|
---|
14390 |
|
---|
14391 | This array represents all metrics supported by the performance
|
---|
14392 | collector. Individual objects do not necessarily support all of them.
|
---|
14393 | <link to="IPerformanceCollector::getMetrics"/> can be used to get the
|
---|
14394 | list of supported metrics for a particular object.
|
---|
14395 | </desc>
|
---|
14396 | </attribute>
|
---|
14397 |
|
---|
14398 | <method name="getMetrics">
|
---|
14399 | <desc>
|
---|
14400 | Returns parameters of specified metrics for a set of objects.
|
---|
14401 | <note>
|
---|
14402 | @c Null metrics array means all metrics. @c Null object array means
|
---|
14403 | all existing objects.
|
---|
14404 | </note>
|
---|
14405 | </desc>
|
---|
14406 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
14407 | <desc>
|
---|
14408 | Metric name filter. Currently, only a comma-separated list of metrics
|
---|
14409 | is supported.
|
---|
14410 | </desc>
|
---|
14411 | </param>
|
---|
14412 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
14413 | <desc>
|
---|
14414 | Set of objects to return metric parameters for.
|
---|
14415 | </desc>
|
---|
14416 | </param>
|
---|
14417 | <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
14418 | <desc>
|
---|
14419 | Array of returned metric parameters.
|
---|
14420 | </desc>
|
---|
14421 | </param>
|
---|
14422 | </method>
|
---|
14423 |
|
---|
14424 | <method name="setupMetrics">
|
---|
14425 | <desc>
|
---|
14426 | Sets parameters of specified base metrics for a set of objects. Returns
|
---|
14427 | an array of <link to="IPerformanceMetric" /> describing the metrics
|
---|
14428 | have been affected.
|
---|
14429 | <note>
|
---|
14430 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
14431 | empty object array means all existing objects. If metric name array
|
---|
14432 | contains a single element and object array contains many, the single
|
---|
14433 | metric name array element is applied to each object array element to
|
---|
14434 | form metric/object pairs.
|
---|
14435 | </note>
|
---|
14436 | </desc>
|
---|
14437 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
14438 | <desc>
|
---|
14439 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
14440 | support.
|
---|
14441 | </desc>
|
---|
14442 | </param>
|
---|
14443 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
14444 | <desc>
|
---|
14445 | Set of objects to setup metric parameters for.
|
---|
14446 | </desc>
|
---|
14447 | </param>
|
---|
14448 | <param name="period" type="unsigned long" dir="in">
|
---|
14449 | <desc>
|
---|
14450 | Time interval in seconds between two consecutive samples of
|
---|
14451 | performance data.
|
---|
14452 | </desc>
|
---|
14453 | </param>
|
---|
14454 | <param name="count" type="unsigned long" dir="in">
|
---|
14455 | <desc>
|
---|
14456 | Number of samples to retain in performance data history. Older
|
---|
14457 | samples get discarded.
|
---|
14458 | </desc>
|
---|
14459 | </param>
|
---|
14460 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
14461 | <desc>
|
---|
14462 | Array of metrics that have been modified by the call to this method.
|
---|
14463 | </desc>
|
---|
14464 | </param>
|
---|
14465 | </method>
|
---|
14466 |
|
---|
14467 | <method name="enableMetrics">
|
---|
14468 | <desc>
|
---|
14469 | Turns on collecting specified base metrics. Returns an array of
|
---|
14470 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
14471 | affected.
|
---|
14472 | <note>
|
---|
14473 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
14474 | empty object array means all existing objects. If metric name array
|
---|
14475 | contains a single element and object array contains many, the single
|
---|
14476 | metric name array element is applied to each object array element to
|
---|
14477 | form metric/object pairs.
|
---|
14478 | </note>
|
---|
14479 | </desc>
|
---|
14480 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
14481 | <desc>
|
---|
14482 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
14483 | support.
|
---|
14484 | </desc>
|
---|
14485 | </param>
|
---|
14486 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
14487 | <desc>
|
---|
14488 | Set of objects to enable metrics for.
|
---|
14489 | </desc>
|
---|
14490 | </param>
|
---|
14491 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
14492 | <desc>
|
---|
14493 | Array of metrics that have been modified by the call to this method.
|
---|
14494 | </desc>
|
---|
14495 | </param>
|
---|
14496 | </method>
|
---|
14497 |
|
---|
14498 | <method name="disableMetrics">
|
---|
14499 | <desc>
|
---|
14500 | Turns off collecting specified base metrics. Returns an array of
|
---|
14501 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
14502 | affected.
|
---|
14503 | <note>
|
---|
14504 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
14505 | empty object array means all existing objects. If metric name array
|
---|
14506 | contains a single element and object array contains many, the single
|
---|
14507 | metric name array element is applied to each object array element to
|
---|
14508 | form metric/object pairs.
|
---|
14509 | </note>
|
---|
14510 | </desc>
|
---|
14511 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
14512 | <desc>
|
---|
14513 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
14514 | support.
|
---|
14515 | </desc>
|
---|
14516 | </param>
|
---|
14517 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
14518 | <desc>
|
---|
14519 | Set of objects to disable metrics for.
|
---|
14520 | </desc>
|
---|
14521 | </param>
|
---|
14522 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
14523 | <desc>
|
---|
14524 | Array of metrics that have been modified by the call to this method.
|
---|
14525 | </desc>
|
---|
14526 | </param>
|
---|
14527 | </method>
|
---|
14528 |
|
---|
14529 | <method name="queryMetricsData">
|
---|
14530 | <desc>
|
---|
14531 | Queries collected metrics data for a set of objects.
|
---|
14532 |
|
---|
14533 | The data itself and related metric information are returned in seven
|
---|
14534 | parallel and one flattened array of arrays. Elements of
|
---|
14535 | <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
|
---|
14536 | returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
|
---|
14537 | the same index describe one set of values corresponding to a single
|
---|
14538 | metric.
|
---|
14539 |
|
---|
14540 | The <tt>returnData</tt> parameter is a flattened array of arrays. Each
|
---|
14541 | start and length of a sub-array is indicated by
|
---|
14542 | <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
|
---|
14543 | value for metric <tt>metricNames[i]</tt> is at
|
---|
14544 | <tt>returnData[returnIndices[i]]</tt>.
|
---|
14545 |
|
---|
14546 | <note>
|
---|
14547 | @c Null or empty metric name array means all metrics. @c Null or
|
---|
14548 | empty object array means all existing objects. If metric name array
|
---|
14549 | contains a single element and object array contains many, the single
|
---|
14550 | metric name array element is applied to each object array element to
|
---|
14551 | form metric/object pairs.
|
---|
14552 | </note>
|
---|
14553 | <note>
|
---|
14554 | Data collection continues behind the scenes after call to @c
|
---|
14555 | queryMetricsData. The return data can be seen as the snapshot of the
|
---|
14556 | current state at the time of @c queryMetricsData call. The internally
|
---|
14557 | kept metric values are not cleared by the call. This makes possible
|
---|
14558 | querying different subsets of metrics or aggregates with subsequent
|
---|
14559 | calls. If periodic querying is needed it is highly suggested to query
|
---|
14560 | the values with @c interval*count period to avoid confusion. This way
|
---|
14561 | a completely new set of data values will be provided by each query.
|
---|
14562 | </note>
|
---|
14563 | </desc>
|
---|
14564 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
14565 | <desc>
|
---|
14566 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
14567 | support.
|
---|
14568 | </desc>
|
---|
14569 | </param>
|
---|
14570 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
14571 | <desc>
|
---|
14572 | Set of objects to query metrics for.
|
---|
14573 | </desc>
|
---|
14574 | </param>
|
---|
14575 | <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
|
---|
14576 | <desc>
|
---|
14577 | Names of metrics returned in @c returnData.
|
---|
14578 | </desc>
|
---|
14579 | </param>
|
---|
14580 | <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
|
---|
14581 | <desc>
|
---|
14582 | Objects associated with metrics returned in @c returnData.
|
---|
14583 | </desc>
|
---|
14584 | </param>
|
---|
14585 | <param name="returnUnits" type="wstring" dir="out" safearray="yes">
|
---|
14586 | <desc>
|
---|
14587 | Units of measurement for each returned metric.
|
---|
14588 | </desc>
|
---|
14589 | </param>
|
---|
14590 | <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
|
---|
14591 | <desc>
|
---|
14592 | Divisor that should be applied to return values in order to get
|
---|
14593 | floating point values. For example:
|
---|
14594 | <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
|
---|
14595 | will retrieve the floating point value of i-th sample of the first
|
---|
14596 | metric.
|
---|
14597 | </desc>
|
---|
14598 | </param>
|
---|
14599 | <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
|
---|
14600 | <desc>
|
---|
14601 | Sequence numbers of the first elements of value sequences of
|
---|
14602 | particular metrics returned in @c returnData. For aggregate metrics
|
---|
14603 | it is the sequence number of the sample the aggregate started
|
---|
14604 | calculation from.
|
---|
14605 | </desc>
|
---|
14606 | </param>
|
---|
14607 | <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
|
---|
14608 | <desc>
|
---|
14609 | Indices of the first elements of value sequences of particular
|
---|
14610 | metrics returned in @c returnData.
|
---|
14611 | </desc>
|
---|
14612 | </param>
|
---|
14613 | <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
|
---|
14614 | <desc>
|
---|
14615 | Lengths of value sequences of particular metrics.
|
---|
14616 | </desc>
|
---|
14617 | </param>
|
---|
14618 | <param name="returnData" type="long" dir="return" safearray="yes">
|
---|
14619 | <desc>
|
---|
14620 | Flattened array of all metric data containing sequences of values for
|
---|
14621 | each metric.
|
---|
14622 | </desc>
|
---|
14623 | </param>
|
---|
14624 | </method>
|
---|
14625 |
|
---|
14626 | </interface>
|
---|
14627 |
|
---|
14628 | <enum
|
---|
14629 | name="NATAliasMode"
|
---|
14630 | uuid="67772168-50d9-11df-9669-7fb714ee4fa1"
|
---|
14631 | >
|
---|
14632 | <desc></desc>
|
---|
14633 | <const name="AliasLog" value="0x1">
|
---|
14634 | <desc></desc>
|
---|
14635 | </const>
|
---|
14636 | <const name="AliasProxyOnly" value="0x02">
|
---|
14637 | <desc></desc>
|
---|
14638 | </const>
|
---|
14639 | <const name="AliasUseSamePorts" value="0x04">
|
---|
14640 | <desc></desc>
|
---|
14641 | </const>
|
---|
14642 | </enum>
|
---|
14643 |
|
---|
14644 | <enum
|
---|
14645 | name="NATProtocol"
|
---|
14646 | uuid="e90164be-eb03-11de-94af-fff9b1c1b19f"
|
---|
14647 | >
|
---|
14648 | <desc>Protocol definitions used with NAT port-forwarding rules.</desc>
|
---|
14649 | <const name="UDP" value="0">
|
---|
14650 | <desc>Port-forwarding uses UDP protocol.</desc>
|
---|
14651 | </const>
|
---|
14652 | <const name="TCP" value="1">
|
---|
14653 | <desc>Port-forwarding uses TCP protocol.</desc>
|
---|
14654 | </const>
|
---|
14655 | </enum>
|
---|
14656 |
|
---|
14657 | <interface
|
---|
14658 | name="INATEngine" extends="$unknown"
|
---|
14659 | uuid="4b286616-eb03-11de-b0fb-1701eca42246"
|
---|
14660 | wsmap="managed"
|
---|
14661 | >
|
---|
14662 | <desc>Interface for managing a NAT engine which is used with a virtual machine. This
|
---|
14663 | allows for changing NAT behavior such as port-forwarding rules. This interface is
|
---|
14664 | used in the <link to="INetworkAdapter::natDriver" /> attribute.</desc>
|
---|
14665 | <attribute name="network" type="wstring">
|
---|
14666 | <desc>The network attribute of the NAT engine (the same value is used with built-in
|
---|
14667 | DHCP server to fill corresponding fields of DHCP leases).</desc>
|
---|
14668 | </attribute>
|
---|
14669 | <attribute name="hostIP" type="wstring">
|
---|
14670 | <desc>IP of host interface to bind all opened sockets to.
|
---|
14671 | <note>Changing this does not change binding of port forwarding.</note>
|
---|
14672 | </desc>
|
---|
14673 | </attribute>
|
---|
14674 | <attribute name="tftpPrefix" type="wstring">
|
---|
14675 | <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill
|
---|
14676 | the corresponding fields of DHCP leases.</desc>
|
---|
14677 | </attribute>
|
---|
14678 | <attribute name="tftpBootFile" type="wstring">
|
---|
14679 | <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill
|
---|
14680 | the corresponding fields of DHCP leases.</desc>
|
---|
14681 | </attribute>
|
---|
14682 | <attribute name="tftpNextServer" type="wstring">
|
---|
14683 | <desc>TFTP server attribute which is used with the built-in DHCP server to fill
|
---|
14684 | the corresponding fields of DHCP leases.
|
---|
14685 | <note>The preferred form is IPv4 addresses.</note>
|
---|
14686 | </desc>
|
---|
14687 | </attribute>
|
---|
14688 | <attribute name="aliasMode" type="unsigned long">
|
---|
14689 | <desc></desc>
|
---|
14690 | </attribute>
|
---|
14691 | <attribute name="dnsPassDomain" type="boolean">
|
---|
14692 | <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc>
|
---|
14693 | </attribute>
|
---|
14694 | <attribute name="dnsProxy" type="boolean">
|
---|
14695 | <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
|
---|
14696 | of the DNS proxy and process traffic using DNS servers registered on the host.</desc>
|
---|
14697 | </attribute>
|
---|
14698 | <attribute name="dnsUseHostResolver" type="boolean">
|
---|
14699 | <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address
|
---|
14700 | of the DNS proxy and process traffic using the host resolver mechanism.</desc>
|
---|
14701 | </attribute>
|
---|
14702 | <attribute name="redirects" type="wstring" readonly="yes" safearray="yes">
|
---|
14703 | <desc>Array of NAT port-forwarding rules in string representation, in the following
|
---|
14704 | format: "name,protocol id,host ip,host port,guest ip,guest port".</desc>
|
---|
14705 | </attribute>
|
---|
14706 | <method name="setNetworkSettings">
|
---|
14707 | <desc>Sets network configuration of the NAT engine.</desc>
|
---|
14708 | <param name="mtu" type="unsigned long" dir="in">
|
---|
14709 | <desc>MTU (maximum transmission unit) of the NAT engine in bytes.</desc>
|
---|
14710 | </param>
|
---|
14711 | <param name="sockSnd" type="unsigned long" dir="in">
|
---|
14712 | <desc>Capacity of the socket send buffer in bytes when creating a new socket.</desc>
|
---|
14713 | </param>
|
---|
14714 | <param name="sockRcv" type="unsigned long" dir="in">
|
---|
14715 | <desc>Capacity of the socket receive buffer in bytes when creating a new socket.</desc>
|
---|
14716 | </param>
|
---|
14717 | <param name="TcpWndSnd" type="unsigned long" dir="in">
|
---|
14718 | <desc>Initial size of the NAT engine's sending TCP window in bytes when
|
---|
14719 | establishing a new TCP connection.</desc>
|
---|
14720 | </param>
|
---|
14721 | <param name="TcpWndRcv" type="unsigned long" dir="in">
|
---|
14722 | <desc>Initial size of the NAT engine's receiving TCP window in bytes when
|
---|
14723 | establishing a new TCP connection.</desc>
|
---|
14724 | </param>
|
---|
14725 | </method>
|
---|
14726 | <method name="getNetworkSettings">
|
---|
14727 | <desc>Returns network configuration of NAT engine. See <link to="#setNetworkSettings" />
|
---|
14728 | for parameter descriptions.</desc>
|
---|
14729 | <param name="mtu" type="unsigned long" dir="out" />
|
---|
14730 | <param name="sockSnd" type="unsigned long" dir="out" />
|
---|
14731 | <param name="sockRcv" type="unsigned long" dir="out" />
|
---|
14732 | <param name="TcpWndSnd" type="unsigned long" dir="out" />
|
---|
14733 | <param name="TcpWndRcv" type="unsigned long" dir="out" />
|
---|
14734 | </method>
|
---|
14735 | <method name="addRedirect">
|
---|
14736 | <desc>Adds a new NAT port-forwarding rule.</desc>
|
---|
14737 | <param name="name" type="wstring" dir="in">
|
---|
14738 | <desc>The name of the rule. An empty name is acceptable, in which case the NAT engine
|
---|
14739 | auto-generates one using the other parameters.</desc>
|
---|
14740 | </param>
|
---|
14741 | <param name="proto" type="NATProtocol" dir="in">
|
---|
14742 | <desc>Protocol handled with the rule.</desc>
|
---|
14743 | </param>
|
---|
14744 | <param name="hostIp" type="wstring" dir="in">
|
---|
14745 | <desc>IP of the host interface to which the rule should apply. An empty ip address is
|
---|
14746 | acceptable, in which case the NAT engine binds the handling socket to any interface.</desc>
|
---|
14747 | </param>
|
---|
14748 | <param name="hostPort" type="unsigned short" dir="in">
|
---|
14749 | <desc>The port number to listen on.</desc>
|
---|
14750 | </param>
|
---|
14751 | <param name="guestIp" type="wstring" dir="in">
|
---|
14752 | <desc>The IP address of the guest which the NAT engine will forward matching packets
|
---|
14753 | to. An empty IP address is acceptable, in which case the NAT engine will forward
|
---|
14754 | packets to the first DHCP lease (x.x.x.15).</desc>
|
---|
14755 | </param>
|
---|
14756 | <param name="guestPort" type="unsigned short" dir="in">
|
---|
14757 | <desc>The port number to forward.</desc>
|
---|
14758 | </param>
|
---|
14759 | </method>
|
---|
14760 | <method name="removeRedirect">
|
---|
14761 | <desc>Removes a port-forwarding rule that was previously registered.</desc>
|
---|
14762 | <param name="name" type="wstring" dir="in">
|
---|
14763 | <desc>The name of the rule to delete.</desc>
|
---|
14764 | </param>
|
---|
14765 | </method>
|
---|
14766 | </interface>
|
---|
14767 |
|
---|
14768 | <!--
|
---|
14769 | // IExtPackManager
|
---|
14770 | /////////////////////////////////////////////////////////////////////////
|
---|
14771 | -->
|
---|
14772 |
|
---|
14773 | <interface
|
---|
14774 | name="IExtPackPlugIn" extends="$unknown"
|
---|
14775 | uuid="58000040-e718-4746-bbce-4b86d96da461"
|
---|
14776 | wsmap="suppress"
|
---|
14777 | >
|
---|
14778 | <desc>
|
---|
14779 | Interface for keeping information about a plug-in that ships with an
|
---|
14780 | extension pack.
|
---|
14781 | </desc>
|
---|
14782 | <attribute name="name" type="wstring" readonly="yes">
|
---|
14783 | <desc>The plug-in name.</desc>
|
---|
14784 | </attribute>
|
---|
14785 | <attribute name="description" type="wstring" readonly="yes">
|
---|
14786 | <desc>The plug-in description.</desc>
|
---|
14787 | </attribute>
|
---|
14788 | <attribute name="frontend" type="wstring" readonly="yes">
|
---|
14789 | <desc>
|
---|
14790 | The name of the frontend or component name this plug-in plugs into.
|
---|
14791 | </desc>
|
---|
14792 | </attribute>
|
---|
14793 | <attribute name="modulePath" type="wstring" readonly="yes">
|
---|
14794 | <desc> The module path. </desc>
|
---|
14795 | </attribute>
|
---|
14796 | </interface>
|
---|
14797 |
|
---|
14798 | <interface
|
---|
14799 | name="IExtPackBase" extends="$unknown"
|
---|
14800 | uuid="5ffb0b64-0ad6-467d-af62-1157e7dc3c99"
|
---|
14801 | wsmap="suppress"
|
---|
14802 | >
|
---|
14803 | <desc>
|
---|
14804 | Interface for querying information about an extension pack as well as
|
---|
14805 | accessing COM objects within it.
|
---|
14806 | </desc>
|
---|
14807 | <attribute name="name" type="wstring" readonly="yes">
|
---|
14808 | <desc>The extension pack name. This is unique.</desc>
|
---|
14809 | </attribute>
|
---|
14810 | <attribute name="description" type="wstring" readonly="yes">
|
---|
14811 | <desc>The extension pack description.</desc>
|
---|
14812 | </attribute>
|
---|
14813 | <attribute name="version" type="wstring" readonly="yes">
|
---|
14814 | <desc>
|
---|
14815 | The extension pack version string. This is on the same form as
|
---|
14816 | other VirtualBox version strings, i.e.: "1.2.3", "1.2.3_BETA1",
|
---|
14817 | "1.2.3-OSE", "1.2.3r45678", "1.2.3r45678-OSE", "1.2.3_BETA1-r45678"
|
---|
14818 | or "1.2.3_BETA1-r45678-OSE"
|
---|
14819 | </desc>
|
---|
14820 | </attribute>
|
---|
14821 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
14822 | <desc>The extension pack internal revision number.</desc>
|
---|
14823 | </attribute>
|
---|
14824 | <attribute name="VRDEModule" type="wstring" readonly="yes">
|
---|
14825 | <desc>The name of the VRDE module if the extension pack sports one.</desc>
|
---|
14826 | </attribute>
|
---|
14827 | <attribute name="plugIns" type="IExtPackPlugIn" safearray="yes" readonly="yes">
|
---|
14828 | <desc>Plug-ins provided by this extension pack.</desc>
|
---|
14829 | </attribute>
|
---|
14830 | <attribute name="usable" type="boolean" readonly="yes">
|
---|
14831 | <desc>
|
---|
14832 | Indicates whether the extension pack is usable or not.
|
---|
14833 |
|
---|
14834 | There are a number of reasons why an extension pack might be unusable,
|
---|
14835 | typical examples would be broken installation/file or that it is
|
---|
14836 | incompatible with the current VirtualBox version.
|
---|
14837 | </desc>
|
---|
14838 | </attribute>
|
---|
14839 | <attribute name="whyUnusable" type="wstring" readonly="yes">
|
---|
14840 | <desc>
|
---|
14841 | String indicating why the extension pack is not usable. This is an
|
---|
14842 | empty string if usable and always a non-empty string if not usable.
|
---|
14843 | </desc>
|
---|
14844 | </attribute>
|
---|
14845 | <attribute name="showLicense" type="boolean" readonly="yes">
|
---|
14846 | <desc>Whether to show the license before installation</desc>
|
---|
14847 | </attribute>
|
---|
14848 | <attribute name="license" type="wstring" readonly="yes">
|
---|
14849 | <desc>
|
---|
14850 | The default HTML license text for the extension pack. Same as
|
---|
14851 | calling <link to="#queryLicense">queryLicense</link> with
|
---|
14852 | preferredLocale and preferredLanguage as empty strings and format set
|
---|
14853 | to html.
|
---|
14854 | </desc>
|
---|
14855 | </attribute>
|
---|
14856 |
|
---|
14857 | <method name="queryLicense">
|
---|
14858 | <desc>
|
---|
14859 | Full feature version of the license attribute.
|
---|
14860 | </desc>
|
---|
14861 | <param name="preferredLocale" type="wstring" dir="in">
|
---|
14862 | <desc>
|
---|
14863 | The preferred license locale. Pass an empty string to get the default
|
---|
14864 | license.
|
---|
14865 | </desc>
|
---|
14866 | </param>
|
---|
14867 | <param name="preferredLanguage" type="wstring" dir="in">
|
---|
14868 | <desc>
|
---|
14869 | The preferred license language. Pass an empty string to get the
|
---|
14870 | default language for the locale.
|
---|
14871 | </desc>
|
---|
14872 | </param>
|
---|
14873 | <param name="format" type="wstring" dir="in">
|
---|
14874 | <desc>
|
---|
14875 | The license format: html, rtf or txt. If a license is present there
|
---|
14876 | will always be an HTML of it, the rich text format (RTF) and plain
|
---|
14877 | text (txt) versions are optional. If
|
---|
14878 | </desc>
|
---|
14879 | </param>
|
---|
14880 | <param name="licenseText" type="wstring" dir="return">
|
---|
14881 | <desc>The license text.</desc>
|
---|
14882 | </param>
|
---|
14883 | </method>
|
---|
14884 |
|
---|
14885 | </interface>
|
---|
14886 |
|
---|
14887 | <interface
|
---|
14888 | name="IExtPack" extends="IExtPackBase"
|
---|
14889 | uuid="431685da-3618-4ebc-b038-833ba829b4b2"
|
---|
14890 | wsmap="suppress"
|
---|
14891 | >
|
---|
14892 | <desc>
|
---|
14893 | Interface for querying information about an extension pack as well as
|
---|
14894 | accessing COM objects within it.
|
---|
14895 | </desc>
|
---|
14896 | <method name="queryObject">
|
---|
14897 | <desc>
|
---|
14898 | Queries the IUnknown interface to an object in the extension pack
|
---|
14899 | main module. This allows plug-ins and others to talk directly to an
|
---|
14900 | extension pack.
|
---|
14901 | </desc>
|
---|
14902 | <param name="objUuid" type="wstring" dir="in">
|
---|
14903 | <desc>The object ID. What exactly this is </desc>
|
---|
14904 | </param>
|
---|
14905 | <param name="returnInterface" type="$unknown" dir="return">
|
---|
14906 | <desc>The queried interface.</desc>
|
---|
14907 | </param>
|
---|
14908 | </method>
|
---|
14909 | </interface>
|
---|
14910 |
|
---|
14911 | <interface
|
---|
14912 | name="IExtPackFile" extends="IExtPackBase"
|
---|
14913 | uuid="b6b49f55-efcc-4f08-b486-56e8d8afb10b"
|
---|
14914 | wsmap="suppress"
|
---|
14915 | >
|
---|
14916 | <desc>
|
---|
14917 | Extension pack file (aka tarball, .vbox-extpack) representation returned
|
---|
14918 | by IExtPackManager::openExtPackFile. This provides the base extension
|
---|
14919 | pack information with the addition of the file name. It also provides an
|
---|
14920 | alternative to IExtPackManager::install.
|
---|
14921 | </desc>
|
---|
14922 | <attribute name="filePath" type="wstring" readonly="yes">
|
---|
14923 | <desc>
|
---|
14924 | The path to the extension pack file.
|
---|
14925 | </desc>
|
---|
14926 | </attribute>
|
---|
14927 |
|
---|
14928 | <method name="install">
|
---|
14929 | <desc>
|
---|
14930 | Install the extension pack.
|
---|
14931 | </desc>
|
---|
14932 | <param name="replace" type="boolean" dir="in">
|
---|
14933 | <desc>
|
---|
14934 | Set this to automatically uninstall any existing extension pack with
|
---|
14935 | the same name as the one being installed.
|
---|
14936 | </desc>
|
---|
14937 | </param>
|
---|
14938 | <param name="displayInfo" type="wstring" dir="in">
|
---|
14939 | <desc>
|
---|
14940 | Platform specific display information. Reserved for future hacks.
|
---|
14941 | </desc>
|
---|
14942 | </param>
|
---|
14943 | <param name="progess" type="IProgress" dir="return">
|
---|
14944 | <desc>
|
---|
14945 | Progress object for the operation.
|
---|
14946 | </desc>
|
---|
14947 | </param>
|
---|
14948 | </method>
|
---|
14949 | </interface>
|
---|
14950 |
|
---|
14951 | <interface
|
---|
14952 | name="IExtPackManager" extends="$unknown"
|
---|
14953 | uuid="2451b1ba-ab1c-42fb-b453-c58433bea8c7"
|
---|
14954 | wsmap="suppress"
|
---|
14955 | >
|
---|
14956 | <desc>
|
---|
14957 | Interface for managing VirtualBox Extension Packs.
|
---|
14958 |
|
---|
14959 | TODO: Describe extension packs, how they are managed and how to create
|
---|
14960 | one.
|
---|
14961 | </desc>
|
---|
14962 |
|
---|
14963 | <attribute name="installedExtPacks" type="IExtPack" safearray="yes" readonly="yes">
|
---|
14964 | <desc>
|
---|
14965 | List of the installed extension packs.
|
---|
14966 | </desc>
|
---|
14967 | </attribute>
|
---|
14968 |
|
---|
14969 | <method name="find">
|
---|
14970 | <desc>
|
---|
14971 | Returns the extension pack with the specified name if found.
|
---|
14972 |
|
---|
14973 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
14974 | No extension pack matching @a name was found.
|
---|
14975 | </result>
|
---|
14976 | </desc>
|
---|
14977 | <param name="name" type="wstring" dir="in">
|
---|
14978 | <desc>The name of the extension pack to locate.</desc>
|
---|
14979 | </param>
|
---|
14980 | <param name="returnData" type="IExtPack" dir="return">
|
---|
14981 | <desc>The extension pack if found.</desc>
|
---|
14982 | </param>
|
---|
14983 | </method>
|
---|
14984 |
|
---|
14985 | <method name="openExtPackFile">
|
---|
14986 | <desc>
|
---|
14987 | Attempts to open an extension pack file in preparation for
|
---|
14988 | installation.
|
---|
14989 | </desc>
|
---|
14990 | <param name="path" type="wstring" dir="in">
|
---|
14991 | <desc>The path of the extension pack tarball.</desc>
|
---|
14992 | </param>
|
---|
14993 | <param name="file" type="IExtPackFile" dir="return">
|
---|
14994 | <desc>The interface of the extension pack file object.</desc>
|
---|
14995 | </param>
|
---|
14996 | </method>
|
---|
14997 |
|
---|
14998 | <method name="uninstall">
|
---|
14999 | <desc>Uninstalls an extension pack, removing all related files.</desc>
|
---|
15000 | <param name="name" type="wstring" dir="in">
|
---|
15001 | <desc>The name of the extension pack to uninstall.</desc>
|
---|
15002 | </param>
|
---|
15003 | <param name="forcedRemoval" type="boolean" dir="in">
|
---|
15004 | <desc>
|
---|
15005 | Forced removal of the extension pack. This means that the uninstall
|
---|
15006 | hook will not be called.
|
---|
15007 | </desc>
|
---|
15008 | </param>
|
---|
15009 | <param name="displayInfo" type="wstring" dir="in">
|
---|
15010 | <desc>
|
---|
15011 | Platform specific display information. Reserved for future hacks.
|
---|
15012 | </desc>
|
---|
15013 | </param>
|
---|
15014 | <param name="progess" type="IProgress" dir="return">
|
---|
15015 | <desc>
|
---|
15016 | Progress object for the operation.
|
---|
15017 | </desc>
|
---|
15018 | </param>
|
---|
15019 | </method>
|
---|
15020 |
|
---|
15021 | <method name="cleanup">
|
---|
15022 | <desc>Cleans up failed installs and uninstalls</desc>
|
---|
15023 | </method>
|
---|
15024 |
|
---|
15025 | <method name="QueryAllPlugInsForFrontend">
|
---|
15026 | <desc>
|
---|
15027 | Gets the path to all the plug-in modules for a given frontend.
|
---|
15028 |
|
---|
15029 | This is a convenience method that is intended to simplify the plug-in
|
---|
15030 | loading process for a frontend.
|
---|
15031 | </desc>
|
---|
15032 | <param name="frontendName" type="wstring" dir="in">
|
---|
15033 | <desc>The name of the frontend or component.</desc>
|
---|
15034 | </param>
|
---|
15035 | <param name="plugInModules" type="wstring" dir="return" safearray="yes">
|
---|
15036 | <desc>Array containing the plug-in modules (full paths).</desc>
|
---|
15037 | </param>
|
---|
15038 | </method>
|
---|
15039 |
|
---|
15040 | <method name="IsExtPackUsable">
|
---|
15041 | <desc>Check if the given extension pack is loaded and usable.</desc>
|
---|
15042 | <param name="name" type="wstring" dir="in">
|
---|
15043 | <desc>The name of the extension pack to check for.</desc>
|
---|
15044 | </param>
|
---|
15045 | <param name="usable" type="boolean" dir="return">
|
---|
15046 | <desc>Is the given extension pack loaded and usable.</desc>
|
---|
15047 | </param>
|
---|
15048 | </method>
|
---|
15049 |
|
---|
15050 | </interface>
|
---|
15051 |
|
---|
15052 | <!--
|
---|
15053 | // BandwidthGroupType
|
---|
15054 | /////////////////////////////////////////////////////////////////////////
|
---|
15055 | -->
|
---|
15056 | <enum
|
---|
15057 | name="BandwidthGroupType"
|
---|
15058 | uuid="1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e">
|
---|
15059 |
|
---|
15060 | <desc>
|
---|
15061 | Type of a bandwidth control group.
|
---|
15062 | </desc>
|
---|
15063 |
|
---|
15064 | <const name="Null" value="0">
|
---|
15065 | <desc>
|
---|
15066 | Null type, must be first.
|
---|
15067 | </desc>
|
---|
15068 | </const>
|
---|
15069 |
|
---|
15070 | <const name="Disk" value="1">
|
---|
15071 | <desc>
|
---|
15072 | The bandwidth group controls disk I/O.
|
---|
15073 | </desc>
|
---|
15074 | </const>
|
---|
15075 |
|
---|
15076 | <const name="Network" value="2">
|
---|
15077 | <desc>
|
---|
15078 | The bandwidth group controls network I/O.
|
---|
15079 | </desc>
|
---|
15080 | </const>
|
---|
15081 |
|
---|
15082 | </enum>
|
---|
15083 |
|
---|
15084 | <!--
|
---|
15085 | // IBandwidthGroup
|
---|
15086 | /////////////////////////////////////////////////////////////////////////
|
---|
15087 | -->
|
---|
15088 | <interface
|
---|
15089 | name="IBandwidthGroup" extends="$unknown"
|
---|
15090 | uuid="badea2d7-0261-4146-89f0-6a57cc34833d"
|
---|
15091 | wsmap="managed"
|
---|
15092 | >
|
---|
15093 | <desc>Represents one bandwidth group.</desc>
|
---|
15094 |
|
---|
15095 | <attribute name="name" type="wstring" readonly="yes">
|
---|
15096 | <desc>Name of the group.</desc>
|
---|
15097 | </attribute>
|
---|
15098 |
|
---|
15099 | <attribute name="type" type="BandwidthGroupType" readonly="yes">
|
---|
15100 | <desc>Type of the group.</desc>
|
---|
15101 | </attribute>
|
---|
15102 |
|
---|
15103 | <attribute name="reference" type="unsigned long" readonly="yes">
|
---|
15104 | <desc>How many devices/medium attachements use this group.</desc>
|
---|
15105 | </attribute>
|
---|
15106 |
|
---|
15107 | <attribute name="maxMbPerSec" type="unsigned long">
|
---|
15108 | <desc>The maximum number of MBytes which can be transfered by all
|
---|
15109 | entities attached to this group during one second.</desc>
|
---|
15110 | </attribute>
|
---|
15111 |
|
---|
15112 | </interface>
|
---|
15113 |
|
---|
15114 | <!--
|
---|
15115 | // IBandwidthControl
|
---|
15116 | /////////////////////////////////////////////////////////////////////////
|
---|
15117 | -->
|
---|
15118 | <interface
|
---|
15119 | name="IBandwidthControl" extends="$unknown"
|
---|
15120 | uuid="d0a24db0-f756-11df-98cf-0800200c9a66"
|
---|
15121 | wsmap="managed"
|
---|
15122 | >
|
---|
15123 | <desc>
|
---|
15124 | Controls the bandwidth groups of one machine used to cap I/O done by a VM.
|
---|
15125 | This includes network and disk I/O.
|
---|
15126 | </desc>
|
---|
15127 |
|
---|
15128 | <attribute name="numGroups" type="unsigned long" readonly="yes">
|
---|
15129 | <desc>
|
---|
15130 | The current number of existing bandwidth groups managed.
|
---|
15131 | </desc>
|
---|
15132 | </attribute>
|
---|
15133 |
|
---|
15134 | <method name="CreateBandwidthGroup">
|
---|
15135 | <desc>
|
---|
15136 | Creates a new bandwidth group.
|
---|
15137 | </desc>
|
---|
15138 |
|
---|
15139 | <param name="name" type="wstring" dir="in">
|
---|
15140 | <desc>Name of the bandwidth group.</desc>
|
---|
15141 | </param>
|
---|
15142 | <param name="type" type="BandwidthGroupType" dir="in">
|
---|
15143 | <desc>The type of the bandwidth group (network or disk).</desc>
|
---|
15144 | </param>
|
---|
15145 | <param name="maxMbPerSec" type="unsigned long" dir="in">
|
---|
15146 | <desc>The maximum number of MBytes which can be transfered by all
|
---|
15147 | entities attached to this group during one second.</desc>
|
---|
15148 | </param>
|
---|
15149 | </method>
|
---|
15150 |
|
---|
15151 | <method name="DeleteBandwidthGroup">
|
---|
15152 | <desc>
|
---|
15153 | Deletes a new bandwidth group.
|
---|
15154 | </desc>
|
---|
15155 |
|
---|
15156 | <param name="name" type="wstring" dir="in">
|
---|
15157 | <desc>Name of the bandwidth group to delete.</desc>
|
---|
15158 | </param>
|
---|
15159 | </method>
|
---|
15160 |
|
---|
15161 | <method name="GetBandwidthGroup" const="yes">
|
---|
15162 | <desc>
|
---|
15163 | Get a bandwidth group by name.
|
---|
15164 | </desc>
|
---|
15165 |
|
---|
15166 | <param name="name" type="wstring" dir="in">
|
---|
15167 | <desc>Name of the bandwidth group to get.</desc>
|
---|
15168 | </param>
|
---|
15169 | <param name="bandwidthGroup" type="IBandwidthGroup" dir="return">
|
---|
15170 | <desc>Where to store the bandwidth group on success.</desc>
|
---|
15171 | </param>
|
---|
15172 | </method>
|
---|
15173 |
|
---|
15174 | <method name="GetAllBandwidthGroups" const="yes">
|
---|
15175 | <desc>
|
---|
15176 | Get all managed bandwidth groups.
|
---|
15177 | </desc>
|
---|
15178 |
|
---|
15179 | <param name="bandwidthGroups" type="IBandwidthGroup" dir="return" safearray="yes">
|
---|
15180 | <desc>The array of managed bandwidth groups.</desc>
|
---|
15181 | </param>
|
---|
15182 | </method>
|
---|
15183 | </interface>
|
---|
15184 |
|
---|
15185 | <!--
|
---|
15186 | // IVirtualBoxClient
|
---|
15187 | /////////////////////////////////////////////////////////////////////////
|
---|
15188 | -->
|
---|
15189 |
|
---|
15190 | <interface
|
---|
15191 | name="IVirtualBoxClient" extends="$unknown"
|
---|
15192 | uuid="5fe0bd48-1181-40d1-991f-3b02f269a823"
|
---|
15193 | wsmap="suppress"
|
---|
15194 | >
|
---|
15195 | <desc>
|
---|
15196 | Convenience interface for client applications. Treat this as a
|
---|
15197 | singleton, i.e. never create more than one instance of this interface.
|
---|
15198 |
|
---|
15199 | At the moment only available for clients of the local API (not usable
|
---|
15200 | via the webservice). Once the session logic is redesigned this might
|
---|
15201 | change.
|
---|
15202 | </desc>
|
---|
15203 |
|
---|
15204 | <attribute name="virtualBox" type="IVirtualBox" readonly="yes">
|
---|
15205 | <desc>
|
---|
15206 | Reference to the server-side API root object.
|
---|
15207 | </desc>
|
---|
15208 | </attribute>
|
---|
15209 |
|
---|
15210 | <attribute name="session" type="ISession" readonly="yes">
|
---|
15211 | <desc>
|
---|
15212 | Create a new session object and return the reference to it.
|
---|
15213 | </desc>
|
---|
15214 | </attribute>
|
---|
15215 |
|
---|
15216 | <attribute name="eventSource" type="IEventSource" readonly="yes">
|
---|
15217 | <desc>
|
---|
15218 | Event source for VirtualBoxClient events.
|
---|
15219 | </desc>
|
---|
15220 | </attribute>
|
---|
15221 |
|
---|
15222 | </interface>
|
---|
15223 |
|
---|
15224 | <!--
|
---|
15225 | // Events
|
---|
15226 | /////////////////////////////////////////////////////////////////////////
|
---|
15227 | -->
|
---|
15228 | <enum
|
---|
15229 | name="VBoxEventType"
|
---|
15230 | uuid="e71c487f-755e-46e9-a476-dd6a5d134597"
|
---|
15231 | >
|
---|
15232 |
|
---|
15233 | <desc>
|
---|
15234 | Type of an event.
|
---|
15235 | See <link to="IEvent" /> for an introduction to VirtualBox event handling.
|
---|
15236 | </desc>
|
---|
15237 |
|
---|
15238 | <const name="Invalid" value="0">
|
---|
15239 | <desc>
|
---|
15240 | Invalid event, must be first.
|
---|
15241 | </desc>
|
---|
15242 | </const>
|
---|
15243 |
|
---|
15244 | <const name="Any" value="1">
|
---|
15245 | <desc>
|
---|
15246 | Wildcard for all events.
|
---|
15247 | Events of this type are never delivered, and only used in
|
---|
15248 | registerListener() call to simplify registration.
|
---|
15249 | </desc>
|
---|
15250 | </const>
|
---|
15251 |
|
---|
15252 | <const name="Vetoable" value="2">
|
---|
15253 | <desc>
|
---|
15254 | Wildcard for all vetoable events. Events of this type are never delivered, and only
|
---|
15255 | used in registerListener() call to simplify registration.
|
---|
15256 | </desc>
|
---|
15257 | </const>
|
---|
15258 |
|
---|
15259 | <const name="MachineEvent" value="3">
|
---|
15260 | <desc>
|
---|
15261 | Wildcard for all machine events. Events of this type are never delivered, and only used in
|
---|
15262 | registerListener() call to simplify registration.
|
---|
15263 | </desc>
|
---|
15264 | </const>
|
---|
15265 |
|
---|
15266 | <const name="SnapshotEvent" value="4">
|
---|
15267 | <desc>
|
---|
15268 | Wildcard for all snapshot events. Events of this type are never delivered, and only used in
|
---|
15269 | registerListener() call to simplify registration.
|
---|
15270 | </desc>
|
---|
15271 | </const>
|
---|
15272 |
|
---|
15273 | <const name="InputEvent" value="5">
|
---|
15274 | <desc>
|
---|
15275 | Wildcard for all input device (keyboard, mouse) events.
|
---|
15276 | Events of this type are never delivered, and only used in
|
---|
15277 | registerListener() call to simplify registration.
|
---|
15278 | </desc>
|
---|
15279 | </const>
|
---|
15280 |
|
---|
15281 | <const name="LastWildcard" value="31">
|
---|
15282 | <desc>
|
---|
15283 | Last wildcard.
|
---|
15284 | </desc>
|
---|
15285 | </const>
|
---|
15286 |
|
---|
15287 | <const name="OnMachineStateChanged" value="32">
|
---|
15288 | <desc>
|
---|
15289 | See <link to="IMachineStateChangedEvent">IMachineStateChangedEvent</link>.
|
---|
15290 | </desc>
|
---|
15291 | </const>
|
---|
15292 | <const name="OnMachineDataChanged" value="33">
|
---|
15293 | <desc>
|
---|
15294 | See <link to="IMachineDataChangedEvent">IMachineDataChangedEvent</link>.
|
---|
15295 | </desc>
|
---|
15296 | </const>
|
---|
15297 | <const name="OnExtraDataChanged" value="34">
|
---|
15298 | <desc>
|
---|
15299 | See <link to="IExtraDataChangedEvent">IExtraDataChangedEvent</link>.
|
---|
15300 | </desc>
|
---|
15301 | </const>
|
---|
15302 | <const name="OnExtraDataCanChange" value="35">
|
---|
15303 | <desc>
|
---|
15304 | See <link to="IExtraDataCanChangeEvent">IExtraDataCanChangeEvent</link>.
|
---|
15305 | </desc>
|
---|
15306 | </const>
|
---|
15307 | <const name="OnMediumRegistered" value="36">
|
---|
15308 | <desc>
|
---|
15309 | See <link to="IMediumRegisteredEvent">IMediumRegisteredEvent</link>.
|
---|
15310 | </desc>
|
---|
15311 | </const>
|
---|
15312 | <const name="OnMachineRegistered" value="37">
|
---|
15313 | <desc>
|
---|
15314 | See <link to="IMachineRegisteredEvent">IMachineRegisteredEvent</link>.
|
---|
15315 | </desc>
|
---|
15316 | </const>
|
---|
15317 | <const name="OnSessionStateChanged" value="38">
|
---|
15318 | <desc>
|
---|
15319 | See <link to="ISessionStateChangedEvent">ISessionStateChangedEvent</link>.
|
---|
15320 | </desc>
|
---|
15321 | </const>
|
---|
15322 | <const name="OnSnapshotTaken" value="39">
|
---|
15323 | <desc>
|
---|
15324 | See <link to="ISnapshotTakenEvent">ISnapshotTakenEvent</link>.
|
---|
15325 | </desc>
|
---|
15326 | </const>
|
---|
15327 | <const name="OnSnapshotDeleted" value="40">
|
---|
15328 | <desc>
|
---|
15329 | See <link to="ISnapshotDeletedEvent">ISnapshotDeletedEvent</link>.
|
---|
15330 | </desc>
|
---|
15331 | </const>
|
---|
15332 | <const name="OnSnapshotChanged" value="41">
|
---|
15333 | <desc>
|
---|
15334 | See <link to="ISnapshotChangedEvent">ISnapshotChangedEvent</link>.
|
---|
15335 | </desc>
|
---|
15336 | </const>
|
---|
15337 | <const name="OnGuestPropertyChanged" value="42">
|
---|
15338 | <desc>
|
---|
15339 | See <link to="IGuestPropertyChangedEvent">IGuestPropertyChangedEvent</link>.
|
---|
15340 | </desc>
|
---|
15341 | </const>
|
---|
15342 | <!-- Console events -->
|
---|
15343 | <const name="OnMousePointerShapeChanged" value="43">
|
---|
15344 | <desc>
|
---|
15345 | See <link to="IMousePointerShapeChangedEvent">IMousePointerShapeChangedEvent</link>.
|
---|
15346 | </desc>
|
---|
15347 | </const>
|
---|
15348 | <const name="OnMouseCapabilityChanged" value="44">
|
---|
15349 | <desc>
|
---|
15350 | See <link to="IMouseCapabilityChangedEvent">IMouseCapabilityChangedEvent</link>.
|
---|
15351 | </desc>
|
---|
15352 | </const>
|
---|
15353 | <const name="OnKeyboardLedsChanged" value="45">
|
---|
15354 | <desc>
|
---|
15355 | See <link to="IKeyboardLedsChangedEvent">IKeyboardLedsChangedEvent</link>.
|
---|
15356 | </desc>
|
---|
15357 | </const>
|
---|
15358 | <const name="OnStateChanged" value="46">
|
---|
15359 | <desc>
|
---|
15360 | See <link to="IStateChangedEvent">IStateChangedEvent</link>.
|
---|
15361 | </desc>
|
---|
15362 | </const>
|
---|
15363 | <const name="OnAdditionsStateChanged" value="47">
|
---|
15364 | <desc>
|
---|
15365 | See <link to="IAdditionsStateChangedEvent">IAdditionsStateChangedEvent</link>.
|
---|
15366 | </desc>
|
---|
15367 | </const>
|
---|
15368 | <const name="OnNetworkAdapterChanged" value="48">
|
---|
15369 | <desc>
|
---|
15370 | See <link to="INetworkAdapterChangedEvent">INetworkAdapterChangedEvent</link>.
|
---|
15371 | </desc>
|
---|
15372 | </const>
|
---|
15373 | <const name="OnSerialPortChanged" value="49">
|
---|
15374 | <desc>
|
---|
15375 | See <link to="ISerialPortChangedEvent">ISerialPortChangedEvent</link>.
|
---|
15376 | </desc>
|
---|
15377 | </const>
|
---|
15378 | <const name="OnParallelPortChanged" value="50">
|
---|
15379 | <desc>
|
---|
15380 | See <link to="IParallelPortChangedEvent">IParallelPortChangedEvent</link>.
|
---|
15381 | </desc>
|
---|
15382 | </const>
|
---|
15383 | <const name="OnStorageControllerChanged" value="51">
|
---|
15384 | <desc>
|
---|
15385 | See <link to="IStorageControllerChangedEvent">IStorageControllerChangedEvent</link>.
|
---|
15386 | </desc>
|
---|
15387 | </const>
|
---|
15388 | <const name="OnMediumChanged" value="52">
|
---|
15389 | <desc>
|
---|
15390 | See <link to="IMediumChangedEvent">IMediumChangedEvent</link>.
|
---|
15391 | </desc>
|
---|
15392 | </const>
|
---|
15393 | <const name="OnVRDEServerChanged" value="53">
|
---|
15394 | <desc>
|
---|
15395 | See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>.
|
---|
15396 | </desc>
|
---|
15397 | </const>
|
---|
15398 | <const name="OnUSBControllerChanged" value="54">
|
---|
15399 | <desc>
|
---|
15400 | See <link to="IUSBControllerChangedEvent">IUSBControllerChangedEvent</link>.
|
---|
15401 | </desc>
|
---|
15402 | </const>
|
---|
15403 | <const name="OnUSBDeviceStateChanged" value="55">
|
---|
15404 | <desc>
|
---|
15405 | See <link to="IUSBDeviceStateChangedEvent">IUSBDeviceStateChangedEvent</link>.
|
---|
15406 | </desc>
|
---|
15407 | </const>
|
---|
15408 | <const name="OnSharedFolderChanged" value="56">
|
---|
15409 | <desc>
|
---|
15410 | See <link to="ISharedFolderChangedEvent">ISharedFolderChangedEvent</link>.
|
---|
15411 | </desc>
|
---|
15412 | </const>
|
---|
15413 | <const name="OnRuntimeError" value="57">
|
---|
15414 | <desc>
|
---|
15415 | See <link to="IRuntimeErrorEvent">IRuntimeErrorEvent</link>.
|
---|
15416 | </desc>
|
---|
15417 | </const>
|
---|
15418 | <const name="OnCanShowWindow" value="58">
|
---|
15419 | <desc>
|
---|
15420 | See <link to="ICanShowWindowEvent">ICanShowWindowEvent</link>.
|
---|
15421 | </desc>
|
---|
15422 | </const>
|
---|
15423 | <const name="OnShowWindow" value="59">
|
---|
15424 | <desc>
|
---|
15425 | See <link to="IShowWindowEvent">IShowWindowEvent</link>.
|
---|
15426 | </desc>
|
---|
15427 | </const>
|
---|
15428 | <const name="OnCPUChanged" value="60">
|
---|
15429 | <desc>
|
---|
15430 | See <link to="ICPUChangedEvent">ICPUChangedEvent</link>.
|
---|
15431 | </desc>
|
---|
15432 | </const>
|
---|
15433 | <const name="OnVRDEServerInfoChanged" value="61">
|
---|
15434 | <desc>
|
---|
15435 | See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>.
|
---|
15436 | </desc>
|
---|
15437 | </const>
|
---|
15438 | <const name="OnEventSourceChanged" value="62">
|
---|
15439 | <desc>
|
---|
15440 | See <link to="IEventSourceChangedEvent">IEventSourceChangedEvent</link>.
|
---|
15441 | </desc>
|
---|
15442 | </const>
|
---|
15443 | <const name="OnCPUExecutionCapChanged" value="63">
|
---|
15444 | <desc>
|
---|
15445 | See <link to="ICPUExecutionCapChangedEvent">ICPUExecutionCapChangedEvent</link>.
|
---|
15446 | </desc>
|
---|
15447 | </const>
|
---|
15448 | <const name="OnGuestKeyboard" value="64">
|
---|
15449 | <desc>
|
---|
15450 | See <link to="IGuestKeyboardEvent">IGuestKeyboardEvent</link>.
|
---|
15451 | </desc>
|
---|
15452 | </const>
|
---|
15453 | <const name="OnGuestMouse" value="65">
|
---|
15454 | <desc>
|
---|
15455 | See <link to="IGuestMouseEvent">IGuestMouseEvent</link>.
|
---|
15456 | </desc>
|
---|
15457 | </const>
|
---|
15458 | <const name="OnNATRedirect" value="66">
|
---|
15459 | <desc>
|
---|
15460 | See <link to="INATRedirectEvent">INATRedirectEvent</link>.
|
---|
15461 | </desc>
|
---|
15462 | </const>
|
---|
15463 | <const name="OnHostPciDevicePlug" value="67">
|
---|
15464 | <desc>
|
---|
15465 | See <link to="IHostPciDevicePlugEvent">IHostPciDevicePlugEvent</link>.
|
---|
15466 | </desc>
|
---|
15467 | </const>
|
---|
15468 | <const name="OnVBoxSVCAvailabilityChanged" value="68">
|
---|
15469 | <desc>
|
---|
15470 | See <link to="IVBoxSVCAvailabilityChangedEvent">IVBoxSVCAvailablityChangedEvent</link>.
|
---|
15471 | </desc>
|
---|
15472 | </const>
|
---|
15473 | <const name="OnBandwidthGroupChanged" value="69">
|
---|
15474 | <desc>
|
---|
15475 | See <link to="IBandwidthGroupChangedEvent">IBandwidthGroupChangedEvent</link>.
|
---|
15476 | </desc>
|
---|
15477 | </const>
|
---|
15478 | <const name="OnGuestMonitorChanged" value="70">
|
---|
15479 | <desc>
|
---|
15480 | See <link to="IGuestMonitorChangedEvent">IGuestMonitorChangedEvent</link>.
|
---|
15481 | </desc>
|
---|
15482 | </const>
|
---|
15483 |
|
---|
15484 | <!-- Last event marker -->
|
---|
15485 | <const name="Last" value="71">
|
---|
15486 | <desc>
|
---|
15487 | Must be last event, used for iterations and structures relying on numerical event values.
|
---|
15488 | </desc>
|
---|
15489 | </const>
|
---|
15490 |
|
---|
15491 | </enum>
|
---|
15492 |
|
---|
15493 | <interface
|
---|
15494 | name="IEventSource" extends="$unknown"
|
---|
15495 | uuid="9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538"
|
---|
15496 | wsmap="managed"
|
---|
15497 | >
|
---|
15498 | <desc>
|
---|
15499 | Event source. Generally, any object which could generate events can be an event source,
|
---|
15500 | or aggregate one. To simplify using one-way protocols such as webservices running on top of HTTP(S),
|
---|
15501 | an event source can work with listeners in either active or passive mode. In active mode it is up to
|
---|
15502 | the IEventSource implementation to call <link to="IEventListener::handleEvent" />, in passive mode the
|
---|
15503 | event source keeps track of pending events for each listener and returns available events on demand.
|
---|
15504 |
|
---|
15505 | See <link to="IEvent" /> for an introduction to VirtualBox event handling.
|
---|
15506 | </desc>
|
---|
15507 |
|
---|
15508 | <method name="createListener">
|
---|
15509 | <desc>
|
---|
15510 | Creates a new listener object, useful for passive mode.
|
---|
15511 | </desc>
|
---|
15512 | <param name="listener" type="IEventListener" dir="return"/>
|
---|
15513 | </method>
|
---|
15514 |
|
---|
15515 | <method name="createAggregator">
|
---|
15516 | <desc>
|
---|
15517 | Creates an aggregator event source, collecting events from multiple sources.
|
---|
15518 | This way a single listener can listen for events coming from multiple sources,
|
---|
15519 | using a single blocking getEvent() on the returned aggregator.
|
---|
15520 | </desc>
|
---|
15521 | <param name="subordinates" type="IEventSource" dir="in" safearray="yes">
|
---|
15522 | <desc>
|
---|
15523 | Subordinate event source this one aggregatres.
|
---|
15524 | </desc>
|
---|
15525 | </param>
|
---|
15526 | <param name="result" type="IEventSource" dir="return">
|
---|
15527 | <desc>
|
---|
15528 | Event source aggregating passed sources.
|
---|
15529 | </desc>
|
---|
15530 | </param>
|
---|
15531 | </method>
|
---|
15532 |
|
---|
15533 | <method name="registerListener">
|
---|
15534 | <desc>
|
---|
15535 | Register an event listener.
|
---|
15536 |
|
---|
15537 | <note>
|
---|
15538 | To avoid system overload, the VirtualBox server process checks if passive event
|
---|
15539 | listeners call <link to="IEventSource::getEvent"/> frequently enough. In the
|
---|
15540 | current implementation, if more than 500 pending events are detected for a passive
|
---|
15541 | event listener, it is forcefully unregistered by the system, and further
|
---|
15542 | <link to="#getEvent" /> calls will return @c VBOX_E_OBJECT_NOT_FOUND.
|
---|
15543 | </note>
|
---|
15544 | </desc>
|
---|
15545 | <param name="listener" type="IEventListener" dir="in">
|
---|
15546 | <desc>Listener to register.</desc>
|
---|
15547 | </param>
|
---|
15548 | <param name="interesting" type="VBoxEventType" dir="in" safearray="yes">
|
---|
15549 | <desc>
|
---|
15550 | Event types listener is interested in. One can use wildcards like -
|
---|
15551 | <link to="VBoxEventType_Any"/> to specify wildcards, matching more
|
---|
15552 | than one event.
|
---|
15553 | </desc>
|
---|
15554 | </param>
|
---|
15555 | <param name="active" type="boolean" dir="in">
|
---|
15556 | <desc>
|
---|
15557 | Which mode this listener is operating in.
|
---|
15558 | In active mode, <link to="IEventListener::handleEvent" /> is called directly.
|
---|
15559 | In passive mode, an internal event queue is created for this this IEventListener.
|
---|
15560 | For each event coming in, it is added to queues for all interested registered passive
|
---|
15561 | listeners. It is then up to the external code to call the listener's
|
---|
15562 | <link to="IEventListener::handleEvent" /> method. When done with an event, the
|
---|
15563 | external code must call <link to="#eventProcessed" />.
|
---|
15564 | </desc>
|
---|
15565 | </param>
|
---|
15566 | </method>
|
---|
15567 |
|
---|
15568 | <method name="unregisterListener">
|
---|
15569 | <desc>
|
---|
15570 | Unregister an event listener. If listener is passive, and some waitable events are still
|
---|
15571 | in queue they are marked as processed automatically.
|
---|
15572 | </desc>
|
---|
15573 | <param name="listener" type="IEventListener" dir="in">
|
---|
15574 | <desc>Listener to unregister.</desc>
|
---|
15575 | </param>
|
---|
15576 | </method>
|
---|
15577 |
|
---|
15578 | <method name="fireEvent">
|
---|
15579 | <desc>
|
---|
15580 | Fire an event for this source.
|
---|
15581 | </desc>
|
---|
15582 | <param name="event" type="IEvent" dir="in">
|
---|
15583 | <desc>Event to deliver.</desc>
|
---|
15584 | </param>
|
---|
15585 | <param name="timeout" type="long" dir="in">
|
---|
15586 | <desc>
|
---|
15587 | Maximum time to wait for event processing (if event is waitable), in ms;
|
---|
15588 | 0 = no wait, -1 = indefinite wait.
|
---|
15589 | </desc>
|
---|
15590 | </param>
|
---|
15591 | <param name="result" type="boolean" dir="return">
|
---|
15592 | <desc>true if an event was delivered to all targets, or is non-waitable.</desc>
|
---|
15593 | </param>
|
---|
15594 | </method>
|
---|
15595 |
|
---|
15596 | <method name="getEvent">
|
---|
15597 | <desc>
|
---|
15598 | Get events from this peer's event queue (for passive mode). Calling this method
|
---|
15599 | regularly is required for passive event listeners to avoid system overload;
|
---|
15600 | see <link to="IEventSource::registerListener" /> for details.
|
---|
15601 |
|
---|
15602 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
15603 | Listener is not registered, or autounregistered.
|
---|
15604 | </result>
|
---|
15605 | </desc>
|
---|
15606 | <param name="listener" type="IEventListener" dir="in">
|
---|
15607 | <desc>Which listener to get data for.</desc>
|
---|
15608 | </param>
|
---|
15609 | <param name="timeout" type="long" dir="in">
|
---|
15610 | <desc>
|
---|
15611 | Maximum time to wait for events, in ms;
|
---|
15612 | 0 = no wait, -1 = indefinite wait.
|
---|
15613 | </desc>
|
---|
15614 | </param>
|
---|
15615 | <param name="event" type="IEvent" dir="return">
|
---|
15616 | <desc>Event retrieved, or null if none available.</desc>
|
---|
15617 | </param>
|
---|
15618 | </method>
|
---|
15619 |
|
---|
15620 | <method name="eventProcessed">
|
---|
15621 | <desc>
|
---|
15622 | Must be called for waitable events after a particular listener finished its
|
---|
15623 | event processing. When all listeners of a particular event have called this
|
---|
15624 | method, the system will then call <link to="IEvent::setProcessed" />.
|
---|
15625 | </desc>
|
---|
15626 | <param name="listener" type="IEventListener" dir="in">
|
---|
15627 | <desc>Which listener processed event.</desc>
|
---|
15628 | </param>
|
---|
15629 | <param name="event" type="IEvent" dir="in">
|
---|
15630 | <desc>Which event.</desc>
|
---|
15631 | </param>
|
---|
15632 | </method>
|
---|
15633 |
|
---|
15634 | </interface>
|
---|
15635 |
|
---|
15636 | <interface
|
---|
15637 | name="IEventListener" extends="$unknown"
|
---|
15638 | uuid="67099191-32e7-4f6c-85ee-422304c71b90"
|
---|
15639 | wsmap="managed"
|
---|
15640 | >
|
---|
15641 | <desc>
|
---|
15642 | Event listener. An event listener can work in either active or passive mode, depending on the way
|
---|
15643 | it was registered.
|
---|
15644 | See <link to="IEvent" /> for an introduction to VirtualBox event handling.
|
---|
15645 | </desc>
|
---|
15646 |
|
---|
15647 | <method name="handleEvent">
|
---|
15648 | <desc>
|
---|
15649 | Handle event callback for active listeners. It is not called for passive listeners. After
|
---|
15650 | calling handleEvent() on all active listeners and having received acknowledgement from all
|
---|
15651 | passive listeners via IEventSource::eventProcessed(), the event is marked as processed and
|
---|
15652 | IEvent::waitProcessed() will return immediately.
|
---|
15653 | </desc>
|
---|
15654 | <param name="event" type="IEvent" dir="in">
|
---|
15655 | <desc>Event available.</desc>
|
---|
15656 | </param>
|
---|
15657 | </method>
|
---|
15658 |
|
---|
15659 | </interface>
|
---|
15660 |
|
---|
15661 | <interface
|
---|
15662 | name="IEvent" extends="$unknown"
|
---|
15663 | uuid="0ca2adba-8f30-401b-a8cd-fe31dbe839c0"
|
---|
15664 | wsmap="managed"
|
---|
15665 | >
|
---|
15666 | <desc>
|
---|
15667 | Abstract parent interface for VirtualBox events. Actual events will typically implement
|
---|
15668 | a more specific interface which derives from this (see below).
|
---|
15669 |
|
---|
15670 | <b>Introduction to VirtualBox events</b>
|
---|
15671 |
|
---|
15672 | Generally speaking, an event (represented by this interface) signals that something
|
---|
15673 | happened, while an event listener (see <link to="IEventListener" />) represents an
|
---|
15674 | entity that is interested in certain events. In order for this to work with
|
---|
15675 | unidirectional protocols (i.e. web services), the concepts of passive and active
|
---|
15676 | listener are used.
|
---|
15677 |
|
---|
15678 | Event consumers can register themselves as listeners, providing an array of
|
---|
15679 | events they are interested in (see <link to="IEventSource::registerListener" />).
|
---|
15680 | When an event triggers, the listener is notified about the event. The exact
|
---|
15681 | mechanism of the notification depends on whether the listener was registered as
|
---|
15682 | an active or passive listener:
|
---|
15683 |
|
---|
15684 | <ul>
|
---|
15685 | <li>An active listener is very similar to a callback: it is a function invoked
|
---|
15686 | by the API. As opposed to the callbacks that were used in the API before
|
---|
15687 | VirtualBox 4.0 however, events are now objects with an interface hierarchy.
|
---|
15688 | </li>
|
---|
15689 |
|
---|
15690 | <li>Passive listeners are somewhat trickier to implement, but do not require
|
---|
15691 | a client function to be callable, which is not an option with scripting
|
---|
15692 | languages or web service clients. Internally the <link to="IEventSource" />
|
---|
15693 | implementation maintains an event queue for each passive listener, and
|
---|
15694 | newly arrived events are put in this queue. When the listener calls
|
---|
15695 | <link to="IEventSource::getEvent"/>, first element from its internal event
|
---|
15696 | queue is returned. When the client completes processing of an event,
|
---|
15697 | the <link to="IEventSource::eventProcessed" /> function must be called,
|
---|
15698 | acknowledging that the event was processed. It supports implementing
|
---|
15699 | waitable events. On passive listener unregistration, all events from its
|
---|
15700 | queue are auto-acknowledged.
|
---|
15701 | </li>
|
---|
15702 | </ul>
|
---|
15703 |
|
---|
15704 | Waitable events are useful in situations where the event generator wants to track
|
---|
15705 | delivery or a party wants to wait until all listeners have completed the event. A
|
---|
15706 | typical example would be a vetoable event (see <link to="IVetoEvent" />) where a
|
---|
15707 | listeners might veto a certain action, and thus the event producer has to make
|
---|
15708 | sure that all listeners have processed the event and not vetoed before taking
|
---|
15709 | the action.
|
---|
15710 |
|
---|
15711 | A given event may have both passive and active listeners at the same time.
|
---|
15712 |
|
---|
15713 | <b>Using events</b>
|
---|
15714 |
|
---|
15715 | Any VirtualBox object capable of producing externally visible events provides an
|
---|
15716 | @c eventSource read-only attribute, which is of the type <link to="IEventSource" />.
|
---|
15717 | This event source object is notified by VirtualBox once something has happened, so
|
---|
15718 | consumers may register event listeners with this event source. To register a listener,
|
---|
15719 | an object implementing the <link to="IEventListener" /> interface must be provided.
|
---|
15720 | For active listeners, such an object is typically created by the consumer, while for
|
---|
15721 | passive listeners <link to="IEventSource::createListener" /> should be used. Please
|
---|
15722 | note that a listener created with @c createListener() must not be used as an active listener.
|
---|
15723 |
|
---|
15724 | Once created, the listener must be registered to listen for the desired events
|
---|
15725 | (see <link to="IEventSource::registerListener" />), providing an array of
|
---|
15726 | <link to="VBoxEventType" /> enums. Those elements can either be the individual
|
---|
15727 | event IDs or wildcards matching multiple event IDs.
|
---|
15728 |
|
---|
15729 | After registration, the callback's <link to="IEventListener::handleEvent" /> method is
|
---|
15730 | called automatically when the event is triggered, while passive listeners have to call
|
---|
15731 | <link to="IEventSource::getEvent" /> and <link to="IEventSource::eventProcessed" /> in
|
---|
15732 | an event processing loop.
|
---|
15733 |
|
---|
15734 | The IEvent interface is an abstract parent interface for all such VirtualBox events
|
---|
15735 | coming in. As a result, the standard use pattern inside <link to="IEventListener::handleEvent" />
|
---|
15736 | or the event processing loop is to check the <link to="#type" /> attribute of the event and
|
---|
15737 | then cast to the appropriate specific interface using @c QueryInterface().
|
---|
15738 | </desc>
|
---|
15739 |
|
---|
15740 | <attribute name="type" readonly="yes" type="VBoxEventType">
|
---|
15741 | <desc>
|
---|
15742 | Event type.
|
---|
15743 | </desc>
|
---|
15744 | </attribute>
|
---|
15745 |
|
---|
15746 | <attribute name="source" readonly="yes" type="IEventSource">
|
---|
15747 | <desc>
|
---|
15748 | Source of this event.
|
---|
15749 | </desc>
|
---|
15750 | </attribute>
|
---|
15751 |
|
---|
15752 | <attribute name="waitable" readonly="yes" type="boolean">
|
---|
15753 | <desc>
|
---|
15754 | If we can wait for this event being processed. If false, waitProcessed() returns immediately,
|
---|
15755 | and setProcessed() doesn't make sense. Non-waitable events are generally better performing,
|
---|
15756 | as no additional overhead associated with waitability imposed.
|
---|
15757 | Waitable events are needed when one need to be able to wait for particular event processed,
|
---|
15758 | for example for vetoable changes, or if event refers to some resource which need to be kept immutable
|
---|
15759 | until all consumers confirmed events.
|
---|
15760 | </desc>
|
---|
15761 | </attribute>
|
---|
15762 |
|
---|
15763 | <method name="setProcessed">
|
---|
15764 | <desc>
|
---|
15765 | Internal method called by the system when all listeners of a particular event have called
|
---|
15766 | <link to="IEventSource::eventProcessed" />. This should not be called by client code.
|
---|
15767 | </desc>
|
---|
15768 | </method>
|
---|
15769 |
|
---|
15770 | <method name="waitProcessed">
|
---|
15771 | <desc>
|
---|
15772 | Wait until time outs, or this event is processed. Event must be waitable for this operation to have
|
---|
15773 | described semantics, for non-waitable returns true immediately.
|
---|
15774 | </desc>
|
---|
15775 | <param name="timeout" type="long" dir="in">
|
---|
15776 | <desc>
|
---|
15777 | Maximum time to wait for event processeing, in ms;
|
---|
15778 | 0 = no wait, -1 = indefinite wait.
|
---|
15779 | </desc>
|
---|
15780 | </param>
|
---|
15781 | <param name="result" type="boolean" dir="return">
|
---|
15782 | <desc>If this event was processed before timeout.</desc>
|
---|
15783 | </param>
|
---|
15784 | </method>
|
---|
15785 | </interface>
|
---|
15786 |
|
---|
15787 |
|
---|
15788 | <interface
|
---|
15789 | name="IReusableEvent" extends="IEvent"
|
---|
15790 | uuid="69bfb134-80f6-4266-8e20-16371f68fa25"
|
---|
15791 | wsmap="managed"
|
---|
15792 | >
|
---|
15793 | <desc>Base abstract interface for all reusable events.</desc>
|
---|
15794 |
|
---|
15795 | <attribute name="generation" readonly="yes" type="unsigned long">
|
---|
15796 | <desc>Current generation of event, incremented on reuse.</desc>
|
---|
15797 | </attribute>
|
---|
15798 |
|
---|
15799 | <method name="reuse">
|
---|
15800 | <desc>
|
---|
15801 | Marks an event as reused, increments 'generation', fields shall no
|
---|
15802 | longer be considered valid.
|
---|
15803 | </desc>
|
---|
15804 | </method>
|
---|
15805 | </interface>
|
---|
15806 |
|
---|
15807 | <interface
|
---|
15808 | name="IMachineEvent" extends="IEvent"
|
---|
15809 | uuid="92ed7b1a-0d96-40ed-ae46-a564d484325e"
|
---|
15810 | wsmap="managed" id="MachineEvent"
|
---|
15811 | >
|
---|
15812 | <desc>Base abstract interface for all machine events.</desc>
|
---|
15813 |
|
---|
15814 | <attribute name="machineId" readonly="yes" type="uuid" mod="string">
|
---|
15815 | <desc>ID of the machine this event relates to.</desc>
|
---|
15816 | </attribute>
|
---|
15817 |
|
---|
15818 | </interface>
|
---|
15819 |
|
---|
15820 | <interface
|
---|
15821 | name="IMachineStateChangedEvent" extends="IMachineEvent"
|
---|
15822 | uuid="5748F794-48DF-438D-85EB-98FFD70D18C9"
|
---|
15823 | wsmap="managed" autogen="VBoxEvent" id="OnMachineStateChanged"
|
---|
15824 | >
|
---|
15825 | <desc>Machine state change event.</desc>
|
---|
15826 |
|
---|
15827 | <attribute name="state" readonly="yes" type="MachineState">
|
---|
15828 | <desc>New execution state.</desc>
|
---|
15829 | </attribute>
|
---|
15830 | </interface>
|
---|
15831 |
|
---|
15832 | <interface
|
---|
15833 | name="IMachineDataChangedEvent" extends="IMachineEvent"
|
---|
15834 | uuid="6AA70A6C-0DCA-4810-8C5C-457B278E3D49"
|
---|
15835 | wsmap="managed" autogen="VBoxEvent" id="OnMachineDataChanged"
|
---|
15836 | >
|
---|
15837 | <desc>
|
---|
15838 | Any of the settings of the given machine has changed.
|
---|
15839 | </desc>
|
---|
15840 | </interface>
|
---|
15841 |
|
---|
15842 | <interface
|
---|
15843 | name="IMediumRegisteredEvent" extends="IEvent"
|
---|
15844 | uuid="53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
|
---|
15845 | wsmap="managed" autogen="VBoxEvent" id="OnMediumRegistered"
|
---|
15846 | >
|
---|
15847 | <desc>
|
---|
15848 | The given medium was registered or unregistered
|
---|
15849 | within this VirtualBox installation.
|
---|
15850 | </desc>
|
---|
15851 |
|
---|
15852 | <attribute name="mediumId" readonly="yes" type="uuid" mod="string">
|
---|
15853 | <desc>ID of the medium this event relates to.</desc>
|
---|
15854 | </attribute>
|
---|
15855 |
|
---|
15856 | <attribute name="mediumType" readonly="yes" type="DeviceType">
|
---|
15857 | <desc>Type of the medium this event relates to.</desc>
|
---|
15858 | </attribute>
|
---|
15859 |
|
---|
15860 | <attribute name="registered" type="boolean" readonly="yes">
|
---|
15861 | <desc>
|
---|
15862 | If @c true, the medium was registered, otherwise it was
|
---|
15863 | unregistered.
|
---|
15864 | </desc>
|
---|
15865 | </attribute>
|
---|
15866 | </interface>
|
---|
15867 |
|
---|
15868 | <interface
|
---|
15869 | name="IMachineRegisteredEvent" extends="IMachineEvent"
|
---|
15870 | uuid="c354a762-3ff2-4f2e-8f09-07382ee25088"
|
---|
15871 | wsmap="managed" autogen="VBoxEvent" id="OnMachineRegistered"
|
---|
15872 | >
|
---|
15873 | <desc>
|
---|
15874 | The given machine was registered or unregistered
|
---|
15875 | within this VirtualBox installation.
|
---|
15876 | </desc>
|
---|
15877 |
|
---|
15878 | <attribute name="registered" type="boolean" readonly="yes">
|
---|
15879 | <desc>
|
---|
15880 | If @c true, the machine was registered, otherwise it was
|
---|
15881 | unregistered.
|
---|
15882 | </desc>
|
---|
15883 | </attribute>
|
---|
15884 | </interface>
|
---|
15885 |
|
---|
15886 | <interface
|
---|
15887 | name="ISessionStateChangedEvent" extends="IMachineEvent"
|
---|
15888 | uuid="714a3eef-799a-4489-86cd-fe8e45b2ff8e"
|
---|
15889 | wsmap="managed" autogen="VBoxEvent" id="OnSessionStateChanged"
|
---|
15890 | >
|
---|
15891 | <desc>
|
---|
15892 | The state of the session for the given machine was changed.
|
---|
15893 | <see>IMachine::sessionState</see>
|
---|
15894 | </desc>
|
---|
15895 |
|
---|
15896 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
15897 | <desc>
|
---|
15898 | New session state.
|
---|
15899 | </desc>
|
---|
15900 | </attribute>
|
---|
15901 | </interface>
|
---|
15902 |
|
---|
15903 | <interface
|
---|
15904 | name="IGuestPropertyChangedEvent" extends="IMachineEvent"
|
---|
15905 | uuid="3f63597a-26f1-4edb-8dd2-6bddd0912368"
|
---|
15906 | wsmap="managed" autogen="VBoxEvent" id="OnGuestPropertyChanged"
|
---|
15907 | >
|
---|
15908 | <desc>
|
---|
15909 | Notification when a guest property has changed.
|
---|
15910 | </desc>
|
---|
15911 |
|
---|
15912 | <attribute name="name" readonly="yes" type="wstring">
|
---|
15913 | <desc>
|
---|
15914 | The name of the property that has changed.
|
---|
15915 | </desc>
|
---|
15916 | </attribute>
|
---|
15917 |
|
---|
15918 | <attribute name="value" readonly="yes" type="wstring">
|
---|
15919 | <desc>
|
---|
15920 | The new property value.
|
---|
15921 | </desc>
|
---|
15922 | </attribute>
|
---|
15923 |
|
---|
15924 | <attribute name="flags" readonly="yes" type="wstring">
|
---|
15925 | <desc>
|
---|
15926 | The new property flags.
|
---|
15927 | </desc>
|
---|
15928 | </attribute>
|
---|
15929 |
|
---|
15930 | </interface>
|
---|
15931 |
|
---|
15932 | <interface
|
---|
15933 | name="ISnapshotEvent" extends="IMachineEvent"
|
---|
15934 | uuid="21637b0e-34b8-42d3-acfb-7e96daf77c22"
|
---|
15935 | wsmap="managed" id="SnapshotEvent"
|
---|
15936 | >
|
---|
15937 | <desc>Base interface for all snapshot events.</desc>
|
---|
15938 |
|
---|
15939 | <attribute name="snapshotId" readonly="yes" type="uuid" mod="string">
|
---|
15940 | <desc>ID of the snapshot this event relates to.</desc>
|
---|
15941 | </attribute>
|
---|
15942 |
|
---|
15943 | </interface>
|
---|
15944 |
|
---|
15945 | <interface
|
---|
15946 | name="ISnapshotTakenEvent" extends="ISnapshotEvent"
|
---|
15947 | uuid="d27c0b3d-6038-422c-b45e-6d4a0503d9f1"
|
---|
15948 | wsmap="managed" autogen="VBoxEvent" id="OnSnapshotTaken"
|
---|
15949 | >
|
---|
15950 | <desc>
|
---|
15951 | A new snapshot of the machine has been taken.
|
---|
15952 | <see>ISnapshot</see>
|
---|
15953 | </desc>
|
---|
15954 | </interface>
|
---|
15955 |
|
---|
15956 | <interface
|
---|
15957 | name="ISnapshotDeletedEvent" extends="ISnapshotEvent"
|
---|
15958 | uuid="c48f3401-4a9e-43f4-b7a7-54bd285e22f4"
|
---|
15959 | wsmap="managed" autogen="VBoxEvent" id="OnSnapshotDeleted"
|
---|
15960 | >
|
---|
15961 | <desc>
|
---|
15962 | Snapshot of the given machine has been deleted.
|
---|
15963 |
|
---|
15964 | <note>
|
---|
15965 | This notification is delivered <b>after</b> the snapshot
|
---|
15966 | object has been uninitialized on the server (so that any
|
---|
15967 | attempt to call its methods will return an error).
|
---|
15968 | </note>
|
---|
15969 |
|
---|
15970 | <see>ISnapshot</see>
|
---|
15971 | </desc>
|
---|
15972 | </interface>
|
---|
15973 |
|
---|
15974 | <interface
|
---|
15975 | name="ISnapshotChangedEvent" extends="ISnapshotEvent"
|
---|
15976 | uuid="07541941-8079-447a-a33e-47a69c7980db"
|
---|
15977 | wsmap="managed" autogen="VBoxEvent" id="OnSnapshotChanged"
|
---|
15978 | >
|
---|
15979 | <desc>
|
---|
15980 | Snapshot properties (name and/or description) have been changed.
|
---|
15981 | <see>ISnapshot</see>
|
---|
15982 | </desc>
|
---|
15983 | </interface>
|
---|
15984 |
|
---|
15985 | <interface
|
---|
15986 | name="IMousePointerShapeChangedEvent" extends="IEvent"
|
---|
15987 | uuid="a6dcf6e8-416b-4181-8c4a-45ec95177aef"
|
---|
15988 | wsmap="managed" autogen="VBoxEvent" id="OnMousePointerShapeChanged"
|
---|
15989 | >
|
---|
15990 | <desc>
|
---|
15991 | Notification when the guest mouse pointer shape has
|
---|
15992 | changed. The new shape data is given.
|
---|
15993 | </desc>
|
---|
15994 |
|
---|
15995 | <attribute name="visible" type="boolean" readonly="yes">
|
---|
15996 | <desc>
|
---|
15997 | Flag whether the pointer is visible.
|
---|
15998 | </desc>
|
---|
15999 | </attribute>
|
---|
16000 | <attribute name="alpha" type="boolean" readonly="yes">
|
---|
16001 | <desc>
|
---|
16002 | Flag whether the pointer has an alpha channel.
|
---|
16003 | </desc>
|
---|
16004 | </attribute>
|
---|
16005 | <attribute name="xhot" type="unsigned long" readonly="yes">
|
---|
16006 | <desc>
|
---|
16007 | The pointer hot spot X coordinate.
|
---|
16008 | </desc>
|
---|
16009 | </attribute>
|
---|
16010 | <attribute name="yhot" type="unsigned long" readonly="yes">
|
---|
16011 | <desc>
|
---|
16012 | The pointer hot spot Y coordinate.
|
---|
16013 | </desc>
|
---|
16014 | </attribute>
|
---|
16015 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
16016 | <desc>
|
---|
16017 | Width of the pointer shape in pixels.
|
---|
16018 | </desc>
|
---|
16019 | </attribute>
|
---|
16020 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
16021 | <desc>
|
---|
16022 | Height of the pointer shape in pixels.
|
---|
16023 | </desc>
|
---|
16024 | </attribute>
|
---|
16025 | <attribute name="shape" type="octet" safearray="yes" readonly="yes">
|
---|
16026 | <desc>
|
---|
16027 | Shape buffer arrays.
|
---|
16028 |
|
---|
16029 | The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
|
---|
16030 | followed by a 32-bpp XOR (color) mask.
|
---|
16031 |
|
---|
16032 | For pointers without alpha channel the XOR mask pixels are 32
|
---|
16033 | bit values: (lsb)BGR0(msb). For pointers with alpha channel
|
---|
16034 | the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
16035 |
|
---|
16036 | An AND mask is used for pointers with alpha channel, so if the
|
---|
16037 | callback does not support alpha, the pointer could be
|
---|
16038 | displayed as a normal color pointer.
|
---|
16039 |
|
---|
16040 | The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
|
---|
16041 | size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
|
---|
16042 | height</tt>. The padding bits at the end of each scanline are
|
---|
16043 | undefined.
|
---|
16044 |
|
---|
16045 | The XOR mask follows the AND mask on the next 4-byte aligned
|
---|
16046 | offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>.
|
---|
16047 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
16048 | The XOR mask scanlines have no gap between them and the size of
|
---|
16049 | the XOR mask is: <tt>cXor = width * 4 * height</tt>.
|
---|
16050 |
|
---|
16051 | <note>
|
---|
16052 | If @a shape is 0, only the pointer visibility is changed.
|
---|
16053 | </note>
|
---|
16054 | </desc>
|
---|
16055 | </attribute>
|
---|
16056 | </interface>
|
---|
16057 |
|
---|
16058 | <interface
|
---|
16059 | name="IMouseCapabilityChangedEvent" extends="IEvent"
|
---|
16060 | uuid="d633ad48-820c-4207-b46c-6bd3596640d5"
|
---|
16061 | wsmap="managed" autogen="VBoxEvent" id="OnMouseCapabilityChanged"
|
---|
16062 | >
|
---|
16063 | <desc>
|
---|
16064 | Notification when the mouse capabilities reported by the
|
---|
16065 | guest have changed. The new capabilities are passed.
|
---|
16066 | </desc>
|
---|
16067 | <attribute name="supportsAbsolute" type="boolean" readonly="yes">
|
---|
16068 | <desc>
|
---|
16069 | Supports absolute coordinates.
|
---|
16070 | </desc>
|
---|
16071 | </attribute>
|
---|
16072 | <attribute name="supportsRelative" type="boolean" readonly="yes">
|
---|
16073 | <desc>
|
---|
16074 | Supports relative coordinates.
|
---|
16075 | </desc>
|
---|
16076 | </attribute>
|
---|
16077 | <attribute name="needsHostCursor" type="boolean" readonly="yes">
|
---|
16078 | <desc>
|
---|
16079 | If host cursor is needed.
|
---|
16080 | </desc>
|
---|
16081 | </attribute>
|
---|
16082 | </interface>
|
---|
16083 |
|
---|
16084 | <interface
|
---|
16085 | name="IKeyboardLedsChangedEvent" extends="IEvent"
|
---|
16086 | uuid="6DDEF35E-4737-457B-99FC-BC52C851A44F"
|
---|
16087 | wsmap="managed" autogen="VBoxEvent" id="OnKeyboardLedsChanged"
|
---|
16088 | >
|
---|
16089 | <desc>
|
---|
16090 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
16091 | to alter the state of the keyboard LEDs.
|
---|
16092 | </desc>
|
---|
16093 | <attribute name="numLock" type="boolean" readonly="yes">
|
---|
16094 | <desc>
|
---|
16095 | NumLock status.
|
---|
16096 | </desc>
|
---|
16097 | </attribute>
|
---|
16098 | <attribute name="capsLock" type="boolean" readonly="yes">
|
---|
16099 | <desc>
|
---|
16100 | CapsLock status.
|
---|
16101 | </desc>
|
---|
16102 | </attribute>
|
---|
16103 | <attribute name="scrollLock" type="boolean" readonly="yes">
|
---|
16104 | <desc>
|
---|
16105 | ScrollLock status.
|
---|
16106 | </desc>
|
---|
16107 | </attribute>
|
---|
16108 | </interface>
|
---|
16109 |
|
---|
16110 | <interface
|
---|
16111 | name="IStateChangedEvent" extends="IEvent"
|
---|
16112 | uuid="4376693C-CF37-453B-9289-3B0F521CAF27"
|
---|
16113 | wsmap="managed" autogen="VBoxEvent" id="OnStateChanged"
|
---|
16114 | >
|
---|
16115 | <desc>
|
---|
16116 | Notification when the execution state of the machine has changed.
|
---|
16117 | The new state is given.
|
---|
16118 | </desc>
|
---|
16119 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
16120 | <desc>
|
---|
16121 | New machine state.
|
---|
16122 | </desc>
|
---|
16123 | </attribute>
|
---|
16124 | </interface>
|
---|
16125 |
|
---|
16126 | <interface
|
---|
16127 | name="IAdditionsStateChangedEvent" extends="IEvent"
|
---|
16128 | uuid="D70F7915-DA7C-44C8-A7AC-9F173490446A"
|
---|
16129 | wsmap="managed" autogen="VBoxEvent" id="OnAdditionsStateChanged"
|
---|
16130 | >
|
---|
16131 | <desc>
|
---|
16132 | Notification when a Guest Additions property changes.
|
---|
16133 | Interested callees should query IGuest attributes to
|
---|
16134 | find out what has changed.
|
---|
16135 | </desc>
|
---|
16136 | </interface>
|
---|
16137 |
|
---|
16138 | <interface
|
---|
16139 | name="INetworkAdapterChangedEvent" extends="IEvent"
|
---|
16140 | uuid="08889892-1EC6-4883-801D-77F56CFD0103"
|
---|
16141 | wsmap="managed" autogen="VBoxEvent" id="OnNetworkAdapterChanged"
|
---|
16142 | >
|
---|
16143 | <desc>
|
---|
16144 | Notification when a property of one of the
|
---|
16145 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
16146 | changes. Interested callees should use INetworkAdapter methods and
|
---|
16147 | attributes to find out what has changed.
|
---|
16148 | </desc>
|
---|
16149 | <attribute name="networkAdapter" type="INetworkAdapter" readonly="yes">
|
---|
16150 | <desc>
|
---|
16151 | Network adapter that is subject to change.
|
---|
16152 | </desc>
|
---|
16153 | </attribute>
|
---|
16154 | </interface>
|
---|
16155 |
|
---|
16156 | <interface
|
---|
16157 | name="ISerialPortChangedEvent" extends="IEvent"
|
---|
16158 | uuid="3BA329DC-659C-488B-835C-4ECA7AE71C6C"
|
---|
16159 | wsmap="managed" autogen="VBoxEvent" id="OnSerialPortChanged"
|
---|
16160 | >
|
---|
16161 | <desc>
|
---|
16162 | Notification when a property of one of the
|
---|
16163 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
16164 | Interested callees should use ISerialPort methods and attributes
|
---|
16165 | to find out what has changed.
|
---|
16166 | </desc>
|
---|
16167 | <attribute name="serialPort" type="ISerialPort" readonly="yes">
|
---|
16168 | <desc>
|
---|
16169 | Serial port that is subject to change.
|
---|
16170 | </desc>
|
---|
16171 | </attribute>
|
---|
16172 | </interface>
|
---|
16173 |
|
---|
16174 | <interface
|
---|
16175 | name="IParallelPortChangedEvent" extends="IEvent"
|
---|
16176 | uuid="813C99FC-9849-4F47-813E-24A75DC85615"
|
---|
16177 | wsmap="managed" autogen="VBoxEvent" id="OnParallelPortChanged"
|
---|
16178 | >
|
---|
16179 | <desc>
|
---|
16180 | Notification when a property of one of the
|
---|
16181 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
16182 | changes. Interested callees should use ISerialPort methods and
|
---|
16183 | attributes to find out what has changed.
|
---|
16184 | </desc>
|
---|
16185 | <attribute name="parallelPort" type="IParallelPort" readonly="yes">
|
---|
16186 | <desc>
|
---|
16187 | Parallel port that is subject to change.
|
---|
16188 | </desc>
|
---|
16189 | </attribute>
|
---|
16190 | </interface>
|
---|
16191 |
|
---|
16192 | <interface
|
---|
16193 | name="IStorageControllerChangedEvent" extends="IEvent"
|
---|
16194 | uuid="715212BF-DA59-426E-8230-3831FAA52C56"
|
---|
16195 | wsmap="managed" autogen="VBoxEvent" id="OnStorageControllerChanged"
|
---|
16196 | >
|
---|
16197 | <desc>
|
---|
16198 | Notification when a
|
---|
16199 | <link to="IMachine::mediumAttachments">medium attachment</link>
|
---|
16200 | changes.
|
---|
16201 | </desc>
|
---|
16202 | </interface>
|
---|
16203 |
|
---|
16204 | <interface
|
---|
16205 | name="IMediumChangedEvent" extends="IEvent"
|
---|
16206 | uuid="0FE2DA40-5637-472A-9736-72019EABD7DE"
|
---|
16207 | wsmap="managed" autogen="VBoxEvent" id="OnMediumChanged"
|
---|
16208 | >
|
---|
16209 | <desc>
|
---|
16210 | Notification when a
|
---|
16211 | <link to="IMachine::mediumAttachments">medium attachment</link>
|
---|
16212 | changes.
|
---|
16213 | </desc>
|
---|
16214 | <attribute name="mediumAttachment" type="IMediumAttachment" readonly="yes">
|
---|
16215 | <desc>
|
---|
16216 | Medium attachment that is subject to change.
|
---|
16217 | </desc>
|
---|
16218 | </attribute>
|
---|
16219 | </interface>
|
---|
16220 |
|
---|
16221 | <interface
|
---|
16222 | name="ICPUChangedEvent" extends="IEvent"
|
---|
16223 | uuid="D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"
|
---|
16224 | wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged"
|
---|
16225 | >
|
---|
16226 | <desc>
|
---|
16227 | Notification when a CPU changes.
|
---|
16228 | </desc>
|
---|
16229 | <attribute name="cpu" type="unsigned long" readonly="yes">
|
---|
16230 | <desc>
|
---|
16231 | The CPU which changed.
|
---|
16232 | </desc>
|
---|
16233 | </attribute>
|
---|
16234 | <attribute name="add" type="boolean" readonly="yes">
|
---|
16235 | <desc>
|
---|
16236 | Flag whether the CPU was added or removed.
|
---|
16237 | </desc>
|
---|
16238 | </attribute>
|
---|
16239 | </interface>
|
---|
16240 |
|
---|
16241 | <interface
|
---|
16242 | name="ICPUExecutionCapChangedEvent" extends="IEvent"
|
---|
16243 | uuid="dfa7e4f5-b4a4-44ce-85a8-127ac5eb59dc"
|
---|
16244 | wsmap="managed" autogen="VBoxEvent" id="OnCPUExecutionCapChanged"
|
---|
16245 | >
|
---|
16246 | <desc>
|
---|
16247 | Notification when the CPU execution cap changes.
|
---|
16248 | </desc>
|
---|
16249 | <attribute name="executionCap" type="unsigned long" readonly="yes">
|
---|
16250 | <desc>
|
---|
16251 | The new CPU execution cap value. (1-100)
|
---|
16252 | </desc>
|
---|
16253 | </attribute>
|
---|
16254 | </interface>
|
---|
16255 |
|
---|
16256 | <interface
|
---|
16257 | name="IGuestKeyboardEvent" extends="IEvent"
|
---|
16258 | uuid="88394258-7006-40d4-b339-472ee3801844"
|
---|
16259 | wsmap="managed" autogen="VBoxEvent" id="OnGuestKeyboard"
|
---|
16260 | >
|
---|
16261 | <desc>
|
---|
16262 | Notification when guest keyboard event happens.
|
---|
16263 | </desc>
|
---|
16264 | <attribute name="scancodes" type="long" safearray="yes" readonly="yes">
|
---|
16265 | <desc>
|
---|
16266 | Array of scancodes.
|
---|
16267 | </desc>
|
---|
16268 | </attribute>
|
---|
16269 | </interface>
|
---|
16270 |
|
---|
16271 | <interface
|
---|
16272 | name="IGuestMouseEvent" extends="IReusableEvent"
|
---|
16273 | uuid="1f85d35c-c524-40ff-8e98-307000df0992"
|
---|
16274 | wsmap="managed" autogen="VBoxEvent" id="OnGuestMouse"
|
---|
16275 | >
|
---|
16276 | <desc>
|
---|
16277 | Notification when guest mouse event happens.
|
---|
16278 | </desc>
|
---|
16279 |
|
---|
16280 | <attribute name="absolute" type="boolean" readonly="yes">
|
---|
16281 | <desc>
|
---|
16282 | If this event is relative or absolute.
|
---|
16283 | </desc>
|
---|
16284 | </attribute>
|
---|
16285 |
|
---|
16286 | <attribute name="x" type="long" readonly="yes">
|
---|
16287 | <desc>
|
---|
16288 | New X position, or X delta.
|
---|
16289 | </desc>
|
---|
16290 | </attribute>
|
---|
16291 |
|
---|
16292 | <attribute name="y" type="long" readonly="yes">
|
---|
16293 | <desc>
|
---|
16294 | New Y position, or Y delta.
|
---|
16295 | </desc>
|
---|
16296 | </attribute>
|
---|
16297 |
|
---|
16298 | <attribute name="z" type="long" readonly="yes">
|
---|
16299 | <desc>
|
---|
16300 | Z delta.
|
---|
16301 | </desc>
|
---|
16302 | </attribute>
|
---|
16303 |
|
---|
16304 | <attribute name="w" type="long" readonly="yes">
|
---|
16305 | <desc>
|
---|
16306 | W delta.
|
---|
16307 | </desc>
|
---|
16308 | </attribute>
|
---|
16309 |
|
---|
16310 | <attribute name="buttons" type="long" readonly="yes">
|
---|
16311 | <desc>
|
---|
16312 | Button state bitmask.
|
---|
16313 | </desc>
|
---|
16314 | </attribute>
|
---|
16315 |
|
---|
16316 | </interface>
|
---|
16317 |
|
---|
16318 |
|
---|
16319 | <interface
|
---|
16320 | name="IVRDEServerChangedEvent" extends="IEvent"
|
---|
16321 | uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c"
|
---|
16322 | wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged"
|
---|
16323 | >
|
---|
16324 | <desc>
|
---|
16325 | Notification when a property of the
|
---|
16326 | <link to="IMachine::VRDEServer">VRDE server</link> changes.
|
---|
16327 | Interested callees should use IVRDEServer methods and attributes to
|
---|
16328 | find out what has changed.
|
---|
16329 | </desc>
|
---|
16330 | </interface>
|
---|
16331 |
|
---|
16332 | <interface
|
---|
16333 | name="IVRDEServerInfoChangedEvent" extends="IEvent"
|
---|
16334 | uuid="dd6a1080-e1b7-4339-a549-f0878115596e"
|
---|
16335 | wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged"
|
---|
16336 | >
|
---|
16337 | <desc>
|
---|
16338 | Notification when the status of the VRDE server changes. Interested callees
|
---|
16339 | should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link>
|
---|
16340 | attributes to find out what is the current status.
|
---|
16341 | </desc>
|
---|
16342 | </interface>
|
---|
16343 |
|
---|
16344 | <interface
|
---|
16345 | name="IUSBControllerChangedEvent" extends="IEvent"
|
---|
16346 | uuid="93BADC0C-61D9-4940-A084-E6BB29AF3D83"
|
---|
16347 | wsmap="managed" autogen="VBoxEvent" id="OnUSBControllerChanged"
|
---|
16348 | >
|
---|
16349 | <desc>
|
---|
16350 | Notification when a property of the virtual
|
---|
16351 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
16352 | Interested callees should use IUSBController methods and attributes to
|
---|
16353 | find out what has changed.
|
---|
16354 | </desc>
|
---|
16355 | </interface>
|
---|
16356 |
|
---|
16357 | <interface
|
---|
16358 | name="IUSBDeviceStateChangedEvent" extends="IEvent"
|
---|
16359 | uuid="806da61b-6679-422a-b629-51b06b0c6d93"
|
---|
16360 | wsmap="managed" autogen="VBoxEvent" id="OnUSBDeviceStateChanged"
|
---|
16361 | >
|
---|
16362 | <desc>
|
---|
16363 | Notification when a USB device is attached to or detached from
|
---|
16364 | the virtual USB controller.
|
---|
16365 |
|
---|
16366 | This notification is sent as a result of the indirect
|
---|
16367 | request to attach the device because it matches one of the
|
---|
16368 | machine USB filters, or as a result of the direct request
|
---|
16369 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
16370 | <link to="IConsole::detachUSBDevice"/>.
|
---|
16371 |
|
---|
16372 | This notification is sent in case of both a succeeded and a
|
---|
16373 | failed request completion. When the request succeeds, the
|
---|
16374 | @a error parameter is @c null, and the given device has been
|
---|
16375 | already added to (when @a attached is @c true) or removed from
|
---|
16376 | (when @a attached is @c false) the collection represented by
|
---|
16377 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
16378 | doesn't change and the @a error parameter represents the error
|
---|
16379 | message describing the failure.
|
---|
16380 | </desc>
|
---|
16381 | <attribute name="device" type="IUSBDevice" readonly="yes">
|
---|
16382 | <desc>
|
---|
16383 | Device that is subject to state change.
|
---|
16384 | </desc>
|
---|
16385 | </attribute>
|
---|
16386 | <attribute name="attached" type="boolean" readonly="yes">
|
---|
16387 | <desc>
|
---|
16388 | @c true if the device was attached and @c false otherwise.
|
---|
16389 | </desc>
|
---|
16390 | </attribute>
|
---|
16391 | <attribute name="error" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
16392 | <desc>
|
---|
16393 | @c null on success or an error message object on failure.
|
---|
16394 | </desc>
|
---|
16395 | </attribute>
|
---|
16396 | </interface>
|
---|
16397 |
|
---|
16398 | <interface
|
---|
16399 | name="ISharedFolderChangedEvent" extends="IEvent"
|
---|
16400 | uuid="B66349B5-3534-4239-B2DE-8E1535D94C0B"
|
---|
16401 | wsmap="managed" autogen="VBoxEvent" id="OnSharedFolderChanged"
|
---|
16402 | >
|
---|
16403 | <desc>
|
---|
16404 | Notification when a shared folder is added or removed.
|
---|
16405 | The @a scope argument defines one of three scopes:
|
---|
16406 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
16407 | (<link to="Scope_Global">Global</link>),
|
---|
16408 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
16409 | the machine (<link to="Scope_Machine">Machine</link>) or <link
|
---|
16410 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
16411 | machine (<link to="Scope_Session">Session</link>). Interested callees
|
---|
16412 | should use query the corresponding collections to find out what has
|
---|
16413 | changed.
|
---|
16414 | </desc>
|
---|
16415 | <attribute name="scope" type="Scope" readonly="yes">
|
---|
16416 | <desc>
|
---|
16417 | Scope of the notification.
|
---|
16418 | </desc>
|
---|
16419 | </attribute>
|
---|
16420 | </interface>
|
---|
16421 |
|
---|
16422 | <interface
|
---|
16423 | name="IRuntimeErrorEvent" extends="IEvent"
|
---|
16424 | uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C"
|
---|
16425 | wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"
|
---|
16426 | >
|
---|
16427 | <desc>
|
---|
16428 | Notification when an error happens during the virtual
|
---|
16429 | machine execution.
|
---|
16430 |
|
---|
16431 | There are three kinds of runtime errors:
|
---|
16432 | <ul>
|
---|
16433 | <li><i>fatal</i></li>
|
---|
16434 | <li><i>non-fatal with retry</i></li>
|
---|
16435 | <li><i>non-fatal warnings</i></li>
|
---|
16436 | </ul>
|
---|
16437 |
|
---|
16438 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
16439 | to @c true. In case of fatal errors, the virtual machine
|
---|
16440 | execution is always paused before calling this notification, and
|
---|
16441 | the notification handler is supposed either to immediately save
|
---|
16442 | the virtual machine state using <link to="IConsole::saveState"/>
|
---|
16443 | or power it off using <link to="IConsole::powerDown"/>.
|
---|
16444 | Resuming the execution can lead to unpredictable results.
|
---|
16445 |
|
---|
16446 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
16447 | @a fatal parameter set to @c false. If the virtual machine
|
---|
16448 | is in the Paused state by the time the error notification is
|
---|
16449 | received, it means that the user can <i>try to resume</i> the machine
|
---|
16450 | execution after attempting to solve the problem that caused the
|
---|
16451 | error. In this case, the notification handler is supposed
|
---|
16452 | to show an appropriate message to the user (depending on the
|
---|
16453 | value of the @a id parameter) that offers several actions such
|
---|
16454 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
16455 | wants to retry, the notification handler should continue
|
---|
16456 | the machine execution using the <link to="IConsole::resume"/>
|
---|
16457 | call. If the machine execution is not Paused during this
|
---|
16458 | notification, then it means this notification is a <i>warning</i>
|
---|
16459 | (for example, about a fatal condition that can happen very soon);
|
---|
16460 | no immediate action is required from the user, the machine
|
---|
16461 | continues its normal execution.
|
---|
16462 |
|
---|
16463 | Note that in either case the notification handler
|
---|
16464 | <b>must not</b> perform any action directly on a thread
|
---|
16465 | where this notification is called. Everything it is allowed to
|
---|
16466 | do is to post a message to another thread that will then talk
|
---|
16467 | to the user and take the corresponding action.
|
---|
16468 |
|
---|
16469 | Currently, the following error identifiers are known:
|
---|
16470 | <ul>
|
---|
16471 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
16472 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
16473 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
16474 | <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
|
---|
16475 | </ul>
|
---|
16476 | </desc>
|
---|
16477 | <attribute name="fatal" type="boolean" readonly="yes">
|
---|
16478 | <desc>
|
---|
16479 | Whether the error is fatal or not.
|
---|
16480 | </desc>
|
---|
16481 | </attribute>
|
---|
16482 | <attribute name="id" type="wstring" readonly="yes">
|
---|
16483 | <desc>
|
---|
16484 | Error identifier.
|
---|
16485 | </desc>
|
---|
16486 | </attribute>
|
---|
16487 | <attribute name="message" type="wstring" readonly="yes">
|
---|
16488 | <desc>
|
---|
16489 | Optional error message.
|
---|
16490 | </desc>
|
---|
16491 | </attribute>
|
---|
16492 | </interface>
|
---|
16493 |
|
---|
16494 |
|
---|
16495 | <interface
|
---|
16496 | name="IEventSourceChangedEvent" extends="IEvent"
|
---|
16497 | uuid="e7932cb8-f6d4-4ab6-9cbf-558eb8959a6a"
|
---|
16498 | waitable="yes"
|
---|
16499 | wsmap="managed" autogen="VBoxEvent" id="OnEventSourceChanged"
|
---|
16500 | >
|
---|
16501 | <desc>
|
---|
16502 | Notification when an event source state changes (listener added or removed).
|
---|
16503 | </desc>
|
---|
16504 |
|
---|
16505 | <attribute name="listener" type="IEventListener" readonly="yes">
|
---|
16506 | <desc>
|
---|
16507 | Event listener which has changed.
|
---|
16508 | </desc>
|
---|
16509 | </attribute>
|
---|
16510 |
|
---|
16511 | <attribute name="add" type="boolean" readonly="yes">
|
---|
16512 | <desc>
|
---|
16513 | Flag whether listener was added or removed.
|
---|
16514 | </desc>
|
---|
16515 | </attribute>
|
---|
16516 | </interface>
|
---|
16517 |
|
---|
16518 | <interface
|
---|
16519 | name="IExtraDataChangedEvent" extends="IEvent"
|
---|
16520 | uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7"
|
---|
16521 | wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"
|
---|
16522 | >
|
---|
16523 | <desc>
|
---|
16524 | Notification when machine specific or global extra data
|
---|
16525 | has changed.
|
---|
16526 | </desc>
|
---|
16527 | <attribute name="machineId" type="uuid" mod="string" readonly="yes">
|
---|
16528 | <desc>
|
---|
16529 | ID of the machine this event relates to.
|
---|
16530 | Null for global extra data changes.
|
---|
16531 | </desc>
|
---|
16532 | </attribute>
|
---|
16533 | <attribute name="key" type="wstring" readonly="yes">
|
---|
16534 | <desc>
|
---|
16535 | Extra data key that has changed.
|
---|
16536 | </desc>
|
---|
16537 | </attribute>
|
---|
16538 | <attribute name="value" type="wstring" readonly="yes">
|
---|
16539 | <desc>
|
---|
16540 | Extra data value for the given key.
|
---|
16541 | </desc>
|
---|
16542 | </attribute>
|
---|
16543 | </interface>
|
---|
16544 |
|
---|
16545 | <interface
|
---|
16546 | name="IVetoEvent" extends="IEvent"
|
---|
16547 | uuid="9a1a4130-69fe-472f-ac10-c6fa25d75007"
|
---|
16548 | wsmap="managed"
|
---|
16549 | >
|
---|
16550 | <desc>Base abstract interface for veto events.</desc>
|
---|
16551 |
|
---|
16552 | <method name="addVeto">
|
---|
16553 | <desc>
|
---|
16554 | Adds a veto on this event.
|
---|
16555 | </desc>
|
---|
16556 | <param name="reason" type="wstring" dir="in">
|
---|
16557 | <desc>
|
---|
16558 | Reason for veto, could be null or empty string.
|
---|
16559 | </desc>
|
---|
16560 | </param>
|
---|
16561 | </method>
|
---|
16562 |
|
---|
16563 | <method name="isVetoed">
|
---|
16564 | <desc>
|
---|
16565 | If this event was vetoed.
|
---|
16566 | </desc>
|
---|
16567 | <param name="result" type="boolean" dir="return">
|
---|
16568 | <desc>
|
---|
16569 | Reason for veto.
|
---|
16570 | </desc>
|
---|
16571 | </param>
|
---|
16572 | </method>
|
---|
16573 |
|
---|
16574 | <method name="getVetos">
|
---|
16575 | <desc>
|
---|
16576 | Current veto reason list, if size is 0 - no veto.
|
---|
16577 | </desc>
|
---|
16578 | <param name="result" type="wstring" dir="return" safearray="yes">
|
---|
16579 | <desc>
|
---|
16580 | Array of reasons for veto provided by different event handlers.
|
---|
16581 | </desc>
|
---|
16582 | </param>
|
---|
16583 | </method>
|
---|
16584 |
|
---|
16585 | </interface>
|
---|
16586 |
|
---|
16587 | <interface
|
---|
16588 | name="IExtraDataCanChangeEvent" extends="IVetoEvent"
|
---|
16589 | uuid="245d88bd-800a-40f8-87a6-170d02249a55"
|
---|
16590 | wsmap="managed" autogen="VBoxEvent" id="OnExtraDataCanChange"
|
---|
16591 | waitable="true"
|
---|
16592 | >
|
---|
16593 | <desc>
|
---|
16594 | Notification when someone tries to change extra data for
|
---|
16595 | either the given machine or (if @c null) global extra data.
|
---|
16596 | This gives the chance to veto against changes.
|
---|
16597 | </desc>
|
---|
16598 | <attribute name="machineId" type="uuid" mod="string" readonly="yes">
|
---|
16599 | <desc>
|
---|
16600 | ID of the machine this event relates to.
|
---|
16601 | Null for global extra data changes.
|
---|
16602 | </desc>
|
---|
16603 | </attribute>
|
---|
16604 | <attribute name="key" type="wstring" readonly="yes">
|
---|
16605 | <desc>
|
---|
16606 | Extra data key that has changed.
|
---|
16607 | </desc>
|
---|
16608 | </attribute>
|
---|
16609 | <attribute name="value" type="wstring" readonly="yes">
|
---|
16610 | <desc>
|
---|
16611 | Extra data value for the given key.
|
---|
16612 | </desc>
|
---|
16613 | </attribute>
|
---|
16614 | </interface>
|
---|
16615 |
|
---|
16616 | <interface
|
---|
16617 | name="ICanShowWindowEvent" extends="IVetoEvent"
|
---|
16618 | uuid="adf292b0-92c9-4a77-9d35-e058b39fe0b9"
|
---|
16619 | wsmap="managed" autogen="VBoxEvent" id="OnCanShowWindow"
|
---|
16620 | waitable="true"
|
---|
16621 | >
|
---|
16622 | <desc>
|
---|
16623 | Notification when a call to
|
---|
16624 | <link to="IMachine::canShowConsoleWindow"/> is made by a
|
---|
16625 | front-end to check if a subsequent call to
|
---|
16626 | <link to="IMachine::showConsoleWindow"/> can succeed.
|
---|
16627 |
|
---|
16628 | The callee should give an answer appropriate to the current
|
---|
16629 | machine state using event veto. This answer must
|
---|
16630 | remain valid at least until the next
|
---|
16631 | <link to="IConsole::state">machine state</link> change.
|
---|
16632 | </desc>
|
---|
16633 | </interface>
|
---|
16634 |
|
---|
16635 | <interface
|
---|
16636 | name="IShowWindowEvent" extends="IEvent"
|
---|
16637 | uuid="B0A0904D-2F05-4D28-855F-488F96BAD2B2"
|
---|
16638 | wsmap="managed" autogen="VBoxEvent" id="OnShowWindow"
|
---|
16639 | waitable="true"
|
---|
16640 | >
|
---|
16641 | <desc>
|
---|
16642 | Notification when a call to
|
---|
16643 | <link to="IMachine::showConsoleWindow"/>
|
---|
16644 | requests the console window to be activated and brought to
|
---|
16645 | foreground on the desktop of the host PC.
|
---|
16646 |
|
---|
16647 | This notification should cause the VM console process to
|
---|
16648 | perform the requested action as described above. If it is
|
---|
16649 | impossible to do it at a time of this notification, this
|
---|
16650 | method should return a failure.
|
---|
16651 |
|
---|
16652 | Note that many modern window managers on many platforms
|
---|
16653 | implement some sort of focus stealing prevention logic, so
|
---|
16654 | that it may be impossible to activate a window without the
|
---|
16655 | help of the currently active application (which is supposedly
|
---|
16656 | an initiator of this notification). In this case, this method
|
---|
16657 | must return a non-zero identifier that represents the
|
---|
16658 | top-level window of the VM console process. The caller, if it
|
---|
16659 | represents a currently active process, is responsible to use
|
---|
16660 | this identifier (in a platform-dependent manner) to perform
|
---|
16661 | actual window activation.
|
---|
16662 |
|
---|
16663 | This method must set @a winId to zero if it has performed all
|
---|
16664 | actions necessary to complete the request and the console
|
---|
16665 | window is now active and in foreground, to indicate that no
|
---|
16666 | further action is required on the caller's side.
|
---|
16667 | </desc>
|
---|
16668 | <attribute name="winId" type="long long">
|
---|
16669 | <desc>
|
---|
16670 | Platform-dependent identifier of the top-level VM console
|
---|
16671 | window, or zero if this method has performed all actions
|
---|
16672 | necessary to implement the <i>show window</i> semantics for
|
---|
16673 | the given platform and/or this VirtualBox front-end.
|
---|
16674 | </desc>
|
---|
16675 | </attribute>
|
---|
16676 | </interface>
|
---|
16677 |
|
---|
16678 | <interface
|
---|
16679 | name="INATRedirectEvent" extends="IMachineEvent"
|
---|
16680 | uuid="57DE97D7-3CBB-42A0-888F-610D5832D16B"
|
---|
16681 | wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect"
|
---|
16682 | >
|
---|
16683 | <desc>
|
---|
16684 | Notification when NAT redirect rule added or removed.
|
---|
16685 | </desc>
|
---|
16686 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
16687 | <desc>
|
---|
16688 | Adapter which NAT attached to.
|
---|
16689 | </desc>
|
---|
16690 | </attribute>
|
---|
16691 | <attribute name="remove" type="boolean" readonly="yes">
|
---|
16692 | <desc>
|
---|
16693 | Whether rule remove or add.
|
---|
16694 | </desc>
|
---|
16695 | </attribute>
|
---|
16696 | <attribute name="name" type="wstring" readonly="yes">
|
---|
16697 | <desc>
|
---|
16698 | Name of the rule.
|
---|
16699 | </desc>
|
---|
16700 | </attribute>
|
---|
16701 | <attribute name="proto" type="NATProtocol" readonly="yes">
|
---|
16702 | <desc>
|
---|
16703 | Protocol (TCP or UDP) of the redirect rule.
|
---|
16704 | </desc>
|
---|
16705 | </attribute>
|
---|
16706 | <attribute name="hostIp" type="wstring" readonly="yes">
|
---|
16707 | <desc>
|
---|
16708 | Host ip address to bind socket on.
|
---|
16709 | </desc>
|
---|
16710 | </attribute>
|
---|
16711 | <attribute name="hostPort" type="long" readonly="yes">
|
---|
16712 | <desc>
|
---|
16713 | Host port to bind socket on.
|
---|
16714 | </desc>
|
---|
16715 | </attribute>
|
---|
16716 | <attribute name="guestIp" type="wstring" readonly="yes">
|
---|
16717 | <desc>
|
---|
16718 | Guest ip address to redirect to.
|
---|
16719 | </desc>
|
---|
16720 | </attribute>
|
---|
16721 | <attribute name="guestPort" type="long" readonly="yes">
|
---|
16722 | <desc>
|
---|
16723 | Guest port to redirect to.
|
---|
16724 | </desc>
|
---|
16725 | </attribute>
|
---|
16726 | </interface>
|
---|
16727 |
|
---|
16728 | <interface
|
---|
16729 | name="IHostPciDevicePlugEvent" extends="IMachineEvent"
|
---|
16730 | waitable="yes"
|
---|
16731 | uuid="9cebfc27-c579-4965-8eb7-d31794cd7dcf"
|
---|
16732 | wsmap="managed" autogen="VBoxEvent" id="OnHostPciDevicePlug"
|
---|
16733 | >
|
---|
16734 | <desc>
|
---|
16735 | Notification when host PCI device is plugged/unplugged. Plugging
|
---|
16736 | usually takes place on VM startup, unplug - when
|
---|
16737 | IMachine::DetachHostPciDevice is called.
|
---|
16738 |
|
---|
16739 | <see>IMachine::DetachHostPciDevice</see>
|
---|
16740 |
|
---|
16741 | </desc>
|
---|
16742 |
|
---|
16743 | <attribute name="plugged" type="boolean" readonly="yes">
|
---|
16744 | <desc>
|
---|
16745 | If device successfully plugged or unplugged.
|
---|
16746 | </desc>
|
---|
16747 | </attribute>
|
---|
16748 |
|
---|
16749 | <attribute name="success" type="boolean" readonly="yes">
|
---|
16750 | <desc>
|
---|
16751 | If operation was successful, if false - 'message' attribute
|
---|
16752 | may be of interest.
|
---|
16753 | </desc>
|
---|
16754 | </attribute>
|
---|
16755 |
|
---|
16756 | <attribute name="attachment" type="IPciDeviceAttachment" readonly="yes">
|
---|
16757 | <desc>
|
---|
16758 | Attachment info for this device.
|
---|
16759 | </desc>
|
---|
16760 | </attribute>
|
---|
16761 |
|
---|
16762 | <attribute name="message" type="wstring" readonly="yes">
|
---|
16763 | <desc>
|
---|
16764 | Optional error message.
|
---|
16765 | </desc>
|
---|
16766 | </attribute>
|
---|
16767 |
|
---|
16768 | </interface>
|
---|
16769 |
|
---|
16770 | <interface
|
---|
16771 | name="IVBoxSVCAvailabilityChangedEvent" extends="IEvent"
|
---|
16772 | uuid="97c78fcd-d4fc-485f-8613-5af88bfcfcdc"
|
---|
16773 | wsmap="managed" autogen="VBoxEvent" id="OnVBoxSVCAvailabilityChanged"
|
---|
16774 | >
|
---|
16775 | <desc>
|
---|
16776 | Notification when VBoxSVC becomes unavailable (due to a crash or similar
|
---|
16777 | unexpected circumstances) or available again.
|
---|
16778 | </desc>
|
---|
16779 |
|
---|
16780 | <attribute name="available" type="boolean" readonly="yes">
|
---|
16781 | <desc>
|
---|
16782 | Whether VBoxSVC is available now.
|
---|
16783 | </desc>
|
---|
16784 | </attribute>
|
---|
16785 | </interface>
|
---|
16786 |
|
---|
16787 | <interface
|
---|
16788 | name="IBandwidthGroupChangedEvent" extends="IEvent"
|
---|
16789 | uuid="334df94a-7556-4cbc-8c04-043096b02d82"
|
---|
16790 | wsmap="managed" autogen="VBoxEvent" id="OnBandwidthGroupChanged"
|
---|
16791 | >
|
---|
16792 | <desc>
|
---|
16793 | Notification when one of the bandwidth groups changed
|
---|
16794 | </desc>
|
---|
16795 | <attribute name="bandwidthGroup" type="IBandwidthGroup" readonly="yes">
|
---|
16796 | <desc>
|
---|
16797 | The changed bandwidth group.
|
---|
16798 | </desc>
|
---|
16799 | </attribute>
|
---|
16800 | </interface>
|
---|
16801 |
|
---|
16802 | <enum
|
---|
16803 | name="GuestMonitorChangedEventType"
|
---|
16804 | uuid="ef172985-7e36-4297-95be-e46396968d66"
|
---|
16805 | >
|
---|
16806 |
|
---|
16807 | <desc>
|
---|
16808 | How the guest monitor has been changed.
|
---|
16809 | </desc>
|
---|
16810 |
|
---|
16811 | <const name="Enabled" value="0">
|
---|
16812 | <desc>
|
---|
16813 | The guest monitor has been enabled by the guest.
|
---|
16814 | </desc>
|
---|
16815 | </const>
|
---|
16816 |
|
---|
16817 | <const name="Disabled" value="1">
|
---|
16818 | <desc>
|
---|
16819 | The guest monitor has been disabled by the guest.
|
---|
16820 | </desc>
|
---|
16821 | </const>
|
---|
16822 |
|
---|
16823 | <const name="NewOrigin" value="2">
|
---|
16824 | <desc>
|
---|
16825 | The guest monitor origin has changed in the guest.
|
---|
16826 | </desc>
|
---|
16827 | </const>
|
---|
16828 | </enum>
|
---|
16829 |
|
---|
16830 | <interface
|
---|
16831 | name="IGuestMonitorChangedEvent" extends="IEvent"
|
---|
16832 | uuid="0f7b8a22-c71f-4a36-8e5f-a77d01d76090"
|
---|
16833 | wsmap="managed" autogen="VBoxEvent" id="OnGuestMonitorChanged"
|
---|
16834 | >
|
---|
16835 | <desc>
|
---|
16836 | Notification when the guest enables one of its monitors.
|
---|
16837 | </desc>
|
---|
16838 |
|
---|
16839 | <attribute name="changeType" type="GuestMonitorChangedEventType" readonly="yes">
|
---|
16840 | <desc>
|
---|
16841 | What was changed for this guest monitor.
|
---|
16842 | </desc>
|
---|
16843 | </attribute>
|
---|
16844 |
|
---|
16845 | <attribute name="screenId" type="unsigned long" readonly="yes">
|
---|
16846 | <desc>
|
---|
16847 | The monitor which was changed.
|
---|
16848 | </desc>
|
---|
16849 | </attribute>
|
---|
16850 |
|
---|
16851 | <attribute name="originX" type="unsigned long" readonly="yes">
|
---|
16852 | <desc>
|
---|
16853 | Physical X origin relative to the primary screen.
|
---|
16854 | Valid for Enabled and NewOrigin.
|
---|
16855 | </desc>
|
---|
16856 | </attribute>
|
---|
16857 |
|
---|
16858 | <attribute name="originY" type="unsigned long" readonly="yes">
|
---|
16859 | <desc>
|
---|
16860 | Physical Y origin relative to the primary screen.
|
---|
16861 | Valid for Enabled and NewOrigin.
|
---|
16862 | </desc>
|
---|
16863 | </attribute>
|
---|
16864 |
|
---|
16865 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
16866 | <desc>
|
---|
16867 | Width of the screen.
|
---|
16868 | Valid for Enabled.
|
---|
16869 | </desc>
|
---|
16870 | </attribute>
|
---|
16871 |
|
---|
16872 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
16873 | <desc>
|
---|
16874 | Height of the screen.
|
---|
16875 | Valid for Enabled.
|
---|
16876 | </desc>
|
---|
16877 | </attribute>
|
---|
16878 |
|
---|
16879 | </interface>
|
---|
16880 |
|
---|
16881 | <module name="VBoxSVC" context="LocalServer">
|
---|
16882 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
16883 | namespace="virtualbox.org">
|
---|
16884 | <interface name="IVirtualBox" default="yes"/>
|
---|
16885 | </class>
|
---|
16886 | </module>
|
---|
16887 |
|
---|
16888 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
16889 | <class name="VirtualBoxClient" uuid="dd3fc71d-26c0-4fe1-bf6f-67f633265bba"
|
---|
16890 | namespace="virtualbox.org">
|
---|
16891 | <interface name="IVirtualBoxClient" default="yes"/>
|
---|
16892 | </class>
|
---|
16893 |
|
---|
16894 | <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
|
---|
16895 | namespace="virtualbox.org">
|
---|
16896 | <interface name="ISession" default="yes"/>
|
---|
16897 | </class>
|
---|
16898 | </module>
|
---|
16899 |
|
---|
16900 | </library>
|
---|
16901 |
|
---|
16902 | </idl>
|
---|
16903 |
|
---|
16904 | <!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|
---|