1 | <?xml version="1.0" ?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 | * :tabSize=2:indentSize=2:noTabs=true:
|
---|
5 | * :folding=explicit:collapseFolds=1:
|
---|
6 | *
|
---|
7 | * Master declaration for VirtualBox's Main API, represented
|
---|
8 | * by COM/XPCOM and web service interfaces.
|
---|
9 | *
|
---|
10 | * From this document, the build system generates several files
|
---|
11 | * via XSLT that are then used during the build process.
|
---|
12 | *
|
---|
13 | * Below is the list of XSL templates that operate on this file and
|
---|
14 | * output files they generate. These XSL templates must be updated
|
---|
15 | * whenever the schema of this file changes:
|
---|
16 | *
|
---|
17 | * 1. src/VBox/Main/idl/midl.xsl =>
|
---|
18 | * out/<platform>/bin/sdk/idl/VirtualBox.idl
|
---|
19 | * (MS COM interface definition file for Main API)
|
---|
20 | *
|
---|
21 | * 2. src/VBox/Main/idl/xpidl.xsl =>
|
---|
22 | * out/<platform>/bin/sdk/idl/VirtualBox_XPCOM.idl
|
---|
23 | * (XPCOM interface definition file for Main API)
|
---|
24 | *
|
---|
25 | * 3. src/VBox/Main/idl/doxygen.xsl =>
|
---|
26 | * out/<platform>/obj/src/VBox/Main/VirtualBox.idl
|
---|
27 | * (pseudo-IDL for Doxygen to generate the official Main API
|
---|
28 | * documentation)
|
---|
29 | *
|
---|
30 | * 4. src/VBox/Main/webservice/*.xsl =>
|
---|
31 | * a bunch of WSDL and C++ files
|
---|
32 | * (VirtualBox web service sources and SOAP mappers;
|
---|
33 | * see src/VBox/Main/webservice/Makefile.kmk for details)
|
---|
34 | *
|
---|
35 | * 5. src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl =>
|
---|
36 | * out/<platform>/obj/src/VBox/Frontends/VirtualBox/VirtualBox/include/COMWrappers.h
|
---|
37 | * (smart Qt-based C++ wrapper classes for COM interfaces
|
---|
38 | * of the Main API)
|
---|
39 | *
|
---|
40 | * 6. src/VBox/Installer/win32/VirtualBox_TypeLib.xsl =>
|
---|
41 | * out/<platform>/obj/src/VBox/Installer/win32/VirtualBox_TypeLib.wxi
|
---|
42 | * (Main API TypeLib block for the WiX installer)
|
---|
43 | *
|
---|
44 | * 7. src/VBox/Runtime/common/err/errmsgvboxcom.xsl =>
|
---|
45 | * out/<platform>/obj/Runtime/errmsgvboxcomdata.h
|
---|
46 | * (<result> extraction for the %Rhrc format specifier)
|
---|
47 | *
|
---|
48 | Copyright (C) 2006-2009 Sun Microsystems, Inc.
|
---|
49 |
|
---|
50 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
51 | available from http://www.virtualbox.org. This file is free software;
|
---|
52 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
53 | General Public License (GPL) as published by the Free Software
|
---|
54 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
55 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
56 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
57 |
|
---|
58 | Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
59 | Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
60 | additional information or have any questions.
|
---|
61 | -->
|
---|
62 |
|
---|
63 | <idl>
|
---|
64 |
|
---|
65 | <desc>
|
---|
66 | Welcome to the <b>VirtualBox Main API documentation</b>. This documentation
|
---|
67 | describes the so-called <i>VirtualBox Main API</i> which comprises all public
|
---|
68 | COM interfaces and components provided by the VirtualBox server and by the
|
---|
69 | VirtualBox client library.
|
---|
70 |
|
---|
71 | VirtualBox employs a client-server design, meaning that whenever any part of
|
---|
72 | VirtualBox is running -- be it the Qt GUI, the VBoxManage command-line
|
---|
73 | interface or any virtual machine --, a dedicated server process named
|
---|
74 | VBoxSVC runs in the background. This allows multiple processes working with
|
---|
75 | VirtualBox to cooperate without conflicts. These processes communicate to each
|
---|
76 | other using inter-process communication facilities provided by the COM
|
---|
77 | implementation of the host computer.
|
---|
78 |
|
---|
79 | On Windows platforms, the VirtualBox Main API uses Microsoft COM, a native COM
|
---|
80 | implementation. On all other platforms, Mozilla XPCOM, an open-source COM
|
---|
81 | implementation, is used.
|
---|
82 |
|
---|
83 | All the parts that a typical VirtualBox user interacts with (the Qt GUI,
|
---|
84 | the VBoxManage command-line interface and the VBoxVRDP server) are technically
|
---|
85 | front-ends to the Main API and only use the interfaces that are documented
|
---|
86 | in this Main API documentation. This ensures that, with any given release
|
---|
87 | version of VirtualBox, all capabilities of the product that could be useful
|
---|
88 | to an external client program are always exposed by way of this API.
|
---|
89 |
|
---|
90 | The VirtualBox Main API (also called the <i>VirtualBox COM library</i>)
|
---|
91 | contains two public component classes:
|
---|
92 | <tt>%VirtualBox.VirtualBox</tt> and <tt>%VirtualBox.Session</tt>, which
|
---|
93 | implement IVirtualBox and ISession interfaces respectively. These two classes
|
---|
94 | are of supreme importance and will be needed in order for any front-end
|
---|
95 | program to do anything useful. It is recommended to read the documentation of
|
---|
96 | the mentioned interfaces first.
|
---|
97 |
|
---|
98 | The <tt>%VirtualBox.VirtualBox</tt> class is a singleton. This means that
|
---|
99 | there can be only one object of this class on the local machine at any given
|
---|
100 | time. This object is a parent of many other objects in the VirtualBox COM
|
---|
101 | library and lives in the VBoxSVC process. In fact, when you create an instance
|
---|
102 | of the <tt>VirtualBox.VirtualBox</tt>, the COM subsystem checks if the VBoxSVC
|
---|
103 | process is already running, starts it if not, and returns you a reference to
|
---|
104 | the <tt>VirtualBox</tt> object created in this process. When the last reference
|
---|
105 | to this object is released, the VBoxSVC process ends (with a 5 second delay to
|
---|
106 | protect from too frequent restarts).
|
---|
107 |
|
---|
108 | The <tt>%VirtualBox.Session</tt> class is a regular component. You can create
|
---|
109 | as many <tt>Session</tt> objects as you need but all of them will live in a
|
---|
110 | process which issues the object instantiation call. <tt>Session</tt> objects
|
---|
111 | represent virtual machine sessions which are used to configure virtual
|
---|
112 | machines and control their execution.
|
---|
113 | </desc>
|
---|
114 |
|
---|
115 | <if target="midl">
|
---|
116 | <cpp line="enum {"/>
|
---|
117 | <cpp line=" kTypeLibraryMajorVersion = 1,"/>
|
---|
118 | <cpp line=" kTypeLibraryMinorVersion = 0"/>
|
---|
119 | <cpp line="};"/>
|
---|
120 | </if>
|
---|
121 |
|
---|
122 | <if target="xpidl">
|
---|
123 | <!-- NS_IMPL_THREADSAFE_ISUPPORTSxx_CI macros are placed here, for convenience -->
|
---|
124 | <cpp>
|
---|
125 | /* currently, nsISupportsImpl.h lacks the below-like macros */
|
---|
126 |
|
---|
127 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI NS_IMPL_QUERY_INTERFACE1_CI
|
---|
128 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI NS_IMPL_QUERY_INTERFACE2_CI
|
---|
129 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI NS_IMPL_QUERY_INTERFACE3_CI
|
---|
130 |
|
---|
131 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_CI
|
---|
132 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_CI(_class, _interface) \
|
---|
133 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
134 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
135 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_CI(_class, _interface) \
|
---|
136 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _interface)
|
---|
137 | #endif
|
---|
138 |
|
---|
139 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_CI
|
---|
140 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_CI(_class, _i1, _i2) \
|
---|
141 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
142 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
143 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_CI(_class, _i1, _i2) \
|
---|
144 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
145 | #endif
|
---|
146 |
|
---|
147 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_CI
|
---|
148 | # define NS_IMPL_THREADSAFE_ISUPPORTS3_CI(_class, _i1, _i2, _i3) \
|
---|
149 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
150 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
151 | NS_IMPL_THREADSAFE_QUERY_INTERFACE3_CI(_class, _i1, _i2, _i3) \
|
---|
152 | NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
|
---|
153 | #endif
|
---|
154 |
|
---|
155 | #ifndef NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
156 | # define NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
157 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
158 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
159 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
160 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
161 | NS_INTERFACE_MAP_END
|
---|
162 | #endif
|
---|
163 |
|
---|
164 | #ifndef NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
165 | # define NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
166 | _i2, _ic2) \
|
---|
167 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
168 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
169 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
170 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
171 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
172 | NS_INTERFACE_MAP_END
|
---|
173 | #endif
|
---|
174 |
|
---|
175 | #ifndef NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
|
---|
176 | # define NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
177 | _i2, _ic2, _i3, _ic3) \
|
---|
178 | NS_INTERFACE_MAP_BEGIN(_class) \
|
---|
179 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i1, _ic1) \
|
---|
180 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i2, _ic2) \
|
---|
181 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(_i3, _ic3) \
|
---|
182 | NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _ic1) \
|
---|
183 | NS_IMPL_QUERY_CLASSINFO(_class) \
|
---|
184 | NS_INTERFACE_MAP_END
|
---|
185 | #endif
|
---|
186 |
|
---|
187 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE1_AMBIGUOUS_CI
|
---|
188 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE2_AMBIGUOUS_CI
|
---|
189 | #define NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI NS_IMPL_QUERY_INTERFACE3_AMBIGUOUS_CI
|
---|
190 |
|
---|
191 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI
|
---|
192 | # define NS_IMPL_THREADSAFE_ISUPPORTS1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
193 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
194 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
195 | NS_IMPL_THREADSAFE_QUERY_INTERFACE1_AMBIGUOUS_CI(_class, _i1, _ic1) \
|
---|
196 | NS_IMPL_CI_INTERFACE_GETTER1(_class, _i1)
|
---|
197 | #endif
|
---|
198 |
|
---|
199 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI
|
---|
200 | # define NS_IMPL_THREADSAFE_ISUPPORTS2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
201 | _i2, _ic2) \
|
---|
202 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
203 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
204 | NS_IMPL_THREADSAFE_QUERY_INTERFACE2_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
205 | _i2, _ic2) \
|
---|
206 | NS_IMPL_CI_INTERFACE_GETTER2(_class, _i1, _i2)
|
---|
207 | #endif
|
---|
208 |
|
---|
209 | #ifndef NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI
|
---|
210 | # define NS_IMPL_THREADSAFE_ISUPPORTS3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
211 | _i2, _ic2, _i3, _ic3) \
|
---|
212 | NS_IMPL_THREADSAFE_ADDREF(_class) \
|
---|
213 | NS_IMPL_THREADSAFE_RELEASE(_class) \
|
---|
214 | NS_IMPL_THREADSAFE_QUERY_INTERFACE3_AMBIGUOUS_CI(_class, _i1, _ic1, \
|
---|
215 | _i2, _ic2, _i3, _ic3) \
|
---|
216 | NS_IMPL_CI_INTERFACE_GETTER3(_class, _i1, _i2, _i3)
|
---|
217 | #endif
|
---|
218 |
|
---|
219 | </cpp>
|
---|
220 | </if>
|
---|
221 |
|
---|
222 | <library
|
---|
223 | name="VirtualBox"
|
---|
224 | uuid="46137EEC-703B-4fe5-AFD4-7C9BBBBA0259"
|
---|
225 | version="1.3"
|
---|
226 | desc="VirtualBox Type Library"
|
---|
227 | appUuid="819B4D85-9CEE-493C-B6FC-64FFE759B3C9"
|
---|
228 | supportsErrorInfo="yes"
|
---|
229 | >
|
---|
230 |
|
---|
231 |
|
---|
232 | <!--
|
---|
233 | // COM result codes for VirtualBox
|
---|
234 | /////////////////////////////////////////////////////////////////////////
|
---|
235 | -->
|
---|
236 |
|
---|
237 | <descGroup id="VirtualBox_COM_result_codes" title="VirtualBox COM result codes">
|
---|
238 | <desc>
|
---|
239 | This section describes all VirtualBox-specific COM result codes that may
|
---|
240 | be returned by methods of VirtualBox COM interfaces in addition to
|
---|
241 | standard COM result codes.
|
---|
242 |
|
---|
243 | Note that along with the result code, every VirtualBox method returns
|
---|
244 | extended error information through the IVirtualBoxErrorInfo interface on
|
---|
245 | failure. This interface is a preferred way to present the error to the end
|
---|
246 | user because it contains a human readable description of the error. Raw
|
---|
247 | result codes, both standard and described in this section, are intended to
|
---|
248 | be used by programs to analyze the reason of a failure and select an
|
---|
249 | appropriate course of action without involving the end user (for example,
|
---|
250 | retry the operation later or make a different call).
|
---|
251 |
|
---|
252 | The standard COM result codes that may originate from our methods include:
|
---|
253 |
|
---|
254 | <table>
|
---|
255 | <tr><td>E_INVALIDARG</td>
|
---|
256 | <td>
|
---|
257 | Returned when the value of the method's argument is not within the range
|
---|
258 | of valid values. This should not be confused with situations when the
|
---|
259 | value is within the range but simply doesn't suit the current object
|
---|
260 | state and there is a possibility that it will be accepted later (in such
|
---|
261 | cases VirtualBox-specific codes are returned, for example,
|
---|
262 | <link to="VBOX_E_OBJECT_NOT_FOUND"/>).
|
---|
263 | </td>
|
---|
264 | </tr>
|
---|
265 | <tr><td>E_POINTER</td>
|
---|
266 | <td>
|
---|
267 | Returned if a memory pointer for the output argument is invalid (for
|
---|
268 | example, @c null). Note that when pointers representing input
|
---|
269 | arguments (such as strings) are invalid, E_INVALIDARG is returned.
|
---|
270 | </td>
|
---|
271 | </tr>
|
---|
272 | <tr><td>E_ACCESSDENIED</td>
|
---|
273 | <td>
|
---|
274 | Returned when the called object is not ready. Since the lifetime of a
|
---|
275 | public COM object cannot be fully controlled by the implementation,
|
---|
276 | VirtualBox maintains the readiness state for all objects it creates and
|
---|
277 | returns this code in response to any method call on the object that was
|
---|
278 | deactivated by VirtualBox and is not functioning any more.
|
---|
279 | </td>
|
---|
280 | </tr>
|
---|
281 | <tr><td>E_OUTOFMEMORY</td>
|
---|
282 | <td>
|
---|
283 | Returned when a memory allocation operation fails.
|
---|
284 | </td>
|
---|
285 | </tr>
|
---|
286 | </table>
|
---|
287 | </desc>
|
---|
288 | </descGroup>
|
---|
289 |
|
---|
290 | <!--
|
---|
291 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
292 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
293 | the matter of the error code in the first sentence and keep it short.
|
---|
294 | -->
|
---|
295 |
|
---|
296 | <result name="VBOX_E_OBJECT_NOT_FOUND" value="0x80BB0001">
|
---|
297 | <desc>
|
---|
298 | Object corresponding to the supplied arguments does not exist.
|
---|
299 | </desc>
|
---|
300 | </result>
|
---|
301 |
|
---|
302 | <result name="VBOX_E_INVALID_VM_STATE" value="0x80BB0002">
|
---|
303 | <desc>
|
---|
304 | Current virtual machine state prevents the operation.
|
---|
305 | </desc>
|
---|
306 | </result>
|
---|
307 |
|
---|
308 | <result name="VBOX_E_VM_ERROR" value="0x80BB0003">
|
---|
309 | <desc>
|
---|
310 | Virtual machine error occurred attempting the operation.
|
---|
311 | </desc>
|
---|
312 | </result>
|
---|
313 |
|
---|
314 | <result name="VBOX_E_FILE_ERROR" value="0x80BB0004">
|
---|
315 | <desc>
|
---|
316 | File not accessible or erroneous file contents.
|
---|
317 | </desc>
|
---|
318 | </result>
|
---|
319 |
|
---|
320 | <result name="VBOX_E_IPRT_ERROR" value="0x80BB0005">
|
---|
321 | <desc>
|
---|
322 | Runtime subsystem error.
|
---|
323 | </desc>
|
---|
324 | </result>
|
---|
325 |
|
---|
326 | <result name="VBOX_E_PDM_ERROR" value="0x80BB0006">
|
---|
327 | <desc>
|
---|
328 | Pluggable Device Manager error.
|
---|
329 | </desc>
|
---|
330 | </result>
|
---|
331 |
|
---|
332 | <result name="VBOX_E_INVALID_OBJECT_STATE" value="0x80BB0007">
|
---|
333 | <desc>
|
---|
334 | Current object state prohibits operation.
|
---|
335 | </desc>
|
---|
336 | </result>
|
---|
337 |
|
---|
338 | <result name="VBOX_E_HOST_ERROR" value="0x80BB0008">
|
---|
339 | <desc>
|
---|
340 | Host operating system related error.
|
---|
341 | </desc>
|
---|
342 | </result>
|
---|
343 |
|
---|
344 | <result name="VBOX_E_NOT_SUPPORTED" value="0x80BB0009">
|
---|
345 | <desc>
|
---|
346 | Requested operation is not supported.
|
---|
347 | </desc>
|
---|
348 | </result>
|
---|
349 |
|
---|
350 | <result name="VBOX_E_XML_ERROR" value="0x80BB000A">
|
---|
351 | <desc>
|
---|
352 | Invalid XML found.
|
---|
353 | </desc>
|
---|
354 | </result>
|
---|
355 |
|
---|
356 | <result name="VBOX_E_INVALID_SESSION_STATE" value="0x80BB000B">
|
---|
357 | <desc>
|
---|
358 | Current session state prohibits operation.
|
---|
359 | </desc>
|
---|
360 | </result>
|
---|
361 |
|
---|
362 | <result name="VBOX_E_OBJECT_IN_USE" value="0x80BB000C">
|
---|
363 | <desc>
|
---|
364 | Object being in use prohibits operation.
|
---|
365 | </desc>
|
---|
366 | </result>
|
---|
367 |
|
---|
368 | <!--
|
---|
369 | Note that src/VBox/Runtime/common/err/errmsgvboxcom.xsl will ignore
|
---|
370 | everything in <result>/<desc> after (and including) the first dot, so express
|
---|
371 | the matter of the error code in the first sentence and keep it short.
|
---|
372 | -->
|
---|
373 |
|
---|
374 | <descGroup/>
|
---|
375 |
|
---|
376 | <!--
|
---|
377 | // all common enums
|
---|
378 | /////////////////////////////////////////////////////////////////////////
|
---|
379 | -->
|
---|
380 |
|
---|
381 | <enum name="SettingsVersion"
|
---|
382 | uuid="6e151282-c338-428a-989d-5f2402d87e6f"
|
---|
383 | >
|
---|
384 | <desc>Settings version of VirtualBox settings files. This is written to
|
---|
385 | the "version" attribute of the root "VirtualBox" element in the settings
|
---|
386 | file XML and indicates which VirtualBox version wrote the file.
|
---|
387 | </desc>
|
---|
388 |
|
---|
389 | <const name="Null" value="0">
|
---|
390 | <desc>Null value, indicates invalid version.</desc>
|
---|
391 | </const>
|
---|
392 | <const name="v1_0" value="1">
|
---|
393 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
394 | </const>
|
---|
395 | <const name="v1_1" value="2">
|
---|
396 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
397 | </const>
|
---|
398 | <const name="v1_2" value="3">
|
---|
399 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
400 | </const>
|
---|
401 | <const name="v1_3pre" value="4">
|
---|
402 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
403 | </const>
|
---|
404 | <const name="v1_3" value="5">
|
---|
405 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
406 | </const>
|
---|
407 | <const name="v1_4" value="6">
|
---|
408 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
409 | </const>
|
---|
410 | <const name="v1_5" value="7">
|
---|
411 | <desc>Legacy settings version, not currently supported.</desc>
|
---|
412 | <!-- 2008-09-04: 2.0.0 released
|
---|
413 | 2008-11-20: settings version 1.5 introduced
|
---|
414 | 2008-12-17: 2.1.0 released
|
---|
415 | -->
|
---|
416 | </const>
|
---|
417 | <const name="v1_6" value="8">
|
---|
418 | <desc>Settings version "1.6", written by VirtualBox 2.1.4 (at least).</desc>
|
---|
419 | <!-- 2008-12-17: 2.1.0 released
|
---|
420 | 2008-12-19: settings version 1.6 introduced (is in 2.1 branch)
|
---|
421 | 2009-04-08: 2.2.0 released
|
---|
422 | -->
|
---|
423 | </const>
|
---|
424 | <const name="v1_7" value="9">
|
---|
425 | <desc>Settings version "1.7", written by VirtualBox 2.2.x and 3.0.x.</desc>
|
---|
426 | <!-- 2008-12-17: 2.1.0 released
|
---|
427 | 2009-03-11: settings version 1.7 introduced (is in 2.2 branch)
|
---|
428 | 2009-04-08: 2.2.0 released
|
---|
429 | VirtualBox.xml additions: NetserviceRegistry with DHCPServers
|
---|
430 | Machine changes: HardDiskAttachments is now StorageControllers
|
---|
431 | -->
|
---|
432 | </const>
|
---|
433 | <const name="v1_8" value="10">
|
---|
434 | <desc>Settings version "1.8", written by VirtualBox 3.1.x.</desc>
|
---|
435 | <!-- Machine additions: Display/@accelerate2DVideo
|
---|
436 | -->
|
---|
437 | </const>
|
---|
438 | </enum>
|
---|
439 |
|
---|
440 | <enum
|
---|
441 | name="AccessMode"
|
---|
442 | uuid="1da0007c-ddf7-4be8-bcac-d84a1558785f"
|
---|
443 | >
|
---|
444 | <desc>
|
---|
445 | Access mode for opening files.
|
---|
446 | </desc>
|
---|
447 |
|
---|
448 | <const name="ReadOnly" value="1"/>
|
---|
449 | <const name="ReadWrite" value="2"/>
|
---|
450 | </enum>
|
---|
451 |
|
---|
452 | <enum
|
---|
453 | name="MachineState"
|
---|
454 | uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343"
|
---|
455 | >
|
---|
456 | <desc>
|
---|
457 | Virtual machine execution state.
|
---|
458 |
|
---|
459 | This enumeration represents possible values of the <link
|
---|
460 | to="IMachine::state"/> attribute.
|
---|
461 |
|
---|
462 | Below is the basic virtual machine state diagram. It shows how the state
|
---|
463 | changes during virtual machine execution. The text in square braces shows
|
---|
464 | a method of the IConsole interface that performs the given state
|
---|
465 | transition.
|
---|
466 |
|
---|
467 | <pre>
|
---|
468 | +---------[powerDown()] <- Stuck <--[failure]-+
|
---|
469 | V |
|
---|
470 | +-> PoweredOff --+-->[powerUp()]--> Starting --+ | +-----[resume()]-----+
|
---|
471 | | | | | V |
|
---|
472 | | Aborted -----+ +--> Running --[pause()]--> Paused
|
---|
473 | | | ^ | ^ |
|
---|
474 | | Saved -----------[powerUp()]--> Restoring -+ | | | |
|
---|
475 | | ^ | | | |
|
---|
476 | | | +-----------------------------------------+-|-------------------+ +
|
---|
477 | | | | | |
|
---|
478 | | | +-- Saving <--------[takeSnapshot()]<-------+---------------------+
|
---|
479 | | | | |
|
---|
480 | | +-------- Saving <--------[saveState()]<----------+---------------------+
|
---|
481 | | | |
|
---|
482 | +-------------- Stopping -------[powerDown()]<----------+---------------------+
|
---|
483 | </pre>
|
---|
484 |
|
---|
485 | Note that states to the right from PoweredOff, Aborted and Saved in the
|
---|
486 | above diagram are called <i>online VM states</i>. These states
|
---|
487 | represent the virtual machine which is being executed in a dedicated
|
---|
488 | process (usually with a GUI window attached to it where you can see the
|
---|
489 | activity of the virtual machine and interact with it). There are two
|
---|
490 | special pseudo-states, FirstOnline and LastOnline, that can be used in
|
---|
491 | relational expressions to detect if the given machine state is online or
|
---|
492 | not:
|
---|
493 |
|
---|
494 | <pre>
|
---|
495 | if (machine.GetState() >= MachineState_FirstOnline &&
|
---|
496 | machine.GetState() <= MachineState_LastOnline)
|
---|
497 | {
|
---|
498 | ...the machine is being executed...
|
---|
499 | }
|
---|
500 | </pre>
|
---|
501 |
|
---|
502 | When the virtual machine is in one of the online VM states (that is, being
|
---|
503 | executed), only a few machine settings can be modified. Methods working
|
---|
504 | with such settings contain an explicit note about that. An attempt to
|
---|
505 | change any oter setting or perform a modifying operation during this time
|
---|
506 | will result in the <link to="VBOX_E_INVALID_VM_STATE"/> error.
|
---|
507 |
|
---|
508 | All online states except Running, Paused and Stuck are transitional: they
|
---|
509 | represent temporary conditions of the virtual machine that will last as
|
---|
510 | long as the operation that initiated such a condition.
|
---|
511 |
|
---|
512 | The Stuck state is a special case. It means that execution of the machine
|
---|
513 | has reached the "Guru Meditation" condition. This condition indicates an
|
---|
514 | internal VMM (virtual machine manager) failure which may happen as a
|
---|
515 | result of either an unhandled low-level virtual hardware exception or one
|
---|
516 | of the recompiler exceptions (such as the <i>too-many-traps</i>
|
---|
517 | condition).
|
---|
518 |
|
---|
519 | Note also that any online VM state may transit to the Aborted state. This
|
---|
520 | happens if the process that is executing the virtual machine terminates
|
---|
521 | unexpectedly (for example, crashes). Other than that, the Aborted state is
|
---|
522 | equivalent to PoweredOff.
|
---|
523 |
|
---|
524 | There are also a few additional state diagrams that do not deal with
|
---|
525 | virtual machine execution and therefore are shown separately. The states
|
---|
526 | shown on these diagrams are called <i>offline VM states</i> (this includes
|
---|
527 | PoweredOff, Aborted and Saved too).
|
---|
528 |
|
---|
529 | The first diagram shows what happens when a lengthy setup operation is
|
---|
530 | being executed (such as <link to="IMachine::attachHardDisk"/>).
|
---|
531 |
|
---|
532 | <pre>
|
---|
533 | +----------------------------------(same state as before the call)------+
|
---|
534 | | |
|
---|
535 | +-> PoweredOff --+ |
|
---|
536 | | | |
|
---|
537 | |-> Aborted -----+-->[lengthy VM configuration call] --> SettingUp -----+
|
---|
538 | | |
|
---|
539 | +-> Saved -------+
|
---|
540 | </pre>
|
---|
541 |
|
---|
542 | The next two diagrams demonstrate the process of taking a snapshot of a
|
---|
543 | powered off virtual machine and performing one of the "discard..."
|
---|
544 | operations, respectively.
|
---|
545 |
|
---|
546 | <pre>
|
---|
547 | +----------------------------------(same state as before the call)------+
|
---|
548 | | |
|
---|
549 | +-> PoweredOff --+ |
|
---|
550 | | +-->[takeSnapshot()] -------------------> Saving ------+
|
---|
551 | +-> Aborted -----+
|
---|
552 |
|
---|
553 | +-> PoweredOff --+
|
---|
554 | | |
|
---|
555 | | Aborted -----+-->[discardSnapshot() ]-------------> Discarding --+
|
---|
556 | | | [discardCurrentState()] |
|
---|
557 | +-> Saved -------+ [discardCurrentSnapshotAndState()] |
|
---|
558 | | |
|
---|
559 | +---(Saved if restored from an online snapshot, PoweredOff otherwise)---+
|
---|
560 | </pre>
|
---|
561 |
|
---|
562 | Note that the Saving state is present in both the offline state group and
|
---|
563 | online state group. Currently, the only way to determine what group is
|
---|
564 | assumed in a particular case is to remember the previous machine state: if
|
---|
565 | it was Running or Paused, then Saving is an online state, otherwise it is
|
---|
566 | an offline state. This inconsistency may be removed in one of the future
|
---|
567 | versions of VirtualBox by adding a new state.
|
---|
568 |
|
---|
569 | <note internal="yes">
|
---|
570 | For whoever decides to touch this enum: In order to keep the
|
---|
571 | comparisons involving FirstOnline and LastOnline pseudo-states valid,
|
---|
572 | the numeric values of these states must be correspondingly updated if
|
---|
573 | needed: for any online VM state, the condition
|
---|
574 | <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
575 | @c true. The same relates to transient states for which
|
---|
576 | the condition <tt>FirstOnline <= state <= LastOnline</tt> must be
|
---|
577 | @c true.
|
---|
578 | </note>
|
---|
579 | </desc>
|
---|
580 |
|
---|
581 | <const name="Null" value="0">
|
---|
582 | <desc>Null value (never used by the API).</desc>
|
---|
583 | </const>
|
---|
584 | <const name="PoweredOff" value="1">
|
---|
585 | <desc>
|
---|
586 | The machine is not running and has no saved execution state; it has
|
---|
587 | either never been started or been shut down successfully.
|
---|
588 | </desc>
|
---|
589 | </const>
|
---|
590 | <const name="Saved" value="2">
|
---|
591 | <desc>
|
---|
592 | The machine is not currently running, but the execution state of the machine
|
---|
593 | has been saved to an external file when it was running, from where
|
---|
594 | it can be resumed.
|
---|
595 | </desc>
|
---|
596 | </const>
|
---|
597 | <const name="Aborted" value="3">
|
---|
598 | <desc>
|
---|
599 | The process running the machine has terminated abnormally. This may
|
---|
600 | indicate a crash of the VM process in host execution context, or
|
---|
601 | the VM process has been terminated externally.
|
---|
602 | </desc>
|
---|
603 | </const>
|
---|
604 | <const name="Running" value="4">
|
---|
605 | <desc>
|
---|
606 | The machine is currently being executed.
|
---|
607 | <note internal="yes">
|
---|
608 | For whoever decides to touch this enum: In order to keep the
|
---|
609 | comparisons in the old source code valid, this state must immediately
|
---|
610 | precede the Paused state.
|
---|
611 | </note>
|
---|
612 | </desc>
|
---|
613 | </const>
|
---|
614 | <const name="Paused" value="5">
|
---|
615 | <desc>
|
---|
616 | Execution of the machine has been paused.
|
---|
617 | <note internal="yes">
|
---|
618 | For whoever decides to touch this enum: In order to keep the
|
---|
619 | comparisons in the old source code valid, this state must immediately
|
---|
620 | follow the Running state.
|
---|
621 | </note>
|
---|
622 | </desc>
|
---|
623 | </const>
|
---|
624 | <const name="Stuck" value="6">
|
---|
625 | <desc>
|
---|
626 | Execution of the machine has reached the "Guru Meditation"
|
---|
627 | condition. This indicates a severe error in the hypervisor itself.
|
---|
628 | </desc>
|
---|
629 | </const>
|
---|
630 | <const name="Starting" value="7">
|
---|
631 | <desc>
|
---|
632 | Machine is being started after powering it on from a
|
---|
633 | zero execution state.
|
---|
634 | </desc>
|
---|
635 | </const>
|
---|
636 | <const name="Stopping" value="8">
|
---|
637 | <desc>
|
---|
638 | Machine is being normally stopped powering it off, or after the guest OS
|
---|
639 | has initiated a shutdown sequence.
|
---|
640 | </desc>
|
---|
641 | </const>
|
---|
642 | <const name="Saving" value="9">
|
---|
643 | <desc>
|
---|
644 | Machine is saving its execution state to a file, or an online
|
---|
645 | snapshot of the machine is being taken.
|
---|
646 | </desc>
|
---|
647 | </const>
|
---|
648 | <const name="Restoring" value="10">
|
---|
649 | <desc>
|
---|
650 | Execution state of the machine is being restored from a file
|
---|
651 | after powering it on from the saved execution state.
|
---|
652 | </desc>
|
---|
653 | </const>
|
---|
654 | <const name="Discarding" value="11">
|
---|
655 | <desc>
|
---|
656 | Snapshot of the machine is being discarded.
|
---|
657 | </desc>
|
---|
658 | </const>
|
---|
659 | <const name="SettingUp" value="12">
|
---|
660 | <desc>
|
---|
661 | Lengthy setup operation is in progress.
|
---|
662 | </desc>
|
---|
663 | </const>
|
---|
664 |
|
---|
665 | <const name="FirstOnline" value="4" wsmap="suppress"> <!-- Running -->
|
---|
666 | <desc>
|
---|
667 | Pseudo-state: first online state (for use in relational expressions).
|
---|
668 | </desc>
|
---|
669 | </const>
|
---|
670 | <const name="LastOnline" value="10" wsmap="suppress"> <!-- Restoring -->
|
---|
671 | <desc>
|
---|
672 | Pseudo-state: last online state (for use in relational expressions).
|
---|
673 | </desc>
|
---|
674 | </const>
|
---|
675 |
|
---|
676 | <const name="FirstTransient" value="7" wsmap="suppress"> <!-- Starting -->
|
---|
677 | <desc>
|
---|
678 | Pseudo-state: first transient state (for use in relational expressions).
|
---|
679 | </desc>
|
---|
680 | </const>
|
---|
681 | <const name="LastTransient" value="12" wsmap="suppress"> <!-- SettingUp -->
|
---|
682 | <desc>
|
---|
683 | Pseudo-state: last transient state (for use in relational expressions).
|
---|
684 | </desc>
|
---|
685 | </const>
|
---|
686 |
|
---|
687 | </enum>
|
---|
688 |
|
---|
689 | <enum
|
---|
690 | name="SessionState"
|
---|
691 | uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8"
|
---|
692 | >
|
---|
693 | <desc>
|
---|
694 | Session state. This enumeration represents possible values of
|
---|
695 | <link to="IMachine::sessionState"/> and <link to="ISession::state"/>
|
---|
696 | attributes. See individual enumerator descriptions for the meaning for
|
---|
697 | every value.
|
---|
698 | </desc>
|
---|
699 |
|
---|
700 | <const name="Null" value="0">
|
---|
701 | <desc>Null value (never used by the API).</desc>
|
---|
702 | </const>
|
---|
703 | <const name="Closed" value="1">
|
---|
704 | <desc>
|
---|
705 | The machine has no open sessions (<link to="IMachine::sessionState"/>);
|
---|
706 | the session is closed (<link to="ISession::state"/>)
|
---|
707 | </desc>
|
---|
708 | </const>
|
---|
709 | <const name="Open" value="2">
|
---|
710 | <desc>
|
---|
711 | The machine has an open direct session (<link to="IMachine::sessionState"/>);
|
---|
712 | the session is open (<link to="ISession::state"/>)
|
---|
713 | </desc>
|
---|
714 | </const>
|
---|
715 | <const name="Spawning" value="3">
|
---|
716 | <desc>
|
---|
717 | A new (direct) session is being opened for the machine
|
---|
718 | as a result of <link to="IVirtualBox::openRemoteSession"/>
|
---|
719 | call (<link to="IMachine::sessionState"/>);
|
---|
720 | the session is currently being opened
|
---|
721 | as a result of <link to="IVirtualBox::openRemoteSession"/>
|
---|
722 | call (<link to="ISession::state"/>)
|
---|
723 | </desc>
|
---|
724 | </const>
|
---|
725 | <const name="Closing" value="4">
|
---|
726 | <desc>
|
---|
727 | The direct session is being closed (<link to="IMachine::sessionState"/>);
|
---|
728 | the session is being closed (<link to="ISession::state"/>)
|
---|
729 | </desc>
|
---|
730 | </const>
|
---|
731 | </enum>
|
---|
732 |
|
---|
733 | <enum
|
---|
734 | name="SessionType"
|
---|
735 | uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A"
|
---|
736 | >
|
---|
737 | <desc>
|
---|
738 | Session type. This enumeration represents possible values of the
|
---|
739 | <link to="ISession::type"/> attribute.
|
---|
740 | </desc>
|
---|
741 |
|
---|
742 | <const name="Null" value="0">
|
---|
743 | <desc>Null value (never used by the API).</desc>
|
---|
744 | </const>
|
---|
745 | <const name="Direct" value="1">
|
---|
746 | <desc>
|
---|
747 | Direct session
|
---|
748 | (opened by <link to="IVirtualBox::openSession"/>)
|
---|
749 | </desc>
|
---|
750 | </const>
|
---|
751 | <const name="Remote" value="2">
|
---|
752 | <desc>
|
---|
753 | Remote session
|
---|
754 | (opened by <link to="IVirtualBox::openRemoteSession"/>)
|
---|
755 | </desc>
|
---|
756 | </const>
|
---|
757 | <const name="Existing" value="3">
|
---|
758 | <desc>
|
---|
759 | Existing session
|
---|
760 | (opened by <link to="IVirtualBox::openExistingSession"/>)
|
---|
761 | </desc>
|
---|
762 | </const>
|
---|
763 | </enum>
|
---|
764 |
|
---|
765 | <enum
|
---|
766 | name="DeviceType"
|
---|
767 | uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57"
|
---|
768 | >
|
---|
769 | <desc>
|
---|
770 | Device type.
|
---|
771 | </desc>
|
---|
772 | <const name="Null" value="0">
|
---|
773 | <desc>
|
---|
774 | Null value, may also mean "no device" (not allowed for
|
---|
775 | <link to="IConsole::getDeviceActivity"/>).
|
---|
776 | </desc>
|
---|
777 | </const>
|
---|
778 | <const name="Floppy" value="1">
|
---|
779 | <desc>Floppy device.</desc>
|
---|
780 | </const>
|
---|
781 | <const name="DVD" value="2">
|
---|
782 | <desc>CD/DVD-ROM device.</desc>
|
---|
783 | </const>
|
---|
784 | <const name="HardDisk" value="3">
|
---|
785 | <desc>Hard disk device.</desc>
|
---|
786 | </const>
|
---|
787 | <const name="Network" value="4">
|
---|
788 | <desc>Network device.</desc>
|
---|
789 | </const>
|
---|
790 | <const name="USB" value="5">
|
---|
791 | <desc>USB device.</desc>
|
---|
792 | </const>
|
---|
793 | <const name="SharedFolder" value="6">
|
---|
794 | <desc>Shared folder device.</desc>
|
---|
795 | </const>
|
---|
796 | </enum>
|
---|
797 |
|
---|
798 | <enum
|
---|
799 | name="DeviceActivity"
|
---|
800 | uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707"
|
---|
801 | >
|
---|
802 | <desc>
|
---|
803 | Device activity for <link to="IConsole::getDeviceActivity"/>.
|
---|
804 | </desc>
|
---|
805 |
|
---|
806 | <const name="Null" value="0"/>
|
---|
807 | <const name="Idle" value="1"/>
|
---|
808 | <const name="Reading" value="2"/>
|
---|
809 | <const name="Writing" value="3"/>
|
---|
810 | </enum>
|
---|
811 |
|
---|
812 | <enum
|
---|
813 | name="ClipboardMode"
|
---|
814 | uuid="33364716-4008-4701-8f14-be0fa3d62950"
|
---|
815 | >
|
---|
816 | <desc>
|
---|
817 | Host-Guest clipboard interchange mode.
|
---|
818 | </desc>
|
---|
819 |
|
---|
820 | <const name="Disabled" value="0"/>
|
---|
821 | <const name="HostToGuest" value="1"/>
|
---|
822 | <const name="GuestToHost" value="2"/>
|
---|
823 | <const name="Bidirectional" value="3"/>
|
---|
824 | </enum>
|
---|
825 |
|
---|
826 | <enum
|
---|
827 | name="Scope"
|
---|
828 | uuid="7c91096e-499e-4eca-9f9b-9001438d7855"
|
---|
829 | >
|
---|
830 | <desc>
|
---|
831 | Scope of the operation.
|
---|
832 |
|
---|
833 | A generic enumeration used in various methods to define the action or
|
---|
834 | argument scope.
|
---|
835 | </desc>
|
---|
836 |
|
---|
837 | <const name="Global" value="0"/>
|
---|
838 | <const name="Machine" value="1"/>
|
---|
839 | <const name="Session" value="2"/>
|
---|
840 | </enum>
|
---|
841 |
|
---|
842 | <enum
|
---|
843 | name="GuestStatisticType"
|
---|
844 | uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55"
|
---|
845 | >
|
---|
846 | <desc>
|
---|
847 | Statistics type for <link to="IGuest::getStatistic"/>.
|
---|
848 | </desc>
|
---|
849 |
|
---|
850 | <const name="CPULoad_Idle" value="0">
|
---|
851 | <desc>
|
---|
852 | Idle CPU load (0-100%) for last interval.
|
---|
853 | </desc>
|
---|
854 | </const>
|
---|
855 | <const name="CPULoad_Kernel" value="1">
|
---|
856 | <desc>
|
---|
857 | Kernel CPU load (0-100%) for last interval.
|
---|
858 | </desc>
|
---|
859 | </const>
|
---|
860 | <const name="CPULoad_User" value="2">
|
---|
861 | <desc>
|
---|
862 | User CPU load (0-100%) for last interval.
|
---|
863 | </desc>
|
---|
864 | </const>
|
---|
865 | <const name="Threads" value="3">
|
---|
866 | <desc>
|
---|
867 | Total number of threads in the system.
|
---|
868 | </desc>
|
---|
869 | </const>
|
---|
870 | <const name="Processes" value="4">
|
---|
871 | <desc>
|
---|
872 | Total number of processes in the system.
|
---|
873 | </desc>
|
---|
874 | </const>
|
---|
875 | <const name="Handles" value="5">
|
---|
876 | <desc>
|
---|
877 | Total number of handles in the system.
|
---|
878 | </desc>
|
---|
879 | </const>
|
---|
880 | <const name="MemoryLoad" value="6">
|
---|
881 | <desc>
|
---|
882 | Memory load (0-100%).
|
---|
883 | </desc>
|
---|
884 | </const>
|
---|
885 | <const name="PhysMemTotal" value="7">
|
---|
886 | <desc>
|
---|
887 | Total physical memory in megabytes.
|
---|
888 | </desc>
|
---|
889 | </const>
|
---|
890 | <const name="PhysMemAvailable" value="8">
|
---|
891 | <desc>
|
---|
892 | Free physical memory in megabytes.
|
---|
893 | </desc>
|
---|
894 | </const>
|
---|
895 | <const name="PhysMemBalloon" value="9">
|
---|
896 | <desc>
|
---|
897 | Ballooned physical memory in megabytes.
|
---|
898 | </desc>
|
---|
899 | </const>
|
---|
900 | <const name="MemCommitTotal" value="10">
|
---|
901 | <desc>
|
---|
902 | Total amount of memory in the committed state in megabytes.
|
---|
903 | </desc>
|
---|
904 | </const>
|
---|
905 | <const name="MemKernelTotal" value="11">
|
---|
906 | <desc>
|
---|
907 | Total amount of memory used by the guest OS's kernel in megabytes.
|
---|
908 | </desc>
|
---|
909 | </const>
|
---|
910 | <const name="MemKernelPaged" value="12">
|
---|
911 | <desc>
|
---|
912 | Total amount of paged memory used by the guest OS's kernel in megabytes.
|
---|
913 | </desc>
|
---|
914 | </const>
|
---|
915 | <const name="MemKernelNonpaged" value="13">
|
---|
916 | <desc>
|
---|
917 | Total amount of non-paged memory used by the guest OS's kernel in megabytes.
|
---|
918 | </desc>
|
---|
919 | </const>
|
---|
920 | <const name="MemSystemCache" value="14">
|
---|
921 | <desc>
|
---|
922 | Total amount of memory used by the guest OS's system cache in megabytes.
|
---|
923 | </desc>
|
---|
924 | </const>
|
---|
925 | <const name="PageFileSize" value="15">
|
---|
926 | <desc>
|
---|
927 | Pagefile size in megabytes.
|
---|
928 | </desc>
|
---|
929 | </const>
|
---|
930 | <const name="SampleNumber" value="16">
|
---|
931 | <desc>
|
---|
932 | Statistics sample number
|
---|
933 | </desc>
|
---|
934 | </const>
|
---|
935 | <const name="MaxVal" value="17"/>
|
---|
936 | </enum>
|
---|
937 |
|
---|
938 | <enum
|
---|
939 | name="BIOSBootMenuMode"
|
---|
940 | uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"
|
---|
941 | >
|
---|
942 | <desc>
|
---|
943 | BIOS boot menu mode.
|
---|
944 | </desc>
|
---|
945 |
|
---|
946 | <const name="Disabled" value="0"/>
|
---|
947 | <const name="MenuOnly" value="1"/>
|
---|
948 | <const name="MessageAndMenu" value="2"/>
|
---|
949 | </enum>
|
---|
950 |
|
---|
951 | <enum
|
---|
952 | name="DriveState"
|
---|
953 | uuid="cb7233b7-c519-42a5-8310-1830953cacbc"
|
---|
954 | >
|
---|
955 | <const name="Null" value="0">
|
---|
956 | <desc>Null value (never used by the API).</desc>
|
---|
957 | </const>
|
---|
958 | <const name="NotMounted" value="1"/>
|
---|
959 | <const name="ImageMounted" value="2"/>
|
---|
960 | <const name="HostDriveCaptured" value="3"/>
|
---|
961 | </enum>
|
---|
962 |
|
---|
963 | <enum
|
---|
964 | name="ProcessorFeature"
|
---|
965 | uuid="b8353b35-705d-4796-9967-ebfb7ba54af4"
|
---|
966 | >
|
---|
967 | <desc>
|
---|
968 | CPU features.
|
---|
969 | </desc>
|
---|
970 |
|
---|
971 | <const name="HWVirtEx" value="0"/>
|
---|
972 | <const name="PAE" value="1"/>
|
---|
973 | <const name="LongMode" value="2"/>
|
---|
974 | </enum>
|
---|
975 |
|
---|
976 | <enum
|
---|
977 | name="FirmwareType"
|
---|
978 | uuid="7ceea938-8b49-41e2-bb47-667219c0d586"
|
---|
979 | >
|
---|
980 | <desc>
|
---|
981 | Firmware type.
|
---|
982 | </desc>
|
---|
983 | <const name="Bios" value="1">
|
---|
984 | <desc>BIOS Firmware.</desc>
|
---|
985 | </const>
|
---|
986 | <const name="Efi" value="2">
|
---|
987 | <desc>Efi firmware.</desc>
|
---|
988 | </const>
|
---|
989 | </enum>
|
---|
990 |
|
---|
991 | <!--
|
---|
992 | // IVirtualBoxErrorInfo
|
---|
993 | /////////////////////////////////////////////////////////////////////////
|
---|
994 | -->
|
---|
995 |
|
---|
996 | <interface
|
---|
997 | name="IVirtualBoxErrorInfo" extends="$errorinfo"
|
---|
998 | uuid="4b86d186-407e-4f9e-8be8-e50061be8725"
|
---|
999 | supportsErrorInfo="no"
|
---|
1000 | wsmap="managed"
|
---|
1001 | >
|
---|
1002 | <desc>
|
---|
1003 | The IVirtualBoxErrorInfo interface represents extended error information.
|
---|
1004 |
|
---|
1005 | Extended error information can be set by VirtualBox components after
|
---|
1006 | unsuccessful or partially successful method invocation. This information
|
---|
1007 | can be retrieved by the calling party as an IVirtualBoxErrorInfo object
|
---|
1008 | and then shown to the client in addition to the plain 32-bit result code.
|
---|
1009 |
|
---|
1010 | In MS COM, this interface extends the IErrorInfo interface,
|
---|
1011 | in XPCOM, it extends the nsIException interface. In both cases,
|
---|
1012 | it provides a set of common attributes to retrieve error
|
---|
1013 | information.
|
---|
1014 |
|
---|
1015 | Sometimes invocation of some component's method may involve methods of
|
---|
1016 | other components that may also fail (independently of this method's
|
---|
1017 | failure), or a series of non-fatal errors may precede a fatal error that
|
---|
1018 | causes method failure. In cases like that, it may be desirable to preserve
|
---|
1019 | information about all errors happened during method invocation and deliver
|
---|
1020 | it to the caller. The <link to="#next"/> attribute is intended
|
---|
1021 | specifically for this purpose and allows to represent a chain of errors
|
---|
1022 | through a single IVirtualBoxErrorInfo object set after method invocation.
|
---|
1023 |
|
---|
1024 | Note that errors are stored to a chain in the reverse order, i.e. the
|
---|
1025 | initial error object you query right after method invocation is the last
|
---|
1026 | error set by the callee, the object it points to in the @a next attribute
|
---|
1027 | is the previous error and so on, up to the first error (which is the last
|
---|
1028 | in the chain).
|
---|
1029 | </desc>
|
---|
1030 |
|
---|
1031 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
1032 | <desc>
|
---|
1033 | Result code of the error.
|
---|
1034 | Usually, it will be the same as the result code returned
|
---|
1035 | by the method that provided this error information, but not
|
---|
1036 | always. For example, on Win32, CoCreateInstance() will most
|
---|
1037 | likely return E_NOINTERFACE upon unsuccessful component
|
---|
1038 | instantiation attempt, but not the value the component factory
|
---|
1039 | returned. Value is typed 'long', not 'result',
|
---|
1040 | to make interface usable from scripting languages.
|
---|
1041 | <note>
|
---|
1042 | In MS COM, there is no equivalent.
|
---|
1043 | In XPCOM, it is the same as nsIException::result.
|
---|
1044 | </note>
|
---|
1045 | </desc>
|
---|
1046 | </attribute>
|
---|
1047 |
|
---|
1048 | <attribute name="interfaceID" type="wstring" readonly="yes">
|
---|
1049 | <desc>
|
---|
1050 | UUID of the interface that defined the error.
|
---|
1051 | <note>
|
---|
1052 | In MS COM, it is the same as IErrorInfo::GetGUID, except for the
|
---|
1053 | data type.
|
---|
1054 | In XPCOM, there is no equivalent.
|
---|
1055 | </note>
|
---|
1056 | </desc>
|
---|
1057 | </attribute>
|
---|
1058 |
|
---|
1059 | <attribute name="component" type="wstring" readonly="yes">
|
---|
1060 | <desc>
|
---|
1061 | Name of the component that generated the error.
|
---|
1062 | <note>
|
---|
1063 | In MS COM, it is the same as IErrorInfo::GetSource.
|
---|
1064 | In XPCOM, there is no equivalent.
|
---|
1065 | </note>
|
---|
1066 | </desc>
|
---|
1067 | </attribute>
|
---|
1068 |
|
---|
1069 | <attribute name="text" type="wstring" readonly="yes">
|
---|
1070 | <desc>
|
---|
1071 | Text description of the error.
|
---|
1072 | <note>
|
---|
1073 | In MS COM, it is the same as IErrorInfo::GetDescription.
|
---|
1074 | In XPCOM, it is the same as nsIException::message.
|
---|
1075 | </note>
|
---|
1076 | </desc>
|
---|
1077 | </attribute>
|
---|
1078 |
|
---|
1079 | <attribute name="next" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
1080 | <desc>
|
---|
1081 | Next error object if there is any, or @c null otherwise.
|
---|
1082 | <note>
|
---|
1083 | In MS COM, there is no equivalent.
|
---|
1084 | In XPCOM, it is the same as nsIException::inner.
|
---|
1085 | </note>
|
---|
1086 | </desc>
|
---|
1087 | </attribute>
|
---|
1088 |
|
---|
1089 | </interface>
|
---|
1090 |
|
---|
1091 | <interface
|
---|
1092 | name="ILocalOwner" extends="$dispatched"
|
---|
1093 | uuid="308FF42A-DC45-49D4-A950-B1EEE5E00BB5" wsmap="suppress"
|
---|
1094 | >
|
---|
1095 | <desc>
|
---|
1096 | The ILocalOwner interface allows to register local objects
|
---|
1097 | (created without COM calls, but with new()).
|
---|
1098 | Once registered, calls to methods of such objects can be made
|
---|
1099 | from remote COM processes.
|
---|
1100 | The main usecase is the event callback implementation where
|
---|
1101 | API clients provide callback objects.
|
---|
1102 | </desc>
|
---|
1103 | <method name="setLocalObject">
|
---|
1104 | <desc>
|
---|
1105 | Set local object.
|
---|
1106 | </desc>
|
---|
1107 | <param name="object" type="$unknown" dir="in">
|
---|
1108 | <desc>Local object to forward requests to.
|
---|
1109 | If null, clears currently set local object.</desc>
|
---|
1110 | </param>
|
---|
1111 | </method>
|
---|
1112 | </interface>
|
---|
1113 |
|
---|
1114 | <!--
|
---|
1115 | // IVirtualBox
|
---|
1116 | /////////////////////////////////////////////////////////////////////////
|
---|
1117 | -->
|
---|
1118 |
|
---|
1119 | <interface
|
---|
1120 | name="IVirtualBoxCallback" extends="$unknown"
|
---|
1121 | uuid="2990059f-5bc8-4635-8415-658917cd3186"
|
---|
1122 | wsmap="suppress"
|
---|
1123 | >
|
---|
1124 |
|
---|
1125 | <method name="onMachineStateChange">
|
---|
1126 | <desc>
|
---|
1127 | The execution state of the given machine has changed.
|
---|
1128 | <see>IMachine::state</see>
|
---|
1129 | </desc>
|
---|
1130 | <param name="machineId" type="wstring" dir="in">
|
---|
1131 | <desc>ID of the machine this event relates to.</desc>
|
---|
1132 | </param>
|
---|
1133 | <param name="state" type="MachineState" dir="in">
|
---|
1134 | <desc>New execution state.</desc>
|
---|
1135 | </param>
|
---|
1136 | </method>
|
---|
1137 |
|
---|
1138 | <method name="onMachineDataChange">
|
---|
1139 | <desc>
|
---|
1140 | Any of the settings of the given machine has changed.
|
---|
1141 | </desc>
|
---|
1142 | <param name="machineId" type="wstring" dir="in">
|
---|
1143 | <desc>ID of the machine this event relates to.</desc>
|
---|
1144 | </param>
|
---|
1145 | </method>
|
---|
1146 |
|
---|
1147 | <method name="onExtraDataCanChange">
|
---|
1148 | <desc>
|
---|
1149 | Notification when someone tries to change extra data for
|
---|
1150 | either the given machine or (if @c null) global extra data.
|
---|
1151 | This gives the chance to veto against changes.
|
---|
1152 | </desc>
|
---|
1153 | <param name="machineId" type="wstring" dir="in">
|
---|
1154 | <desc>
|
---|
1155 | ID of the machine this event relates to
|
---|
1156 | (@c null ID for global extra data change requests).
|
---|
1157 | </desc>
|
---|
1158 | </param>
|
---|
1159 | <param name="key" type="wstring" dir="in">
|
---|
1160 | <desc>
|
---|
1161 | Extra data key for the attempted write.
|
---|
1162 | </desc>
|
---|
1163 | </param>
|
---|
1164 | <param name="value" type="wstring" dir="in">
|
---|
1165 | <desc>
|
---|
1166 | Extra data value for the given key.
|
---|
1167 | </desc>
|
---|
1168 | </param>
|
---|
1169 | <param name="error" type="wstring" dir="out">
|
---|
1170 | <desc>
|
---|
1171 | Optional error message describing the reason of the
|
---|
1172 | veto (ignored if this notification returns @c true).
|
---|
1173 | </desc>
|
---|
1174 | </param>
|
---|
1175 | <param name="allowChange" type="boolean" dir="return">
|
---|
1176 | <desc>
|
---|
1177 | Flag to indicate whether the callee agrees (@c true)
|
---|
1178 | or vetoes against the change (@c false).
|
---|
1179 | </desc>
|
---|
1180 | </param>
|
---|
1181 | </method>
|
---|
1182 |
|
---|
1183 | <method name="onExtraDataChange">
|
---|
1184 | <desc>
|
---|
1185 | Notification when machine specific or global extra data
|
---|
1186 | has changed.
|
---|
1187 | </desc>
|
---|
1188 | <param name="machineId" type="wstring" dir="in">
|
---|
1189 | <desc>
|
---|
1190 | ID of the machine this event relates to.
|
---|
1191 | Null for global extra data changes.
|
---|
1192 | </desc>
|
---|
1193 | </param>
|
---|
1194 | <param name="key" type="wstring" dir="in">
|
---|
1195 | <desc>
|
---|
1196 | Extra data key that has changed.
|
---|
1197 | </desc>
|
---|
1198 | </param>
|
---|
1199 | <param name="value" type="wstring" dir="in">
|
---|
1200 | <desc>
|
---|
1201 | Extra data value for the given key.
|
---|
1202 | </desc>
|
---|
1203 | </param>
|
---|
1204 | </method>
|
---|
1205 |
|
---|
1206 | <method name="onMediaRegistered">
|
---|
1207 | <desc>
|
---|
1208 | The given media was registered or unregistered
|
---|
1209 | within this VirtualBox installation.
|
---|
1210 |
|
---|
1211 | The @a mediaType parameter describes what type of
|
---|
1212 | media the specified @a mediaId refers to. Possible
|
---|
1213 | values are:
|
---|
1214 |
|
---|
1215 | <ul>
|
---|
1216 | <li><link to="DeviceType_HardDisk"/>: the media is a hard disk
|
---|
1217 | that, if registered, can be obtained using the
|
---|
1218 | <link to="IVirtualBox::getHardDisk"/> call.</li>
|
---|
1219 | <li><link to="DeviceType_DVD"/>: the media is a CD/DVD image
|
---|
1220 | that, if registered, can be obtained using the
|
---|
1221 | <link to="IVirtualBox::getDVDImage"/> call.</li>
|
---|
1222 | <li><link to="DeviceType_Floppy"/>: the media is a Floppy image
|
---|
1223 | that, if registered, can be obtained using the
|
---|
1224 | <link to="IVirtualBox::getFloppyImage"/> call.</li>
|
---|
1225 | </ul>
|
---|
1226 |
|
---|
1227 | Note that if this is a deregistration notification,
|
---|
1228 | there is no way to access the object representing the
|
---|
1229 | unregistered media. It is supposed that the
|
---|
1230 | application will do required cleanup based on the
|
---|
1231 | @a mediaId value.
|
---|
1232 | </desc>
|
---|
1233 | <param name="mediaId" type="wstring" dir="in">
|
---|
1234 | <desc>ID of the media this event relates to.</desc>
|
---|
1235 | </param>
|
---|
1236 | <param name="mediaType" type="DeviceType" dir="in">
|
---|
1237 | <desc>Type of the media this event relates to.</desc>
|
---|
1238 | </param>
|
---|
1239 | <param name="registered" type="boolean" dir="in">
|
---|
1240 | <desc>
|
---|
1241 | If @c true, the media was registered, otherwise it was
|
---|
1242 | unregistered.
|
---|
1243 | </desc>
|
---|
1244 | </param>
|
---|
1245 | </method>
|
---|
1246 |
|
---|
1247 | <method name="onMachineRegistered">
|
---|
1248 | <desc>
|
---|
1249 | The given machine was registered or unregistered
|
---|
1250 | within this VirtualBox installation.
|
---|
1251 | </desc>
|
---|
1252 | <param name="machineId" type="wstring" dir="in">
|
---|
1253 | <desc>ID of the machine this event relates to.</desc>
|
---|
1254 | </param>
|
---|
1255 | <param name="registered" type="boolean" dir="in">
|
---|
1256 | <desc>
|
---|
1257 | If @c true, the machine was registered, otherwise it was
|
---|
1258 | unregistered.
|
---|
1259 | </desc>
|
---|
1260 | </param>
|
---|
1261 | </method>
|
---|
1262 |
|
---|
1263 | <method name="onSessionStateChange">
|
---|
1264 | <desc>
|
---|
1265 | The state of the session for the given machine was changed.
|
---|
1266 | <see>IMachine::sessionState</see>
|
---|
1267 | </desc>
|
---|
1268 | <param name="machineId" type="wstring" dir="in">
|
---|
1269 | <desc>ID of the machine this event relates to.</desc>
|
---|
1270 | </param>
|
---|
1271 | <param name="state" type="SessionState" dir="in">
|
---|
1272 | <desc>New session state.</desc>
|
---|
1273 | </param>
|
---|
1274 | </method>
|
---|
1275 |
|
---|
1276 | <method name="onSnapshotTaken">
|
---|
1277 | <desc>
|
---|
1278 | A new snapshot of the machine has been taken.
|
---|
1279 | <see>ISnapshot</see>
|
---|
1280 | </desc>
|
---|
1281 | <param name="machineId" type="wstring" dir="in">
|
---|
1282 | <desc>ID of the machine this event relates to.</desc>
|
---|
1283 | </param>
|
---|
1284 | <param name="snapshotId" type="wstring" dir="in">
|
---|
1285 | <desc>ID of the new snapshot.</desc>
|
---|
1286 | </param>
|
---|
1287 | </method>
|
---|
1288 |
|
---|
1289 | <method name="onSnapshotDiscarded">
|
---|
1290 | <desc>
|
---|
1291 | Snapshot of the given machine has been discarded.
|
---|
1292 |
|
---|
1293 | <note>
|
---|
1294 | This notification is delivered <b>after</b> the snapshot
|
---|
1295 | object has been uninitialized on the server (so that any
|
---|
1296 | attempt to call its methods will return an error).
|
---|
1297 | </note>
|
---|
1298 |
|
---|
1299 | <see>ISnapshot</see>
|
---|
1300 | </desc>
|
---|
1301 | <param name="machineId" type="wstring" dir="in">
|
---|
1302 | <desc>ID of the machine this event relates to.</desc>
|
---|
1303 | </param>
|
---|
1304 | <param name="snapshotId" type="wstring" dir="in">
|
---|
1305 | <desc>
|
---|
1306 | ID of the discarded snapshot. @c null means the current machine
|
---|
1307 | state has been discarded (restored from the current snapshot).
|
---|
1308 | </desc>
|
---|
1309 | </param>
|
---|
1310 | </method>
|
---|
1311 |
|
---|
1312 | <method name="onSnapshotChange">
|
---|
1313 | <desc>
|
---|
1314 | Snapshot properties (name and/or description) have been changed.
|
---|
1315 | <see>ISnapshot</see>
|
---|
1316 | </desc>
|
---|
1317 | <param name="machineId" type="wstring" dir="in">
|
---|
1318 | <desc>ID of the machine this event relates to.</desc>
|
---|
1319 | </param>
|
---|
1320 | <param name="snapshotId" type="wstring" dir="in">
|
---|
1321 | <desc>ID of the changed snapshot.</desc>
|
---|
1322 | </param>
|
---|
1323 | </method>
|
---|
1324 |
|
---|
1325 | <method name="onGuestPropertyChange">
|
---|
1326 | <desc>
|
---|
1327 | Notification when a guest property has changed.
|
---|
1328 | </desc>
|
---|
1329 | <param name="machineId" type="wstring" dir="in">
|
---|
1330 | <desc>
|
---|
1331 | ID of the machine this event relates to.
|
---|
1332 | </desc>
|
---|
1333 | </param>
|
---|
1334 | <param name="name" type="wstring" dir="in">
|
---|
1335 | <desc>
|
---|
1336 | The name of the property that has changed.
|
---|
1337 | </desc>
|
---|
1338 | </param>
|
---|
1339 | <param name="value" type="wstring" dir="in">
|
---|
1340 | <desc>
|
---|
1341 | The new property value.
|
---|
1342 | </desc>
|
---|
1343 | </param>
|
---|
1344 | <param name="flags" type="wstring" dir="in">
|
---|
1345 | <desc>
|
---|
1346 | The new property flags.
|
---|
1347 | </desc>
|
---|
1348 | </param>
|
---|
1349 | </method>
|
---|
1350 |
|
---|
1351 | </interface>
|
---|
1352 |
|
---|
1353 | <interface
|
---|
1354 | name="IDHCPServer" extends="$unknown"
|
---|
1355 | uuid="6cfe387c-74fb-4ca7-bff6-973bec8af7a3"
|
---|
1356 | wsmap="managed"
|
---|
1357 | >
|
---|
1358 | <desc>
|
---|
1359 | The IDHCPServer interface represents the vbox dhcp server configuration.
|
---|
1360 |
|
---|
1361 | To enumerate all the dhcp servers on the host, use the
|
---|
1362 | <link to="IVirtualBox::DHCPServers"/> attribute.
|
---|
1363 | </desc>
|
---|
1364 |
|
---|
1365 | <attribute name="enabled" type="boolean">
|
---|
1366 | <desc>
|
---|
1367 | specifies if the dhcp server is enabled
|
---|
1368 | </desc>
|
---|
1369 | </attribute>
|
---|
1370 |
|
---|
1371 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
1372 | <desc>
|
---|
1373 | specifies server IP
|
---|
1374 | </desc>
|
---|
1375 | </attribute>
|
---|
1376 |
|
---|
1377 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
1378 | <desc>
|
---|
1379 | specifies server network mask
|
---|
1380 | </desc>
|
---|
1381 | </attribute>
|
---|
1382 |
|
---|
1383 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
1384 | <desc>
|
---|
1385 | specifies internal network name the server is used for
|
---|
1386 | </desc>
|
---|
1387 | </attribute>
|
---|
1388 |
|
---|
1389 | <attribute name="lowerIP" type="wstring" readonly="yes">
|
---|
1390 | <desc>
|
---|
1391 | specifies from IP adrres in server address range
|
---|
1392 | </desc>
|
---|
1393 | </attribute>
|
---|
1394 |
|
---|
1395 | <attribute name="upperIP" type="wstring" readonly="yes">
|
---|
1396 | <desc>
|
---|
1397 | specifies to IP adrres in server address range
|
---|
1398 | </desc>
|
---|
1399 | </attribute>
|
---|
1400 |
|
---|
1401 | <method name="setConfiguration">
|
---|
1402 | <desc>
|
---|
1403 | configures the server
|
---|
1404 | <result name="E_INVALIDARG">
|
---|
1405 | invalid configuration supplied
|
---|
1406 | </result>
|
---|
1407 | </desc>
|
---|
1408 | <param name="IPAddress" type="wstring" dir="in">
|
---|
1409 | <desc>
|
---|
1410 | server IP address
|
---|
1411 | </desc>
|
---|
1412 | </param>
|
---|
1413 | <param name="networkMask" type="wstring" dir="in">
|
---|
1414 | <desc>
|
---|
1415 | server network mask
|
---|
1416 | </desc>
|
---|
1417 | </param>
|
---|
1418 | <param name="FromIPAddress" type="wstring" dir="in">
|
---|
1419 | <desc>
|
---|
1420 | server From IP address for address range
|
---|
1421 | </desc>
|
---|
1422 | </param>
|
---|
1423 | <param name="ToIPAddress" type="wstring" dir="in">
|
---|
1424 | <desc>
|
---|
1425 | server To IP address for address range
|
---|
1426 | </desc>
|
---|
1427 | </param>
|
---|
1428 | </method>
|
---|
1429 |
|
---|
1430 | <method name="start">
|
---|
1431 | <desc>
|
---|
1432 | Starts DHCP server process.
|
---|
1433 | <result name="E_FAIL">
|
---|
1434 | Failed to start the process.
|
---|
1435 | </result>
|
---|
1436 | </desc>
|
---|
1437 | <param name="networkName" type="wstring" dir="in">
|
---|
1438 | <desc>
|
---|
1439 | Name of internal network DHCP server should attach to.
|
---|
1440 | </desc>
|
---|
1441 | </param>
|
---|
1442 | <param name="trunkName" type="wstring" dir="in">
|
---|
1443 | <desc>
|
---|
1444 | Name of internal network trunk.
|
---|
1445 | </desc>
|
---|
1446 | </param>
|
---|
1447 | <param name="trunkType" type="wstring" dir="in">
|
---|
1448 | <desc>
|
---|
1449 | Type of internal network trunk.
|
---|
1450 | </desc>
|
---|
1451 | </param>
|
---|
1452 | </method>
|
---|
1453 |
|
---|
1454 | <method name="stop">
|
---|
1455 | <desc>
|
---|
1456 | Stops DHCP server process.
|
---|
1457 | <result name="E_FAIL">
|
---|
1458 | Failed to stop the process.
|
---|
1459 | </result>
|
---|
1460 | </desc>
|
---|
1461 | </method>
|
---|
1462 | </interface>
|
---|
1463 |
|
---|
1464 | <interface
|
---|
1465 | name="IVirtualBox" extends="$dispatched"
|
---|
1466 | uuid="3f4ab53a-199b-4526-a91a-93ff62e456b8"
|
---|
1467 | wsmap="managed"
|
---|
1468 | >
|
---|
1469 | <desc>
|
---|
1470 | The IVirtualBox interface represents the main interface exposed by the
|
---|
1471 | product that provides virtual machine management.
|
---|
1472 |
|
---|
1473 | An instance of IVirtualBox is required for the product to do anything
|
---|
1474 | useful. Even though the interface does not expose this, internally,
|
---|
1475 | IVirtualBox is implemented as a singleton and actually lives in the
|
---|
1476 | process of the VirtualBox server (VBoxSVC.exe). This makes sure that
|
---|
1477 | IVirtualBox can track the state of all virtual machines on a particular
|
---|
1478 | host, regardless of which frontend started them.
|
---|
1479 |
|
---|
1480 | To enumerate all the virtual machines on the host, use the
|
---|
1481 | <link to="IVirtualBox::machines"/> attribute.
|
---|
1482 | </desc>
|
---|
1483 |
|
---|
1484 | <attribute name="version" type="wstring" readonly="yes">
|
---|
1485 | <desc>
|
---|
1486 | A string representing the version number of the product. The
|
---|
1487 | format is 3 integer numbers divided by dots (e.g. 1.0.1). The
|
---|
1488 | last number represents the build number and will frequently change.
|
---|
1489 | </desc>
|
---|
1490 | </attribute>
|
---|
1491 |
|
---|
1492 | <attribute name="revision" type="unsigned long" readonly="yes">
|
---|
1493 | <desc>
|
---|
1494 | The internal build revision number of the product.
|
---|
1495 | </desc>
|
---|
1496 | </attribute>
|
---|
1497 |
|
---|
1498 | <attribute name="packageType" type="wstring" readonly="yes">
|
---|
1499 | <desc>
|
---|
1500 | A string representing the package type of this product. The
|
---|
1501 | format is OS_ARCH_DIST where OS is either WINDOWS, LINUX,
|
---|
1502 | SOLARIS, DARWIN. ARCH is either 32BITS or 64BITS. DIST
|
---|
1503 | is either GENERIC, UBUNTU_606, UBUNTU_710, or something like
|
---|
1504 | this.
|
---|
1505 | </desc>
|
---|
1506 | </attribute>
|
---|
1507 |
|
---|
1508 | <attribute name="homeFolder" type="wstring" readonly="yes">
|
---|
1509 | <desc>
|
---|
1510 | Full path to the directory where the global settings file,
|
---|
1511 | <tt>VirtualBox.xml</tt>, is stored.
|
---|
1512 |
|
---|
1513 | In this version of VirtualBox, the value of this property is
|
---|
1514 | always <tt><user_dir>/.VirtualBox</tt> (where
|
---|
1515 | <tt><user_dir></tt> is the path to the user directory,
|
---|
1516 | as determined by the host OS), and cannot be changed.
|
---|
1517 |
|
---|
1518 | This path is also used as the base to resolve relative paths in
|
---|
1519 | places where relative paths are allowed (unless otherwise
|
---|
1520 | expressly indicated).
|
---|
1521 | </desc>
|
---|
1522 | </attribute>
|
---|
1523 |
|
---|
1524 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
1525 | <desc>
|
---|
1526 | Full name of the global settings file.
|
---|
1527 | The value of this property corresponds to the value of
|
---|
1528 | <link to="#homeFolder"/> plus <tt>/VirtualBox.xml</tt>.
|
---|
1529 | </desc>
|
---|
1530 | </attribute>
|
---|
1531 |
|
---|
1532 | <attribute name="host" type="IHost" readonly="yes">
|
---|
1533 | <desc>Associated host object.</desc>
|
---|
1534 | </attribute>
|
---|
1535 |
|
---|
1536 | <attribute name="systemProperties" type="ISystemProperties" readonly="yes">
|
---|
1537 | <desc>Associated system information object.</desc>
|
---|
1538 | </attribute>
|
---|
1539 |
|
---|
1540 | <attribute name="machines" type="IMachine" readonly="yes" safearray="yes">
|
---|
1541 | <desc>
|
---|
1542 | Array of machine objects registered within this VirtualBox instance.
|
---|
1543 | </desc>
|
---|
1544 | </attribute>
|
---|
1545 |
|
---|
1546 | <attribute name="hardDisks" type="IHardDisk" readonly="yes" safearray="yes">
|
---|
1547 | <desc>
|
---|
1548 | Array of hard disk objects known to this VirtualBox installation.
|
---|
1549 |
|
---|
1550 | This array contains only base (root) hard disks. All differencing
|
---|
1551 | hard disks of the given base hard disk can be enumerated using
|
---|
1552 | <link to="IHardDisk::children"/>.
|
---|
1553 | </desc>
|
---|
1554 | </attribute>
|
---|
1555 |
|
---|
1556 | <attribute name="DVDImages" type="IDVDImage" readonly="yes" safearray="yes">
|
---|
1557 | <desc>
|
---|
1558 | Array of CD/DVD image objects registered with this VirtualBox instance.
|
---|
1559 | </desc>
|
---|
1560 | </attribute>
|
---|
1561 |
|
---|
1562 | <attribute name="floppyImages" type="IFloppyImage" readonly="yes" safearray="yes">
|
---|
1563 | <desc>
|
---|
1564 | Array of floppy image objects registered with this VirtualBox instance.
|
---|
1565 | </desc>
|
---|
1566 | </attribute>
|
---|
1567 |
|
---|
1568 | <attribute name="progressOperations" type="IProgress" readonly="yes" safearray="yes"/>
|
---|
1569 |
|
---|
1570 | <attribute name="guestOSTypes" type="IGuestOSType" readonly="yes" safearray="yes"/>
|
---|
1571 |
|
---|
1572 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
1573 | <desc>
|
---|
1574 | Collection of global shared folders. Global shared folders are
|
---|
1575 | available to all virtual machines.
|
---|
1576 |
|
---|
1577 | New shared folders are added to the collection using
|
---|
1578 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
1579 | removed using <link to="#removeSharedFolder"/>.
|
---|
1580 |
|
---|
1581 | <note>
|
---|
1582 | In the current version of the product, global shared folders are not
|
---|
1583 | implemented and therefore this collection is always empty.
|
---|
1584 | </note>
|
---|
1585 | </desc>
|
---|
1586 | </attribute>
|
---|
1587 |
|
---|
1588 | <attribute name="performanceCollector" type="IPerformanceCollector" readonly="yes">
|
---|
1589 | <desc>
|
---|
1590 | Associated performance collector object.
|
---|
1591 | </desc>
|
---|
1592 | </attribute>
|
---|
1593 |
|
---|
1594 | <attribute name="DHCPServers" type="IDHCPServer" safearray="yes" readonly="yes">
|
---|
1595 | <desc>
|
---|
1596 | dhcp server settings.
|
---|
1597 | </desc>
|
---|
1598 | </attribute>
|
---|
1599 |
|
---|
1600 | <method name="createMachine">
|
---|
1601 | <desc>
|
---|
1602 | Creates a new virtual machine.
|
---|
1603 |
|
---|
1604 | The new machine is created unregistered, with the initial configuration
|
---|
1605 | set according to the specified guest OS type. A typical sequence of
|
---|
1606 | actions to create a new virtual machine is as follows:
|
---|
1607 |
|
---|
1608 | <ol>
|
---|
1609 | <li>
|
---|
1610 | Call this method to have a new machine created. The returned machine
|
---|
1611 | object will be "mutable" allowing to change any machine property.
|
---|
1612 | </li>
|
---|
1613 |
|
---|
1614 | <li>
|
---|
1615 | Configure the machine using the appropriate attributes and methods.
|
---|
1616 | </li>
|
---|
1617 |
|
---|
1618 | <li>
|
---|
1619 | Call <link to="IMachine::saveSettings" /> to write the settings
|
---|
1620 | to the machine's XML settings file. The configuration of the newly
|
---|
1621 | created machine will not be saved to disk until this method is
|
---|
1622 | called.
|
---|
1623 | </li>
|
---|
1624 |
|
---|
1625 | <li>
|
---|
1626 | Call <link to="#registerMachine" /> to add the machine to the list
|
---|
1627 | of machines known to VirtualBox.
|
---|
1628 | </li>
|
---|
1629 | </ol>
|
---|
1630 |
|
---|
1631 | You should specify valid name for the newly created machine when calling
|
---|
1632 | this method. See the <link to="IMachine::name"/> attribute description
|
---|
1633 | for more details about the machine name.
|
---|
1634 |
|
---|
1635 | The specified guest OS type identifier must match an ID of one of known
|
---|
1636 | guest OS types listed in the <link to="IVirtualBox::guestOSTypes"/>
|
---|
1637 | array.
|
---|
1638 |
|
---|
1639 | Every machine has a <i>settings file</i> that is used to store
|
---|
1640 | the machine configuration. This file is stored in a directory called the
|
---|
1641 | <i>machine settings subfolder</i>. Both the settings subfolder and file
|
---|
1642 | will have a name that corresponds to the name of the virtual machine.
|
---|
1643 | You can specify where to create the machine setting subfolder using the
|
---|
1644 | @a baseFolder argument. The base folder can be absolute (full path) or
|
---|
1645 | relative to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1646 | directory</link>.
|
---|
1647 |
|
---|
1648 | If @a baseFolder is a @c null or empty string (which is recommended), the
|
---|
1649 | <link to="ISystemProperties::defaultMachineFolder">default machine
|
---|
1650 | settings folder</link> will be used as a base folder for the created
|
---|
1651 | machine. Otherwise the given base folder will be used. In either case,
|
---|
1652 | the full path to the resulting settings file has the following
|
---|
1653 | structure:
|
---|
1654 | <pre>
|
---|
1655 | <base_folder>/<machine_name>/<machine_name>.xml
|
---|
1656 | </pre>
|
---|
1657 |
|
---|
1658 | Note that if the resulting settings file already exists, this method
|
---|
1659 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1660 |
|
---|
1661 | Optionally, you may specify an UUID of to assign to the created machine.
|
---|
1662 | However, this is not recommended and you should normally pass an empty
|
---|
1663 | (@c null) UUID to this method so that a new UUID will be automatically
|
---|
1664 | generated for every created machine. You can use UUID
|
---|
1665 | 00000000-0000-0000-0000-000000000000 as @c null value.
|
---|
1666 |
|
---|
1667 | <note>
|
---|
1668 | There is no way to change the name of the settings file or
|
---|
1669 | subfolder of the created machine directly.
|
---|
1670 | </note>
|
---|
1671 |
|
---|
1672 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1673 | @a osTypeId is invalid.
|
---|
1674 | </result>
|
---|
1675 | <result name="VBOX_E_FILE_ERROR">
|
---|
1676 | Resulting settings file name is invalid or the settings file already
|
---|
1677 | exists or could not be created due to an I/O error.
|
---|
1678 | </result>
|
---|
1679 | <result name="E_INVALIDARG">
|
---|
1680 | @a name is empty or @c null.
|
---|
1681 | </result>
|
---|
1682 | </desc>
|
---|
1683 |
|
---|
1684 | <param name="name" type="wstring" dir="in">
|
---|
1685 | <desc>Machine name.</desc>
|
---|
1686 | </param>
|
---|
1687 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1688 | <desc>Guest OS Type ID.</desc>
|
---|
1689 | </param>
|
---|
1690 | <param name="baseFolder" type="wstring" dir="in">
|
---|
1691 | <desc>Base machine folder (optional).</desc>
|
---|
1692 | </param>
|
---|
1693 | <param name="id" type="wstring" dir="in">
|
---|
1694 | <desc>Machine UUID (optional).</desc>
|
---|
1695 | </param>
|
---|
1696 | <param name="machine" type="IMachine" dir="return">
|
---|
1697 | <desc>Created machine object.</desc>
|
---|
1698 | </param>
|
---|
1699 | </method>
|
---|
1700 |
|
---|
1701 | <method name="createLegacyMachine">
|
---|
1702 | <desc>
|
---|
1703 | Creates a new virtual machine in "legacy" mode, using the specified
|
---|
1704 | settings file to store machine settings.
|
---|
1705 |
|
---|
1706 | As opposed to machines created by <link to="#createMachine"/>,
|
---|
1707 | the settings file of the machine created in "legacy" mode is not
|
---|
1708 | automatically renamed when the machine name is changed -- it will always
|
---|
1709 | remain the same as specified in this method call.
|
---|
1710 |
|
---|
1711 | The specified settings file name can be absolute (full path) or relative
|
---|
1712 | to the <link to="IVirtualBox::homeFolder">VirtualBox home
|
---|
1713 | directory</link>. If the file name doesn't contain an extension, the
|
---|
1714 | default extension (.xml) will be appended.
|
---|
1715 |
|
---|
1716 | Note that the configuration of the newly created machine is not
|
---|
1717 | saved to disk (and therefore no settings file is created)
|
---|
1718 | until <link to="IMachine::saveSettings"/> is called. If the
|
---|
1719 | specified settings file already exists, this method
|
---|
1720 | will fail with <link to="VBOX_E_FILE_ERROR"/>.
|
---|
1721 |
|
---|
1722 | See <link to="#createMachine"/> for more information.
|
---|
1723 |
|
---|
1724 | @deprecated This method may be removed later. Use <link
|
---|
1725 | to="IVirtualBox::createMachine"/> instead.
|
---|
1726 |
|
---|
1727 | <note>
|
---|
1728 | There is no way to change the name of the settings file
|
---|
1729 | of the machine created in "legacy" mode.
|
---|
1730 | </note>
|
---|
1731 |
|
---|
1732 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1733 | @a osTypeId is invalid.
|
---|
1734 | </result>
|
---|
1735 | <result name="VBOX_E_FILE_ERROR">
|
---|
1736 | @a settingsFile is invalid or the settings file already exists or
|
---|
1737 | could not be created due to an I/O error.
|
---|
1738 | </result>
|
---|
1739 | <result name="E_INVALIDARG">
|
---|
1740 | @a name or @a settingsFile is empty or @c null.
|
---|
1741 | </result>
|
---|
1742 | </desc>
|
---|
1743 |
|
---|
1744 | <param name="name" type="wstring" dir="in">
|
---|
1745 | <desc>Machine name.</desc>
|
---|
1746 | </param>
|
---|
1747 | <param name="osTypeId" type="wstring" dir="in">
|
---|
1748 | <desc>Machine OS Type ID.</desc>
|
---|
1749 | </param>
|
---|
1750 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1751 | <desc>Name of the machine settings file.</desc>
|
---|
1752 | </param>
|
---|
1753 | <param name="id" type="wstring" dir="in">
|
---|
1754 | <desc>Machine UUID (optional).</desc>
|
---|
1755 | </param>
|
---|
1756 | <param name="machine" type="IMachine" dir="return">
|
---|
1757 | <desc>Created machine object.</desc>
|
---|
1758 | </param>
|
---|
1759 | </method>
|
---|
1760 |
|
---|
1761 | <method name="openMachine">
|
---|
1762 | <desc>
|
---|
1763 | Opens a virtual machine from the existing settings file.
|
---|
1764 | The opened machine remains unregistered until you call
|
---|
1765 | <link to="#registerMachine"/>.
|
---|
1766 |
|
---|
1767 | The specified settings file name can be absolute
|
---|
1768 | (full path) or relative to the <link to="IVirtualBox::homeFolder">
|
---|
1769 | VirtualBox home directory</link>. This file must exist
|
---|
1770 | and must be a valid machine settings file whose contents
|
---|
1771 | will be used to construct the machine object.
|
---|
1772 |
|
---|
1773 | @deprecated Will be removed soon.
|
---|
1774 | <result name="VBOX_E_FILE_ERROR">
|
---|
1775 | Settings file name invalid, not found or sharing violation.
|
---|
1776 | </result>
|
---|
1777 | </desc>
|
---|
1778 | <param name="settingsFile" type="wstring" dir="in">
|
---|
1779 | <desc>
|
---|
1780 | Name of the machine settings file.
|
---|
1781 | </desc>
|
---|
1782 | </param>
|
---|
1783 | <param name="machine" type="IMachine" dir="return">
|
---|
1784 | <desc>Opened machine object.</desc>
|
---|
1785 | </param>
|
---|
1786 | <note>
|
---|
1787 | <link to="IMachine::settingsModified"/> will return
|
---|
1788 | @c false for the created machine, until any of machine settings
|
---|
1789 | are changed.
|
---|
1790 | </note>
|
---|
1791 | </method>
|
---|
1792 |
|
---|
1793 | <method name="registerMachine">
|
---|
1794 | <desc>
|
---|
1795 |
|
---|
1796 | Registers the machine previously created using
|
---|
1797 | <link to="#createMachine"/> or opened using
|
---|
1798 | <link to="#openMachine"/> within this VirtualBox installation. After
|
---|
1799 | successful method invocation, the
|
---|
1800 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1801 | to all registered callbacks.
|
---|
1802 |
|
---|
1803 | <note>
|
---|
1804 | This method implicitly calls <link to="IMachine::saveSettings"/>
|
---|
1805 | to save all current machine settings before registering it.
|
---|
1806 | </note>
|
---|
1807 |
|
---|
1808 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1809 | No matching virtual machine found.
|
---|
1810 | </result>
|
---|
1811 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1812 | Virtual machine was not created within this VirtualBox instance.
|
---|
1813 | </result>
|
---|
1814 |
|
---|
1815 | </desc>
|
---|
1816 | <param name="machine" type="IMachine" dir="in"/>
|
---|
1817 | </method>
|
---|
1818 |
|
---|
1819 | <method name="getMachine">
|
---|
1820 | <desc>
|
---|
1821 | Attempts to find a virtual machine given its UUID.
|
---|
1822 | To look up a machine by name, use <link to="IVirtualBox::findMachine" />
|
---|
1823 | instead.
|
---|
1824 |
|
---|
1825 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1826 | Could not find registered machine matching @a id.
|
---|
1827 | </result>
|
---|
1828 |
|
---|
1829 | </desc>
|
---|
1830 | <param name="id" type="wstring" dir="in"/>
|
---|
1831 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1832 | </method>
|
---|
1833 |
|
---|
1834 | <method name="findMachine">
|
---|
1835 | <desc>
|
---|
1836 | Attempts to find a virtual machine given its name.
|
---|
1837 | To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
|
---|
1838 | instead.
|
---|
1839 |
|
---|
1840 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1841 | Could not find registered machine matching @a name.
|
---|
1842 | </result>
|
---|
1843 |
|
---|
1844 | </desc>
|
---|
1845 | <param name="name" type="wstring" dir="in"/>
|
---|
1846 | <param name="machine" type="IMachine" dir="return"/>
|
---|
1847 | </method>
|
---|
1848 |
|
---|
1849 | <method name="unregisterMachine">
|
---|
1850 | <desc>
|
---|
1851 |
|
---|
1852 | Unregisters the machine previously registered using
|
---|
1853 | <link to="#registerMachine"/>. After successful method invocation, the
|
---|
1854 | <link to="IVirtualBoxCallback::onMachineRegistered"/> signal is sent
|
---|
1855 | to all registered callbacks.
|
---|
1856 |
|
---|
1857 | <note>
|
---|
1858 | The specified machine must not be in the Saved state, have an open
|
---|
1859 | (or a spawning) direct session associated with it, have snapshots or
|
---|
1860 | have hard disks attached.
|
---|
1861 | </note>
|
---|
1862 |
|
---|
1863 | <note>
|
---|
1864 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
1865 | save all current machine settings before unregistering it.
|
---|
1866 | </note>
|
---|
1867 |
|
---|
1868 | <note>
|
---|
1869 | If the given machine is inaccessible (see
|
---|
1870 | <link to="IMachine::accessible"/>), it will be unregistered and
|
---|
1871 | fully uninitialized right afterwards. As a result, the returned
|
---|
1872 | machine object will be unusable and an attempt to call
|
---|
1873 | <b>any</b> method will return the "Object not ready" error.
|
---|
1874 | </note>
|
---|
1875 |
|
---|
1876 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1877 | Could not find registered machine matching @a id.
|
---|
1878 | </result>
|
---|
1879 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
1880 | Machine is in Saved state.
|
---|
1881 | </result>
|
---|
1882 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
1883 | Machine has snapshot or open session or hard disk attached.
|
---|
1884 | </result>
|
---|
1885 |
|
---|
1886 | </desc>
|
---|
1887 | <param name="id" type="wstring" dir="in">
|
---|
1888 | <desc>UUID of the machine to unregister.</desc>
|
---|
1889 | </param>
|
---|
1890 | <param name="machine" type="IMachine" dir="return">
|
---|
1891 | <desc>Unregistered machine object.</desc>
|
---|
1892 | </param>
|
---|
1893 | </method>
|
---|
1894 |
|
---|
1895 | <method name="createAppliance">
|
---|
1896 | <desc>
|
---|
1897 | Creates a new appliance object, which represents an appliance in the Open Virtual Machine
|
---|
1898 | Format (OVF). This can then be used to import an OVF appliance into VirtualBox or to export
|
---|
1899 | machines as an OVF appliance; see the documentation for <link to="IAppliance" /> for details.
|
---|
1900 | </desc>
|
---|
1901 | <param name="appliance" type="IAppliance" dir="return">
|
---|
1902 | <desc>New appliance.</desc>
|
---|
1903 | </param>
|
---|
1904 | </method>
|
---|
1905 |
|
---|
1906 | <method name="createHardDisk">
|
---|
1907 | <desc>
|
---|
1908 | Creates a new base hard disk object that will use the given storage
|
---|
1909 | format and location for hard disk data.
|
---|
1910 |
|
---|
1911 | Note that the actual storage unit is not created by this method. In
|
---|
1912 | order to do it, and before you are able to attach the created hard disk
|
---|
1913 | to virtual machines, you must call one of the following methods to
|
---|
1914 | allocate a format-specific storage unit at the specified location:
|
---|
1915 | <ul>
|
---|
1916 | <li><link to="IHardDisk::createBaseStorage"/></li>
|
---|
1917 | <li><link to="IHardDisk::createDiffStorage"/></li>
|
---|
1918 | </ul>
|
---|
1919 |
|
---|
1920 | Some hard disk attributes, such as <link to="IHardDisk::id"/>, may
|
---|
1921 | remain uninitialized until the hard disk storage unit is successfully
|
---|
1922 | created by one of the above methods.
|
---|
1923 |
|
---|
1924 | After the storage unit is successfully created, the hard disk gets
|
---|
1925 | remembered by this VirtualBox installation and will be accessible
|
---|
1926 | through <link to="#getHardDisk"/> and <link to="#findHardDisk"/>
|
---|
1927 | methods. Remembered root (base) hard disks are also returned as part of
|
---|
1928 | the <link to="#hardDisks"/> array. See IHardDisk for more details.
|
---|
1929 |
|
---|
1930 | The list of all storage formats supported by this VirtualBox
|
---|
1931 | installation can be obtained using
|
---|
1932 | <link to="ISystemProperties::hardDiskFormats"/>. If the @a format
|
---|
1933 | attribute is empty or @c null then the default storage format
|
---|
1934 | specified by <link to="ISystemProperties::defaultHardDiskFormat"/> will
|
---|
1935 | be used for creating a storage unit of the hard disk.
|
---|
1936 |
|
---|
1937 | Note that the format of the location string is storage format specific.
|
---|
1938 | See <link to="IMedium::location"/>, IHardDisk and
|
---|
1939 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1940 |
|
---|
1941 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
1942 | @a format identifier is invalid. See
|
---|
1943 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
1944 | </result>
|
---|
1945 | <result name="VBOX_E_FILE_ERROR">
|
---|
1946 | @a location is a not valid file name (for file-based formats only).
|
---|
1947 | </result>
|
---|
1948 | </desc>
|
---|
1949 | <param name="format" type="wstring" dir="in">
|
---|
1950 | <desc>
|
---|
1951 | Identifier of the storage format to use for the new hard disk.
|
---|
1952 | </desc>
|
---|
1953 | </param>
|
---|
1954 | <param name="location" type="wstring" dir="in">
|
---|
1955 | <desc>
|
---|
1956 | Location of the storage unit for the new hard disk.
|
---|
1957 | </desc>
|
---|
1958 | </param>
|
---|
1959 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
1960 | <desc>Created hard disk object.</desc>
|
---|
1961 | </param>
|
---|
1962 | </method>
|
---|
1963 |
|
---|
1964 | <method name="openHardDisk">
|
---|
1965 | <desc>
|
---|
1966 | Opens a hard disk from an existing location, optionally replacing
|
---|
1967 | the image UUID and/or parent UUID.
|
---|
1968 |
|
---|
1969 | After the hard disk is successfully opened by this method, it gets
|
---|
1970 | remembered by (known to) this VirtualBox installation and will be
|
---|
1971 | accessible through <link to="#getHardDisk"/> and
|
---|
1972 | <link to="#findHardDisk"/> methods. Remembered root (base) hard disks
|
---|
1973 | are also returned as part of the <link to="#hardDisks"/> array and can
|
---|
1974 | be attached to virtual machines. See IHardDisk for more details.
|
---|
1975 |
|
---|
1976 | If a differencing hard disk is to be opened by this method, the
|
---|
1977 | operation will succeed only if its parent hard disk and all ancestors,
|
---|
1978 | if any, are already known to this VirtualBox installation (for example,
|
---|
1979 | were opened by this method before).
|
---|
1980 |
|
---|
1981 | This method tries to guess the storage format of the specified hard disk
|
---|
1982 | by reading hard disk data at the specified location.
|
---|
1983 |
|
---|
1984 | If @a write is ReadWrite (which it should be), the image is opened for
|
---|
1985 | read/write access and must have according permissions, as VirtualBox
|
---|
1986 | may actually write status information into the disk's metadata sections.
|
---|
1987 |
|
---|
1988 | Note that write access is required for all typical image usage in VirtualBox,
|
---|
1989 | since VirtualBox may need to write metadata such as a UUID into the image.
|
---|
1990 | The only exception is opening a source image temporarily for copying and
|
---|
1991 | cloning when the image will quickly be closed again.
|
---|
1992 |
|
---|
1993 | Note that the format of the location string is storage format specific.
|
---|
1994 | See <link to="IMedium::location"/>, IHardDisk and
|
---|
1995 | <link to="ISystemProperties::defaultHardDiskFolder"/> for more details.
|
---|
1996 |
|
---|
1997 | <result name="VBOX_E_FILE_ERROR">
|
---|
1998 | Invalid hard disk storage file location or could not find the hard
|
---|
1999 | disk at the specified location.
|
---|
2000 | </result>
|
---|
2001 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2002 | Could not get hard disk storage format.
|
---|
2003 | </result>
|
---|
2004 | <result name="E_INVALIDARG">
|
---|
2005 | Invalid hard disk storage format.
|
---|
2006 | </result>
|
---|
2007 |
|
---|
2008 | </desc>
|
---|
2009 | <param name="location" type="wstring" dir="in">
|
---|
2010 | <desc>
|
---|
2011 | Location of the storage unit that contains hard disk data in one of
|
---|
2012 | the supported storage formats.
|
---|
2013 | </desc>
|
---|
2014 | </param>
|
---|
2015 | <param name="accessMode" type="AccessMode" dir="in">
|
---|
2016 | <desc>
|
---|
2017 | Determines whether to open the image in read/write or read-only mode.
|
---|
2018 | </desc>
|
---|
2019 | </param>
|
---|
2020 | <param name="setImageId" type="boolean" dir="in">
|
---|
2021 | <desc>
|
---|
2022 | Select whether a new image UUID is set or not.
|
---|
2023 | </desc>
|
---|
2024 | </param>
|
---|
2025 | <param name="imageId" type="wstring" dir="in">
|
---|
2026 | <desc>
|
---|
2027 | New UUID for the image. If an empty string is passed, then a new
|
---|
2028 | UUID is automatically created. Specifying a zero UUIDs is not valid.
|
---|
2029 | </desc>
|
---|
2030 | </param>
|
---|
2031 | <param name="setParentId" type="boolean" dir="in">
|
---|
2032 | <desc>
|
---|
2033 | Select whether a new parent UUID is set or not.
|
---|
2034 | </desc>
|
---|
2035 | </param>
|
---|
2036 | <param name="parentId" type="wstring" dir="in">
|
---|
2037 | <desc>
|
---|
2038 | New parent UUID for the image. If an empty string is passed, then a
|
---|
2039 | new UUID is automatically created, provided @a setParentId is
|
---|
2040 | @c true. A zero UUID is valid.
|
---|
2041 | </desc>
|
---|
2042 | </param>
|
---|
2043 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
2044 | <desc>Opened hard disk object.</desc>
|
---|
2045 | </param>
|
---|
2046 | </method>
|
---|
2047 |
|
---|
2048 | <method name="getHardDisk" const="yes">
|
---|
2049 | <desc>
|
---|
2050 | Returns a hard disk with the given UUID.
|
---|
2051 |
|
---|
2052 | The hard disk with the given UUID must be known to this VirtualBox
|
---|
2053 | installation, i.e. it must be previously created by
|
---|
2054 | <link to="#createHardDisk"/> or opened by <link
|
---|
2055 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
2056 |
|
---|
2057 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2058 | No hard disk object matching @a id found.
|
---|
2059 | </result>
|
---|
2060 |
|
---|
2061 | </desc>
|
---|
2062 | <param name="id" type="wstring" dir="in">
|
---|
2063 | <desc>UUID of the hard disk to look for.</desc>
|
---|
2064 | </param>
|
---|
2065 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
2066 | <desc>Found hard disk object.</desc>
|
---|
2067 | </param>
|
---|
2068 | </method>
|
---|
2069 |
|
---|
2070 | <method name="findHardDisk">
|
---|
2071 | <desc>
|
---|
2072 | Returns a hard disk that uses the given location to store hard
|
---|
2073 | disk data.
|
---|
2074 |
|
---|
2075 | The given hard disk must be known to this VirtualBox installation, i.e.
|
---|
2076 | it must be previously created by
|
---|
2077 | <link to="#createHardDisk"/> or opened by <link
|
---|
2078 | to="#openHardDisk"/>, or attached to some known virtual machine.
|
---|
2079 |
|
---|
2080 | The search is done by comparing the value of the @a location argument to
|
---|
2081 | the <link to="IHardDisk::location"/> attribute of each known hard
|
---|
2082 | disk.
|
---|
2083 |
|
---|
2084 | For locations represented by file names in the host's file system, the
|
---|
2085 | requested location can be a path relative to the
|
---|
2086 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2087 | only a file name without any path is given, the
|
---|
2088 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2089 | folder</link> will be prepended to the file name before searching. Note
|
---|
2090 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2091 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2092 |
|
---|
2093 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2094 | No hard disk object matching @a location found.
|
---|
2095 | </result>
|
---|
2096 |
|
---|
2097 | </desc>
|
---|
2098 | <param name="location" type="wstring" dir="in">
|
---|
2099 | <desc>Location string to search for.</desc>
|
---|
2100 | </param>
|
---|
2101 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
2102 | <desc>Found hard disk object.</desc>
|
---|
2103 | </param>
|
---|
2104 | </method>
|
---|
2105 |
|
---|
2106 | <method name="openDVDImage">
|
---|
2107 | <desc>
|
---|
2108 | Opens a CD/DVD image contained in the specified file of the supported
|
---|
2109 | format and assigns it the given UUID.
|
---|
2110 |
|
---|
2111 | After the image is successfully opened by this method, it gets
|
---|
2112 | remembered by (known to) this VirtualBox installation and will be
|
---|
2113 | accessible through <link to="#getDVDImage"/> and
|
---|
2114 | <link to="#findDVDImage"/> methods. Remembered images are also
|
---|
2115 | returned as part of the <link to="#DVDImages"/> array and can be mounted
|
---|
2116 | to virtual machines. See IMedium for more details.
|
---|
2117 |
|
---|
2118 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2119 | of the location string.
|
---|
2120 |
|
---|
2121 | <note>
|
---|
2122 | Currently only ISO 9960 CD/DVD images are supported by VirtualBox.
|
---|
2123 | </note>
|
---|
2124 |
|
---|
2125 | <result name="VBOX_E_FILE_ERROR">
|
---|
2126 | Invalid CD/DVD image file location or could not find the CD/DVD
|
---|
2127 | image at the specified location.
|
---|
2128 | </result>
|
---|
2129 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2130 | CD/DVD image already exists in the media registry.
|
---|
2131 | </result>
|
---|
2132 |
|
---|
2133 | </desc>
|
---|
2134 | <param name="location" type="wstring" dir="in">
|
---|
2135 | <desc>
|
---|
2136 | Full path to the file that contains a valid CD/DVD image.
|
---|
2137 | </desc>
|
---|
2138 | </param>
|
---|
2139 | <param name="id" type="wstring" dir="in">
|
---|
2140 | <desc>
|
---|
2141 | UUID to assign to the given image within this VirtualBox installation.
|
---|
2142 | If an empty (@c null) UUID is specified, the system will randomly
|
---|
2143 | generate a new UUID.
|
---|
2144 | </desc>
|
---|
2145 | </param>
|
---|
2146 | <param name="image" type="IDVDImage" dir="return">
|
---|
2147 | <desc>Opened CD/DVD image object.</desc>
|
---|
2148 | </param>
|
---|
2149 | </method>
|
---|
2150 |
|
---|
2151 | <method name="getDVDImage">
|
---|
2152 | <desc>
|
---|
2153 | Returns a CD/DVD image with the given UUID.
|
---|
2154 |
|
---|
2155 | The image with the given UUID must be known to this VirtualBox
|
---|
2156 | installation, i.e. it must be previously opened by <link
|
---|
2157 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2158 |
|
---|
2159 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2160 | No matching DVD image found in the media registry.
|
---|
2161 | </result>
|
---|
2162 |
|
---|
2163 | </desc>
|
---|
2164 | <param name="id" type="wstring" dir="in">
|
---|
2165 | <desc>UUID of the image to look for.</desc>
|
---|
2166 | </param>
|
---|
2167 | <param name="image" type="IDVDImage" dir="return">
|
---|
2168 | <desc>Found CD/DVD image object.</desc>
|
---|
2169 | </param>
|
---|
2170 | </method>
|
---|
2171 |
|
---|
2172 | <method name="findDVDImage">
|
---|
2173 | <desc>
|
---|
2174 | Returns a CD/DVD image with the given image location.
|
---|
2175 |
|
---|
2176 | The image with the given UUID must be known to this VirtualBox
|
---|
2177 | installation, i.e. it must be previously opened by <link
|
---|
2178 | to="#openDVDImage"/>, or mounted to some known virtual machine.
|
---|
2179 |
|
---|
2180 | The search is done by comparing the value of the @a location argument to
|
---|
2181 | the <link to="IMedium::location"/> attribute of each known CD/DVD image.
|
---|
2182 |
|
---|
2183 | The requested location can be a path relative to the
|
---|
2184 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2185 | only a file name without any path is given, the
|
---|
2186 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2187 | folder</link> will be prepended to the file name before searching. Note
|
---|
2188 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2189 | performed, otherwise the case in the file path is ignored.
|
---|
2190 |
|
---|
2191 | <result name="VBOX_E_FILE_ERROR">
|
---|
2192 | Invalid image file location.
|
---|
2193 | </result>
|
---|
2194 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2195 | No matching DVD image found in the media registry.
|
---|
2196 | </result>
|
---|
2197 |
|
---|
2198 | </desc>
|
---|
2199 | <param name="location" type="wstring" dir="in">
|
---|
2200 | <desc>CD/DVD image file path to look for.</desc>
|
---|
2201 | </param>
|
---|
2202 | <param name="image" type="IDVDImage" dir="return">
|
---|
2203 | <desc>Found CD/DVD image object.</desc>
|
---|
2204 | </param>
|
---|
2205 | </method>
|
---|
2206 |
|
---|
2207 | <method name="openFloppyImage">
|
---|
2208 | <desc>
|
---|
2209 | Opens a floppy image contained in the specified file of the supported
|
---|
2210 | format and assigns it the given UUID.
|
---|
2211 |
|
---|
2212 | After the image is successfully opened by this method, it gets
|
---|
2213 | remembered by (known to) this VirtualBox installation and will be
|
---|
2214 | accessible through <link to="#getFloppyImage"/> and
|
---|
2215 | <link to="#findFloppyImage"/> methods. Remembered images are also
|
---|
2216 | returned as part of the <link to="#floppyImages"/> array and can be
|
---|
2217 | mounted to virtual machines. See IMedium for more details.
|
---|
2218 |
|
---|
2219 | See <link to="IMedium::location"/> to get more details about the format
|
---|
2220 | of the location string.
|
---|
2221 |
|
---|
2222 | <result name="VBOX_E_FILE_ERROR">
|
---|
2223 | Invalid floppy image file location or could not find the floppy
|
---|
2224 | image at the specified location.
|
---|
2225 | </result>
|
---|
2226 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2227 | Floppy image already exists in the media registry.
|
---|
2228 | </result>
|
---|
2229 |
|
---|
2230 | <note>
|
---|
2231 | Currently, only raw floppy images are supported by VirtualBox.
|
---|
2232 | </note>
|
---|
2233 | </desc>
|
---|
2234 | <param name="location" type="wstring" dir="in">
|
---|
2235 | <desc>
|
---|
2236 | Full path to the file that contains a valid floppy image.
|
---|
2237 | </desc>
|
---|
2238 | </param>
|
---|
2239 | <param name="id" type="wstring" dir="in">
|
---|
2240 | <desc>
|
---|
2241 | UUID to assign to the given image file within this VirtualBox
|
---|
2242 | installation. If an empty (@c null) UUID is specified, the system will
|
---|
2243 | randomly generate a new UUID.
|
---|
2244 | </desc>
|
---|
2245 | </param>
|
---|
2246 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2247 | <desc>Opened floppy image object.</desc>
|
---|
2248 | </param>
|
---|
2249 | </method>
|
---|
2250 |
|
---|
2251 | <method name="getFloppyImage">
|
---|
2252 | <desc>
|
---|
2253 | Returns a floppy image with the given UUID.
|
---|
2254 |
|
---|
2255 | The image with the given UUID must be known to this VirtualBox
|
---|
2256 | installation, i.e. it must be previously opened by <link
|
---|
2257 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2258 |
|
---|
2259 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2260 | No matching floppy image found in the media registry.
|
---|
2261 | </result>
|
---|
2262 |
|
---|
2263 | </desc>
|
---|
2264 | <param name="id" type="wstring" dir="in">
|
---|
2265 | <desc>UUID of the image to look for.</desc>
|
---|
2266 | </param>
|
---|
2267 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2268 | <desc>Found floppy image object.</desc>
|
---|
2269 | </param>
|
---|
2270 | </method>
|
---|
2271 |
|
---|
2272 | <method name="findFloppyImage">
|
---|
2273 | <desc>
|
---|
2274 | Returns a floppy image with the given image location.
|
---|
2275 |
|
---|
2276 | The image with the given UUID must be known to this VirtualBox
|
---|
2277 | installation, i.e. it must be previously opened by <link
|
---|
2278 | to="#openFloppyImage"/>, or mounted to some known virtual machine.
|
---|
2279 |
|
---|
2280 | The search is done by comparing the value of the @a location argument to
|
---|
2281 | the <link to="IMedium::location"/> attribute of each known floppy image.
|
---|
2282 |
|
---|
2283 | The requested location can be a path relative to the
|
---|
2284 | <link to="IVirtualBox::homeFolder">VirtualBox home folder</link>. If
|
---|
2285 | only a file name without any path is given, the
|
---|
2286 | <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
2287 | folder</link> will be prepended to the file name before searching. Note
|
---|
2288 | that on case sensitive file systems, a case sensitive comparison is
|
---|
2289 | performed, otherwise the case of symbols in the file path is ignored.
|
---|
2290 |
|
---|
2291 | <result name="VBOX_E_FILE_ERROR">
|
---|
2292 | Invalid image file location.
|
---|
2293 | </result>
|
---|
2294 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2295 | No matching floppy image found in the media registry.
|
---|
2296 | </result>
|
---|
2297 |
|
---|
2298 | </desc>
|
---|
2299 | <param name="location" type="wstring" dir="in">
|
---|
2300 | <desc>Floppy image file path to look for.</desc>
|
---|
2301 | </param>
|
---|
2302 | <param name="image" type="IFloppyImage" dir="return">
|
---|
2303 | <desc>Found floppy image object.</desc>
|
---|
2304 | </param>
|
---|
2305 | </method>
|
---|
2306 |
|
---|
2307 | <method name="getGuestOSType">
|
---|
2308 | <desc>
|
---|
2309 | Returns an object describing the specified guest OS type.
|
---|
2310 |
|
---|
2311 | The requested guest OS type is specified using a string which is a
|
---|
2312 | mnemonic identifier of the guest operating system, such as
|
---|
2313 | <tt>"win31"</tt> or <tt>"ubuntu"</tt>. The guest OS type ID of a
|
---|
2314 | particular virtual machine can be read or set using the
|
---|
2315 | <link to="IMachine::OSTypeId"/> attribute.
|
---|
2316 |
|
---|
2317 | The <link to="IVirtualBox::guestOSTypes"/> collection contains all
|
---|
2318 | available guest OS type objects. Each object has an
|
---|
2319 | <link to="IGuestOSType::id"/> attribute which contains an identifier of
|
---|
2320 | the guest OS this object describes.
|
---|
2321 |
|
---|
2322 | <result name="E_INVALIDARG">
|
---|
2323 | @a id is not a valid Guest OS type.
|
---|
2324 | </result>
|
---|
2325 |
|
---|
2326 | </desc>
|
---|
2327 | <param name="id" type="wstring" dir="in">
|
---|
2328 | <desc>Guest OS type ID string.</desc>
|
---|
2329 | </param>
|
---|
2330 | <param name="type" type="IGuestOSType" dir="return">
|
---|
2331 | <desc>Guest OS type object.</desc>
|
---|
2332 | </param>
|
---|
2333 | </method>
|
---|
2334 |
|
---|
2335 | <method name="createSharedFolder">
|
---|
2336 | <desc>
|
---|
2337 | Creates a new global shared folder by associating the given logical
|
---|
2338 | name with the given host path, adds it to the collection of shared
|
---|
2339 | folders and starts sharing it. Refer to the description of
|
---|
2340 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
2341 | <note>
|
---|
2342 | In the current implementation, this operation is not
|
---|
2343 | implemented.
|
---|
2344 | </note>
|
---|
2345 | </desc>
|
---|
2346 | <param name="name" type="wstring" dir="in">
|
---|
2347 | <desc>Unique logical name of the shared folder.</desc>
|
---|
2348 | </param>
|
---|
2349 | <param name="hostPath" type="wstring" dir="in">
|
---|
2350 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
2351 | </param>
|
---|
2352 | <param name="writable" type="boolean" dir="in">
|
---|
2353 | <desc>Whether the share is writable or readonly</desc>
|
---|
2354 | </param>
|
---|
2355 | </method>
|
---|
2356 |
|
---|
2357 | <method name="removeSharedFolder">
|
---|
2358 | <desc>
|
---|
2359 | Removes the global shared folder with the given name previously
|
---|
2360 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
2361 | shared folders and stops sharing it.
|
---|
2362 | <note>
|
---|
2363 | In the current implementation, this operation is not
|
---|
2364 | implemented.
|
---|
2365 | </note>
|
---|
2366 | </desc>
|
---|
2367 | <param name="name" type="wstring" dir="in">
|
---|
2368 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
2369 | </param>
|
---|
2370 | </method>
|
---|
2371 |
|
---|
2372 | <method name="getExtraDataKeys">
|
---|
2373 | <desc>
|
---|
2374 | Returns an array representing the global extra data keys which currently
|
---|
2375 | have values defined.
|
---|
2376 | </desc>
|
---|
2377 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
2378 | <desc>Array of extra data keys.</desc>
|
---|
2379 | </param>
|
---|
2380 | </method>
|
---|
2381 |
|
---|
2382 | <method name="getExtraData">
|
---|
2383 | <desc>
|
---|
2384 | Returns associated global extra data.
|
---|
2385 |
|
---|
2386 | If the requested data @a key does not exist, this function will
|
---|
2387 | succeed and return an empty string in the @a value argument.
|
---|
2388 |
|
---|
2389 | <result name="VBOX_E_FILE_ERROR">
|
---|
2390 | Settings file not accessible.
|
---|
2391 | </result>
|
---|
2392 | <result name="VBOX_E_XML_ERROR">
|
---|
2393 | Could not parse the settings file.
|
---|
2394 | </result>
|
---|
2395 |
|
---|
2396 | </desc>
|
---|
2397 | <param name="key" type="wstring" dir="in">
|
---|
2398 | <desc>Name of the data key to get.</desc>
|
---|
2399 | </param>
|
---|
2400 | <param name="value" type="wstring" dir="return">
|
---|
2401 | <desc>Value of the requested data key.</desc>
|
---|
2402 | </param>
|
---|
2403 | </method>
|
---|
2404 |
|
---|
2405 | <method name="setExtraData">
|
---|
2406 | <desc>
|
---|
2407 | Sets associated global extra data.
|
---|
2408 |
|
---|
2409 | If you pass @c null or empty string as a key @a value, the given @a key
|
---|
2410 | will be deleted.
|
---|
2411 |
|
---|
2412 | <note>
|
---|
2413 | Before performing the actual data change, this method will ask all
|
---|
2414 | registered callbacks using the
|
---|
2415 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
2416 | notification for a permission. If one of the callbacks refuses the
|
---|
2417 | new value, the change will not be performed.
|
---|
2418 | </note>
|
---|
2419 | <note>
|
---|
2420 | On success, the
|
---|
2421 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
2422 | is called to inform all registered callbacks about a successful data
|
---|
2423 | change.
|
---|
2424 | </note>
|
---|
2425 |
|
---|
2426 | <result name="VBOX_E_FILE_ERROR">
|
---|
2427 | Settings file not accessible.
|
---|
2428 | </result>
|
---|
2429 | <result name="VBOX_E_XML_ERROR">
|
---|
2430 | Could not parse the settings file.
|
---|
2431 | </result>
|
---|
2432 | <result name="E_ACCESSDENIED">
|
---|
2433 | Modification request refused.
|
---|
2434 | </result>
|
---|
2435 |
|
---|
2436 | </desc>
|
---|
2437 | <param name="key" type="wstring" dir="in">
|
---|
2438 | <desc>Name of the data key to set.</desc>
|
---|
2439 | </param>
|
---|
2440 | <param name="value" type="wstring" dir="in">
|
---|
2441 | <desc>Value to assign to the key.</desc>
|
---|
2442 | </param>
|
---|
2443 | </method>
|
---|
2444 |
|
---|
2445 | <method name="openSession">
|
---|
2446 | <desc>
|
---|
2447 | Opens a new direct session with the given virtual machine.
|
---|
2448 |
|
---|
2449 | A direct session acts as a local lock on the given VM.
|
---|
2450 | There can be only one direct session open at a time for every
|
---|
2451 | virtual machine, protecting the VM from being manipulated by
|
---|
2452 | conflicting actions from different processes. Only after a
|
---|
2453 | direct session has been opened, one can change all VM settings
|
---|
2454 | and execute the VM in the process space of the session object.
|
---|
2455 |
|
---|
2456 | Sessions therefore can be compared to mutex semaphores that
|
---|
2457 | lock a given VM for modification and execution.
|
---|
2458 | See <link to="ISession">ISession</link> for details.
|
---|
2459 |
|
---|
2460 | <note>Unless you are writing a new VM frontend, you will not
|
---|
2461 | want to execute a VM in the current process. To spawn a new
|
---|
2462 | process that executes a VM, use
|
---|
2463 | <link to="IVirtualBox::openRemoteSession" />
|
---|
2464 | instead.</note>
|
---|
2465 |
|
---|
2466 | Upon successful return, the session object can be used to
|
---|
2467 | get access to the machine and to the VM console.
|
---|
2468 |
|
---|
2469 | In VirtualBox terminology, the machine becomes "mutable" after
|
---|
2470 | a session has been opened. Note that the "mutable" machine
|
---|
2471 | object, on which you may invoke IMachine methods to change its
|
---|
2472 | settings, will be a different object from the immutable IMachine
|
---|
2473 | objects returned by various IVirtualBox methods. To obtain a
|
---|
2474 | mutable IMachine object (upon which you can invoke settings methods),
|
---|
2475 | use the <link to="ISession::machine" /> attribute.
|
---|
2476 |
|
---|
2477 | One must always call <link to="ISession::close" /> to release the
|
---|
2478 | lock on the machine, or the machine's state will eventually be
|
---|
2479 | set to "Aborted".
|
---|
2480 |
|
---|
2481 | In other words, to change settings on a machine, the following
|
---|
2482 | sequence is typically performed:
|
---|
2483 |
|
---|
2484 | <ol>
|
---|
2485 | <li>Call this method (openSession) to have a machine locked for
|
---|
2486 | the current session.</li>
|
---|
2487 |
|
---|
2488 | <li>Obtain a mutable IMachine object from <link to="ISession::machine" />.</li>
|
---|
2489 |
|
---|
2490 | <li>Change the settings of the machine.</li>
|
---|
2491 |
|
---|
2492 | <li>Call <link to="IMachine::saveSettings" />.</li>
|
---|
2493 |
|
---|
2494 | <li>Close the session by calling <link to="ISession::close"/>.</li>
|
---|
2495 | </ol>
|
---|
2496 |
|
---|
2497 | <result name="E_UNEXPECTED">
|
---|
2498 | Virtual machine not registered.
|
---|
2499 | </result>
|
---|
2500 | <result name="E_ACCESSDENIED">
|
---|
2501 | Process not started by OpenRemoteSession.
|
---|
2502 | </result>
|
---|
2503 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2504 | No matching virtual machine found.
|
---|
2505 | </result>
|
---|
2506 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2507 | Session already open or being opened.
|
---|
2508 | </result>
|
---|
2509 | <result name="VBOX_E_VM_ERROR">
|
---|
2510 | Failed to assign machine to session.
|
---|
2511 | </result>
|
---|
2512 |
|
---|
2513 | </desc>
|
---|
2514 | <param name="session" type="ISession" dir="in">
|
---|
2515 | <desc>
|
---|
2516 | Session object that will represent the opened session after
|
---|
2517 | successful method invocation. This object must not represent
|
---|
2518 | the already open session.
|
---|
2519 | <note>
|
---|
2520 | This session will be automatically closed if the
|
---|
2521 | VirtualBox server is terminated for some reason.
|
---|
2522 | </note>
|
---|
2523 | </desc>
|
---|
2524 | </param>
|
---|
2525 | <param name="machineId" type="wstring" dir="in">
|
---|
2526 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2527 | </param>
|
---|
2528 | </method>
|
---|
2529 |
|
---|
2530 | <method name="openRemoteSession">
|
---|
2531 | <desc>
|
---|
2532 | Spawns a new process that executes a virtual machine (called a
|
---|
2533 | "remote session").
|
---|
2534 |
|
---|
2535 | Opening a remote session causes the VirtualBox server to start a new
|
---|
2536 | process that opens a direct session with the given VM. As a result, the
|
---|
2537 | VM is locked by that direct session in the new process, preventing
|
---|
2538 | conflicting changes from other processes. Since sessions act as locks
|
---|
2539 | that prevent conflicting changes, one cannot open a remote session
|
---|
2540 | for a VM that already has another open session (direct or remote), or
|
---|
2541 | is currently in the process of opening one (see <link
|
---|
2542 | to="IMachine::sessionState"/>).
|
---|
2543 |
|
---|
2544 | While the remote session still provides some level of control over the
|
---|
2545 | VM execution to the caller (using the <link to="IConsole" /> interface),
|
---|
2546 | not all VM settings are available for modification within the remote
|
---|
2547 | session context.
|
---|
2548 |
|
---|
2549 | This operation can take some time (a new VM is started in a new process,
|
---|
2550 | for which memory and other resources need to be set up). Because of this,
|
---|
2551 | an <link to="IProgress" /> is returned to allow the caller to wait for this
|
---|
2552 | asynchronous operation to be completed. Until then, the remote session
|
---|
2553 | object remains in the closed state, and accessing the machine or its
|
---|
2554 | console through it is invalid. It is recommended to use
|
---|
2555 | <link to="IProgress::waitForCompletion" /> or similar calls to wait for
|
---|
2556 | completion.
|
---|
2557 |
|
---|
2558 | As with all <link to="ISession" /> objects, it is recommended to call
|
---|
2559 | <link to="ISession::close" /> on the local session object once openRemoteSession()
|
---|
2560 | has been called. However, the session's state (see <link to="ISession::state" />)
|
---|
2561 | will not return to "Closed" until the remote session has also closed (i.e.
|
---|
2562 | until the VM is no longer running). In that case, however, the state of
|
---|
2563 | the session will automatically change back to "Closed".
|
---|
2564 |
|
---|
2565 | Currently supported session types (values of the @a type
|
---|
2566 | argument) are:
|
---|
2567 | <ul>
|
---|
2568 | <li><tt>"gui"</tt>: VirtualBox Qt GUI session</li>
|
---|
2569 | <li><tt>"vrdp"</tt>: VirtualBox VRDP Server session</li>
|
---|
2570 | <li><tt>"sdl"</tt>: VirtualBox SDL GUI session</li>
|
---|
2571 | </ul>
|
---|
2572 |
|
---|
2573 | The @a environment argument is a string containing definitions of
|
---|
2574 | environment variables in the following format:
|
---|
2575 | @code
|
---|
2576 | NAME[=VALUE]\n
|
---|
2577 | NAME[=VALUE]\n
|
---|
2578 | ...
|
---|
2579 | @endcode
|
---|
2580 | where <tt>\\n</tt> is the new line character. These environment
|
---|
2581 | variables will be appended to the environment of the VirtualBox server
|
---|
2582 | process. If an environment variable exists both in the server process
|
---|
2583 | and in this list, the value from this list takes precedence over the
|
---|
2584 | server's variable. If the value of the environment variable is
|
---|
2585 | omitted, this variable will be removed from the resulting environment.
|
---|
2586 | If the environment string is @c null or empty, the server environment
|
---|
2587 | is inherited by the started process as is.
|
---|
2588 |
|
---|
2589 | <see>openExistingSession</see>
|
---|
2590 |
|
---|
2591 | <result name="E_UNEXPECTED">
|
---|
2592 | Virtual machine not registered.
|
---|
2593 | </result>
|
---|
2594 | <result name="E_INVALIDARG">
|
---|
2595 | Invalid session type @a type.
|
---|
2596 | </result>
|
---|
2597 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2598 | No machine matching @a machineId found.
|
---|
2599 | </result>
|
---|
2600 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2601 | Session already open or being opened.
|
---|
2602 | </result>
|
---|
2603 | <result name="VBOX_E_IPRT_ERROR">
|
---|
2604 | Launching process for machine failed.
|
---|
2605 | </result>
|
---|
2606 | <result name="VBOX_E_VM_ERROR">
|
---|
2607 | Failed to assign machine to session.
|
---|
2608 | </result>
|
---|
2609 |
|
---|
2610 | </desc>
|
---|
2611 | <param name="session" type="ISession" dir="in">
|
---|
2612 | <desc>
|
---|
2613 | Session object that will represent the opened remote session
|
---|
2614 | after successful method invocation (this object must not
|
---|
2615 | represent an already open session).
|
---|
2616 | </desc>
|
---|
2617 | </param>
|
---|
2618 | <param name="machineId" type="wstring" dir="in">
|
---|
2619 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2620 | </param>
|
---|
2621 | <param name="type" type="wstring" dir="in">
|
---|
2622 | <desc>
|
---|
2623 | Type of the remote session (case sensitive).
|
---|
2624 | </desc>
|
---|
2625 | </param>
|
---|
2626 | <param name="environment" type="wstring" dir="in">
|
---|
2627 | <desc>
|
---|
2628 | Environment to pass to the opened session.
|
---|
2629 | </desc>
|
---|
2630 | </param>
|
---|
2631 | <param name="progress" type="IProgress" dir="return">
|
---|
2632 | <desc>Progress object to track the operation completion.</desc>
|
---|
2633 | </param>
|
---|
2634 | </method>
|
---|
2635 |
|
---|
2636 | <method name="openExistingSession">
|
---|
2637 | <desc>
|
---|
2638 | Opens a new remote session with the virtual machine for
|
---|
2639 | which a direct session is already open.
|
---|
2640 |
|
---|
2641 | The remote session provides some level of control over the VM
|
---|
2642 | execution (using the IConsole interface) to the caller; however,
|
---|
2643 | within the remote session context, not all VM settings are available
|
---|
2644 | for modification.
|
---|
2645 |
|
---|
2646 | As opposed to <link to="#openRemoteSession"/>, the number of
|
---|
2647 | remote sessions opened this way is not limited by the API
|
---|
2648 |
|
---|
2649 | <note>
|
---|
2650 | It is an error to open a remote session with the machine that
|
---|
2651 | doesn't have an open direct session.
|
---|
2652 | </note>
|
---|
2653 |
|
---|
2654 | <result name="E_UNEXPECTED">
|
---|
2655 | Virtual machine not registered.
|
---|
2656 | </result>
|
---|
2657 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
2658 | No machine matching @a machineId found.
|
---|
2659 | </result>
|
---|
2660 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
2661 | Session already open or being opened.
|
---|
2662 | </result>
|
---|
2663 | <result name="VBOX_E_INVALID_SESSION_STATE">
|
---|
2664 | Direct session state not Open.
|
---|
2665 | </result>
|
---|
2666 | <result name="VBOX_E_VM_ERROR">
|
---|
2667 | Failed to get console object from direct session or assign
|
---|
2668 | machine to session.
|
---|
2669 | </result>
|
---|
2670 |
|
---|
2671 | <see>openRemoteSession</see>
|
---|
2672 | </desc>
|
---|
2673 | <param name="session" type="ISession" dir="in">
|
---|
2674 | <desc>
|
---|
2675 | Session object that will represent the open remote session
|
---|
2676 | after successful method invocation. This object must not
|
---|
2677 | represent an already open session.
|
---|
2678 | <note>
|
---|
2679 | This session will be automatically closed when the peer
|
---|
2680 | (direct) session dies or gets closed.
|
---|
2681 | </note>
|
---|
2682 | </desc>
|
---|
2683 | </param>
|
---|
2684 | <param name="machineId" type="wstring" dir="in">
|
---|
2685 | <desc>ID of the virtual machine to open a session with.</desc>
|
---|
2686 | </param>
|
---|
2687 | </method>
|
---|
2688 |
|
---|
2689 | <method name="registerCallback">
|
---|
2690 | <desc>
|
---|
2691 | Registers a new global VirtualBox callback. The methods of the given
|
---|
2692 | callback object will be called by VirtualBox when an appropriate
|
---|
2693 | event occurs.
|
---|
2694 |
|
---|
2695 | <result name="E_INVALIDARG">
|
---|
2696 | A @c null callback cannot be registered.
|
---|
2697 | </result>
|
---|
2698 |
|
---|
2699 | </desc>
|
---|
2700 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2701 | <desc>Callback object to register.</desc>
|
---|
2702 | </param>
|
---|
2703 | </method>
|
---|
2704 |
|
---|
2705 | <method name="unregisterCallback">
|
---|
2706 | <desc>
|
---|
2707 | Unregisters the previously registered global VirtualBox callback.
|
---|
2708 |
|
---|
2709 | <result name="E_INVALIDARG">
|
---|
2710 | Specified @a callback not registered.
|
---|
2711 | </result>
|
---|
2712 |
|
---|
2713 | </desc>
|
---|
2714 | <param name="callback" type="IVirtualBoxCallback" dir="in">
|
---|
2715 | <desc>Callback object to unregister.</desc>
|
---|
2716 | </param>
|
---|
2717 | </method>
|
---|
2718 |
|
---|
2719 | <method name="waitForPropertyChange">
|
---|
2720 | <desc>
|
---|
2721 | Blocks the caller until any of the properties represented by the
|
---|
2722 | @a what argument changes the value or until the given timeout interval
|
---|
2723 | expires.
|
---|
2724 |
|
---|
2725 | The @a what argument is a comma separated list of property masks that
|
---|
2726 | describe properties the caller is interested in. The property mask is
|
---|
2727 | a string in the following format:
|
---|
2728 |
|
---|
2729 | <pre>
|
---|
2730 | [[group.]subgroup.]name
|
---|
2731 | </pre>
|
---|
2732 |
|
---|
2733 | where @c name is the property name and @c group, @c subgroup are zero
|
---|
2734 | or more property group specifiers. Each element (group or name) in
|
---|
2735 | the property mask may be either a Latin string or an asterisk symbol
|
---|
2736 | (@c "*") which is used to match any string for the given element. A
|
---|
2737 | property mask that doesn't contain asterisk symbols represents a
|
---|
2738 | single fully qualified property name.
|
---|
2739 |
|
---|
2740 | Groups in the fully qualified property name go from more generic (the
|
---|
2741 | left-most part) to more specific (the right-most part). The first
|
---|
2742 | element is usually a name of the object the property belongs to. The
|
---|
2743 | second element may be either a property name, or a child object name,
|
---|
2744 | or an index if the preceding element names an object which is one of
|
---|
2745 | many objects of the same type. This way, property names form a
|
---|
2746 | hierarchy of properties. Here are some examples of property names:
|
---|
2747 |
|
---|
2748 | <table>
|
---|
2749 | <tr>
|
---|
2750 | <td><tt>VirtualBox.version</tt></td>
|
---|
2751 | <td><link to="IVirtualBox::version"/> property</td>
|
---|
2752 | </tr>
|
---|
2753 | <tr>
|
---|
2754 | <td><tt>Machine.<UUID>.name</tt></td>
|
---|
2755 | <td><link to="IMachine::name"/> property of the machine with the
|
---|
2756 | given UUID</td>
|
---|
2757 | </tr>
|
---|
2758 | </table>
|
---|
2759 |
|
---|
2760 | Most property names directly correspond to the properties of objects
|
---|
2761 | (components) provided by the VirtualBox library and may be used to
|
---|
2762 | track changes to these properties. However, there may be
|
---|
2763 | pseudo-property names that don't correspond to any existing object's
|
---|
2764 | property directly, as well as there may be object properties that
|
---|
2765 | don't have a corresponding property name that is understood by this
|
---|
2766 | method, and therefore changes to such properties cannot be
|
---|
2767 | tracked. See individual object's property descriptions to get a
|
---|
2768 | fully qualified property name that can be used with this method (if
|
---|
2769 | any).
|
---|
2770 |
|
---|
2771 | There is a special property mask @c "*" (i.e. a string consisting of a
|
---|
2772 | single asterisk symbol) that can be used to match all properties.
|
---|
2773 | Below are more examples of property masks:
|
---|
2774 |
|
---|
2775 | <table>
|
---|
2776 | <tr>
|
---|
2777 | <td><tt>VirtualBox.*</tt></td>
|
---|
2778 | <td>Track all properties of the VirtualBox object</td>
|
---|
2779 | </tr>
|
---|
2780 | <tr>
|
---|
2781 | <td><tt>Machine.*.name</tt></td>
|
---|
2782 | <td>Track changes to the <link to="IMachine::name"/> property of
|
---|
2783 | all registered virtual machines</td>
|
---|
2784 | </tr>
|
---|
2785 | </table>
|
---|
2786 |
|
---|
2787 | <note>
|
---|
2788 | This function is not implemented in the current version of the
|
---|
2789 | product.
|
---|
2790 | </note>
|
---|
2791 | </desc>
|
---|
2792 | <param name="what" type="wstring" dir="in">
|
---|
2793 | <desc>Comma separated list of property masks.</desc>
|
---|
2794 | </param>
|
---|
2795 | <param name="timeout" type="unsigned long" dir="in">
|
---|
2796 | <desc>
|
---|
2797 | Wait timeout in milliseconds.
|
---|
2798 | Specify -1 for an indefinite wait.
|
---|
2799 | </desc>
|
---|
2800 | </param>
|
---|
2801 | <param name="changed" type="wstring" dir="out">
|
---|
2802 | <desc>
|
---|
2803 | Comma separated list of properties that have been changed and caused
|
---|
2804 | this method to return to the caller.
|
---|
2805 | </desc>
|
---|
2806 | </param>
|
---|
2807 | <param name="values" type="wstring" dir="out">
|
---|
2808 | <desc>Reserved, not currently used.</desc>
|
---|
2809 | </param>
|
---|
2810 | </method>
|
---|
2811 |
|
---|
2812 | <!--method name="createDHCPServerForInterface">
|
---|
2813 | <desc>
|
---|
2814 | Creates a dhcp server settings to be used for the given interface
|
---|
2815 | <result name="E_INVALIDARG">
|
---|
2816 | Host network interface @a name already exists.
|
---|
2817 | </result>
|
---|
2818 | </desc>
|
---|
2819 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2820 | <desc>Network Interface</desc>
|
---|
2821 | </param>
|
---|
2822 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2823 | <desc>Dhcp server settings</desc>
|
---|
2824 | </param>
|
---|
2825 | </method-->
|
---|
2826 |
|
---|
2827 | <method name="createDHCPServer">
|
---|
2828 | <desc>
|
---|
2829 | Creates a dhcp server settings to be used for the given internal network name
|
---|
2830 | <result name="E_INVALIDARG">
|
---|
2831 | Host network interface @a name already exists.
|
---|
2832 | </result>
|
---|
2833 | </desc>
|
---|
2834 | <param name="name" type="wstring" dir="in">
|
---|
2835 | <desc>server name</desc>
|
---|
2836 | </param>
|
---|
2837 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2838 | <desc>Dhcp server settings</desc>
|
---|
2839 | </param>
|
---|
2840 | </method>
|
---|
2841 |
|
---|
2842 | <method name="findDHCPServerByNetworkName">
|
---|
2843 | <desc>
|
---|
2844 | Searches a dhcp server settings to be used for the given internal network name
|
---|
2845 | <result name="E_INVALIDARG">
|
---|
2846 | Host network interface @a name already exists.
|
---|
2847 | </result>
|
---|
2848 |
|
---|
2849 | </desc>
|
---|
2850 | <param name="name" type="wstring" dir="in">
|
---|
2851 | <desc>server name</desc>
|
---|
2852 | </param>
|
---|
2853 | <param name="server" type="IDHCPServer" dir="return">
|
---|
2854 | <desc>Dhcp server settings</desc>
|
---|
2855 | </param>
|
---|
2856 | </method>
|
---|
2857 |
|
---|
2858 | <!--method name="findDHCPServerForInterface">
|
---|
2859 | <desc>
|
---|
2860 | Searches a dhcp server settings to be used for the given interface
|
---|
2861 | <result name="E_INVALIDARG">
|
---|
2862 | Host network interface @a name already exists.
|
---|
2863 | </result>
|
---|
2864 | </desc>
|
---|
2865 | <param name="interface" type="IHostNetworkInterface" dir="in">
|
---|
2866 | <desc>Network Interface</desc>
|
---|
2867 | </param>
|
---|
2868 | <param name="server" type="IDHCPServer" dir="out">
|
---|
2869 | <desc>Dhcp server settings</desc>
|
---|
2870 | </param>
|
---|
2871 | </method-->
|
---|
2872 |
|
---|
2873 | <method name="removeDHCPServer">
|
---|
2874 | <desc>
|
---|
2875 | Removes the dhcp server settings
|
---|
2876 | <result name="E_INVALIDARG">
|
---|
2877 | Host network interface @a name already exists.
|
---|
2878 | </result>
|
---|
2879 | </desc>
|
---|
2880 | <param name="server" type="IDHCPServer" dir="in">
|
---|
2881 | <desc>Dhcp server settings to be removed</desc>
|
---|
2882 | </param>
|
---|
2883 | </method>
|
---|
2884 |
|
---|
2885 | </interface>
|
---|
2886 |
|
---|
2887 | <!--
|
---|
2888 | // IVFSExplorer
|
---|
2889 | /////////////////////////////////////////////////////////////////////////
|
---|
2890 | -->
|
---|
2891 |
|
---|
2892 | <enum
|
---|
2893 | name="VFSType"
|
---|
2894 | uuid="813999ba-b949-48a8-9230-aadc6285e2f2"
|
---|
2895 | >
|
---|
2896 | <desc>
|
---|
2897 | Virtual file systems supported by VFSExplorer.
|
---|
2898 | </desc>
|
---|
2899 |
|
---|
2900 | <const name="File" value="1" />
|
---|
2901 | <const name="Cloud" value="2" />
|
---|
2902 | <const name="S3" value="3" />
|
---|
2903 | <const name="WebDav" value="4" />
|
---|
2904 | </enum>
|
---|
2905 |
|
---|
2906 | <enum
|
---|
2907 | name="VFSFileType"
|
---|
2908 | uuid="714333cd-44e2-415f-a245-d378fa9b1242"
|
---|
2909 | >
|
---|
2910 | <desc>
|
---|
2911 | File types known by VFSExplorer.
|
---|
2912 | </desc>
|
---|
2913 |
|
---|
2914 | <const name="Unknown" value="1" />
|
---|
2915 | <const name="Fifo" value="2" />
|
---|
2916 | <const name="DevChar" value="3" />
|
---|
2917 | <const name="Directory" value="4" />
|
---|
2918 | <const name="DevBlock" value="5" />
|
---|
2919 | <const name="File" value="6" />
|
---|
2920 | <const name="SymLink" value="7" />
|
---|
2921 | <const name="Socket" value="8" />
|
---|
2922 | <const name="WhiteOut" value="9" />
|
---|
2923 | </enum>
|
---|
2924 |
|
---|
2925 | <interface
|
---|
2926 | name="IVFSExplorer" extends="$unknown"
|
---|
2927 | uuid="2bb864a1-02a3-4474-a1d4-fb5f23b742e1"
|
---|
2928 | wsmap="managed"
|
---|
2929 | >
|
---|
2930 | <desc>
|
---|
2931 | The VFSExplorer interface unifies access to different file system
|
---|
2932 | types. This includes local file systems as well remote file systems like
|
---|
2933 | S3. For a list of supported types see <link to="VFSType" />.
|
---|
2934 | An instance of this is returned by <link to="IAppliance::createVFSExplorer" />.
|
---|
2935 | </desc>
|
---|
2936 |
|
---|
2937 | <attribute name="path" type="wstring" readonly="yes">
|
---|
2938 | <desc>Returns the current path in the virtual file system.</desc>
|
---|
2939 | </attribute>
|
---|
2940 |
|
---|
2941 | <attribute name="type" type="VFSType" readonly="yes">
|
---|
2942 | <desc>Returns the file system type which is currently in use.</desc>
|
---|
2943 | </attribute>
|
---|
2944 |
|
---|
2945 | <method name="update">
|
---|
2946 | <desc>Updates the internal list of files/directories from the
|
---|
2947 | current directory level. Use <link to="#entryList" /> to get the full list
|
---|
2948 | after a call to this method.</desc>
|
---|
2949 |
|
---|
2950 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2951 | <desc>Progress object to track the operation completion.</desc>
|
---|
2952 | </param>
|
---|
2953 | </method>
|
---|
2954 |
|
---|
2955 | <method name="cd">
|
---|
2956 | <desc>Change the current directory level.</desc>
|
---|
2957 |
|
---|
2958 | <param name="aDir" type="wstring" dir="in">
|
---|
2959 | <desc>The name of the directory to go in.</desc>
|
---|
2960 | </param>
|
---|
2961 |
|
---|
2962 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2963 | <desc>Progress object to track the operation completion.</desc>
|
---|
2964 | </param>
|
---|
2965 | </method>
|
---|
2966 |
|
---|
2967 | <method name="cdUp">
|
---|
2968 | <desc>Go one directory upwards from the current directory level.</desc>
|
---|
2969 |
|
---|
2970 | <param name="aProgress" type="IProgress" dir="return">
|
---|
2971 | <desc>Progress object to track the operation completion.</desc>
|
---|
2972 | </param>
|
---|
2973 | </method>
|
---|
2974 |
|
---|
2975 | <method name="entryList">
|
---|
2976 | <desc>Returns a list of files/directories after a call to <link
|
---|
2977 | to="#update" />. The user is responsible for keeping this internal
|
---|
2978 | list up do date.</desc>
|
---|
2979 |
|
---|
2980 | <param name="aNames" type="wstring" safearray="yes" dir="out">
|
---|
2981 | <desc>The list of names for the entries.</desc>
|
---|
2982 | </param>
|
---|
2983 |
|
---|
2984 | <param name="aTypes" type="unsigned long" safearray="yes" dir="out">
|
---|
2985 | <desc>The list of types for the entries.</desc>
|
---|
2986 | </param>
|
---|
2987 | </method>
|
---|
2988 |
|
---|
2989 | <method name="exists">
|
---|
2990 | <desc>Checks if the given file list exists in the current directory
|
---|
2991 | level.</desc>
|
---|
2992 |
|
---|
2993 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
2994 | <desc>The names to check.</desc>
|
---|
2995 | </param>
|
---|
2996 |
|
---|
2997 | <param name="aExists" type="wstring" safearray="yes" dir="return">
|
---|
2998 | <desc>The names which exist.</desc>
|
---|
2999 | </param>
|
---|
3000 | </method>
|
---|
3001 |
|
---|
3002 | <method name="remove">
|
---|
3003 | <desc>Deletes the given files in the current directory level.</desc>
|
---|
3004 |
|
---|
3005 | <param name="aNames" type="wstring" safearray="yes" dir="in">
|
---|
3006 | <desc>The names to remove.</desc>
|
---|
3007 | </param>
|
---|
3008 |
|
---|
3009 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3010 | <desc>Progress object to track the operation completion.</desc>
|
---|
3011 | </param>
|
---|
3012 | </method>
|
---|
3013 |
|
---|
3014 | </interface>
|
---|
3015 |
|
---|
3016 | <!--
|
---|
3017 | // IAppliance
|
---|
3018 | /////////////////////////////////////////////////////////////////////////
|
---|
3019 | -->
|
---|
3020 |
|
---|
3021 | <interface
|
---|
3022 | name="IAppliance" extends="$unknown"
|
---|
3023 | uuid="e3ba9ab9-ac2c-4266-8bd2-91c4bf721ceb"
|
---|
3024 | wsmap="managed"
|
---|
3025 | >
|
---|
3026 | <desc>
|
---|
3027 | Represents a platform-independent appliance in OVF format. An instance of this is returned
|
---|
3028 | by <link to="IVirtualBox::createAppliance" />, which can then be used to import and export
|
---|
3029 | appliances with VirtualBox.
|
---|
3030 |
|
---|
3031 | The OVF standard suggests two different physical file formats:
|
---|
3032 |
|
---|
3033 | <ol>
|
---|
3034 | <li>If the OVF is distributed as a set of files, then @a file must be a fully qualified
|
---|
3035 | path name to an existing OVF descriptor file with an <tt>.ovf</tt> file extension. If
|
---|
3036 | this descriptor file references other files, as OVF appliances distributed as a set of
|
---|
3037 | files most likely do, those files must be in the same directory as the descriptor file.</li>
|
---|
3038 |
|
---|
3039 | <li>If the OVF is distributed as a single file, it must be in TAR format and have the
|
---|
3040 | <tt>.ova</tt> file extension. This TAR file must then contain at least the OVF descriptor
|
---|
3041 | files and optionally other files.
|
---|
3042 |
|
---|
3043 | At this time, VirtualBox does not not yet support the packed (TAR) variant; support will
|
---|
3044 | be added with a later version.</li>
|
---|
3045 | </ol>
|
---|
3046 |
|
---|
3047 | <b>Importing</b> an OVF appliance into VirtualBox as instances of
|
---|
3048 | <link to="IMachine" /> involves the following sequence of API calls:
|
---|
3049 |
|
---|
3050 | <ol>
|
---|
3051 | <li>Call <link to="IVirtualBox::createAppliance" />. This will create an empty IAppliance object.
|
---|
3052 | </li>
|
---|
3053 |
|
---|
3054 | <li>On the new object, call <link to="#read" /> with the full path of the OVF file you
|
---|
3055 | would like to import. So long as this file is syntactically valid, this will succeed
|
---|
3056 | and return an instance of IAppliance that contains the parsed data from the OVF file.
|
---|
3057 | </li>
|
---|
3058 |
|
---|
3059 | <li>Next, call <link to="#interpret" />, which analyzes the OVF data and sets up the
|
---|
3060 | contents of the IAppliance attributes accordingly. These can be inspected by a
|
---|
3061 | VirtualBox front-end such as the GUI, and the suggestions can be displayed to the
|
---|
3062 | user. In particular, the <link to="#virtualSystemDescriptions" /> array contains
|
---|
3063 | instances of <link to="IVirtualSystemDescription" /> which represent the virtual
|
---|
3064 | systems in the OVF, which in turn describe the virtual hardware prescribed by the
|
---|
3065 | OVF (network and hardware adapters, virtual disk images, memory size and so on).
|
---|
3066 | The GUI can then give the user the option to confirm and/or change these suggestions.
|
---|
3067 | </li>
|
---|
3068 |
|
---|
3069 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3070 | virtual system to override the suggestions made by the interpret() routine.
|
---|
3071 | </li>
|
---|
3072 |
|
---|
3073 | <li>Finally, call <link to="#importMachines" /> to create virtual machines in
|
---|
3074 | VirtualBox as instances of <link to="IMachine" /> that match the information in the
|
---|
3075 | virtual system descriptions.
|
---|
3076 | </li>
|
---|
3077 | </ol>
|
---|
3078 |
|
---|
3079 | <b>Exporting</b> VirtualBox machines into an OVF appliance involves the following steps:
|
---|
3080 |
|
---|
3081 | <ol>
|
---|
3082 | <li>As with importing, first call <link to="IVirtualBox::createAppliance" /> to create
|
---|
3083 | an empty IAppliance object.
|
---|
3084 | </li>
|
---|
3085 |
|
---|
3086 | <li>For each machine you would like to export, call <link to="IMachine::export" />
|
---|
3087 | with the IAppliance object you just created. This creates an instance of
|
---|
3088 | <link to="IVirtualSystemDescription" /> inside the appliance.
|
---|
3089 | </li>
|
---|
3090 |
|
---|
3091 | <li>If desired, call <link to="IVirtualSystemDescription::setFinalValues" /> for each
|
---|
3092 | virtual system to override the suggestions made by the export() routine.
|
---|
3093 | </li>
|
---|
3094 |
|
---|
3095 | <li>Finally, call <link to="#write" /> with a path specification to have the OVF
|
---|
3096 | file written.</li>
|
---|
3097 | </ol>
|
---|
3098 |
|
---|
3099 | </desc>
|
---|
3100 |
|
---|
3101 | <attribute name="path" type="wstring" readonly="yes">
|
---|
3102 | <desc>Path to the main file of the OVF appliance, which is either the <tt>.ovf</tt> or
|
---|
3103 | the <tt>.ova</tt> file passed to <link to="#read" /> (for import) or
|
---|
3104 | <link to="#write" /> (for export).
|
---|
3105 | This attribute is empty until one of these methods has been called.
|
---|
3106 | </desc>
|
---|
3107 | </attribute>
|
---|
3108 |
|
---|
3109 | <attribute name="disks" type="wstring" readonly="yes" safearray="yes">
|
---|
3110 | <desc>
|
---|
3111 | Array of virtual disk definitions. One such description exists for each
|
---|
3112 | disk definition in the OVF; each string array item represents one such piece of
|
---|
3113 | disk information, with the information fields separated by tab (\\t) characters.
|
---|
3114 |
|
---|
3115 | The caller should be prepared for additional fields being appended to
|
---|
3116 | this string in future versions of VirtualBox and therefore check for
|
---|
3117 | the number of tabs in the strings returned.
|
---|
3118 |
|
---|
3119 | In the current version, the following eight fields are returned per string
|
---|
3120 | in the array:
|
---|
3121 |
|
---|
3122 | <ol>
|
---|
3123 | <li>Disk ID (unique string identifier given to disk)</li>
|
---|
3124 |
|
---|
3125 | <li>Capacity (unsigned integer indicating the maximum capacity of the disk)</li>
|
---|
3126 |
|
---|
3127 | <li>Populated size (optional unsigned integer indicating the current size of the
|
---|
3128 | disk; can be approximate; -1 if unspecified)</li>
|
---|
3129 |
|
---|
3130 | <li>Format (string identifying the disk format, typically
|
---|
3131 | "http://www.vmware.com/specifications/vmdk.html#sparse")</li>
|
---|
3132 |
|
---|
3133 | <li>Reference (where to find the disk image, typically a file name; if empty,
|
---|
3134 | then the disk should be created on import)</li>
|
---|
3135 |
|
---|
3136 | <li>Image size (optional unsigned integer indicating the size of the image,
|
---|
3137 | which need not necessarily be the same as the values specified above, since
|
---|
3138 | the image may be compressed or sparse; -1 if not specified)</li>
|
---|
3139 |
|
---|
3140 | <li>Chunk size (optional unsigned integer if the image is split into chunks;
|
---|
3141 | presently unsupported and always -1)</li>
|
---|
3142 |
|
---|
3143 | <li>Compression (optional string equalling "gzip" if the image is gzip-compressed)</li>
|
---|
3144 | </ol>
|
---|
3145 | </desc>
|
---|
3146 | </attribute>
|
---|
3147 |
|
---|
3148 | <attribute name="virtualSystemDescriptions" type="IVirtualSystemDescription" readonly="yes" safearray="yes">
|
---|
3149 | <desc> Array of virtual system descriptions. One such description is created
|
---|
3150 | for each virtual system found in the OVF.
|
---|
3151 | This array is empty until either <link to="#interpret" /> (for import) or <link to="IMachine::export" />
|
---|
3152 | (for export) has been called.
|
---|
3153 | </desc>
|
---|
3154 | </attribute>
|
---|
3155 |
|
---|
3156 | <method name="read">
|
---|
3157 | <desc>
|
---|
3158 | Reads an OVF file into the appliance object.
|
---|
3159 |
|
---|
3160 | This method succeeds if the OVF is syntactically valid and, by itself, without errors. The
|
---|
3161 | mere fact that this method returns successfully does not mean that VirtualBox supports all
|
---|
3162 | features requested by the appliance; this can only be examined after a call to <link to="#interpret" />.
|
---|
3163 | </desc>
|
---|
3164 | <param name="file" type="wstring" dir="in">
|
---|
3165 | <desc>
|
---|
3166 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3167 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3168 | </desc>
|
---|
3169 | </param>
|
---|
3170 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3171 | <desc></desc>
|
---|
3172 | </param>
|
---|
3173 | </method>
|
---|
3174 |
|
---|
3175 | <method name="interpret">
|
---|
3176 | <desc>
|
---|
3177 | Interprets the OVF data that was read when the appliance was constructed. After
|
---|
3178 | calling this method, one can inspect the
|
---|
3179 | <link to="#virtualSystemDescriptions" /> array attribute, which will then contain
|
---|
3180 | one <link to="IVirtualSystemDescription" /> for each virtual machine found in
|
---|
3181 | the appliance.
|
---|
3182 |
|
---|
3183 | Calling this method is the second step of importing an appliance into VirtualBox;
|
---|
3184 | see <link to="IAppliance" /> for an overview.
|
---|
3185 |
|
---|
3186 | After calling this method, one should call <link to="#getWarnings" /> to find out
|
---|
3187 | if problems were encountered during the processing which might later lead to
|
---|
3188 | errors.
|
---|
3189 | </desc>
|
---|
3190 | </method>
|
---|
3191 |
|
---|
3192 | <method name="importMachines">
|
---|
3193 | <desc>
|
---|
3194 | Imports the appliance into VirtualBox by creating instances of <link to="IMachine" />
|
---|
3195 | and other interfaces that match the information contained in the appliance as
|
---|
3196 | closely as possible, as represented by the import instructions in the
|
---|
3197 | <link to="#virtualSystemDescriptions" /> array.
|
---|
3198 |
|
---|
3199 | Calling this method is the final step of importing an appliance into VirtualBox;
|
---|
3200 | see <link to="IAppliance" /> for an overview.
|
---|
3201 |
|
---|
3202 | Since importing the appliance will most probably involve copying and converting
|
---|
3203 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3204 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3205 | </desc>
|
---|
3206 |
|
---|
3207 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3208 | <desc></desc>
|
---|
3209 | </param>
|
---|
3210 | </method>
|
---|
3211 |
|
---|
3212 | <method name="createVFSExplorer">
|
---|
3213 | <desc>Returns a <link to="IVFSExplorer" /> object for the given URI.</desc>
|
---|
3214 |
|
---|
3215 | <param name="aUri" type="wstring" dir="in">
|
---|
3216 | <desc>The URI describing the file system to use.</desc>
|
---|
3217 | </param>
|
---|
3218 |
|
---|
3219 | <param name="aExplorer" type="IVFSExplorer" dir="return">
|
---|
3220 | <desc></desc>
|
---|
3221 | </param>
|
---|
3222 | </method>
|
---|
3223 |
|
---|
3224 | <method name="write">
|
---|
3225 | <desc>
|
---|
3226 | Writes the contents of the appliance exports into a new OVF file.
|
---|
3227 |
|
---|
3228 | Calling this method is the final step of exporting an appliance from VirtualBox;
|
---|
3229 | see <link to="IAppliance" /> for an overview.
|
---|
3230 |
|
---|
3231 | Since exporting the appliance will most probably involve copying and converting
|
---|
3232 | disk images, which can take a long time, this method operates asynchronously and
|
---|
3233 | returns an IProgress object to allow the caller to monitor the progress.
|
---|
3234 | </desc>
|
---|
3235 | <param name="format" type="wstring" dir="in">
|
---|
3236 | <desc>
|
---|
3237 | Output format, as a string. Currently supported formats are "ovf-0.9" and "ovf-1.0";
|
---|
3238 | future versions of VirtualBox may support additional formats.
|
---|
3239 | </desc>
|
---|
3240 | </param>
|
---|
3241 | <param name="path" type="wstring" dir="in">
|
---|
3242 | <desc>
|
---|
3243 | Name of appliance file to open (either with an <tt>.ovf</tt> or <tt>.ova</tt> extension, depending
|
---|
3244 | on whether the appliance is distributed as a set of files or as a single file, respectively).
|
---|
3245 | </desc>
|
---|
3246 | </param>
|
---|
3247 | <param name="aProgress" type="IProgress" dir="return">
|
---|
3248 | <desc>Progress object to track the operation completion.</desc>
|
---|
3249 | </param>
|
---|
3250 | </method>
|
---|
3251 |
|
---|
3252 | <method name="getWarnings">
|
---|
3253 | <desc>Returns textual warnings which occured during execution of <link to="#interpret" />.</desc>
|
---|
3254 |
|
---|
3255 | <param name="aWarnings" type="wstring" dir="return" safearray="yes">
|
---|
3256 | <desc></desc>
|
---|
3257 | </param>
|
---|
3258 | </method>
|
---|
3259 |
|
---|
3260 | </interface>
|
---|
3261 |
|
---|
3262 | <enum
|
---|
3263 | name="VirtualSystemDescriptionType"
|
---|
3264 | uuid="aacc58de-5b45-4f82-ae2e-dd9a824fc3b5"
|
---|
3265 | >
|
---|
3266 | <desc>Used with <link to="IVirtualSystemDescription" /> to describe the type of
|
---|
3267 | a configuration value.</desc>
|
---|
3268 |
|
---|
3269 | <const name="Ignore" value="1" />
|
---|
3270 | <const name="OS" value="2" />
|
---|
3271 | <const name="Name" value="3" />
|
---|
3272 | <const name="Product" value="4" />
|
---|
3273 | <const name="Vendor" value="5" />
|
---|
3274 | <const name="Version" value="6" />
|
---|
3275 | <const name="ProductUrl" value="7" />
|
---|
3276 | <const name="VendorUrl" value="8" />
|
---|
3277 | <const name="Description" value="9" />
|
---|
3278 | <const name="License" value="10" />
|
---|
3279 | <const name="Miscellaneous" value="11" />
|
---|
3280 | <const name="CPU" value="12" />
|
---|
3281 | <const name="Memory" value="13" />
|
---|
3282 | <const name="HardDiskControllerIDE" value="14" />
|
---|
3283 | <const name="HardDiskControllerSATA" value="15" />
|
---|
3284 | <const name="HardDiskControllerSCSI" value="16" />
|
---|
3285 | <const name="HardDiskImage" value="17" />
|
---|
3286 | <const name="Floppy" value="18" />
|
---|
3287 | <const name="CDROM" value="19" />
|
---|
3288 | <const name="NetworkAdapter" value="20" />
|
---|
3289 | <const name="USBController" value="21" />
|
---|
3290 | <const name="SoundCard" value="22" />
|
---|
3291 |
|
---|
3292 | </enum>
|
---|
3293 |
|
---|
3294 | <enum
|
---|
3295 | name="VirtualSystemDescriptionValueType"
|
---|
3296 | uuid="56d9403f-3425-4118-9919-36f2a9b8c77c"
|
---|
3297 | >
|
---|
3298 | <desc>Used with <link to="IVirtualSystemDescription::getValuesByType" /> to describe the value
|
---|
3299 | type to fetch.</desc>
|
---|
3300 |
|
---|
3301 | <const name="Reference" value="1" />
|
---|
3302 | <const name="Original" value="2" />
|
---|
3303 | <const name="Auto" value="3" />
|
---|
3304 | <const name="ExtraConfig" value="4" />
|
---|
3305 |
|
---|
3306 | </enum>
|
---|
3307 |
|
---|
3308 | <interface
|
---|
3309 | name="IVirtualSystemDescription" extends="$unknown"
|
---|
3310 | uuid="d7525e6c-531a-4c51-8e04-41235083a3d8"
|
---|
3311 | wsmap="managed"
|
---|
3312 | >
|
---|
3313 |
|
---|
3314 | <desc>This interface is used in the <link to="IAppliance::virtualSystemDescriptions" /> array.
|
---|
3315 | After <link to="IAppliance::interpret" /> has been called, that array contains
|
---|
3316 | information about how the virtual systems described in the OVF should best be imported into VirtualBox
|
---|
3317 | virtual machines. See <link to="IAppliance" /> for the steps required to import an OVF
|
---|
3318 | into VirtualBox.
|
---|
3319 | </desc>
|
---|
3320 |
|
---|
3321 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
3322 | <desc>Return the number of virtual system description entries.</desc>
|
---|
3323 | </attribute>
|
---|
3324 |
|
---|
3325 | <method name="getDescription">
|
---|
3326 | <desc>Returns information about the virtual system as arrays of instruction items. In each array, the
|
---|
3327 | items with the same indices correspond and jointly represent an import instruction for VirtualBox.
|
---|
3328 |
|
---|
3329 | The list below identifies the value sets that are possible depending on the
|
---|
3330 | <link to="VirtualSystemDescriptionType" /> enum value in the array item in aTypes[]. In each case,
|
---|
3331 | the array item with the same index in aOvfValues[] will contain the original value as contained
|
---|
3332 | in the OVF file (just for informational purposes), and the corresponding item in aVBoxValues[]
|
---|
3333 | will contain a suggested value to be used for VirtualBox. Depending on the description type,
|
---|
3334 | the aExtraConfigValues[] array item may also be used.
|
---|
3335 |
|
---|
3336 | <ul>
|
---|
3337 | <li>
|
---|
3338 | "OS": the guest operating system type. There must be exactly one such array item on import. The
|
---|
3339 | corresponding item in aVBoxValues[] contains the suggested guest operating system for VirtualBox.
|
---|
3340 | This will be one of the values listed in <link to="IVirtualBox::guestOSTypes" />. The corresponding
|
---|
3341 | item in aOvfValues[] will contain a numerical value that described the operating system in the OVF.
|
---|
3342 | </li>
|
---|
3343 | <li>
|
---|
3344 | "Name": the name to give to the new virtual machine. There can be at most one such array item;
|
---|
3345 | if none is present on import, then an automatic name will be created from the operating system
|
---|
3346 | type. The correponding item im aOvfValues[] will contain the suggested virtual machine name
|
---|
3347 | from the OVF file, and aVBoxValues[] will contain a suggestion for a unique VirtualBox
|
---|
3348 | <link to="IMachine" /> name that does not exist yet.
|
---|
3349 | </li>
|
---|
3350 | <li>
|
---|
3351 | "Description": an arbitrary description.
|
---|
3352 | </li>
|
---|
3353 | <li>
|
---|
3354 | "License": the EULA section from the OVF, if present. It is the responsibility of the calling
|
---|
3355 | code to display such a license for agreement; the Main API does not enforce any such policy.
|
---|
3356 | </li>
|
---|
3357 | <li>
|
---|
3358 | Miscellaneous: reserved for future use.
|
---|
3359 | </li>
|
---|
3360 | <li>
|
---|
3361 | "CPU": the number of CPUs. There can be at most one such item, which will presently be ignored.
|
---|
3362 | </li>
|
---|
3363 | <li>
|
---|
3364 | "Memory": the amount of guest RAM, in bytes. There can be at most one such array item; if none
|
---|
3365 | is present on import, then VirtualBox will set a meaningful default based on the operating system
|
---|
3366 | type.
|
---|
3367 | </li>
|
---|
3368 | <li>
|
---|
3369 | "HarddiskControllerIDE": an IDE hard disk controller. There can be at most one such item. This
|
---|
3370 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3371 | The matching item in the aRefs[] array will contain an integer that items of the "Harddisk"
|
---|
3372 | type can use to specify which hard disk controller a virtual disk should be connected to.
|
---|
3373 | </li>
|
---|
3374 | <li>
|
---|
3375 | "HarddiskControllerSATA": an SATA hard disk controller. There can be at most one such item. This
|
---|
3376 | has no value in aOvfValues[] or aVBoxValues[].
|
---|
3377 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3378 | </li>
|
---|
3379 | <li>
|
---|
3380 | "HarddiskControllerSCSI": a SCSI hard disk controller. There can be at most one such item.
|
---|
3381 | The items in aOvfValues[] and aVBoxValues[] will either be "LsiLogic" or "BusLogic".
|
---|
3382 | The matching item in the aRefs[] array will be used as with IDE controllers (see above).
|
---|
3383 | </li>
|
---|
3384 | <li>
|
---|
3385 | "HardDiskImage": a virtual hard disk, most probably as a reference to an image file. There can be an
|
---|
3386 | arbitrary number of these items, one for each virtual disk image that accompanies the OVF.
|
---|
3387 |
|
---|
3388 | The array item in aOvfValues[] will contain the file specification from the OVF file (without
|
---|
3389 | a path since the image file should be in the same location as the OVF file itself), whereas the
|
---|
3390 | item in aVBoxValues[] will contain a qualified path specification to where VirtualBox uses the
|
---|
3391 | hard disk image. This means that on import the image will be copied and converted from the
|
---|
3392 | "ovf" location to the "vbox" location; on export, this will be handled the other way round.
|
---|
3393 | On import, the target image will also be registered with VirtualBox.
|
---|
3394 |
|
---|
3395 | The matching item in the aExtraConfigValues[] array must contain a string of the following
|
---|
3396 | format: "controller=<index>;channel=<c>"
|
---|
3397 | In this string, <index> must be an integer specifying the hard disk controller to connect
|
---|
3398 | the image to. That number must be the index of an array item with one of the hard disk controller
|
---|
3399 | types (HarddiskControllerSCSI, HarddiskControllerSATA, HarddiskControllerIDE).
|
---|
3400 | In addition, <c> must specify the channel to use on that controller. For IDE controllers,
|
---|
3401 | this can range from 0-2 (which VirtualBox will interpret as primary master, primary slave,
|
---|
3402 | secondary slave; VirtualBox reserves the secondary master for the CD-ROM drive). For SATA and
|
---|
3403 | SCSI conrollers, the channel can range from 0-29.
|
---|
3404 | </li>
|
---|
3405 | <li>
|
---|
3406 | "NetworkAdapter": a network adapter. The array item in aVBoxValues[] will specify the hardware
|
---|
3407 | for the network adapter, whereas the array item in aExtraConfigValues[] will have a string
|
---|
3408 | of the "type=<X>" format, where <X> must be either "NAT" or "Bridged".
|
---|
3409 | </li>
|
---|
3410 | <li>
|
---|
3411 | "USBController": a USB controller. There can be at most one such item. If and only if such an
|
---|
3412 | item ispresent, USB support will be enabled for the new virtual machine.
|
---|
3413 | </li>
|
---|
3414 | <li>
|
---|
3415 | "SoundCard": a sound card. There can be at most one such item. If and only if such an item is
|
---|
3416 | present, sound support will be enabled for the new virtual machine. Note that the virtual
|
---|
3417 | machine in VirtualBox will always be presented with the standard VirtualBox soundcard, which
|
---|
3418 | may be different from the virtual soundcard expected by the appliance.
|
---|
3419 | </li>
|
---|
3420 | </ul>
|
---|
3421 |
|
---|
3422 | </desc>
|
---|
3423 |
|
---|
3424 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3425 | <desc></desc>
|
---|
3426 | </param>
|
---|
3427 |
|
---|
3428 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3429 | <desc></desc>
|
---|
3430 | </param>
|
---|
3431 |
|
---|
3432 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3433 | <desc></desc>
|
---|
3434 | </param>
|
---|
3435 |
|
---|
3436 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3437 | <desc></desc>
|
---|
3438 | </param>
|
---|
3439 |
|
---|
3440 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3441 | <desc></desc>
|
---|
3442 | </param>
|
---|
3443 |
|
---|
3444 | </method>
|
---|
3445 |
|
---|
3446 | <method name="getDescriptionByType">
|
---|
3447 | <desc>This is the same as <link to="#getDescription" /> except that you can specify which types
|
---|
3448 | should be returned.</desc>
|
---|
3449 |
|
---|
3450 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3451 | <desc></desc>
|
---|
3452 | </param>
|
---|
3453 |
|
---|
3454 | <param name="aTypes" type="VirtualSystemDescriptionType" dir="out" safearray="yes">
|
---|
3455 | <desc></desc>
|
---|
3456 | </param>
|
---|
3457 |
|
---|
3458 | <param name="aRefs" type="wstring" dir="out" safearray="yes">
|
---|
3459 | <desc></desc>
|
---|
3460 | </param>
|
---|
3461 |
|
---|
3462 | <param name="aOvfValues" type="wstring" dir="out" safearray="yes">
|
---|
3463 | <desc></desc>
|
---|
3464 | </param>
|
---|
3465 |
|
---|
3466 | <param name="aVBoxValues" type="wstring" dir="out" safearray="yes">
|
---|
3467 | <desc></desc>
|
---|
3468 | </param>
|
---|
3469 |
|
---|
3470 | <param name="aExtraConfigValues" type="wstring" dir="out" safearray="yes">
|
---|
3471 | <desc></desc>
|
---|
3472 | </param>
|
---|
3473 |
|
---|
3474 | </method>
|
---|
3475 |
|
---|
3476 | <method name="getValuesByType">
|
---|
3477 | <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
|
---|
3478 | value types should be returned. See <link to="VirtualSystemDescriptionValueType" /> for possible
|
---|
3479 | values.</desc>
|
---|
3480 |
|
---|
3481 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3482 | <desc></desc>
|
---|
3483 | </param>
|
---|
3484 |
|
---|
3485 | <param name="aWhich" type="VirtualSystemDescriptionValueType" dir="in">
|
---|
3486 | <desc></desc>
|
---|
3487 | </param>
|
---|
3488 |
|
---|
3489 | <param name="aValues" type="wstring" dir="return" safearray="yes">
|
---|
3490 | <desc></desc>
|
---|
3491 | </param>
|
---|
3492 |
|
---|
3493 | </method>
|
---|
3494 |
|
---|
3495 | <method name="setFinalValues">
|
---|
3496 | <desc>
|
---|
3497 | This method allows the appliance's user to change the configuration for the virtual
|
---|
3498 | system descriptions. For each array item returned from <link to="#getDescription" />,
|
---|
3499 | you must pass in one boolean value and one configuration value.
|
---|
3500 |
|
---|
3501 | Each item in the boolean array determines whether the particular configuration item
|
---|
3502 | should be enabled.
|
---|
3503 | You can only disable items of the types HardDiskControllerIDE, HardDiskControllerSATA,
|
---|
3504 | HardDiskControllerSCSI, HardDiskImage, CDROM, Floppy, NetworkAdapter, USBController
|
---|
3505 | and SoundCard.
|
---|
3506 |
|
---|
3507 | For the "vbox" and "extra configuration" values, if you pass in the same arrays
|
---|
3508 | as returned in the aVBoxValues and aExtraConfigValues arrays from getDescription(),
|
---|
3509 | the configuration remains unchanged. Please see the documentation for getDescription()
|
---|
3510 | for valid configuration values for the individual array item types. If the
|
---|
3511 | corresponding item in the aEnabled array is @c false, the configuration value is ignored.
|
---|
3512 | </desc>
|
---|
3513 |
|
---|
3514 | <param name="aEnabled" type="boolean" dir="in" safearray="yes">
|
---|
3515 | <desc></desc>
|
---|
3516 | </param>
|
---|
3517 |
|
---|
3518 | <param name="aVBoxValues" type="wstring" dir="in" safearray="yes">
|
---|
3519 | <desc></desc>
|
---|
3520 | </param>
|
---|
3521 |
|
---|
3522 | <param name="aExtraConfigValues" type="wstring" dir="in" safearray="yes">
|
---|
3523 | <desc></desc>
|
---|
3524 | </param>
|
---|
3525 | </method>
|
---|
3526 |
|
---|
3527 | <method name="addDescription">
|
---|
3528 | <desc>
|
---|
3529 | This method adds an additional description entry to the stack of already
|
---|
3530 | available descriptions for this virtual system. This is handy for writing
|
---|
3531 | values which aren't directly supported by VirtualBox. One example would
|
---|
3532 | be the License type of <link to="VirtualSystemDescriptionType" />.
|
---|
3533 | </desc>
|
---|
3534 |
|
---|
3535 | <param name="aType" type="VirtualSystemDescriptionType" dir="in">
|
---|
3536 | <desc></desc>
|
---|
3537 | </param>
|
---|
3538 |
|
---|
3539 | <param name="aVBoxValue" type="wstring" dir="in">
|
---|
3540 | <desc></desc>
|
---|
3541 | </param>
|
---|
3542 |
|
---|
3543 | <param name="aExtraConfigValue" type="wstring" dir="in">
|
---|
3544 | <desc></desc>
|
---|
3545 | </param>
|
---|
3546 | </method>
|
---|
3547 | </interface>
|
---|
3548 |
|
---|
3549 |
|
---|
3550 | <!--
|
---|
3551 | // IMachine
|
---|
3552 | /////////////////////////////////////////////////////////////////////////
|
---|
3553 | -->
|
---|
3554 |
|
---|
3555 | <interface
|
---|
3556 | name="IInternalMachineControl" extends="$unknown"
|
---|
3557 | uuid="ce8087d7-de92-4bbb-8140-a22fb07f37ba"
|
---|
3558 | internal="yes"
|
---|
3559 | wsmap="suppress"
|
---|
3560 | >
|
---|
3561 | <method name="setRemoveSavedState">
|
---|
3562 | <desc>
|
---|
3563 | Updates the flag whether saved state is removed on a machine state
|
---|
3564 | change from Saved to PoweredOff.
|
---|
3565 | </desc>
|
---|
3566 | <param name="aRemove" type="boolean" dir="in"/>
|
---|
3567 | </method>
|
---|
3568 |
|
---|
3569 | <method name="updateState">
|
---|
3570 | <desc>
|
---|
3571 | Updates the VM state.
|
---|
3572 | <note>
|
---|
3573 | This operation will also update the settings file with
|
---|
3574 | the correct information about the saved state file
|
---|
3575 | and delete this file from disk when appropriate.
|
---|
3576 | </note>
|
---|
3577 | </desc>
|
---|
3578 | <param name="state" type="MachineState" dir="in"/>
|
---|
3579 | </method>
|
---|
3580 |
|
---|
3581 | <method name="getIPCId">
|
---|
3582 | <param name="id" type="wstring" dir="return"/>
|
---|
3583 | </method>
|
---|
3584 |
|
---|
3585 | <method name="runUSBDeviceFilters">
|
---|
3586 | <desc>
|
---|
3587 | Asks the server to run USB devices filters of the associated
|
---|
3588 | machine against the given USB device and tell if there is
|
---|
3589 | a match.
|
---|
3590 | <note>
|
---|
3591 | Intended to be used only for remote USB devices. Local
|
---|
3592 | ones don't require to call this method (this is done
|
---|
3593 | implicitly by the Host and USBProxyService).
|
---|
3594 | </note>
|
---|
3595 | </desc>
|
---|
3596 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
3597 | <param name="matched" type="boolean" dir="out"/>
|
---|
3598 | <param name="maskedInterfaces" type="unsigned long" dir="out"/>
|
---|
3599 | </method>
|
---|
3600 |
|
---|
3601 | <method name="captureUSBDevice">
|
---|
3602 | <desc>
|
---|
3603 | Requests a capture of the given host USB device.
|
---|
3604 | When the request is completed, the VM process will
|
---|
3605 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3606 | notification.
|
---|
3607 | </desc>
|
---|
3608 | <param name="id" type="wstring" dir="in"/>
|
---|
3609 | </method>
|
---|
3610 |
|
---|
3611 | <method name="detachUSBDevice">
|
---|
3612 | <desc>
|
---|
3613 | Notification that a VM is going to detach (@a done = @c false) or has
|
---|
3614 | already detached (@a done = @c true) the given USB device.
|
---|
3615 | When the @a done = @c true request is completed, the VM process will
|
---|
3616 | get a <link to="IInternalSessionControl::onUSBDeviceDetach"/>
|
---|
3617 | notification.
|
---|
3618 | <note>
|
---|
3619 | In the @a done = @c true case, the server must run its own filters
|
---|
3620 | and filters of all VMs but this one on the detached device
|
---|
3621 | as if it were just attached to the host computer.
|
---|
3622 | </note>
|
---|
3623 | </desc>
|
---|
3624 | <param name="id" type="wstring" dir="in"/>
|
---|
3625 | <param name="done" type="boolean" dir="in"/>
|
---|
3626 | </method>
|
---|
3627 |
|
---|
3628 | <method name="autoCaptureUSBDevices">
|
---|
3629 | <desc>
|
---|
3630 | Requests a capture all matching USB devices attached to the host.
|
---|
3631 | When the request is completed, the VM process will
|
---|
3632 | get a <link to="IInternalSessionControl::onUSBDeviceAttach"/>
|
---|
3633 | notification per every captured device.
|
---|
3634 | </desc>
|
---|
3635 | </method>
|
---|
3636 |
|
---|
3637 | <method name="detachAllUSBDevices">
|
---|
3638 | <desc>
|
---|
3639 | Notification that a VM that is being powered down. The done
|
---|
3640 | parameter indicates whether which stage of the power down
|
---|
3641 | we're at. When @a done = @c false the VM is announcing its
|
---|
3642 | intentions, while when @a done = @c true the VM is reporting
|
---|
3643 | what it has done.
|
---|
3644 | <note>
|
---|
3645 | In the @a done = @c true case, the server must run its own filters
|
---|
3646 | and filters of all VMs but this one on all detach devices as
|
---|
3647 | if they were just attached to the host computer.
|
---|
3648 | </note>
|
---|
3649 | </desc>
|
---|
3650 | <param name="done" type="boolean" dir="in"/>
|
---|
3651 | </method>
|
---|
3652 |
|
---|
3653 | <method name="onSessionEnd">
|
---|
3654 | <desc>
|
---|
3655 | Triggered by the given session object when the session is about
|
---|
3656 | to close normally.
|
---|
3657 | </desc>
|
---|
3658 | <param name="session" type="ISession" dir="in">
|
---|
3659 | <desc>Session that is being closed</desc>
|
---|
3660 | </param>
|
---|
3661 | <param name="progress" type="IProgress" dir="return">
|
---|
3662 | <desc>
|
---|
3663 | Used to wait until the corresponding machine is actually
|
---|
3664 | dissociated from the given session on the server.
|
---|
3665 | Returned only when this session is a direct one.
|
---|
3666 | </desc>
|
---|
3667 | </param>
|
---|
3668 | </method>
|
---|
3669 |
|
---|
3670 | <method name="beginSavingState">
|
---|
3671 | <desc>
|
---|
3672 | Called by the VM process to inform the server it wants to
|
---|
3673 | save the current state and stop the VM execution.
|
---|
3674 | </desc>
|
---|
3675 | <param name="progress" type="IProgress" dir="in">
|
---|
3676 | <desc>
|
---|
3677 | Progress object created by the VM process to wait until
|
---|
3678 | the state is saved.
|
---|
3679 | </desc>
|
---|
3680 | </param>
|
---|
3681 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3682 | <desc>
|
---|
3683 | File path the VM process must save the execution state to.
|
---|
3684 | </desc>
|
---|
3685 | </param>
|
---|
3686 | </method>
|
---|
3687 |
|
---|
3688 | <method name="endSavingState">
|
---|
3689 | <desc>
|
---|
3690 | Called by the VM process to inform the server that saving
|
---|
3691 | the state previously requested by #beginSavingState is either
|
---|
3692 | successfully finished or there was a failure.
|
---|
3693 |
|
---|
3694 | <result name="VBOX_E_FILE_ERROR">
|
---|
3695 | Settings file not accessible.
|
---|
3696 | </result>
|
---|
3697 | <result name="VBOX_E_XML_ERROR">
|
---|
3698 | Could not parse the settings file.
|
---|
3699 | </result>
|
---|
3700 |
|
---|
3701 | </desc>
|
---|
3702 |
|
---|
3703 | <param name="success" type="boolean" dir="in">
|
---|
3704 | <desc>@c true to indicate success and @c false otherwise.
|
---|
3705 | </desc>
|
---|
3706 | </param>
|
---|
3707 | </method>
|
---|
3708 |
|
---|
3709 | <method name="adoptSavedState">
|
---|
3710 | <desc>
|
---|
3711 | Gets called by IConsole::adoptSavedState.
|
---|
3712 | <result name="VBOX_E_FILE_ERROR">
|
---|
3713 | Invalid saved state file path.
|
---|
3714 | </result>
|
---|
3715 | </desc>
|
---|
3716 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
3717 | <desc>Path to the saved state file to adopt.</desc>
|
---|
3718 | </param>
|
---|
3719 | </method>
|
---|
3720 |
|
---|
3721 | <method name="beginTakingSnapshot">
|
---|
3722 | <desc>
|
---|
3723 | Called by the VM process to inform the server it wants to
|
---|
3724 | take a snapshot.
|
---|
3725 |
|
---|
3726 | <result name="VBOX_E_FILE_ERROR">
|
---|
3727 | Settings file not accessible.
|
---|
3728 | </result>
|
---|
3729 | <result name="VBOX_E_XML_ERROR">
|
---|
3730 | Could not parse the settings file.
|
---|
3731 | </result>
|
---|
3732 | </desc>
|
---|
3733 | <param name="initiator" type="IConsole" dir="in">
|
---|
3734 | <desc>The console object that initiated this call.</desc>
|
---|
3735 | </param>
|
---|
3736 | <param name="name" type="wstring" dir="in">
|
---|
3737 | <desc>Snapshot name.</desc>
|
---|
3738 | </param>
|
---|
3739 | <param name="description" type="wstring" dir="in">
|
---|
3740 | <desc>Snapshot description.</desc>
|
---|
3741 | </param>
|
---|
3742 | <param name="progress" type="IProgress" dir="in">
|
---|
3743 | <desc>
|
---|
3744 | Progress object created by the VM process to wait until
|
---|
3745 | the state is saved (only for online snapshots).
|
---|
3746 | </desc>
|
---|
3747 | </param>
|
---|
3748 | <param name="stateFilePath" type="wstring" dir="out">
|
---|
3749 | <desc>
|
---|
3750 | File path the VM process must save the execution state to.
|
---|
3751 | </desc>
|
---|
3752 | </param>
|
---|
3753 | <param name="serverProgress" type="IProgress" dir="out">
|
---|
3754 | <desc>
|
---|
3755 | Progress object created by the server process to wait until
|
---|
3756 | the snapshot is taken (VDI diff creation, etc.).
|
---|
3757 | </desc>
|
---|
3758 | </param>
|
---|
3759 | </method>
|
---|
3760 |
|
---|
3761 | <method name="endTakingSnapshot">
|
---|
3762 | <desc>
|
---|
3763 | Called by the VM process to inform the server that the snapshot
|
---|
3764 | previously requested by #beginTakingSnapshot is either
|
---|
3765 | successfully taken or there was a failure.
|
---|
3766 | </desc>
|
---|
3767 |
|
---|
3768 | <param name="success" type="boolean" dir="in">
|
---|
3769 | <desc>@c true to indicate success and @c false otherwise</desc>
|
---|
3770 | </param>
|
---|
3771 | </method>
|
---|
3772 |
|
---|
3773 | <method name="discardSnapshot">
|
---|
3774 | <desc>
|
---|
3775 | Gets called by IConsole::discardSnapshot.
|
---|
3776 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3777 | Snapshot has more than one child snapshot.
|
---|
3778 | </result>
|
---|
3779 | </desc>
|
---|
3780 | <param name="initiator" type="IConsole" dir="in">
|
---|
3781 | <desc>The console object that initiated this call.</desc>
|
---|
3782 | </param>
|
---|
3783 | <param name="id" type="wstring" dir="in">
|
---|
3784 | <desc>UUID of the snapshot to discard.</desc>
|
---|
3785 | </param>
|
---|
3786 | <param name="machineState" type="MachineState" dir="out">
|
---|
3787 | <desc>New machine state after this operation is started.</desc>
|
---|
3788 | </param>
|
---|
3789 | <param name="progress" type="IProgress" dir="return">
|
---|
3790 | <desc>Progress object to track the operation completion.</desc>
|
---|
3791 | </param>
|
---|
3792 | </method>
|
---|
3793 |
|
---|
3794 | <method name="discardCurrentState">
|
---|
3795 | <desc>
|
---|
3796 | Gets called by IConsole::discardCurrentState.
|
---|
3797 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3798 | Virtual machine does not have any snapshot.
|
---|
3799 | </result>
|
---|
3800 | </desc>
|
---|
3801 | <param name="initiator" type="IConsole" dir="in">
|
---|
3802 | <desc>The console object that initiated this call.</desc>
|
---|
3803 | </param>
|
---|
3804 | <param name="machineState" type="MachineState" dir="out">
|
---|
3805 | <desc>New machine state after this operation is started.</desc>
|
---|
3806 | </param>
|
---|
3807 | <param name="progress" type="IProgress" dir="return">
|
---|
3808 | <desc>Progress object to track the operation completion.</desc>
|
---|
3809 | </param>
|
---|
3810 | </method>
|
---|
3811 |
|
---|
3812 | <method name="discardCurrentSnapshotAndState">
|
---|
3813 | <desc>
|
---|
3814 | Gets called by IConsole::discardCurrentSnapshotAndState.
|
---|
3815 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
3816 | Virtual machine does not have any snapshot.
|
---|
3817 | </result>
|
---|
3818 | </desc>
|
---|
3819 | <param name="initiator" type="IConsole" dir="in">
|
---|
3820 | <desc>The console object that initiated this call.</desc>
|
---|
3821 | </param>
|
---|
3822 | <param name="machineState" type="MachineState" dir="out">
|
---|
3823 | <desc>New machine state after this operation is started.</desc>
|
---|
3824 | </param>
|
---|
3825 | <param name="progress" type="IProgress" dir="return">
|
---|
3826 | <desc>Progress object to track the operation completion.</desc>
|
---|
3827 | </param>
|
---|
3828 | </method>
|
---|
3829 |
|
---|
3830 | <method name="pullGuestProperties">
|
---|
3831 | <desc>
|
---|
3832 | Get the list of the guest properties matching a set of patterns along
|
---|
3833 | with their values, time stamps and flags and give responsibility for
|
---|
3834 | managing properties to the console.
|
---|
3835 | </desc>
|
---|
3836 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
3837 | <desc>
|
---|
3838 | The names of the properties returned.
|
---|
3839 | </desc>
|
---|
3840 | </param>
|
---|
3841 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
3842 | <desc>
|
---|
3843 | The values of the properties returned. The array entries match the
|
---|
3844 | corresponding entries in the @a name array.
|
---|
3845 | </desc>
|
---|
3846 | </param>
|
---|
3847 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
3848 | <desc>
|
---|
3849 | The time stamps of the properties returned. The array entries match
|
---|
3850 | the corresponding entries in the @a name array.
|
---|
3851 | </desc>
|
---|
3852 | </param>
|
---|
3853 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
3854 | <desc>
|
---|
3855 | The flags of the properties returned. The array entries match the
|
---|
3856 | corresponding entries in the @a name array.
|
---|
3857 | </desc>
|
---|
3858 | </param>
|
---|
3859 | </method>
|
---|
3860 |
|
---|
3861 | <method name="pushGuestProperties">
|
---|
3862 | <desc>
|
---|
3863 | Set the list of the guest properties matching a set of patterns along
|
---|
3864 | with their values, time stamps and flags and return responsibility for
|
---|
3865 | managing properties to IMachine.
|
---|
3866 | </desc>
|
---|
3867 | <param name="name" type="wstring" dir="in" safearray="yes">
|
---|
3868 | <desc>
|
---|
3869 | The names of the properties.
|
---|
3870 | </desc>
|
---|
3871 | </param>
|
---|
3872 | <param name="value" type="wstring" dir="in" safearray="yes">
|
---|
3873 | <desc>
|
---|
3874 | The values of the properties. The array entries match the
|
---|
3875 | corresponding entries in the @a name array.
|
---|
3876 | </desc>
|
---|
3877 | </param>
|
---|
3878 | <param name="timestamp" type="unsigned long long" dir="in" safearray="yes">
|
---|
3879 | <desc>
|
---|
3880 | The time stamps of the properties. The array entries match
|
---|
3881 | the corresponding entries in the @a name array.
|
---|
3882 | </desc>
|
---|
3883 | </param>
|
---|
3884 | <param name="flags" type="wstring" dir="in" safearray="yes">
|
---|
3885 | <desc>
|
---|
3886 | The flags of the properties. The array entries match the
|
---|
3887 | corresponding entries in the @a name array.
|
---|
3888 | </desc>
|
---|
3889 | </param>
|
---|
3890 | </method>
|
---|
3891 | <method name="pushGuestProperty">
|
---|
3892 | <desc>
|
---|
3893 | Update a single guest property in IMachine.
|
---|
3894 | </desc>
|
---|
3895 | <param name="name" type="wstring" dir="in">
|
---|
3896 | <desc>
|
---|
3897 | The name of the property to be updated.
|
---|
3898 | </desc>
|
---|
3899 | </param>
|
---|
3900 | <param name="value" type="wstring" dir="in">
|
---|
3901 | <desc>
|
---|
3902 | The value of the property.
|
---|
3903 | </desc>
|
---|
3904 | </param>
|
---|
3905 | <param name="timestamp" type="unsigned long long" dir="in">
|
---|
3906 | <desc>
|
---|
3907 | The timestamp of the property.
|
---|
3908 | </desc>
|
---|
3909 | </param>
|
---|
3910 | <param name="flags" type="wstring" dir="in">
|
---|
3911 | <desc>
|
---|
3912 | The flags of the property.
|
---|
3913 | </desc>
|
---|
3914 | </param>
|
---|
3915 | </method>
|
---|
3916 |
|
---|
3917 | <method name="lockMedia">
|
---|
3918 | <desc>
|
---|
3919 | Locks all media attached to the machine for writing and parents of
|
---|
3920 | attahced different hard disks (if any) for reading. This operation is
|
---|
3921 | atomic so that if it fails no media is actually locked.
|
---|
3922 |
|
---|
3923 | This method is intended to be called when the machine is in Starting or
|
---|
3924 | Restoring state. The locked media will be automatically unlocked when
|
---|
3925 | the machine is powered off or crashed.
|
---|
3926 | </desc>
|
---|
3927 | </method>
|
---|
3928 | </interface>
|
---|
3929 |
|
---|
3930 | <interface
|
---|
3931 | name="IBIOSSettings" extends="$unknown"
|
---|
3932 | uuid="38b54279-dc35-4f5e-a431-835b867c6b5e"
|
---|
3933 | wsmap="managed"
|
---|
3934 | >
|
---|
3935 | <desc>
|
---|
3936 | The IBIOSSettings interface represents BIOS settings of the virtual
|
---|
3937 | machine. This is used only in the <link to="IMachine::BIOSSettings" /> attribute.
|
---|
3938 | </desc>
|
---|
3939 | <attribute name="logoFadeIn" type="boolean">
|
---|
3940 | <desc>Fade in flag for BIOS logo animation.</desc>
|
---|
3941 | </attribute>
|
---|
3942 |
|
---|
3943 | <attribute name="logoFadeOut" type="boolean">
|
---|
3944 | <desc>Fade out flag for BIOS logo animation.</desc>
|
---|
3945 | </attribute>
|
---|
3946 |
|
---|
3947 | <attribute name="logoDisplayTime" type="unsigned long">
|
---|
3948 | <desc>BIOS logo display time in milliseconds (0 = default).</desc>
|
---|
3949 | </attribute>
|
---|
3950 |
|
---|
3951 | <attribute name="logoImagePath" type="wstring">
|
---|
3952 | <desc>Local file system path for external BIOS image.</desc>
|
---|
3953 | </attribute>
|
---|
3954 |
|
---|
3955 | <attribute name="bootMenuMode" type="BIOSBootMenuMode">
|
---|
3956 | <desc>Mode of the BIOS boot device menu.</desc>
|
---|
3957 | </attribute>
|
---|
3958 |
|
---|
3959 | <attribute name="ACPIEnabled" type="boolean">
|
---|
3960 | <desc>ACPI support flag.</desc>
|
---|
3961 | </attribute>
|
---|
3962 |
|
---|
3963 | <attribute name="IOAPICEnabled" type="boolean">
|
---|
3964 | <desc>
|
---|
3965 | IO APIC support flag. If set, VirtualBox will provide an IO APIC
|
---|
3966 | and support IRQs above 15.
|
---|
3967 | </desc>
|
---|
3968 | </attribute>
|
---|
3969 |
|
---|
3970 | <attribute name="timeOffset" type="long long">
|
---|
3971 | <desc>
|
---|
3972 | Offset in milliseconds from the host system time. This allows for
|
---|
3973 | guests running with a different system date/time than the host.
|
---|
3974 | It is equivalent to setting the system date/time in the BIOS except
|
---|
3975 | it is not an absolute value but a relative one. Guest Additions
|
---|
3976 | time synchronization honors this offset.
|
---|
3977 | </desc>
|
---|
3978 | </attribute>
|
---|
3979 |
|
---|
3980 | <attribute name="PXEDebugEnabled" type="boolean">
|
---|
3981 | <desc>
|
---|
3982 | PXE debug logging flag. If set, VirtualBox will write extensive
|
---|
3983 | PXE trace information to the release log.
|
---|
3984 | </desc>
|
---|
3985 | </attribute>
|
---|
3986 |
|
---|
3987 | </interface>
|
---|
3988 |
|
---|
3989 |
|
---|
3990 |
|
---|
3991 | <interface
|
---|
3992 | name="IMachine" extends="$unknown"
|
---|
3993 | uuid="5293aa45-5ab5-4f70-852e-bb43f5a46491"
|
---|
3994 | wsmap="managed"
|
---|
3995 | >
|
---|
3996 | <desc>
|
---|
3997 | The IMachine interface represents a virtual machine, or guest, created
|
---|
3998 | in VirtualBox.
|
---|
3999 |
|
---|
4000 | This interface is used in two contexts. First of all, a collection of
|
---|
4001 | objects implementing this interface is stored in the
|
---|
4002 | <link to="IVirtualBox::machines"/> attribute which lists all the virtual
|
---|
4003 | machines that are currently registered with this VirtualBox
|
---|
4004 | installation. Also, once a session has been opened for the given virtual
|
---|
4005 | machine (e.g. the virtual machine is running), the machine object
|
---|
4006 | associated with the open session can be queried from the session object;
|
---|
4007 | see <link to="ISession"/> for details.
|
---|
4008 |
|
---|
4009 | The main role of this interface is to expose the settings of the virtual
|
---|
4010 | machine and provide methods to change various aspects of the virtual
|
---|
4011 | machine's configuration. For machine objects stored in the
|
---|
4012 | <link to="IVirtualBox::machines"/> collection, all attributes are
|
---|
4013 | read-only unless explicitly stated otherwise in individual attribute
|
---|
4014 | and method descriptions. In order to change a machine setting, a session
|
---|
4015 | for this machine must be opened using one of
|
---|
4016 | <link to="IVirtualBox::openSession"/>,
|
---|
4017 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
4018 | <link to="IVirtualBox::openExistingSession"/> methods. After the
|
---|
4019 | session has been successfully opened, a mutable machine object needs to
|
---|
4020 | be queried from the session object and then the desired settings changes
|
---|
4021 | can be applied to the returned object using IMachine attributes and
|
---|
4022 | methods. See the <link to="ISession"/> interface description for more
|
---|
4023 | information about sessions.
|
---|
4024 |
|
---|
4025 | Note that IMachine does not provide methods to control virtual machine
|
---|
4026 | execution (such as start the machine, or power it down) -- these methods
|
---|
4027 | are grouped in a separate interface called <link to="IConsole" />.
|
---|
4028 |
|
---|
4029 | <see>ISession, IConsole</see>
|
---|
4030 | </desc>
|
---|
4031 |
|
---|
4032 | <attribute name="parent" type="IVirtualBox" readonly="yes">
|
---|
4033 | <desc>Associated parent object.</desc>
|
---|
4034 | </attribute>
|
---|
4035 |
|
---|
4036 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
4037 | <desc>
|
---|
4038 | Whether this virtual machine is currently accessible or not.
|
---|
4039 |
|
---|
4040 | A machine is always deemed accessible unless it is registered <i>and</i>
|
---|
4041 | its settings file cannot be read or parsed (either because the file itself
|
---|
4042 | is unavailable or has invalid XML contents).
|
---|
4043 |
|
---|
4044 | Every time this property is read, the accessibility state of
|
---|
4045 | this machine is re-evaluated. If the returned value is @c false,
|
---|
4046 | the <link to="#accessError"/> property may be used to get the
|
---|
4047 | detailed error information describing the reason of
|
---|
4048 | inaccessibility, including XML error messages.
|
---|
4049 |
|
---|
4050 | When the machine is inaccessible, only the following properties
|
---|
4051 | can be used on it:
|
---|
4052 | <ul>
|
---|
4053 | <li><link to="#parent"/></li>
|
---|
4054 | <li><link to="#id"/></li>
|
---|
4055 | <li><link to="#settingsFilePath"/></li>
|
---|
4056 | <li><link to="#accessible"/></li>
|
---|
4057 | <li><link to="#accessError"/></li>
|
---|
4058 | </ul>
|
---|
4059 |
|
---|
4060 | An attempt to access any other property or method will return
|
---|
4061 | an error.
|
---|
4062 |
|
---|
4063 | The only possible action you can perform on an inaccessible
|
---|
4064 | machine is to unregister it using the
|
---|
4065 | <link to="IVirtualBox::unregisterMachine"/> call (or, to check
|
---|
4066 | for the accessibility state once more by querying this
|
---|
4067 | property).
|
---|
4068 |
|
---|
4069 | <note>
|
---|
4070 | In the current implementation, once this property returns
|
---|
4071 | @c true, the machine will never become inaccessible
|
---|
4072 | later, even if its settings file cannot be successfully
|
---|
4073 | read/written any more (at least, until the VirtualBox
|
---|
4074 | server is restarted). This limitation may be removed in
|
---|
4075 | future releases.
|
---|
4076 | </note>
|
---|
4077 | </desc>
|
---|
4078 | </attribute>
|
---|
4079 |
|
---|
4080 | <attribute name="accessError" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
4081 | <desc>
|
---|
4082 | Error information describing the reason of machine
|
---|
4083 | inaccessibility.
|
---|
4084 |
|
---|
4085 | Reading this property is only valid after the last call to
|
---|
4086 | <link to="#accessible"/> returned @c false (i.e. the
|
---|
4087 | machine is currently unaccessible). Otherwise, a @c null
|
---|
4088 | IVirtualBoxErrorInfo object will be returned.
|
---|
4089 | </desc>
|
---|
4090 | </attribute>
|
---|
4091 |
|
---|
4092 | <attribute name="name" type="wstring">
|
---|
4093 | <desc>
|
---|
4094 | Name of the virtual machine.
|
---|
4095 |
|
---|
4096 | Besides being used for human-readable identification purposes
|
---|
4097 | everywhere in VirtualBox, the virtual machine name is also used
|
---|
4098 | as a name of the machine's settings file and as a name of the
|
---|
4099 | subdirectory this settings file resides in. Thus, every time you
|
---|
4100 | change the value of this property, the settings file will be
|
---|
4101 | renamed once you call <link to="#saveSettings"/> to confirm the
|
---|
4102 | change. The containing subdirectory will be also renamed, but
|
---|
4103 | only if it has exactly the same name as the settings file
|
---|
4104 | itself prior to changing this property (for backward compatibility
|
---|
4105 | with previous API releases). The above implies the following
|
---|
4106 | limitations:
|
---|
4107 | <ul>
|
---|
4108 | <li>The machine name cannot be empty.</li>
|
---|
4109 | <li>The machine name can contain only characters that are valid
|
---|
4110 | file name characters according to the rules of the file
|
---|
4111 | system used to store VirtualBox configuration.</li>
|
---|
4112 | <li>You cannot have two or more machines with the same name
|
---|
4113 | if they use the same subdirectory for storing the machine
|
---|
4114 | settings files.</li>
|
---|
4115 | <li>You cannot change the name of the machine if it is running,
|
---|
4116 | or if any file in the directory containing the settings file
|
---|
4117 | is being used by another running machine or by any other
|
---|
4118 | process in the host operating system at a time when
|
---|
4119 | <link to="#saveSettings"/> is called.
|
---|
4120 | </li>
|
---|
4121 | </ul>
|
---|
4122 | If any of the above limitations are hit, <link to="#saveSettings"/>
|
---|
4123 | will return an appropriate error message explaining the exact
|
---|
4124 | reason and the changes you made to this machine will not be
|
---|
4125 | saved.
|
---|
4126 | <note>
|
---|
4127 | For "legacy" machines created using the
|
---|
4128 | <link to="IVirtualBox::createLegacyMachine"/> call,
|
---|
4129 | the above naming limitations do not apply because the
|
---|
4130 | machine name does not affect the settings file name.
|
---|
4131 | The settings file name remains the same as it was specified
|
---|
4132 | during machine creation and never changes.
|
---|
4133 | </note>
|
---|
4134 | </desc>
|
---|
4135 | </attribute>
|
---|
4136 |
|
---|
4137 | <attribute name="description" type="wstring">
|
---|
4138 | <desc>
|
---|
4139 | Description of the virtual machine.
|
---|
4140 |
|
---|
4141 | The description attribute can contain any text and is
|
---|
4142 | typically used to describe the hardware and software
|
---|
4143 | configuration of the virtual machine in detail (i.e. network
|
---|
4144 | settings, versions of the installed software and so on).
|
---|
4145 | </desc>
|
---|
4146 | </attribute>
|
---|
4147 |
|
---|
4148 | <attribute name="id" type="wstring" readonly="yes">
|
---|
4149 | <desc>UUID of the virtual machine.</desc>
|
---|
4150 | </attribute>
|
---|
4151 |
|
---|
4152 | <attribute name="OSTypeId" type="wstring">
|
---|
4153 | <desc>
|
---|
4154 | User-defined identifier of the Guest OS type.
|
---|
4155 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
4156 | an IGuestOSType object representing details about the given
|
---|
4157 | Guest OS type.
|
---|
4158 | <note>
|
---|
4159 | This value may differ from the value returned by
|
---|
4160 | <link to="IGuest::OSTypeId"/> if Guest Additions are
|
---|
4161 | installed to the guest OS.
|
---|
4162 | </note>
|
---|
4163 | </desc>
|
---|
4164 | </attribute>
|
---|
4165 |
|
---|
4166 | <attribute name="HardwareVersion" type="wstring">
|
---|
4167 | <desc>Hardware version identifier. Internal use only for now.</desc>
|
---|
4168 | </attribute>
|
---|
4169 |
|
---|
4170 | <attribute name="CPUCount" type="unsigned long">
|
---|
4171 | <desc>Number of virtual CPUs in the VM.</desc>
|
---|
4172 | </attribute>
|
---|
4173 |
|
---|
4174 | <attribute name="memorySize" type="unsigned long">
|
---|
4175 | <desc>System memory size in megabytes.</desc>
|
---|
4176 | </attribute>
|
---|
4177 |
|
---|
4178 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
4179 | <desc>Initial memory balloon size in megabytes.</desc>
|
---|
4180 | </attribute>
|
---|
4181 |
|
---|
4182 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
4183 | <desc>Initial interval to update guest statistics in seconds.</desc>
|
---|
4184 | </attribute>
|
---|
4185 |
|
---|
4186 | <attribute name="VRAMSize" type="unsigned long">
|
---|
4187 | <desc>Video memory size in megabytes.</desc>
|
---|
4188 | </attribute>
|
---|
4189 |
|
---|
4190 | <attribute name="accelerate3DEnabled" type="boolean" default="false">
|
---|
4191 | <desc>
|
---|
4192 | This setting determines whether VirtualBox allows this machine to make
|
---|
4193 | use of the 3D graphics support available on the host.</desc>
|
---|
4194 | </attribute>
|
---|
4195 |
|
---|
4196 | <attribute name="accelerate2DVideoEnabled" type="boolean" default="false">
|
---|
4197 | <desc>
|
---|
4198 | This setting determines whether VirtualBox allows this machine to make
|
---|
4199 | use of the 2D video acceleration support available on the host.</desc>
|
---|
4200 | </attribute>
|
---|
4201 |
|
---|
4202 | <attribute name="monitorCount" type="unsigned long">
|
---|
4203 | <desc>
|
---|
4204 | Number of virtual monitors.
|
---|
4205 | <note>
|
---|
4206 | Only effective on Windows XP and later guests with
|
---|
4207 | Guest Additions installed.
|
---|
4208 | </note>
|
---|
4209 | </desc>
|
---|
4210 | </attribute>
|
---|
4211 |
|
---|
4212 | <attribute name="BIOSSettings" type="IBIOSSettings" readonly="yes">
|
---|
4213 | <desc>Object containing all BIOS settings.</desc>
|
---|
4214 | </attribute>
|
---|
4215 |
|
---|
4216 | <attribute name="firmwareType" type="FirmwareType">
|
---|
4217 | <desc>Type of firmware (such as legacy BIOS or EFI), used for initial
|
---|
4218 | bootstrap in this VM.</desc>
|
---|
4219 | </attribute>
|
---|
4220 |
|
---|
4221 | <attribute name="HWVirtExEnabled" type="boolean">
|
---|
4222 | <desc>
|
---|
4223 | This setting determines whether VirtualBox will try to make use of
|
---|
4224 | the host CPU's hardware virtualization extensions such as Intel VT-x
|
---|
4225 | and AMD-V. Note that in case such extensions are not available,
|
---|
4226 | they will not be used.
|
---|
4227 | </desc>
|
---|
4228 | </attribute>
|
---|
4229 |
|
---|
4230 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" default="false">
|
---|
4231 | <desc>
|
---|
4232 | This setting determines whether VirtualBox will try to make use of
|
---|
4233 | the nested paging extension of Intel VT-x and AMD-V. Note that in case
|
---|
4234 | such extensions are not available, they will not be used.
|
---|
4235 | </desc>
|
---|
4236 | </attribute>
|
---|
4237 |
|
---|
4238 | <attribute name="HWVirtExVPIDEnabled" type="boolean" default="false">
|
---|
4239 | <desc>
|
---|
4240 | This setting determines whether VirtualBox will try to make use of
|
---|
4241 | the VPID extension of Intel VT-x. Note that in case such extensions are
|
---|
4242 | not available, they will not be used.
|
---|
4243 | </desc>
|
---|
4244 | </attribute>
|
---|
4245 |
|
---|
4246 | <attribute name="PAEEnabled" type="boolean" default="false">
|
---|
4247 | <desc>
|
---|
4248 | This setting determines whether VirtualBox will expose the Physical Address
|
---|
4249 | Extension (PAE) feature of the host CPU to the guest. Note that in case PAE
|
---|
4250 | is not available, it will not be reported.
|
---|
4251 | </desc>
|
---|
4252 | </attribute>
|
---|
4253 |
|
---|
4254 | <attribute name="snapshotFolder" type="wstring">
|
---|
4255 | <desc>
|
---|
4256 | Full path to the directory used to store snapshot data
|
---|
4257 | (differencing hard disks and saved state files) of this machine.
|
---|
4258 |
|
---|
4259 | The initial value of this property is
|
---|
4260 | <tt><</tt><link to="#settingsFilePath">
|
---|
4261 | path_to_settings_file</link><tt>>/<</tt>
|
---|
4262 | <link to="#id">machine_uuid</link>
|
---|
4263 | <tt>></tt>.
|
---|
4264 |
|
---|
4265 | Currently, it is an error to try to change this property on
|
---|
4266 | a machine that has snapshots (because this would require to
|
---|
4267 | move possibly large files to a different location).
|
---|
4268 | A separate method will be available for this purpose later.
|
---|
4269 |
|
---|
4270 | <note>
|
---|
4271 | Setting this property to @c null or to an empty string will restore
|
---|
4272 | the initial value.
|
---|
4273 | </note>
|
---|
4274 | <note>
|
---|
4275 | When setting this property, the specified path can be
|
---|
4276 | absolute (full path) or relative to the directory where the
|
---|
4277 | <link to="#settingsFilePath">machine settings file</link>
|
---|
4278 | is located. When reading this property, a full path is
|
---|
4279 | always returned.
|
---|
4280 | </note>
|
---|
4281 | <note>
|
---|
4282 | The specified path may not exist, it will be created
|
---|
4283 | when necessary.
|
---|
4284 | </note>
|
---|
4285 | </desc>
|
---|
4286 | </attribute>
|
---|
4287 |
|
---|
4288 | <attribute name="VRDPServer" type="IVRDPServer" readonly="yes">
|
---|
4289 | <desc>VRDP server object.</desc>
|
---|
4290 | </attribute>
|
---|
4291 |
|
---|
4292 | <attribute name="hardDiskAttachments" type="IHardDiskAttachment" readonly="yes" safearray="yes">
|
---|
4293 | <desc>Array of hard disks attached to this machine.</desc>
|
---|
4294 | </attribute>
|
---|
4295 |
|
---|
4296 | <attribute name="DVDDrive" type="IDVDDrive" readonly="yes">
|
---|
4297 | <desc>Associated DVD drive object.</desc>
|
---|
4298 | </attribute>
|
---|
4299 |
|
---|
4300 | <attribute name="floppyDrive" type="IFloppyDrive" readonly="yes">
|
---|
4301 | <desc>Associated floppy drive object.</desc>
|
---|
4302 | </attribute>
|
---|
4303 |
|
---|
4304 | <attribute name="USBController" type="IUSBController" readonly="yes">
|
---|
4305 | <desc>
|
---|
4306 | Associated USB controller object.
|
---|
4307 |
|
---|
4308 | <note>
|
---|
4309 | If USB functionality is not available in the given edition of
|
---|
4310 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
4311 | </note>
|
---|
4312 | </desc>
|
---|
4313 | </attribute>
|
---|
4314 |
|
---|
4315 | <attribute name="audioAdapter" type="IAudioAdapter" readonly="yes">
|
---|
4316 | <desc>Associated audio adapter, always present.</desc>
|
---|
4317 | </attribute>
|
---|
4318 |
|
---|
4319 | <attribute name="storageControllers" type="IStorageController" readonly="yes" safearray="yes">
|
---|
4320 | <desc>Array of storage controllers attached to this machine.</desc>
|
---|
4321 | </attribute>
|
---|
4322 |
|
---|
4323 | <attribute name="settingsFilePath" type="wstring" readonly="yes">
|
---|
4324 | <desc>
|
---|
4325 | Full name of the file containing machine settings data.
|
---|
4326 | </desc>
|
---|
4327 | </attribute>
|
---|
4328 |
|
---|
4329 | <attribute name="settingsModified" type="boolean" readonly="yes">
|
---|
4330 | <desc>
|
---|
4331 | Whether the settings of this machine have been modified
|
---|
4332 | (but neither yet saved nor discarded).
|
---|
4333 | <note>
|
---|
4334 | Reading this property is only valid on instances returned
|
---|
4335 | by <link to="ISession::machine"/> and on new machines
|
---|
4336 | created by <link to="IVirtualBox::createMachine"/> or opened
|
---|
4337 | by <link to="IVirtualBox::openMachine"/> but not
|
---|
4338 | yet registered, or on unregistered machines after calling
|
---|
4339 | <link to="IVirtualBox::unregisterMachine"/>. For all other
|
---|
4340 | cases, the settings can never be modified.
|
---|
4341 | </note>
|
---|
4342 | <note>
|
---|
4343 | For newly created unregistered machines, the value of this
|
---|
4344 | property is always @c true until <link to="#saveSettings"/>
|
---|
4345 | is called (no matter if any machine settings have been
|
---|
4346 | changed after the creation or not). For opened machines
|
---|
4347 | the value is set to @c false (and then follows to normal rules).
|
---|
4348 | </note>
|
---|
4349 | </desc>
|
---|
4350 | </attribute>
|
---|
4351 |
|
---|
4352 | <attribute name="sessionState" type="SessionState" readonly="yes">
|
---|
4353 | <desc>Current session state for this machine.</desc>
|
---|
4354 | </attribute>
|
---|
4355 |
|
---|
4356 | <attribute name="sessionType" type="wstring" readonly="yes">
|
---|
4357 | <desc>
|
---|
4358 | Type of the session. If <link to="#sessionState"/> is
|
---|
4359 | SessionSpawning or SessionOpen, this attribute contains the
|
---|
4360 | same value as passed to the
|
---|
4361 | <link to="IVirtualBox::openRemoteSession"/> method in the
|
---|
4362 | @a type parameter. If the session was opened directly using
|
---|
4363 | <link to="IVirtualBox::openSession"/>, or if
|
---|
4364 | <link to="#sessionState"/> is SessionClosed, the value of this
|
---|
4365 | attribute is an empty string.
|
---|
4366 | </desc>
|
---|
4367 | </attribute>
|
---|
4368 |
|
---|
4369 | <attribute name="sessionPid" type="unsigned long" readonly="yes">
|
---|
4370 | <desc>
|
---|
4371 | Identifier of the session process. This attribute contains the
|
---|
4372 | platform-dependent identifier of the process that has opened a
|
---|
4373 | direct session for this machine using the
|
---|
4374 | <link to="IVirtualBox::openSession"/> call. The returned value
|
---|
4375 | is only valid if <link to="#sessionState"/> is SessionOpen or
|
---|
4376 | SessionClosing (i.e. a session is currently open or being
|
---|
4377 | closed) by the time this property is read.
|
---|
4378 | </desc>
|
---|
4379 | </attribute>
|
---|
4380 |
|
---|
4381 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
4382 | <desc>Current execution state of this machine.</desc>
|
---|
4383 | </attribute>
|
---|
4384 |
|
---|
4385 | <attribute name="lastStateChange" type="long long" readonly="yes">
|
---|
4386 | <desc>
|
---|
4387 | Time stamp of the last execution state change,
|
---|
4388 | in milliseconds since 1970-01-01 UTC.
|
---|
4389 | </desc>
|
---|
4390 | </attribute>
|
---|
4391 |
|
---|
4392 | <attribute name="stateFilePath" type="wstring" readonly="yes">
|
---|
4393 | <desc>
|
---|
4394 | Full path to the file that stores the execution state of
|
---|
4395 | the machine when it is in the <link to="MachineState_Saved"/> state.
|
---|
4396 | <note>
|
---|
4397 | When the machine is not in the Saved state, this attribute is
|
---|
4398 | an empty string.
|
---|
4399 | </note>
|
---|
4400 | </desc>
|
---|
4401 | </attribute>
|
---|
4402 |
|
---|
4403 | <attribute name="logFolder" type="wstring" readonly="yes">
|
---|
4404 | <desc>
|
---|
4405 | Full path to the folder that stores a set of rotated log files
|
---|
4406 | recorded during machine execution. The most recent log file is
|
---|
4407 | named <tt>VBox.log</tt>, the previous log file is
|
---|
4408 | named <tt>VBox.log.1</tt> and so on (up to <tt>VBox.log.3</tt>
|
---|
4409 | in the current version).
|
---|
4410 | </desc>
|
---|
4411 | </attribute>
|
---|
4412 |
|
---|
4413 | <attribute name="currentSnapshot" type="ISnapshot" readonly="yes">
|
---|
4414 | <desc>
|
---|
4415 | Current snapshot of this machine. This is @c null if the machine
|
---|
4416 | currently has no snapshots. Otherwise, this is always the last snapshot
|
---|
4417 | in the current implementation; see <link to="ISnapshot"/> for details.
|
---|
4418 | </desc>
|
---|
4419 | </attribute>
|
---|
4420 |
|
---|
4421 | <attribute name="snapshotCount" type="unsigned long" readonly="yes">
|
---|
4422 | <desc>
|
---|
4423 | Number of snapshots taken on this machine. Zero means the
|
---|
4424 | machine doesn't have any snapshots.
|
---|
4425 | </desc>
|
---|
4426 | </attribute>
|
---|
4427 |
|
---|
4428 | <attribute name="currentStateModified" type="boolean" readonly="yes">
|
---|
4429 | <desc>
|
---|
4430 | Returns @c true if the current state of the machine is not
|
---|
4431 | identical to the state stored in the current snapshot.
|
---|
4432 |
|
---|
4433 | The current state is identical to the current snapshot right
|
---|
4434 | after one of the following calls are made:
|
---|
4435 | <ul>
|
---|
4436 | <li><link to="IConsole::discardCurrentState"/> or
|
---|
4437 | <link to="IConsole::discardCurrentSnapshotAndState"/>
|
---|
4438 | </li>
|
---|
4439 | <li><link to="IConsole::takeSnapshot"/> (issued on a
|
---|
4440 | powered off or saved machine, for which
|
---|
4441 | <link to="#settingsModified"/> returns @c false)
|
---|
4442 | </li>
|
---|
4443 | <li><link to="IMachine::setCurrentSnapshot"/>
|
---|
4444 | </li>
|
---|
4445 | </ul>
|
---|
4446 |
|
---|
4447 | The current state remains identical until one of the following
|
---|
4448 | happens:
|
---|
4449 | <ul>
|
---|
4450 | <li>settings of the machine are changed</li>
|
---|
4451 | <li>the saved state is discarded</li>
|
---|
4452 | <li>the current snapshot is discarded</li>
|
---|
4453 | <li>an attempt to execute the machine is made</li>
|
---|
4454 | </ul>
|
---|
4455 |
|
---|
4456 | <note>
|
---|
4457 | For machines that don't have snapshots, this property is
|
---|
4458 | always @c false.
|
---|
4459 | </note>
|
---|
4460 | </desc>
|
---|
4461 | </attribute>
|
---|
4462 |
|
---|
4463 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
4464 | <desc>
|
---|
4465 | Collection of shared folders for this machine (permanent shared
|
---|
4466 | folders). These folders are shared automatically at machine startup
|
---|
4467 | and available only to the guest OS installed within this machine.
|
---|
4468 |
|
---|
4469 | New shared folders are added to the collection using
|
---|
4470 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
4471 | removed using <link to="#removeSharedFolder"/>.
|
---|
4472 | </desc>
|
---|
4473 | </attribute>
|
---|
4474 |
|
---|
4475 | <attribute name="clipboardMode" type="ClipboardMode">
|
---|
4476 | <desc>
|
---|
4477 | Synchronization mode between the host OS clipboard
|
---|
4478 | and the guest OS clipboard.
|
---|
4479 | </desc>
|
---|
4480 | </attribute>
|
---|
4481 |
|
---|
4482 | <attribute name="guestPropertyNotificationPatterns" type="wstring">
|
---|
4483 | <desc>
|
---|
4484 | A comma-separated list of simple glob patterns. Changes to guest
|
---|
4485 | properties whose name matches one of the patterns will generate an
|
---|
4486 | <link to="IVirtualBoxCallback::onGuestPropertyChange"/> signal.
|
---|
4487 | </desc>
|
---|
4488 | </attribute>
|
---|
4489 |
|
---|
4490 | <method name="setBootOrder">
|
---|
4491 | <desc>
|
---|
4492 | Puts the given device to the specified position in
|
---|
4493 | the boot order.
|
---|
4494 |
|
---|
4495 | To indicate that no device is associated with the given position,
|
---|
4496 | <link to="DeviceType_Null"/> should be used.
|
---|
4497 |
|
---|
4498 | @todo setHardDiskBootOrder(), setNetworkBootOrder()
|
---|
4499 |
|
---|
4500 | <result name="E_INVALIDARG">
|
---|
4501 | Boot @a position out of range.
|
---|
4502 | </result>
|
---|
4503 | <result name="E_NOTIMPL">
|
---|
4504 | Booting from USB @a device currently not supported.
|
---|
4505 | </result>
|
---|
4506 |
|
---|
4507 | </desc>
|
---|
4508 | <param name="position" type="unsigned long" dir="in">
|
---|
4509 | <desc>
|
---|
4510 | Position in the boot order (@c 1 to the total number of
|
---|
4511 | devices the machine can boot from, as returned by
|
---|
4512 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4513 | </desc>
|
---|
4514 | </param>
|
---|
4515 | <param name="device" type="DeviceType" dir="in">
|
---|
4516 | <desc>
|
---|
4517 | The type of the device used to boot at the given position.
|
---|
4518 | </desc>
|
---|
4519 | </param>
|
---|
4520 | </method>
|
---|
4521 |
|
---|
4522 | <method name="getBootOrder" const="yes">
|
---|
4523 | <desc>
|
---|
4524 | Returns the device type that occupies the specified
|
---|
4525 | position in the boot order.
|
---|
4526 |
|
---|
4527 | @todo [remove?]
|
---|
4528 | If the machine can have more than one device of the returned type
|
---|
4529 | (such as hard disks), then a separate method should be used to
|
---|
4530 | retrieve the individual device that occupies the given position.
|
---|
4531 |
|
---|
4532 | If here are no devices at the given position, then
|
---|
4533 | <link to="DeviceType_Null"/> is returned.
|
---|
4534 |
|
---|
4535 | @todo getHardDiskBootOrder(), getNetworkBootOrder()
|
---|
4536 |
|
---|
4537 | <result name="E_INVALIDARG">
|
---|
4538 | Boot @a position out of range.
|
---|
4539 | </result>
|
---|
4540 |
|
---|
4541 | </desc>
|
---|
4542 | <param name="position" type="unsigned long" dir="in">
|
---|
4543 | <desc>
|
---|
4544 | Position in the boot order (@c 1 to the total number of
|
---|
4545 | devices the machine can boot from, as returned by
|
---|
4546 | <link to="ISystemProperties::maxBootPosition"/>).
|
---|
4547 | </desc>
|
---|
4548 | </param>
|
---|
4549 | <param name="device" type="DeviceType" dir="return">
|
---|
4550 | <desc>
|
---|
4551 | Device at the given position.
|
---|
4552 | </desc>
|
---|
4553 | </param>
|
---|
4554 | </method>
|
---|
4555 |
|
---|
4556 | <method name="attachHardDisk">
|
---|
4557 | <desc>
|
---|
4558 | Attaches a virtual hard disk (<link to="IHardDisk" />, identified
|
---|
4559 | by the given UUID @a id) to the given hard disk controller
|
---|
4560 | (<link to="IStorageController" />, identified by @a name),
|
---|
4561 | at the indicated port and device.
|
---|
4562 |
|
---|
4563 | For the IDE bus, the @a controllerPort parameter can be either
|
---|
4564 | @c 0 or @c 1, to specify the primary or secondary IDE controller,
|
---|
4565 | respectively. For the primary controller of the IDE bus,
|
---|
4566 | @a device can be either @c 0 or @c 1, to specify the master or the
|
---|
4567 | slave device, respectively. For the secondary IDE controller, the
|
---|
4568 | device number must be @c 1 because VirtualBox reserves the
|
---|
4569 | secondary master for the CD-ROM drive.
|
---|
4570 |
|
---|
4571 | For an SATA controller, @a controllerPort must be a number ranging
|
---|
4572 | from @c 0 to @c 29. For a SCSI controller, @a controllerPort must
|
---|
4573 | be a number ranging from @c 0 to @c 15.
|
---|
4574 |
|
---|
4575 | For both SCSI and SATA, the @a device parameter is unused and must
|
---|
4576 | be @c 0.
|
---|
4577 |
|
---|
4578 | The specified device slot must not have another disk attached to it, or
|
---|
4579 | this method will fail.
|
---|
4580 |
|
---|
4581 | See <link to="IHardDisk"/> for more detailed information about
|
---|
4582 | attaching hard disks.
|
---|
4583 |
|
---|
4584 | <note>
|
---|
4585 | You cannot attach a hard disk to a running machine. Also, you cannot
|
---|
4586 | attach a hard disk to a newly created machine until this machine's
|
---|
4587 | settings are saved to disk using <link to="#saveSettings"/>.
|
---|
4588 | </note>
|
---|
4589 | <note>
|
---|
4590 | If the hard disk is being attached indirectly, a new differencing hard
|
---|
4591 | disk will implicitly be created for it and attached instead. If the
|
---|
4592 | changes made to the machine settings (including this indirect
|
---|
4593 | attachment) are later cancelled using <link to="#discardSettings"/>,
|
---|
4594 | this implicitly created differencing hard disk will implicitly
|
---|
4595 | be deleted.
|
---|
4596 | </note>
|
---|
4597 |
|
---|
4598 | <result name="E_INVALIDARG">
|
---|
4599 | SATA device, SATA port, IDE port or IDE slot out of range.
|
---|
4600 | </result>
|
---|
4601 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
4602 | Attempt to attach hard disk to an unregistered virtual machine.
|
---|
4603 | </result>
|
---|
4604 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4605 | Invalid machine state.
|
---|
4606 | </result>
|
---|
4607 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4608 | Hard disk already attached to this or another virtual machine.
|
---|
4609 | </result>
|
---|
4610 |
|
---|
4611 | </desc>
|
---|
4612 | <param name="id" type="wstring" dir="in">
|
---|
4613 | <desc>UUID of the hard disk to attach.</desc>
|
---|
4614 | </param>
|
---|
4615 | <param name="name" type="wstring" dir="in">
|
---|
4616 | <desc>Name of the storage controller to attach the hard disk to.</desc>
|
---|
4617 | </param>
|
---|
4618 | <param name="controllerPort" type="long" dir="in">
|
---|
4619 | <desc>Port to attach the hard disk to.</desc>
|
---|
4620 | </param>
|
---|
4621 | <param name="device" type="long" dir="in">
|
---|
4622 | <desc>
|
---|
4623 | Device slot in the given port to attach the hard disk to.
|
---|
4624 | </desc>
|
---|
4625 | </param>
|
---|
4626 | </method>
|
---|
4627 |
|
---|
4628 | <method name="getHardDisk" const="yes">
|
---|
4629 | <desc>
|
---|
4630 | Returns the virtual hard disk attached to a device slot of the specified
|
---|
4631 | bus.
|
---|
4632 |
|
---|
4633 | Note that if the hard disk was indirectly attached by
|
---|
4634 | <link to="#attachHardDisk"/> to the given device slot then this
|
---|
4635 | method will return not the same object as passed to the
|
---|
4636 | <link to="#attachHardDisk"/> call. See <link to="IHardDisk"/> for
|
---|
4637 | more detailed information about attaching hard disks.
|
---|
4638 |
|
---|
4639 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4640 | No hard disk attached to given slot/bus.
|
---|
4641 | </result>
|
---|
4642 |
|
---|
4643 | </desc>
|
---|
4644 | <param name="name" type="wstring" dir="in">
|
---|
4645 | <desc>Name of the storage controller the hard disk is attached to.</desc>
|
---|
4646 | </param>
|
---|
4647 | <param name="controllerPort" type="long" dir="in">
|
---|
4648 | <desc>Port to query.</desc>
|
---|
4649 | </param>
|
---|
4650 | <param name="device" type="long" dir="in">
|
---|
4651 | <desc>Device slot in the given port to query.</desc>
|
---|
4652 | </param>
|
---|
4653 | <param name="hardDisk" type="IHardDisk" dir="return">
|
---|
4654 | <desc>Attached hard disk object.</desc>
|
---|
4655 | </param>
|
---|
4656 | </method>
|
---|
4657 |
|
---|
4658 | <method name="detachHardDisk">
|
---|
4659 | <desc>
|
---|
4660 | Detaches the virtual hard disk attached to a device slot of the
|
---|
4661 | specified bus.
|
---|
4662 |
|
---|
4663 | Detaching the hard disk from the virtual machine is deferred. This means
|
---|
4664 | that the hard disk remains associated with the machine when this method
|
---|
4665 | returns and gets actually de-associated only after a successful
|
---|
4666 | <link to="#saveSettings"/> call. See <link to="IHardDisk"/>
|
---|
4667 | for more detailed information about attaching hard disks.
|
---|
4668 |
|
---|
4669 | <note>
|
---|
4670 | You cannot detach the hard disk from a running machine.
|
---|
4671 | </note>
|
---|
4672 | <note>
|
---|
4673 | Detaching differencing hard disks implicitly created by <link
|
---|
4674 | to="#attachHardDisk"/> for the indirect attachment using this
|
---|
4675 | method will <b>not</b> implicitly delete them. The
|
---|
4676 | <link to="IHardDisk::deleteStorage"/> operation should be
|
---|
4677 | explicitly performed by the caller after the hard disk is successfully
|
---|
4678 | detached and the settings are saved with
|
---|
4679 | <link to="#saveSettings"/>, if it is the desired action.
|
---|
4680 | </note>
|
---|
4681 |
|
---|
4682 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4683 | Attempt to detach hard disk from a running virtual machine.
|
---|
4684 | </result>
|
---|
4685 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4686 | No hard disk attached to given slot/bus.
|
---|
4687 | </result>
|
---|
4688 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
4689 | Hard disk format does not support storage deletion.
|
---|
4690 | </result>
|
---|
4691 |
|
---|
4692 | </desc>
|
---|
4693 | <param name="name" type="wstring" dir="in">
|
---|
4694 | <desc>name of the storage controller to detach the hard disk from.</desc>
|
---|
4695 | </param>
|
---|
4696 | <param name="controllerPort" type="long" dir="in">
|
---|
4697 | <desc>Port number to detach the hard disk from.</desc>
|
---|
4698 | </param>
|
---|
4699 | <param name="device" type="long" dir="in">
|
---|
4700 | <desc>Device slot number to detach the hard disk from.</desc>
|
---|
4701 | </param>
|
---|
4702 | </method>
|
---|
4703 |
|
---|
4704 | <method name="getHardDiskAttachmentsOfController" const="yes">
|
---|
4705 | <desc>
|
---|
4706 | Returns an array of hard disk attachments which are attached to the
|
---|
4707 | the controller with the given name.
|
---|
4708 |
|
---|
4709 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4710 | A storage controller with given name doesn't exist.
|
---|
4711 | </result>
|
---|
4712 | </desc>
|
---|
4713 | <param name="name" type="wstring" dir="in"/>
|
---|
4714 | <param name="hardDiskAttachments" type="IHardDiskAttachment" safearray="yes" dir="return"/>
|
---|
4715 | </method>
|
---|
4716 |
|
---|
4717 | <method name="getNetworkAdapter" const="yes">
|
---|
4718 | <desc>
|
---|
4719 | Returns the network adapter associated with the given slot.
|
---|
4720 | Slots are numbered sequentially, starting with zero. The total
|
---|
4721 | number of adapters per machine is defined by the
|
---|
4722 | <link to="ISystemProperties::networkAdapterCount"/> property,
|
---|
4723 | so the maximum slot number is one less than that property's value.
|
---|
4724 |
|
---|
4725 | <result name="E_INVALIDARG">
|
---|
4726 | Invalid @a slot number.
|
---|
4727 | </result>
|
---|
4728 |
|
---|
4729 | </desc>
|
---|
4730 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4731 | <param name="adapter" type="INetworkAdapter" dir="return"/>
|
---|
4732 | </method>
|
---|
4733 |
|
---|
4734 | <method name="addStorageController">
|
---|
4735 | <desc>
|
---|
4736 | Adds a new storage controller (SCSI or SATA controller) to the
|
---|
4737 | machine and returns it as an instance of
|
---|
4738 | <link to="IStorageController" />.
|
---|
4739 |
|
---|
4740 | @a name identifies the controller for subsequent calls such as
|
---|
4741 | <link to="#getStorageControllerByName" /> or
|
---|
4742 | <link to="#removeStorageController" /> or
|
---|
4743 | <link to="#attachHardDisk" />.
|
---|
4744 |
|
---|
4745 | After the controller has been added, you can set its exact
|
---|
4746 | type by setting the <link to="IStorageController::controllerType" />.
|
---|
4747 |
|
---|
4748 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
4749 | A storage controller with given name exists already.
|
---|
4750 | </result>
|
---|
4751 | <result name="E_INVALIDARG">
|
---|
4752 | Invalid @a controllerType.
|
---|
4753 | </result>
|
---|
4754 | </desc>
|
---|
4755 | <param name="name" type="wstring" dir="in"/>
|
---|
4756 | <param name="connectionType" type="StorageBus" dir="in"/>
|
---|
4757 | <param name="controller" type="IStorageController" dir="return"/>
|
---|
4758 | </method>
|
---|
4759 |
|
---|
4760 | <method name="getStorageControllerByName" const="yes">
|
---|
4761 | <desc>
|
---|
4762 | Returns a storage controller with the given name.
|
---|
4763 |
|
---|
4764 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4765 | A storage controller with given name doesn't exist.
|
---|
4766 | </result>
|
---|
4767 | </desc>
|
---|
4768 | <param name="name" type="wstring" dir="in"/>
|
---|
4769 | <param name="storageController" type="IStorageController" dir="return"/>
|
---|
4770 | </method>
|
---|
4771 |
|
---|
4772 | <method name="removeStorageController">
|
---|
4773 | <desc>
|
---|
4774 | Removes a storage controller from the machine.
|
---|
4775 |
|
---|
4776 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
4777 | A storage controller with given name doesn't exist.
|
---|
4778 | </result>
|
---|
4779 | </desc>
|
---|
4780 | <param name="name" type="wstring" dir="in"/>
|
---|
4781 | </method>
|
---|
4782 |
|
---|
4783 | <method name="getSerialPort" const="yes">
|
---|
4784 | <desc>
|
---|
4785 | Returns the serial port associated with the given slot.
|
---|
4786 | Slots are numbered sequentially, starting with zero. The total
|
---|
4787 | number of serial ports per machine is defined by the
|
---|
4788 | <link to="ISystemProperties::serialPortCount"/> property,
|
---|
4789 | so the maximum slot number is one less than that property's value.
|
---|
4790 |
|
---|
4791 | <result name="E_INVALIDARG">
|
---|
4792 | Invalid @a slot number.
|
---|
4793 | </result>
|
---|
4794 |
|
---|
4795 | </desc>
|
---|
4796 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4797 | <param name="port" type="ISerialPort" dir="return"/>
|
---|
4798 | </method>
|
---|
4799 |
|
---|
4800 | <method name="getParallelPort" const="yes">
|
---|
4801 | <desc>
|
---|
4802 | Returns the parallel port associated with the given slot.
|
---|
4803 | Slots are numbered sequentially, starting with zero. The total
|
---|
4804 | number of parallel ports per machine is defined by the
|
---|
4805 | <link to="ISystemProperties::parallelPortCount"/> property,
|
---|
4806 | so the maximum slot number is one less than that property's value.
|
---|
4807 |
|
---|
4808 | <result name="E_INVALIDARG">
|
---|
4809 | Invalid @a slot number.
|
---|
4810 | </result>
|
---|
4811 |
|
---|
4812 | </desc>
|
---|
4813 | <param name="slot" type="unsigned long" dir="in"/>
|
---|
4814 | <param name="port" type="IParallelPort" dir="return"/>
|
---|
4815 | </method>
|
---|
4816 |
|
---|
4817 | <method name="getExtraDataKeys">
|
---|
4818 | <desc>
|
---|
4819 | Returns an array representing the machine-specific extra data keys
|
---|
4820 | which currently have values defined.
|
---|
4821 | </desc>
|
---|
4822 | <param name="value" type="wstring" dir="return" safearray="yes">
|
---|
4823 | <desc>Array of extra data keys.</desc>
|
---|
4824 | </param>
|
---|
4825 | </method>
|
---|
4826 |
|
---|
4827 | <method name="getExtraData">
|
---|
4828 | <desc>
|
---|
4829 | Returns associated machine-specific extra data.
|
---|
4830 |
|
---|
4831 | If the requested data @a key does not exist, this function will
|
---|
4832 | succeed and return an empty string in the @a value argument.
|
---|
4833 |
|
---|
4834 | <result name="VBOX_E_FILE_ERROR">
|
---|
4835 | Settings file not accessible.
|
---|
4836 | </result>
|
---|
4837 | <result name="VBOX_E_XML_ERROR">
|
---|
4838 | Could not parse the settings file.
|
---|
4839 | </result>
|
---|
4840 |
|
---|
4841 | </desc>
|
---|
4842 | <param name="key" type="wstring" dir="in">
|
---|
4843 | <desc>Name of the data key to get.</desc>
|
---|
4844 | </param>
|
---|
4845 | <param name="value" type="wstring" dir="return">
|
---|
4846 | <desc>Value of the requested data key.</desc>
|
---|
4847 | </param>
|
---|
4848 | </method>
|
---|
4849 |
|
---|
4850 | <method name="setExtraData">
|
---|
4851 | <desc>
|
---|
4852 | Sets associated machine-specific extra data.
|
---|
4853 |
|
---|
4854 | If you pass @c null or an empty string as a key @a value, the given
|
---|
4855 | @a key will be deleted.
|
---|
4856 |
|
---|
4857 | <note>
|
---|
4858 | Before performing the actual data change, this method will ask all
|
---|
4859 | registered callbacks using the
|
---|
4860 | <link to="IVirtualBoxCallback::onExtraDataCanChange"/>
|
---|
4861 | notification for a permission. If one of the callbacks refuses the
|
---|
4862 | new value, the change will not be performed.
|
---|
4863 | </note>
|
---|
4864 | <note>
|
---|
4865 | On success, the
|
---|
4866 | <link to="IVirtualBoxCallback::onExtraDataChange"/> notification
|
---|
4867 | is called to inform all registered callbacks about a successful data
|
---|
4868 | change.
|
---|
4869 | </note>
|
---|
4870 | <note>
|
---|
4871 | This method can be called outside the machine session and therefore
|
---|
4872 | it's a caller's responsibility to handle possible race conditions
|
---|
4873 | when several clients change the same key at the same time.
|
---|
4874 | </note>
|
---|
4875 |
|
---|
4876 | <result name="VBOX_E_FILE_ERROR">
|
---|
4877 | Settings file not accessible.
|
---|
4878 | </result>
|
---|
4879 | <result name="VBOX_E_XML_ERROR">
|
---|
4880 | Could not parse the settings file.
|
---|
4881 | </result>
|
---|
4882 |
|
---|
4883 | </desc>
|
---|
4884 | <param name="key" type="wstring" dir="in">
|
---|
4885 | <desc>Name of the data key to set.</desc>
|
---|
4886 | </param>
|
---|
4887 | <param name="value" type="wstring" dir="in">
|
---|
4888 | <desc>Value to assign to the key.</desc>
|
---|
4889 | </param>
|
---|
4890 | </method>
|
---|
4891 |
|
---|
4892 | <method name="saveSettings">
|
---|
4893 | <desc>
|
---|
4894 | Saves any changes to machine settings made since the session
|
---|
4895 | has been opened or a new machine has been created, or since the
|
---|
4896 | last call to <link to="#saveSettings"/> or <link to="#discardSettings"/>.
|
---|
4897 | For registered machines, new settings become visible to all
|
---|
4898 | other VirtualBox clients after successful invocation of this
|
---|
4899 | method.
|
---|
4900 | <note>
|
---|
4901 | The method sends <link to="IVirtualBoxCallback::onMachineDataChange"/>
|
---|
4902 | notification event after the configuration has been successfully
|
---|
4903 | saved (only for registered machines).
|
---|
4904 | </note>
|
---|
4905 | <note>
|
---|
4906 | Calling this method is only valid on instances returned
|
---|
4907 | by <link to="ISession::machine"/> and on new machines
|
---|
4908 | created by <link to="IVirtualBox::createMachine"/> but not
|
---|
4909 | yet registered, or on unregistered machines after calling
|
---|
4910 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
4911 | </note>
|
---|
4912 |
|
---|
4913 | <result name="VBOX_E_FILE_ERROR">
|
---|
4914 | Settings file not accessible.
|
---|
4915 | </result>
|
---|
4916 | <result name="VBOX_E_XML_ERROR">
|
---|
4917 | Could not parse the settings file.
|
---|
4918 | </result>
|
---|
4919 | <result name="E_ACCESSDENIED">
|
---|
4920 | Modification request refused.
|
---|
4921 | </result>
|
---|
4922 |
|
---|
4923 | </desc>
|
---|
4924 | </method>
|
---|
4925 |
|
---|
4926 | <method name="discardSettings">
|
---|
4927 | <desc>
|
---|
4928 | Discards any changes to the machine settings made since the session
|
---|
4929 | has been opened or since the last call to <link to="#saveSettings"/>
|
---|
4930 | or <link to="#discardSettings"/>.
|
---|
4931 | <note>
|
---|
4932 | Calling this method is only valid on instances returned
|
---|
4933 | by <link to="ISession::machine"/> and on new machines
|
---|
4934 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
4935 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
4936 | yet registered, or on unregistered machines after calling
|
---|
4937 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
4938 | </note>
|
---|
4939 |
|
---|
4940 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4941 | Virtual machine is not mutable.
|
---|
4942 | </result>
|
---|
4943 |
|
---|
4944 | </desc>
|
---|
4945 | </method>
|
---|
4946 |
|
---|
4947 | <method name="deleteSettings">
|
---|
4948 | <desc>
|
---|
4949 | Deletes the settings file of this machine from disk.
|
---|
4950 | The machine must not be registered in order for this operation
|
---|
4951 | to succeed.
|
---|
4952 | <note>
|
---|
4953 | <link to="#settingsModified"/> will return @c true after this
|
---|
4954 | method successfully returns.
|
---|
4955 | </note>
|
---|
4956 | <note>
|
---|
4957 | Calling this method is only valid on instances returned
|
---|
4958 | by <link to="ISession::machine"/> and on new machines
|
---|
4959 | created by <link to="IVirtualBox::createMachine"/> or
|
---|
4960 | opened by <link to="IVirtualBox::openMachine"/> but not
|
---|
4961 | yet registered, or on unregistered machines after calling
|
---|
4962 | <link to="IVirtualBox::unregisterMachine"/>.
|
---|
4963 | </note>
|
---|
4964 | <note>
|
---|
4965 | The deleted machine settings file can be restored (saved again)
|
---|
4966 | by calling <link to="#saveSettings"/>.
|
---|
4967 | </note>
|
---|
4968 |
|
---|
4969 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
4970 | Cannot delete settings of a registered machine or
|
---|
4971 | machine not mutable.
|
---|
4972 | </result>
|
---|
4973 | <result name="VBOX_E_IPRT_ERROR">
|
---|
4974 | Could not delete the settings file.
|
---|
4975 | </result>
|
---|
4976 |
|
---|
4977 | </desc>
|
---|
4978 | </method>
|
---|
4979 |
|
---|
4980 | <method name="export">
|
---|
4981 | <desc>Exports the machine to an OVF appliance. See <link to="IAppliance" /> for the
|
---|
4982 | steps required to export VirtualBox machines to OVF.
|
---|
4983 | </desc>
|
---|
4984 |
|
---|
4985 | <param name="aAppliance" type="IAppliance" dir="in">
|
---|
4986 | <desc>Appliance to export this machine to.</desc>
|
---|
4987 | </param>
|
---|
4988 | <param name="aDescription" type="IVirtualSystemDescription" dir="return">
|
---|
4989 | <desc>VirtualSystemDescription object which is created for this machine.</desc>
|
---|
4990 | </param>
|
---|
4991 | </method >
|
---|
4992 |
|
---|
4993 | <method name="getSnapshot">
|
---|
4994 | <desc>
|
---|
4995 | Returns a snapshot of this machine with the given UUID.
|
---|
4996 | A @c null UUID can be used to obtain the first snapshot
|
---|
4997 | taken on this machine. This is useful if you want to traverse
|
---|
4998 | the whole tree of snapshots starting from the root.
|
---|
4999 |
|
---|
5000 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5001 | Virtual machine has no snapshots or snapshot not found.
|
---|
5002 | </result>
|
---|
5003 |
|
---|
5004 | </desc>
|
---|
5005 | <param name="id" type="wstring" dir="in">
|
---|
5006 | <desc>UUID of the snapshot to get</desc>
|
---|
5007 | </param>
|
---|
5008 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5009 | <desc>Snapshot object with the given UUID.</desc>
|
---|
5010 | </param>
|
---|
5011 | </method>
|
---|
5012 |
|
---|
5013 | <method name="findSnapshot">
|
---|
5014 | <desc>
|
---|
5015 | Returns a snapshot of this machine with the given name.
|
---|
5016 |
|
---|
5017 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5018 | Virtual machine has no snapshots or snapshot not found.
|
---|
5019 | </result>
|
---|
5020 |
|
---|
5021 | </desc>
|
---|
5022 | <param name="name" type="wstring" dir="in">
|
---|
5023 | <desc>Name of the snapshot to find</desc>
|
---|
5024 | </param>
|
---|
5025 | <param name="snapshot" type="ISnapshot" dir="return">
|
---|
5026 | <desc>Snapshot object with the given name.</desc>
|
---|
5027 | </param>
|
---|
5028 | </method>
|
---|
5029 |
|
---|
5030 | <method name="setCurrentSnapshot">
|
---|
5031 | <desc>
|
---|
5032 | Sets the current snapshot of this machine.
|
---|
5033 | <note>
|
---|
5034 | In the current implementation, this operation is not
|
---|
5035 | implemented.
|
---|
5036 | </note>
|
---|
5037 | </desc>
|
---|
5038 | <param name="id" type="wstring" dir="in">
|
---|
5039 | <desc>UUID of the snapshot to set as the current snapshot.</desc>
|
---|
5040 | </param>
|
---|
5041 | </method>
|
---|
5042 |
|
---|
5043 | <method name="createSharedFolder">
|
---|
5044 | <desc>
|
---|
5045 | Creates a new permanent shared folder by associating the given logical
|
---|
5046 | name with the given host path, adds it to the collection of shared
|
---|
5047 | folders and starts sharing it. Refer to the description of
|
---|
5048 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
5049 |
|
---|
5050 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
5051 | Shared folder already exists.
|
---|
5052 | </result>
|
---|
5053 | <result name="VBOX_E_FILE_ERROR">
|
---|
5054 | Shared folder @a hostPath not accessible.
|
---|
5055 | </result>
|
---|
5056 |
|
---|
5057 | </desc>
|
---|
5058 | <param name="name" type="wstring" dir="in">
|
---|
5059 | <desc>Unique logical name of the shared folder.</desc>
|
---|
5060 | </param>
|
---|
5061 | <param name="hostPath" type="wstring" dir="in">
|
---|
5062 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
5063 | </param>
|
---|
5064 | <param name="writable" type="boolean" dir="in">
|
---|
5065 | <desc>Whether the share is writable or readonly</desc>
|
---|
5066 | </param>
|
---|
5067 | </method>
|
---|
5068 |
|
---|
5069 | <method name="removeSharedFolder">
|
---|
5070 | <desc>
|
---|
5071 | Removes the permanent shared folder with the given name previously
|
---|
5072 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
5073 | shared folders and stops sharing it.
|
---|
5074 |
|
---|
5075 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5076 | Virtual machine is not mutable.
|
---|
5077 | </result>
|
---|
5078 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
5079 | Shared folder @a name does not exist.
|
---|
5080 | </result>
|
---|
5081 |
|
---|
5082 | </desc>
|
---|
5083 | <param name="name" type="wstring" dir="in">
|
---|
5084 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
5085 | </param>
|
---|
5086 | </method>
|
---|
5087 |
|
---|
5088 | <method name="canShowConsoleWindow">
|
---|
5089 | <desc>
|
---|
5090 | Returns @c true if the VM console process can activate the
|
---|
5091 | console window and bring it to foreground on the desktop of
|
---|
5092 | the host PC.
|
---|
5093 | <note>
|
---|
5094 | This method will fail if a session for this machine is not
|
---|
5095 | currently open.
|
---|
5096 | </note>
|
---|
5097 |
|
---|
5098 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5099 | Machine session is not open.
|
---|
5100 | </result>
|
---|
5101 |
|
---|
5102 | </desc>
|
---|
5103 | <param name="canShow" type="boolean" dir="return">
|
---|
5104 | <desc>
|
---|
5105 | @c true if the console window can be shown and @c false otherwise.
|
---|
5106 | </desc>
|
---|
5107 | </param>
|
---|
5108 | </method>
|
---|
5109 |
|
---|
5110 | <method name="showConsoleWindow">
|
---|
5111 | <desc>
|
---|
5112 | Activates the console window and brings it to foreground on
|
---|
5113 | the desktop of the host PC. Many modern window managers on
|
---|
5114 | many platforms implement some sort of focus stealing
|
---|
5115 | prevention logic, so that it may be impossible to activate
|
---|
5116 | a window without the help of the currently active
|
---|
5117 | application. In this case, this method will return a non-zero
|
---|
5118 | identifier that represents the top-level window of the VM
|
---|
5119 | console process. The caller, if it represents a currently
|
---|
5120 | active process, is responsible to use this identifier (in a
|
---|
5121 | platform-dependent manner) to perform actual window
|
---|
5122 | activation.
|
---|
5123 | <note>
|
---|
5124 | This method will fail if a session for this machine is not
|
---|
5125 | currently open.
|
---|
5126 | </note>
|
---|
5127 |
|
---|
5128 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5129 | Machine session is not open.
|
---|
5130 | </result>
|
---|
5131 |
|
---|
5132 | </desc>
|
---|
5133 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5134 | <desc>
|
---|
5135 | Platform-dependent identifier of the top-level VM console
|
---|
5136 | window, or zero if this method has performed all actions
|
---|
5137 | necessary to implement the <i>show window</i> semantics for
|
---|
5138 | the given platform and/or VirtualBox front-end.
|
---|
5139 | </desc>
|
---|
5140 | </param>
|
---|
5141 | </method>
|
---|
5142 |
|
---|
5143 | <method name="getGuestProperty">
|
---|
5144 | <desc>
|
---|
5145 | Reads an entry from the machine's guest property store.
|
---|
5146 |
|
---|
5147 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5148 | Machine session is not open.
|
---|
5149 | </result>
|
---|
5150 |
|
---|
5151 | </desc>
|
---|
5152 | <param name="name" type="wstring" dir="in">
|
---|
5153 | <desc>
|
---|
5154 | The name of the property to read.
|
---|
5155 | </desc>
|
---|
5156 | </param>
|
---|
5157 | <param name="value" type="wstring" dir="out">
|
---|
5158 | <desc>
|
---|
5159 | The value of the property. If the property does not exist then this
|
---|
5160 | will be empty.
|
---|
5161 | </desc>
|
---|
5162 | </param>
|
---|
5163 | <param name="timestamp" type="unsigned long long" dir="out">
|
---|
5164 | <desc>
|
---|
5165 | The time at which the property was last modified, as seen by the
|
---|
5166 | server process.
|
---|
5167 | </desc>
|
---|
5168 | </param>
|
---|
5169 | <param name="flags" type="wstring" dir="out">
|
---|
5170 | <desc>
|
---|
5171 | Additional property parameters, passed as a comma-separated list of
|
---|
5172 | "name=value" type entries.
|
---|
5173 | </desc>
|
---|
5174 | </param>
|
---|
5175 | </method>
|
---|
5176 |
|
---|
5177 | <method name="getGuestPropertyValue">
|
---|
5178 | <desc>
|
---|
5179 | Reads a value from the machine's guest property store.
|
---|
5180 |
|
---|
5181 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5182 | Machine session is not open.
|
---|
5183 | </result>
|
---|
5184 |
|
---|
5185 | </desc>
|
---|
5186 | <param name="property" type="wstring" dir="in">
|
---|
5187 | <desc>
|
---|
5188 | The name of the property to read.
|
---|
5189 | </desc>
|
---|
5190 | </param>
|
---|
5191 | <param name="value" type="wstring" dir="return">
|
---|
5192 | <desc>
|
---|
5193 | The value of the property. If the property does not exist then this
|
---|
5194 | will be empty.
|
---|
5195 | </desc>
|
---|
5196 | </param>
|
---|
5197 | </method>
|
---|
5198 |
|
---|
5199 | <method name="getGuestPropertyTimestamp">
|
---|
5200 | <desc>
|
---|
5201 | Reads a property timestamp from the machine's guest property store.
|
---|
5202 |
|
---|
5203 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5204 | Machine session is not open.
|
---|
5205 | </result>
|
---|
5206 |
|
---|
5207 | </desc>
|
---|
5208 | <param name="property" type="wstring" dir="in">
|
---|
5209 | <desc>
|
---|
5210 | The name of the property to read.
|
---|
5211 | </desc>
|
---|
5212 | </param>
|
---|
5213 | <param name="value" type="unsigned long long" dir="return">
|
---|
5214 | <desc>
|
---|
5215 | The timestamp. If the property does not exist then this will be
|
---|
5216 | empty.
|
---|
5217 | </desc>
|
---|
5218 | </param>
|
---|
5219 | </method>
|
---|
5220 |
|
---|
5221 | <method name="setGuestProperty">
|
---|
5222 | <desc>
|
---|
5223 | Sets, changes or deletes an entry in the machine's guest property
|
---|
5224 | store.
|
---|
5225 |
|
---|
5226 | <result name="E_ACCESSDENIED">
|
---|
5227 | Property cannot be changed.
|
---|
5228 | </result>
|
---|
5229 | <result name="E_INVALIDARG">
|
---|
5230 | Invalid @a flags.
|
---|
5231 | </result>
|
---|
5232 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5233 | Virtual machine is not mutable or session not open.
|
---|
5234 | </result>
|
---|
5235 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5236 | Cannot set transient property when machine not running.
|
---|
5237 | </result>
|
---|
5238 |
|
---|
5239 | </desc>
|
---|
5240 | <param name="property" type="wstring" dir="in">
|
---|
5241 | <desc>
|
---|
5242 | The name of the property to set, change or delete.
|
---|
5243 | </desc>
|
---|
5244 | </param>
|
---|
5245 | <param name="value" type="wstring" dir="in">
|
---|
5246 | <desc>
|
---|
5247 | The new value of the property to set, change or delete. If the
|
---|
5248 | property does not yet exist and value is non-empty, it will be
|
---|
5249 | created. If the value is @c null or empty, the property will be
|
---|
5250 | deleted if it exists.
|
---|
5251 | </desc>
|
---|
5252 | </param>
|
---|
5253 | <param name="flags" type="wstring" dir="in">
|
---|
5254 | <desc>
|
---|
5255 | Additional property parameters, passed as a comma-separated list of
|
---|
5256 | "name=value" type entries.
|
---|
5257 | </desc>
|
---|
5258 | </param>
|
---|
5259 | </method>
|
---|
5260 |
|
---|
5261 | <method name="setGuestPropertyValue">
|
---|
5262 | <desc>
|
---|
5263 | Sets, changes or deletes a value in the machine's guest property
|
---|
5264 | store. The flags field will be left unchanged or created empty for a
|
---|
5265 | new property.
|
---|
5266 |
|
---|
5267 | <result name="E_ACCESSDENIED">
|
---|
5268 | Property cannot be changed.
|
---|
5269 | </result>
|
---|
5270 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5271 | Virtual machine is not mutable or session not open.
|
---|
5272 | </result>
|
---|
5273 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
5274 | Cannot set transient property when machine not running.
|
---|
5275 | </result>
|
---|
5276 | </desc>
|
---|
5277 |
|
---|
5278 | <param name="property" type="wstring" dir="in">
|
---|
5279 | <desc>
|
---|
5280 | The name of the property to set, change or delete.
|
---|
5281 | </desc>
|
---|
5282 | </param>
|
---|
5283 | <param name="value" type="wstring" dir="in">
|
---|
5284 | <desc>
|
---|
5285 | The new value of the property to set, change or delete. If the
|
---|
5286 | property does not yet exist and value is non-empty, it will be
|
---|
5287 | created. If the value is @c null or empty, the property will be
|
---|
5288 | deleted if it exists.
|
---|
5289 | </desc>
|
---|
5290 | </param>
|
---|
5291 | </method>
|
---|
5292 |
|
---|
5293 | <method name="enumerateGuestProperties">
|
---|
5294 | <desc>
|
---|
5295 | Return a list of the guest properties matching a set of patterns along
|
---|
5296 | with their values, time stamps and flags.
|
---|
5297 | </desc>
|
---|
5298 | <param name="patterns" type="wstring" dir="in">
|
---|
5299 | <desc>
|
---|
5300 | The patterns to match the properties against, separated by '|'
|
---|
5301 | characters. If this is empty or @c null, all properties will match.
|
---|
5302 | </desc>
|
---|
5303 | </param>
|
---|
5304 | <param name="name" type="wstring" dir="out" safearray="yes">
|
---|
5305 | <desc>
|
---|
5306 | The names of the properties returned.
|
---|
5307 | </desc>
|
---|
5308 | </param>
|
---|
5309 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
5310 | <desc>
|
---|
5311 | The values of the properties returned. The array entries match the
|
---|
5312 | corresponding entries in the @a name array.
|
---|
5313 | </desc>
|
---|
5314 | </param>
|
---|
5315 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
5316 | <desc>
|
---|
5317 | The time stamps of the properties returned. The array entries match
|
---|
5318 | the corresponding entries in the @a name array.
|
---|
5319 | </desc>
|
---|
5320 | </param>
|
---|
5321 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
5322 | <desc>
|
---|
5323 | The flags of the properties returned. The array entries match the
|
---|
5324 | corresponding entries in the @a name array.
|
---|
5325 | </desc>
|
---|
5326 | </param>
|
---|
5327 | </method>
|
---|
5328 | </interface>
|
---|
5329 |
|
---|
5330 | <!--
|
---|
5331 | // IConsole
|
---|
5332 | /////////////////////////////////////////////////////////////////////////
|
---|
5333 | -->
|
---|
5334 |
|
---|
5335 | <interface
|
---|
5336 | name="IConsoleCallback" extends="$unknown"
|
---|
5337 | uuid="13dfbef3-b74d-487d-bada-2304529aefa6"
|
---|
5338 | wsmap="suppress"
|
---|
5339 | >
|
---|
5340 |
|
---|
5341 | <desc>
|
---|
5342 | This interface is used by a client of the Main API that need to
|
---|
5343 | be notified of events. For example, a graphical user interface
|
---|
5344 | can use this to learn about machine state changes so they can
|
---|
5345 | update the list of virtual machines without having to rely
|
---|
5346 | on polling.
|
---|
5347 |
|
---|
5348 | Whenever relevant events occur in VirtualBox, the callbacks in
|
---|
5349 | objects of this interface are called. In order for this to be
|
---|
5350 | useful, a client needs to create its own subclass that implements
|
---|
5351 | this interface in which the methods for the relevant callbacks
|
---|
5352 | are overridden. An instance of this subclass interface can then
|
---|
5353 | be passed to <link to="IConsole::registerCallback" />.
|
---|
5354 | </desc>
|
---|
5355 |
|
---|
5356 | <method name="onMousePointerShapeChange">
|
---|
5357 | <desc>
|
---|
5358 | Notification when the guest mouse pointer shape has
|
---|
5359 | changed. The new shape data is given.
|
---|
5360 | </desc>
|
---|
5361 | <param name="visible" type="boolean" dir="in">
|
---|
5362 | <desc>
|
---|
5363 | Flag whether the pointer is visible.
|
---|
5364 | </desc>
|
---|
5365 | </param>
|
---|
5366 | <param name="alpha" type="boolean" dir="in">
|
---|
5367 | <desc>
|
---|
5368 | Flag whether the pointer has an alpha channel.
|
---|
5369 | </desc>
|
---|
5370 | </param>
|
---|
5371 | <param name="xHot" type="unsigned long" dir="in">
|
---|
5372 | <desc>
|
---|
5373 | The pointer hot spot x coordinate.
|
---|
5374 | </desc>
|
---|
5375 | </param>
|
---|
5376 | <param name="yHot" type="unsigned long" dir="in">
|
---|
5377 | <desc>
|
---|
5378 | The pointer hot spot y coordinate.
|
---|
5379 | </desc>
|
---|
5380 | </param>
|
---|
5381 | <param name="width" type="unsigned long" dir="in">
|
---|
5382 | <desc>
|
---|
5383 | Width of the pointer shape in pixels.
|
---|
5384 | </desc>
|
---|
5385 | </param>
|
---|
5386 | <param name="height" type="unsigned long" dir="in">
|
---|
5387 | <desc>
|
---|
5388 | Height of the pointer shape in pixels.
|
---|
5389 | </desc>
|
---|
5390 | </param>
|
---|
5391 | <param name="shape" type="octet" mod="ptr" dir="in">
|
---|
5392 | <desc>
|
---|
5393 | Address of the shape buffer.
|
---|
5394 |
|
---|
5395 | The @a shape buffer contains a 1-bpp (bits per pixel) AND mask
|
---|
5396 | followed by a 32-bpp XOR (color) mask.
|
---|
5397 |
|
---|
5398 | For pointers without alpha channel the XOR mask pixels are 32
|
---|
5399 | bit values: (lsb)BGR0(msb). For pointers with alpha channel
|
---|
5400 | the XOR mask consists of (lsb)BGRA(msb) 32 bit values.
|
---|
5401 |
|
---|
5402 | An AND mask is used for pointers with alpha channel, so if the
|
---|
5403 | callback does not support alpha, the pointer could be
|
---|
5404 | displayed as a normal color pointer.
|
---|
5405 |
|
---|
5406 | The AND mask is a 1-bpp bitmap with byte aligned scanlines. The
|
---|
5407 | size of the AND mask therefore is <tt>cbAnd = (width + 7) / 8 *
|
---|
5408 | height</tt>. The padding bits at the end of each scanline are
|
---|
5409 | undefined.
|
---|
5410 |
|
---|
5411 | The XOR mask follows the AND mask on the next 4-byte aligned
|
---|
5412 | offset: <tt>uint8_t *pXor = pAnd + (cbAnd + 3) & ~3</tt>.
|
---|
5413 | Bytes in the gap between the AND and the XOR mask are undefined.
|
---|
5414 | The XOR mask scanlines have no gap between them and the size of
|
---|
5415 | the XOR mask is: <tt>cXor = width * 4 * height</tt>.
|
---|
5416 |
|
---|
5417 | <note>
|
---|
5418 | If @a shape is 0, only the pointer visibility is changed.
|
---|
5419 | </note>
|
---|
5420 | </desc>
|
---|
5421 | </param>
|
---|
5422 | </method>
|
---|
5423 |
|
---|
5424 | <method name="onMouseCapabilityChange">
|
---|
5425 | <desc>
|
---|
5426 | Notification when the mouse capabilities reported by the
|
---|
5427 | guest have changed. The new capabilities are passed.
|
---|
5428 | </desc>
|
---|
5429 | <param name="supportsAbsolute" type="boolean" dir="in"/>
|
---|
5430 | <param name="needsHostCursor" type="boolean" dir="in"/>
|
---|
5431 | </method>
|
---|
5432 |
|
---|
5433 | <method name="onKeyboardLedsChange">
|
---|
5434 | <desc>
|
---|
5435 | Notification when the guest OS executes the KBD_CMD_SET_LEDS command
|
---|
5436 | to alter the state of the keyboard LEDs.
|
---|
5437 | </desc>
|
---|
5438 | <param name="numLock" type="boolean" dir="in"/>
|
---|
5439 | <param name="capsLock" type="boolean" dir="in"/>
|
---|
5440 | <param name="scrollLock" type="boolean" dir="in"/>
|
---|
5441 | </method>
|
---|
5442 |
|
---|
5443 | <method name="onStateChange">
|
---|
5444 | <desc>
|
---|
5445 | Notification when the execution state of the machine has changed.
|
---|
5446 | The new state will be given.
|
---|
5447 | </desc>
|
---|
5448 | <param name="state" type="MachineState" dir="in"/>
|
---|
5449 | </method>
|
---|
5450 |
|
---|
5451 | <method name="onAdditionsStateChange">
|
---|
5452 | <desc>
|
---|
5453 | Notification when a Guest Additions property changes.
|
---|
5454 | Interested callees should query IGuest attributes to
|
---|
5455 | find out what has changed.
|
---|
5456 | </desc>
|
---|
5457 | </method>
|
---|
5458 |
|
---|
5459 | <method name="onDVDDriveChange">
|
---|
5460 | <desc>
|
---|
5461 | Notification when a property of the
|
---|
5462 | virtual <link to="IMachine::DVDDrive">DVD drive</link> changes.
|
---|
5463 | Interested callees should use IDVDDrive methods to find out what has
|
---|
5464 | changed.
|
---|
5465 | </desc>
|
---|
5466 | </method>
|
---|
5467 |
|
---|
5468 | <method name="onFloppyDriveChange">
|
---|
5469 | <desc>
|
---|
5470 | Notification when a property of the
|
---|
5471 | virtual <link to="IMachine::floppyDrive">floppy drive</link> changes.
|
---|
5472 | Interested callees should use IFloppyDrive methods to find out what
|
---|
5473 | has changed.
|
---|
5474 | </desc>
|
---|
5475 | </method>
|
---|
5476 |
|
---|
5477 | <method name="onNetworkAdapterChange">
|
---|
5478 | <desc>
|
---|
5479 | Notification when a property of one of the
|
---|
5480 | virtual <link to="IMachine::getNetworkAdapter">network adapters</link>
|
---|
5481 | changes. Interested callees should use INetworkAdapter methods and
|
---|
5482 | attributes to find out what has changed.
|
---|
5483 | </desc>
|
---|
5484 | <param name="networkAdapter" type="INetworkAdapter" dir="in">
|
---|
5485 | <desc>Network adapter that is subject to change.</desc>
|
---|
5486 | </param>
|
---|
5487 | </method>
|
---|
5488 |
|
---|
5489 | <method name="onSerialPortChange">
|
---|
5490 | <desc>
|
---|
5491 | Notification when a property of one of the
|
---|
5492 | virtual <link to="IMachine::getSerialPort">serial ports</link> changes.
|
---|
5493 | Interested callees should use ISerialPort methods and attributes
|
---|
5494 | to find out what has changed.
|
---|
5495 | </desc>
|
---|
5496 | <param name="serialPort" type="ISerialPort" dir="in">
|
---|
5497 | <desc>Serial port that is subject to change.</desc>
|
---|
5498 | </param>
|
---|
5499 | </method>
|
---|
5500 |
|
---|
5501 | <method name="onParallelPortChange">
|
---|
5502 | <desc>
|
---|
5503 | Notification when a property of one of the
|
---|
5504 | virtual <link to="IMachine::getParallelPort">parallel ports</link>
|
---|
5505 | changes. Interested callees should use ISerialPort methods and
|
---|
5506 | attributes to find out what has changed.
|
---|
5507 | </desc>
|
---|
5508 | <param name="parallelPort" type="IParallelPort" dir="in">
|
---|
5509 | <desc>Parallel port that is subject to change.</desc>
|
---|
5510 | </param>
|
---|
5511 | </method>
|
---|
5512 |
|
---|
5513 | <method name="onStorageControllerChange">
|
---|
5514 | <desc>
|
---|
5515 | Notification when a property of one of the
|
---|
5516 | virtual <link to="IMachine::storageControllers">storage controllers</link>
|
---|
5517 | changes. Interested callees should query the corresponding collections
|
---|
5518 | to find out what has changed.
|
---|
5519 | </desc>
|
---|
5520 | </method>
|
---|
5521 |
|
---|
5522 | <method name="onVRDPServerChange">
|
---|
5523 | <desc>
|
---|
5524 | Notification when a property of the
|
---|
5525 | <link to="IMachine::VRDPServer">VRDP server</link> changes.
|
---|
5526 | Interested callees should use IVRDPServer methods and attributes to
|
---|
5527 | find out what has changed.
|
---|
5528 | </desc>
|
---|
5529 | </method>
|
---|
5530 |
|
---|
5531 | <method name="onUSBControllerChange">
|
---|
5532 | <desc>
|
---|
5533 | Notification when a property of the virtual
|
---|
5534 | <link to="IMachine::USBController">USB controller</link> changes.
|
---|
5535 | Interested callees should use IUSBController methods and attributes to
|
---|
5536 | find out what has changed.
|
---|
5537 | </desc>
|
---|
5538 | </method>
|
---|
5539 |
|
---|
5540 | <method name="onUSBDeviceStateChange">
|
---|
5541 | <desc>
|
---|
5542 | Notification when a USB device is attached to or detached from
|
---|
5543 | the virtual USB controller.
|
---|
5544 |
|
---|
5545 | This notification is sent as a result of the indirect
|
---|
5546 | request to attach the device because it matches one of the
|
---|
5547 | machine USB filters, or as a result of the direct request
|
---|
5548 | issued by <link to="IConsole::attachUSBDevice"/> or
|
---|
5549 | <link to="IConsole::detachUSBDevice"/>.
|
---|
5550 |
|
---|
5551 | This notification is sent in case of both a succeeded and a
|
---|
5552 | failed request completion. When the request succeeds, the
|
---|
5553 | @a error parameter is @c null, and the given device has been
|
---|
5554 | already added to (when @a attached is @c true) or removed from
|
---|
5555 | (when @a attached is @c false) the collection represented by
|
---|
5556 | <link to="IConsole::USBDevices"/>. On failure, the collection
|
---|
5557 | doesn't change and the @a error parameter represents the error
|
---|
5558 | message describing the failure.
|
---|
5559 |
|
---|
5560 | </desc>
|
---|
5561 | <param name="device" type="IUSBDevice" dir="in">
|
---|
5562 | <desc>Device that is subject to state change.</desc>
|
---|
5563 | </param>
|
---|
5564 | <param name="attached" type="boolean" dir="in">
|
---|
5565 | <desc>
|
---|
5566 | @c true if the device was attached and @c false otherwise.
|
---|
5567 | </desc>
|
---|
5568 | </param>
|
---|
5569 | <param name="error" type="IVirtualBoxErrorInfo" dir="in">
|
---|
5570 | <desc>
|
---|
5571 | @c null on success or an error message object on failure.
|
---|
5572 | </desc>
|
---|
5573 | </param>
|
---|
5574 | </method>
|
---|
5575 |
|
---|
5576 | <method name="onSharedFolderChange">
|
---|
5577 | <desc>
|
---|
5578 | Notification when a shared folder is added or removed.
|
---|
5579 | The @a scope argument defines one of three scopes:
|
---|
5580 | <link to="IVirtualBox::sharedFolders">global shared folders</link>
|
---|
5581 | (<link to="Scope_Global">Global</link>),
|
---|
5582 | <link to="IMachine::sharedFolders">permanent shared folders</link> of
|
---|
5583 | the machine (<link to="Scope_Machine">Machine</link>) or <link
|
---|
5584 | to="IConsole::sharedFolders">transient shared folders</link> of the
|
---|
5585 | machine (<link to="Scope_Session">Session</link>). Interested callees
|
---|
5586 | should use query the corresponding collections to find out what has
|
---|
5587 | changed.
|
---|
5588 | </desc>
|
---|
5589 | <param name="scope" type="Scope" dir="in">
|
---|
5590 | <desc>Scope of the notification.</desc>
|
---|
5591 | </param>
|
---|
5592 | </method>
|
---|
5593 |
|
---|
5594 | <method name="onRuntimeError">
|
---|
5595 | <desc>
|
---|
5596 | Notification when an error happens during the virtual
|
---|
5597 | machine execution.
|
---|
5598 |
|
---|
5599 | There are three kinds of runtime errors:
|
---|
5600 | <ul>
|
---|
5601 | <li><i>fatal</i></li>
|
---|
5602 | <li><i>non-fatal with retry</i></li>
|
---|
5603 | <li><i>non-fatal warnings</i></li>
|
---|
5604 | </ul>
|
---|
5605 |
|
---|
5606 | <b>Fatal</b> errors are indicated by the @a fatal parameter set
|
---|
5607 | to @c true. In case of fatal errors, the virtual machine
|
---|
5608 | execution is always paused before calling this notification, and
|
---|
5609 | the notification handler is supposed either to immediately save
|
---|
5610 | the virtual machine state using <link to="IConsole::saveState"/>
|
---|
5611 | or power it off using <link to="IConsole::powerDown"/>.
|
---|
5612 | Resuming the execution can lead to unpredictable results.
|
---|
5613 |
|
---|
5614 | <b>Non-fatal</b> errors and warnings are indicated by the
|
---|
5615 | @a fatal parameter set to @c false. If the virtual machine
|
---|
5616 | is in the Paused state by the time the error notification is
|
---|
5617 | received, it means that the user can <i>try to resume</i> the machine
|
---|
5618 | execution after attempting to solve the problem that caused the
|
---|
5619 | error. In this case, the notification handler is supposed
|
---|
5620 | to show an appropriate message to the user (depending on the
|
---|
5621 | value of the @a id parameter) that offers several actions such
|
---|
5622 | as <i>Retry</i>, <i>Save</i> or <i>Power Off</i>. If the user
|
---|
5623 | wants to retry, the notification handler should continue
|
---|
5624 | the machine execution using the <link to="IConsole::resume"/>
|
---|
5625 | call. If the machine execution is not Paused during this
|
---|
5626 | notification, then it means this notification is a <i>warning</i>
|
---|
5627 | (for example, about a fatal condition that can happen very soon);
|
---|
5628 | no immediate action is required from the user, the machine
|
---|
5629 | continues its normal execution.
|
---|
5630 |
|
---|
5631 | Note that in either case the notification handler
|
---|
5632 | <b>must not</b> perform any action directly on a thread
|
---|
5633 | where this notification is called. Everything it is allowed to
|
---|
5634 | do is to post a message to another thread that will then talk
|
---|
5635 | to the user and take the corresponding action.
|
---|
5636 |
|
---|
5637 | Currently, the following error identifiers are known:
|
---|
5638 | <ul>
|
---|
5639 | <li><tt>"HostMemoryLow"</tt></li>
|
---|
5640 | <li><tt>"HostAudioNotResponding"</tt></li>
|
---|
5641 | <li><tt>"VDIStorageFull"</tt></li>
|
---|
5642 | <li><tt>"3DSupportIncompatibleAdditions"</tt></li>
|
---|
5643 | </ul>
|
---|
5644 |
|
---|
5645 | <note>
|
---|
5646 | This notification is not designed to be implemented by
|
---|
5647 | more than one callback at a time. If you have multiple
|
---|
5648 | IConsoleCallback instances registered on the given
|
---|
5649 | IConsole object, make sure you simply do nothing but
|
---|
5650 | return @c S_OK from all but one of them that does actual
|
---|
5651 | user notification and performs necessary actions.
|
---|
5652 | </note>
|
---|
5653 |
|
---|
5654 | </desc>
|
---|
5655 | <param name="fatal" type="boolean" dir="in">
|
---|
5656 | <desc>Whether the error is fatal or not</desc>
|
---|
5657 | </param>
|
---|
5658 | <param name="id" type="wstring" dir="in">
|
---|
5659 | <desc>Error identifier</desc>
|
---|
5660 | </param>
|
---|
5661 | <param name="message" type="wstring" dir="in">
|
---|
5662 | <desc>Optional error message</desc>
|
---|
5663 | </param>
|
---|
5664 | </method>
|
---|
5665 |
|
---|
5666 | <method name="onCanShowWindow">
|
---|
5667 | <desc>
|
---|
5668 | Notification when a call to
|
---|
5669 | <link to="IMachine::canShowConsoleWindow"/> is made by a
|
---|
5670 | front-end to check if a subsequent call to
|
---|
5671 | <link to="IMachine::showConsoleWindow"/> can succeed.
|
---|
5672 |
|
---|
5673 | The callee should give an answer appropriate to the current
|
---|
5674 | machine state in the @a canShow argument. This answer must
|
---|
5675 | remain valid at least until the next
|
---|
5676 | <link to="IConsole::state">machine state</link> change.
|
---|
5677 |
|
---|
5678 | <note>
|
---|
5679 | This notification is not designed to be implemented by
|
---|
5680 | more than one callback at a time. If you have multiple
|
---|
5681 | IConsoleCallback instances registered on the given
|
---|
5682 | IConsole object, make sure you simply do nothing but
|
---|
5683 | return @c true and @c S_OK from all but one of them that
|
---|
5684 | actually manages console window activation.
|
---|
5685 | </note>
|
---|
5686 | </desc>
|
---|
5687 | <param name="canShow" type="boolean" dir="return">
|
---|
5688 | <desc>
|
---|
5689 | @c true if the console window can be shown and @c false otherwise.
|
---|
5690 | </desc>
|
---|
5691 | </param>
|
---|
5692 | </method>
|
---|
5693 |
|
---|
5694 | <method name="onShowWindow">
|
---|
5695 | <desc>
|
---|
5696 | Notification when a call to
|
---|
5697 | <link to="IMachine::showConsoleWindow"/>
|
---|
5698 | requests the console window to be activated and brought to
|
---|
5699 | foreground on the desktop of the host PC.
|
---|
5700 |
|
---|
5701 | This notification should cause the VM console process to
|
---|
5702 | perform the requested action as described above. If it is
|
---|
5703 | impossible to do it at a time of this notification, this
|
---|
5704 | method should return a failure.
|
---|
5705 |
|
---|
5706 | Note that many modern window managers on many platforms
|
---|
5707 | implement some sort of focus stealing prevention logic, so
|
---|
5708 | that it may be impossible to activate a window without the
|
---|
5709 | help of the currently active application (which is supposedly
|
---|
5710 | an initiator of this notification). In this case, this method
|
---|
5711 | must return a non-zero identifier that represents the
|
---|
5712 | top-level window of the VM console process. The caller, if it
|
---|
5713 | represents a currently active process, is responsible to use
|
---|
5714 | this identifier (in a platform-dependent manner) to perform
|
---|
5715 | actual window activation.
|
---|
5716 |
|
---|
5717 | This method must set @a winId to zero if it has performed all
|
---|
5718 | actions necessary to complete the request and the console
|
---|
5719 | window is now active and in foreground, to indicate that no
|
---|
5720 | further action is required on the caller's side.
|
---|
5721 |
|
---|
5722 | <note>
|
---|
5723 | This notification is not designed to be implemented by
|
---|
5724 | more than one callback at a time. If you have multiple
|
---|
5725 | IConsoleCallback instances registered on the given
|
---|
5726 | IConsole object, make sure you simply do nothing but
|
---|
5727 | return @c S_OK from all but one of them that actually
|
---|
5728 | manages console window activation.
|
---|
5729 | </note>
|
---|
5730 | </desc>
|
---|
5731 | <param name="winId" type="unsigned long long" dir="return">
|
---|
5732 | <desc>
|
---|
5733 | Platform-dependent identifier of the top-level VM console
|
---|
5734 | window, or zero if this method has performed all actions
|
---|
5735 | necessary to implement the <i>show window</i> semantics for
|
---|
5736 | the given platform and/or this VirtualBox front-end.
|
---|
5737 | </desc>
|
---|
5738 | </param>
|
---|
5739 | </method>
|
---|
5740 |
|
---|
5741 | </interface>
|
---|
5742 |
|
---|
5743 | <interface
|
---|
5744 | name="IRemoteDisplayInfo" extends="$unknown"
|
---|
5745 | uuid="550104cd-2dfd-4a6c-857d-f6f8e088e62c"
|
---|
5746 | wsmap="struct"
|
---|
5747 | >
|
---|
5748 | <desc>
|
---|
5749 | Contains information about the remote display (VRDP) capabilities and status.
|
---|
5750 | This is used in the <link to="IConsole::remoteDisplayInfo" /> attribute.
|
---|
5751 | </desc>
|
---|
5752 |
|
---|
5753 | <attribute name="active" type="boolean" readonly="yes">
|
---|
5754 | <desc>
|
---|
5755 | Whether the remote display connection is active.
|
---|
5756 | </desc>
|
---|
5757 | </attribute>
|
---|
5758 |
|
---|
5759 | <attribute name="numberOfClients" type="unsigned long" readonly="yes">
|
---|
5760 | <desc>
|
---|
5761 | How many times a client connected.
|
---|
5762 | </desc>
|
---|
5763 | </attribute>
|
---|
5764 |
|
---|
5765 | <attribute name="beginTime" type="long long" readonly="yes">
|
---|
5766 | <desc>
|
---|
5767 | When the last connection was established, in milliseconds since 1970-01-01 UTC.
|
---|
5768 | </desc>
|
---|
5769 | </attribute>
|
---|
5770 |
|
---|
5771 | <attribute name="endTime" type="long long" readonly="yes">
|
---|
5772 | <desc>
|
---|
5773 | When the last connection was terminated or the current time, if
|
---|
5774 | connection is still active, in milliseconds since 1970-01-01 UTC.
|
---|
5775 | </desc>
|
---|
5776 | </attribute>
|
---|
5777 |
|
---|
5778 | <attribute name="bytesSent" type="unsigned long long" readonly="yes">
|
---|
5779 | <desc>
|
---|
5780 | How many bytes were sent in last or current, if still active, connection.
|
---|
5781 | </desc>
|
---|
5782 | </attribute>
|
---|
5783 |
|
---|
5784 | <attribute name="bytesSentTotal" type="unsigned long long" readonly="yes">
|
---|
5785 | <desc>
|
---|
5786 | How many bytes were sent in all connections.
|
---|
5787 | </desc>
|
---|
5788 | </attribute>
|
---|
5789 |
|
---|
5790 | <attribute name="bytesReceived" type="unsigned long long" readonly="yes">
|
---|
5791 | <desc>
|
---|
5792 | How many bytes were received in last or current, if still active, connection.
|
---|
5793 | </desc>
|
---|
5794 | </attribute>
|
---|
5795 |
|
---|
5796 | <attribute name="bytesReceivedTotal" type="unsigned long long" readonly="yes">
|
---|
5797 | <desc>
|
---|
5798 | How many bytes were received in all connections.
|
---|
5799 | </desc>
|
---|
5800 | </attribute>
|
---|
5801 |
|
---|
5802 | <attribute name="user" type="wstring" readonly="yes">
|
---|
5803 | <desc>
|
---|
5804 | Login user name supplied by the client.
|
---|
5805 | </desc>
|
---|
5806 | </attribute>
|
---|
5807 |
|
---|
5808 | <attribute name="domain" type="wstring" readonly="yes">
|
---|
5809 | <desc>
|
---|
5810 | Login domain name supplied by the client.
|
---|
5811 | </desc>
|
---|
5812 | </attribute>
|
---|
5813 |
|
---|
5814 | <attribute name="clientName" type="wstring" readonly="yes">
|
---|
5815 | <desc>
|
---|
5816 | The client name supplied by the client.
|
---|
5817 | </desc>
|
---|
5818 | </attribute>
|
---|
5819 |
|
---|
5820 | <attribute name="clientIP" type="wstring" readonly="yes">
|
---|
5821 | <desc>
|
---|
5822 | The IP address of the client.
|
---|
5823 | </desc>
|
---|
5824 | </attribute>
|
---|
5825 |
|
---|
5826 | <attribute name="clientVersion" type="unsigned long" readonly="yes">
|
---|
5827 | <desc>
|
---|
5828 | The client software version number.
|
---|
5829 | </desc>
|
---|
5830 | </attribute>
|
---|
5831 |
|
---|
5832 | <attribute name="encryptionStyle" type="unsigned long" readonly="yes">
|
---|
5833 | <desc>
|
---|
5834 | Public key exchange method used when connection was established.
|
---|
5835 | Values: 0 - RDP4 public key exchange scheme.
|
---|
5836 | 1 - X509 certificates were sent to client.
|
---|
5837 | </desc>
|
---|
5838 | </attribute>
|
---|
5839 |
|
---|
5840 | </interface>
|
---|
5841 |
|
---|
5842 | <interface
|
---|
5843 | name="IConsole" extends="$unknown"
|
---|
5844 | uuid="0a51994b-cbc6-4686-94eb-d4e4023280e2"
|
---|
5845 | wsmap="managed"
|
---|
5846 | >
|
---|
5847 | <desc>
|
---|
5848 | The IConsole interface represents an interface to control virtual
|
---|
5849 | machine execution.
|
---|
5850 |
|
---|
5851 | The console object that implements the IConsole interface is obtained
|
---|
5852 | from a session object after the session for the given machine has been
|
---|
5853 | opened using one of <link to="IVirtualBox::openSession"/>,
|
---|
5854 | <link to="IVirtualBox::openRemoteSession"/> or
|
---|
5855 | <link to="IVirtualBox::openExistingSession"/> methods.
|
---|
5856 |
|
---|
5857 | Methods of the IConsole interface allow the caller to query the current
|
---|
5858 | virtual machine execution state, pause the machine or power it down, save
|
---|
5859 | the machine state or take a snapshot, attach and detach removable media
|
---|
5860 | and so on.
|
---|
5861 |
|
---|
5862 | <see>ISession</see>
|
---|
5863 | </desc>
|
---|
5864 |
|
---|
5865 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
5866 | <desc>
|
---|
5867 | Machine object this console is sessioned with.
|
---|
5868 | <note>
|
---|
5869 | This is a convenience property, it has the same value as
|
---|
5870 | <link to="ISession::machine"/> of the corresponding session
|
---|
5871 | object.
|
---|
5872 | </note>
|
---|
5873 | </desc>
|
---|
5874 | </attribute>
|
---|
5875 |
|
---|
5876 | <attribute name="state" type="MachineState" readonly="yes">
|
---|
5877 | <desc>
|
---|
5878 | Current execution state of the machine.
|
---|
5879 | <note>
|
---|
5880 | This property always returns the same value as the corresponding
|
---|
5881 | property of the IMachine object this console is sessioned with.
|
---|
5882 | For the process that owns (executes) the VM, this is the
|
---|
5883 | preferable way of querying the VM state, because no IPC
|
---|
5884 | calls are made.
|
---|
5885 | </note>
|
---|
5886 | </desc>
|
---|
5887 | </attribute>
|
---|
5888 |
|
---|
5889 | <attribute name="guest" type="IGuest" readonly="yes">
|
---|
5890 | <desc>Guest object.</desc>
|
---|
5891 | </attribute>
|
---|
5892 |
|
---|
5893 | <attribute name="keyboard" type="IKeyboard" readonly="yes">
|
---|
5894 | <desc>
|
---|
5895 | Virtual keyboard object.
|
---|
5896 | <note>
|
---|
5897 | If the machine is not running, any attempt to use
|
---|
5898 | the returned object will result in an error.
|
---|
5899 | </note>
|
---|
5900 | </desc>
|
---|
5901 | </attribute>
|
---|
5902 |
|
---|
5903 | <attribute name="mouse" type="IMouse" readonly="yes">
|
---|
5904 | <desc>
|
---|
5905 | Virtual mouse object.
|
---|
5906 | <note>
|
---|
5907 | If the machine is not running, any attempt to use
|
---|
5908 | the returned object will result in an error.
|
---|
5909 | </note>
|
---|
5910 | </desc>
|
---|
5911 | </attribute>
|
---|
5912 |
|
---|
5913 | <attribute name="display" type="IDisplay" readonly="yes">
|
---|
5914 | <desc>Virtual display object.
|
---|
5915 | <note>
|
---|
5916 | If the machine is not running, any attempt to use
|
---|
5917 | the returned object will result in an error.
|
---|
5918 | </note>
|
---|
5919 | </desc>
|
---|
5920 | </attribute>
|
---|
5921 |
|
---|
5922 | <attribute name="debugger" type="IMachineDebugger" readonly="yes">
|
---|
5923 | <desc>Debugging interface.</desc>
|
---|
5924 | </attribute>
|
---|
5925 |
|
---|
5926 | <attribute name="USBDevices" type="IUSBDevice" readonly="yes" safearray="yes">
|
---|
5927 | <desc>
|
---|
5928 | Collection of USB devices currently attached to the virtual
|
---|
5929 | USB controller.
|
---|
5930 | <note>
|
---|
5931 | The collection is empty if the machine is not running.
|
---|
5932 | </note>
|
---|
5933 | </desc>
|
---|
5934 | </attribute>
|
---|
5935 |
|
---|
5936 | <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
5937 | <desc>
|
---|
5938 | List of USB devices currently attached to the remote VRDP client.
|
---|
5939 | Once a new device is physically attached to the remote host computer,
|
---|
5940 | it appears in this list and remains there until detached.
|
---|
5941 | </desc>
|
---|
5942 | </attribute>
|
---|
5943 |
|
---|
5944 | <attribute name="sharedFolders" type="ISharedFolder" readonly="yes" safearray="yes">
|
---|
5945 | <desc>
|
---|
5946 | Collection of shared folders for the current session. These folders
|
---|
5947 | are called transient shared folders because they are available to the
|
---|
5948 | guest OS running inside the associated virtual machine only for the
|
---|
5949 | duration of the session (as opposed to
|
---|
5950 | <link to="IMachine::sharedFolders"/> which represent permanent shared
|
---|
5951 | folders). When the session is closed (e.g. the machine is powered down),
|
---|
5952 | these folders are automatically discarded.
|
---|
5953 |
|
---|
5954 | New shared folders are added to the collection using
|
---|
5955 | <link to="#createSharedFolder"/>. Existing shared folders can be
|
---|
5956 | removed using <link to="#removeSharedFolder"/>.
|
---|
5957 | </desc>
|
---|
5958 | </attribute>
|
---|
5959 |
|
---|
5960 | <attribute name="remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">
|
---|
5961 | <desc>
|
---|
5962 | Interface that provides information on Remote Display (VRDP) connection.
|
---|
5963 | </desc>
|
---|
5964 | </attribute>
|
---|
5965 |
|
---|
5966 | <method name="powerUp">
|
---|
5967 | <desc>
|
---|
5968 | Starts the virtual machine execution using the current machine
|
---|
5969 | state (that is, its current execution state, current settings and
|
---|
5970 | current hard disks).
|
---|
5971 |
|
---|
5972 | If the machine is powered off or aborted, the execution will
|
---|
5973 | start from the beginning (as if the real hardware were just
|
---|
5974 | powered on).
|
---|
5975 |
|
---|
5976 | If the machine is in the <link to="MachineState_Saved"/> state,
|
---|
5977 | it will continue its execution the point where the state has
|
---|
5978 | been saved.
|
---|
5979 |
|
---|
5980 | <note>
|
---|
5981 | Unless you are trying to write a new VirtualBox front-end that
|
---|
5982 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
5983 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
5984 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
5985 | session only to change virtual machine settings. If you simply want to
|
---|
5986 | start virtual machine execution using one of the existing front-ends
|
---|
5987 | (for example the VirtualBox GUI or headless server), simply use
|
---|
5988 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends will
|
---|
5989 | power up the machine automatically for you.
|
---|
5990 | </note>
|
---|
5991 |
|
---|
5992 | <see>#saveState</see>
|
---|
5993 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
5994 | Virtual machine already running.
|
---|
5995 | </result>
|
---|
5996 | <result name="VBOX_E_HOST_ERROR">
|
---|
5997 | Host interface does not exist or name not set.
|
---|
5998 | </result>
|
---|
5999 | <result name="VBOX_E_FILE_ERROR">
|
---|
6000 | Invalid saved state file.
|
---|
6001 | </result>
|
---|
6002 | </desc>
|
---|
6003 | <param name="progress" type="IProgress" dir="return">
|
---|
6004 | <desc>Progress object to track the operation completion.</desc>
|
---|
6005 | </param>
|
---|
6006 | </method>
|
---|
6007 |
|
---|
6008 | <method name="powerUpPaused">
|
---|
6009 | <desc>
|
---|
6010 | Identical to powerUp except that the VM will enter the
|
---|
6011 | <link to="MachineState_Paused"/> state, instead of
|
---|
6012 | <link to="MachineState_Running"/>.
|
---|
6013 |
|
---|
6014 | <see>#powerUp</see>
|
---|
6015 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6016 | Virtual machine already running.
|
---|
6017 | </result>
|
---|
6018 | <result name="VBOX_E_HOST_ERROR">
|
---|
6019 | Host interface does not exist or name not set.
|
---|
6020 | </result>
|
---|
6021 | <result name="VBOX_E_FILE_ERROR">
|
---|
6022 | Invalid saved state file.
|
---|
6023 | </result>
|
---|
6024 | </desc>
|
---|
6025 | <param name="progress" type="IProgress" dir="return">
|
---|
6026 | <desc>Progress object to track the operation completion.</desc>
|
---|
6027 | </param>
|
---|
6028 | </method>
|
---|
6029 |
|
---|
6030 | <method name="powerDown">
|
---|
6031 | <desc>
|
---|
6032 | Initiates the power down procedure to stop the virtual machine
|
---|
6033 | execution.
|
---|
6034 |
|
---|
6035 | The completion of the power down procedure is tracked using the returned
|
---|
6036 | IProgress object. After the operation is complete, the machine will go
|
---|
6037 | to the PoweredOff state.
|
---|
6038 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6039 | Virtual machine must be Running, Paused or Stuck to be powered down.
|
---|
6040 | </result>
|
---|
6041 | </desc>
|
---|
6042 | <param name="progress" type="IProgress" dir="return">
|
---|
6043 | <desc>Progress object to track the operation completion.</desc>
|
---|
6044 | </param>
|
---|
6045 | </method>
|
---|
6046 |
|
---|
6047 | <method name="reset">
|
---|
6048 | <desc>Resets the virtual machine.
|
---|
6049 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6050 | Virtual machine not in Running state.
|
---|
6051 | </result>
|
---|
6052 | <result name="VBOX_E_VM_ERROR">
|
---|
6053 | Virtual machine error in reset operation.
|
---|
6054 | </result>
|
---|
6055 | </desc>
|
---|
6056 | </method>
|
---|
6057 |
|
---|
6058 | <method name="pause">
|
---|
6059 | <desc>Pauses the virtual machine execution.
|
---|
6060 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6061 | Virtual machine not in Running state.
|
---|
6062 | </result>
|
---|
6063 | <result name="VBOX_E_VM_ERROR">
|
---|
6064 | Virtual machine error in suspend operation.
|
---|
6065 | </result>
|
---|
6066 | </desc>
|
---|
6067 | </method>
|
---|
6068 |
|
---|
6069 | <method name="resume">
|
---|
6070 | <desc>Resumes the virtual machine execution.
|
---|
6071 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6072 | Virtual machine not in Paused state.
|
---|
6073 | </result>
|
---|
6074 | <result name="VBOX_E_VM_ERROR">
|
---|
6075 | Virtual machine error in resume operation.
|
---|
6076 | </result>
|
---|
6077 | </desc>
|
---|
6078 | </method>
|
---|
6079 |
|
---|
6080 | <method name="powerButton">
|
---|
6081 | <desc>Sends the ACPI power button event to the guest.
|
---|
6082 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6083 | Virtual machine not in Running state.
|
---|
6084 | </result>
|
---|
6085 | <result name="VBOX_E_PDM_ERROR">
|
---|
6086 | Controlled power off failed.
|
---|
6087 | </result>
|
---|
6088 | </desc>
|
---|
6089 | </method>
|
---|
6090 |
|
---|
6091 | <method name="sleepButton">
|
---|
6092 | <desc>Sends the ACPI sleep button event to the guest.
|
---|
6093 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6094 | Virtual machine not in Running state.
|
---|
6095 | </result>
|
---|
6096 | <result name="VBOX_E_PDM_ERROR">
|
---|
6097 | Sending sleep button event failed.
|
---|
6098 | </result>
|
---|
6099 | </desc>
|
---|
6100 | </method>
|
---|
6101 |
|
---|
6102 | <method name="getPowerButtonHandled">
|
---|
6103 | <desc>Checks if the last power button event was handled by guest.
|
---|
6104 | <result name="VBOX_E_PDM_ERROR">
|
---|
6105 | Checking if the event was handled by the guest OS failed.
|
---|
6106 | </result>
|
---|
6107 | </desc>
|
---|
6108 | <param name="handled" type="boolean" dir="return"/>
|
---|
6109 | </method>
|
---|
6110 |
|
---|
6111 | <method name="getGuestEnteredACPIMode">
|
---|
6112 | <desc>Checks if the guest entered the ACPI mode G0 (working) or
|
---|
6113 | G1 (sleeping). If this method returns @c false, the guest will
|
---|
6114 | most likely not respond to external ACPI events.
|
---|
6115 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6116 | Virtual machine not in Running state.
|
---|
6117 | </result>
|
---|
6118 | </desc>
|
---|
6119 | <param name="entered" type="boolean" dir="return"/>
|
---|
6120 | </method>
|
---|
6121 |
|
---|
6122 | <method name="saveState">
|
---|
6123 | <desc>
|
---|
6124 | Saves the current execution state of a running virtual machine
|
---|
6125 | and stops its execution.
|
---|
6126 |
|
---|
6127 | After this operation completes, the machine will go to the
|
---|
6128 | Saved state. Next time it is powered up, this state will
|
---|
6129 | be restored and the machine will continue its execution from
|
---|
6130 | the place where it was saved.
|
---|
6131 |
|
---|
6132 | This operation differs from taking a snapshot to the effect
|
---|
6133 | that it doesn't create new differencing hard disks. Also, once
|
---|
6134 | the machine is powered up from the state saved using this method,
|
---|
6135 | the saved state is deleted, so it will be impossible to return
|
---|
6136 | to this state later.
|
---|
6137 |
|
---|
6138 | <note>
|
---|
6139 | On success, this method implicitly calls
|
---|
6140 | <link to="IMachine::saveSettings"/> to save all current machine
|
---|
6141 | settings (including runtime changes to the DVD drive, etc.).
|
---|
6142 | Together with the impossibility to change any VM settings when it is
|
---|
6143 | in the Saved state, this guarantees adequate hardware
|
---|
6144 | configuration of the machine when it is restored from the saved
|
---|
6145 | state file.
|
---|
6146 | </note>
|
---|
6147 |
|
---|
6148 | <note>
|
---|
6149 | The machine must be in the Running or Paused state, otherwise
|
---|
6150 | the operation will fail.
|
---|
6151 | </note>
|
---|
6152 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6153 | Virtual machine state neither Running nor Paused.
|
---|
6154 | </result>
|
---|
6155 | <result name="VBOX_E_FILE_ERROR">
|
---|
6156 | Failed to create directory for saved state file.
|
---|
6157 | </result>
|
---|
6158 |
|
---|
6159 | <see><link to="#takeSnapshot"/></see>
|
---|
6160 | </desc>
|
---|
6161 | <param name="progress" type="IProgress" dir="return">
|
---|
6162 | <desc>Progress object to track the operation completion.</desc>
|
---|
6163 | </param>
|
---|
6164 | </method>
|
---|
6165 |
|
---|
6166 | <method name="adoptSavedState">
|
---|
6167 | <desc>
|
---|
6168 | Associates the given saved state file to the virtual machine.
|
---|
6169 |
|
---|
6170 | On success, the machine will go to the Saved state. Next time it is
|
---|
6171 | powered up, it will be restored from the adopted saved state and
|
---|
6172 | continue execution from the place where the saved state file was
|
---|
6173 | created.
|
---|
6174 |
|
---|
6175 | The specified saved state file path may be absolute or relative to the
|
---|
6176 | folder the VM normally saves the state to (usually,
|
---|
6177 | <link to="IMachine::snapshotFolder"/>).
|
---|
6178 |
|
---|
6179 | <note>
|
---|
6180 | It's a caller's responsibility to make sure the given saved state
|
---|
6181 | file is compatible with the settings of this virtual machine that
|
---|
6182 | represent its virtual hardware (memory size, hard disk configuration
|
---|
6183 | etc.). If there is a mismatch, the behavior of the virtual machine
|
---|
6184 | is undefined.
|
---|
6185 | </note>
|
---|
6186 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6187 | Virtual machine state neither PoweredOff nor Aborted.
|
---|
6188 | </result>
|
---|
6189 | </desc>
|
---|
6190 | <param name="savedStateFile" type="wstring" dir="in">
|
---|
6191 | <desc>Path to the saved state file to adopt.</desc>
|
---|
6192 | </param>
|
---|
6193 | </method>
|
---|
6194 |
|
---|
6195 | <method name="forgetSavedState">
|
---|
6196 | <desc>
|
---|
6197 | Forgets the saved state of the virtual machine previously created
|
---|
6198 | by <link to="#saveState"/>. Next time the machine is powered up, a
|
---|
6199 | clean boot will occur. If @a remove is @c true the saved state file
|
---|
6200 | is deleted.
|
---|
6201 | <note>
|
---|
6202 | This operation is equivalent to resetting or powering off
|
---|
6203 | the machine without doing a proper shutdown in the guest OS.
|
---|
6204 | </note>
|
---|
6205 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6206 | Virtual machine not in state Saved.
|
---|
6207 | </result>
|
---|
6208 | </desc>
|
---|
6209 | <param name="remove" type="boolean" dir="in">
|
---|
6210 | <desc>If @c true remove the saved state file.</desc>
|
---|
6211 | </param>
|
---|
6212 | </method>
|
---|
6213 |
|
---|
6214 | <method name="getDeviceActivity">
|
---|
6215 | <desc>
|
---|
6216 | Gets the current activity type of a given device or device group.
|
---|
6217 | <result name="E_INVALIDARG">
|
---|
6218 | Invalid device type.
|
---|
6219 | </result>
|
---|
6220 | </desc>
|
---|
6221 | <param name="type" type="DeviceType" dir="in"/>
|
---|
6222 | <param name="activity" type="DeviceActivity" dir="return"/>
|
---|
6223 | </method>
|
---|
6224 |
|
---|
6225 | <method name="attachUSBDevice">
|
---|
6226 | <desc>
|
---|
6227 | Attaches a host USB device with the given UUID to the
|
---|
6228 | USB controller of the virtual machine.
|
---|
6229 |
|
---|
6230 | The device needs to be in one of the following states:
|
---|
6231 | <link to="USBDeviceState_Busy"/>,
|
---|
6232 | <link to="USBDeviceState_Available"/> or
|
---|
6233 | <link to="USBDeviceState_Held"/>,
|
---|
6234 | otherwise an error is immediately returned.
|
---|
6235 |
|
---|
6236 | When the device state is
|
---|
6237 | <link to="USBDeviceState_Busy">Busy</link>, an error may also
|
---|
6238 | be returned if the host computer refuses to release it for some reason.
|
---|
6239 |
|
---|
6240 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6241 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6242 | Virtual machine state neither Running nor Paused.
|
---|
6243 | </result>
|
---|
6244 | <result name="VBOX_E_PDM_ERROR">
|
---|
6245 | Virtual machine does not have a USB controller.
|
---|
6246 | </result>
|
---|
6247 | </desc>
|
---|
6248 | <param name="id" type="wstring" dir="in">
|
---|
6249 | <desc>UUID of the host USB device to attach.</desc>
|
---|
6250 | </param>
|
---|
6251 | </method>
|
---|
6252 |
|
---|
6253 | <method name="detachUSBDevice">
|
---|
6254 | <desc>
|
---|
6255 | Detaches an USB device with the given UUID from the USB controller
|
---|
6256 | of the virtual machine.
|
---|
6257 |
|
---|
6258 | After this method succeeds, the VirtualBox server re-initiates
|
---|
6259 | all USB filters as if the device were just physically attached
|
---|
6260 | to the host, but filters of this machine are ignored to avoid
|
---|
6261 | a possible automatic re-attachment.
|
---|
6262 |
|
---|
6263 | <see>IUSBController::deviceFilters, USBDeviceState</see>
|
---|
6264 |
|
---|
6265 | <result name="VBOX_E_PDM_ERROR">
|
---|
6266 | Virtual machine does not have a USB controller.
|
---|
6267 | </result>
|
---|
6268 | <result name="E_INVALIDARG">
|
---|
6269 | USB device not attached to this virtual machine.
|
---|
6270 | </result>
|
---|
6271 | </desc>
|
---|
6272 | <param name="id" type="wstring" dir="in">
|
---|
6273 | <desc>UUID of the USB device to detach.</desc>
|
---|
6274 | </param>
|
---|
6275 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6276 | <desc>Detached USB device.</desc>
|
---|
6277 | </param>
|
---|
6278 | </method>
|
---|
6279 |
|
---|
6280 | <method name="findUSBDeviceByAddress">
|
---|
6281 | <desc>
|
---|
6282 | Searches for a USB device with the given host address.
|
---|
6283 |
|
---|
6284 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6285 | Given @c name does not correspond to any USB device.
|
---|
6286 | </result>
|
---|
6287 |
|
---|
6288 | <see>IUSBDevice::address</see>
|
---|
6289 | </desc>
|
---|
6290 | <param name="name" type="wstring" dir="in">
|
---|
6291 | <desc>
|
---|
6292 | Address of the USB device (as assigned by the host) to
|
---|
6293 | search for.
|
---|
6294 | </desc>
|
---|
6295 | </param>
|
---|
6296 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6297 | <desc>Found USB device object.</desc>
|
---|
6298 | </param>
|
---|
6299 | </method>
|
---|
6300 |
|
---|
6301 | <method name="findUSBDeviceById">
|
---|
6302 | <desc>
|
---|
6303 | Searches for a USB device with the given UUID.
|
---|
6304 |
|
---|
6305 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
6306 | Given @c id does not correspond to any USB device.
|
---|
6307 | </result>
|
---|
6308 |
|
---|
6309 | <see>IUSBDevice::id</see>
|
---|
6310 | </desc>
|
---|
6311 | <param name="id" type="wstring" dir="in">
|
---|
6312 | <desc>UUID of the USB device to search for.</desc>
|
---|
6313 | </param>
|
---|
6314 | <param name="device" type="IUSBDevice" dir="return">
|
---|
6315 | <desc>Found USB device object.</desc>
|
---|
6316 | </param>
|
---|
6317 | </method>
|
---|
6318 |
|
---|
6319 | <method name="createSharedFolder">
|
---|
6320 | <desc>
|
---|
6321 | Creates a transient new shared folder by associating the given logical
|
---|
6322 | name with the given host path, adds it to the collection of shared
|
---|
6323 | folders and starts sharing it. Refer to the description of
|
---|
6324 | <link to="ISharedFolder"/> to read more about logical names.
|
---|
6325 |
|
---|
6326 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6327 | Virtual machine in Saved state or currently changing state.
|
---|
6328 | </result>
|
---|
6329 | <result name="VBOX_E_FILE_ERROR">
|
---|
6330 | Shared folder already exists or not accessible.
|
---|
6331 | </result>
|
---|
6332 | </desc>
|
---|
6333 | <param name="name" type="wstring" dir="in">
|
---|
6334 | <desc>Unique logical name of the shared folder.</desc>
|
---|
6335 | </param>
|
---|
6336 | <param name="hostPath" type="wstring" dir="in">
|
---|
6337 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
6338 | </param>
|
---|
6339 | <param name="writable" type="boolean" dir="in">
|
---|
6340 | <desc>Whether the share is writable or readonly</desc>
|
---|
6341 | </param>
|
---|
6342 | </method>
|
---|
6343 |
|
---|
6344 | <method name="removeSharedFolder">
|
---|
6345 | <desc>
|
---|
6346 | Removes a transient shared folder with the given name previously
|
---|
6347 | created by <link to="#createSharedFolder"/> from the collection of
|
---|
6348 | shared folders and stops sharing it.
|
---|
6349 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6350 | Virtual machine in Saved state or currently changing state.
|
---|
6351 | </result>
|
---|
6352 | <result name="VBOX_E_FILE_ERROR">
|
---|
6353 | Shared folder does not exists.
|
---|
6354 | </result>
|
---|
6355 | </desc>
|
---|
6356 | <param name="name" type="wstring" dir="in">
|
---|
6357 | <desc>Logical name of the shared folder to remove.</desc>
|
---|
6358 | </param>
|
---|
6359 | </method>
|
---|
6360 |
|
---|
6361 | <method name="takeSnapshot">
|
---|
6362 | <desc>
|
---|
6363 | Saves the current execution state
|
---|
6364 | and all settings of the machine and creates differencing images
|
---|
6365 | for all normal (non-independent) hard disks.
|
---|
6366 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6367 |
|
---|
6368 | This method can be called for a PoweredOff, Saved (see
|
---|
6369 | <link to="#saveState"/>), Running or
|
---|
6370 | Paused virtual machine. When the machine is PoweredOff, an
|
---|
6371 | offline snapshot is created, an online snapshot otherwise.
|
---|
6372 |
|
---|
6373 | The taken snapshot is always based on the
|
---|
6374 | <link to="IMachine::currentSnapshot">current snapshot</link>
|
---|
6375 | of the associated virtual machine and becomes a new current snapshot.
|
---|
6376 |
|
---|
6377 | <note>
|
---|
6378 | This method implicitly calls <link to="IMachine::saveSettings"/> to
|
---|
6379 | save all current machine settings before taking an offline snapshot.
|
---|
6380 | </note>
|
---|
6381 |
|
---|
6382 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6383 | Virtual machine currently changing state.
|
---|
6384 | </result>
|
---|
6385 | </desc>
|
---|
6386 | <param name="name" type="wstring" dir="in">
|
---|
6387 | <desc>Short name for the snapshot.</desc>
|
---|
6388 | </param>
|
---|
6389 | <param name="description" type="wstring" dir="in">
|
---|
6390 | <desc>Optional description of the snapshot.</desc>
|
---|
6391 | </param>
|
---|
6392 | <param name="progress" type="IProgress" dir="return">
|
---|
6393 | <desc>Progress object to track the operation completion.</desc>
|
---|
6394 | </param>
|
---|
6395 | </method>
|
---|
6396 |
|
---|
6397 | <method name="discardSnapshot">
|
---|
6398 | <desc>
|
---|
6399 | Starts discarding the specified snapshot asynchronously.
|
---|
6400 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6401 |
|
---|
6402 | The execution state
|
---|
6403 | and settings of the associated machine stored in the snapshot
|
---|
6404 | will be deleted. The contents of all differencing hard disks of
|
---|
6405 | this snapshot will be merged with the contents of their
|
---|
6406 | dependent child hard disks to keep the disks valid (in other
|
---|
6407 | words, all changes represented by hard disks being discarded
|
---|
6408 | will be propagated to their child hard disks). After that, this
|
---|
6409 | snapshot's differencing hard disks will be deleted. The parent
|
---|
6410 | of this snapshot will become a new parent for all its child
|
---|
6411 | snapshots.
|
---|
6412 |
|
---|
6413 | If the discarded snapshot is the current one, its parent
|
---|
6414 | snapshot will become a new current snapshot. The current machine
|
---|
6415 | state is not directly affected in this case, except that
|
---|
6416 | currently attached differencing hard disks based on hard disks
|
---|
6417 | of the discarded snapshot will be also merged as described
|
---|
6418 | above.
|
---|
6419 |
|
---|
6420 | If the discarded snapshot is the first one (the root snapshot)
|
---|
6421 | and it has exactly one child snapshot, this child snapshot will
|
---|
6422 | become the first snapshot after discarding. If there are no
|
---|
6423 | children at all (i.e. the first snapshot is the only snapshot of
|
---|
6424 | the machine), both the current and the first snapshot of the
|
---|
6425 | machine will be set to @c null. In all other cases, the first
|
---|
6426 | snapshot cannot be discarded.
|
---|
6427 |
|
---|
6428 | You cannot discard the snapshot if it
|
---|
6429 | stores <link to="HardDiskType_Normal">normal</link> (non-differencing)
|
---|
6430 | hard disks that have differencing hard disks based on them. Snapshots of
|
---|
6431 | such kind can be discarded only when every normal hard disk has either
|
---|
6432 | no children at all or exactly one child. In the former case, the normal
|
---|
6433 | hard disk simply becomes unused (i.e. not attached to any VM). In the
|
---|
6434 | latter case, it receives all the changes stored in the child hard disk,
|
---|
6435 | and then it replaces the child hard disk in the configuration of the
|
---|
6436 | corresponding snapshot or machine.
|
---|
6437 |
|
---|
6438 | Also, you cannot discard the snapshot if it stores hard disks
|
---|
6439 | (of any type) having differencing child hard disks that belong
|
---|
6440 | to other machines. Such snapshots can be only discarded after
|
---|
6441 | you discard all snapshots of other machines containing "foreign"
|
---|
6442 | child disks, or detach these "foreign" child disks from machines
|
---|
6443 | they are attached to.
|
---|
6444 |
|
---|
6445 | One particular example of the snapshot storing normal hard disks
|
---|
6446 | is the first snapshot of a virtual machine that had normal hard
|
---|
6447 | disks attached when taking the snapshot. Be careful when
|
---|
6448 | discarding such snapshots because this implicitly commits
|
---|
6449 | changes (made since the snapshot being discarded has been taken)
|
---|
6450 | to normal hard disks (as described above), which may be not what
|
---|
6451 | you want.
|
---|
6452 |
|
---|
6453 | The virtual machine is put to
|
---|
6454 | the <link to="MachineState_Discarding">Discarding</link> state until
|
---|
6455 | the discard operation is completed.
|
---|
6456 |
|
---|
6457 | <note>
|
---|
6458 | The machine must not be running, otherwise the operation
|
---|
6459 | will fail.
|
---|
6460 | </note>
|
---|
6461 |
|
---|
6462 | <note>
|
---|
6463 | Child hard disks of all normal hard disks of the discarded snapshot
|
---|
6464 | must be accessible (see <link to="IMedium::state"/>) for this
|
---|
6465 | operation to succeed. In particular, this means that all virtual
|
---|
6466 | machines, whose hard disks are directly or indirectly based on the
|
---|
6467 | hard disks of discarded snapshot, must be powered off.
|
---|
6468 | </note>
|
---|
6469 | <note>
|
---|
6470 | Merging hard disk contents can be very time and disk space
|
---|
6471 | consuming, if these disks are big in size and have many
|
---|
6472 | children. However, if the snapshot being discarded is the last
|
---|
6473 | (head) snapshot on the branch, the operation will be rather
|
---|
6474 | quick.
|
---|
6475 | </note>
|
---|
6476 | <note>
|
---|
6477 | Note that discarding the current snapshot
|
---|
6478 | will implicitly call <link to="IMachine::saveSettings"/> to
|
---|
6479 | make all current machine settings permanent.
|
---|
6480 | </note>
|
---|
6481 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6482 | Virtual machine is running.
|
---|
6483 | </result>
|
---|
6484 | </desc>
|
---|
6485 | <param name="id" type="wstring" dir="in">
|
---|
6486 | <desc>UUID of the snapshot to discard.</desc>
|
---|
6487 | </param>
|
---|
6488 | <param name="progress" type="IProgress" dir="return">
|
---|
6489 | <desc>Progress object to track the operation completion.</desc>
|
---|
6490 | </param>
|
---|
6491 | </method>
|
---|
6492 |
|
---|
6493 | <method name="discardCurrentState">
|
---|
6494 | <desc>
|
---|
6495 | Starts resetting the machine's current state to the state contained
|
---|
6496 | in the current snapshot, asynchronously. All current settings of the
|
---|
6497 | machine will be reset and changes stored in differencing hard disks
|
---|
6498 | will be lost.
|
---|
6499 | See <link to="ISnapshot" /> for an introduction to snapshots.
|
---|
6500 |
|
---|
6501 | After this operation is successfully completed, new empty differencing
|
---|
6502 | hard disks are created for all normal hard disks of the machine.
|
---|
6503 |
|
---|
6504 | If the current snapshot of the machine is an online snapshot, the
|
---|
6505 | machine will go to the <link to="MachineState_Saved"> saved
|
---|
6506 | state</link>, so that the next time it is powered on, the execution
|
---|
6507 | state will be restored from the current snapshot.
|
---|
6508 |
|
---|
6509 | <note>
|
---|
6510 | The machine must not be running, otherwise the operation will fail.
|
---|
6511 | </note>
|
---|
6512 |
|
---|
6513 | <note>
|
---|
6514 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
6515 | prior to this operation, the saved state file will be implicitly
|
---|
6516 | discarded (as if <link to="IConsole::forgetSavedState"/> were
|
---|
6517 | called).
|
---|
6518 | </note>
|
---|
6519 |
|
---|
6520 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6521 | Virtual machine is running.
|
---|
6522 | </result>
|
---|
6523 | </desc>
|
---|
6524 | <param name="progress" type="IProgress" dir="return">
|
---|
6525 | <desc>Progress object to track the operation completion.</desc>
|
---|
6526 | </param>
|
---|
6527 | </method>
|
---|
6528 |
|
---|
6529 | <method name="discardCurrentSnapshotAndState">
|
---|
6530 | <desc>
|
---|
6531 |
|
---|
6532 | This method is equivalent to
|
---|
6533 | doing <link to="IConsole::discardSnapshot">discardSnapshot</link>
|
---|
6534 | (currentSnapshot.id(), progress) followed by
|
---|
6535 | <link to="IConsole::discardCurrentState"/>.
|
---|
6536 |
|
---|
6537 | As a result, the machine will be fully restored from the
|
---|
6538 | snapshot preceding the current snapshot, while both the current
|
---|
6539 | snapshot and the current machine state will be discarded.
|
---|
6540 |
|
---|
6541 | If the current snapshot is the first snapshot of the machine (i.e. it
|
---|
6542 | has the only snapshot), the current machine state will be
|
---|
6543 | discarded <b>before</b> discarding the snapshot. In other words, the
|
---|
6544 | machine will be restored from its last snapshot, before discarding
|
---|
6545 | it. This differs from performing a single
|
---|
6546 | <link to="IConsole::discardSnapshot"/> call (note that no
|
---|
6547 | <link to="IConsole::discardCurrentState"/> will be possible after it)
|
---|
6548 | to the effect that the latter will preserve the current state instead of
|
---|
6549 | discarding it.
|
---|
6550 |
|
---|
6551 | Unless explicitly mentioned otherwise, all remarks and
|
---|
6552 | limitations of the above two methods also apply to this method.
|
---|
6553 |
|
---|
6554 | <note>
|
---|
6555 | The machine must not be running, otherwise the operation
|
---|
6556 | will fail.
|
---|
6557 | </note>
|
---|
6558 |
|
---|
6559 | <note>
|
---|
6560 | If the machine state is <link to="MachineState_Saved">Saved</link>
|
---|
6561 | prior to this operation, the saved state file will be implicitly
|
---|
6562 | discarded (as if <link to="#forgetSavedState"/> were
|
---|
6563 | called).
|
---|
6564 | </note>
|
---|
6565 |
|
---|
6566 | <note>
|
---|
6567 | This method is more efficient than calling both of the above
|
---|
6568 | methods separately: it requires less IPC calls and provides
|
---|
6569 | a single progress object.
|
---|
6570 | </note>
|
---|
6571 |
|
---|
6572 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
6573 | Virtual machine is running.
|
---|
6574 | </result>
|
---|
6575 | </desc>
|
---|
6576 | <param name="progress" type="IProgress" dir="return">
|
---|
6577 | <desc>Progress object to track the operation completion.</desc>
|
---|
6578 | </param>
|
---|
6579 | </method>
|
---|
6580 |
|
---|
6581 | <method name="registerCallback">
|
---|
6582 | <desc>
|
---|
6583 | Registers a new console callback on this instance. The methods of the
|
---|
6584 | callback interface will be called by this instance when the appropriate
|
---|
6585 | event occurs.
|
---|
6586 | </desc>
|
---|
6587 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
6588 | </method>
|
---|
6589 |
|
---|
6590 | <method name="unregisterCallback">
|
---|
6591 | <desc>
|
---|
6592 | Unregisters the console callback previously registered using
|
---|
6593 | <link to="#registerCallback"/>.
|
---|
6594 | <result name="E_INVALIDARG">
|
---|
6595 | Given @a callback handler is not registered.
|
---|
6596 | </result>
|
---|
6597 | </desc>
|
---|
6598 | <param name="callback" type="IConsoleCallback" dir="in"/>
|
---|
6599 | </method>
|
---|
6600 | </interface>
|
---|
6601 |
|
---|
6602 | <!--
|
---|
6603 | // IHost
|
---|
6604 | /////////////////////////////////////////////////////////////////////////
|
---|
6605 | -->
|
---|
6606 |
|
---|
6607 | <interface
|
---|
6608 | name="IHostDVDDrive" extends="$unknown"
|
---|
6609 | uuid="21f86694-202d-4ce4-8b05-a63ff82dbf4c"
|
---|
6610 | wsmap="managed"
|
---|
6611 | >
|
---|
6612 | <desc>
|
---|
6613 | The IHostDVDDrive interface represents the physical CD/DVD drive
|
---|
6614 | hardware on the host. Used indirectly in <link to="IHost::DVDDrives"/>.
|
---|
6615 | </desc>
|
---|
6616 |
|
---|
6617 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6618 | <desc>
|
---|
6619 | Returns the platform-specific device identifier.
|
---|
6620 | On DOS-like platforms, it is a drive name (e.g. R:).
|
---|
6621 | On Unix-like platforms, it is a device name (e.g. /dev/hdc).
|
---|
6622 | </desc>
|
---|
6623 | </attribute>
|
---|
6624 | <attribute name="description" type="wstring" readonly="yes">
|
---|
6625 | <desc>
|
---|
6626 | Returns a human readable description for the drive. This
|
---|
6627 | description usually contains the product and vendor name. An
|
---|
6628 | empty string is returned if the description is not available.
|
---|
6629 | </desc>
|
---|
6630 | </attribute>
|
---|
6631 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
6632 | <desc>
|
---|
6633 | Returns the unique device identifier for the drive. This
|
---|
6634 | attribute is reserved for future use instead of
|
---|
6635 | <link to="#name"/>. Currently it is not used and may return
|
---|
6636 | an empty string on some platforms.
|
---|
6637 | </desc>
|
---|
6638 | </attribute>
|
---|
6639 |
|
---|
6640 | </interface>
|
---|
6641 |
|
---|
6642 | <interface
|
---|
6643 | name="IHostFloppyDrive" extends="$unknown"
|
---|
6644 | uuid="3f02d604-e908-4919-9fd1-8a4afd68fc63"
|
---|
6645 | wsmap="managed"
|
---|
6646 | >
|
---|
6647 | <desc>
|
---|
6648 | The IHostFloppyDrive interface represents the physical floppy drive
|
---|
6649 | hardware on the host. Used indirectly in <link to="IHost::floppyDrives"/>.
|
---|
6650 | </desc>
|
---|
6651 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6652 | <desc>
|
---|
6653 | Returns the platform-specific device identifier.
|
---|
6654 | On DOS-like platforms, it is a drive name (e.g. A:).
|
---|
6655 | On Unix-like platforms, it is a device name (e.g. /dev/fd0).
|
---|
6656 | </desc>
|
---|
6657 | </attribute>
|
---|
6658 | <attribute name="description" type="wstring" readonly="yes">
|
---|
6659 | <desc>
|
---|
6660 | Returns a human readable description for the drive. This
|
---|
6661 | description usually contains the product and vendor name. An
|
---|
6662 | empty string is returned if the description is not available.
|
---|
6663 | </desc>
|
---|
6664 | </attribute>
|
---|
6665 | <attribute name="udi" type="wstring" readonly="yes">
|
---|
6666 | <desc>
|
---|
6667 | Returns the unique device identifier for the drive. This
|
---|
6668 | attribute is reserved for future use instead of
|
---|
6669 | <link to="#name"/>. Currently it is not used and may return
|
---|
6670 | an empty string on some platforms.
|
---|
6671 | </desc>
|
---|
6672 | </attribute>
|
---|
6673 | </interface>
|
---|
6674 |
|
---|
6675 | <enum
|
---|
6676 | name="HostNetworkInterfaceMediumType"
|
---|
6677 | uuid="1aa54aaf-2497-45a2-bfb1-8eb225e93d5b"
|
---|
6678 | >
|
---|
6679 | <desc>
|
---|
6680 | Type of encapsulation. Ethernet encapsulation includes both wired and
|
---|
6681 | wireless Ethernet connections.
|
---|
6682 | <see>IHostNetworkInterface</see>
|
---|
6683 | </desc>
|
---|
6684 |
|
---|
6685 | <const name="Unknown" value="0">
|
---|
6686 | <desc>
|
---|
6687 | The type of interface cannot be determined.
|
---|
6688 | </desc>
|
---|
6689 | </const>
|
---|
6690 | <const name="Ethernet" value="1">
|
---|
6691 | <desc>
|
---|
6692 | Ethernet frame encapsulation.
|
---|
6693 | </desc>
|
---|
6694 | </const>
|
---|
6695 | <const name="PPP" value="2">
|
---|
6696 | <desc>
|
---|
6697 | Point-to-point protocol encapsulation.
|
---|
6698 | </desc>
|
---|
6699 | </const>
|
---|
6700 | <const name="SLIP" value="3">
|
---|
6701 | <desc>
|
---|
6702 | Serial line IP encapsulation.
|
---|
6703 | </desc>
|
---|
6704 | </const>
|
---|
6705 | </enum>
|
---|
6706 |
|
---|
6707 | <enum
|
---|
6708 | name="HostNetworkInterfaceStatus"
|
---|
6709 | uuid="CC474A69-2710-434B-8D99-C38E5D5A6F41"
|
---|
6710 | >
|
---|
6711 | <desc>
|
---|
6712 | Current status of the interface.
|
---|
6713 | <see>IHostNetworkInterface</see>
|
---|
6714 | </desc>
|
---|
6715 |
|
---|
6716 | <const name="Unknown" value="0">
|
---|
6717 | <desc>
|
---|
6718 | The state of interface cannot be determined.
|
---|
6719 | </desc>
|
---|
6720 | </const>
|
---|
6721 | <const name="Up" value="1">
|
---|
6722 | <desc>
|
---|
6723 | The interface is fully operational.
|
---|
6724 | </desc>
|
---|
6725 | </const>
|
---|
6726 | <const name="Down" value="2">
|
---|
6727 | <desc>
|
---|
6728 | The interface is not functioning.
|
---|
6729 | </desc>
|
---|
6730 | </const>
|
---|
6731 | </enum>
|
---|
6732 |
|
---|
6733 | <enum
|
---|
6734 | name="HostNetworkInterfaceType"
|
---|
6735 | uuid="67431b00-9946-48a2-bc02-b25c5919f4f3"
|
---|
6736 | >
|
---|
6737 | <desc>
|
---|
6738 | Network interface type.
|
---|
6739 | </desc>
|
---|
6740 | <const name="Bridged" value="1"/>
|
---|
6741 | <const name="HostOnly" value="2"/>
|
---|
6742 | </enum>
|
---|
6743 |
|
---|
6744 | <interface
|
---|
6745 | name="IHostNetworkInterface" extends="$unknown"
|
---|
6746 | uuid="ce6fae58-7642-4102-b5db-c9005c2320a8"
|
---|
6747 | wsmap="managed"
|
---|
6748 | >
|
---|
6749 | <desc>
|
---|
6750 | Represents one of host's network interfaces. IP V6 address and network
|
---|
6751 | mask are strings of 32 hexdecimal digits grouped by four. Groups are
|
---|
6752 | separated by colons.
|
---|
6753 | For example, fe80:0000:0000:0000:021e:c2ff:fed2:b030.
|
---|
6754 | </desc>
|
---|
6755 | <attribute name="name" type="wstring" readonly="yes">
|
---|
6756 | <desc>Returns the host network interface name.</desc>
|
---|
6757 | </attribute>
|
---|
6758 |
|
---|
6759 | <attribute name="id" type="wstring" readonly="yes">
|
---|
6760 | <desc>Returns the interface UUID.</desc>
|
---|
6761 | </attribute>
|
---|
6762 |
|
---|
6763 | <attribute name="networkName" type="wstring" readonly="yes">
|
---|
6764 | <desc>Returns the name of a virtual network the interface gets attached to.</desc>
|
---|
6765 | </attribute>
|
---|
6766 |
|
---|
6767 | <attribute name="dhcpEnabled" type="boolean" readonly="yes">
|
---|
6768 | <desc>Specifies whether the DHCP is enabled for the interface.</desc>
|
---|
6769 | </attribute>
|
---|
6770 |
|
---|
6771 | <attribute name="IPAddress" type="wstring" readonly="yes">
|
---|
6772 | <desc>Returns the IP V4 address of the interface.</desc>
|
---|
6773 | </attribute>
|
---|
6774 |
|
---|
6775 | <attribute name="networkMask" type="wstring" readonly="yes">
|
---|
6776 | <desc>Returns the network mask of the interface.</desc>
|
---|
6777 | </attribute>
|
---|
6778 |
|
---|
6779 | <attribute name="IPV6Supported" type="boolean" readonly="yes">
|
---|
6780 | <desc>Specifies whether the IP V6 is supported/enabled for the interface.</desc>
|
---|
6781 | </attribute>
|
---|
6782 |
|
---|
6783 | <attribute name="IPV6Address" type="wstring" readonly="yes">
|
---|
6784 | <desc>Returns the IP V6 address of the interface.</desc>
|
---|
6785 | </attribute>
|
---|
6786 |
|
---|
6787 | <attribute name="IPV6NetworkMaskPrefixLength" type="unsigned long" readonly="yes">
|
---|
6788 | <desc>Returns the length IP V6 network mask prefix of the interface.</desc>
|
---|
6789 | </attribute>
|
---|
6790 |
|
---|
6791 | <attribute name="hardwareAddress" type="wstring" readonly="yes">
|
---|
6792 | <desc>Returns the hardware address. For Ethernet it is MAC address.</desc>
|
---|
6793 | </attribute>
|
---|
6794 |
|
---|
6795 | <attribute name="mediumType" type="HostNetworkInterfaceMediumType" readonly="yes">
|
---|
6796 | <desc>Type of protocol encapsulation used.</desc>
|
---|
6797 | </attribute>
|
---|
6798 |
|
---|
6799 | <attribute name="status" type="HostNetworkInterfaceStatus" readonly="yes">
|
---|
6800 | <desc>Status of the interface.</desc>
|
---|
6801 | </attribute>
|
---|
6802 |
|
---|
6803 | <attribute name="interfaceType" type="HostNetworkInterfaceType" readonly="yes">
|
---|
6804 | <desc>specifies the host interface type.</desc>
|
---|
6805 | </attribute>
|
---|
6806 |
|
---|
6807 | <method name="enableStaticIpConfig">
|
---|
6808 | <desc>sets and enables the static IP V4 configuration for the given interface.</desc>
|
---|
6809 | <param name="IPAddress" type="wstring" dir="in">
|
---|
6810 | <desc>
|
---|
6811 | IP address.
|
---|
6812 | </desc>
|
---|
6813 | </param>
|
---|
6814 | <param name="networkMask" type="wstring" dir="in">
|
---|
6815 | <desc>
|
---|
6816 | network mask.
|
---|
6817 | </desc>
|
---|
6818 | </param>
|
---|
6819 | </method>
|
---|
6820 |
|
---|
6821 | <method name="enableStaticIpConfigV6">
|
---|
6822 | <desc>sets and enables the static IP V6 configuration for the given interface.</desc>
|
---|
6823 | <param name="IPV6Address" type="wstring" dir="in">
|
---|
6824 | <desc>
|
---|
6825 | IP address.
|
---|
6826 | </desc>
|
---|
6827 | </param>
|
---|
6828 | <param name="IPV6NetworkMaskPrefixLength" type="unsigned long" dir="in">
|
---|
6829 | <desc>
|
---|
6830 | network mask.
|
---|
6831 | </desc>
|
---|
6832 | </param>
|
---|
6833 | </method>
|
---|
6834 |
|
---|
6835 | <method name="enableDynamicIpConfig">
|
---|
6836 | <desc>enables the dynamic IP configuration.</desc>
|
---|
6837 | </method>
|
---|
6838 |
|
---|
6839 | <method name="dhcpRediscover">
|
---|
6840 | <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>
|
---|
6841 | </method>
|
---|
6842 |
|
---|
6843 | </interface>
|
---|
6844 |
|
---|
6845 | <interface
|
---|
6846 | name="IHost" extends="$unknown"
|
---|
6847 | uuid="4129f721-30cc-4f5a-bbed-0614ce4c2cb4"
|
---|
6848 | wsmap="managed"
|
---|
6849 | >
|
---|
6850 | <desc>
|
---|
6851 | The IHost interface represents the physical machine that this VirtualBox
|
---|
6852 | installation runs on.
|
---|
6853 |
|
---|
6854 | An object implementing this interface is returned by the
|
---|
6855 | <link to="IVirtualBox::host" /> attribute. This interface contains
|
---|
6856 | read-only information about the host's physical hardware (such as what
|
---|
6857 | processors and disks are available, what the host operating system is,
|
---|
6858 | and so on) and also allows for manipulating some of the host's hardware,
|
---|
6859 | such as global USB device filters and host interface networking.
|
---|
6860 |
|
---|
6861 | </desc>
|
---|
6862 | <attribute name="DVDDrives" type="IHostDVDDrive" readonly="yes" safearray="yes">
|
---|
6863 | <desc>List of DVD drives available on the host.</desc>
|
---|
6864 | </attribute>
|
---|
6865 |
|
---|
6866 | <attribute name="floppyDrives" type="IHostFloppyDrive" readonly="yes" safearray="yes">
|
---|
6867 | <desc>List of floppy drives available on the host.</desc>
|
---|
6868 | </attribute>
|
---|
6869 |
|
---|
6870 | <attribute name="USBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes">
|
---|
6871 | <desc>
|
---|
6872 | List of USB devices currently attached to the host.
|
---|
6873 | Once a new device is physically attached to the host computer,
|
---|
6874 | it appears in this list and remains there until detached.
|
---|
6875 |
|
---|
6876 | <note>
|
---|
6877 | If USB functionality is not available in the given edition of
|
---|
6878 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
6879 | </note>
|
---|
6880 | </desc>
|
---|
6881 | </attribute>
|
---|
6882 |
|
---|
6883 | <attribute name="USBDeviceFilters" type="IHostUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
6884 | <desc>
|
---|
6885 | List of USB device filters in action.
|
---|
6886 | When a new device is physically attached to the host computer,
|
---|
6887 | filters from this list are applied to it (in order they are stored
|
---|
6888 | in the list). The first matched filter will determine the
|
---|
6889 | <link to="IHostUSBDeviceFilter::action">action</link>
|
---|
6890 | performed on the device.
|
---|
6891 |
|
---|
6892 | Unless the device is ignored by these filters, filters of all
|
---|
6893 | currently running virtual machines
|
---|
6894 | (<link to="IUSBController::deviceFilters"/>) are applied to it.
|
---|
6895 |
|
---|
6896 | <note>
|
---|
6897 | If USB functionality is not available in the given edition of
|
---|
6898 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
6899 | </note>
|
---|
6900 |
|
---|
6901 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
6902 | </desc>
|
---|
6903 | </attribute>
|
---|
6904 |
|
---|
6905 | <attribute name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" readonly="yes">
|
---|
6906 | <desc>List of host network interfaces currently defined on the host.</desc>
|
---|
6907 | </attribute>
|
---|
6908 |
|
---|
6909 | <attribute name="processorCount" type="unsigned long" readonly="yes">
|
---|
6910 | <desc>Number of (logical) CPUs installed in the host system.</desc>
|
---|
6911 | </attribute>
|
---|
6912 |
|
---|
6913 | <attribute name="processorOnlineCount" type="unsigned long" readonly="yes">
|
---|
6914 | <desc>Number of (logical) CPUs online in the host system.</desc>
|
---|
6915 | </attribute>
|
---|
6916 |
|
---|
6917 | <method name="getProcessorSpeed">
|
---|
6918 | <desc>Query the (approximate) maximum speed of a specified host CPU in
|
---|
6919 | Megahertz.
|
---|
6920 | </desc>
|
---|
6921 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
6922 | <desc>
|
---|
6923 | Identifier of the CPU.
|
---|
6924 | </desc>
|
---|
6925 | </param>
|
---|
6926 | <param name="speed" type="unsigned long" dir="return">
|
---|
6927 | <desc>
|
---|
6928 | Speed value. 0 is returned if value is not known or @a cpuId is
|
---|
6929 | invalid.
|
---|
6930 | </desc>
|
---|
6931 | </param>
|
---|
6932 | </method>
|
---|
6933 |
|
---|
6934 | <method name="getProcessorFeature">
|
---|
6935 | <desc>Query whether a CPU feature is supported or not.</desc>
|
---|
6936 | <param name="feature" type="ProcessorFeature" dir="in">
|
---|
6937 | <desc>
|
---|
6938 | CPU Feature identifier.
|
---|
6939 | </desc>
|
---|
6940 | </param>
|
---|
6941 | <param name="supported" type="boolean" dir="return">
|
---|
6942 | <desc>
|
---|
6943 | Feature is supported or not.
|
---|
6944 | </desc>
|
---|
6945 | </param>
|
---|
6946 | </method>
|
---|
6947 |
|
---|
6948 | <method name="getProcessorDescription">
|
---|
6949 | <desc>Query the model string of a specified host CPU.
|
---|
6950 | </desc>
|
---|
6951 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
6952 | <desc>
|
---|
6953 | Identifier of the CPU.
|
---|
6954 | </desc>
|
---|
6955 | </param>
|
---|
6956 | <param name="description" type="wstring" dir="return">
|
---|
6957 | <desc>
|
---|
6958 | Model string. An empty string is returned if value is not known or
|
---|
6959 | @a cpuId is invalid.
|
---|
6960 | </desc>
|
---|
6961 | </param>
|
---|
6962 | </method>
|
---|
6963 |
|
---|
6964 | <attribute name="memorySize" type="unsigned long" readonly="yes">
|
---|
6965 | <desc>Amount of system memory in megabytes installed in the host system.</desc>
|
---|
6966 | </attribute>
|
---|
6967 |
|
---|
6968 | <attribute name="memoryAvailable" type="unsigned long" readonly="yes">
|
---|
6969 | <desc>Available system memory in the host system.</desc>
|
---|
6970 | </attribute>
|
---|
6971 |
|
---|
6972 | <attribute name="operatingSystem" type="wstring" readonly="yes">
|
---|
6973 | <desc>Name of the host system's operating system.</desc>
|
---|
6974 | </attribute>
|
---|
6975 |
|
---|
6976 | <attribute name="OSVersion" type="wstring" readonly="yes">
|
---|
6977 | <desc>Host operating system's version string.</desc>
|
---|
6978 | </attribute>
|
---|
6979 |
|
---|
6980 | <attribute name="UTCTime" type="long long" readonly="yes">
|
---|
6981 | <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
|
---|
6982 | </attribute>
|
---|
6983 |
|
---|
6984 | <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
|
---|
6985 | <desc>Returns @c true when the host supports 3D hardware acceleration.</desc>
|
---|
6986 | </attribute>
|
---|
6987 |
|
---|
6988 | <method name="createHostOnlyNetworkInterface">
|
---|
6989 | <desc>
|
---|
6990 | Creates a new adapter for Host Only Networking.
|
---|
6991 | <result name="E_INVALIDARG">
|
---|
6992 | Host network interface @a name already exists.
|
---|
6993 | </result>
|
---|
6994 | </desc>
|
---|
6995 | <param name="hostInterface" type="IHostNetworkInterface" dir="out">
|
---|
6996 | <desc>
|
---|
6997 | Created host interface object.
|
---|
6998 | </desc>
|
---|
6999 | </param>
|
---|
7000 | <param name="progress" type="IProgress" dir="return">
|
---|
7001 | <desc>
|
---|
7002 | Progress object to track the operation completion.
|
---|
7003 | </desc>
|
---|
7004 | </param>
|
---|
7005 | </method>
|
---|
7006 |
|
---|
7007 | <method name="removeHostOnlyNetworkInterface">
|
---|
7008 | <desc>
|
---|
7009 | Removes the given Host Only Networking interface.
|
---|
7010 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7011 | No host network interface matching @a id found.
|
---|
7012 | </result>
|
---|
7013 | </desc>
|
---|
7014 | <param name="id" type="wstring" dir="in">
|
---|
7015 | <desc>
|
---|
7016 | Adapter GUID.
|
---|
7017 | </desc>
|
---|
7018 | </param>
|
---|
7019 | <param name="progress" type="IProgress" dir="return">
|
---|
7020 | <desc>
|
---|
7021 | Progress object to track the operation completion.
|
---|
7022 | </desc>
|
---|
7023 | </param>
|
---|
7024 | </method>
|
---|
7025 |
|
---|
7026 | <method name="createUSBDeviceFilter">
|
---|
7027 | <desc>
|
---|
7028 | Creates a new USB device filter. All attributes except
|
---|
7029 | the filter name are set to empty (any match),
|
---|
7030 | <i>active</i> is @c false (the filter is not active).
|
---|
7031 |
|
---|
7032 | The created filter can be added to the list of filters using
|
---|
7033 | <link to="#insertUSBDeviceFilter"/>.
|
---|
7034 |
|
---|
7035 | <see>#USBDeviceFilters</see>
|
---|
7036 | </desc>
|
---|
7037 | <param name="name" type="wstring" dir="in">
|
---|
7038 | <desc>
|
---|
7039 | Filter name. See <link to="IHostUSBDeviceFilter::name"/>
|
---|
7040 | for more info.
|
---|
7041 | </desc>
|
---|
7042 | </param>
|
---|
7043 | <param name="filter" type="IHostUSBDeviceFilter" dir="return">
|
---|
7044 | <desc>Created filter object.</desc>
|
---|
7045 | </param>
|
---|
7046 | </method>
|
---|
7047 |
|
---|
7048 | <method name="insertUSBDeviceFilter">
|
---|
7049 | <desc>
|
---|
7050 | Inserts the given USB device to the specified position
|
---|
7051 | in the list of filters.
|
---|
7052 |
|
---|
7053 | Positions are numbered starting from @c 0. If the specified
|
---|
7054 | position is equal to or greater than the number of elements in
|
---|
7055 | the list, the filter is added at the end of the collection.
|
---|
7056 |
|
---|
7057 | <note>
|
---|
7058 | Duplicates are not allowed, so an attempt to insert a
|
---|
7059 | filter already in the list is an error.
|
---|
7060 | </note>
|
---|
7061 | <note>
|
---|
7062 | If USB functionality is not available in the given edition of
|
---|
7063 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7064 | </note>
|
---|
7065 |
|
---|
7066 | <see>#USBDeviceFilters</see>
|
---|
7067 |
|
---|
7068 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7069 | USB device filter is not created within this VirtualBox instance.
|
---|
7070 | </result>
|
---|
7071 | <result name="E_INVALIDARG">
|
---|
7072 | USB device filter already in list.
|
---|
7073 | </result>
|
---|
7074 |
|
---|
7075 | </desc>
|
---|
7076 | <param name="position" type="unsigned long" dir="in">
|
---|
7077 | <desc>Position to insert the filter to.</desc>
|
---|
7078 | </param>
|
---|
7079 | <param name="filter" type="IHostUSBDeviceFilter" dir="in">
|
---|
7080 | <desc>USB device filter to insert.</desc>
|
---|
7081 | </param>
|
---|
7082 | </method>
|
---|
7083 |
|
---|
7084 | <method name="removeUSBDeviceFilter">
|
---|
7085 | <desc>
|
---|
7086 | Removes a USB device filter from the specified position in the
|
---|
7087 | list of filters.
|
---|
7088 |
|
---|
7089 | Positions are numbered starting from @c 0. Specifying a
|
---|
7090 | position equal to or greater than the number of elements in
|
---|
7091 | the list will produce an error.
|
---|
7092 |
|
---|
7093 | <note>
|
---|
7094 | If USB functionality is not available in the given edition of
|
---|
7095 | VirtualBox, this method will set the result code to @c E_NOTIMPL.
|
---|
7096 | </note>
|
---|
7097 |
|
---|
7098 | <see>#USBDeviceFilters</see>
|
---|
7099 |
|
---|
7100 | <result name="E_INVALIDARG">
|
---|
7101 | USB device filter list empty or invalid @a position.
|
---|
7102 | </result>
|
---|
7103 |
|
---|
7104 | </desc>
|
---|
7105 | <param name="position" type="unsigned long" dir="in">
|
---|
7106 | <desc>Position to remove the filter from.</desc>
|
---|
7107 | </param>
|
---|
7108 | </method>
|
---|
7109 |
|
---|
7110 | <method name="findHostDVDDrive">
|
---|
7111 | <desc>
|
---|
7112 | Searches for a host DVD drive with the given @c name.
|
---|
7113 |
|
---|
7114 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7115 | Given @c name does not correspond to any host drive.
|
---|
7116 | </result>
|
---|
7117 |
|
---|
7118 | </desc>
|
---|
7119 | <param name="name" type="wstring" dir="in">
|
---|
7120 | <desc>Name of the host drive to search for</desc>
|
---|
7121 | </param>
|
---|
7122 | <param name="drive" type="IHostDVDDrive" dir="return">
|
---|
7123 | <desc>Found host drive object</desc>
|
---|
7124 | </param>
|
---|
7125 | </method>
|
---|
7126 |
|
---|
7127 | <method name="findHostFloppyDrive">
|
---|
7128 | <desc>
|
---|
7129 | Searches for a host floppy drive with the given @c name.
|
---|
7130 |
|
---|
7131 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7132 | Given @c name does not correspond to any host floppy drive.
|
---|
7133 | </result>
|
---|
7134 |
|
---|
7135 | </desc>
|
---|
7136 | <param name="name" type="wstring" dir="in">
|
---|
7137 | <desc>Name of the host floppy drive to search for</desc>
|
---|
7138 | </param>
|
---|
7139 | <param name="drive" type="IHostFloppyDrive" dir="return">
|
---|
7140 | <desc>Found host floppy drive object</desc>
|
---|
7141 | </param>
|
---|
7142 | </method>
|
---|
7143 |
|
---|
7144 | <method name="findHostNetworkInterfaceByName">
|
---|
7145 | <desc>
|
---|
7146 | Searches through all host network interfaces for an interface with
|
---|
7147 | the given @c name.
|
---|
7148 | <note>
|
---|
7149 | The method returns an error if the given @c name does not
|
---|
7150 | correspond to any host network interface.
|
---|
7151 | </note>
|
---|
7152 | </desc>
|
---|
7153 | <param name="name" type="wstring" dir="in">
|
---|
7154 | <desc>Name of the host network interface to search for.</desc>
|
---|
7155 | </param>
|
---|
7156 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7157 | <desc>Found host network interface object.</desc>
|
---|
7158 | </param>
|
---|
7159 | </method>
|
---|
7160 | <method name="findHostNetworkInterfaceById">
|
---|
7161 | <desc>
|
---|
7162 | Searches through all host network interfaces for an interface with
|
---|
7163 | the given GUID.
|
---|
7164 | <note>
|
---|
7165 | The method returns an error if the given GUID does not
|
---|
7166 | correspond to any host network interface.
|
---|
7167 | </note>
|
---|
7168 | </desc>
|
---|
7169 | <param name="id" type="wstring" dir="in">
|
---|
7170 | <desc>GUID of the host network interface to search for.</desc>
|
---|
7171 | </param>
|
---|
7172 | <param name="networkInterface" type="IHostNetworkInterface" dir="return">
|
---|
7173 | <desc>Found host network interface object.</desc>
|
---|
7174 | </param>
|
---|
7175 | </method>
|
---|
7176 | <method name="findHostNetworkInterfacesOfType">
|
---|
7177 | <desc>
|
---|
7178 | Searches through all host network interfaces and returns a list of interfaces of the specified type
|
---|
7179 | </desc>
|
---|
7180 | <param name="type" type="HostNetworkInterfaceType" dir="in">
|
---|
7181 | <desc>type of the host network interfaces to search for.</desc>
|
---|
7182 | </param>
|
---|
7183 | <param name="networkInterfaces" type="IHostNetworkInterface" safearray="yes" dir="return">
|
---|
7184 | <desc>Found host network interface objects.</desc>
|
---|
7185 | </param>
|
---|
7186 | </method>
|
---|
7187 |
|
---|
7188 | <method name="findUSBDeviceById">
|
---|
7189 | <desc>
|
---|
7190 | Searches for a USB device with the given UUID.
|
---|
7191 |
|
---|
7192 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7193 | Given @c id does not correspond to any USB device.
|
---|
7194 | </result>
|
---|
7195 |
|
---|
7196 | <see>IHostUSBDevice::id</see>
|
---|
7197 | </desc>
|
---|
7198 | <param name="id" type="wstring" dir="in">
|
---|
7199 | <desc>UUID of the USB device to search for.</desc>
|
---|
7200 | </param>
|
---|
7201 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7202 | <desc>Found USB device object.</desc>
|
---|
7203 | </param>
|
---|
7204 | </method>
|
---|
7205 |
|
---|
7206 | <method name="findUSBDeviceByAddress">
|
---|
7207 | <desc>
|
---|
7208 | Searches for a USB device with the given host address.
|
---|
7209 |
|
---|
7210 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
7211 | Given @c name does not correspond to any USB device.
|
---|
7212 | </result>
|
---|
7213 |
|
---|
7214 | <see>IHostUSBDevice::address</see>
|
---|
7215 | </desc>
|
---|
7216 | <param name="name" type="wstring" dir="in">
|
---|
7217 | <desc>
|
---|
7218 | Address of the USB device (as assigned by the host) to
|
---|
7219 | search for.
|
---|
7220 | </desc>
|
---|
7221 | </param>
|
---|
7222 | <param name="device" type="IHostUSBDevice" dir="return">
|
---|
7223 | <desc>Found USB device object.</desc>
|
---|
7224 | </param>
|
---|
7225 | </method>
|
---|
7226 |
|
---|
7227 | </interface>
|
---|
7228 |
|
---|
7229 | <!--
|
---|
7230 | // ISystemProperties
|
---|
7231 | /////////////////////////////////////////////////////////////////////////
|
---|
7232 | -->
|
---|
7233 |
|
---|
7234 | <interface
|
---|
7235 | name="ISystemProperties"
|
---|
7236 | extends="$unknown"
|
---|
7237 | uuid="9ca0f712-83f3-4631-b143-b75ef6568332"
|
---|
7238 | wsmap="managed"
|
---|
7239 | >
|
---|
7240 | <desc>
|
---|
7241 | The ISystemProperties interface represents global properties of the given
|
---|
7242 | VirtualBox installation.
|
---|
7243 |
|
---|
7244 | These properties define limits and default values for various attributes
|
---|
7245 | and parameters. Most of the properties are read-only, but some can be
|
---|
7246 | changed by a user.
|
---|
7247 | </desc>
|
---|
7248 |
|
---|
7249 | <attribute name="minGuestRAM" type="unsigned long" readonly="yes">
|
---|
7250 | <desc>Minimum guest system memory in Megabytes.</desc>
|
---|
7251 | </attribute>
|
---|
7252 |
|
---|
7253 | <attribute name="maxGuestRAM" type="unsigned long" readonly="yes">
|
---|
7254 | <desc>Maximum guest system memory in Megabytes.</desc>
|
---|
7255 | </attribute>
|
---|
7256 |
|
---|
7257 | <attribute name="minGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7258 | <desc>Minimum guest video memory in Megabytes.</desc>
|
---|
7259 | </attribute>
|
---|
7260 |
|
---|
7261 | <attribute name="maxGuestVRAM" type="unsigned long" readonly="yes">
|
---|
7262 | <desc>Maximum guest video memory in Megabytes.</desc>
|
---|
7263 | </attribute>
|
---|
7264 |
|
---|
7265 | <attribute name="minGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7266 | <desc>Minimum CPU count.</desc>
|
---|
7267 | </attribute>
|
---|
7268 |
|
---|
7269 | <attribute name="maxGuestCPUCount" type="unsigned long" readonly="yes">
|
---|
7270 | <desc>Maximum CPU count.</desc>
|
---|
7271 | </attribute>
|
---|
7272 |
|
---|
7273 | <attribute name="maxVDISize" type="unsigned long long" readonly="yes">
|
---|
7274 | <desc>Maximum size of a virtual disk image in Megabytes.</desc>
|
---|
7275 | </attribute>
|
---|
7276 |
|
---|
7277 | <attribute name="networkAdapterCount" type="unsigned long" readonly="yes">
|
---|
7278 | <desc>
|
---|
7279 | Number of network adapters associated with every
|
---|
7280 | <link to="IMachine"/> instance.
|
---|
7281 | </desc>
|
---|
7282 | </attribute>
|
---|
7283 |
|
---|
7284 | <attribute name="serialPortCount" type="unsigned long" readonly="yes">
|
---|
7285 | <desc>
|
---|
7286 | Number of serial ports associated with every
|
---|
7287 | <link to="IMachine"/> instance.
|
---|
7288 | </desc>
|
---|
7289 | </attribute>
|
---|
7290 |
|
---|
7291 | <attribute name="parallelPortCount" type="unsigned long" readonly="yes">
|
---|
7292 | <desc>
|
---|
7293 | Number of parallel ports associated with every
|
---|
7294 | <link to="IMachine"/> instance.
|
---|
7295 | </desc>
|
---|
7296 | </attribute>
|
---|
7297 |
|
---|
7298 | <attribute name="maxBootPosition" type="unsigned long" readonly="yes">
|
---|
7299 | <desc>
|
---|
7300 | Maximum device position in the boot order. This value corresponds
|
---|
7301 | to the total number of devices a machine can boot from, to make it
|
---|
7302 | possible to include all possible devices to the boot list.
|
---|
7303 | <see><link to="IMachine::setBootOrder"/></see>
|
---|
7304 | </desc>
|
---|
7305 | </attribute>
|
---|
7306 |
|
---|
7307 | <attribute name="defaultMachineFolder" type="wstring">
|
---|
7308 | <desc>
|
---|
7309 | Full path to the default directory used to create new or open
|
---|
7310 | existing machines when a settings file name contains no
|
---|
7311 | path.
|
---|
7312 |
|
---|
7313 | The initial value of this property is
|
---|
7314 | <tt><</tt><link to="IVirtualBox::homeFolder">
|
---|
7315 | VirtualBox_home</link><tt>>/Machines</tt>.
|
---|
7316 |
|
---|
7317 | <note>
|
---|
7318 | Setting this property to @c null or an empty string will restore the
|
---|
7319 | initial value.
|
---|
7320 | </note>
|
---|
7321 | <note>
|
---|
7322 | When settings this property, the specified path can be
|
---|
7323 | absolute (full path) or relative
|
---|
7324 | to the <link to="IVirtualBox::homeFolder">
|
---|
7325 | VirtualBox home directory</link>.
|
---|
7326 | When reading this property, a full path is
|
---|
7327 | always returned.
|
---|
7328 | </note>
|
---|
7329 | <note>
|
---|
7330 | The specified path may not exist, it will be created
|
---|
7331 | when necessary.
|
---|
7332 | </note>
|
---|
7333 |
|
---|
7334 | <see>
|
---|
7335 | <link to="IVirtualBox::createMachine"/>,
|
---|
7336 | <link to="IVirtualBox::openMachine"/>
|
---|
7337 | </see>
|
---|
7338 | </desc>
|
---|
7339 | </attribute>
|
---|
7340 |
|
---|
7341 | <attribute name="defaultHardDiskFolder" type="wstring">
|
---|
7342 | <desc>
|
---|
7343 | Full path to the default directory used to create new or open existing
|
---|
7344 | virtual disks.
|
---|
7345 |
|
---|
7346 | This path is used when the storage unit of a hard disk is a regular file
|
---|
7347 | in the host's file system and only a file name that contains no path is
|
---|
7348 | given.
|
---|
7349 |
|
---|
7350 | The initial value of this property is
|
---|
7351 | <tt><</tt>
|
---|
7352 | <link to="IVirtualBox::homeFolder">VirtualBox_home</link>
|
---|
7353 | <tt>>/HardDisks</tt>.
|
---|
7354 |
|
---|
7355 | <note>
|
---|
7356 | Setting this property to @c null or empty string will restore the
|
---|
7357 | initial value.
|
---|
7358 | </note>
|
---|
7359 | <note>
|
---|
7360 | When settings this property, the specified path can be relative
|
---|
7361 | to the
|
---|
7362 | <link to="IVirtualBox::homeFolder">VirtualBox home directory</link> or
|
---|
7363 | absolute. When reading this property, a full path is
|
---|
7364 | always returned.
|
---|
7365 | </note>
|
---|
7366 | <note>
|
---|
7367 | The specified path may not exist, it will be created
|
---|
7368 | when necessary.
|
---|
7369 | </note>
|
---|
7370 |
|
---|
7371 | <see>
|
---|
7372 | IHardDisk,
|
---|
7373 | <link to="IVirtualBox::createHardDisk"/>,
|
---|
7374 | <link to="IVirtualBox::openHardDisk"/>,
|
---|
7375 | <link to="IMedium::location"/>
|
---|
7376 | </see>
|
---|
7377 | </desc>
|
---|
7378 | </attribute>
|
---|
7379 |
|
---|
7380 | <attribute name="hardDiskFormats" type="IHardDiskFormat" safearray="yes" readonly="yes">
|
---|
7381 | <desc>
|
---|
7382 | List of all hard disk storage formats supported by this VirtualBox
|
---|
7383 | installation.
|
---|
7384 |
|
---|
7385 | Keep in mind that the hard disk format identifier
|
---|
7386 | (<link to="IHardDiskFormat::id"/>) used in other API calls like
|
---|
7387 | <link to="IVirtualBox::createHardDisk"/> to refer to a particular
|
---|
7388 | hard disk format is a case-insensitive string. This means that, for
|
---|
7389 | example, all of the following strings:
|
---|
7390 | <pre>
|
---|
7391 | "VDI"
|
---|
7392 | "vdi"
|
---|
7393 | "VdI"</pre>
|
---|
7394 | refer to the same hard disk format.
|
---|
7395 |
|
---|
7396 | Note that the virtual hard disk framework is backend-based, therefore
|
---|
7397 | the list of supported formats depends on what backends are currently
|
---|
7398 | installed.
|
---|
7399 |
|
---|
7400 | <see>
|
---|
7401 | <link to="IHardDiskFormat"/>,
|
---|
7402 | </see>
|
---|
7403 | </desc>
|
---|
7404 | </attribute>
|
---|
7405 |
|
---|
7406 | <attribute name="defaultHardDiskFormat" type="wstring">
|
---|
7407 | <desc>
|
---|
7408 | Identifier of the default hard disk format used by VirtualBox.
|
---|
7409 |
|
---|
7410 | The hard disk format set by this attribute is used by VirtualBox
|
---|
7411 | when the hard disk format was not specified explicitly. One example is
|
---|
7412 | <link to="IVirtualBox::createHardDisk"/> with the empty
|
---|
7413 | format argument. A more complex example is implicit creation of
|
---|
7414 | differencing hard disks when taking a snapshot of a virtual machine:
|
---|
7415 | this operation will try to use a format of the parent hard disk first
|
---|
7416 | and if this format does not support differencing hard disks the default
|
---|
7417 | format specified by this argument will be used.
|
---|
7418 |
|
---|
7419 | The list of supported hard disk formats may be obtained by the
|
---|
7420 | <link to="#hardDiskFormats"/> call. Note that the default hard disk
|
---|
7421 | format must have a capability to create differencing hard disks;
|
---|
7422 | otherwise opeartions that create hard disks implicitly may fail
|
---|
7423 | unexpectedly.
|
---|
7424 |
|
---|
7425 | The initial value of this property is <tt>"VDI"</tt> in the current
|
---|
7426 | version of the VirtualBox product, but may change in the future.
|
---|
7427 |
|
---|
7428 | <note>
|
---|
7429 | Setting this property to @c null or empty string will restore the
|
---|
7430 | initial value.
|
---|
7431 | </note>
|
---|
7432 |
|
---|
7433 | <see>
|
---|
7434 | <link to="#hardDiskFormats"/>,
|
---|
7435 | <link to="IHardDiskFormat::id"/>,
|
---|
7436 | <link to="IVirtualBox::createHardDisk"/>
|
---|
7437 | </see>
|
---|
7438 | </desc>
|
---|
7439 | </attribute>
|
---|
7440 |
|
---|
7441 | <attribute name="remoteDisplayAuthLibrary" type="wstring">
|
---|
7442 | <desc>
|
---|
7443 | Library that provides authentication for VRDP clients. The library
|
---|
7444 | is used if a virtual machine's authentication type is set to "external"
|
---|
7445 | in the VM RemoteDisplay configuration.
|
---|
7446 |
|
---|
7447 | The system library extension (".DLL" or ".so") must be omitted.
|
---|
7448 | A full path can be specified; if not, then the library must reside on the
|
---|
7449 | system's default library path.
|
---|
7450 |
|
---|
7451 | The default value of this property is <tt>"VRDPAuth"</tt>. There is a library
|
---|
7452 | of that name in one of the default VirtualBox library directories.
|
---|
7453 |
|
---|
7454 | For details about VirtualBox authentication libraries and how to implement
|
---|
7455 | them, please refer to the VirtualBox manual.
|
---|
7456 |
|
---|
7457 | <note>
|
---|
7458 | Setting this property to @c null or empty string will restore the
|
---|
7459 | initial value.
|
---|
7460 | </note>
|
---|
7461 | </desc>
|
---|
7462 | </attribute>
|
---|
7463 |
|
---|
7464 | <attribute name="webServiceAuthLibrary" type="wstring">
|
---|
7465 | <desc>
|
---|
7466 | Library that provides authentication for webservice clients. The library
|
---|
7467 | is used if a virtual machine's authentication type is set to "external"
|
---|
7468 | in the VM RemoteDisplay configuration and will be called from
|
---|
7469 | within the <link to="IWebsessionManager::logon" /> implementation.
|
---|
7470 |
|
---|
7471 | As opposed to <link to="ISystemProperties::remoteDisplayAuthLibrary" />,
|
---|
7472 | there is no per-VM setting for this, as the webservice is a global
|
---|
7473 | resource (if it is running). Only for this setting (for the webservice),
|
---|
7474 | setting this value to a literal <tt>"null"</tt> string disables authentication,
|
---|
7475 | meaning that <link to="IWebsessionManager::logon" /> will always succeed,
|
---|
7476 | no matter what user name and password are supplied.
|
---|
7477 |
|
---|
7478 | The initial value of this property is <tt>"VRDPAuth"</tt>,
|
---|
7479 | meaning that the webservice will use the same authentication
|
---|
7480 | library that is used by default for VBoxVRDP (again, see
|
---|
7481 | <link to="ISystemProperties::remoteDisplayAuthLibrary" />).
|
---|
7482 | The format and calling convention of authentication libraries
|
---|
7483 | is the same for the webservice as it is for VBoxVRDP.
|
---|
7484 |
|
---|
7485 | <note>
|
---|
7486 | Setting this property to @c null or empty string will restore the
|
---|
7487 | initial value.
|
---|
7488 | </note>
|
---|
7489 | </desc>
|
---|
7490 | </attribute>
|
---|
7491 |
|
---|
7492 | <attribute name="LogHistoryCount" type="unsigned long">
|
---|
7493 | <desc>
|
---|
7494 | This value specifies how many old release log files are kept.
|
---|
7495 | </desc>
|
---|
7496 | </attribute>
|
---|
7497 |
|
---|
7498 | <attribute name="defaultAudioDriver" type="AudioDriverType" readonly="yes">
|
---|
7499 | <desc>This value hold the default audio driver for the current
|
---|
7500 | system.</desc>
|
---|
7501 | </attribute>
|
---|
7502 | </interface>
|
---|
7503 |
|
---|
7504 | <!--
|
---|
7505 | // IGuest
|
---|
7506 | /////////////////////////////////////////////////////////////////////////
|
---|
7507 | -->
|
---|
7508 |
|
---|
7509 | <interface
|
---|
7510 | name="IGuestOSType" extends="$unknown"
|
---|
7511 | uuid="cfe9e64c-4430-435b-9e7c-e3d8e417bd58"
|
---|
7512 | wsmap="struct"
|
---|
7513 | >
|
---|
7514 | <desc>
|
---|
7515 | </desc>
|
---|
7516 |
|
---|
7517 | <attribute name="familyId" type="wstring" readonly="yes">
|
---|
7518 | <desc>Guest OS family identifier string.</desc>
|
---|
7519 | </attribute>
|
---|
7520 |
|
---|
7521 | <attribute name="familyDescription" type="wstring" readonly="yes">
|
---|
7522 | <desc>Human readable description of the guest OS family.</desc>
|
---|
7523 | </attribute>
|
---|
7524 |
|
---|
7525 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7526 | <desc>Guest OS identifier string.</desc>
|
---|
7527 | </attribute>
|
---|
7528 |
|
---|
7529 | <attribute name="description" type="wstring" readonly="yes">
|
---|
7530 | <desc>Human readable description of the guest OS.</desc>
|
---|
7531 | </attribute>
|
---|
7532 |
|
---|
7533 | <attribute name="is64Bit" type="boolean" readonly="yes">
|
---|
7534 | <desc>Returns @c true if the given OS is 64-bit</desc>
|
---|
7535 | </attribute>
|
---|
7536 |
|
---|
7537 | <attribute name="recommendedIOAPIC" type="boolean" readonly="yes">
|
---|
7538 | <desc>Returns @c true if IO APIC recommended for this OS type.</desc>
|
---|
7539 | </attribute>
|
---|
7540 |
|
---|
7541 | <attribute name="recommendedVirtEx" type="boolean" readonly="yes">
|
---|
7542 | <desc>Returns @c true if VT-x or AMD-V recommended for this OS type.</desc>
|
---|
7543 | </attribute>
|
---|
7544 |
|
---|
7545 | <attribute name="recommendedRAM" type="unsigned long" readonly="yes">
|
---|
7546 | <desc>Recommended RAM size in Megabytes.</desc>
|
---|
7547 | </attribute>
|
---|
7548 |
|
---|
7549 | <attribute name="recommendedVRAM" type="unsigned long" readonly="yes">
|
---|
7550 | <desc>Recommended video RAM size in Megabytes.</desc>
|
---|
7551 | </attribute>
|
---|
7552 |
|
---|
7553 | <attribute name="recommendedHDD" type="unsigned long" readonly="yes">
|
---|
7554 | <desc>Recommended hard disk size in Megabytes.</desc>
|
---|
7555 | </attribute>
|
---|
7556 |
|
---|
7557 | <attribute name="adapterType" type="NetworkAdapterType" readonly="yes">
|
---|
7558 | <desc>Returns recommended network adapter for this OS type.</desc>
|
---|
7559 | </attribute>
|
---|
7560 | </interface>
|
---|
7561 |
|
---|
7562 | <interface
|
---|
7563 | name="IGuest" extends="$unknown"
|
---|
7564 | uuid="d8556fca-81bc-12af-fca3-365528fa38ca"
|
---|
7565 | wsmap="managed"
|
---|
7566 | >
|
---|
7567 | <desc>
|
---|
7568 | The IGuest interface represents information about the operating system
|
---|
7569 | running inside the virtual machine. Used in
|
---|
7570 | <link to="IConsole::guest"/>.
|
---|
7571 |
|
---|
7572 | IGuest provides information about the guest operating system, whether
|
---|
7573 | Guest Additions are installed and other OS-specific virtual machine
|
---|
7574 | properties.
|
---|
7575 | </desc>
|
---|
7576 |
|
---|
7577 | <attribute name="OSTypeId" type="wstring" readonly="yes">
|
---|
7578 | <desc>
|
---|
7579 | Identifier of the Guest OS type as reported by the Guest
|
---|
7580 | Additions.
|
---|
7581 | You may use <link to="IVirtualBox::getGuestOSType"/> to obtain
|
---|
7582 | an IGuestOSType object representing details about the given
|
---|
7583 | Guest OS type.
|
---|
7584 | <note>
|
---|
7585 | If Guest Additions are not installed, this value will be
|
---|
7586 | the same as <link to="IMachine::OSTypeId"/>.
|
---|
7587 | </note>
|
---|
7588 | </desc>
|
---|
7589 | </attribute>
|
---|
7590 |
|
---|
7591 | <attribute name="additionsActive" type="boolean" readonly="yes">
|
---|
7592 | <desc>
|
---|
7593 | Flag whether the Guest Additions are installed and active
|
---|
7594 | in which case their version will be returned by the
|
---|
7595 | <link to="#additionsVersion"/> property.
|
---|
7596 | </desc>
|
---|
7597 | </attribute>
|
---|
7598 |
|
---|
7599 | <attribute name="additionsVersion" type="wstring" readonly="yes">
|
---|
7600 | <desc>
|
---|
7601 | Version of the Guest Additions (3 decimal numbers separated
|
---|
7602 | by dots) or empty when the Additions are not installed. The
|
---|
7603 | Additions may also report a version but yet not be active as
|
---|
7604 | the version might be refused by VirtualBox (incompatible) or
|
---|
7605 | other failures occurred.
|
---|
7606 | </desc>
|
---|
7607 | </attribute>
|
---|
7608 |
|
---|
7609 | <attribute name="supportsSeamless" type="boolean" readonly="yes">
|
---|
7610 | <desc>
|
---|
7611 | Flag whether seamless guest display rendering (seamless desktop
|
---|
7612 | integration) is supported.
|
---|
7613 | </desc>
|
---|
7614 | </attribute>
|
---|
7615 |
|
---|
7616 | <attribute name="supportsGraphics" type="boolean" readonly="yes">
|
---|
7617 | <desc>
|
---|
7618 | Flag whether the guest is in graphics mode. If it is not, then
|
---|
7619 | seamless rendering will not work, resize hints are not immediately
|
---|
7620 | acted on and guest display resizes are probably not initiated by
|
---|
7621 | the guest additions.
|
---|
7622 | </desc>
|
---|
7623 | </attribute>
|
---|
7624 |
|
---|
7625 | <attribute name="memoryBalloonSize" type="unsigned long">
|
---|
7626 | <desc>Guest system memory balloon size in megabytes.</desc>
|
---|
7627 | </attribute>
|
---|
7628 |
|
---|
7629 | <attribute name="statisticsUpdateInterval" type="unsigned long">
|
---|
7630 | <desc>Interval to update guest statistics in seconds.</desc>
|
---|
7631 | </attribute>
|
---|
7632 |
|
---|
7633 | <method name="setCredentials">
|
---|
7634 | <desc>
|
---|
7635 | Store login credentials that can be queried by guest operating
|
---|
7636 | systems with Additions installed. The credentials are transient
|
---|
7637 | to the session and the guest may also choose to erase them. Note
|
---|
7638 | that the caller cannot determine whether the guest operating system
|
---|
7639 | has queried or made use of the credentials.
|
---|
7640 |
|
---|
7641 | <result name="VBOX_E_VM_ERROR">
|
---|
7642 | VMM device is not available.
|
---|
7643 | </result>
|
---|
7644 |
|
---|
7645 | </desc>
|
---|
7646 | <param name="userName" type="wstring" dir="in">
|
---|
7647 | <desc>User name string, can be empty</desc>
|
---|
7648 | </param>
|
---|
7649 | <param name="password" type="wstring" dir="in">
|
---|
7650 | <desc>Password string, can be empty</desc>
|
---|
7651 | </param>
|
---|
7652 | <param name="domain" type="wstring" dir="in">
|
---|
7653 | <desc>Domain name (guest logon scheme specific), can be empty</desc>
|
---|
7654 | </param>
|
---|
7655 | <param name="allowInteractiveLogon" type="boolean" dir="in">
|
---|
7656 | <desc>
|
---|
7657 | Flag whether the guest should alternatively allow the user to
|
---|
7658 | interactively specify different credentials. This flag might
|
---|
7659 | not be supported by all versions of the Additions.
|
---|
7660 | </desc>
|
---|
7661 | </param>
|
---|
7662 | </method>
|
---|
7663 |
|
---|
7664 | <method name="getStatistic">
|
---|
7665 | <desc>
|
---|
7666 | Query specified guest statistics as reported by the VirtualBox Additions.
|
---|
7667 | </desc>
|
---|
7668 | <param name="cpuId" type="unsigned long" dir="in">
|
---|
7669 | <desc>Virtual CPU id; not relevant for all statistic types</desc>
|
---|
7670 | </param>
|
---|
7671 | <param name="statistic" type="GuestStatisticType" dir="in">
|
---|
7672 | <desc>Statistic type.</desc>
|
---|
7673 | </param>
|
---|
7674 | <param name="statVal" type="unsigned long" dir="return">
|
---|
7675 | <desc>Statistics value</desc>
|
---|
7676 | </param>
|
---|
7677 | </method>
|
---|
7678 |
|
---|
7679 | </interface>
|
---|
7680 |
|
---|
7681 |
|
---|
7682 | <!--
|
---|
7683 | // IProgress
|
---|
7684 | /////////////////////////////////////////////////////////////////////////
|
---|
7685 | -->
|
---|
7686 |
|
---|
7687 | <interface
|
---|
7688 | name="IProgress" extends="$unknown"
|
---|
7689 | uuid="6fcd0198-7fc5-4c53-8c37-653ac76854b5"
|
---|
7690 | wsmap="managed"
|
---|
7691 | >
|
---|
7692 | <desc>
|
---|
7693 | The IProgress interface is used to track and control
|
---|
7694 | asynchronous tasks within VirtualBox.
|
---|
7695 |
|
---|
7696 | An instance of this is returned every time VirtualBox starts
|
---|
7697 | an asynchronous task (in other words, a separate thread) which
|
---|
7698 | continues to run after a method call returns. For example,
|
---|
7699 | <link to="IConsole::saveState" />, which saves the state of
|
---|
7700 | a running virtual machine, can take a long time to complete.
|
---|
7701 | To be able to display a progress bar, a user interface such as
|
---|
7702 | the VirtualBox graphical user interface can use the IProgress
|
---|
7703 | object returned by that method.
|
---|
7704 |
|
---|
7705 | Note that IProgress is a "read-only" interface in the sense
|
---|
7706 | that only the VirtualBox internals behind the Main API can
|
---|
7707 | create and manipulate progress objects, whereas client code
|
---|
7708 | can only use the IProgress object to monitor a task's
|
---|
7709 | progress and, if <link to="#cancelable" /> is @c true,
|
---|
7710 | cancel the task by calling <link to="#cancel" />.
|
---|
7711 |
|
---|
7712 | A task represented by IProgress consists of either one or
|
---|
7713 | several sub-operations that run sequentially, one by one (see
|
---|
7714 | <link to="#operation" /> and <link to="#operationCount" />).
|
---|
7715 | Every operation is identified by a number (starting from 0)
|
---|
7716 | and has a separate description.
|
---|
7717 |
|
---|
7718 | You can find the individual percentage of completion of the current
|
---|
7719 | operation in <link to="#operationPercent" /> and the
|
---|
7720 | percentage of completion of the task as a whole
|
---|
7721 | in <link to="#percent" />.
|
---|
7722 |
|
---|
7723 | Similarly, you can wait for the completion of a particular
|
---|
7724 | operation via <link to="#waitForOperationCompletion" /> or
|
---|
7725 | for the completion of the whole task via
|
---|
7726 | <link to="#waitForCompletion" />.
|
---|
7727 | </desc>
|
---|
7728 |
|
---|
7729 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7730 | <desc>ID of the task.</desc>
|
---|
7731 | </attribute>
|
---|
7732 |
|
---|
7733 | <attribute name="description" type="wstring" readonly="yes">
|
---|
7734 | <desc>Description of the task.</desc>
|
---|
7735 | </attribute>
|
---|
7736 |
|
---|
7737 | <attribute name="initiator" type="$unknown" readonly="yes">
|
---|
7738 | <desc>Initiator of the task.</desc>
|
---|
7739 | </attribute>
|
---|
7740 |
|
---|
7741 | <attribute name="cancelable" type="boolean" readonly="yes">
|
---|
7742 | <desc>Whether the task can be interrupted.</desc>
|
---|
7743 | </attribute>
|
---|
7744 |
|
---|
7745 | <attribute name="percent" type="unsigned long" readonly="yes">
|
---|
7746 | <desc>
|
---|
7747 | Current progress value of the task as a whole, in percent.
|
---|
7748 | This value depends on how many operations are already complete.
|
---|
7749 | Returns 100 if <link to="#completed" /> is @c true.
|
---|
7750 | </desc>
|
---|
7751 | </attribute>
|
---|
7752 |
|
---|
7753 | <attribute name="timeRemaining" type="long" readonly="yes">
|
---|
7754 | <desc>
|
---|
7755 | Estimated remaining time until the task completes, in
|
---|
7756 | seconds. Returns 0 once the task has completed; returns -1
|
---|
7757 | if the remaining time cannot be computed, in particular if
|
---|
7758 | the current progress is 0.
|
---|
7759 |
|
---|
7760 | Even if a value is returned, the estimate will be unreliable
|
---|
7761 | for low progress values. It will become more reliable as the
|
---|
7762 | task progresses; it is not recommended to display an ETA
|
---|
7763 | before at least 20% of a task have completed.
|
---|
7764 | </desc>
|
---|
7765 | </attribute>
|
---|
7766 |
|
---|
7767 | <attribute name="completed" type="boolean" readonly="yes">
|
---|
7768 | <desc>Whether the task has been completed.</desc>
|
---|
7769 | </attribute>
|
---|
7770 |
|
---|
7771 | <attribute name="canceled" type="boolean" readonly="yes">
|
---|
7772 | <desc>Whether the task has been canceled.</desc>
|
---|
7773 | </attribute>
|
---|
7774 |
|
---|
7775 | <attribute name="resultCode" type="long" readonly="yes">
|
---|
7776 | <desc>
|
---|
7777 | Result code of the progress task.
|
---|
7778 | Valid only if <link to="#completed"/> is @c true.
|
---|
7779 | </desc>
|
---|
7780 | </attribute>
|
---|
7781 |
|
---|
7782 | <attribute name="errorInfo" type="IVirtualBoxErrorInfo" readonly="yes">
|
---|
7783 | <desc>
|
---|
7784 | Extended information about the unsuccessful result of the
|
---|
7785 | progress operation. May be @c null if no extended information
|
---|
7786 | is available.
|
---|
7787 | Valid only if <link to="#completed"/> is @c true and
|
---|
7788 | <link to="#resultCode"/> indicates a failure.
|
---|
7789 | </desc>
|
---|
7790 | </attribute>
|
---|
7791 |
|
---|
7792 | <attribute name="operationCount" type="unsigned long" readonly="yes">
|
---|
7793 | <desc>
|
---|
7794 | Number of sub-operations this task is divided into.
|
---|
7795 | Every task consists of at least one suboperation.
|
---|
7796 | </desc>
|
---|
7797 | </attribute>
|
---|
7798 |
|
---|
7799 | <attribute name="operation" type="unsigned long" readonly="yes">
|
---|
7800 | <desc>Number of the sub-operation being currently executed.</desc>
|
---|
7801 | </attribute>
|
---|
7802 |
|
---|
7803 | <attribute name="operationDescription" type="wstring" readonly="yes">
|
---|
7804 | <desc>
|
---|
7805 | Description of the sub-operation being currently executed.
|
---|
7806 | </desc>
|
---|
7807 | </attribute>
|
---|
7808 |
|
---|
7809 | <attribute name="operationPercent" type="unsigned long" readonly="yes">
|
---|
7810 | <desc>Progress value of the current sub-operation only, in percent.</desc>
|
---|
7811 | </attribute>
|
---|
7812 |
|
---|
7813 | <method name="waitForCompletion">
|
---|
7814 | <desc>
|
---|
7815 | Waits until the task is done (including all sub-operations)
|
---|
7816 | with a given timeout in milliseconds; specify -1 for an indefinite wait.
|
---|
7817 |
|
---|
7818 | <result name="VBOX_E_IPRT_ERROR">
|
---|
7819 | Failed to wait for task completion.
|
---|
7820 | </result>
|
---|
7821 | </desc>
|
---|
7822 |
|
---|
7823 | <param name="timeout" type="long" dir="in">
|
---|
7824 | <desc>
|
---|
7825 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
7826 | </desc>
|
---|
7827 | </param>
|
---|
7828 | </method>
|
---|
7829 |
|
---|
7830 | <method name="waitForOperationCompletion">
|
---|
7831 | <desc>
|
---|
7832 | Waits until the given operation is done with a given timeout in
|
---|
7833 | milliseconds; specify -1 for an indefinite wait.
|
---|
7834 |
|
---|
7835 | <result name="VBOX_E_IPRT_ERROR">
|
---|
7836 | Failed to wait for operation completion.
|
---|
7837 | </result>
|
---|
7838 |
|
---|
7839 | </desc>
|
---|
7840 | <param name="operation" type="unsigned long" dir="in">
|
---|
7841 | <desc>
|
---|
7842 | Number of the operation to wait for.
|
---|
7843 | Must be less than <link to="#operationCount"/>.
|
---|
7844 | </desc>
|
---|
7845 | </param>
|
---|
7846 | <param name="timeout" type="long" dir="in">
|
---|
7847 | <desc>
|
---|
7848 | Maximum time in milliseconds to wait or -1 to wait indefinitely.
|
---|
7849 | </desc>
|
---|
7850 | </param>
|
---|
7851 | </method>
|
---|
7852 |
|
---|
7853 | <method name="cancel">
|
---|
7854 | <desc>
|
---|
7855 | Cancels the task.
|
---|
7856 | <note>
|
---|
7857 | If <link to="#cancelable"/> is @c false, then this method will fail.
|
---|
7858 | </note>
|
---|
7859 |
|
---|
7860 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
7861 | Operation cannot be canceled.
|
---|
7862 | </result>
|
---|
7863 |
|
---|
7864 | </desc>
|
---|
7865 | </method>
|
---|
7866 |
|
---|
7867 | </interface>
|
---|
7868 |
|
---|
7869 |
|
---|
7870 | <!--
|
---|
7871 | // ISnapshot
|
---|
7872 | /////////////////////////////////////////////////////////////////////////
|
---|
7873 | -->
|
---|
7874 |
|
---|
7875 | <interface
|
---|
7876 | name="ISnapshot" extends="$unknown"
|
---|
7877 | uuid="1a2d0551-58a4-4107-857e-ef414fc42ffc"
|
---|
7878 | wsmap="managed"
|
---|
7879 | >
|
---|
7880 | <desc>
|
---|
7881 | The ISnapshot interface represents a snapshot of the virtual
|
---|
7882 | machine.
|
---|
7883 |
|
---|
7884 | Together with the differencing hard disks that are created
|
---|
7885 | when a snapshot is taken, a machine can be brought back to
|
---|
7886 | the exact state it was in when the snapshot was taken.
|
---|
7887 |
|
---|
7888 | The ISnapshot interface has no methods, only attributes; snapshots
|
---|
7889 | are controlled through methods of the <link to="IConsole" /> interface
|
---|
7890 | which also manage the hard disk images associated with the snapshot.
|
---|
7891 | The following operations exist:
|
---|
7892 |
|
---|
7893 | <ul>
|
---|
7894 | <li><link to="IConsole::takeSnapshot"/>: creates a new snapshot
|
---|
7895 | by creating new, empty differencing images for the machine's
|
---|
7896 | hard disks and saving the VM settings and (if the VM is running)
|
---|
7897 | the current VM state in the snapshot.
|
---|
7898 |
|
---|
7899 | The differencing images will then receive all data written to
|
---|
7900 | the machine's hard disks, while their parent (base) images
|
---|
7901 | remain unmodified after the snapshot has been taken (see
|
---|
7902 | <link to="IHardDisk" /> for details about differencing images).
|
---|
7903 | This simplifies restoring a machine to the state of a snapshot:
|
---|
7904 | only the differencing images need to be deleted.
|
---|
7905 |
|
---|
7906 | The current machine state is not changed by taking a snapshot.
|
---|
7907 | If the machine is running, it will resume execution after the
|
---|
7908 | snapshot has been taken.
|
---|
7909 | </li>
|
---|
7910 |
|
---|
7911 | <li><link to="IConsole::discardCurrentState"/>: this goes back to
|
---|
7912 | a previous snapshot. This resets the machine's state to that of
|
---|
7913 | the previous snapshot by deleting the differencing image of each
|
---|
7914 | of the machine's hard disks and setting the machine's settings
|
---|
7915 | and state to the state that was saved in the snapshot (if any).
|
---|
7916 |
|
---|
7917 | This destroys the machine's current state.
|
---|
7918 | </li>
|
---|
7919 |
|
---|
7920 | <li><link to="IConsole::discardSnapshot"/>: deletes a snapshot
|
---|
7921 | without affecting the current machine state.
|
---|
7922 |
|
---|
7923 | This does not change the machine, but instead frees the resources
|
---|
7924 | allocated when the snapshot was taken: the settings and machine state
|
---|
7925 | is deleted (if any), and the snapshot's differencing image for each
|
---|
7926 | of the machine's hard disks gets merged with its parent image.
|
---|
7927 |
|
---|
7928 | Neither the current machine state nor other snapshots are affected
|
---|
7929 | by this operation, except that parent disk images will be modified
|
---|
7930 | to contain the disk data associated with the snapshot being deleted.
|
---|
7931 | </li>
|
---|
7932 |
|
---|
7933 | <li><link to="IConsole::discardCurrentSnapshotAndState"/>:
|
---|
7934 | this completely reverts the virtual machine to the state it was in
|
---|
7935 | before the current snapshot has been taken. Effectively, this goes
|
---|
7936 | back to the state before the current snapshot, which might be
|
---|
7937 | an earlier snapshot.
|
---|
7938 |
|
---|
7939 | The current state, as well as the current snapshot, are lost.
|
---|
7940 | </li>
|
---|
7941 | </ul>
|
---|
7942 |
|
---|
7943 | Each snapshot contains the settings of the virtual machine (hardware
|
---|
7944 | configuration etc.). In addition, if the machine was running when the
|
---|
7945 | snapshot was taken (<link to="IMachine::state"/> is <link to="MachineState_Running"/>),
|
---|
7946 | the current VM state is saved in the snapshot (similarly to what happens
|
---|
7947 | when a VM's state is saved). The snapshot is then said to
|
---|
7948 | be <i>online</i> because when restoring it, the VM will be running.
|
---|
7949 |
|
---|
7950 | If the machine is saved (<link to="MachineState_Saved"/>), the snapshot
|
---|
7951 | receives a copy of the execution state file (<link to="IMachine::stateFilePath"/>).
|
---|
7952 |
|
---|
7953 | Otherwise, if the machine was not running (<link to="MachineState_PoweredOff"/>
|
---|
7954 | or <link to="MachineState_Aborted"/>), the snapshot is <i>offline</i>;
|
---|
7955 | it then contains a so-called "zero execution state", representing a
|
---|
7956 | machine that is powered off.
|
---|
7957 |
|
---|
7958 | <h3>Snapshot branches and the "current" snapshot</h3>
|
---|
7959 |
|
---|
7960 | Snapshots can be chained, whereby every next snapshot is based on the
|
---|
7961 | previous one. This chaining is related to hard disk branching
|
---|
7962 | (see the <link to="IHardDisk"/> description) in that every time
|
---|
7963 | a new snapshot is created, a new differencing hard disk is implicitly
|
---|
7964 | created for all normal hard disks attached to the machine.
|
---|
7965 |
|
---|
7966 | Each virtual machine has a "current snapshot", identified by
|
---|
7967 | <link to="IMachine::currentSnapshot"/>. Presently, this is always set
|
---|
7968 | to the last snapshot in the chain. In a future version of VirtualBox,
|
---|
7969 | it will be possible to reset a machine's current state to that of an
|
---|
7970 | earlier snapshot without discarding the current state so that it will be
|
---|
7971 | possible to create alternative snapshot paths in a snapshot tree.
|
---|
7972 |
|
---|
7973 | In the current implementation, multiple snapshot branches within one
|
---|
7974 | virtual machine are not allowed. Every machine has a single branch,
|
---|
7975 | and <link to="IConsole::takeSnapshot"/> operation adds a new
|
---|
7976 | snapshot to the top of that branch.
|
---|
7977 | </desc>
|
---|
7978 |
|
---|
7979 | <attribute name="id" type="wstring" readonly="yes">
|
---|
7980 | <desc>UUID of the snapshot.</desc>
|
---|
7981 | </attribute>
|
---|
7982 |
|
---|
7983 | <attribute name="name" type="wstring">
|
---|
7984 | <desc>Short name of the snapshot.</desc>
|
---|
7985 | </attribute>
|
---|
7986 |
|
---|
7987 | <attribute name="description" type="wstring">
|
---|
7988 | <desc>Optional description of the snapshot.</desc>
|
---|
7989 | </attribute>
|
---|
7990 |
|
---|
7991 | <attribute name="timeStamp" type="long long" readonly="yes">
|
---|
7992 | <desc>
|
---|
7993 | Time stamp of the snapshot, in milliseconds since 1970-01-01 UTC.
|
---|
7994 | </desc>
|
---|
7995 | </attribute>
|
---|
7996 |
|
---|
7997 | <attribute name="online" type="boolean" readonly="yes">
|
---|
7998 | <desc>
|
---|
7999 | @c true if this snapshot is an online snapshot and @c false otherwise.
|
---|
8000 |
|
---|
8001 | When this attribute is @c true, the
|
---|
8002 | <link to="IMachine::stateFilePath"/> attribute of the
|
---|
8003 | <link to="#machine"/> object associated with this snapshot
|
---|
8004 | will point to the saved state file. Otherwise, it will be
|
---|
8005 | an empty string.
|
---|
8006 | </desc>
|
---|
8007 | </attribute>
|
---|
8008 |
|
---|
8009 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
8010 | <desc>
|
---|
8011 | Virtual machine this snapshot is taken on. This object
|
---|
8012 | stores all settings the machine had when taking this snapshot.
|
---|
8013 | <note>
|
---|
8014 | The returned machine object is immutable, i.e. no
|
---|
8015 | any settings can be changed.
|
---|
8016 | </note>
|
---|
8017 | </desc>
|
---|
8018 | </attribute>
|
---|
8019 |
|
---|
8020 | <attribute name="parent" type="ISnapshot" readonly="yes">
|
---|
8021 | <desc>
|
---|
8022 | Parent snapshot (a snapshot this one is based on), or
|
---|
8023 | @c null if the snapshot has no parent.
|
---|
8024 | </desc>
|
---|
8025 | </attribute>
|
---|
8026 |
|
---|
8027 | <attribute name="children" type="ISnapshot" readonly="yes" safearray="yes">
|
---|
8028 | <desc>
|
---|
8029 | Child snapshots (all snapshots having this one as a parent).
|
---|
8030 | <note>
|
---|
8031 | In the current implementation, there can be only one
|
---|
8032 | child snapshot, or no children at all, meaning this is the
|
---|
8033 | last (head) snapshot.
|
---|
8034 | </note>
|
---|
8035 | </desc>
|
---|
8036 | </attribute>
|
---|
8037 |
|
---|
8038 | </interface>
|
---|
8039 |
|
---|
8040 |
|
---|
8041 | <!--
|
---|
8042 | // IMedia
|
---|
8043 | /////////////////////////////////////////////////////////////////////////
|
---|
8044 | -->
|
---|
8045 |
|
---|
8046 | <enum
|
---|
8047 | name="MediaState"
|
---|
8048 | uuid="8b86e03c-2f1c-412a-8fbd-326f62701200"
|
---|
8049 | >
|
---|
8050 | <desc>
|
---|
8051 | Virtual media state.
|
---|
8052 | <see>IMedia</see>
|
---|
8053 | </desc>
|
---|
8054 |
|
---|
8055 | <const name="NotCreated" value="0">
|
---|
8056 | <desc>
|
---|
8057 | Associated media storage does not exist (either was not created yet or
|
---|
8058 | was deleted).
|
---|
8059 | </desc>
|
---|
8060 | </const>
|
---|
8061 | <const name="Created" value="1">
|
---|
8062 | <desc>
|
---|
8063 | Associated storage exists and accessible.
|
---|
8064 | </desc>
|
---|
8065 | </const>
|
---|
8066 | <const name="LockedRead" value="2">
|
---|
8067 | <desc>
|
---|
8068 | Media is locked for reading, no data modification is possible.
|
---|
8069 | </desc>
|
---|
8070 | </const>
|
---|
8071 | <const name="LockedWrite" value="3">
|
---|
8072 | <desc>
|
---|
8073 | Media is locked for writing, no concurrent data reading or modification
|
---|
8074 | is possible.
|
---|
8075 | </desc>
|
---|
8076 | </const>
|
---|
8077 | <const name="Inaccessible" value="4">
|
---|
8078 | <desc>
|
---|
8079 | Associated media storage is not accessible.
|
---|
8080 | </desc>
|
---|
8081 | </const>
|
---|
8082 | <const name="Creating" value="5">
|
---|
8083 | <desc>
|
---|
8084 | Associated media storage is being created.
|
---|
8085 | </desc>
|
---|
8086 | </const>
|
---|
8087 | <const name="Deleting" value="6">
|
---|
8088 | <desc>
|
---|
8089 | Associated media storage is being deleted.
|
---|
8090 | </desc>
|
---|
8091 | </const>
|
---|
8092 | </enum>
|
---|
8093 |
|
---|
8094 | <interface
|
---|
8095 | name="IMedium" extends="$unknown"
|
---|
8096 | uuid="f585787c-7728-40f6-853a-13705426e936"
|
---|
8097 | wsmap="managed"
|
---|
8098 | >
|
---|
8099 | <desc>
|
---|
8100 | The IMedium interface is a common interface for all objects representing
|
---|
8101 | virtual media such as hard disks, CD/DVD images and floppy images.
|
---|
8102 |
|
---|
8103 | Each medium is associated with a storage unit (such as a file on the host
|
---|
8104 | computer or a network resource) that holds actual data. The location of
|
---|
8105 | the storage unit is represented by the #location attribute. The value of
|
---|
8106 | this attribute is media type dependent.
|
---|
8107 |
|
---|
8108 | The exact media type may be determined by querying the appropriate
|
---|
8109 | interface such as:
|
---|
8110 | <ul>
|
---|
8111 | <li><link to="IHardDisk" /> (virtual hard disks)</li>
|
---|
8112 | <li><link to="IDVDImage" /> (standard CD/DVD ISO image files)</li>
|
---|
8113 | <li><link to="IFloppyImage" /> (raw floppy image files)</li>
|
---|
8114 | </ul>
|
---|
8115 |
|
---|
8116 | Existing media are opened using the following methods, depending on the
|
---|
8117 | media type:
|
---|
8118 | <ul>
|
---|
8119 | <li><link to="IVirtualBox::openHardDisk"/></li>
|
---|
8120 | <li><link to="IVirtualBox::openDVDImage"/></li>
|
---|
8121 | <li><link to="IVirtualBox::openFloppyImage"/></li>
|
---|
8122 | </ul>
|
---|
8123 |
|
---|
8124 | New hard disk media are created using the
|
---|
8125 | <link to="IVirtualBox::createHardDisk"/> method. CD/DVD and floppy
|
---|
8126 | images are created outside VirtualBox, usually by storing a copy
|
---|
8127 | of the real medium of the corresponding type in a regular file.
|
---|
8128 |
|
---|
8129 | <h3>Known Media</h3>
|
---|
8130 |
|
---|
8131 | When an existing medium gets opened for the first time, it gets
|
---|
8132 | automatically remembered by the given VirtualBox installation or, in other
|
---|
8133 | words, becomes a <i>known medium</i>. Known media are stored in the media
|
---|
8134 | registry transparently maintained by VirtualBox and stored in settings
|
---|
8135 | files so that this registry is preserved when VirtualBox is not running.
|
---|
8136 |
|
---|
8137 | Newly created virtual hard disks get remembered only when the associated
|
---|
8138 | storage unit is actually created (see IHardDisk for more details).
|
---|
8139 |
|
---|
8140 | All known media can be enumerated using
|
---|
8141 | <link to="IVirtualBox::hardDisks"/>,
|
---|
8142 | <link to="IVirtualBox::DVDImages"/> and
|
---|
8143 | <link to="IVirtualBox::floppyImages"/> attributes. Individual media can be
|
---|
8144 | quickly found by UUID using <link to="IVirtualBox::getHardDisk"/>
|
---|
8145 | and similar methods or by location using
|
---|
8146 | <link to="IVirtualBox::findHardDisk"/> and similar methods.
|
---|
8147 |
|
---|
8148 | Only known media can be attached to virtual machines.
|
---|
8149 |
|
---|
8150 | Removing known media from the media registry is performed when the given
|
---|
8151 | medium is closed using the <link to="#close"/> method or when its
|
---|
8152 | associated storage unit is deleted (only for hard disks).
|
---|
8153 |
|
---|
8154 | <h3>Accessibility Checks</h3>
|
---|
8155 |
|
---|
8156 | The given medium (with the created storage unit) is considered to be
|
---|
8157 | <i>accessible</i> when its storage unit can be read.
|
---|
8158 | Accessible media are indicated by the <link to="MediaState_Created"/>
|
---|
8159 | value of the <link to="#state"/> attribute. When the storage unit cannot
|
---|
8160 | be read (for example, because it is located on a disconnected network
|
---|
8161 | resource, or was accidentally deleted outside VirtualBox), the medium is
|
---|
8162 | considered to be <i>inaccessible</i> which is indicated by the
|
---|
8163 | <link to="MediaState_Inaccessible"/> state. The details about the reason
|
---|
8164 | of being inaccessible can be obtained using the
|
---|
8165 | <link to="#lastAccessError"/> attribute.
|
---|
8166 |
|
---|
8167 | A new accessibility check is performed each time the <link to="#state"/>
|
---|
8168 | attribute is read. Please note that this check may take long time (several
|
---|
8169 | seconds or even minutes, depending on the storage unit location and
|
---|
8170 | format), and will block the calling thread until finished. For this
|
---|
8171 | reason, it is recommended to never read this attribute on the main UI
|
---|
8172 | thread to avoid making the UI unresponsive.
|
---|
8173 |
|
---|
8174 | Note that when VirtualBox starts up (e.g. the VirtualBox object gets
|
---|
8175 | created for the first time), all known media are in the
|
---|
8176 | <link to="MediaState_Inaccessible"/> state but the value of the <link
|
---|
8177 | to="#lastAccessError"/> attribute is an empty string because no actual
|
---|
8178 | accessibility check is made on startup. This is done to make the
|
---|
8179 | VirtualBox object ready for serving requests as
|
---|
8180 | fast as possible and let the end-user application decide if it needs to
|
---|
8181 | check media accessibility right away or not.
|
---|
8182 | </desc>
|
---|
8183 |
|
---|
8184 | <attribute name="id" type="wstring" readonly="yes">
|
---|
8185 | <desc>
|
---|
8186 | UUID of the medium. For a newly created medium, this value is a randomly
|
---|
8187 | generated UUID.
|
---|
8188 |
|
---|
8189 | <note>
|
---|
8190 | For media in one of MediaState_NotCreated, MediaState_Creating or
|
---|
8191 | MediaState_Deleting states, the value of this property is undefined
|
---|
8192 | and will most likely be an empty UUID.
|
---|
8193 | </note>
|
---|
8194 | </desc>
|
---|
8195 | </attribute>
|
---|
8196 |
|
---|
8197 | <attribute name="description" type="wstring">
|
---|
8198 | <desc>
|
---|
8199 | Optional description of the medium. For newly created media, the value
|
---|
8200 | of this attribute value is an empty string.
|
---|
8201 |
|
---|
8202 | Media types that don't support this attribute will return E_NOTIMPL in
|
---|
8203 | attempt to get or set this attribute's value.
|
---|
8204 |
|
---|
8205 | <note>
|
---|
8206 | For some storage types, reading this attribute may return an outdated
|
---|
8207 | (last known) value when <link to="#state"/> is <link
|
---|
8208 | to="MediaState_Inaccessible"/> or <link
|
---|
8209 | to="MediaState_LockedWrite"/> because the value of this attribute is
|
---|
8210 | stored within the storage unit itself. Also note that changing the
|
---|
8211 | attribute value is not possible in such case, as well as when the
|
---|
8212 | medium is the <link to="MediaState_LockedRead"/> state.
|
---|
8213 | </note>
|
---|
8214 | </desc>
|
---|
8215 | </attribute>
|
---|
8216 |
|
---|
8217 | <attribute name="state" type="MediaState" readonly="yes">
|
---|
8218 | <desc>
|
---|
8219 | Current media state. Inspect <link to="MediaState"/> values for details.
|
---|
8220 |
|
---|
8221 | Reading this attribute may take a long time because an accessibility
|
---|
8222 | check of the storage unit is performed each time the attribute is read.
|
---|
8223 | This check may cause a significant delay if the storage unit of the
|
---|
8224 | given medium is, for example, a file located on a network share which is
|
---|
8225 | not currently accessible due to connectivity problems -- the call will
|
---|
8226 | not return until a timeout interval defined by the host OS for this
|
---|
8227 | operation expires.
|
---|
8228 |
|
---|
8229 | If the last known state of the medium is <link to="MediaState_Created"/>
|
---|
8230 | and the accessibility check fails then the state would be set to
|
---|
8231 | <link to="MediaState_Inaccessible"/> and <link to="#lastAccessError"/>
|
---|
8232 | may be used to get more details about the failure. If the state of the
|
---|
8233 | medium is <link to="MediaState_LockedRead"/> or
|
---|
8234 | <link to="MediaState_LockedWrite"/> then it remains the same, and a
|
---|
8235 | non-empty value of <link to="#lastAccessError"/> will indicate a failed
|
---|
8236 | accessibility check in this case.
|
---|
8237 |
|
---|
8238 | Note that not all media states are applicable to all media types.
|
---|
8239 | For example, states <link to="MediaState_NotCreated"/>,
|
---|
8240 | <link to="MediaState_LockedWrite"/>, <link to="MediaState_Creating"/>,
|
---|
8241 | <link to="MediaState_Deleting"/> are meaningless for IDVDImage and
|
---|
8242 | IFloppyImage media.
|
---|
8243 | </desc>
|
---|
8244 | </attribute>
|
---|
8245 |
|
---|
8246 | <attribute name="location" type="wstring">
|
---|
8247 | <desc>
|
---|
8248 | Location of the storage unit holding media data.
|
---|
8249 |
|
---|
8250 | The format of the location string is media type specific. For media
|
---|
8251 | types using regular files in a host's file system, the location
|
---|
8252 | string is the full file name.
|
---|
8253 |
|
---|
8254 | Some media types may support changing the storage unit location by
|
---|
8255 | simply changing the value of this property. If this operation is not
|
---|
8256 | supported, the implementation will return E_NOTIMPL in attempt to set
|
---|
8257 | this attribute's value.
|
---|
8258 |
|
---|
8259 | When setting a value of the location attribute which is a regular file
|
---|
8260 | in the host's file system, the given file name may be either relative to
|
---|
8261 | the <link to="IVirtualBox::homeFolder">VirtualBox home folder</link> or
|
---|
8262 | absolute. Note that if the given location specification does not contain
|
---|
8263 | the file extension part then a proper default extension will be
|
---|
8264 | automatically appended by the implementation depending on the media type.
|
---|
8265 | </desc>
|
---|
8266 | </attribute>
|
---|
8267 |
|
---|
8268 | <attribute name="name" type="wstring" readonly="yes">
|
---|
8269 | <desc>
|
---|
8270 | Name of the storage unit holding media data.
|
---|
8271 |
|
---|
8272 | The returned string is a short version of the <link to="#location"/>
|
---|
8273 | attribute that is suitable for representing the medium in situations
|
---|
8274 | where the full location specification is too long (such as lists
|
---|
8275 | and comboboxes in GUI frontends). This string is also used by frontends
|
---|
8276 | to sort the media list alphabetically when needed.
|
---|
8277 |
|
---|
8278 | For example, for locations that are regular files in the host's file
|
---|
8279 | system, the value of this attribute is just the file name (+ extension),
|
---|
8280 | without the path specification.
|
---|
8281 |
|
---|
8282 | Note that as opposed to the <link to="#location"/> attribute, the name
|
---|
8283 | attribute will not necessary be unique for a list of media of the
|
---|
8284 | given type and format.
|
---|
8285 | </desc>
|
---|
8286 | </attribute>
|
---|
8287 |
|
---|
8288 | <attribute name="size" type="unsigned long long" readonly="yes">
|
---|
8289 | <desc>
|
---|
8290 | Physical size of the storage unit used to hold media data (in bytes).
|
---|
8291 |
|
---|
8292 | <note>
|
---|
8293 | For media whose <link to="#state"/> is <link
|
---|
8294 | to="MediaState_Inaccessible"/>, the value of this property is the
|
---|
8295 | last known size. For <link to="MediaState_NotCreated"/> media,
|
---|
8296 | the returned value is zero.
|
---|
8297 | </note>
|
---|
8298 | </desc>
|
---|
8299 | </attribute>
|
---|
8300 |
|
---|
8301 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
8302 | <desc>
|
---|
8303 | Text message that represents the result of the last accessibility
|
---|
8304 | check.
|
---|
8305 |
|
---|
8306 | Accessibility checks are performed each time the <link to="#state"/>
|
---|
8307 | attribute is read. An empty string is returned if the last
|
---|
8308 | accessibility check was successful. A non-empty string indicates a
|
---|
8309 | failure and should normally describe a reason of the failure (for
|
---|
8310 | example, a file read error).
|
---|
8311 | </desc>
|
---|
8312 | </attribute>
|
---|
8313 |
|
---|
8314 | <attribute name="machineIds" type="wstring" safearray="yes" readonly="yes">
|
---|
8315 | <desc>
|
---|
8316 | Array of UUIDs of all machines this medium is attached to.
|
---|
8317 |
|
---|
8318 | A @c null array is returned if this medium is not attached to any
|
---|
8319 | machine or to any machine's snapshot.
|
---|
8320 |
|
---|
8321 | <note>
|
---|
8322 | The returned array will include a machine even if this medium is not
|
---|
8323 | attached to that machine in the current state but attached to it in
|
---|
8324 | one of the machine's snapshots. See <link to="#getSnapshotIds"/> for
|
---|
8325 | details.
|
---|
8326 | </note>
|
---|
8327 | </desc>
|
---|
8328 | </attribute>
|
---|
8329 |
|
---|
8330 | <method name="getSnapshotIds">
|
---|
8331 | <desc>
|
---|
8332 | Returns an array of UUIDs of all snapshots of the given machine where
|
---|
8333 | this medium is attached to.
|
---|
8334 |
|
---|
8335 | If the medium is attached to the machine in the current state, then the
|
---|
8336 | first element in the array will always be the ID of the queried machine
|
---|
8337 | (i.e. the value equal to the @c machineId argument), followed by
|
---|
8338 | snapshot IDs (if any).
|
---|
8339 |
|
---|
8340 | If the medium is not attached to the machine in the current state, then
|
---|
8341 | the array will contain only snapshot IDs.
|
---|
8342 |
|
---|
8343 | The returned array may be @c null if this medium is not attached
|
---|
8344 | to the given machine at all, neither in the current state nor in one of
|
---|
8345 | the snapshots.
|
---|
8346 | </desc>
|
---|
8347 | <param name="machineId" type="wstring" dir="in">
|
---|
8348 | <desc>
|
---|
8349 | UUID of the machine to query.
|
---|
8350 | </desc>
|
---|
8351 | </param>
|
---|
8352 | <param name="snapshotIds" type="wstring" safearray="yes" dir="return">
|
---|
8353 | <desc>
|
---|
8354 | Array of snapshot UUIDs of the given machine using this medium.
|
---|
8355 | </desc>
|
---|
8356 | </param>
|
---|
8357 | </method>
|
---|
8358 |
|
---|
8359 | <method name="lockRead">
|
---|
8360 | <desc>
|
---|
8361 | Locks this medium for reading.
|
---|
8362 |
|
---|
8363 | The read lock is shared: many clients can simultaneously lock the
|
---|
8364 | same media for reading unless it is already locked for writing (see
|
---|
8365 | <link to="#lockWrite"/>) in which case an error is returned.
|
---|
8366 |
|
---|
8367 | When the medium is locked for reading, it cannot be modified
|
---|
8368 | from within VirtualBox. This means that any method that changes
|
---|
8369 | the properties of this medium or contents of the storage unit
|
---|
8370 | will return an error (unless explicitly stated otherwise) and
|
---|
8371 | that an attempt to start a virtual machine that wants to modify
|
---|
8372 | the medium will also fail.
|
---|
8373 |
|
---|
8374 | When the virtual machine is started up, it locks for reading all
|
---|
8375 | media it uses in read-only mode. If some media cannot be locked
|
---|
8376 | for reading, the startup procedure will fail.
|
---|
8377 |
|
---|
8378 | The medium locked for reading must be unlocked using the <link
|
---|
8379 | to="#unlockRead"/> method. Calls to <link to="#lockRead"/>
|
---|
8380 | can be nested and must be followed by the same number of paired
|
---|
8381 | <link to="#unlockRead"/> calls.
|
---|
8382 |
|
---|
8383 | This method sets the media state to <link
|
---|
8384 | to="MediaState_LockedRead" /> on success. The state prior to
|
---|
8385 | this call must be <link to="MediaState_Created" />,
|
---|
8386 | <link to="MediaState_Inaccessible" /> or
|
---|
8387 | <link to="MediaState_LockedRead" />.
|
---|
8388 | As you can see, inaccessible media can be locked too. This is
|
---|
8389 | not an error; this method performs a logical lock that prevents
|
---|
8390 | modifications of this media through the VirtualBox API, not a
|
---|
8391 | physical lock of the underlying storage unit.
|
---|
8392 |
|
---|
8393 | This method returns the current state of the medium
|
---|
8394 | <b>before</b> the operation.
|
---|
8395 |
|
---|
8396 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8397 | Invalid media state (e.g. not created, locked, inaccessible,
|
---|
8398 | creating, deleting).
|
---|
8399 | </result>
|
---|
8400 |
|
---|
8401 | </desc>
|
---|
8402 | <param name="state" type="MediaState" dir="return">
|
---|
8403 | <desc>
|
---|
8404 | State of the medium after the operation.
|
---|
8405 | </desc>
|
---|
8406 | </param>
|
---|
8407 | </method>
|
---|
8408 |
|
---|
8409 | <method name="unlockRead">
|
---|
8410 | <desc>
|
---|
8411 | Cancels the read lock previously set by <link to="#lockRead"/>.
|
---|
8412 |
|
---|
8413 | For both, success and failure, this method returns the current state
|
---|
8414 | of the medium <b>after</b> the operation.
|
---|
8415 |
|
---|
8416 | See <link to="#lockRead"/> for more details.
|
---|
8417 |
|
---|
8418 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8419 | Medium not locked for reading.
|
---|
8420 | </result>
|
---|
8421 |
|
---|
8422 | </desc>
|
---|
8423 | <param name="state" type="MediaState" dir="return">
|
---|
8424 | <desc>
|
---|
8425 | State of the medium after the operation.
|
---|
8426 | </desc>
|
---|
8427 | </param>
|
---|
8428 | </method>
|
---|
8429 |
|
---|
8430 | <method name="lockWrite">
|
---|
8431 | <desc>
|
---|
8432 | Locks this medium for writing.
|
---|
8433 |
|
---|
8434 | The write lock, as opposed to <link to="#lockRead"/>, is
|
---|
8435 | exclusive: there may be only one client holding a write lock
|
---|
8436 | and there may be no read locks while the write lock is held.
|
---|
8437 |
|
---|
8438 | When the medium is locked for writing, it cannot be modified
|
---|
8439 | from within VirtualBox and it is not guaranteed that the values
|
---|
8440 | of its properties are up-to-date. Any method that changes the
|
---|
8441 | properties of this medium or contents of the storage unit will
|
---|
8442 | return an error (unless explicitly stated otherwise) and an
|
---|
8443 | attempt to start a virtual machine wanting to modify or to
|
---|
8444 | read the medium will fail.
|
---|
8445 |
|
---|
8446 | When the virtual machine is started up, it locks for writing all
|
---|
8447 | media it uses to write data to. If any medium could not be locked
|
---|
8448 | for writing, the startup procedure will fail.
|
---|
8449 |
|
---|
8450 | The medium locked for writing must be unlocked using the <link
|
---|
8451 | to="#unlockWrite"/> method. Calls to <link to="#lockWrite"/>
|
---|
8452 | can <b>not</b> be nested and must be followed by a<link
|
---|
8453 | to="#unlockWrite"/> call before the next lockWrite call.
|
---|
8454 |
|
---|
8455 | This method sets the media state to <link to="MediaState_LockedWrite" />
|
---|
8456 | on success. The state prior to this call must be <link to="MediaState_Created"/>
|
---|
8457 | or <link to="MediaState_Inaccessible"/>. As you can see, inaccessible
|
---|
8458 | media can be locked too. This is not an error; this method
|
---|
8459 | performs a logical lock preventing modifications of this
|
---|
8460 | media through the VirtualBox API, not a physical lock of the
|
---|
8461 | underlying storage unit.
|
---|
8462 |
|
---|
8463 | For both, success and failure, this method returns the current
|
---|
8464 | state of the medium <b>before</b> the operation.
|
---|
8465 |
|
---|
8466 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8467 | Invalid media state (e.g. not created, locked, inaccessible,
|
---|
8468 | creating, deleting).
|
---|
8469 | </result>
|
---|
8470 |
|
---|
8471 | </desc>
|
---|
8472 | <param name="state" type="MediaState" dir="return">
|
---|
8473 | <desc>
|
---|
8474 | State of the medium after the operation.
|
---|
8475 | </desc>
|
---|
8476 | </param>
|
---|
8477 | </method>
|
---|
8478 |
|
---|
8479 | <method name="unlockWrite">
|
---|
8480 | <desc>
|
---|
8481 | Cancels the write lock previously set by <link to="#lockWrite"/>.
|
---|
8482 |
|
---|
8483 | For both, success and failure, this method returns the current
|
---|
8484 | state of the medium <b>after</b> the operation.
|
---|
8485 |
|
---|
8486 | See <link to="#lockWrite"/> for more details.
|
---|
8487 |
|
---|
8488 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8489 | Medium not locked for writing.
|
---|
8490 | </result>
|
---|
8491 |
|
---|
8492 | </desc>
|
---|
8493 | <param name="state" type="MediaState" dir="return">
|
---|
8494 | <desc>
|
---|
8495 | State of the medium after the operation.
|
---|
8496 | </desc>
|
---|
8497 | </param>
|
---|
8498 | </method>
|
---|
8499 |
|
---|
8500 | <method name="close">
|
---|
8501 | <desc>
|
---|
8502 | Closes this medium.
|
---|
8503 |
|
---|
8504 | The hard disk must not be attached to any known virtual machine
|
---|
8505 | and must not have any known child hard disks, otherwise the
|
---|
8506 | operation will fail.
|
---|
8507 |
|
---|
8508 | When the hard disk is successfully closed, it gets removed from
|
---|
8509 | the list of remembered hard disks, but its storage unit is not
|
---|
8510 | deleted. In particular, this means that this hard disk can be
|
---|
8511 | later opened again using the <link
|
---|
8512 | to="IVirtualBox::openHardDisk"/> call.
|
---|
8513 |
|
---|
8514 | Note that after this method successfully returns, the given hard
|
---|
8515 | disk object becomes uninitialized. This means that any attempt
|
---|
8516 | to call any of its methods or attributes will fail with the
|
---|
8517 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error.
|
---|
8518 |
|
---|
8519 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
8520 | Invalid media state (other than not created, created or
|
---|
8521 | inaccessible).
|
---|
8522 | </result>
|
---|
8523 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
8524 | Medium attached to virtual machine.
|
---|
8525 | </result>
|
---|
8526 | <result name="VBOX_E_FILE_ERROR">
|
---|
8527 | Settings file not accessible.
|
---|
8528 | </result>
|
---|
8529 | <result name="VBOX_E_XML_ERROR">
|
---|
8530 | Could not parse the settings file.
|
---|
8531 | </result>
|
---|
8532 |
|
---|
8533 | </desc>
|
---|
8534 | </method>
|
---|
8535 |
|
---|
8536 | </interface>
|
---|
8537 |
|
---|
8538 |
|
---|
8539 | <!--
|
---|
8540 | // IHardDisk
|
---|
8541 | /////////////////////////////////////////////////////////////////////////
|
---|
8542 | -->
|
---|
8543 |
|
---|
8544 | <enum
|
---|
8545 | name="HardDiskType"
|
---|
8546 | uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a"
|
---|
8547 | >
|
---|
8548 | <desc>
|
---|
8549 | Virtual hard disk type.
|
---|
8550 | <see>IHardDisk</see>
|
---|
8551 | </desc>
|
---|
8552 |
|
---|
8553 | <const name="Normal" value="0">
|
---|
8554 | <desc>
|
---|
8555 | Normal hard disk (attached directly or indirectly, preserved
|
---|
8556 | when taking snapshots).
|
---|
8557 | </desc>
|
---|
8558 | </const>
|
---|
8559 | <const name="Immutable" value="1">
|
---|
8560 | <desc>
|
---|
8561 | Immutable hard disk (attached indirectly, changes are wiped out
|
---|
8562 | after powering off the virtual machine).
|
---|
8563 | </desc>
|
---|
8564 | </const>
|
---|
8565 | <const name="Writethrough" value="2">
|
---|
8566 | <desc>
|
---|
8567 | Write through hard disk (attached directly, ignored when
|
---|
8568 | taking snapshots).
|
---|
8569 | </desc>
|
---|
8570 | </const>
|
---|
8571 | </enum>
|
---|
8572 |
|
---|
8573 | <enum
|
---|
8574 | name="HardDiskVariant"
|
---|
8575 | uuid="eb7fc6b3-ae23-4c5d-a1f6-e3522dd1efb0"
|
---|
8576 | >
|
---|
8577 | <desc>
|
---|
8578 | Virtual hard disk image variant. More than one flag may be set.
|
---|
8579 | <see>IHardDisk</see>
|
---|
8580 | </desc>
|
---|
8581 |
|
---|
8582 | <const name="Standard" value="0">
|
---|
8583 | <desc>
|
---|
8584 | No particular variant requested, results in using the backend default.
|
---|
8585 | </desc>
|
---|
8586 | </const>
|
---|
8587 | <const name="VmdkSplit2G" value="0x01">
|
---|
8588 | <desc>
|
---|
8589 | VMDK image split in chunks of less than 2GByte.
|
---|
8590 | </desc>
|
---|
8591 | </const>
|
---|
8592 | <const name="VmdkStreamOptimized" value="0x04">
|
---|
8593 | <desc>
|
---|
8594 | VMDK streamOptimized image. Special import/export format which is
|
---|
8595 | read-only/append-only.
|
---|
8596 | </desc>
|
---|
8597 | </const>
|
---|
8598 | <const name="VmdkESX" value="0x08">
|
---|
8599 | <desc>
|
---|
8600 | VMDK format variant used on ESX products.
|
---|
8601 | </desc>
|
---|
8602 | </const>
|
---|
8603 | <const name="Fixed" value="0x10000">
|
---|
8604 | <desc>
|
---|
8605 | Fixed image. Only allowed for base images.
|
---|
8606 | </desc>
|
---|
8607 | </const>
|
---|
8608 | <const name="Diff" value="0x20000">
|
---|
8609 | <desc>
|
---|
8610 | Fixed image. Only allowed for base images.
|
---|
8611 | </desc>
|
---|
8612 | </const>
|
---|
8613 | </enum>
|
---|
8614 |
|
---|
8615 | <interface
|
---|
8616 | name="IHardDiskAttachment" extends="$unknown"
|
---|
8617 | uuid="b1dd04bb-93c0-4ad3-a9cf-82316e595836"
|
---|
8618 | wsmap="struct"
|
---|
8619 | >
|
---|
8620 | <desc>
|
---|
8621 | The IHardDiskAttachment interface represents a hard disk attachment of a
|
---|
8622 | virtual machine.
|
---|
8623 |
|
---|
8624 | Every hard disk attachment specifies a slot of the virtual hard disk
|
---|
8625 | controller and a virtual hard disk attached to this slot.
|
---|
8626 |
|
---|
8627 | The array of hard disk attachments is returned by
|
---|
8628 | <link to="IMachine::hardDiskAttachments"/>.
|
---|
8629 | </desc>
|
---|
8630 |
|
---|
8631 | <attribute name="hardDisk" type="IHardDisk" readonly="yes">
|
---|
8632 | <desc>Hard disk object associated with this attachment.</desc>
|
---|
8633 | </attribute>
|
---|
8634 |
|
---|
8635 | <attribute name="controller" type="wstring" readonly="yes">
|
---|
8636 | <desc>Interface bus of this attachment.</desc>
|
---|
8637 | </attribute>
|
---|
8638 |
|
---|
8639 | <attribute name="port" type="long" readonly="yes">
|
---|
8640 | <desc>Port number of this attachment.</desc>
|
---|
8641 | </attribute>
|
---|
8642 |
|
---|
8643 | <attribute name="device" type="long" readonly="yes">
|
---|
8644 | <desc>Device slot number of this attachment.</desc>
|
---|
8645 | </attribute>
|
---|
8646 |
|
---|
8647 | </interface>
|
---|
8648 |
|
---|
8649 | <interface
|
---|
8650 | name="IHardDisk" extends="IMedium"
|
---|
8651 | uuid="62551115-83b8-4d20-925f-79e9d3c00f96"
|
---|
8652 | wsmap="managed"
|
---|
8653 | >
|
---|
8654 | <desc>
|
---|
8655 | The IHardDisk interface represents a virtual hard disk drive
|
---|
8656 | used by a virtual machine. This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
8657 |
|
---|
8658 | <h3>Hard Disk Types</h3>
|
---|
8659 |
|
---|
8660 | There are three types of hard disks:
|
---|
8661 | <link to="HardDiskType_Normal">Normal</link>,
|
---|
8662 | <link to="HardDiskType_Immutable">Immutable</link> and
|
---|
8663 | <link to="HardDiskType_Writethrough">Writethrough</link>. The type of the
|
---|
8664 | hard disk defines how the hard disk is attached to a virtual machine and
|
---|
8665 | what happens when a <link to="ISnapshot">snapshot</link> of the virtual
|
---|
8666 | machine with the attached hard disk is taken. The type of the hard disk is
|
---|
8667 | defined by the <link to="#type"/> attribute.
|
---|
8668 |
|
---|
8669 | All hard disks can be also divided in two groups: <i>base</i> hard
|
---|
8670 | disks and <i>differencing</i> hard disks. A base hard disk contains all
|
---|
8671 | sectors of the hard disk data in its own storage and therefore can be
|
---|
8672 | used independently. On the contrary, a differencing hard disk is a
|
---|
8673 | "delta" to some other disk and contains only those sectors which differ
|
---|
8674 | from that other disk, which is then called a <i>parent</i>. The differencing
|
---|
8675 | hard disk is said to be <i>linked to</i> that parent.
|
---|
8676 | The parent may be itself a differencing image, thus forming a chain of
|
---|
8677 | linked hard disks. The last element in that chain (sometimes referred to as
|
---|
8678 | the root hard disk) must always be a base. Note that several differencing
|
---|
8679 | hard disks may be linked to the same parent hard disk.
|
---|
8680 |
|
---|
8681 | Differencing hard disks can be distinguished from base hard disks by
|
---|
8682 | querying the <link to="#parent"/> attribute: base hard disks do not have
|
---|
8683 | parents they would depend on, so the value of this attribute is always
|
---|
8684 | @c null for them. Using this attribute, it is possible to walk up
|
---|
8685 | the hard disk tree (from the child hard disk to its parent). It is also
|
---|
8686 | possible to walk down the tree using the <link to="#children"/>
|
---|
8687 | attribute.
|
---|
8688 |
|
---|
8689 | Note that the type of all differencing hard disks is
|
---|
8690 | <link to="HardDiskType_Normal" />; all other values are
|
---|
8691 | meaningless for them. Base hard disks may be of any type.
|
---|
8692 |
|
---|
8693 | <h3>Creating Hard Disks</h3>
|
---|
8694 |
|
---|
8695 | New base hard disks are created using
|
---|
8696 | <link to="IVirtualBox::createHardDisk"/>. Existing hard disks are
|
---|
8697 | opened using <link to="IVirtualBox::openHardDisk"/>. Differencing hard
|
---|
8698 | disks are usually implicitly created by VirtualBox when needed but may
|
---|
8699 | also be created explicitly using <link to="#createDiffStorage"/>.
|
---|
8700 |
|
---|
8701 | After the hard disk is successfully created (including the storage unit)
|
---|
8702 | or opened, it becomes a known hard disk (remembered in the internal media
|
---|
8703 | registry). Known hard disks can be attached to a virtual machine, accessed
|
---|
8704 | through <link to="IVirtualBox::getHardDisk"/> and
|
---|
8705 | <link to="IVirtualBox::findHardDisk"/> methods or enumerated using the
|
---|
8706 | <link to="IVirtualBox::hardDisks"/> array (only for base hard disks).
|
---|
8707 |
|
---|
8708 | The following methods, besides <link to="IMedium::close"/>,
|
---|
8709 | automatically remove the hard disk from the media registry:
|
---|
8710 | <ul>
|
---|
8711 | <li><link to="#deleteStorage"/></li>
|
---|
8712 | <li><link to="#mergeTo"/></li>
|
---|
8713 | </ul>
|
---|
8714 |
|
---|
8715 | If the storage unit of the hard disk is a regular file in the host's
|
---|
8716 | file system then the rules stated in the description of the
|
---|
8717 | <link to="IMedium::location"/> attribute apply when setting its value. In
|
---|
8718 | addition, a plain file name without any path may be given, in which case
|
---|
8719 | the <link to="ISystemProperties::defaultHardDiskFolder"> default hard disk
|
---|
8720 | folder</link> will be prepended to it.
|
---|
8721 |
|
---|
8722 | <h4>Automatic composition of the file name part</h4>
|
---|
8723 |
|
---|
8724 | Another extension to the <link to="IMedium::location"/> attribute is that
|
---|
8725 | there is a possibility to cause VirtualBox to compose a unique value for
|
---|
8726 | the file name part of the location using the UUID of the hard disk. This
|
---|
8727 | applies only to hard disks in <link to="MediaState_NotCreated"/> state,
|
---|
8728 | e.g. before the storage unit is created, and works as follows. You set the
|
---|
8729 | value of the <link to="IMedium::location"/> attribute to a location
|
---|
8730 | specification which only contains the path specification but not the file
|
---|
8731 | name part and ends with either a forward slash or a backslash character.
|
---|
8732 | In response, VirtualBox will generate a new UUID for the hard disk and
|
---|
8733 | compose the file name using the following pattern:
|
---|
8734 | <pre>
|
---|
8735 | <path>/{<uuid>}.<ext>
|
---|
8736 | </pre>
|
---|
8737 | where <tt><path></tt> is the supplied path specification,
|
---|
8738 | <tt><uuid></tt> is the newly generated UUID and <tt><ext></tt>
|
---|
8739 | is the default extension for the storage format of this hard disk. After
|
---|
8740 | that, you may call any of the methods that create a new hard disk storage
|
---|
8741 | unit and they will use the generated UUID and file name.
|
---|
8742 |
|
---|
8743 | <h3>Attaching Hard Disks</h3>
|
---|
8744 |
|
---|
8745 | Hard disks are attached to virtual machines using the
|
---|
8746 | <link to="IMachine::attachHardDisk"/> method and detached using the
|
---|
8747 | <link to="IMachine::detachHardDisk"/> method. Depending on their
|
---|
8748 | <link to="#type"/>, hard disks are attached either
|
---|
8749 | <i>directly</i> or <i>indirectly</i>.
|
---|
8750 |
|
---|
8751 | When a hard disk is being attached directly, it is associated with the
|
---|
8752 | virtual machine and used for hard disk operations when the machine is
|
---|
8753 | running. When a hard disk is being attached indirectly, a new differencing
|
---|
8754 | hard disk linked to it is implicitly created and this differencing hard
|
---|
8755 | disk is associated with the machine and used for hard disk operations.
|
---|
8756 | This also means that if <link to="IMachine::attachHardDisk"/> performs
|
---|
8757 | a direct attachment then the same hard disk will be returned in response
|
---|
8758 | to the subsequent <link to="IMachine::getHardDisk"/> call; however if
|
---|
8759 | an indirect attachment is performed then
|
---|
8760 | <link to="IMachine::getHardDisk"/> will return the implicitly created
|
---|
8761 | differencing hard disk, not the original one passed to <link
|
---|
8762 | to="IMachine::attachHardDisk"/>. The following table shows the
|
---|
8763 | dependency of the attachment type on the hard disk type:
|
---|
8764 |
|
---|
8765 | <table>
|
---|
8766 | <tr>
|
---|
8767 | <th>Hard Disk Type</th>
|
---|
8768 | <th>Direct or Indirect?</th>
|
---|
8769 | </tr>
|
---|
8770 | <tr>
|
---|
8771 | <td>Normal (Base)</td>
|
---|
8772 | <td>
|
---|
8773 | Normal base hard disks that do not have children (i.e. differencing
|
---|
8774 | hard disks linked to them) and that are not already attached to
|
---|
8775 | virtual machines in snapshots are attached <b>directly</b>.
|
---|
8776 | Otherwise, they are attached <b>indirectly</b> because having
|
---|
8777 | dependent children or being part of the snapshot makes it impossible
|
---|
8778 | to modify hard disk contents without breaking the integrity of the
|
---|
8779 | dependent party. The <link to="#readOnly"/> attribute allows to
|
---|
8780 | quickly determine the kind of the attachment for the given hard
|
---|
8781 | disk. Note that if a normal base hard disk is to be indirectly
|
---|
8782 | attached to a virtual machine with snapshots then a special
|
---|
8783 | procedure called <i>smart attachment</i> is performed (see below).
|
---|
8784 | </td>
|
---|
8785 | </tr>
|
---|
8786 | <tr>
|
---|
8787 | <td>Normal (Differencing)</td>
|
---|
8788 | <td>
|
---|
8789 | Differencing hard disks are like normal base hard disks: attached
|
---|
8790 | <b>directly</b> if they do not have children and are not attached to
|
---|
8791 | virtual machines in snapshots, and <b>indirectly</b> otherwise. Note
|
---|
8792 | that the smart attachment procedure is never performed for
|
---|
8793 | differencing hard disks.
|
---|
8794 | </td>
|
---|
8795 | </tr>
|
---|
8796 | <tr>
|
---|
8797 | <td>Immutable</td>
|
---|
8798 | <td>
|
---|
8799 | Immutable hard disks are always attached <b>indirectly</b> because
|
---|
8800 | they are designed to be non-writable. If an immutable hard disk is
|
---|
8801 | attached to a virtual machine with snapshots then a special
|
---|
8802 | procedure called smart attachment is performed (see below).
|
---|
8803 | </td>
|
---|
8804 | </tr>
|
---|
8805 | <tr>
|
---|
8806 | <td>Writethrough</td>
|
---|
8807 | <td>
|
---|
8808 | Writethrough hard disks are always attached <b>directly</b>, also as
|
---|
8809 | designed. This also means that writethrough hard disks cannot have
|
---|
8810 | other hard disks linked to them at all.
|
---|
8811 | </td>
|
---|
8812 | </tr>
|
---|
8813 | </table>
|
---|
8814 |
|
---|
8815 | Note that the same hard disk, regardless of its type, may be attached to
|
---|
8816 | more than one virtual machine at a time. In this case, the machine that is
|
---|
8817 | started first gains exclusive access to the hard disk and attempts to
|
---|
8818 | start other machines having this hard disk attached will fail until the
|
---|
8819 | first machine is powered down.
|
---|
8820 |
|
---|
8821 | Detaching hard disks is performed in a <i>deferred</i> fashion. This means
|
---|
8822 | that the given hard disk remains associated with the given machine after a
|
---|
8823 | successful <link to="IMachine::detachHardDisk"/> call until
|
---|
8824 | <link to="IMachine::saveSettings"/> is called to save all changes to
|
---|
8825 | machine settings to disk. This deferring is necessary to guarantee that
|
---|
8826 | the hard disk configuration may be restored at any time by a call to
|
---|
8827 | <link to="IMachine::discardSettings"/> before the settings
|
---|
8828 | are saved (committed).
|
---|
8829 |
|
---|
8830 | Note that if <link to="IMachine::discardSettings"/> is called after
|
---|
8831 | indirectly attaching some hard disks to the machine but before a call to
|
---|
8832 | <link to="IMachine::saveSettings"/> is made, it will implicitly delete
|
---|
8833 | all differencing hard disks implicitly created by
|
---|
8834 | <link to="IMachine::attachHardDisk"/> for these indirect attachments.
|
---|
8835 | Such implicitly created hard disks will also be immediately deleted when
|
---|
8836 | detached explicitly using the <link to="IMachine::detachHardDisk"/>
|
---|
8837 | call if it is made before <link to="IMachine::saveSettings"/>. This
|
---|
8838 | implicit deletion is safe because newly created differencing hard
|
---|
8839 | disks do not contain any user data.
|
---|
8840 |
|
---|
8841 | However, keep in mind that detaching differencing hard disks that were
|
---|
8842 | implicitly created by <link to="IMachine::attachHardDisk"/>
|
---|
8843 | before the last <link to="IMachine::saveSettings"/> call will
|
---|
8844 | <b>not</b> implicitly delete them as they may already contain some data
|
---|
8845 | (for example, as a result of virtual machine execution). If these hard
|
---|
8846 | disks are no more necessary, the caller can always delete them explicitly
|
---|
8847 | using <link to="#deleteStorage"/> after they are actually de-associated
|
---|
8848 | from this machine by the <link to="IMachine::saveSettings"/> call.
|
---|
8849 |
|
---|
8850 | <h3>Smart Attachment</h3>
|
---|
8851 |
|
---|
8852 | When normal base or immutable hard disks are indirectly attached to a
|
---|
8853 | virtual machine then some additional steps are performed to make sure the
|
---|
8854 | virtual machine will have the most recent "view" of the hard disk being
|
---|
8855 | attached. These steps include walking through the machine's snapshots
|
---|
8856 | starting from the current one and going through ancestors up to the first
|
---|
8857 | snapshot. Hard disks attached to the virtual machine in all
|
---|
8858 | of the encountered snapshots are checked whether they are descendants of
|
---|
8859 | the given normal base or immutable hard disk. The first found child (which
|
---|
8860 | is the differencing hard disk) will be used instead of the normal base or
|
---|
8861 | immutable hard disk as a parent for creating a new differencing hard disk
|
---|
8862 | that will be actually attached to the machine. And only if no descendants
|
---|
8863 | are found or if the virtual machine does not have any snapshots then the
|
---|
8864 | normal base or immutable hard disk will be used itself as a parent for
|
---|
8865 | this differencing hard disk.
|
---|
8866 |
|
---|
8867 | It is easier to explain what smart attachment does using the
|
---|
8868 | following example:
|
---|
8869 | <pre>
|
---|
8870 | BEFORE attaching B.vdi: AFTER attaching B.vdi:
|
---|
8871 |
|
---|
8872 | Snapshot 1 (B.vdi) Snapshot 1 (B.vdi)
|
---|
8873 | Snapshot 2 (D1->B.vdi) Snapshot 2 (D1->B.vdi)
|
---|
8874 | Snapshot 3 (D2->D1.vdi) Snapshot 3 (D2->D1.vdi)
|
---|
8875 | Snapshot 4 (none) Snapshot 4 (none)
|
---|
8876 | CurState (none) CurState (D3->D2.vdi)
|
---|
8877 |
|
---|
8878 | NOT
|
---|
8879 | ...
|
---|
8880 | CurState (D3->B.vdi)
|
---|
8881 | </pre>
|
---|
8882 | The first column is the virtual machine configuration before the base hard
|
---|
8883 | disk <tt>B.vdi</tt> is attached, the second column shows the machine after
|
---|
8884 | this hard disk is attached. Constructs like <tt>D1->B.vdi</tt> and similar
|
---|
8885 | mean that the hard disk that is actually attached to the machine is a
|
---|
8886 | differencing hard disk, <tt>D1.vdi</tt>, which is linked to (based on)
|
---|
8887 | another hard disk, <tt>B.vdi</tt>.
|
---|
8888 |
|
---|
8889 | As we can see from the example, the hard disk <tt>B.vdi</tt> was detached
|
---|
8890 | from the machine before taking Snapshot 4. Later, after Snapshot 4 was
|
---|
8891 | taken, the user decides to attach <tt>B.vdi</tt> again. <tt>B.vdi</tt> has
|
---|
8892 | dependent child hard disks (<tt>D1.vdi</tt>, <tt>D2.vdi</tt>), therefore
|
---|
8893 | it cannot be attached directly and needs an indirect attachment (i.e.
|
---|
8894 | implicit creation of a new differencing hard disk). Due to the smart
|
---|
8895 | attachment procedure, the new differencing hard disk
|
---|
8896 | (<tt>D3.vdi</tt>) will be based on <tt>D2.vdi</tt>, not on
|
---|
8897 | <tt>B.vdi</tt> itself, since <tt>D2.vdi</tt> is the most recent view of
|
---|
8898 | <tt>B.vdi</tt> existing for this snapshot branch of the given virtual
|
---|
8899 | machine.
|
---|
8900 |
|
---|
8901 | Note that if there is more than one descendant hard disk of the given base
|
---|
8902 | hard disk found in a snapshot, and there is an exact device, channel and
|
---|
8903 | bus match, then this exact match will be used. Otherwise, the youngest
|
---|
8904 | descendant will be picked up.
|
---|
8905 |
|
---|
8906 | There is one more important aspect of the smart attachment procedure which
|
---|
8907 | is not related to snapshots at all. Before walking through the snapshots
|
---|
8908 | as described above, the backup copy of the current list of hard disk
|
---|
8909 | attachment is searched for descendants. This backup copy is created when
|
---|
8910 | the hard disk configuration is changed for the first time after the last
|
---|
8911 | <link to="IMachine::saveSettings"/> call and used by
|
---|
8912 | <link to="IMachine::discardSettings"/> to undo the recent hard disk
|
---|
8913 | changes. When such a descendant is found in this backup copy, it will be
|
---|
8914 | simply re-attached back, without creating a new differencing hard disk for
|
---|
8915 | it. This optimization is necessary to make it possible to re-attach the
|
---|
8916 | base or immutable hard disk to a different bus, channel or device slot
|
---|
8917 | without losing the contents of the differencing hard disk actually
|
---|
8918 | attached to the machine in place of it.
|
---|
8919 | </desc>
|
---|
8920 |
|
---|
8921 | <attribute name="format" type="wstring" readonly="yes">
|
---|
8922 | <desc>
|
---|
8923 | Storage format of this hard disk.
|
---|
8924 |
|
---|
8925 | The value of this attribute is a string that specifies a backend used to
|
---|
8926 | store hard disk data. The storage format is defined when you create a
|
---|
8927 | new hard disk or automatically detected when you open an existing hard
|
---|
8928 | disk medium, and cannot be changed later.
|
---|
8929 |
|
---|
8930 | The list of all storage formats supported by this VirtualBox
|
---|
8931 | installation can be obtained using
|
---|
8932 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
8933 | </desc>
|
---|
8934 | </attribute>
|
---|
8935 |
|
---|
8936 | <attribute name="type" type="HardDiskType">
|
---|
8937 | <desc>
|
---|
8938 | Type (role) of this hard disk.
|
---|
8939 |
|
---|
8940 | The following constraints apply when changing the value of this
|
---|
8941 | attribute:
|
---|
8942 | <ul>
|
---|
8943 | <li>If a hard disk is attached to a virtual machine (either in the
|
---|
8944 | current state or in one of the snapshots), its type cannot be
|
---|
8945 | changed.
|
---|
8946 | </li>
|
---|
8947 | <li>As long as the hard disk has children, its type cannot be set
|
---|
8948 | to <link to="HardDiskType_Writethrough"/>.
|
---|
8949 | </li>
|
---|
8950 | <li>The type of all differencing hard disks is
|
---|
8951 | <link to="HardDiskType_Normal"/> and cannot be changed.
|
---|
8952 | </li>
|
---|
8953 | </ul>
|
---|
8954 |
|
---|
8955 | The type of a newly created or opened hard disk is set to
|
---|
8956 | <link to="HardDiskType_Normal"/>.
|
---|
8957 | </desc>
|
---|
8958 | </attribute>
|
---|
8959 |
|
---|
8960 | <attribute name="parent" type="IHardDisk" readonly="yes">
|
---|
8961 | <desc>
|
---|
8962 | Parent of this hard disk (a hard disk this hard disk is directly based
|
---|
8963 | on).
|
---|
8964 |
|
---|
8965 | Only differencing hard disks have parents. For base (non-differencing)
|
---|
8966 | hard disks, @c null is returned.
|
---|
8967 | </desc>
|
---|
8968 | </attribute>
|
---|
8969 |
|
---|
8970 | <attribute name="children" type="IHardDisk" safearray="yes" readonly="yes">
|
---|
8971 | <desc>
|
---|
8972 | Children of this hard disk (all differencing hard disks directly based
|
---|
8973 | on this hard disk). A @c null array is returned if this hard disk
|
---|
8974 | does not have any children.
|
---|
8975 | </desc>
|
---|
8976 | </attribute>
|
---|
8977 |
|
---|
8978 | <attribute name="root" type="IHardDisk" readonly="yes">
|
---|
8979 | <desc>
|
---|
8980 | Root hard disk of this hard disk.
|
---|
8981 |
|
---|
8982 | If this is a differencing hard disk, its root hard disk is the base hard
|
---|
8983 | disk the given hard disk branch starts from. For all other types of hard
|
---|
8984 | disks, this property returns the hard disk object itself (i.e. the same
|
---|
8985 | object this property is read on).
|
---|
8986 | </desc>
|
---|
8987 | </attribute>
|
---|
8988 |
|
---|
8989 | <attribute name="readOnly" type="boolean" readonly="yes">
|
---|
8990 | <desc>
|
---|
8991 | Returns @c true if this hard disk is read-only and @c false otherwise.
|
---|
8992 |
|
---|
8993 | A hard disk is considered to be read-only when its contents cannot be
|
---|
8994 | modified without breaking the integrity of other parties that depend on
|
---|
8995 | this hard disk such as its child hard disks or snapshots of virtual
|
---|
8996 | machines where this hard disk is attached to these machines. If there
|
---|
8997 | are no children and no such snapshots then there is no dependency and
|
---|
8998 | the hard disk is not read-only.
|
---|
8999 |
|
---|
9000 | The value of this attribute can be used to determine the kind of the
|
---|
9001 | attachment that will take place when attaching this hard disk to a
|
---|
9002 | virtual machine. If the value is @c false then the hard disk will
|
---|
9003 | be attached directly. If the value is @c true then the hard disk
|
---|
9004 | will be attached indirectly by creating a new differencing child hard
|
---|
9005 | disk for that. See the interface description for more information.
|
---|
9006 |
|
---|
9007 | Note that all <link to="HardDiskType_Immutable">Immutable</link> hard
|
---|
9008 | disks are always read-only while all
|
---|
9009 | <link to="HardDiskType_Writethrough">Writethrough</link> hard disks are
|
---|
9010 | always not.
|
---|
9011 |
|
---|
9012 | <note>
|
---|
9013 | The read-only condition represented by this attribute is related to
|
---|
9014 | the hard disk type and usage, not to the current
|
---|
9015 | <link to="IMedium::state">media state</link> and not to the read-only
|
---|
9016 | state of the storage unit.
|
---|
9017 | </note>
|
---|
9018 | </desc>
|
---|
9019 | </attribute>
|
---|
9020 |
|
---|
9021 | <attribute name="logicalSize" type="unsigned long long" readonly="yes">
|
---|
9022 | <desc>
|
---|
9023 | Logical size of this hard disk (in megabytes), as reported to the
|
---|
9024 | guest OS running inside the virtual machine this disk is
|
---|
9025 | attached to. The logical size is defined when the hard disk is created
|
---|
9026 | and cannot be changed later.
|
---|
9027 |
|
---|
9028 | <note>
|
---|
9029 | Reading this property on a differencing hard disk will return the size
|
---|
9030 | of its <link to="#root"/> hard disk.
|
---|
9031 | </note>
|
---|
9032 | <note>
|
---|
9033 | For hard disks whose state is <link to="#state"/> is <link
|
---|
9034 | to="MediaState_Inaccessible"/>, the value of this property is the
|
---|
9035 | last known logical size. For <link to="MediaState_NotCreated"/> hard
|
---|
9036 | disks, the returned value is zero.
|
---|
9037 | </note>
|
---|
9038 | </desc>
|
---|
9039 | </attribute>
|
---|
9040 |
|
---|
9041 | <attribute name="autoReset" type="boolean">
|
---|
9042 | <desc>
|
---|
9043 | Whether this differencing hard disk will be automatically reset each
|
---|
9044 | time a virtual machine it is attached to is powered up.
|
---|
9045 |
|
---|
9046 | See <link to="#reset()"/> for more information about resetting
|
---|
9047 | differencing hard disks.
|
---|
9048 |
|
---|
9049 | <note>
|
---|
9050 | Reading this property on a base (non-differencing) hard disk will
|
---|
9051 | always @c false. Changing the value of this property in this
|
---|
9052 | case is not supported.
|
---|
9053 | </note>
|
---|
9054 |
|
---|
9055 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9056 | This is not a differencing hard disk (when changing the attribute
|
---|
9057 | value).
|
---|
9058 | </result>
|
---|
9059 | </desc>
|
---|
9060 | </attribute>
|
---|
9061 |
|
---|
9062 | <!-- storage methods -->
|
---|
9063 |
|
---|
9064 | <method name="getProperty">
|
---|
9065 | <desc>
|
---|
9066 | Returns the value of the custom hard disk property with the given name.
|
---|
9067 |
|
---|
9068 | The list of all properties supported by the given hard disk format can
|
---|
9069 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9070 |
|
---|
9071 | Note that if this method returns an empty string in @a value, the
|
---|
9072 | requested property is supported but currently not assigned any value.
|
---|
9073 |
|
---|
9074 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9075 | Requested property does not exist (not supported by the format).
|
---|
9076 | </result>
|
---|
9077 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
9078 | </desc>
|
---|
9079 | <param name="name" type="wstring" dir="in">
|
---|
9080 | <desc>Name of the property to get.</desc>
|
---|
9081 | </param>
|
---|
9082 | <param name="value" type="wstring" dir="return">
|
---|
9083 | <desc>Current property value.</desc>
|
---|
9084 | </param>
|
---|
9085 | </method>
|
---|
9086 |
|
---|
9087 | <method name="setProperty">
|
---|
9088 | <desc>
|
---|
9089 | Sets the value of the custom hard disk property with the given name.
|
---|
9090 |
|
---|
9091 | The list of all properties supported by the given hard disk format can
|
---|
9092 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9093 |
|
---|
9094 | Note that setting the property value to @c null or an empty string is
|
---|
9095 | equivalent to deleting the existing value. A default value (if it is
|
---|
9096 | defined for this property) will be used by the format backend in this
|
---|
9097 | case.
|
---|
9098 |
|
---|
9099 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9100 | Requested property does not exist (not supported by the format).
|
---|
9101 | </result>
|
---|
9102 | <result name="E_INVALIDARG">@a name is @c null or empty.</result>
|
---|
9103 | </desc>
|
---|
9104 | <param name="name" type="wstring" dir="in">
|
---|
9105 | <desc>Name of the property to set.</desc>
|
---|
9106 | </param>
|
---|
9107 | <param name="value" type="wstring" dir="in">
|
---|
9108 | <desc>Property value to set.</desc>
|
---|
9109 | </param>
|
---|
9110 | </method>
|
---|
9111 |
|
---|
9112 | <method name="getProperties">
|
---|
9113 | <desc>
|
---|
9114 | Returns values for a group of properties in one call.
|
---|
9115 |
|
---|
9116 | The names of the properties to get are specified using the @a names
|
---|
9117 | argument which is a list of comma-separated property names or
|
---|
9118 | an empty string if all properties are to be returned. Note that currently
|
---|
9119 | the value of this argument is ignored and the method always returns all
|
---|
9120 | existing properties.
|
---|
9121 |
|
---|
9122 | The list of all properties supported by the given hard disk format can
|
---|
9123 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9124 |
|
---|
9125 | The method returns two arrays, the array of property names corresponding
|
---|
9126 | to the @a names argument and the current values of these properties.
|
---|
9127 | Both arrays have the same number of elements with each elemend at the
|
---|
9128 | given index in the first array corresponds to an element at the same
|
---|
9129 | index in the second array.
|
---|
9130 |
|
---|
9131 | Note that for properties that do not have assigned values,
|
---|
9132 | an empty string is returned at the appropriate index in the
|
---|
9133 | @a returnValues array.
|
---|
9134 |
|
---|
9135 | </desc>
|
---|
9136 | <param name="names" type="wstring" dir="in">
|
---|
9137 | <desc>
|
---|
9138 | Names of properties to get.
|
---|
9139 | </desc>
|
---|
9140 | </param>
|
---|
9141 | <param name="returnNames" type="wstring" safearray="yes" dir="out">
|
---|
9142 | <desc>Names of returned properties.</desc>
|
---|
9143 | </param>
|
---|
9144 | <param name="returnValues" type="wstring" safearray="yes" dir="return">
|
---|
9145 | <desc>Values of returned properties.</desc>
|
---|
9146 | </param>
|
---|
9147 | </method>
|
---|
9148 |
|
---|
9149 | <method name="setProperties">
|
---|
9150 | <desc>
|
---|
9151 | Sets values for a group of properties in one call.
|
---|
9152 |
|
---|
9153 | The names of the properties to set are passed in the @a names
|
---|
9154 | array along with the new values for them in the @a values array. Both
|
---|
9155 | arrays have the same number of elements with each elemend at the given
|
---|
9156 | index in the first array corresponding to an element at the same index
|
---|
9157 | in the second array.
|
---|
9158 |
|
---|
9159 | If there is at least one property name in @a names that is not valid,
|
---|
9160 | the method will fail before changing the values of any other properties
|
---|
9161 | from the @a names array.
|
---|
9162 |
|
---|
9163 | Using this method over <link to="#setProperty"/> is preferred if you
|
---|
9164 | need to set several properties at once since it will result into less
|
---|
9165 | IPC calls.
|
---|
9166 |
|
---|
9167 | The list of all properties supported by the given hard disk format can
|
---|
9168 | be obtained with <link to="IHardDiskFormat::describeProperties"/>.
|
---|
9169 |
|
---|
9170 | Note that setting the property value to @c null or an empty string is
|
---|
9171 | equivalent to deleting the existing value. A default value (if it is
|
---|
9172 | defined for this property) will be used by the format backend in this
|
---|
9173 | case.
|
---|
9174 | </desc>
|
---|
9175 | <param name="names" type="wstring" safearray="yes" dir="in">
|
---|
9176 | <desc>Names of properties to set.</desc>
|
---|
9177 | </param>
|
---|
9178 | <param name="values" type="wstring" safearray="yes" dir="in">
|
---|
9179 | <desc>Values of properties to set.</desc>
|
---|
9180 | </param>
|
---|
9181 | </method>
|
---|
9182 |
|
---|
9183 | <!-- storage methods -->
|
---|
9184 |
|
---|
9185 | <method name="createBaseStorage">
|
---|
9186 | <desc>
|
---|
9187 | Starts creating a hard disk storage unit (fixed/dynamic, according
|
---|
9188 | to the variant flags) in in the background. The previous storage unit
|
---|
9189 | created for this object, if any, must first be deleted using
|
---|
9190 | <link to="#deleteStorage"/>, otherwise the operation will fail.
|
---|
9191 |
|
---|
9192 | Before the operation starts, the hard disk is placed in
|
---|
9193 | <link to="MediaState_Creating"/> state. If the create operation
|
---|
9194 | fails, the media will be placed back in <link to="MediaState_NotCreated"/>
|
---|
9195 | state.
|
---|
9196 |
|
---|
9197 | After the returned progress object reports that the operation has
|
---|
9198 | successfully completed, the media state will be set to <link
|
---|
9199 | to="MediaState_Created"/>, the hard disk will be remembered by this
|
---|
9200 | VirtualBox installation and may be attached to virtual machines.
|
---|
9201 |
|
---|
9202 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9203 | The variant of storage creation operation is not supported. See <link
|
---|
9204 | to="IHardDiskFormat::capabilities"/>.
|
---|
9205 | </result>
|
---|
9206 | </desc>
|
---|
9207 | <param name="logicalSize" type="unsigned long long" dir="in">
|
---|
9208 | <desc>Maximum logical size of the hard disk in megabytes.</desc>
|
---|
9209 | </param>
|
---|
9210 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9211 | <desc>Exact image variant which should be created.</desc>
|
---|
9212 | </param>
|
---|
9213 | <param name="progress" type="IProgress" dir="return">
|
---|
9214 | <desc>Progress object to track the operation completion.</desc>
|
---|
9215 | </param>
|
---|
9216 | </method>
|
---|
9217 |
|
---|
9218 | <method name="deleteStorage">
|
---|
9219 | <desc>
|
---|
9220 | Starts deleting the storage unit of this hard disk.
|
---|
9221 |
|
---|
9222 | The hard disk must not be attached to any known virtual machine and must
|
---|
9223 | not have any known child hard disks, otherwise the operation will fail.
|
---|
9224 | It will also fail if there is no storage unit to delete or if deletion
|
---|
9225 | is already in progress, or if the hard disk is being in use (locked for
|
---|
9226 | read or for write) or inaccessible. Therefore, the only valid state for
|
---|
9227 | this operation to succeed is <link to="MediaState_Created"/>.
|
---|
9228 |
|
---|
9229 | Before the operation starts, the hard disk is placed to
|
---|
9230 | <link to="MediaState_Deleting"/> state and gets removed from the list
|
---|
9231 | of remembered hard disks (media registry). If the delete operation
|
---|
9232 | fails, the media will be remembered again and placed back to
|
---|
9233 | <link to="MediaState_Created"/> state.
|
---|
9234 |
|
---|
9235 | After the returned progress object reports that the operation is
|
---|
9236 | complete, the media state will be set to
|
---|
9237 | <link to="MediaState_NotCreated"/> and you will be able to use one of
|
---|
9238 | the storage creation methods to create it again.
|
---|
9239 |
|
---|
9240 | <see>#close()</see>
|
---|
9241 |
|
---|
9242 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9243 | Hard disk is attached to a virtual machine.
|
---|
9244 | </result>
|
---|
9245 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9246 | Storage deletion is not allowed because neither of storage creation
|
---|
9247 | operations are supported. See
|
---|
9248 | <link to="IHardDiskFormat::capabilities"/>.
|
---|
9249 | </result>
|
---|
9250 |
|
---|
9251 | <note>
|
---|
9252 | If the deletion operation fails, it is not guaranteed that the storage
|
---|
9253 | unit still exists. You may check the <link to="IMedium::state"/> value
|
---|
9254 | to answer this question.
|
---|
9255 | </note>
|
---|
9256 | </desc>
|
---|
9257 | <param name="progress" type="IProgress" dir="return">
|
---|
9258 | <desc>Progress object to track the operation completion.</desc>
|
---|
9259 | </param>
|
---|
9260 | </method>
|
---|
9261 |
|
---|
9262 | <!-- diff methods -->
|
---|
9263 |
|
---|
9264 | <method name="createDiffStorage">
|
---|
9265 | <desc>
|
---|
9266 | Starts creating an empty differencing storage unit based on this hard
|
---|
9267 | disk in the format and at the location defined by the @a target
|
---|
9268 | argument.
|
---|
9269 |
|
---|
9270 | The target hard disk must be in <link to="MediaState_NotCreated"/>
|
---|
9271 | state (i.e. must not have an existing storage unit). Upon successful
|
---|
9272 | completion, this operation will set the type of the target hard disk to
|
---|
9273 | <link to="HardDiskType_Normal"/> and create a storage unit necessary to
|
---|
9274 | represent the differencing hard disk data in the given format (according
|
---|
9275 | to the storage format of the target object).
|
---|
9276 |
|
---|
9277 | After the returned progress object reports that the operation is
|
---|
9278 | successfully complete, the target hard disk gets remembered by this
|
---|
9279 | VirtualBox installation and may be attached to virtual machines.
|
---|
9280 |
|
---|
9281 | <note>
|
---|
9282 | The hard disk will be set to <link to="MediaState_LockedRead"/>
|
---|
9283 | state for the duration of this operation.
|
---|
9284 | </note>
|
---|
9285 | <result name="VBOX_E_OBJECT_IN_USE">
|
---|
9286 | Hard disk not in @c NotCreated state.
|
---|
9287 | </result>
|
---|
9288 | </desc>
|
---|
9289 | <param name="target" type="IHardDisk" dir="in">
|
---|
9290 | <desc>Target hard disk.</desc>
|
---|
9291 | </param>
|
---|
9292 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9293 | <desc>Exact image variant which should be created.</desc>
|
---|
9294 | </param>
|
---|
9295 | <param name="progress" type="IProgress" dir="return">
|
---|
9296 | <desc>Progress object to track the operation completion.</desc>
|
---|
9297 | </param>
|
---|
9298 | </method>
|
---|
9299 |
|
---|
9300 | <method name="mergeTo">
|
---|
9301 | <desc>
|
---|
9302 | Starts merging the contents of this hard disk and all intermediate
|
---|
9303 | differencing hard disks in the chain to the given target hard disk.
|
---|
9304 |
|
---|
9305 | The target hard disk must be either a descendant of this hard disk or
|
---|
9306 | its ancestor (otherwise this method will immediately return a failure).
|
---|
9307 | It follows that there are two logical directions of the merge operation:
|
---|
9308 | from ancestor to descendant (<i>forward merge</i>) and from descendant to
|
---|
9309 | ancestor (<i>backward merge</i>). Let us consider the following hard disk
|
---|
9310 | chain:
|
---|
9311 |
|
---|
9312 | <pre>Base <- Diff_1 <- Diff_2</pre>
|
---|
9313 |
|
---|
9314 | Here, calling this method on the <tt>Base</tt> hard disk object with
|
---|
9315 | <tt>Diff_2</tt> as an argument will be a forward merge; calling it on
|
---|
9316 | <tt>Diff_2</tt> with <tt>Base</tt> as an argument will be a backward
|
---|
9317 | merge. Note that in both cases the contents of the resulting hard disk
|
---|
9318 | will be the same, the only difference is the hard disk object that takes
|
---|
9319 | the result of the merge operation. In case of the forward merge in the
|
---|
9320 | above example, the result will be written to <tt>Diff_2</tt>; in case of
|
---|
9321 | the backward merge, the result will be written to <tt>Base</tt>. In
|
---|
9322 | other words, the result of the operation is always stored in the target
|
---|
9323 | hard disk.
|
---|
9324 |
|
---|
9325 | Upon successful operation completion, the storage units of all hard
|
---|
9326 | disks in the chain between this (source) hard disk and the target hard
|
---|
9327 | disk, including the source hard disk itself, will be automatically
|
---|
9328 | deleted and the relevant hard disk objects (including this hard disk)
|
---|
9329 | will become uninitialized. This means that any attempt to call any of
|
---|
9330 | their methods or attributes will fail with the
|
---|
9331 | <tt>"Object not ready" (E_ACCESSDENIED)</tt> error. Applied to the above
|
---|
9332 | example, the forward merge of <tt>Base</tt> to <tt>Diff_2</tt> will
|
---|
9333 | delete and uninitialize both <tt>Base</tt> and <tt>Diff_1</tt> hard
|
---|
9334 | disks. Note that <tt>Diff_2</tt> in this case will become a base hard
|
---|
9335 | disk itself since it will no longer be based on any other hard disk.
|
---|
9336 |
|
---|
9337 | Considering the above, all of the following conditions must be met in
|
---|
9338 | order for the merge operation to succeed:
|
---|
9339 | <ul>
|
---|
9340 | <li>
|
---|
9341 | Neither this (source) hard disk nor any intermediate
|
---|
9342 | differencing hard disk in the chain between it and the target
|
---|
9343 | hard disk is attached to any virtual machine.
|
---|
9344 | </li>
|
---|
9345 | <li>
|
---|
9346 | Neither the source hard disk nor the target hard disk is an
|
---|
9347 | <link to="HardDiskType_Immutable"/> hard disk.
|
---|
9348 | </li>
|
---|
9349 | <li>
|
---|
9350 | The part of the hard disk tree from the source hard disk to the
|
---|
9351 | target hard disk is a linear chain, i.e. all hard disks in this
|
---|
9352 | chain have exactly one child which is the next hard disk in this
|
---|
9353 | chain. The only exception from this rule is the target hard disk in
|
---|
9354 | the forward merge operation; it is allowed to have any number of
|
---|
9355 | child hard disks because the merge operation will hot change its
|
---|
9356 | logical contents (as it is seen by the guest OS or by children).
|
---|
9357 | </li>
|
---|
9358 | <li>
|
---|
9359 | None of the involved hard disks are in
|
---|
9360 | <link to="MediaState_LockedRead"/> or
|
---|
9361 | <link to="MediaState_LockedWrite"/> state.
|
---|
9362 | </li>
|
---|
9363 | </ul>
|
---|
9364 |
|
---|
9365 | <note>
|
---|
9366 | This (source) hard disk and all intermediates will be placed to <link
|
---|
9367 | to="MediaState_Deleting"/> state and the target hard disk will be
|
---|
9368 | placed to <link to="MediaState_LockedWrite"/> state and for the
|
---|
9369 | duration of this operation.
|
---|
9370 | </note>
|
---|
9371 | </desc>
|
---|
9372 | <param name="targetId" type="wstring" dir="in">
|
---|
9373 | <desc>UUID of the target ancestor or descendant hard disk.</desc>
|
---|
9374 | </param>
|
---|
9375 | <param name="progress" type="IProgress" dir="return">
|
---|
9376 | <desc>Progress object to track the operation completion.</desc>
|
---|
9377 | </param>
|
---|
9378 | </method>
|
---|
9379 |
|
---|
9380 | <!-- clone method -->
|
---|
9381 |
|
---|
9382 | <method name="cloneTo">
|
---|
9383 | <desc>
|
---|
9384 | Starts creating a clone of this hard disk in the format and at the
|
---|
9385 | location defined by the @a target argument.
|
---|
9386 |
|
---|
9387 | The target hard disk must be either in <link to="MediaState_NotCreated"/>
|
---|
9388 | state (i.e. must not have an existing storage unit) or in
|
---|
9389 | <link to="MediaState_Created"/> state (i.e. created and not locked, and
|
---|
9390 | big enough to hold the data or else the copy will be partial). Upon
|
---|
9391 | successful completion, the cloned hard disk will contain exactly the
|
---|
9392 | same sector data as the hard disk being cloned, except that in the
|
---|
9393 | first case a new UUID for the clone will be randomly generated, and in
|
---|
9394 | the second case the UUID will remain unchanged.
|
---|
9395 |
|
---|
9396 | The @a parent argument defines which hard disk will be the parent
|
---|
9397 | of the clone. Passing a @c null reference indicates that the clone will
|
---|
9398 | be a base image, i.e. completely independent. It is possible to specify
|
---|
9399 | an arbitrary hard disk for this parameter, including the parent of the
|
---|
9400 | hard disk which is being cloned. Even cloning to a child of the source
|
---|
9401 | hard disk is possible. Note that when cloning to an existing image, the
|
---|
9402 | @a parent irgument is ignored.
|
---|
9403 |
|
---|
9404 | After the returned progress object reports that the operation is
|
---|
9405 | successfully complete, the target hard disk gets remembered by this
|
---|
9406 | VirtualBox installation and may be attached to virtual machines.
|
---|
9407 |
|
---|
9408 | <note>
|
---|
9409 | This hard disk will be placed to <link to="MediaState_LockedRead"/>
|
---|
9410 | state for the duration of this operation.
|
---|
9411 | </note>
|
---|
9412 | <result name="E_NOTIMPL">
|
---|
9413 | The specified cloning variant is not supported at the moment.
|
---|
9414 | </result>
|
---|
9415 | </desc>
|
---|
9416 | <param name="target" type="IHardDisk" dir="in">
|
---|
9417 | <desc>Target hard disk.</desc>
|
---|
9418 | </param>
|
---|
9419 | <param name="variant" type="HardDiskVariant" dir="in">
|
---|
9420 | <desc>Exact image variant which should be created.</desc>
|
---|
9421 | </param>
|
---|
9422 | <param name="parent" type="IHardDisk" dir="in">
|
---|
9423 | <desc>Parent of the cloned hard disk.</desc>
|
---|
9424 | </param>
|
---|
9425 | <param name="progress" type="IProgress" dir="return">
|
---|
9426 | <desc>Progress object to track the operation completion.</desc>
|
---|
9427 | </param>
|
---|
9428 | </method>
|
---|
9429 |
|
---|
9430 | <!-- other methods -->
|
---|
9431 |
|
---|
9432 | <method name="compact">
|
---|
9433 | <desc>
|
---|
9434 | Starts compacting of this hard disk. This means that the disk is
|
---|
9435 | transformed into a possibly more compact storage representation.
|
---|
9436 | This potentially creates temporary images, which can require a
|
---|
9437 | substantial amount of additional disk space.
|
---|
9438 |
|
---|
9439 | This hard disk will be placed to <link to="MediaState_LockedWrite"/>
|
---|
9440 | state and all its parent hard disks (if any) will be placed to
|
---|
9441 | <link to="MediaState_LockedRead"/> state for the duration of this
|
---|
9442 | operation.
|
---|
9443 |
|
---|
9444 | Please note that the results can be either returned straight away,
|
---|
9445 | or later as the result of the background operation via the object
|
---|
9446 | returned via the @a progress parameter.
|
---|
9447 |
|
---|
9448 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9449 | Hard disk format does not support compacting (but potentially
|
---|
9450 | needs it).
|
---|
9451 | </result>
|
---|
9452 | </desc>
|
---|
9453 | <param name="progress" type="IProgress" dir="return">
|
---|
9454 | <desc>Progress object to track the operation completion.</desc>
|
---|
9455 | </param>
|
---|
9456 | </method>
|
---|
9457 |
|
---|
9458 | <method name="reset">
|
---|
9459 | <desc>
|
---|
9460 | Starts erasing the contents of this differencing hard disk.
|
---|
9461 |
|
---|
9462 | This operation will reset the differencing hard disk to its initial
|
---|
9463 | state when it does not contain any sector data and any read operation is
|
---|
9464 | redirected to its parent hard disk.
|
---|
9465 |
|
---|
9466 | This hard disk will be placed to <link to="MediaState_LockedWrite"/>
|
---|
9467 | for the duration of this operation.
|
---|
9468 |
|
---|
9469 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
9470 | This is not a differencing hard disk.
|
---|
9471 | </result>
|
---|
9472 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9473 | Hard disk is not in <link to="MediaState_Created"/> or
|
---|
9474 | <link to="MediaState_Inaccessible"/> state.
|
---|
9475 | </result>
|
---|
9476 | </desc>
|
---|
9477 | <param name="progress" type="IProgress" dir="return">
|
---|
9478 | <desc>Progress object to track the operation completion.</desc>
|
---|
9479 | </param>
|
---|
9480 | </method>
|
---|
9481 |
|
---|
9482 | </interface>
|
---|
9483 |
|
---|
9484 |
|
---|
9485 | <!--
|
---|
9486 | // IHardDiskFormat
|
---|
9487 | /////////////////////////////////////////////////////////////////////////
|
---|
9488 | -->
|
---|
9489 |
|
---|
9490 | <enum
|
---|
9491 | name="DataType"
|
---|
9492 | uuid="d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7"
|
---|
9493 | >
|
---|
9494 | <const name="Int32" value="0"/>
|
---|
9495 | <const name="Int8" value="1"/>
|
---|
9496 | <const name="String" value="2"/>
|
---|
9497 | </enum>
|
---|
9498 |
|
---|
9499 | <enum
|
---|
9500 | name="DataFlags"
|
---|
9501 | uuid="86884dcf-1d6b-4f1b-b4bf-f5aa44959d60"
|
---|
9502 | >
|
---|
9503 | <const name="None" value="0x00"/>
|
---|
9504 | <const name="Mandatory" value="0x01"/>
|
---|
9505 | <const name="Expert" value="0x02"/>
|
---|
9506 | <const name="Array" value="0x04"/>
|
---|
9507 | <const name="FlagMask" value="0x07"/>
|
---|
9508 | </enum>
|
---|
9509 |
|
---|
9510 | <enum
|
---|
9511 | name="HardDiskFormatCapabilities"
|
---|
9512 | uuid="1df1e4aa-d25a-4ba6-b2a2-02f60eb5903b"
|
---|
9513 | >
|
---|
9514 | <desc>
|
---|
9515 | Hard disk format capability flags.
|
---|
9516 | </desc>
|
---|
9517 |
|
---|
9518 | <const name="Uuid" value="0x01">
|
---|
9519 | <desc>
|
---|
9520 | Supports UUIDs as expected by VirtualBox code.
|
---|
9521 | </desc>
|
---|
9522 | </const>
|
---|
9523 |
|
---|
9524 | <const name="CreateFixed" value="0x02">
|
---|
9525 | <desc>
|
---|
9526 | Supports creating fixed size images, allocating all space instantly.
|
---|
9527 | </desc>
|
---|
9528 | </const>
|
---|
9529 |
|
---|
9530 | <const name="CreateDynamic" value="0x04">
|
---|
9531 | <desc>
|
---|
9532 | Supports creating dynamically growing images, allocating space on
|
---|
9533 | demand.
|
---|
9534 | </desc>
|
---|
9535 | </const>
|
---|
9536 |
|
---|
9537 | <const name="CreateSplit2G" value="0x08">
|
---|
9538 | <desc>
|
---|
9539 | Supports creating images split in chunks of a bit less than 2 GBytes.
|
---|
9540 | </desc>
|
---|
9541 | </const>
|
---|
9542 |
|
---|
9543 | <const name="Differencing" value="0x10">
|
---|
9544 | <desc>
|
---|
9545 | Supports being used as a format for differencing hard disks (see <link
|
---|
9546 | to="IHardDisk::createDiffStorage"/>).
|
---|
9547 | </desc>
|
---|
9548 | </const>
|
---|
9549 |
|
---|
9550 | <const name="Asynchronous" value="0x20">
|
---|
9551 | <desc>
|
---|
9552 | Supports asynchronous I/O operations for at least some configurations.
|
---|
9553 | </desc>
|
---|
9554 | </const>
|
---|
9555 |
|
---|
9556 | <const name="File" value="0x40">
|
---|
9557 | <desc>
|
---|
9558 | The format backend operates on files (the <link to="IMedium::location"/>
|
---|
9559 | attribute of the hard disk specifies a file used to store hard disk
|
---|
9560 | data; for a list of supported file extensions see
|
---|
9561 | <link to="IHardDiskFormat::fileExtensions"/>).
|
---|
9562 | </desc>
|
---|
9563 | </const>
|
---|
9564 |
|
---|
9565 | <const name="Properties" value="0x80">
|
---|
9566 | <desc>
|
---|
9567 | The format backend uses the property interface to configure the storage
|
---|
9568 | location and properties (the <link to="IHardDiskFormat::describeProperties"/>
|
---|
9569 | method is used to get access to properties supported by the given hard
|
---|
9570 | disk format).
|
---|
9571 | </desc>
|
---|
9572 | </const>
|
---|
9573 |
|
---|
9574 | <const name="CapabilityMask" value="0xFF"/>
|
---|
9575 | </enum>
|
---|
9576 |
|
---|
9577 | <interface
|
---|
9578 | name="IHardDiskFormat" extends="$unknown"
|
---|
9579 | uuid="7f3ba790-3a0b-4a8a-bac2-bb50150123c5"
|
---|
9580 | wsmap="managed"
|
---|
9581 | >
|
---|
9582 | <desc>
|
---|
9583 | The IHardDiskFormat interface represents a virtual hard disk format.
|
---|
9584 |
|
---|
9585 | Each hard disk format has an associated backend which is used to handle
|
---|
9586 | hard disks stored in this format. This interface provides information
|
---|
9587 | about the properties of the associated backend.
|
---|
9588 |
|
---|
9589 | Each hard disk format is identified by a string represented by the
|
---|
9590 | <link to="#id"/> attribute. This string is used in calls like
|
---|
9591 | <link to="IVirtualBox::createHardDisk"/> to specify the desired
|
---|
9592 | format.
|
---|
9593 |
|
---|
9594 | The list of all supported hard disk formats can be obtained using
|
---|
9595 | <link to="ISystemProperties::hardDiskFormats"/>.
|
---|
9596 |
|
---|
9597 | <see>IHardDisk</see>
|
---|
9598 | </desc>
|
---|
9599 |
|
---|
9600 | <attribute name="id" type="wstring" readonly="yes">
|
---|
9601 | <desc>
|
---|
9602 | Identifier of this format.
|
---|
9603 |
|
---|
9604 | The format identifier is a non-@c null non-empty ASCII string. Note that
|
---|
9605 | this string is case-insensitive. This means that, for example, all of
|
---|
9606 | the following strings:
|
---|
9607 | <pre>
|
---|
9608 | "VDI"
|
---|
9609 | "vdi"
|
---|
9610 | "VdI"</pre>
|
---|
9611 | refer to the same hard disk format.
|
---|
9612 |
|
---|
9613 | This string is used in methods of other interfaces where it is necessary
|
---|
9614 | to specify a hard disk format, such as
|
---|
9615 | <link to="IVirtualBox::createHardDisk"/>.
|
---|
9616 | </desc>
|
---|
9617 | </attribute>
|
---|
9618 |
|
---|
9619 | <attribute name="name" type="wstring" readonly="yes">
|
---|
9620 | <desc>
|
---|
9621 | Human readable description of this format.
|
---|
9622 |
|
---|
9623 | Mainly for use in file open dialogs.
|
---|
9624 | </desc>
|
---|
9625 | </attribute>
|
---|
9626 |
|
---|
9627 | <attribute name="fileExtensions" type="wstring" safearray="yes" readonly="yes">
|
---|
9628 | <desc>
|
---|
9629 | Array of strings containing the supported file extensions.
|
---|
9630 |
|
---|
9631 | The first extension in the array is the extension preferred by the
|
---|
9632 | backend. It is recommended to use this extension when specifying a
|
---|
9633 | location of the storage unit for a new hard disk.
|
---|
9634 |
|
---|
9635 | Note that some backends do not work on files, so this array may be
|
---|
9636 | empty.
|
---|
9637 |
|
---|
9638 | <see>IHardDiskFormat::capabilities</see>
|
---|
9639 | </desc>
|
---|
9640 | </attribute>
|
---|
9641 |
|
---|
9642 | <attribute name="capabilities" type="unsigned long" readonly="yes">
|
---|
9643 | <desc>
|
---|
9644 | Capabilities of the format as a set of bit flags.
|
---|
9645 |
|
---|
9646 | For the meaning of individual capability flags see
|
---|
9647 | <link to="HardDiskFormatCapabilities"/>.
|
---|
9648 | </desc>
|
---|
9649 | </attribute>
|
---|
9650 |
|
---|
9651 | <method name="describeProperties">
|
---|
9652 | <desc>
|
---|
9653 | Returns several arrays describing the properties supported by this
|
---|
9654 | format.
|
---|
9655 |
|
---|
9656 | An element with the given index in each array describes one
|
---|
9657 | property. Thus, the number of elements in each returned array is the
|
---|
9658 | same and corresponds to the number of supported properties.
|
---|
9659 |
|
---|
9660 | The returned arrays are filled in only if the
|
---|
9661 | <link to="HardDiskFormatCapabilities_Properties"/> flag is set.
|
---|
9662 | All arguments must be non-@c null.
|
---|
9663 |
|
---|
9664 | <see>DataType</see>
|
---|
9665 | <see>DataFlags</see>
|
---|
9666 | </desc>
|
---|
9667 |
|
---|
9668 | <param name="names" type="wstring" safearray="yes" dir="out">
|
---|
9669 | <desc>Array of property names.</desc>
|
---|
9670 | </param>
|
---|
9671 | <param name="description" type="wstring" safearray="yes" dir="out">
|
---|
9672 | <desc>Array of property descriptions.</desc>
|
---|
9673 | </param>
|
---|
9674 | <param name="types" type="DataType" safearray="yes" dir="out">
|
---|
9675 | <desc>Array of property types.</desc>
|
---|
9676 | </param>
|
---|
9677 | <param name="flags" type="unsigned long" safearray="yes" dir="out">
|
---|
9678 | <desc>Array of property flags.</desc>
|
---|
9679 | </param>
|
---|
9680 | <param name="defaults" type="wstring" safearray="yes" dir="out">
|
---|
9681 | <desc>Array of default property values.</desc>
|
---|
9682 | </param>
|
---|
9683 | </method>
|
---|
9684 |
|
---|
9685 | </interface>
|
---|
9686 |
|
---|
9687 |
|
---|
9688 | <!--
|
---|
9689 | // IFloppyImage
|
---|
9690 | /////////////////////////////////////////////////////////////////////////
|
---|
9691 | -->
|
---|
9692 |
|
---|
9693 | <interface
|
---|
9694 | name="IFloppyImage" extends="IMedium"
|
---|
9695 | uuid="faa6101f-078c-4b3a-ab75-75670c8170b3"
|
---|
9696 | wsmap="managed"
|
---|
9697 | >
|
---|
9698 | <desc>
|
---|
9699 | The IFloppyImage interface represents a medium containing the image
|
---|
9700 | of a floppy disk. This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
9701 | </desc>
|
---|
9702 |
|
---|
9703 | </interface>
|
---|
9704 |
|
---|
9705 |
|
---|
9706 | <!--
|
---|
9707 | // IDVDImage
|
---|
9708 | /////////////////////////////////////////////////////////////////////////
|
---|
9709 | -->
|
---|
9710 |
|
---|
9711 | <interface
|
---|
9712 | name="IDVDImage" extends="IMedium"
|
---|
9713 | uuid="b1f90bbb-e8a9-4484-9af1-3638e943f763"
|
---|
9714 | wsmap="managed"
|
---|
9715 | >
|
---|
9716 | <desc>
|
---|
9717 | The IDVDImage interface represents a medium containing the image
|
---|
9718 | of a CD or DVD disk in the ISO format.
|
---|
9719 |
|
---|
9720 | This is a subclass of <link to="IMedium" />; see remarks there.
|
---|
9721 | </desc>
|
---|
9722 |
|
---|
9723 | </interface>
|
---|
9724 |
|
---|
9725 |
|
---|
9726 | <!--
|
---|
9727 | // IDVDDrive
|
---|
9728 | /////////////////////////////////////////////////////////////////////////
|
---|
9729 | -->
|
---|
9730 |
|
---|
9731 | <interface
|
---|
9732 | name="IDVDDrive" extends="$unknown"
|
---|
9733 | uuid="156944d1-4c6d-4812-8f12-ab3890767ab4"
|
---|
9734 | wsmap="managed"
|
---|
9735 | >
|
---|
9736 | <desc>
|
---|
9737 | The IDVDDrive interface represents the virtual CD/DVD drive of the
|
---|
9738 | virtual machine. An object of this type is returned by
|
---|
9739 | <link to="IMachine::DVDDrive"/>.
|
---|
9740 | </desc>
|
---|
9741 |
|
---|
9742 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
9743 | <desc>Current drive state.</desc>
|
---|
9744 | </attribute>
|
---|
9745 |
|
---|
9746 | <attribute name="passthrough" type="boolean">
|
---|
9747 | <desc>
|
---|
9748 | When a host drive is mounted and passthrough is enabled
|
---|
9749 | the guest OS will be able to directly send SCSI commands to
|
---|
9750 | the host drive. This enables the guest OS to use CD/DVD writers
|
---|
9751 | but is potentially dangerous.
|
---|
9752 | </desc>
|
---|
9753 | </attribute>
|
---|
9754 |
|
---|
9755 | <method name="mountImage">
|
---|
9756 | <desc>Mounts a CD/DVD image with the specified UUID.
|
---|
9757 |
|
---|
9758 | <result name="VBOX_E_FILE_ERROR">
|
---|
9759 | Invalid image file location.
|
---|
9760 | </result>
|
---|
9761 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9762 | Could not find a CD/DVD image matching @a imageId.
|
---|
9763 | </result>
|
---|
9764 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9765 | Invalid media state.
|
---|
9766 | </result>
|
---|
9767 |
|
---|
9768 | </desc>
|
---|
9769 | <param name="imageId" type="wstring" dir="in"/>
|
---|
9770 | </method>
|
---|
9771 |
|
---|
9772 | <method name="captureHostDrive">
|
---|
9773 | <desc>Captures the specified host CD/DVD drive.</desc>
|
---|
9774 | <param name="drive" type="IHostDVDDrive" dir="in"/>
|
---|
9775 | </method>
|
---|
9776 |
|
---|
9777 | <method name="unmount">
|
---|
9778 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
9779 | </method>
|
---|
9780 |
|
---|
9781 | <method name="getImage">
|
---|
9782 | <desc>Returns the currently mounted CD/DVD image.</desc>
|
---|
9783 | <param name="image" type="IDVDImage" dir="return"/>
|
---|
9784 | </method>
|
---|
9785 |
|
---|
9786 | <method name="getHostDrive">
|
---|
9787 | <desc>Returns the currently mounted host CD/DVD drive.</desc>
|
---|
9788 | <param name="drive" type="IHostDVDDrive" dir="return"/>
|
---|
9789 | </method>
|
---|
9790 |
|
---|
9791 | </interface>
|
---|
9792 |
|
---|
9793 |
|
---|
9794 | <!--
|
---|
9795 | // IFloppyDrive
|
---|
9796 | /////////////////////////////////////////////////////////////////////////
|
---|
9797 | -->
|
---|
9798 |
|
---|
9799 | <interface
|
---|
9800 | name="IFloppyDrive" extends="$unknown"
|
---|
9801 | uuid="a8676d38-5cf0-4b53-85b1-aa693611ab86"
|
---|
9802 | wsmap="managed"
|
---|
9803 | >
|
---|
9804 | <desc>
|
---|
9805 | The IFloppyDrive interface represents the virtual floppy drive of the
|
---|
9806 | virtual machine. An object of this type is returned by
|
---|
9807 | <link to="IMachine::floppyDrive" />.
|
---|
9808 | </desc>
|
---|
9809 |
|
---|
9810 | <attribute name="enabled" type="boolean">
|
---|
9811 | <desc>
|
---|
9812 | Flag whether the floppy drive is enabled. If it is disabled,
|
---|
9813 | the floppy drive will not be reported to the guest OS.
|
---|
9814 | </desc>
|
---|
9815 | </attribute>
|
---|
9816 |
|
---|
9817 | <attribute name="state" type="DriveState" readonly="yes">
|
---|
9818 | <desc>Current drive state.</desc>
|
---|
9819 | </attribute>
|
---|
9820 |
|
---|
9821 | <method name="mountImage">
|
---|
9822 | <desc>Mounts a floppy image with the specified UUID.
|
---|
9823 |
|
---|
9824 | <result name="VBOX_E_FILE_ERROR">
|
---|
9825 | Invalid image file location.
|
---|
9826 | </result>
|
---|
9827 | <result name="VBOX_E_OBJECT_NOT_FOUND">
|
---|
9828 | Could not find a floppy image matching @a imageID.
|
---|
9829 | </result>
|
---|
9830 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
9831 | Invalid media state.
|
---|
9832 | </result>
|
---|
9833 |
|
---|
9834 | </desc>
|
---|
9835 | <param name="imageId" type="wstring" dir="in"/>
|
---|
9836 | </method>
|
---|
9837 |
|
---|
9838 | <method name="captureHostDrive">
|
---|
9839 | <desc>Captures the specified host floppy drive.</desc>
|
---|
9840 | <param name="drive" type="IHostFloppyDrive" dir="in"/>
|
---|
9841 | </method>
|
---|
9842 |
|
---|
9843 | <method name="unmount">
|
---|
9844 | <desc>Unmounts the currently mounted image or host drive.</desc>
|
---|
9845 | </method>
|
---|
9846 |
|
---|
9847 | <method name="getImage">
|
---|
9848 | <desc>Returns the currently mounted floppy image.</desc>
|
---|
9849 | <param name="image" type="IFloppyImage" dir="return"/>
|
---|
9850 | </method>
|
---|
9851 |
|
---|
9852 | <method name="getHostDrive">
|
---|
9853 | <desc>Returns the currently mounted host floppy drive.</desc>
|
---|
9854 | <param name="drive" type="IHostFloppyDrive" dir="return"/>
|
---|
9855 | </method>
|
---|
9856 |
|
---|
9857 | </interface>
|
---|
9858 |
|
---|
9859 |
|
---|
9860 | <!--
|
---|
9861 | // IKeyboard
|
---|
9862 | /////////////////////////////////////////////////////////////////////////
|
---|
9863 | -->
|
---|
9864 |
|
---|
9865 | <interface
|
---|
9866 | name="IKeyboard" extends="$unknown"
|
---|
9867 | uuid="2d1a531b-4c6e-49cc-8af6-5c857b78b5d7"
|
---|
9868 | wsmap="managed"
|
---|
9869 | >
|
---|
9870 | <desc>
|
---|
9871 | The IKeyboard interface represents the virtual machine's keyboard. Used
|
---|
9872 | in <link to="IConsole::keyboard"/>.
|
---|
9873 |
|
---|
9874 | Use this interface to send keystrokes or the Ctrl-Alt-Del sequence
|
---|
9875 | to the virtual machine.
|
---|
9876 |
|
---|
9877 | </desc>
|
---|
9878 | <method name="putScancode">
|
---|
9879 | <desc>Sends a scancode to the keyboard.
|
---|
9880 |
|
---|
9881 | <result name="VBOX_E_IPRT_ERROR">
|
---|
9882 | Could not send scan code to virtual keyboard.
|
---|
9883 | </result>
|
---|
9884 |
|
---|
9885 | </desc>
|
---|
9886 | <param name="scancode" type="long" dir="in"/>
|
---|
9887 | </method>
|
---|
9888 |
|
---|
9889 | <method name="putScancodes">
|
---|
9890 | <desc>Sends an array of scancodes to the keyboard.
|
---|
9891 |
|
---|
9892 | <result name="VBOX_E_IPRT_ERROR">
|
---|
9893 | Could not send all scan codes to virtual keyboard.
|
---|
9894 | </result>
|
---|
9895 |
|
---|
9896 | </desc>
|
---|
9897 | <param name="scancodes" type="long" dir="in" safearray="yes"/>
|
---|
9898 | <param name="codesStored" type="unsigned long" dir="return"/>
|
---|
9899 | </method>
|
---|
9900 |
|
---|
9901 | <method name="putCAD">
|
---|
9902 | <desc>Sends the Ctrl-Alt-Del sequence to the keyboard. This
|
---|
9903 | function is nothing special, it is just a convenience function
|
---|
9904 | calling <link to="IKeyboard::putScancodes"/> with the proper scancodes.
|
---|
9905 |
|
---|
9906 | <result name="VBOX_E_IPRT_ERROR">
|
---|
9907 | Could not send all scan codes to virtual keyboard.
|
---|
9908 | </result>
|
---|
9909 |
|
---|
9910 | </desc>
|
---|
9911 | </method>
|
---|
9912 |
|
---|
9913 | </interface>
|
---|
9914 |
|
---|
9915 |
|
---|
9916 | <!--
|
---|
9917 | // IMouse
|
---|
9918 | /////////////////////////////////////////////////////////////////////////
|
---|
9919 | -->
|
---|
9920 |
|
---|
9921 | <enum
|
---|
9922 | name="MouseButtonState"
|
---|
9923 | uuid="03131722-2EC5-4173-9794-0DACA46673EF"
|
---|
9924 | >
|
---|
9925 | <desc>
|
---|
9926 | Mouse button state.
|
---|
9927 | </desc>
|
---|
9928 |
|
---|
9929 | <const name="LeftButton" value="0x01"/>
|
---|
9930 | <const name="RightButton" value="0x02"/>
|
---|
9931 | <const name="MiddleButton" value="0x04"/>
|
---|
9932 | <const name="WheelUp" value="0x08"/>
|
---|
9933 | <const name="WheelDown" value="0x10"/>
|
---|
9934 | <const name="XButton1" value="0x20"/>
|
---|
9935 | <const name="XButton2" value="0x40"/>
|
---|
9936 | <const name="MouseStateMask" value="0x7F"/>
|
---|
9937 | </enum>
|
---|
9938 |
|
---|
9939 | <interface
|
---|
9940 | name="IMouse" extends="$unknown"
|
---|
9941 | uuid="FD443EC1-0006-4F5B-9282-D72760A66916"
|
---|
9942 | wsmap="managed"
|
---|
9943 | >
|
---|
9944 | <desc>
|
---|
9945 | The IMouse interface represents the virtual machine's mouse. Used in
|
---|
9946 | <link to="IConsole::mouse"/>.
|
---|
9947 |
|
---|
9948 | Through this interface, the virtual machine's virtual mouse can be
|
---|
9949 | controlled.
|
---|
9950 | </desc>
|
---|
9951 |
|
---|
9952 | <attribute name="absoluteSupported" type="boolean" readonly="yes">
|
---|
9953 | <desc>
|
---|
9954 | Whether the guest OS supports absolute mouse pointer positioning
|
---|
9955 | or not.
|
---|
9956 | <note>
|
---|
9957 | VirtualBox Guest Tools need to be installed to the guest OS
|
---|
9958 | in order to enable absolute mouse positioning support.
|
---|
9959 | You can use the <link to="IConsoleCallback::onMouseCapabilityChange"/>
|
---|
9960 | callback to be instantly informed about changes of this attribute
|
---|
9961 | during virtual machine execution.
|
---|
9962 | </note>
|
---|
9963 | <see><link to="#putMouseEventAbsolute"/></see>
|
---|
9964 | </desc>
|
---|
9965 | </attribute>
|
---|
9966 |
|
---|
9967 | <method name="putMouseEvent">
|
---|
9968 | <desc>
|
---|
9969 | Initiates a mouse event using relative pointer movements
|
---|
9970 | along x and y axis.
|
---|
9971 |
|
---|
9972 | <result name="E_ACCESSDENIED">
|
---|
9973 | Console not powered up.
|
---|
9974 | </result>
|
---|
9975 | <result name="VBOX_E_IPRT_ERROR">
|
---|
9976 | Could not send mouse event to virtual mouse.
|
---|
9977 | </result>
|
---|
9978 |
|
---|
9979 | </desc>
|
---|
9980 |
|
---|
9981 | <param name="dx" type="long" dir="in">
|
---|
9982 | <desc>
|
---|
9983 | Amount of pixels the mouse should move to the right.
|
---|
9984 | Negative values move the mouse to the left.
|
---|
9985 | </desc>
|
---|
9986 | </param>
|
---|
9987 | <param name="dy" type="long" dir="in">
|
---|
9988 | <desc>
|
---|
9989 | Amount of pixels the mouse should move downwards.
|
---|
9990 | Negative values move the mouse upwards.
|
---|
9991 | </desc>
|
---|
9992 | </param>
|
---|
9993 | <param name="dz" type="long" dir="in">
|
---|
9994 | <desc>
|
---|
9995 | Amount of mouse wheel moves.
|
---|
9996 | Positive values describe clockwise wheel rotations,
|
---|
9997 | negative values describe counterclockwise rotations.
|
---|
9998 | </desc>
|
---|
9999 | </param>
|
---|
10000 | <param name="dw" type="long" dir="in">
|
---|
10001 | <desc>
|
---|
10002 | Amount of horizontal mouse wheel moves.
|
---|
10003 | Positive values describe a movement to the left,
|
---|
10004 | negative values describe a movement to the right.
|
---|
10005 | </desc>
|
---|
10006 | </param>
|
---|
10007 | <param name="buttonState" type="long" dir="in">
|
---|
10008 | <desc>
|
---|
10009 | The current state of mouse buttons. Every bit represents
|
---|
10010 | a mouse button as follows:
|
---|
10011 | <table>
|
---|
10012 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10013 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10014 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10015 | </table>
|
---|
10016 | A value of <tt>1</tt> means the corresponding button is pressed.
|
---|
10017 | otherwise it is released.
|
---|
10018 | </desc>
|
---|
10019 | </param>
|
---|
10020 | </method>
|
---|
10021 |
|
---|
10022 | <method name="putMouseEventAbsolute">
|
---|
10023 | <desc>
|
---|
10024 | Positions the mouse pointer using absolute x and y coordinates.
|
---|
10025 | These coordinates are expressed in pixels and
|
---|
10026 | start from <tt>[1,1]</tt> which corresponds to the top left
|
---|
10027 | corner of the virtual display.
|
---|
10028 |
|
---|
10029 | <result name="E_ACCESSDENIED">
|
---|
10030 | Console not powered up.
|
---|
10031 | </result>
|
---|
10032 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10033 | Could not send mouse event to virtual mouse.
|
---|
10034 | </result>
|
---|
10035 |
|
---|
10036 | <note>
|
---|
10037 | This method will have effect only if absolute mouse
|
---|
10038 | positioning is supported by the guest OS.
|
---|
10039 | </note>
|
---|
10040 |
|
---|
10041 | <see><link to="#absoluteSupported"/></see>
|
---|
10042 | </desc>
|
---|
10043 |
|
---|
10044 | <param name="x" type="long" dir="in">
|
---|
10045 | <desc>
|
---|
10046 | X coordinate of the pointer in pixels, starting from @c 1.
|
---|
10047 | </desc>
|
---|
10048 | </param>
|
---|
10049 | <param name="y" type="long" dir="in">
|
---|
10050 | <desc>
|
---|
10051 | Y coordinate of the pointer in pixels, starting from @c 1.
|
---|
10052 | </desc>
|
---|
10053 | </param>
|
---|
10054 | <param name="dz" type="long" dir="in">
|
---|
10055 | <desc>
|
---|
10056 | Amount of mouse wheel moves.
|
---|
10057 | Positive values describe clockwise wheel rotations,
|
---|
10058 | negative values describe counterclockwise rotations.
|
---|
10059 | </desc>
|
---|
10060 | </param>
|
---|
10061 | <param name="dw" type="long" dir="in">
|
---|
10062 | <desc>
|
---|
10063 | Amount of horizontal mouse wheel moves.
|
---|
10064 | Positive values describe a movement to the left,
|
---|
10065 | negative values describe a movement to the right.
|
---|
10066 | </desc>
|
---|
10067 | </param>
|
---|
10068 | <param name="buttonState" type="long" dir="in">
|
---|
10069 | <desc>
|
---|
10070 | The current state of mouse buttons. Every bit represents
|
---|
10071 | a mouse button as follows:
|
---|
10072 | <table>
|
---|
10073 | <tr><td>Bit 0 (<tt>0x01</tt>)</td><td>left mouse button</td></tr>
|
---|
10074 | <tr><td>Bit 1 (<tt>0x02</tt>)</td><td>right mouse button</td></tr>
|
---|
10075 | <tr><td>Bit 2 (<tt>0x04</tt>)</td><td>middle mouse button</td></tr>
|
---|
10076 | </table>
|
---|
10077 | A value of @c 1 means the corresponding button is pressed.
|
---|
10078 | otherwise it is released.
|
---|
10079 | </desc>
|
---|
10080 | </param>
|
---|
10081 | </method>
|
---|
10082 |
|
---|
10083 | </interface>
|
---|
10084 |
|
---|
10085 | <!--
|
---|
10086 | // IDisplay
|
---|
10087 | /////////////////////////////////////////////////////////////////////////
|
---|
10088 | -->
|
---|
10089 |
|
---|
10090 | <enum
|
---|
10091 | name="FramebufferPixelFormat"
|
---|
10092 | uuid="7acfd5ed-29e3-45e3-8136-73c9224f3d2d"
|
---|
10093 | >
|
---|
10094 | <desc>
|
---|
10095 | Format of the video memory buffer. Constants represented by this enum can
|
---|
10096 | be used to test for particular values of <link
|
---|
10097 | to="IFramebuffer::pixelFormat"/>. See also <link
|
---|
10098 | to="IFramebuffer::requestResize"/>.
|
---|
10099 |
|
---|
10100 | See also www.fourcc.org for more information about FOURCC pixel formats.
|
---|
10101 | </desc>
|
---|
10102 |
|
---|
10103 | <const name="Opaque" value="0">
|
---|
10104 | <desc>
|
---|
10105 | Unknown buffer format (the user may not assume any particular format of
|
---|
10106 | the buffer).
|
---|
10107 | </desc>
|
---|
10108 | </const>
|
---|
10109 | <const name="FOURCC_RGB" value="0x32424752">
|
---|
10110 | <desc>
|
---|
10111 | Basic RGB format (<link to="IFramebuffer::bitsPerPixel"/> determines the
|
---|
10112 | bit layout).
|
---|
10113 | </desc>
|
---|
10114 | </const>
|
---|
10115 | </enum>
|
---|
10116 |
|
---|
10117 | <interface
|
---|
10118 | name="IFramebuffer" extends="$unknown"
|
---|
10119 | uuid="b7ed347a-5765-40a0-ae1c-f543eb4ddeaf"
|
---|
10120 | wsmap="suppress"
|
---|
10121 | >
|
---|
10122 | <attribute name="address" type="octet" mod="ptr" readonly="yes">
|
---|
10123 | <desc>Address of the start byte of the frame buffer.</desc>
|
---|
10124 | </attribute>
|
---|
10125 |
|
---|
10126 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
10127 | <desc>Frame buffer width, in pixels.</desc>
|
---|
10128 | </attribute>
|
---|
10129 |
|
---|
10130 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
10131 | <desc>Frame buffer height, in pixels.</desc>
|
---|
10132 | </attribute>
|
---|
10133 |
|
---|
10134 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
10135 | <desc>
|
---|
10136 | Color depth, in bits per pixel. When <link to="#pixelFormat"/> is <link
|
---|
10137 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, valid values
|
---|
10138 | are: 8, 15, 16, 24 and 32.
|
---|
10139 | </desc>
|
---|
10140 | </attribute>
|
---|
10141 |
|
---|
10142 | <attribute name="bytesPerLine" type="unsigned long" readonly="yes">
|
---|
10143 | <desc>
|
---|
10144 | Scan line size, in bytes. When <link to="#pixelFormat"/> is <link
|
---|
10145 | to="FramebufferPixelFormat_FOURCC_RGB">FOURCC_RGB</link>, the
|
---|
10146 | size of the scan line must be aligned to 32 bits.
|
---|
10147 | </desc>
|
---|
10148 | </attribute>
|
---|
10149 |
|
---|
10150 | <attribute name="pixelFormat" type="unsigned long" readonly="yes">
|
---|
10151 | <desc>
|
---|
10152 | Frame buffer pixel format. It's either one of the values defined by <link
|
---|
10153 | to="FramebufferPixelFormat"/> or a raw FOURCC code.
|
---|
10154 | <note>
|
---|
10155 | This attribute must never return <link
|
---|
10156 | to="FramebufferPixelFormat_Opaque"/> -- the format of the buffer
|
---|
10157 | <link to="#address"/> points to must be always known.
|
---|
10158 | </note>
|
---|
10159 | </desc>
|
---|
10160 | </attribute>
|
---|
10161 |
|
---|
10162 | <attribute name="usesGuestVRAM" type="boolean" readonly="yes">
|
---|
10163 | <desc>
|
---|
10164 | Defines whether this frame buffer uses the virtual video card's memory
|
---|
10165 | buffer (guest VRAM) directly or not. See <link
|
---|
10166 | to="IFramebuffer::requestResize"/> for more information.
|
---|
10167 | </desc>
|
---|
10168 | </attribute>
|
---|
10169 |
|
---|
10170 | <attribute name="heightReduction" type="unsigned long" readonly="yes">
|
---|
10171 | <desc>
|
---|
10172 | Hint from the frame buffer about how much of the standard
|
---|
10173 | screen height it wants to use for itself. This information is
|
---|
10174 | exposed to the guest through the VESA BIOS and VMMDev interface
|
---|
10175 | so that it can use it for determining its video mode table. It
|
---|
10176 | is not guaranteed that the guest respects the value.
|
---|
10177 | </desc>
|
---|
10178 | </attribute>
|
---|
10179 |
|
---|
10180 | <attribute name="overlay" type="IFramebufferOverlay" readonly="yes">
|
---|
10181 | <desc>
|
---|
10182 | An alpha-blended overlay which is superposed over the frame buffer.
|
---|
10183 | The initial purpose is to allow the display of icons providing
|
---|
10184 | information about the VM state, including disk activity, in front
|
---|
10185 | ends which do not have other means of doing that. The overlay is
|
---|
10186 | designed to controlled exclusively by IDisplay. It has no locking
|
---|
10187 | of its own, and any changes made to it are not guaranteed to be
|
---|
10188 | visible until the affected portion of IFramebuffer is updated. The
|
---|
10189 | overlay can be created lazily the first time it is requested. This
|
---|
10190 | attribute can also return @c null to signal that the overlay is not
|
---|
10191 | implemented.
|
---|
10192 | </desc>
|
---|
10193 | </attribute>
|
---|
10194 |
|
---|
10195 | <attribute name="winId" type="unsigned long long" readonly="yes">
|
---|
10196 | <desc>
|
---|
10197 | Platform-dependent identifier of the window where context of this
|
---|
10198 | frame buffer is drawn, or zero if there's no such window.
|
---|
10199 | </desc>
|
---|
10200 | </attribute>
|
---|
10201 |
|
---|
10202 | <method name="lock">
|
---|
10203 | <desc>
|
---|
10204 | Locks the frame buffer.
|
---|
10205 | Gets called by the IDisplay object where this frame buffer is
|
---|
10206 | bound to.
|
---|
10207 | </desc>
|
---|
10208 | </method>
|
---|
10209 |
|
---|
10210 | <method name="unlock">
|
---|
10211 | <desc>
|
---|
10212 | Unlocks the frame buffer.
|
---|
10213 | Gets called by the IDisplay object where this frame buffer is
|
---|
10214 | bound to.
|
---|
10215 | </desc>
|
---|
10216 | </method>
|
---|
10217 |
|
---|
10218 | <method name="notifyUpdate">
|
---|
10219 | <desc>
|
---|
10220 | Informs about an update.
|
---|
10221 | Gets called by the display object where this buffer is
|
---|
10222 | registered.
|
---|
10223 | </desc>
|
---|
10224 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10225 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10226 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10227 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10228 | </method>
|
---|
10229 |
|
---|
10230 | <method name="requestResize">
|
---|
10231 | <desc>
|
---|
10232 | Requests a size and pixel format change.
|
---|
10233 |
|
---|
10234 | There are two modes of working with the video buffer of the virtual
|
---|
10235 | machine. The <i>indirect</i> mode implies that the IFramebuffer
|
---|
10236 | implementation allocates a memory buffer for the requested display mode
|
---|
10237 | and provides it to the virtual machine. In <i>direct</i> mode, the
|
---|
10238 | IFramebuffer implementation uses the memory buffer allocated and owned
|
---|
10239 | by the virtual machine. This buffer represents the video memory of the
|
---|
10240 | emulated video adapter (so called <i>guest VRAM</i>). The direct mode is
|
---|
10241 | usually faster because the implementation gets a raw pointer to the
|
---|
10242 | guest VRAM buffer which it can directly use for visualizing the contents
|
---|
10243 | of the virtual display, as opposed to the indirect mode where the
|
---|
10244 | contents of guest VRAM are copied to the memory buffer provided by
|
---|
10245 | the implementation every time a display update occurs.
|
---|
10246 |
|
---|
10247 | It is important to note that the direct mode is really fast only when
|
---|
10248 | the implementation uses the given guest VRAM buffer directly, for
|
---|
10249 | example, by blitting it to the window representing the virtual machine's
|
---|
10250 | display, which saves at least one copy operation comparing to the
|
---|
10251 | indirect mode. However, using the guest VRAM buffer directly is not
|
---|
10252 | always possible: the format and the color depth of this buffer may be
|
---|
10253 | not supported by the target window, or it may be unknown (opaque) as in
|
---|
10254 | case of text or non-linear multi-plane VGA video modes. In this case,
|
---|
10255 | the indirect mode (that is always available) should be used as a
|
---|
10256 | fallback: when the guest VRAM contents are copied to the
|
---|
10257 | implementation-provided memory buffer, color and format conversion is
|
---|
10258 | done automatically by the underlying code.
|
---|
10259 |
|
---|
10260 | The @a pixelFormat parameter defines whether the direct mode is
|
---|
10261 | available or not. If @a pixelFormat is <link
|
---|
10262 | to="FramebufferPixelFormat_Opaque"/> then direct access to the guest
|
---|
10263 | VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and
|
---|
10264 | @a bytesPerLine parameters must be ignored and the implementation must use
|
---|
10265 | the indirect mode (where it provides its own buffer in one of the
|
---|
10266 | supported formats). In all other cases, @a pixelFormat together with
|
---|
10267 | @a bitsPerPixel and @a bytesPerLine define the format of the video memory
|
---|
10268 | buffer pointed to by the @a VRAM parameter and the implementation is
|
---|
10269 | free to choose which mode to use. To indicate that this frame buffer uses
|
---|
10270 | the direct mode, the implementation of the <link to="#usesGuestVRAM"/>
|
---|
10271 | attribute must return @c true and <link to="#address"/> must
|
---|
10272 | return exactly the same address that is passed in the @a VRAM parameter
|
---|
10273 | of this method; otherwise it is assumed that the indirect strategy is
|
---|
10274 | chosen.
|
---|
10275 |
|
---|
10276 | The @a width and @a height parameters represent the size of the
|
---|
10277 | requested display mode in both modes. In case of indirect mode, the
|
---|
10278 | provided memory buffer should be big enough to store data of the given
|
---|
10279 | display mode. In case of direct mode, it is guaranteed that the given
|
---|
10280 | @a VRAM buffer contains enough space to represent the display mode of the
|
---|
10281 | given size. Note that this frame buffer's <link to="#width"/> and <link
|
---|
10282 | to="#height"/> attributes must return exactly the same values as
|
---|
10283 | passed to this method after the resize is completed (see below).
|
---|
10284 |
|
---|
10285 | The @a finished output parameter determines if the implementation has
|
---|
10286 | finished resizing the frame buffer or not. If, for some reason, the
|
---|
10287 | resize cannot be finished immediately during this call, @a finished
|
---|
10288 | must be set to @c false, and the implementation must call
|
---|
10289 | <link to="IDisplay::resizeCompleted"/> after it has returned from
|
---|
10290 | this method as soon as possible. If @a finished is @c false, the
|
---|
10291 | machine will not call any frame buffer methods until
|
---|
10292 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10293 |
|
---|
10294 | Note that if the direct mode is chosen, the <link to="#bitsPerPixel"/>,
|
---|
10295 | <link to="#bytesPerLine"/> and <link to="#pixelFormat"/> attributes of
|
---|
10296 | this frame buffer must return exactly the same values as specified in the
|
---|
10297 | parameters of this method, after the resize is completed. If the
|
---|
10298 | indirect mode is chosen, these attributes must return values describing
|
---|
10299 | the format of the implementation's own memory buffer <link
|
---|
10300 | to="#address"/> points to. Note also that the <link to="#bitsPerPixel"/>
|
---|
10301 | value must always correlate with <link to="#pixelFormat"/>. Note that
|
---|
10302 | the <link to="#pixelFormat"/> attribute must never return <link
|
---|
10303 | to="FramebufferPixelFormat_Opaque"/> regardless of the selected mode.
|
---|
10304 |
|
---|
10305 | <note>
|
---|
10306 | This method is called by the IDisplay object under the
|
---|
10307 | <link to="#lock"/> provided by this IFramebuffer
|
---|
10308 | implementation. If this method returns @c false in @a finished, then
|
---|
10309 | this lock is not released until
|
---|
10310 | <link to="IDisplay::resizeCompleted"/> is called.
|
---|
10311 | </note>
|
---|
10312 | </desc>
|
---|
10313 | <param name="screenId" type="unsigned long" dir="in">
|
---|
10314 | <desc>
|
---|
10315 | Logical screen number. Must be used in the corresponding call to
|
---|
10316 | <link to="IDisplay::resizeCompleted"/> if this call is made.
|
---|
10317 | </desc>
|
---|
10318 | </param>
|
---|
10319 | <param name="pixelFormat" type="unsigned long" dir="in">
|
---|
10320 | <desc>
|
---|
10321 | Pixel format of the memory buffer pointed to by @a VRAM.
|
---|
10322 | See also <link to="FramebufferPixelFormat"/>.
|
---|
10323 | </desc>
|
---|
10324 | </param>
|
---|
10325 | <param name="VRAM" type="octet" mod="ptr" dir="in">
|
---|
10326 | <desc>Pointer to the virtual video card's VRAM (may be @c null).</desc>
|
---|
10327 | </param>
|
---|
10328 | <param name="bitsPerPixel" type="unsigned long" dir="in">
|
---|
10329 | <desc>Color depth, bits per pixel.</desc>
|
---|
10330 | </param>
|
---|
10331 | <param name="bytesPerLine" type="unsigned long" dir="in">
|
---|
10332 | <desc>Size of one scan line, in bytes.</desc>
|
---|
10333 | </param>
|
---|
10334 | <param name="width" type="unsigned long" dir="in">
|
---|
10335 | <desc>Width of the guest display, in pixels.</desc>
|
---|
10336 | </param>
|
---|
10337 | <param name="height" type="unsigned long" dir="in">
|
---|
10338 | <desc>Height of the guest display, in pixels.</desc>
|
---|
10339 | </param>
|
---|
10340 | <param name="finished" type="boolean" dir="return">
|
---|
10341 | <desc>
|
---|
10342 | Can the VM start using the new frame buffer immediately
|
---|
10343 | after this method returns or it should wait for
|
---|
10344 | <link to="IDisplay::resizeCompleted"/>.
|
---|
10345 | </desc>
|
---|
10346 | </param>
|
---|
10347 | </method>
|
---|
10348 |
|
---|
10349 | <method name="videoModeSupported">
|
---|
10350 | <desc>
|
---|
10351 | Returns whether the frame buffer implementation is willing to
|
---|
10352 | support a given video mode. In case it is not able to render
|
---|
10353 | the video mode (or for some reason not willing), it should
|
---|
10354 | return @c false. Usually this method is called when the guest
|
---|
10355 | asks the VMM device whether a given video mode is supported
|
---|
10356 | so the information returned is directly exposed to the guest.
|
---|
10357 | It is important that this method returns very quickly.
|
---|
10358 | </desc>
|
---|
10359 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10360 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10361 | <param name="bpp" type="unsigned long" dir="in"/>
|
---|
10362 | <param name="supported" type="boolean" dir="return"/>
|
---|
10363 | </method>
|
---|
10364 |
|
---|
10365 | <method name="getVisibleRegion">
|
---|
10366 | <desc>
|
---|
10367 | Returns the visible region of this frame buffer.
|
---|
10368 |
|
---|
10369 | If the @a rectangles parameter is @c null then the value of the
|
---|
10370 | @a count parameter is ignored and the number of elements necessary to
|
---|
10371 | describe the current visible region is returned in @a countCopied.
|
---|
10372 |
|
---|
10373 | If @a rectangles is not @c null but @a count is less
|
---|
10374 | than the required number of elements to store region data, the method
|
---|
10375 | will report a failure. If @a count is equal or greater than the
|
---|
10376 | required number of elements, then the actual number of elements copied
|
---|
10377 | to the provided array will be returned in @a countCopied.
|
---|
10378 |
|
---|
10379 | <note>
|
---|
10380 | The address of the provided array must be in the process space of
|
---|
10381 | this IFramebuffer object.
|
---|
10382 | </note>
|
---|
10383 | <note>
|
---|
10384 | Method not yet implemented.
|
---|
10385 | </note>
|
---|
10386 | </desc>
|
---|
10387 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10388 | <desc>Pointer to the @c RTRECT array to receive region data.</desc>
|
---|
10389 | </param>
|
---|
10390 | <param name="count" type="unsigned long" dir="in">
|
---|
10391 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
10392 | </param>
|
---|
10393 | <param name="countCopied" type="unsigned long" dir="return">
|
---|
10394 | <desc>Number of elements copied to the @a rectangles array.</desc>
|
---|
10395 | </param>
|
---|
10396 | </method>
|
---|
10397 |
|
---|
10398 | <method name="setVisibleRegion">
|
---|
10399 | <desc>
|
---|
10400 | Suggests a new visible region to this frame buffer. This region
|
---|
10401 | represents the area of the VM display which is a union of regions of
|
---|
10402 | all top-level windows of the guest operating system running inside the
|
---|
10403 | VM (if the Guest Additions for this system support this
|
---|
10404 | functionality). This information may be used by the frontends to
|
---|
10405 | implement the seamless desktop integration feature.
|
---|
10406 |
|
---|
10407 | <note>
|
---|
10408 | The address of the provided array must be in the process space of
|
---|
10409 | this IFramebuffer object.
|
---|
10410 | </note>
|
---|
10411 | <note>
|
---|
10412 | The IFramebuffer implementation must make a copy of the provided
|
---|
10413 | array of rectangles.
|
---|
10414 | </note>
|
---|
10415 | <note>
|
---|
10416 | Method not yet implemented.
|
---|
10417 | </note>
|
---|
10418 | </desc>
|
---|
10419 | <param name="rectangles" type="octet" mod="ptr" dir="in">
|
---|
10420 | <desc>Pointer to the @c RTRECT array.</desc>
|
---|
10421 | </param>
|
---|
10422 | <param name="count" type="unsigned long" dir="in">
|
---|
10423 | <desc>Number of @c RTRECT elements in the @a rectangles array.</desc>
|
---|
10424 | </param>
|
---|
10425 | </method>
|
---|
10426 |
|
---|
10427 | <method name="processVHWACommand">
|
---|
10428 | <desc>
|
---|
10429 | Posts a Video HW Acceleration Command to the frame buffer for processing.
|
---|
10430 | The commands used for 2D video acceleration (DDraw surface creation/destroying, blitting, scaling, color covnersion, overlaying, etc.)
|
---|
10431 | are posted from quest to the host to be processed by the host hardware.
|
---|
10432 |
|
---|
10433 | <note>
|
---|
10434 | The address of the provided command must be in the process space of
|
---|
10435 | this IFramebuffer object.
|
---|
10436 | </note>
|
---|
10437 | </desc>
|
---|
10438 |
|
---|
10439 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
10440 | <desc>Pointer to VBOXVHWACMD containing the command to execute.</desc>
|
---|
10441 | </param>
|
---|
10442 | </method>
|
---|
10443 |
|
---|
10444 | </interface>
|
---|
10445 |
|
---|
10446 | <interface
|
---|
10447 | name="IFramebufferOverlay" extends="IFramebuffer"
|
---|
10448 | uuid="0bcc1c7e-e415-47d2-bfdb-e4c705fb0f47"
|
---|
10449 | wsmap="suppress"
|
---|
10450 | >
|
---|
10451 | <desc>
|
---|
10452 | The IFramebufferOverlay interface represents an alpha blended overlay
|
---|
10453 | for displaying status icons above an IFramebuffer. It is always created
|
---|
10454 | not visible, so that it must be explicitly shown. It only covers a
|
---|
10455 | portion of the IFramebuffer, determined by its width, height and
|
---|
10456 | co-ordinates. It is always in packed pixel little-endian 32bit ARGB (in
|
---|
10457 | that order) format, and may be written to directly. Do re-read the
|
---|
10458 | width though, after setting it, as it may be adjusted (increased) to
|
---|
10459 | make it more suitable for the front end.
|
---|
10460 | </desc>
|
---|
10461 | <attribute name="x" type="unsigned long" readonly="yes">
|
---|
10462 | <desc>X position of the overlay, relative to the frame buffer.</desc>
|
---|
10463 | </attribute>
|
---|
10464 |
|
---|
10465 | <attribute name="y" type="unsigned long" readonly="yes">
|
---|
10466 | <desc>Y position of the overlay, relative to the frame buffer.</desc>
|
---|
10467 | </attribute>
|
---|
10468 |
|
---|
10469 | <attribute name="visible" type="boolean" readonly="no">
|
---|
10470 | <desc>
|
---|
10471 | Whether the overlay is currently visible.
|
---|
10472 | </desc>
|
---|
10473 | </attribute>
|
---|
10474 |
|
---|
10475 | <attribute name="alpha" type="unsigned long" readonly="no">
|
---|
10476 | <desc>
|
---|
10477 | The global alpha value for the overlay. This may or may not be
|
---|
10478 | supported by a given front end.
|
---|
10479 | </desc>
|
---|
10480 | </attribute>
|
---|
10481 |
|
---|
10482 | <method name="move">
|
---|
10483 | <desc>
|
---|
10484 | Changes the overlay's position relative to the IFramebuffer.
|
---|
10485 | </desc>
|
---|
10486 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10487 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10488 | </method>
|
---|
10489 |
|
---|
10490 | </interface>
|
---|
10491 |
|
---|
10492 | <interface
|
---|
10493 | name="IDisplay" extends="$unknown"
|
---|
10494 | uuid="e2a38ebc-d854-4a3e-bc2e-fdf5ac4a0000"
|
---|
10495 | wsmap="managed"
|
---|
10496 | >
|
---|
10497 | <desc>
|
---|
10498 | The IDisplay interface represents the virtual machine's display.
|
---|
10499 |
|
---|
10500 | The object implementing this interface is contained in each
|
---|
10501 | <link to="IConsole::display"/> attribute and represents the visual
|
---|
10502 | output of the virtual machine.
|
---|
10503 |
|
---|
10504 | The virtual display supports pluggable output targets represented by the
|
---|
10505 | IFramebuffer interface. Examples of the output target are a window on
|
---|
10506 | the host computer or an RDP session's display on a remote computer.
|
---|
10507 | </desc>
|
---|
10508 | <attribute name="width" type="unsigned long" readonly="yes">
|
---|
10509 | <desc>Current display width.</desc>
|
---|
10510 | </attribute>
|
---|
10511 |
|
---|
10512 | <attribute name="height" type="unsigned long" readonly="yes">
|
---|
10513 | <desc>Current display height.</desc>
|
---|
10514 | </attribute>
|
---|
10515 |
|
---|
10516 | <attribute name="bitsPerPixel" type="unsigned long" readonly="yes">
|
---|
10517 | <desc>
|
---|
10518 | Current guest display color depth. Note that this may differ
|
---|
10519 | from <link to="IFramebuffer::bitsPerPixel"/>.
|
---|
10520 | </desc>
|
---|
10521 | </attribute>
|
---|
10522 |
|
---|
10523 | <method name="setFramebuffer">
|
---|
10524 | <desc>
|
---|
10525 | Sets the framebuffer for given screen.
|
---|
10526 | </desc>
|
---|
10527 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10528 | <param name="framebuffer" type="IFramebuffer" dir="in"/>
|
---|
10529 | </method>
|
---|
10530 |
|
---|
10531 | <method name="getFramebuffer">
|
---|
10532 | <desc>
|
---|
10533 | Queries the framebuffer for given screen.
|
---|
10534 | </desc>
|
---|
10535 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10536 | <param name="framebuffer" type="IFramebuffer" dir="out"/>
|
---|
10537 | <param name="xOrigin" type="long" dir="out"/>
|
---|
10538 | <param name="yOrigin" type="long" dir="out"/>
|
---|
10539 | </method>
|
---|
10540 |
|
---|
10541 | <method name="setVideoModeHint">
|
---|
10542 | <desc>
|
---|
10543 | Asks VirtualBox to request the given video mode from
|
---|
10544 | the guest. This is just a hint and it cannot be guaranteed
|
---|
10545 | that the requested resolution will be used. Guest Additions
|
---|
10546 | are required for the request to be seen by guests. The caller
|
---|
10547 | should issue the request and wait for a resolution change and
|
---|
10548 | after a timeout retry.
|
---|
10549 |
|
---|
10550 | Specifying @c 0 for either @a width, @a height or @a bitsPerPixel
|
---|
10551 | parameters means that the corresponding values should be taken from the
|
---|
10552 | current video mode (i.e. left unchanged).
|
---|
10553 |
|
---|
10554 | If the guest OS supports multi-monitor configuration then the @a display
|
---|
10555 | parameter specifies the number of the guest display to send the hint to:
|
---|
10556 | @c 0 is the primary display, @c 1 is the first secondary and
|
---|
10557 | so on. If the multi-monitor configuration is not supported, @a display
|
---|
10558 | must be @c 0.
|
---|
10559 |
|
---|
10560 | <result name="E_INVALIDARG">
|
---|
10561 | The @a display is not associated with any monitor.
|
---|
10562 | </result>
|
---|
10563 |
|
---|
10564 | </desc>
|
---|
10565 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10566 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10567 | <param name="bitsPerPixel" type="unsigned long" dir="in"/>
|
---|
10568 | <param name="display" type="unsigned long" dir="in"/>
|
---|
10569 | </method>
|
---|
10570 |
|
---|
10571 | <method name="setSeamlessMode">
|
---|
10572 | <desc>
|
---|
10573 | Enables or disables seamless guest display rendering (seamless desktop
|
---|
10574 | integration) mode.
|
---|
10575 | <note>
|
---|
10576 | Calling this method has no effect if <link
|
---|
10577 | to="IGuest::supportsSeamless"/> returns @c false.
|
---|
10578 | </note>
|
---|
10579 | </desc>
|
---|
10580 | <param name="enabled" type="boolean" dir="in"/>
|
---|
10581 | </method>
|
---|
10582 |
|
---|
10583 | <method name="takeScreenShot">
|
---|
10584 | <desc>
|
---|
10585 | Takes a screen shot of the requested size and copies it to the
|
---|
10586 | 32-bpp buffer allocated by the caller and pointed to by @a address.
|
---|
10587 |
|
---|
10588 | <note>This API can be used only by the COM/XPCOM C++ API as it
|
---|
10589 | requires pointer support. Use <link to="#takeScreenShotSlow" />
|
---|
10590 | with other language bindings.
|
---|
10591 | </note>
|
---|
10592 |
|
---|
10593 | <result name="E_NOTIMPL">
|
---|
10594 | Feature not implemented.
|
---|
10595 | </result>
|
---|
10596 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10597 | Could not take a screenshot.
|
---|
10598 | </result>
|
---|
10599 |
|
---|
10600 | </desc>
|
---|
10601 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
10602 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10603 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10604 | </method>
|
---|
10605 |
|
---|
10606 | <method name="takeScreenShotSlow">
|
---|
10607 | <desc>
|
---|
10608 | Takes a guest screen shot of the requested size and returns it as
|
---|
10609 | an array of bytes in uncompressed 32-bit ARGB format.
|
---|
10610 | This API is slow, but could be the only option to get guest screenshot
|
---|
10611 | for scriptable languages not allowed to manipulate with addresses
|
---|
10612 | directly.
|
---|
10613 |
|
---|
10614 | <result name="E_NOTIMPL">
|
---|
10615 | Feature not implemented.
|
---|
10616 | </result>
|
---|
10617 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10618 | Could not take a screenshot.
|
---|
10619 | </result>
|
---|
10620 | </desc>
|
---|
10621 | <param name="width" type="unsigned long" dir="in">
|
---|
10622 | <desc>
|
---|
10623 | Desired image width.
|
---|
10624 | </desc>
|
---|
10625 | </param>
|
---|
10626 | <param name="height" type="unsigned long" dir="in">
|
---|
10627 | <desc>
|
---|
10628 | Desired image height.
|
---|
10629 | </desc>
|
---|
10630 | </param>
|
---|
10631 | <param name="screenData" type="octet" dir="return" safearray="yes">
|
---|
10632 | <desc>
|
---|
10633 | Array with resulting screen data.
|
---|
10634 | </desc>
|
---|
10635 | </param>
|
---|
10636 | </method>
|
---|
10637 |
|
---|
10638 | <method name="drawToScreen">
|
---|
10639 | <desc>
|
---|
10640 | Draws a 32-bpp image of the specified size from the given buffer
|
---|
10641 | to the given point on the VM display.
|
---|
10642 |
|
---|
10643 | <result name="E_NOTIMPL">
|
---|
10644 | Feature not implemented.
|
---|
10645 | </result>
|
---|
10646 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10647 | Could not draw to screen.
|
---|
10648 | </result>
|
---|
10649 |
|
---|
10650 | </desc>
|
---|
10651 | <param name="address" type="octet" mod="ptr" dir="in"/>
|
---|
10652 | <param name="x" type="unsigned long" dir="in"/>
|
---|
10653 | <param name="y" type="unsigned long" dir="in"/>
|
---|
10654 | <param name="width" type="unsigned long" dir="in"/>
|
---|
10655 | <param name="height" type="unsigned long" dir="in"/>
|
---|
10656 | </method>
|
---|
10657 |
|
---|
10658 | <method name="invalidateAndUpdate">
|
---|
10659 | <desc>
|
---|
10660 | Does a full invalidation of the VM display and instructs the VM
|
---|
10661 | to update it.
|
---|
10662 |
|
---|
10663 | <result name="VBOX_E_IPRT_ERROR">
|
---|
10664 | Could not invalidate and update screen.
|
---|
10665 | </result>
|
---|
10666 |
|
---|
10667 | </desc>
|
---|
10668 | </method>
|
---|
10669 |
|
---|
10670 | <method name="resizeCompleted">
|
---|
10671 | <desc>
|
---|
10672 | Signals that a framebuffer has completed the resize operation.
|
---|
10673 |
|
---|
10674 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10675 | Operation only valid for external frame buffers.
|
---|
10676 | </result>
|
---|
10677 |
|
---|
10678 | </desc>
|
---|
10679 | <param name="screenId" type="unsigned long" dir="in"/>
|
---|
10680 | </method>
|
---|
10681 |
|
---|
10682 | <method name="updateCompleted">
|
---|
10683 | <desc>
|
---|
10684 | Signals that a framebuffer has completed the update operation.
|
---|
10685 |
|
---|
10686 | <result name="VBOX_E_NOT_SUPPORTED">
|
---|
10687 | Operation only valid for external frame buffers.
|
---|
10688 | </result>
|
---|
10689 |
|
---|
10690 | </desc>
|
---|
10691 | </method>
|
---|
10692 |
|
---|
10693 | <method name="completeVHWACommand">
|
---|
10694 | <desc>
|
---|
10695 | Signals that the Video HW Acceleration command has completed.
|
---|
10696 | </desc>
|
---|
10697 |
|
---|
10698 | <param name="command" type="octet" mod="ptr" dir="in">
|
---|
10699 | <desc>Pointer to VBOXVHWACMD containing the completed command.</desc>
|
---|
10700 | </param>
|
---|
10701 | </method>
|
---|
10702 |
|
---|
10703 | </interface>
|
---|
10704 |
|
---|
10705 | <!--
|
---|
10706 | // INetworkAdapter
|
---|
10707 | /////////////////////////////////////////////////////////////////////////
|
---|
10708 | -->
|
---|
10709 |
|
---|
10710 | <enum
|
---|
10711 | name="NetworkAttachmentType"
|
---|
10712 | uuid="44bce1ee-99f7-4e8e-89fc-80597fd9eeaf"
|
---|
10713 | >
|
---|
10714 | <desc>
|
---|
10715 | Network attachment type.
|
---|
10716 | </desc>
|
---|
10717 |
|
---|
10718 | <const name="Null" value="0">
|
---|
10719 | <desc>Null value, also means "not attached".</desc>
|
---|
10720 | </const>
|
---|
10721 | <const name="NAT" value="1"/>
|
---|
10722 | <const name="Bridged" value="2"/>
|
---|
10723 | <const name="Internal" value="3"/>
|
---|
10724 | <const name="HostOnly" value="4"/>
|
---|
10725 | </enum>
|
---|
10726 |
|
---|
10727 | <enum
|
---|
10728 | name="NetworkAdapterType"
|
---|
10729 | uuid="50c3dfd8-07ac-4a31-baac-519c828fbf97"
|
---|
10730 | >
|
---|
10731 | <desc>
|
---|
10732 | Network adapter type.
|
---|
10733 | </desc>
|
---|
10734 |
|
---|
10735 | <const name="Null" value="0">
|
---|
10736 | <desc>Null value (never used by the API).</desc>
|
---|
10737 | </const>
|
---|
10738 | <const name="Am79C970A" value="1">
|
---|
10739 | <desc>AMD PCNet-PCI II network card (Am79C970A).</desc>
|
---|
10740 | </const>
|
---|
10741 | <const name="Am79C973" value="2">
|
---|
10742 | <desc>AMD PCNet-FAST III network card (Am79C973).</desc>
|
---|
10743 | </const>
|
---|
10744 | <const name="I82540EM" value="3">
|
---|
10745 | <desc>Intel PRO/1000 MT Desktop network card (82540EM).</desc>
|
---|
10746 | </const>
|
---|
10747 | <const name="I82543GC" value="4">
|
---|
10748 | <desc>Intel PRO/1000 T Server network card (82543GC).</desc>
|
---|
10749 | </const>
|
---|
10750 | <const name="I82545EM" value="5">
|
---|
10751 | <desc>Intel PRO/1000 MT Server network card (82545EM).</desc>
|
---|
10752 | </const>
|
---|
10753 | <const name="Virtio" value="6">
|
---|
10754 | <desc>Virtio network device.</desc>
|
---|
10755 | </const>
|
---|
10756 | </enum>
|
---|
10757 |
|
---|
10758 | <interface
|
---|
10759 | name="INetworkAdapter" extends="$unknown"
|
---|
10760 | uuid="65607a27-2b73-4d43-b4cc-0ba2c817fbde"
|
---|
10761 | wsmap="managed"
|
---|
10762 | >
|
---|
10763 | <desc>
|
---|
10764 | Represents a virtual network adapter that is attached to a virtual machine.
|
---|
10765 | Each virtual machine has a fixed number of network adapter slots with one
|
---|
10766 | instance of this attached to each of them. Call
|
---|
10767 | <link to="IMachine::getNetworkAdapter" /> to get the network adapter that
|
---|
10768 | is attached to a given slot in a given machine.
|
---|
10769 |
|
---|
10770 | Each network adapter can be in one of five attachment modes, which are
|
---|
10771 | represented by the <link to="NetworkAttachmentType" /> enumeration;
|
---|
10772 | see the <link to="#attachmentType" /> attribute.
|
---|
10773 | </desc>
|
---|
10774 |
|
---|
10775 | <attribute name="adapterType" type="NetworkAdapterType">
|
---|
10776 | <desc>
|
---|
10777 | Type of the virtual network adapter. Depending on this value,
|
---|
10778 | VirtualBox will provide a different virtual network hardware
|
---|
10779 | to the guest.
|
---|
10780 | </desc>
|
---|
10781 | </attribute>
|
---|
10782 |
|
---|
10783 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
10784 | <desc>
|
---|
10785 | Slot number this adapter is plugged into. Corresponds to
|
---|
10786 | the value you pass to <link to="IMachine::getNetworkAdapter"/>
|
---|
10787 | to obtain this instance.
|
---|
10788 | </desc>
|
---|
10789 | </attribute>
|
---|
10790 |
|
---|
10791 | <attribute name="enabled" type="boolean">
|
---|
10792 | <desc>
|
---|
10793 | Flag whether the network adapter is present in the
|
---|
10794 | guest system. If disabled, the virtual guest hardware will
|
---|
10795 | not contain this network adapter. Can only be changed when
|
---|
10796 | the VM is not running.
|
---|
10797 | </desc>
|
---|
10798 | </attribute>
|
---|
10799 |
|
---|
10800 | <attribute name="MACAddress" type="wstring">
|
---|
10801 | <desc>
|
---|
10802 | Ethernet MAC address of the adapter, 12 hexadecimal characters. When setting
|
---|
10803 | it to @c null or an empty string, VirtualBox will generate a unique MAC address.
|
---|
10804 | </desc>
|
---|
10805 | </attribute>
|
---|
10806 |
|
---|
10807 | <attribute name="attachmentType" type="NetworkAttachmentType" readonly="yes"/>
|
---|
10808 |
|
---|
10809 | <attribute name="hostInterface" type="wstring">
|
---|
10810 | <desc>
|
---|
10811 | Name of the host network interface the VM is attached to.
|
---|
10812 | </desc>
|
---|
10813 | </attribute>
|
---|
10814 |
|
---|
10815 | <attribute name="internalNetwork" type="wstring">
|
---|
10816 | <desc>
|
---|
10817 | Name of the internal network the VM is attached to.
|
---|
10818 | </desc>
|
---|
10819 | </attribute>
|
---|
10820 |
|
---|
10821 | <attribute name="NATNetwork" type="wstring">
|
---|
10822 | <desc>
|
---|
10823 | Name of the NAT network the VM is attached to.
|
---|
10824 | </desc>
|
---|
10825 | </attribute>
|
---|
10826 |
|
---|
10827 | <attribute name="cableConnected" type="boolean">
|
---|
10828 | <desc>
|
---|
10829 | Flag whether the adapter reports the cable as connected or not.
|
---|
10830 | It can be used to report offline situations to a VM.
|
---|
10831 | </desc>
|
---|
10832 | </attribute>
|
---|
10833 |
|
---|
10834 | <attribute name="lineSpeed" type="unsigned long">
|
---|
10835 | <desc>
|
---|
10836 | Line speed reported by custom drivers, in units of 1 kbps.
|
---|
10837 | </desc>
|
---|
10838 | </attribute>
|
---|
10839 |
|
---|
10840 | <attribute name="traceEnabled" type="boolean">
|
---|
10841 | <desc>
|
---|
10842 | Flag whether network traffic from/to the network card should be traced.
|
---|
10843 | Can only be toggled when the VM is turned off.
|
---|
10844 | </desc>
|
---|
10845 | </attribute>
|
---|
10846 |
|
---|
10847 | <attribute name="traceFile" type="wstring">
|
---|
10848 | <desc>
|
---|
10849 | Filename where a network trace will be stored. If not set, VBox-pid.pcap
|
---|
10850 | will be used.
|
---|
10851 | </desc>
|
---|
10852 | </attribute>
|
---|
10853 |
|
---|
10854 | <method name="attachToNAT">
|
---|
10855 | <desc>
|
---|
10856 | Attach the network adapter to the Network Address Translation (NAT) interface.
|
---|
10857 | </desc>
|
---|
10858 | </method>
|
---|
10859 |
|
---|
10860 | <method name="attachToBridgedInterface">
|
---|
10861 | <desc>
|
---|
10862 | Attach the network adapter to a bridged host interface.
|
---|
10863 | </desc>
|
---|
10864 | </method>
|
---|
10865 |
|
---|
10866 | <method name="attachToInternalNetwork">
|
---|
10867 | <desc>
|
---|
10868 | Attach the network adapter to an internal network.
|
---|
10869 | </desc>
|
---|
10870 | </method>
|
---|
10871 |
|
---|
10872 | <method name="attachToHostOnlyInterface">
|
---|
10873 | <desc>
|
---|
10874 | Attach the network adapter to the host-only network.
|
---|
10875 | </desc>
|
---|
10876 | </method>
|
---|
10877 |
|
---|
10878 | <method name="detach">
|
---|
10879 | <desc>
|
---|
10880 | Detach the network adapter
|
---|
10881 | </desc>
|
---|
10882 | </method>
|
---|
10883 | </interface>
|
---|
10884 |
|
---|
10885 |
|
---|
10886 | <!--
|
---|
10887 | // ISerialPort
|
---|
10888 | /////////////////////////////////////////////////////////////////////////
|
---|
10889 | -->
|
---|
10890 |
|
---|
10891 | <enum
|
---|
10892 | name="PortMode"
|
---|
10893 | uuid="533b5fe3-0185-4197-86a7-17e37dd39d76"
|
---|
10894 | >
|
---|
10895 | <desc>
|
---|
10896 | The PortMode enumeration represents possible communication modes for
|
---|
10897 | the virtual serial port device.
|
---|
10898 | </desc>
|
---|
10899 |
|
---|
10900 | <const name="Disconnected" value="0">
|
---|
10901 | <desc>Virtual device is not attached to any real host device.</desc>
|
---|
10902 | </const>
|
---|
10903 | <const name="HostPipe" value="1">
|
---|
10904 | <desc>Virtual device is attached to a host pipe.</desc>
|
---|
10905 | </const>
|
---|
10906 | <const name="HostDevice" value="2">
|
---|
10907 | <desc>Virtual device is attached to a host device.</desc>
|
---|
10908 | </const>
|
---|
10909 | <const name="RawFile" value="3">
|
---|
10910 | <desc>Virtual device is attached to a raw file.</desc>
|
---|
10911 | </const>
|
---|
10912 | </enum>
|
---|
10913 |
|
---|
10914 | <interface
|
---|
10915 | name="ISerialPort" extends="$unknown"
|
---|
10916 | uuid="937f6970-5103-4745-b78e-d28dcf1479a8"
|
---|
10917 | wsmap="managed"
|
---|
10918 | >
|
---|
10919 |
|
---|
10920 | <desc>
|
---|
10921 | The ISerialPort interface represents the virtual serial port device.
|
---|
10922 |
|
---|
10923 | The virtual serial port device acts like an ordinary serial port
|
---|
10924 | inside the virtual machine. This device communicates to the real
|
---|
10925 | serial port hardware in one of two modes: host pipe or host device.
|
---|
10926 |
|
---|
10927 | In host pipe mode, the #path attribute specifies the path to the pipe on
|
---|
10928 | the host computer that represents a serial port. The #server attribute
|
---|
10929 | determines if this pipe is created by the virtual machine process at
|
---|
10930 | machine startup or it must already exist before starting machine
|
---|
10931 | execution.
|
---|
10932 |
|
---|
10933 | In host device mode, the #path attribute specifies the name of the
|
---|
10934 | serial port device on the host computer.
|
---|
10935 |
|
---|
10936 | There is also a third communication mode: the disconnected mode. In this
|
---|
10937 | mode, the guest OS running inside the virtual machine will be able to
|
---|
10938 | detect the serial port, but all port write operations will be discarded
|
---|
10939 | and all port read operations will return no data.
|
---|
10940 |
|
---|
10941 | <see>IMachine::getSerialPort</see>
|
---|
10942 | </desc>
|
---|
10943 |
|
---|
10944 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
10945 | <desc>
|
---|
10946 | Slot number this serial port is plugged into. Corresponds to
|
---|
10947 | the value you pass to <link to="IMachine::getSerialPort"/>
|
---|
10948 | to obtain this instance.
|
---|
10949 | </desc>
|
---|
10950 | </attribute>
|
---|
10951 |
|
---|
10952 | <attribute name="enabled" type="boolean">
|
---|
10953 | <desc>
|
---|
10954 | Flag whether the serial port is enabled. If disabled,
|
---|
10955 | the serial port will not be reported to the guest OS.
|
---|
10956 | </desc>
|
---|
10957 | </attribute>
|
---|
10958 |
|
---|
10959 | <attribute name="IOBase" type="unsigned long">
|
---|
10960 | <desc>Base I/O address of the serial port.</desc>
|
---|
10961 | </attribute>
|
---|
10962 |
|
---|
10963 | <attribute name="IRQ" type="unsigned long">
|
---|
10964 | <desc>IRQ number of the serial port.</desc>
|
---|
10965 | </attribute>
|
---|
10966 |
|
---|
10967 | <attribute name="hostMode" type="PortMode">
|
---|
10968 | <desc>
|
---|
10969 | How is this port connected to the host.
|
---|
10970 | <note>
|
---|
10971 | Changing this attribute may fail if the conditions for
|
---|
10972 | <link to="#path"/> are not met.
|
---|
10973 | </note>
|
---|
10974 | </desc>
|
---|
10975 | </attribute>
|
---|
10976 |
|
---|
10977 | <attribute name="server" type="boolean">
|
---|
10978 | <desc>
|
---|
10979 | Flag whether this serial port acts as a server (creates a new pipe on
|
---|
10980 | the host) or as a client (uses the existing pipe). This attribute is
|
---|
10981 | used only when <link to="#hostMode"/> is PortMode_HostPipe.
|
---|
10982 | </desc>
|
---|
10983 | </attribute>
|
---|
10984 |
|
---|
10985 | <attribute name="path" type="wstring">
|
---|
10986 | <desc>
|
---|
10987 | Path to the serial port's pipe on the host when <link to="ISerialPort::hostMode"/> is
|
---|
10988 | PortMode_HostPipe, or the host serial device name when
|
---|
10989 | <link to="ISerialPort::hostMode"/> is PortMode_HostDevice. For both
|
---|
10990 | cases, setting a @c null or empty string as the attribute's value
|
---|
10991 | is an error. Otherwise, the value of this property is ignored.
|
---|
10992 | </desc>
|
---|
10993 | </attribute>
|
---|
10994 |
|
---|
10995 | </interface>
|
---|
10996 |
|
---|
10997 | <!--
|
---|
10998 | // IParallelPort
|
---|
10999 | /////////////////////////////////////////////////////////////////////////
|
---|
11000 | -->
|
---|
11001 |
|
---|
11002 | <interface
|
---|
11003 | name="IParallelPort" extends="$unknown"
|
---|
11004 | uuid="0c925f06-dd10-4b77-8de8-294d738c3214"
|
---|
11005 | wsmap="managed"
|
---|
11006 | >
|
---|
11007 |
|
---|
11008 | <desc>
|
---|
11009 | The IParallelPort interface represents the virtual parallel port device.
|
---|
11010 |
|
---|
11011 | The virtual parallel port device acts like an ordinary parallel port
|
---|
11012 | inside the virtual machine. This device communicates to the real
|
---|
11013 | parallel port hardware using the name of the parallel device on the host
|
---|
11014 | computer specified in the #path attribute.
|
---|
11015 |
|
---|
11016 | Each virtual parallel port device is assigned a base I/O address and an
|
---|
11017 | IRQ number that will be reported to the guest operating system and used
|
---|
11018 | to operate the given parallel port from within the virtual machine.
|
---|
11019 |
|
---|
11020 | <see>IMachine::getParallelPort</see>
|
---|
11021 | </desc>
|
---|
11022 |
|
---|
11023 | <attribute name="slot" type="unsigned long" readonly="yes">
|
---|
11024 | <desc>
|
---|
11025 | Slot number this parallel port is plugged into. Corresponds to
|
---|
11026 | the value you pass to <link to="IMachine::getParallelPort"/>
|
---|
11027 | to obtain this instance.
|
---|
11028 | </desc>
|
---|
11029 | </attribute>
|
---|
11030 |
|
---|
11031 | <attribute name="enabled" type="boolean">
|
---|
11032 | <desc>
|
---|
11033 | Flag whether the parallel port is enabled. If disabled,
|
---|
11034 | the parallel port will not be reported to the guest OS.
|
---|
11035 | </desc>
|
---|
11036 | </attribute>
|
---|
11037 |
|
---|
11038 | <attribute name="IOBase" type="unsigned long">
|
---|
11039 | <desc>Base I/O address of the parallel port.</desc>
|
---|
11040 | </attribute>
|
---|
11041 |
|
---|
11042 | <attribute name="IRQ" type="unsigned long">
|
---|
11043 | <desc>IRQ number of the parallel port.</desc>
|
---|
11044 | </attribute>
|
---|
11045 |
|
---|
11046 | <attribute name="path" type="wstring">
|
---|
11047 | <desc>
|
---|
11048 | Host parallel device name. If this parallel port is enabled, setting a
|
---|
11049 | @c null or an empty string as this attribute's value will result into
|
---|
11050 | an error.
|
---|
11051 | </desc>
|
---|
11052 | </attribute>
|
---|
11053 |
|
---|
11054 | </interface>
|
---|
11055 |
|
---|
11056 |
|
---|
11057 | <!--
|
---|
11058 | // IMachineDebugger
|
---|
11059 | /////////////////////////////////////////////////////////////////////////
|
---|
11060 | -->
|
---|
11061 |
|
---|
11062 | <interface
|
---|
11063 | name="IMachineDebugger" extends="$unknown"
|
---|
11064 | uuid="b0b2a2dd-0627-4502-91c2-ddc5e77609e0"
|
---|
11065 | wsmap="suppress"
|
---|
11066 | >
|
---|
11067 | <method name="resetStats">
|
---|
11068 | <desc>
|
---|
11069 | Reset VM statistics.
|
---|
11070 | </desc>
|
---|
11071 | <param name="pattern" type="wstring" dir="in">
|
---|
11072 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11073 | </param>
|
---|
11074 | </method>
|
---|
11075 |
|
---|
11076 | <method name="dumpStats">
|
---|
11077 | <desc>
|
---|
11078 | Dumps VM statistics.
|
---|
11079 | </desc>
|
---|
11080 | <param name="pattern" type="wstring" dir="in">
|
---|
11081 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11082 | </param>
|
---|
11083 | </method>
|
---|
11084 |
|
---|
11085 | <method name="getStats">
|
---|
11086 | <desc>
|
---|
11087 | Get the VM statistics in a XMLish format.
|
---|
11088 | </desc>
|
---|
11089 | <param name="pattern" type="wstring" dir="in">
|
---|
11090 | <desc>The selection pattern. A bit similar to filename globbing.</desc>
|
---|
11091 | </param>
|
---|
11092 | <param name="withDescriptions" type="boolean" dir="in">
|
---|
11093 | <desc>Whether to include the descriptions.</desc>
|
---|
11094 | </param>
|
---|
11095 | <param name="stats" type="wstring" dir="out">
|
---|
11096 | <desc>The XML document containing the statistics.</desc>
|
---|
11097 | </param>
|
---|
11098 | </method>
|
---|
11099 |
|
---|
11100 | <method name="injectNMI">
|
---|
11101 | <desc>
|
---|
11102 | Inject an NMI into a running VT-x/AMD-V VM.
|
---|
11103 | </desc>
|
---|
11104 | </method>
|
---|
11105 |
|
---|
11106 | <attribute name="singlestep" type="boolean">
|
---|
11107 | <desc>Switch for enabling singlestepping.</desc>
|
---|
11108 | </attribute>
|
---|
11109 |
|
---|
11110 | <attribute name="recompileUser" type="boolean">
|
---|
11111 | <desc>Switch for forcing code recompilation for user mode code.</desc>
|
---|
11112 | </attribute>
|
---|
11113 |
|
---|
11114 | <attribute name="recompileSupervisor" type="boolean">
|
---|
11115 | <desc>Switch for forcing code recompilation for supervisor mode code.</desc>
|
---|
11116 | </attribute>
|
---|
11117 |
|
---|
11118 | <attribute name="PATMEnabled" type="boolean">
|
---|
11119 | <desc>Switch for enabling and disabling the PATM component.</desc>
|
---|
11120 | </attribute>
|
---|
11121 |
|
---|
11122 | <attribute name="CSAMEnabled" type="boolean">
|
---|
11123 | <desc>Switch for enabling and disabling the CSAM component.</desc>
|
---|
11124 | </attribute>
|
---|
11125 |
|
---|
11126 | <attribute name="logEnabled" type="boolean">
|
---|
11127 | <desc>Switch for enabling and disabling logging.</desc>
|
---|
11128 | </attribute>
|
---|
11129 |
|
---|
11130 | <attribute name="HWVirtExEnabled" type="boolean" readonly="yes">
|
---|
11131 | <desc>
|
---|
11132 | Flag indicating whether the VM is currently making use of CPU hardware
|
---|
11133 | virtualization extensions.
|
---|
11134 | </desc>
|
---|
11135 | </attribute>
|
---|
11136 |
|
---|
11137 | <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes">
|
---|
11138 | <desc>
|
---|
11139 | Flag indicating whether the VM is currently making use of the nested paging
|
---|
11140 | CPU hardware virtualization extension.
|
---|
11141 | </desc>
|
---|
11142 | </attribute>
|
---|
11143 |
|
---|
11144 | <attribute name="HWVirtExVPIDEnabled" type="boolean" readonly="yes">
|
---|
11145 | <desc>
|
---|
11146 | Flag indicating whether the VM is currently making use of the VPID
|
---|
11147 | VT-x extension.
|
---|
11148 | </desc>
|
---|
11149 | </attribute>
|
---|
11150 |
|
---|
11151 | <attribute name="PAEEnabled" type="boolean" readonly="yes">
|
---|
11152 | <desc>
|
---|
11153 | Flag indicating whether the VM is currently making use of the Physical
|
---|
11154 | Address Extension CPU feature.
|
---|
11155 | </desc>
|
---|
11156 | </attribute>
|
---|
11157 |
|
---|
11158 | <attribute name="virtualTimeRate" type="unsigned long">
|
---|
11159 | <desc>
|
---|
11160 | The rate at which the virtual time runs expressed as a percentage.
|
---|
11161 | The accepted range is 2% to 20000%.
|
---|
11162 | </desc>
|
---|
11163 | </attribute>
|
---|
11164 |
|
---|
11165 | <!-- @todo method for setting log flags, groups and destination! -->
|
---|
11166 |
|
---|
11167 | <attribute name="VM" type="unsigned long long" readonly="yes">
|
---|
11168 | <desc>
|
---|
11169 | Gets the VM handle. This is only for internal use while
|
---|
11170 | we carve the details of this interface.
|
---|
11171 | </desc>
|
---|
11172 | </attribute>
|
---|
11173 |
|
---|
11174 | </interface>
|
---|
11175 |
|
---|
11176 | <!--
|
---|
11177 | // IUSBController
|
---|
11178 | /////////////////////////////////////////////////////////////////////////
|
---|
11179 | -->
|
---|
11180 |
|
---|
11181 | <interface
|
---|
11182 | name="IUSBController" extends="$unknown"
|
---|
11183 | uuid="238540fa-4b73-435a-a38e-4e1d9eab5c17"
|
---|
11184 | wsmap="managed"
|
---|
11185 | >
|
---|
11186 | <attribute name="enabled" type="boolean">
|
---|
11187 | <desc>
|
---|
11188 | Flag whether the USB controller is present in the
|
---|
11189 | guest system. If disabled, the virtual guest hardware will
|
---|
11190 | not contain any USB controller. Can only be changed when
|
---|
11191 | the VM is powered off.
|
---|
11192 | </desc>
|
---|
11193 | </attribute>
|
---|
11194 |
|
---|
11195 | <attribute name="enabledEhci" type="boolean">
|
---|
11196 | <desc>
|
---|
11197 | Flag whether the USB EHCI controller is present in the
|
---|
11198 | guest system. If disabled, the virtual guest hardware will
|
---|
11199 | not contain a USB EHCI controller. Can only be changed when
|
---|
11200 | the VM is powered off.
|
---|
11201 | </desc>
|
---|
11202 | </attribute>
|
---|
11203 |
|
---|
11204 | <attribute name="USBStandard" type="unsigned short" readonly="yes">
|
---|
11205 | <desc>
|
---|
11206 | USB standard version which the controller implements.
|
---|
11207 | This is a BCD which means that the major version is in the
|
---|
11208 | high byte and minor version is in the low byte.
|
---|
11209 | </desc>
|
---|
11210 | </attribute>
|
---|
11211 |
|
---|
11212 | <attribute name="deviceFilters" type="IUSBDeviceFilter" readonly="yes" safearray="yes">
|
---|
11213 | <desc>
|
---|
11214 | List of USB device filters associated with the machine.
|
---|
11215 |
|
---|
11216 | If the machine is currently running, these filters are activated
|
---|
11217 | every time a new (supported) USB device is attached to the host
|
---|
11218 | computer that was not ignored by global filters
|
---|
11219 | (<link to="IHost::USBDeviceFilters"/>).
|
---|
11220 |
|
---|
11221 | These filters are also activated when the machine is powered up.
|
---|
11222 | They are run against a list of all currently available USB
|
---|
11223 | devices (in states
|
---|
11224 | <link to="USBDeviceState_Available"/>,
|
---|
11225 | <link to="USBDeviceState_Busy"/>,
|
---|
11226 | <link to="USBDeviceState_Held"/>) that were not previously
|
---|
11227 | ignored by global filters.
|
---|
11228 |
|
---|
11229 | If at least one filter matches the USB device in question, this
|
---|
11230 | device is automatically captured (attached to) the virtual USB
|
---|
11231 | controller of this machine.
|
---|
11232 |
|
---|
11233 | <see>IUSBDeviceFilter, ::IUSBController</see>
|
---|
11234 | </desc>
|
---|
11235 | </attribute>
|
---|
11236 |
|
---|
11237 | <method name="createDeviceFilter">
|
---|
11238 | <desc>
|
---|
11239 | Creates a new USB device filter. All attributes except
|
---|
11240 | the filter name are set to empty (any match),
|
---|
11241 | <i>active</i> is @c false (the filter is not active).
|
---|
11242 |
|
---|
11243 | The created filter can then be added to the list of filters using
|
---|
11244 | <link to="#insertDeviceFilter"/>.
|
---|
11245 |
|
---|
11246 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11247 | The virtual machine is not mutable.
|
---|
11248 | </result>
|
---|
11249 |
|
---|
11250 | <see>#deviceFilters</see>
|
---|
11251 | </desc>
|
---|
11252 | <param name="name" type="wstring" dir="in">
|
---|
11253 | <desc>
|
---|
11254 | Filter name. See <link to="IUSBDeviceFilter::name"/>
|
---|
11255 | for more info.
|
---|
11256 | </desc>
|
---|
11257 | </param>
|
---|
11258 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11259 | <desc>Created filter object.</desc>
|
---|
11260 | </param>
|
---|
11261 | </method>
|
---|
11262 |
|
---|
11263 | <method name="insertDeviceFilter">
|
---|
11264 | <desc>
|
---|
11265 | Inserts the given USB device to the specified position
|
---|
11266 | in the list of filters.
|
---|
11267 |
|
---|
11268 | Positions are numbered starting from <tt>0</tt>. If the specified
|
---|
11269 | position is equal to or greater than the number of elements in
|
---|
11270 | the list, the filter is added to the end of the collection.
|
---|
11271 |
|
---|
11272 | <note>
|
---|
11273 | Duplicates are not allowed, so an attempt to insert a
|
---|
11274 | filter that is already in the collection, will return an
|
---|
11275 | error.
|
---|
11276 | </note>
|
---|
11277 |
|
---|
11278 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11279 | Virtual machine is not mutable.
|
---|
11280 | </result>
|
---|
11281 | <result name="E_INVALIDARG">
|
---|
11282 | USB device filter not created within this VirtualBox instance.
|
---|
11283 | </result>
|
---|
11284 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
11285 | USB device filter already in list.
|
---|
11286 | </result>
|
---|
11287 |
|
---|
11288 | <see>#deviceFilters</see>
|
---|
11289 | </desc>
|
---|
11290 | <param name="position" type="unsigned long" dir="in">
|
---|
11291 | <desc>Position to insert the filter to.</desc>
|
---|
11292 | </param>
|
---|
11293 | <param name="filter" type="IUSBDeviceFilter" dir="in">
|
---|
11294 | <desc>USB device filter to insert.</desc>
|
---|
11295 | </param>
|
---|
11296 | </method>
|
---|
11297 |
|
---|
11298 | <method name="removeDeviceFilter">
|
---|
11299 | <desc>
|
---|
11300 | Removes a USB device filter from the specified position in the
|
---|
11301 | list of filters.
|
---|
11302 |
|
---|
11303 | Positions are numbered starting from <tt>0</tt>. Specifying a
|
---|
11304 | position equal to or greater than the number of elements in
|
---|
11305 | the list will produce an error.
|
---|
11306 |
|
---|
11307 | <see>#deviceFilters</see>
|
---|
11308 |
|
---|
11309 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
11310 | Virtual machine is not mutable.
|
---|
11311 | </result>
|
---|
11312 | <result name="E_INVALIDARG">
|
---|
11313 | USB device filter list empty or invalid @a position.
|
---|
11314 | </result>
|
---|
11315 |
|
---|
11316 | </desc>
|
---|
11317 | <param name="position" type="unsigned long" dir="in">
|
---|
11318 | <desc>Position to remove the filter from.</desc>
|
---|
11319 | </param>
|
---|
11320 | <param name="filter" type="IUSBDeviceFilter" dir="return">
|
---|
11321 | <desc>Removed USB device filter.</desc>
|
---|
11322 | </param>
|
---|
11323 | </method>
|
---|
11324 |
|
---|
11325 | </interface>
|
---|
11326 |
|
---|
11327 |
|
---|
11328 | <!--
|
---|
11329 | // IUSBDevice
|
---|
11330 | /////////////////////////////////////////////////////////////////////////
|
---|
11331 | -->
|
---|
11332 |
|
---|
11333 | <interface
|
---|
11334 | name="IUSBDevice" extends="$unknown"
|
---|
11335 | uuid="f8967b0b-4483-400f-92b5-8b675d98a85b"
|
---|
11336 | wsmap="managed"
|
---|
11337 | >
|
---|
11338 | <desc>
|
---|
11339 | The IUSBDevice interface represents a virtual USB device attached to the
|
---|
11340 | virtual machine.
|
---|
11341 |
|
---|
11342 | A collection of objects implementing this interface is stored in the
|
---|
11343 | <link to="IConsole::USBDevices"/> attribute which lists all USB devices
|
---|
11344 | attached to a running virtual machine's USB controller.
|
---|
11345 | </desc>
|
---|
11346 |
|
---|
11347 | <attribute name="id" type="wstring" readonly="yes">
|
---|
11348 | <desc>
|
---|
11349 | Unique USB device ID. This ID is built from #vendorId,
|
---|
11350 | #productId, #revision and #serialNumber.
|
---|
11351 | </desc>
|
---|
11352 | </attribute>
|
---|
11353 |
|
---|
11354 | <attribute name="vendorId" type="unsigned short" readonly="yes">
|
---|
11355 | <desc>Vendor ID.</desc>
|
---|
11356 | </attribute>
|
---|
11357 |
|
---|
11358 | <attribute name="productId" type="unsigned short" readonly="yes">
|
---|
11359 | <desc>Product ID.</desc>
|
---|
11360 | </attribute>
|
---|
11361 |
|
---|
11362 | <attribute name="revision" type="unsigned short" readonly="yes">
|
---|
11363 | <desc>
|
---|
11364 | Product revision number. This is a packed BCD represented as
|
---|
11365 | unsigned short. The high byte is the integer part and the low
|
---|
11366 | byte is the decimal.
|
---|
11367 | </desc>
|
---|
11368 | </attribute>
|
---|
11369 |
|
---|
11370 | <attribute name="manufacturer" type="wstring" readonly="yes">
|
---|
11371 | <desc>Manufacturer string.</desc>
|
---|
11372 | </attribute>
|
---|
11373 |
|
---|
11374 | <attribute name="product" type="wstring" readonly="yes">
|
---|
11375 | <desc>Product string.</desc>
|
---|
11376 | </attribute>
|
---|
11377 |
|
---|
11378 | <attribute name="serialNumber" type="wstring" readonly="yes">
|
---|
11379 | <desc>Serial number string.</desc>
|
---|
11380 | </attribute>
|
---|
11381 |
|
---|
11382 | <attribute name="address" type="wstring" readonly="yes">
|
---|
11383 | <desc>Host specific address of the device.</desc>
|
---|
11384 | </attribute>
|
---|
11385 |
|
---|
11386 | <attribute name="port" type="unsigned short" readonly="yes">
|
---|
11387 | <desc>
|
---|
11388 | Host USB port number the device is physically
|
---|
11389 | connected to.
|
---|
11390 | </desc>
|
---|
11391 | </attribute>
|
---|
11392 |
|
---|
11393 | <attribute name="version" type="unsigned short" readonly="yes">
|
---|
11394 | <desc>
|
---|
11395 | The major USB version of the device - 1 or 2.
|
---|
11396 | </desc>
|
---|
11397 | </attribute>
|
---|
11398 |
|
---|
11399 | <attribute name="portVersion" type="unsigned short" readonly="yes">
|
---|
11400 | <desc>
|
---|
11401 | The major USB version of the host USB port the device is
|
---|
11402 | physically connected to - 1 or 2. For devices not connected to
|
---|
11403 | anything this will have the same value as the version attribute.
|
---|
11404 | </desc>
|
---|
11405 | </attribute>
|
---|
11406 |
|
---|
11407 | <attribute name="remote" type="boolean" readonly="yes">
|
---|
11408 | <desc>
|
---|
11409 | Whether the device is physically connected to a remote VRDP
|
---|
11410 | client or to a local host machine.
|
---|
11411 | </desc>
|
---|
11412 | </attribute>
|
---|
11413 |
|
---|
11414 | </interface>
|
---|
11415 |
|
---|
11416 |
|
---|
11417 | <!--
|
---|
11418 | // IUSBDeviceFilter
|
---|
11419 | /////////////////////////////////////////////////////////////////////////
|
---|
11420 | -->
|
---|
11421 |
|
---|
11422 | <interface
|
---|
11423 | name="IUSBDeviceFilter" extends="$unknown"
|
---|
11424 | uuid="d6831fb4-1a94-4c2c-96ef-8d0d6192066d"
|
---|
11425 | wsmap="managed"
|
---|
11426 | >
|
---|
11427 | <desc>
|
---|
11428 | The IUSBDeviceFilter interface represents an USB device filter used
|
---|
11429 | to perform actions on a group of USB devices.
|
---|
11430 |
|
---|
11431 | This type of filters is used by running virtual machines to
|
---|
11432 | automatically capture selected USB devices once they are physically
|
---|
11433 | attached to the host computer.
|
---|
11434 |
|
---|
11435 | A USB device is matched to the given device filter if and only if all
|
---|
11436 | attributes of the device match the corresponding attributes of the
|
---|
11437 | filter (that is, attributes are joined together using the logical AND
|
---|
11438 | operation). On the other hand, all together, filters in the list of
|
---|
11439 | filters carry the semantics of the logical OR operation. So if it is
|
---|
11440 | desirable to create a match like "this vendor id OR this product id",
|
---|
11441 | one needs to create two filters and specify "any match" (see below)
|
---|
11442 | for unused attributes.
|
---|
11443 |
|
---|
11444 | All filter attributes used for matching are strings. Each string
|
---|
11445 | is an expression representing a set of values of the corresponding
|
---|
11446 | device attribute, that will match the given filter. Currently, the
|
---|
11447 | following filtering expressions are supported:
|
---|
11448 |
|
---|
11449 | <ul>
|
---|
11450 | <li><i>Interval filters</i>. Used to specify valid intervals for
|
---|
11451 | integer device attributes (Vendor ID, Product ID and Revision).
|
---|
11452 | The format of the string is:
|
---|
11453 |
|
---|
11454 | <tt>int:((m)|([m]-[n]))(,(m)|([m]-[n]))*</tt>
|
---|
11455 |
|
---|
11456 | where <tt>m</tt> and <tt>n</tt> are integer numbers, either in octal
|
---|
11457 | (starting from <tt>0</tt>), hexadecimal (starting from <tt>0x</tt>)
|
---|
11458 | or decimal (otherwise) form, so that <tt>m < n</tt>. If <tt>m</tt>
|
---|
11459 | is omitted before a dash (<tt>-</tt>), the minimum possible integer
|
---|
11460 | is assumed; if <tt>n</tt> is omitted after a dash, the maximum
|
---|
11461 | possible integer is assumed.
|
---|
11462 | </li>
|
---|
11463 | <li><i>Boolean filters</i>. Used to specify acceptable values for
|
---|
11464 | boolean device attributes. The format of the string is:
|
---|
11465 |
|
---|
11466 | <tt>true|false|yes|no|0|1</tt>
|
---|
11467 |
|
---|
11468 | </li>
|
---|
11469 | <li><i>Exact match</i>. Used to specify a single value for the given
|
---|
11470 | device attribute. Any string that doesn't start with <tt>int:</tt>
|
---|
11471 | represents the exact match. String device attributes are compared to
|
---|
11472 | this string including case of symbols. Integer attributes are first
|
---|
11473 | converted to a string (see individual filter attributes) and then
|
---|
11474 | compared ignoring case.
|
---|
11475 |
|
---|
11476 | </li>
|
---|
11477 | <li><i>Any match</i>. Any value of the corresponding device attribute
|
---|
11478 | will match the given filter. An empty or @c null string is
|
---|
11479 | used to construct this type of filtering expressions.
|
---|
11480 |
|
---|
11481 | </li>
|
---|
11482 | </ul>
|
---|
11483 |
|
---|
11484 | <note>
|
---|
11485 | On the Windows host platform, interval filters are not currently
|
---|
11486 | available. Also all string filter attributes
|
---|
11487 | (<link to="#manufacturer"/>, <link to="#product"/>,
|
---|
11488 | <link to="#serialNumber"/>) are ignored, so they behave as
|
---|
11489 | <i>any match</i> no matter what string expression is specified.
|
---|
11490 | </note>
|
---|
11491 |
|
---|
11492 | <see>IUSBController::deviceFilters, IHostUSBDeviceFilter</see>
|
---|
11493 | </desc>
|
---|
11494 |
|
---|
11495 | <attribute name="name" type="wstring">
|
---|
11496 | <desc>
|
---|
11497 | Visible name for this filter.
|
---|
11498 | This name is used to visually distinguish one filter from another,
|
---|
11499 | so it can neither be @c null nor an empty string.
|
---|
11500 | </desc>
|
---|
11501 | </attribute>
|
---|
11502 |
|
---|
11503 | <attribute name="active" type="boolean">
|
---|
11504 | <desc>Whether this filter active or has been temporarily disabled.</desc>
|
---|
11505 | </attribute>
|
---|
11506 |
|
---|
11507 | <attribute name="vendorId" type="wstring">
|
---|
11508 | <desc>
|
---|
11509 | <link to="IUSBDevice::vendorId">Vendor ID</link> filter.
|
---|
11510 | The string representation for the <i>exact matching</i>
|
---|
11511 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
11512 | (including leading zeroes).
|
---|
11513 | </desc>
|
---|
11514 | </attribute>
|
---|
11515 |
|
---|
11516 | <attribute name="productId" type="wstring">
|
---|
11517 | <desc>
|
---|
11518 | <link to="IUSBDevice::productId">Product ID</link> filter.
|
---|
11519 | The string representation for the <i>exact matching</i>
|
---|
11520 | has the form <tt>XXXX</tt>, where <tt>X</tt> is the hex digit
|
---|
11521 | (including leading zeroes).
|
---|
11522 | </desc>
|
---|
11523 | </attribute>
|
---|
11524 |
|
---|
11525 | <attribute name="revision" type="wstring">
|
---|
11526 | <desc>
|
---|
11527 | <link to="IUSBDevice::productId">Product revision number</link>
|
---|
11528 | filter. The string representation for the <i>exact matching</i>
|
---|
11529 | has the form <tt>IIFF</tt>, where <tt>I</tt> is the decimal digit
|
---|
11530 | of the integer part of the revision, and <tt>F</tt> is the
|
---|
11531 | decimal digit of its fractional part (including leading and
|
---|
11532 | trailing zeros).
|
---|
11533 | Note that for interval filters, it's best to use the hexadecimal
|
---|
11534 | form, because the revision is stored as a 16 bit packed BCD value;
|
---|
11535 | so the expression <tt>int:0x0100-0x0199</tt> will match any
|
---|
11536 | revision from <tt>1.0</tt> to <tt>1.99</tt>.
|
---|
11537 | </desc>
|
---|
11538 | </attribute>
|
---|
11539 |
|
---|
11540 | <attribute name="manufacturer" type="wstring">
|
---|
11541 | <desc>
|
---|
11542 | <link to="IUSBDevice::manufacturer">Manufacturer</link> filter.
|
---|
11543 | </desc>
|
---|
11544 | </attribute>
|
---|
11545 |
|
---|
11546 | <attribute name="product" type="wstring">
|
---|
11547 | <desc>
|
---|
11548 | <link to="IUSBDevice::product">Product</link> filter.
|
---|
11549 | </desc>
|
---|
11550 | </attribute>
|
---|
11551 |
|
---|
11552 | <attribute name="serialNumber" type="wstring">
|
---|
11553 | <desc>
|
---|
11554 | <link to="IUSBDevice::serialNumber">Serial number</link> filter.
|
---|
11555 | </desc>
|
---|
11556 | </attribute>
|
---|
11557 |
|
---|
11558 | <attribute name="port" type="wstring">
|
---|
11559 | <desc>
|
---|
11560 | <link to="IUSBDevice::port">Host USB port</link> filter.
|
---|
11561 | </desc>
|
---|
11562 | </attribute>
|
---|
11563 |
|
---|
11564 | <attribute name="remote" type="wstring">
|
---|
11565 | <desc>
|
---|
11566 | <link to="IUSBDevice::remote">Remote state</link> filter.
|
---|
11567 | <note>
|
---|
11568 | This filter makes sense only for machine USB filters,
|
---|
11569 | i.e. it is ignored by IHostUSBDeviceFilter objects.
|
---|
11570 | </note>
|
---|
11571 | </desc>
|
---|
11572 | </attribute>
|
---|
11573 |
|
---|
11574 | <attribute name="maskedInterfaces" type="unsigned long">
|
---|
11575 | <desc>
|
---|
11576 | This is an advanced option for hiding one or more USB interfaces
|
---|
11577 | from the guest. The value is a bit mask where the bits that are set
|
---|
11578 | means the corresponding USB interface should be hidden, masked off
|
---|
11579 | if you like.
|
---|
11580 | This feature only works on Linux hosts.
|
---|
11581 | </desc>
|
---|
11582 | </attribute>
|
---|
11583 |
|
---|
11584 | </interface>
|
---|
11585 |
|
---|
11586 |
|
---|
11587 | <!--
|
---|
11588 | // IHostUSBDevice
|
---|
11589 | /////////////////////////////////////////////////////////////////////////
|
---|
11590 | -->
|
---|
11591 |
|
---|
11592 | <enum
|
---|
11593 | name="USBDeviceState"
|
---|
11594 | uuid="b99a2e65-67fb-4882-82fd-f3e5e8193ab4"
|
---|
11595 | >
|
---|
11596 | <desc>
|
---|
11597 | USB device state. This enumeration represents all possible states
|
---|
11598 | of the USB device physically attached to the host computer regarding
|
---|
11599 | its state on the host computer and availability to guest computers
|
---|
11600 | (all currently running virtual machines).
|
---|
11601 |
|
---|
11602 | Once a supported USB device is attached to the host, global USB
|
---|
11603 | filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can
|
---|
11604 | either ignore the device, or put it to USBDeviceState_Held state, or do
|
---|
11605 | nothing. Unless the device is ignored by global filters, filters of all
|
---|
11606 | currently running guests (<link to="IUSBController::deviceFilters"/>) are
|
---|
11607 | activated that can put it to USBDeviceState_Captured state.
|
---|
11608 |
|
---|
11609 | If the device was ignored by global filters, or didn't match
|
---|
11610 | any filters at all (including guest ones), it is handled by the host
|
---|
11611 | in a normal way. In this case, the device state is determined by
|
---|
11612 | the host and can be one of USBDeviceState_Unavailable, USBDeviceState_Busy
|
---|
11613 | or USBDeviceState_Available, depending on the current device usage.
|
---|
11614 |
|
---|
11615 | Besides auto-capturing based on filters, the device can be manually
|
---|
11616 | captured by guests (<link to="IConsole::attachUSBDevice"/>) if its
|
---|
11617 | state is USBDeviceState_Busy, USBDeviceState_Available or
|
---|
11618 | USBDeviceState_Held.
|
---|
11619 |
|
---|
11620 | <note>
|
---|
11621 | Due to differences in USB stack implementations in Linux and Win32,
|
---|
11622 | states USBDeviceState_Busy and USBDeviceState_vailable are applicable
|
---|
11623 | only to the Linux version of the product. This also means that (<link
|
---|
11624 | to="IConsole::attachUSBDevice"/>) can only succeed on Win32 if the
|
---|
11625 | device state is USBDeviceState_Held.
|
---|
11626 | </note>
|
---|
11627 |
|
---|
11628 | <see>IHostUSBDevice, IHostUSBDeviceFilter</see>
|
---|
11629 | </desc>
|
---|
11630 |
|
---|
11631 | <const name="NotSupported" value="0">
|
---|
11632 | <desc>
|
---|
11633 | Not supported by the VirtualBox server, not available to guests.
|
---|
11634 | </desc>
|
---|
11635 | </const>
|
---|
11636 | <const name="Unavailable" value="1">
|
---|
11637 | <desc>
|
---|
11638 | Being used by the host computer exclusively,
|
---|
11639 | not available to guests.
|
---|
11640 | </desc>
|
---|
11641 | </const>
|
---|
11642 | <const name="Busy" value="2">
|
---|
11643 | <desc>
|
---|
11644 | Being used by the host computer, potentially available to guests.
|
---|
11645 | </desc>
|
---|
11646 | </const>
|
---|
11647 | <const name="Available" value="3">
|
---|
11648 | <desc>
|
---|
11649 | Not used by the host computer, available to guests (the host computer
|
---|
11650 | can also start using the device at any time).
|
---|
11651 | </desc>
|
---|
11652 | </const>
|
---|
11653 | <const name="Held" value="4">
|
---|
11654 | <desc>
|
---|
11655 | Held by the VirtualBox server (ignored by the host computer),
|
---|
11656 | available to guests.
|
---|
11657 | </desc>
|
---|
11658 | </const>
|
---|
11659 | <const name="Captured" value="5">
|
---|
11660 | <desc>
|
---|
11661 | Captured by one of the guest computers, not available
|
---|
11662 | to anybody else.
|
---|
11663 | </desc>
|
---|
11664 | </const>
|
---|
11665 | </enum>
|
---|
11666 |
|
---|
11667 | <interface
|
---|
11668 | name="IHostUSBDevice" extends="IUSBDevice"
|
---|
11669 | uuid="173b4b44-d268-4334-a00d-b6521c9a740a"
|
---|
11670 | wsmap="managed"
|
---|
11671 | >
|
---|
11672 | <desc>
|
---|
11673 | The IHostUSBDevice interface represents a physical USB device attached
|
---|
11674 | to the host computer.
|
---|
11675 |
|
---|
11676 | Besides properties inherited from IUSBDevice, this interface adds the
|
---|
11677 | <link to="#state"/> property that holds the current state of the USB
|
---|
11678 | device.
|
---|
11679 |
|
---|
11680 | <see>IHost::USBDevices, IHost::USBDeviceFilters</see>
|
---|
11681 | </desc>
|
---|
11682 |
|
---|
11683 | <attribute name="state" type="USBDeviceState" readonly="yes">
|
---|
11684 | <desc>
|
---|
11685 | Current state of the device.
|
---|
11686 | </desc>
|
---|
11687 | </attribute>
|
---|
11688 |
|
---|
11689 | <!-- @todo add class, subclass, bandwidth, configs, interfaces endpoints and such later. -->
|
---|
11690 |
|
---|
11691 | </interface>
|
---|
11692 |
|
---|
11693 |
|
---|
11694 | <!--
|
---|
11695 | // IHostUSBDeviceFilter
|
---|
11696 | /////////////////////////////////////////////////////////////////////////
|
---|
11697 | -->
|
---|
11698 |
|
---|
11699 | <enum
|
---|
11700 | name="USBDeviceFilterAction"
|
---|
11701 | uuid="cbc30a49-2f4e-43b5-9da6-121320475933"
|
---|
11702 | >
|
---|
11703 | <desc>
|
---|
11704 | Actions for host USB device filters.
|
---|
11705 | <see>IHostUSBDeviceFilter, USBDeviceState</see>
|
---|
11706 | </desc>
|
---|
11707 |
|
---|
11708 | <const name="Null" value="0">
|
---|
11709 | <desc>Null value (never used by the API).</desc>
|
---|
11710 | </const>
|
---|
11711 | <const name="Ignore" value="1">
|
---|
11712 | <desc>Ignore the matched USB device.</desc>
|
---|
11713 | </const>
|
---|
11714 | <const name="Hold" value="2">
|
---|
11715 | <desc>Hold the matched USB device.</desc>
|
---|
11716 | </const>
|
---|
11717 | </enum>
|
---|
11718 |
|
---|
11719 | <interface
|
---|
11720 | name="IHostUSBDeviceFilter" extends="IUSBDeviceFilter"
|
---|
11721 | uuid="4cc70246-d74a-400f-8222-3900489c0374"
|
---|
11722 | wsmap="managed"
|
---|
11723 | >
|
---|
11724 | <desc>
|
---|
11725 | The IHostUSBDeviceFilter interface represents a global filter for a
|
---|
11726 | physical USB device used by the host computer. Used indirectly in
|
---|
11727 | <link to="IHost::USBDeviceFilters"/>.
|
---|
11728 |
|
---|
11729 | Using filters of this type, the host computer determines the initial
|
---|
11730 | state of the USB device after it is physically attached to the
|
---|
11731 | host's USB controller.
|
---|
11732 |
|
---|
11733 | <note>
|
---|
11734 | The <link to="#remote"/> attribute is ignored by this type of
|
---|
11735 | filters, because it makes sense only for
|
---|
11736 | <link to="IUSBController::deviceFilters">machine USB filters</link>.
|
---|
11737 | </note>
|
---|
11738 |
|
---|
11739 | <see>IHost::USBDeviceFilters</see>
|
---|
11740 | </desc>
|
---|
11741 |
|
---|
11742 | <attribute name="action" type="USBDeviceFilterAction">
|
---|
11743 | <desc>
|
---|
11744 | Action performed by the host when an attached USB device
|
---|
11745 | matches this filter.
|
---|
11746 | </desc>
|
---|
11747 | </attribute>
|
---|
11748 |
|
---|
11749 | </interface>
|
---|
11750 |
|
---|
11751 | <!--
|
---|
11752 | // IAudioAdapter
|
---|
11753 | /////////////////////////////////////////////////////////////////////////
|
---|
11754 | -->
|
---|
11755 |
|
---|
11756 | <enum
|
---|
11757 | name="AudioDriverType"
|
---|
11758 | uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496"
|
---|
11759 | >
|
---|
11760 | <desc>
|
---|
11761 | Host audio driver type.
|
---|
11762 | </desc>
|
---|
11763 |
|
---|
11764 | <const name="Null" value="0">
|
---|
11765 | <desc>Null value, also means "dummy audio driver".</desc>
|
---|
11766 | </const>
|
---|
11767 | <const name="WinMM" value="1">
|
---|
11768 | <desc>Windows multimedia (Windows hosts only).</desc>
|
---|
11769 | </const>
|
---|
11770 | <const name="OSS" value="2">
|
---|
11771 | <desc>Open Sound System (Linux hosts only).</desc>
|
---|
11772 | </const>
|
---|
11773 | <const name="ALSA" value="3">
|
---|
11774 | <desc>Advanced Linux Sound Architecture (Linux hosts only).</desc>
|
---|
11775 | </const>
|
---|
11776 | <const name="DirectSound" value="4">
|
---|
11777 | <desc>DirectSound (Windows hosts only).</desc>
|
---|
11778 | </const>
|
---|
11779 | <const name="CoreAudio" value="5">
|
---|
11780 | <desc>CoreAudio (Mac hosts only).</desc>
|
---|
11781 | </const>
|
---|
11782 | <const name="MMPM" value="6">
|
---|
11783 | <desc>Reserved for historical reasons.</desc>
|
---|
11784 | </const>
|
---|
11785 | <const name="Pulse" value="7">
|
---|
11786 | <desc>PulseAudio (Linux hosts only).</desc>
|
---|
11787 | </const>
|
---|
11788 | <const name="SolAudio" value="8">
|
---|
11789 | <desc>Solaris audio (Solaris hosts only).</desc>
|
---|
11790 | </const>
|
---|
11791 | </enum>
|
---|
11792 |
|
---|
11793 | <enum
|
---|
11794 | name="AudioControllerType"
|
---|
11795 | uuid="7afd395c-42c3-444e-8788-3ce80292f36c"
|
---|
11796 | >
|
---|
11797 | <desc>
|
---|
11798 | Virtual audio controller type.
|
---|
11799 | </desc>
|
---|
11800 |
|
---|
11801 | <const name="AC97" value="0"/>
|
---|
11802 | <const name="SB16" value="1"/>
|
---|
11803 | </enum>
|
---|
11804 |
|
---|
11805 | <interface
|
---|
11806 | name="IAudioAdapter" extends="$unknown"
|
---|
11807 | uuid="921873db-5f3f-4b69-91f9-7be9e535a2cb"
|
---|
11808 | wsmap="managed"
|
---|
11809 | >
|
---|
11810 | <desc>
|
---|
11811 | The IAudioAdapter interface represents the virtual audio adapter of
|
---|
11812 | the virtual machine. Used in <link to="IMachine::audioAdapter"/>.
|
---|
11813 | </desc>
|
---|
11814 | <attribute name="enabled" type="boolean">
|
---|
11815 | <desc>
|
---|
11816 | Flag whether the audio adapter is present in the
|
---|
11817 | guest system. If disabled, the virtual guest hardware will
|
---|
11818 | not contain any audio adapter. Can only be changed when
|
---|
11819 | the VM is not running.
|
---|
11820 | </desc>
|
---|
11821 | </attribute>
|
---|
11822 | <attribute name="audioController" type="AudioControllerType">
|
---|
11823 | <desc>
|
---|
11824 | The audio hardware we emulate.
|
---|
11825 | </desc>
|
---|
11826 | </attribute>
|
---|
11827 | <attribute name="audioDriver" type="AudioDriverType">
|
---|
11828 | <desc>
|
---|
11829 | Audio driver the adapter is connected to. This setting
|
---|
11830 | can only be changed when the VM is not running.
|
---|
11831 | </desc>
|
---|
11832 | </attribute>
|
---|
11833 | </interface>
|
---|
11834 |
|
---|
11835 | <!--
|
---|
11836 | // IVRDPServer
|
---|
11837 | /////////////////////////////////////////////////////////////////////////
|
---|
11838 | -->
|
---|
11839 |
|
---|
11840 | <enum
|
---|
11841 | name="VRDPAuthType"
|
---|
11842 | uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a"
|
---|
11843 | >
|
---|
11844 | <desc>
|
---|
11845 | VRDP authentication type.
|
---|
11846 | </desc>
|
---|
11847 |
|
---|
11848 | <const name="Null" value="0">
|
---|
11849 | <desc>Null value, also means "no authentication".</desc>
|
---|
11850 | </const>
|
---|
11851 | <const name="External" value="1"/>
|
---|
11852 | <const name="Guest" value="2"/>
|
---|
11853 | </enum>
|
---|
11854 |
|
---|
11855 | <interface
|
---|
11856 | name="IVRDPServer" extends="$unknown"
|
---|
11857 | uuid="f4584ae7-6bce-474b-83d6-17d235e6aa89"
|
---|
11858 | wsmap="managed"
|
---|
11859 | >
|
---|
11860 | <attribute name="enabled" type="boolean">
|
---|
11861 | <desc>VRDP server status.</desc>
|
---|
11862 | </attribute>
|
---|
11863 |
|
---|
11864 | <attribute name="port" type="unsigned long">
|
---|
11865 | <desc>
|
---|
11866 | VRDP server port number.
|
---|
11867 | <note>
|
---|
11868 | Setting the value of this property to <tt>0</tt> will reset the port
|
---|
11869 | number to the default value which is
|
---|
11870 | currently <tt>3389</tt>. Reading this property will always return a
|
---|
11871 | real port number, even after it has been set to <tt>0</tt> (in which
|
---|
11872 | case the default port is returned).
|
---|
11873 | </note>
|
---|
11874 | </desc>
|
---|
11875 | </attribute>
|
---|
11876 |
|
---|
11877 | <attribute name="netAddress" type="wstring">
|
---|
11878 | <desc>VRDP server address.</desc>
|
---|
11879 | </attribute>
|
---|
11880 |
|
---|
11881 | <attribute name="authType" type="VRDPAuthType">
|
---|
11882 | <desc>VRDP authentication method.</desc>
|
---|
11883 | </attribute>
|
---|
11884 |
|
---|
11885 | <attribute name="authTimeout" type="unsigned long">
|
---|
11886 | <desc>Timeout for guest authentication. Milliseconds.</desc>
|
---|
11887 | </attribute>
|
---|
11888 |
|
---|
11889 | <attribute name="allowMultiConnection" type="boolean">
|
---|
11890 | <desc>
|
---|
11891 | Flag whether multiple simultaneous connections to the VM are permitted.
|
---|
11892 | Note that this will be replaced by a more powerful mechanism in the future.
|
---|
11893 | </desc>
|
---|
11894 | </attribute>
|
---|
11895 |
|
---|
11896 | <attribute name="reuseSingleConnection" type="boolean">
|
---|
11897 | <desc>
|
---|
11898 | Flag whether the existing connection must be dropped and a new connection
|
---|
11899 | must be established by the VRDP server, when a new client connects in single
|
---|
11900 | connection mode.
|
---|
11901 | </desc>
|
---|
11902 | </attribute>
|
---|
11903 |
|
---|
11904 | </interface>
|
---|
11905 |
|
---|
11906 |
|
---|
11907 | <!--
|
---|
11908 | // ISharedFolder
|
---|
11909 | /////////////////////////////////////////////////////////////////////////
|
---|
11910 | -->
|
---|
11911 |
|
---|
11912 | <interface
|
---|
11913 | name="ISharedFolder" extends="$unknown"
|
---|
11914 | uuid="64637bb2-9e17-471c-b8f3-f8968dd9884e"
|
---|
11915 | wsmap="struct"
|
---|
11916 | >
|
---|
11917 | <desc>
|
---|
11918 | The ISharedFolder interface represents a folder in the host computer's
|
---|
11919 | file system accessible from the guest OS running inside a virtual
|
---|
11920 | machine using an associated logical name.
|
---|
11921 |
|
---|
11922 | There are three types of shared folders:
|
---|
11923 | <ul>
|
---|
11924 | <li><i>Global</i> (<link to="IVirtualBox::sharedFolders"/>), shared
|
---|
11925 | folders available to all virtual machines.</li>
|
---|
11926 | <li><i>Permanent</i> (<link to="IMachine::sharedFolders"/>),
|
---|
11927 | VM-specific shared folders available to the given virtual machine at
|
---|
11928 | startup.</li>
|
---|
11929 | <li><i>Transient</i> (<link to="IConsole::sharedFolders"/>),
|
---|
11930 | VM-specific shared folders created in the session context (for
|
---|
11931 | example, when the virtual machine is running) and automatically
|
---|
11932 | discarded when the session is closed (the VM is powered off).</li>
|
---|
11933 | </ul>
|
---|
11934 |
|
---|
11935 | Logical names of shared folders must be unique within the given scope
|
---|
11936 | (global, permanent or transient). However, they do not need to be unique
|
---|
11937 | across scopes. In this case, the definition of the shared folder in a
|
---|
11938 | more specific scope takes precedence over definitions in all other
|
---|
11939 | scopes. The order of precedence is (more specific to more general):
|
---|
11940 | <ol>
|
---|
11941 | <li>Transient definitions</li>
|
---|
11942 | <li>Permanent definitions</li>
|
---|
11943 | <li>Global definitions</li>
|
---|
11944 | </ol>
|
---|
11945 |
|
---|
11946 | For example, if MyMachine has a shared folder named
|
---|
11947 | <tt>C_DRIVE</tt> (that points to <tt>C:\\</tt>), then creating a
|
---|
11948 | transient shared folder named <tt>C_DRIVE</tt> (that points
|
---|
11949 | to <tt>C:\\\\WINDOWS</tt>) will change the definition
|
---|
11950 | of <tt>C_DRIVE</tt> in the guest OS so
|
---|
11951 | that <tt>\\\\VBOXSVR\\C_DRIVE</tt> will give access
|
---|
11952 | to <tt>C:\\WINDOWS</tt> instead of <tt>C:\\</tt> on the host
|
---|
11953 | PC. Removing the transient shared folder <tt>C_DRIVE</tt> will restore
|
---|
11954 | the previous (permanent) definition of <tt>C_DRIVE</tt> that points
|
---|
11955 | to <tt>C:\\</tt> if it still exists.
|
---|
11956 |
|
---|
11957 | Note that permanent and transient shared folders of different machines
|
---|
11958 | are in different name spaces, so they don't overlap and don't need to
|
---|
11959 | have unique logical names.
|
---|
11960 |
|
---|
11961 | <note>
|
---|
11962 | Global shared folders are not implemented in the current version of the
|
---|
11963 | product.
|
---|
11964 | </note>
|
---|
11965 | </desc>
|
---|
11966 |
|
---|
11967 | <attribute name="name" type="wstring" readonly="yes">
|
---|
11968 | <desc>Logical name of the shared folder.</desc>
|
---|
11969 | </attribute>
|
---|
11970 |
|
---|
11971 | <attribute name="hostPath" type="wstring" readonly="yes">
|
---|
11972 | <desc>Full path to the shared folder in the host file system.</desc>
|
---|
11973 | </attribute>
|
---|
11974 |
|
---|
11975 | <attribute name="accessible" type="boolean" readonly="yes">
|
---|
11976 | <desc>
|
---|
11977 | Whether the folder defined by the host path is currently
|
---|
11978 | accessible or not.
|
---|
11979 | For example, the folder can be unaccessible if it is placed
|
---|
11980 | on the network share that is not available by the time
|
---|
11981 | this property is read.
|
---|
11982 | </desc>
|
---|
11983 | </attribute>
|
---|
11984 |
|
---|
11985 | <attribute name="writable" type="boolean" readonly="yes">
|
---|
11986 | <desc>
|
---|
11987 | Whether the folder defined by the host path is writable or
|
---|
11988 | not.
|
---|
11989 | </desc>
|
---|
11990 | </attribute>
|
---|
11991 |
|
---|
11992 | <attribute name="lastAccessError" type="wstring" readonly="yes">
|
---|
11993 | <desc>
|
---|
11994 | Text message that represents the result of the last accessibility
|
---|
11995 | check.
|
---|
11996 |
|
---|
11997 | Accessibility checks are performed each time the <link to="#accessible"/>
|
---|
11998 | attribute is read. An empty string is returned if the last
|
---|
11999 | accessibility check was successful. A non-empty string indicates a
|
---|
12000 | failure and should normally describe a reason of the failure (for
|
---|
12001 | example, a file read error).
|
---|
12002 | </desc>
|
---|
12003 | </attribute>
|
---|
12004 |
|
---|
12005 | </interface>
|
---|
12006 |
|
---|
12007 | <!--
|
---|
12008 | // ISession
|
---|
12009 | /////////////////////////////////////////////////////////////////////////
|
---|
12010 | -->
|
---|
12011 |
|
---|
12012 | <interface
|
---|
12013 | name="IInternalSessionControl" extends="$unknown"
|
---|
12014 | uuid="e28e19fb-23c2-4d1a-b6bf-ce147fa37b24"
|
---|
12015 | internal="yes"
|
---|
12016 | wsmap="suppress"
|
---|
12017 | >
|
---|
12018 | <method name="getPID">
|
---|
12019 | <desc>PID of the process that has created this Session object.
|
---|
12020 | </desc>
|
---|
12021 | <param name="pid" type="unsigned long" dir="return"/>
|
---|
12022 | </method>
|
---|
12023 |
|
---|
12024 | <method name="getRemoteConsole">
|
---|
12025 | <desc>
|
---|
12026 | Returns the console object suitable for remote control.
|
---|
12027 |
|
---|
12028 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12029 | Session state prevents operation.
|
---|
12030 | </result>
|
---|
12031 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12032 | Session type prevents operation.
|
---|
12033 | </result>
|
---|
12034 |
|
---|
12035 | </desc>
|
---|
12036 | <param name="console" type="IConsole" dir="return"/>
|
---|
12037 | </method>
|
---|
12038 |
|
---|
12039 | <method name="assignMachine">
|
---|
12040 | <desc>
|
---|
12041 | Assigns the machine object associated with this direct-type
|
---|
12042 | session or informs the session that it will be a remote one
|
---|
12043 | (if @a machine == @c null).
|
---|
12044 |
|
---|
12045 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12046 | Session state prevents operation.
|
---|
12047 | </result>
|
---|
12048 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12049 | Session type prevents operation.
|
---|
12050 | </result>
|
---|
12051 |
|
---|
12052 | </desc>
|
---|
12053 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12054 | </method>
|
---|
12055 |
|
---|
12056 | <method name="assignRemoteMachine">
|
---|
12057 | <desc>
|
---|
12058 | Assigns the machine and the (remote) console object associated with
|
---|
12059 | this remote-type session.
|
---|
12060 |
|
---|
12061 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12062 | Session state prevents operation.
|
---|
12063 | </result>
|
---|
12064 |
|
---|
12065 | </desc>
|
---|
12066 | <param name="machine" type="IMachine" dir="in"/>
|
---|
12067 | <param name="console" type="IConsole" dir="in"/>
|
---|
12068 | </method>
|
---|
12069 |
|
---|
12070 | <method name="updateMachineState">
|
---|
12071 | <desc>
|
---|
12072 | Updates the machine state in the VM process.
|
---|
12073 | Must be called only in certain cases
|
---|
12074 | (see the method implementation).
|
---|
12075 |
|
---|
12076 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12077 | Session state prevents operation.
|
---|
12078 | </result>
|
---|
12079 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12080 | Session type prevents operation.
|
---|
12081 | </result>
|
---|
12082 |
|
---|
12083 | </desc>
|
---|
12084 | <param name="aMachineState" type="MachineState" dir="in"/>
|
---|
12085 | </method>
|
---|
12086 |
|
---|
12087 | <method name="uninitialize">
|
---|
12088 | <desc>
|
---|
12089 | Uninitializes (closes) this session. Used by VirtualBox to close
|
---|
12090 | the corresponding remote session when the direct session dies
|
---|
12091 | or gets closed.
|
---|
12092 |
|
---|
12093 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12094 | Session state prevents operation.
|
---|
12095 | </result>
|
---|
12096 |
|
---|
12097 | </desc>
|
---|
12098 | </method>
|
---|
12099 |
|
---|
12100 | <method name="onDVDDriveChange">
|
---|
12101 | <desc>
|
---|
12102 | Triggered when settings of the DVD drive object of the
|
---|
12103 | associated virtual machine have changed.
|
---|
12104 |
|
---|
12105 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12106 | Session state prevents operation.
|
---|
12107 | </result>
|
---|
12108 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12109 | Session type prevents operation.
|
---|
12110 | </result>
|
---|
12111 |
|
---|
12112 | </desc>
|
---|
12113 | </method>
|
---|
12114 |
|
---|
12115 | <method name="onFloppyDriveChange">
|
---|
12116 | <desc>
|
---|
12117 | Triggered when settings of the floppy drive object of the
|
---|
12118 | associated virtual machine have changed.
|
---|
12119 |
|
---|
12120 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12121 | Session state prevents operation.
|
---|
12122 | </result>
|
---|
12123 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12124 | Session type prevents operation.
|
---|
12125 | </result>
|
---|
12126 |
|
---|
12127 | </desc>
|
---|
12128 | </method>
|
---|
12129 |
|
---|
12130 | <method name="onNetworkAdapterChange">
|
---|
12131 | <desc>
|
---|
12132 | Triggered when settings of a network adapter of the
|
---|
12133 | associated virtual machine have changed.
|
---|
12134 |
|
---|
12135 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12136 | Session state prevents operation.
|
---|
12137 | </result>
|
---|
12138 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12139 | Session type prevents operation.
|
---|
12140 | </result>
|
---|
12141 |
|
---|
12142 | </desc>
|
---|
12143 | <param name="networkAdapter" type="INetworkAdapter" dir="in"/>
|
---|
12144 | <param name="changeAdapter" type="boolean" dir="in"/>
|
---|
12145 | </method>
|
---|
12146 |
|
---|
12147 | <method name="onSerialPortChange">
|
---|
12148 | <desc>
|
---|
12149 | Triggered when settings of a serial port of the
|
---|
12150 | associated virtual machine have changed.
|
---|
12151 |
|
---|
12152 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12153 | Session state prevents operation.
|
---|
12154 | </result>
|
---|
12155 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12156 | Session type prevents operation.
|
---|
12157 | </result>
|
---|
12158 |
|
---|
12159 | </desc>
|
---|
12160 | <param name="serialPort" type="ISerialPort" dir="in"/>
|
---|
12161 | </method>
|
---|
12162 |
|
---|
12163 | <method name="onParallelPortChange">
|
---|
12164 | <desc>
|
---|
12165 | Triggered when settings of a parallel port of the
|
---|
12166 | associated virtual machine have changed.
|
---|
12167 |
|
---|
12168 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12169 | Session state prevents operation.
|
---|
12170 | </result>
|
---|
12171 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12172 | Session type prevents operation.
|
---|
12173 | </result>
|
---|
12174 |
|
---|
12175 | </desc>
|
---|
12176 | <param name="parallelPort" type="IParallelPort" dir="in"/>
|
---|
12177 | </method>
|
---|
12178 |
|
---|
12179 | <method name="onStorageControllerChange">
|
---|
12180 | <desc>
|
---|
12181 | Triggered when settings of a storage controller of the
|
---|
12182 | associated virtual machine have changed.
|
---|
12183 |
|
---|
12184 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12185 | Session state prevents operation.
|
---|
12186 | </result>
|
---|
12187 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12188 | Session type prevents operation.
|
---|
12189 | </result>
|
---|
12190 |
|
---|
12191 | </desc>
|
---|
12192 | </method>
|
---|
12193 |
|
---|
12194 | <method name="onVRDPServerChange">
|
---|
12195 | <desc>
|
---|
12196 | Triggered when settings of the VRDP server object of the
|
---|
12197 | associated virtual machine have changed.
|
---|
12198 |
|
---|
12199 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12200 | Session state prevents operation.
|
---|
12201 | </result>
|
---|
12202 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12203 | Session type prevents operation.
|
---|
12204 | </result>
|
---|
12205 |
|
---|
12206 | </desc>
|
---|
12207 | </method>
|
---|
12208 |
|
---|
12209 | <method name="onUSBControllerChange">
|
---|
12210 | <desc>
|
---|
12211 | Triggered when settings of the USB controller object of the
|
---|
12212 | associated virtual machine have changed.
|
---|
12213 |
|
---|
12214 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12215 | Session state prevents operation.
|
---|
12216 | </result>
|
---|
12217 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12218 | Session type prevents operation.
|
---|
12219 | </result>
|
---|
12220 |
|
---|
12221 | </desc>
|
---|
12222 | </method>
|
---|
12223 |
|
---|
12224 | <method name="onSharedFolderChange">
|
---|
12225 | <desc>
|
---|
12226 | Triggered when a permanent (global or machine) shared folder has been
|
---|
12227 | created or removed.
|
---|
12228 | <note>
|
---|
12229 | We don't pass shared folder parameters in this notification because
|
---|
12230 | the order in which parallel notifications are delivered is not defined,
|
---|
12231 | therefore it could happen that these parameters were outdated by the
|
---|
12232 | time of processing this notification.
|
---|
12233 | </note>
|
---|
12234 |
|
---|
12235 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12236 | Session state prevents operation.
|
---|
12237 | </result>
|
---|
12238 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12239 | Session type prevents operation.
|
---|
12240 | </result>
|
---|
12241 |
|
---|
12242 | </desc>
|
---|
12243 | <param name="global" type="boolean" dir="in"/>
|
---|
12244 | </method>
|
---|
12245 |
|
---|
12246 | <method name="onUSBDeviceAttach">
|
---|
12247 | <desc>
|
---|
12248 | Triggered when a request to capture a USB device (as a result
|
---|
12249 | of matched USB filters or direct call to
|
---|
12250 | <link to="IConsole::attachUSBDevice"/>) has completed.
|
---|
12251 | A @c null @a error object means success, otherwise it
|
---|
12252 | describes a failure.
|
---|
12253 |
|
---|
12254 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12255 | Session state prevents operation.
|
---|
12256 | </result>
|
---|
12257 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12258 | Session type prevents operation.
|
---|
12259 | </result>
|
---|
12260 |
|
---|
12261 | </desc>
|
---|
12262 | <param name="device" type="IUSBDevice" dir="in"/>
|
---|
12263 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12264 | <param name="maskedInterfaces" type="unsigned long" dir="in"/>
|
---|
12265 | </method>
|
---|
12266 |
|
---|
12267 | <method name="onUSBDeviceDetach">
|
---|
12268 | <desc>
|
---|
12269 | Triggered when a request to release the USB device (as a result
|
---|
12270 | of machine termination or direct call to
|
---|
12271 | <link to="IConsole::detachUSBDevice"/>) has completed.
|
---|
12272 | A @c null @a error object means success, otherwise it
|
---|
12273 | describes a failure.
|
---|
12274 |
|
---|
12275 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12276 | Session state prevents operation.
|
---|
12277 | </result>
|
---|
12278 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12279 | Session type prevents operation.
|
---|
12280 | </result>
|
---|
12281 |
|
---|
12282 | </desc>
|
---|
12283 | <param name="id" type="wstring" dir="in"/>
|
---|
12284 | <param name="error" type="IVirtualBoxErrorInfo" dir="in"/>
|
---|
12285 | </method>
|
---|
12286 |
|
---|
12287 | <method name="onShowWindow">
|
---|
12288 | <desc>
|
---|
12289 | Called by <link to="IMachine::canShowConsoleWindow"/> and by
|
---|
12290 | <link to="IMachine::showConsoleWindow"/> in order to notify
|
---|
12291 | console callbacks
|
---|
12292 | <link to="IConsoleCallback::onCanShowWindow"/>
|
---|
12293 | and <link to="IConsoleCallback::onShowWindow"/>.
|
---|
12294 |
|
---|
12295 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12296 | Session type prevents operation.
|
---|
12297 | </result>
|
---|
12298 |
|
---|
12299 | </desc>
|
---|
12300 | <param name="check" type="boolean" dir="in"/>
|
---|
12301 | <param name="canShow" type="boolean" dir="out"/>
|
---|
12302 | <param name="winId" type="unsigned long long" dir="out"/>
|
---|
12303 | </method>
|
---|
12304 |
|
---|
12305 | <method name="accessGuestProperty">
|
---|
12306 | <desc>
|
---|
12307 | Called by <link to="IMachine::getGuestProperty"/> and by
|
---|
12308 | <link to="IMachine::setGuestProperty"/> in order to read and
|
---|
12309 | modify guest properties.
|
---|
12310 |
|
---|
12311 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12312 | Machine session is not open.
|
---|
12313 | </result>
|
---|
12314 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12315 | Session type is not direct.
|
---|
12316 | </result>
|
---|
12317 |
|
---|
12318 | </desc>
|
---|
12319 | <param name="name" type="wstring" dir="in"/>
|
---|
12320 | <param name="value" type="wstring" dir="in"/>
|
---|
12321 | <param name="flags" type="wstring" dir="in"/>
|
---|
12322 | <param name="isSetter" type="boolean" dir="in"/>
|
---|
12323 | <param name="retValue" type="wstring" dir="out"/>
|
---|
12324 | <param name="retTimestamp" type="unsigned long long" dir="out"/>
|
---|
12325 | <param name="retFlags" type="wstring" dir="out"/>
|
---|
12326 | </method>
|
---|
12327 |
|
---|
12328 | <method name="enumerateGuestProperties">
|
---|
12329 | <desc>
|
---|
12330 | Return a list of the guest properties matching a set of patterns along
|
---|
12331 | with their values, time stamps and flags.
|
---|
12332 |
|
---|
12333 | <result name="VBOX_E_INVALID_VM_STATE">
|
---|
12334 | Machine session is not open.
|
---|
12335 | </result>
|
---|
12336 | <result name="VBOX_E_INVALID_OBJECT_STATE">
|
---|
12337 | Session type is not direct.
|
---|
12338 | </result>
|
---|
12339 |
|
---|
12340 | </desc>
|
---|
12341 | <param name="patterns" type="wstring" dir="in">
|
---|
12342 | <desc>
|
---|
12343 | The patterns to match the properties against as a comma-separated
|
---|
12344 | string. If this is empty, all properties currently set will be
|
---|
12345 | returned.
|
---|
12346 | </desc>
|
---|
12347 | </param>
|
---|
12348 | <param name="key" type="wstring" dir="out" safearray="yes">
|
---|
12349 | <desc>
|
---|
12350 | The key names of the properties returned.
|
---|
12351 | </desc>
|
---|
12352 | </param>
|
---|
12353 | <param name="value" type="wstring" dir="out" safearray="yes">
|
---|
12354 | <desc>
|
---|
12355 | The values of the properties returned. The array entries match the
|
---|
12356 | corresponding entries in the @a key array.
|
---|
12357 | </desc>
|
---|
12358 | </param>
|
---|
12359 | <param name="timestamp" type="unsigned long long" dir="out" safearray="yes">
|
---|
12360 | <desc>
|
---|
12361 | The time stamps of the properties returned. The array entries match
|
---|
12362 | the corresponding entries in the @a key array.
|
---|
12363 | </desc>
|
---|
12364 | </param>
|
---|
12365 | <param name="flags" type="wstring" dir="out" safearray="yes">
|
---|
12366 | <desc>
|
---|
12367 | The flags of the properties returned. The array entries match the
|
---|
12368 | corresponding entries in the @a key array.
|
---|
12369 | </desc>
|
---|
12370 | </param>
|
---|
12371 | </method>
|
---|
12372 |
|
---|
12373 | </interface>
|
---|
12374 |
|
---|
12375 | <interface
|
---|
12376 | name="ISession" extends="$dispatched"
|
---|
12377 | uuid="12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D"
|
---|
12378 | wsmap="managed"
|
---|
12379 | >
|
---|
12380 | <desc>
|
---|
12381 | The ISession interface represents a serialization primitive for virtual
|
---|
12382 | machines.
|
---|
12383 |
|
---|
12384 | With VirtualBox, every time one wishes to manipulate a virtual machine
|
---|
12385 | (e.g. change its settings or start execution), a session object is
|
---|
12386 | required. Such an object must be passed to one of the session methods
|
---|
12387 | that open the given session, which then initiates the machine manipulation.
|
---|
12388 |
|
---|
12389 | A session serves several purposes: it identifies to the inter-process VirtualBox
|
---|
12390 | code which process is currently working with the virtual machine, and it ensures
|
---|
12391 | that there are no incompatible requests from several processes for the
|
---|
12392 | same virtual machine. Session objects can therefore be thought of as mutex
|
---|
12393 | semaphores that lock virtual machines to prevent conflicting accesses from
|
---|
12394 | several processes.
|
---|
12395 |
|
---|
12396 | How sessions objects are used depends on whether you use the Main API
|
---|
12397 | via COM or via the webservice:
|
---|
12398 |
|
---|
12399 | <ul>
|
---|
12400 | <li>When using the COM API directly, an object of the Session class from the
|
---|
12401 | VirtualBox type library needs to be created. In regular COM C++ client code,
|
---|
12402 | this can be done by calling <tt>createLocalObject()</tt>, a standard COM API.
|
---|
12403 | This object will then act as a local session object in further calls to open
|
---|
12404 | a session.
|
---|
12405 | </li>
|
---|
12406 |
|
---|
12407 | <li>In the webservice, the session manager (IWebsessionManager) instead creates
|
---|
12408 | one session object automatically when <link to="IWebsessionManager::logon" />
|
---|
12409 | is called. A managed object reference to that session object can be retrieved by
|
---|
12410 | calling <link to="IWebsessionManager::getSessionObject" />. This session object
|
---|
12411 | reference can then be used to open sessions.
|
---|
12412 | </li>
|
---|
12413 | </ul>
|
---|
12414 |
|
---|
12415 | Sessions are mainly used in two variations:
|
---|
12416 |
|
---|
12417 | <ul>
|
---|
12418 | <li>
|
---|
12419 | To start a virtual machine in a separate process, one would call
|
---|
12420 | <link to="IVirtualBox::openRemoteSession"/>, which requires a session
|
---|
12421 | object as its first parameter. This session then identifies the caller
|
---|
12422 | and lets him control the started machine (for example, pause machine
|
---|
12423 | execution or power it down) as well as be notified about machine
|
---|
12424 | execution state changes.
|
---|
12425 | </li>
|
---|
12426 |
|
---|
12427 | <li>To alter machine settings, or to start machine execution within the
|
---|
12428 | current process, one needs to open a direct session for the machine first by
|
---|
12429 | calling <link to="IVirtualBox::openSession"/>. While a direct session
|
---|
12430 | is open within one process, no any other process may open another direct
|
---|
12431 | session for the same machine. This prevents the machine from being changed
|
---|
12432 | by other processes while it is running or while the machine is being configured.
|
---|
12433 | </li>
|
---|
12434 | </ul>
|
---|
12435 |
|
---|
12436 | One also can attach to an existing direct session already opened by
|
---|
12437 | another process (for example, in order to send a control request to the
|
---|
12438 | virtual machine such as the pause or the reset request). This is done by
|
---|
12439 | calling <link to="IVirtualBox::openExistingSession"/>.
|
---|
12440 |
|
---|
12441 | <note>
|
---|
12442 | Unless you are trying to write a new VirtualBox front-end that
|
---|
12443 | performs direct machine execution (like the VirtualBox or VBoxSDL
|
---|
12444 | front-ends), don't call <link to="IConsole::powerUp"/> in a direct
|
---|
12445 | session opened by <link to="IVirtualBox::openSession"/> and use this
|
---|
12446 | session only to change virtual machine settings. If you simply want to
|
---|
12447 | start virtual machine execution using one of the existing front-ends
|
---|
12448 | (for example the VirtualBox GUI or headless server), simply use
|
---|
12449 | <link to="IVirtualBox::openRemoteSession"/>; these front-ends
|
---|
12450 | will power up the machine automatically for you.
|
---|
12451 | </note>
|
---|
12452 | </desc>
|
---|
12453 |
|
---|
12454 | <attribute name="state" type="SessionState" readonly="yes">
|
---|
12455 | <desc>Current state of this session.</desc>
|
---|
12456 | </attribute>
|
---|
12457 |
|
---|
12458 | <attribute name="type" type="SessionType" readonly="yes">
|
---|
12459 | <desc>
|
---|
12460 | Type of this session. The value of this attribute is valid only
|
---|
12461 | if the session is currently open (i.e. its #state is
|
---|
12462 | SessionType_SessionOpen), otherwise an error will be returned.
|
---|
12463 | </desc>
|
---|
12464 | </attribute>
|
---|
12465 |
|
---|
12466 | <attribute name="machine" type="IMachine" readonly="yes">
|
---|
12467 | <desc>Machine object associated with this session.</desc>
|
---|
12468 | </attribute>
|
---|
12469 |
|
---|
12470 | <attribute name="console" type="IConsole" readonly="yes">
|
---|
12471 | <desc>Console object associated with this session.</desc>
|
---|
12472 | </attribute>
|
---|
12473 |
|
---|
12474 | <method name="close">
|
---|
12475 | <desc>
|
---|
12476 | Closes a session that was previously opened.
|
---|
12477 |
|
---|
12478 | It is recommended that every time an "open session" method (such as
|
---|
12479 | <link to="IVirtualBox::openRemoteSession" /> or
|
---|
12480 | <link to="IVirtualBox::openSession" />) has been called to
|
---|
12481 | manipulate a virtual machine, the caller invoke
|
---|
12482 | ISession::close() when it's done doing so. Since sessions are
|
---|
12483 | serialization primitives much like ordinary mutexes, they are
|
---|
12484 | best used the same way: for each "open" call, there should be
|
---|
12485 | a matching "close" call, even when errors occur.
|
---|
12486 |
|
---|
12487 | Otherwise, if a direct session for a machine opened with
|
---|
12488 | <link to="IVirtualBox::openSession"/> is not explicitly closed
|
---|
12489 | when the application terminates, the state of the machine will
|
---|
12490 | be set to <link to="MachineState_Aborted" /> on the server.
|
---|
12491 |
|
---|
12492 | Generally, it is recommended to close all open sessions explicitly
|
---|
12493 | before terminating the application (regardless of the reason for
|
---|
12494 | the termination).
|
---|
12495 |
|
---|
12496 | <note>
|
---|
12497 | Do not expect the session state (<link to="ISession::state" />
|
---|
12498 | to return to "Closed" immediately after you invoke
|
---|
12499 | ISession::close(), particularly if you have started a remote
|
---|
12500 | session to execute the VM in a new process. The session state will
|
---|
12501 | automatically return to "Closed" once the VM is no longer executing,
|
---|
12502 | which can of course take a very long time.
|
---|
12503 | </note>
|
---|
12504 |
|
---|
12505 | <result name="E_UNEXPECTED">
|
---|
12506 | Session is not open.
|
---|
12507 | </result>
|
---|
12508 |
|
---|
12509 | </desc>
|
---|
12510 | </method>
|
---|
12511 |
|
---|
12512 | </interface>
|
---|
12513 |
|
---|
12514 | <!--
|
---|
12515 | // IStorageController
|
---|
12516 | /////////////////////////////////////////////////////////////////////////
|
---|
12517 | -->
|
---|
12518 |
|
---|
12519 | <enum
|
---|
12520 | name="StorageBus"
|
---|
12521 | uuid="f381fdca-5953-41d0-b2bd-0542b012698d"
|
---|
12522 | >
|
---|
12523 | <desc>
|
---|
12524 | The connection type of the storage controller.
|
---|
12525 | </desc>
|
---|
12526 | <const name="Null" value="0">
|
---|
12527 | <desc>@c null value. Never used by the API.</desc>
|
---|
12528 | </const>
|
---|
12529 | <const name="IDE" value="1"/>
|
---|
12530 | <const name="SATA" value="2"/>
|
---|
12531 | <const name="SCSI" value="3"/>
|
---|
12532 | </enum>
|
---|
12533 |
|
---|
12534 | <enum
|
---|
12535 | name="StorageControllerType"
|
---|
12536 | uuid="685387db-a837-4320-a258-08f46a22f62a"
|
---|
12537 | >
|
---|
12538 | <desc>
|
---|
12539 | Storage controller type.
|
---|
12540 | </desc>
|
---|
12541 |
|
---|
12542 | <const name="Null" value="0">
|
---|
12543 | <desc>@c null value. Never used by the API.</desc>
|
---|
12544 | </const>
|
---|
12545 | <const name="LsiLogic" value="1"/>
|
---|
12546 | <const name="BusLogic" value="2"/>
|
---|
12547 | <const name="IntelAhci" value="3"/>
|
---|
12548 | <const name="PIIX3" value="4"/>
|
---|
12549 | <const name="PIIX4" value="5"/>
|
---|
12550 | <const name="ICH6" value="6"/>
|
---|
12551 | </enum>
|
---|
12552 |
|
---|
12553 | <interface
|
---|
12554 | name="IStorageController" extends="$unknown"
|
---|
12555 | uuid="6bf8335b-d14a-44a5-9b45-ddc49ce7d5b2"
|
---|
12556 | wsmap="managed"
|
---|
12557 | >
|
---|
12558 | <desc>
|
---|
12559 | Represents a storage controller that is attached to a virtual machine
|
---|
12560 | (<link to="IMachine" />). Just as hard disks are attached to storage
|
---|
12561 | controllers in a real computer, virtual hard disks (represented by
|
---|
12562 | <link to="IHardDisk" />) are attached to virtual storage controllers,
|
---|
12563 | represented by this interface.
|
---|
12564 |
|
---|
12565 | VirtualBox supports three types of virtual storage controller hardware:
|
---|
12566 | IDE, SCSI, and SATA (see <link to="#bus" />). Depending on which of
|
---|
12567 | these three is used, certain sub-types are available and can be
|
---|
12568 | selected in <link to="#controllerType" />.
|
---|
12569 | </desc>
|
---|
12570 |
|
---|
12571 | <attribute name="name" type="wstring" readonly="yes">
|
---|
12572 | <desc>
|
---|
12573 | Name of the storage controller, as originally specified with
|
---|
12574 | <link to="IMachine::addStorageController" />. This then uniquely
|
---|
12575 | identifies this controller with other method calls such as
|
---|
12576 | <link to="IMachine::attachHardDisk" />.
|
---|
12577 | </desc>
|
---|
12578 | </attribute>
|
---|
12579 |
|
---|
12580 | <attribute name="maxDevicesPerPortCount" type="unsigned long" readonly="yes">
|
---|
12581 | <desc>
|
---|
12582 | Maximum number of devices which can be attached to one port.
|
---|
12583 | </desc>
|
---|
12584 | </attribute>
|
---|
12585 |
|
---|
12586 | <attribute name="minPortCount" type="unsigned long" readonly="yes">
|
---|
12587 | <desc>
|
---|
12588 | Minimum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
12589 | </desc>
|
---|
12590 | </attribute>
|
---|
12591 |
|
---|
12592 | <attribute name="maxPortCount" type="unsigned long" readonly="yes">
|
---|
12593 | <desc>
|
---|
12594 | Maximum number of ports that <link to="IStorageController::portCount"/> can be set to.
|
---|
12595 | </desc>
|
---|
12596 | </attribute>
|
---|
12597 |
|
---|
12598 | <attribute name="instance" type="unsigned long">
|
---|
12599 | <desc>
|
---|
12600 | The instance number of the device in the running VM.
|
---|
12601 | </desc>
|
---|
12602 | </attribute>
|
---|
12603 |
|
---|
12604 | <attribute name="portCount" type="unsigned long">
|
---|
12605 | <desc>
|
---|
12606 | The number of currently usable ports on the controller.
|
---|
12607 | The minimum and maximum number of ports for one controller are
|
---|
12608 | stored in <link to="IStorageController::minPortCount"/>
|
---|
12609 | and <link to="IStorageController::maxPortCount"/>.
|
---|
12610 | </desc>
|
---|
12611 | </attribute>
|
---|
12612 |
|
---|
12613 | <attribute name="bus" type="StorageBus" readonly="yes">
|
---|
12614 | <desc>
|
---|
12615 | The connection type of the storage controller.
|
---|
12616 | </desc>
|
---|
12617 | </attribute>
|
---|
12618 |
|
---|
12619 | <attribute name="controllerType" type="StorageControllerType">
|
---|
12620 | <desc>
|
---|
12621 | Type of the virtual storage controller. Depending on this value,
|
---|
12622 | VirtualBox will provide a different virtual storage controller hardware
|
---|
12623 | to the guest.
|
---|
12624 |
|
---|
12625 | For SCSI controllers, the default type is LsiLogic.
|
---|
12626 | </desc>
|
---|
12627 | </attribute>
|
---|
12628 |
|
---|
12629 | <method name="GetIDEEmulationPort">
|
---|
12630 | <desc>
|
---|
12631 | Gets the corresponding port number which is emulated as an IDE device.
|
---|
12632 |
|
---|
12633 | <result name="E_INVALIDARG">
|
---|
12634 | The @a devicePosition is not in the range 0 to 3.
|
---|
12635 | </result>
|
---|
12636 | <result name="E_NOTIMPL">
|
---|
12637 | The storage controller type is not SATAIntelAhci.
|
---|
12638 | </result>
|
---|
12639 |
|
---|
12640 | </desc>
|
---|
12641 | <param name="devicePosition" type="long" dir="in"/>
|
---|
12642 | <param name="portNumber" type="long" dir="return"/>
|
---|
12643 | </method>
|
---|
12644 |
|
---|
12645 | <method name="SetIDEEmulationPort">
|
---|
12646 | <desc>
|
---|
12647 | Sets the port number which is emulated as an IDE device.
|
---|
12648 |
|
---|
12649 | <result name="E_INVALIDARG">
|
---|
12650 | The @a devicePosition is not in the range 0 to 3 or the
|
---|
12651 | @a portNumber is not in the range 0 to 29.
|
---|
12652 | </result>
|
---|
12653 | <result name="E_NOTIMPL">
|
---|
12654 | The storage controller type is not SATAIntelAhci.
|
---|
12655 | </result>
|
---|
12656 |
|
---|
12657 | </desc>
|
---|
12658 | <param name="devicePosition" type="long" dir="in"/>
|
---|
12659 | <param name="portNumber" type="long" dir="in"/>
|
---|
12660 | </method>
|
---|
12661 |
|
---|
12662 | </interface>
|
---|
12663 |
|
---|
12664 | <if target="wsdl">
|
---|
12665 |
|
---|
12666 | <!--
|
---|
12667 | // IManagedObjectRef
|
---|
12668 | /////////////////////////////////////////////////////////////////////////
|
---|
12669 | -->
|
---|
12670 |
|
---|
12671 | <interface
|
---|
12672 | name="IManagedObjectRef" extends="$unknown"
|
---|
12673 | uuid="9474d09d-2313-46de-b568-a42b8718e8ed"
|
---|
12674 | internal="yes"
|
---|
12675 | wsmap="managed"
|
---|
12676 | wscpp="hardcoded"
|
---|
12677 | >
|
---|
12678 | <desc>
|
---|
12679 | Managed object reference.
|
---|
12680 |
|
---|
12681 | Only within the webservice, a managed object reference (which is really
|
---|
12682 | an opaque number) allows a webservice client to address an object
|
---|
12683 | that lives in the address space of the webservice server.
|
---|
12684 |
|
---|
12685 | Behind each managed object reference, there is a COM object that lives
|
---|
12686 | in the webservice server's address space. The COM object is not freed
|
---|
12687 | until the managed object reference is released, either by an explicit
|
---|
12688 | call to <link to="IManagedObjectRef::release" /> or by logging off from
|
---|
12689 | the webservice (<link to="IWebsessionManager::logoff" />), which releases
|
---|
12690 | all objects created during the webservice session.
|
---|
12691 |
|
---|
12692 | Whenever a method call of the VirtualBox API returns a COM object, the
|
---|
12693 | webservice representation of that method will instead return a
|
---|
12694 | managed object reference, which can then be used to invoke methods
|
---|
12695 | on that object.
|
---|
12696 | </desc>
|
---|
12697 |
|
---|
12698 | <method name="getInterfaceName">
|
---|
12699 | <desc>
|
---|
12700 | Returns the name of the interface that this managed object represents,
|
---|
12701 | for example, "IMachine", as a string.
|
---|
12702 | </desc>
|
---|
12703 | <param name="return" type="wstring" dir="return"/>
|
---|
12704 | </method>
|
---|
12705 |
|
---|
12706 | <method name="release">
|
---|
12707 | <desc>
|
---|
12708 | Releases this managed object reference and frees the resources that
|
---|
12709 | were allocated for it in the webservice server process. After calling
|
---|
12710 | this method, the identifier of the reference can no longer be used.
|
---|
12711 | </desc>
|
---|
12712 | </method>
|
---|
12713 |
|
---|
12714 | </interface>
|
---|
12715 |
|
---|
12716 | <!--
|
---|
12717 | // IWebsessionManager
|
---|
12718 | /////////////////////////////////////////////////////////////////////////
|
---|
12719 | -->
|
---|
12720 |
|
---|
12721 | <interface
|
---|
12722 | name="IWebsessionManager" extends="$unknown"
|
---|
12723 | uuid="dea1b4c7-2de3-418a-850d-7868617f7733"
|
---|
12724 | internal="yes"
|
---|
12725 | wsmap="global"
|
---|
12726 | wscpp="hardcoded"
|
---|
12727 | >
|
---|
12728 | <desc>
|
---|
12729 | Websession manager. This provides essential services
|
---|
12730 | to webservice clients.
|
---|
12731 | </desc>
|
---|
12732 | <method name="logon">
|
---|
12733 | <desc>
|
---|
12734 | Logs a new client onto the webservice and returns a managed object reference to
|
---|
12735 | the IVirtualBox instance, which the client can then use as a basis to further
|
---|
12736 | queries, since all calls to the VirtualBox API are based on the IVirtualBox
|
---|
12737 | interface, in one way or the other.
|
---|
12738 | </desc>
|
---|
12739 | <param name="username" type="wstring" dir="in"/>
|
---|
12740 | <param name="password" type="wstring" dir="in"/>
|
---|
12741 | <param name="return" type="IVirtualBox" dir="return"/>
|
---|
12742 | </method>
|
---|
12743 |
|
---|
12744 | <method name="getSessionObject">
|
---|
12745 | <desc>
|
---|
12746 | Returns a managed object reference to the internal ISession object that was created
|
---|
12747 | for this web service session when the client logged on.
|
---|
12748 |
|
---|
12749 | <see>ISession</see>
|
---|
12750 | </desc>
|
---|
12751 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
12752 | <param name="return" type="ISession" dir="return"/>
|
---|
12753 | </method>
|
---|
12754 |
|
---|
12755 | <method name="logoff">
|
---|
12756 | <desc>
|
---|
12757 | Logs off the client who has previously logged on with <link to="IWebsessionManager::logoff" />
|
---|
12758 | and destroys all resources associated with the session (most importantly, all
|
---|
12759 | managed objects created in the server while the session was active).
|
---|
12760 | </desc>
|
---|
12761 | <param name="refIVirtualBox" type="IVirtualBox" dir="in"/>
|
---|
12762 | </method>
|
---|
12763 |
|
---|
12764 | </interface>
|
---|
12765 |
|
---|
12766 | </if>
|
---|
12767 |
|
---|
12768 | <!--
|
---|
12769 | // IPerformanceCollector & friends
|
---|
12770 | /////////////////////////////////////////////////////////////////////////
|
---|
12771 | -->
|
---|
12772 |
|
---|
12773 | <interface
|
---|
12774 | name="IPerformanceMetric" extends="$unknown"
|
---|
12775 | uuid="2a1a60ae-9345-4019-ad53-d34ba41cbfe9" wsmap="managed"
|
---|
12776 | >
|
---|
12777 | <desc>
|
---|
12778 | The IPerformanceMetric interface represents parameters of the given
|
---|
12779 | performance metric.
|
---|
12780 | </desc>
|
---|
12781 |
|
---|
12782 | <attribute name="metricName" type="wstring" readonly="yes">
|
---|
12783 | <desc>
|
---|
12784 | Name of the metric.
|
---|
12785 | </desc>
|
---|
12786 | </attribute>
|
---|
12787 |
|
---|
12788 | <attribute name="object" type="$unknown" readonly="yes">
|
---|
12789 | <desc>
|
---|
12790 | Object this metric belongs to.
|
---|
12791 | </desc>
|
---|
12792 | </attribute>
|
---|
12793 |
|
---|
12794 | <attribute name="description" type="wstring" readonly="yes">
|
---|
12795 | <desc>
|
---|
12796 | Textual description of the metric.
|
---|
12797 | </desc>
|
---|
12798 | </attribute>
|
---|
12799 |
|
---|
12800 | <attribute name="period" type="unsigned long" readonly="yes">
|
---|
12801 | <desc>
|
---|
12802 | Time interval between samples, measured in seconds.
|
---|
12803 | </desc>
|
---|
12804 | </attribute>
|
---|
12805 |
|
---|
12806 | <attribute name="count" type="unsigned long" readonly="yes">
|
---|
12807 | <desc>
|
---|
12808 | Number of recent samples retained by the performance collector for this
|
---|
12809 | metric.
|
---|
12810 |
|
---|
12811 | When the collected sample count exceeds this number, older samples
|
---|
12812 | are discarded.
|
---|
12813 | </desc>
|
---|
12814 | </attribute>
|
---|
12815 |
|
---|
12816 | <attribute name="unit" type="wstring" readonly="yes">
|
---|
12817 | <desc>
|
---|
12818 | Unit of measurement.
|
---|
12819 | </desc>
|
---|
12820 | </attribute>
|
---|
12821 |
|
---|
12822 | <attribute name="minimumValue" type="long" readonly="yes">
|
---|
12823 | <desc>
|
---|
12824 | Minimum possible value of this metric.
|
---|
12825 | </desc>
|
---|
12826 | </attribute>
|
---|
12827 |
|
---|
12828 | <attribute name="maximumValue" type="long" readonly="yes">
|
---|
12829 | <desc>
|
---|
12830 | Maximum possible value of this metric.
|
---|
12831 | </desc>
|
---|
12832 | </attribute>
|
---|
12833 | </interface>
|
---|
12834 |
|
---|
12835 | <interface
|
---|
12836 | name="IPerformanceCollector" extends="$unknown"
|
---|
12837 | uuid="e22e1acb-ac4a-43bb-a31c-17321659b0c6"
|
---|
12838 | wsmap="managed"
|
---|
12839 | >
|
---|
12840 | <desc>
|
---|
12841 | The IPerformanceCollector interface represents a service that collects and
|
---|
12842 | stores performance metrics data.
|
---|
12843 |
|
---|
12844 | Performance metrics are associated with objects of interfaces like IHost and
|
---|
12845 | IMachine. Each object has a distinct set of performance metrics.
|
---|
12846 | The set can be obtained with <link to="IPerformanceCollector::getMetrics"/>.
|
---|
12847 |
|
---|
12848 | Metric data is collected at the specified intervals and is retained
|
---|
12849 | internally. The interval and the number of retained samples can be set
|
---|
12850 | with <link to="IPerformanceCollector::setupMetrics" />.
|
---|
12851 |
|
---|
12852 | Metrics are organized hierarchically, with each level separated by a
|
---|
12853 | slash (/) character. Generally, the scheme for metric names is like this:
|
---|
12854 |
|
---|
12855 | <tt>Category/Metric[/SubMetric][:aggregation]</tt>
|
---|
12856 |
|
---|
12857 | "Category/Metric" together form the base metric name. A base metric is the
|
---|
12858 | smallest unit for which a sampling interval and the number of retained
|
---|
12859 | samples can be set. Only base metrics can be enabled and disabled. All
|
---|
12860 | sub-metrics are collected when their base metric is collected.
|
---|
12861 | Collected values for any set of sub-metrics can be queried with
|
---|
12862 | <link to="IPerformanceCollector::queryMetricsData" />.
|
---|
12863 |
|
---|
12864 | For example "CPU/Load/User:avg"
|
---|
12865 | metric name stands for the "CPU" category, "Load" metric, "User" submetric,
|
---|
12866 | "average" aggregate. An aggregate function is computed over all retained
|
---|
12867 | data. Valid aggregate functions are:
|
---|
12868 |
|
---|
12869 | <ul>
|
---|
12870 | <li>avg -- average</li>
|
---|
12871 | <li>min -- minimum</li>
|
---|
12872 | <li>max -- maximum</li>
|
---|
12873 | </ul>
|
---|
12874 |
|
---|
12875 | When setting up
|
---|
12876 | metric parameters, querying metric data, enabling or disabling metrics
|
---|
12877 | wildcards can be used in metric names to specify a subset of metrics. For
|
---|
12878 | example, to select all CPU-related metrics use <tt>CPU/*</tt>, all
|
---|
12879 | averages can be queried using <tt>*:avg</tt> and so on. To query metric
|
---|
12880 | values without aggregates <tt>*:</tt> can be used.
|
---|
12881 |
|
---|
12882 | The valid names for base metrics are:
|
---|
12883 |
|
---|
12884 | <ul>
|
---|
12885 | <li>CPU/Load</li>
|
---|
12886 | <li>CPU/MHz</li>
|
---|
12887 | <li>RAM/Usage</li>
|
---|
12888 | </ul>
|
---|
12889 |
|
---|
12890 | The general sequence for collecting and retrieving the metrics is:
|
---|
12891 | <ul>
|
---|
12892 | <li>
|
---|
12893 | Obtain an instance of IPerformanceCollector with
|
---|
12894 | <link to="IVirtualBox::performanceCollector" />
|
---|
12895 | </li>
|
---|
12896 | <li>
|
---|
12897 | Allocate and populate an array with references to objects the metrics
|
---|
12898 | will be collected for. Use references to IHost and IMachine objects.
|
---|
12899 | </li>
|
---|
12900 | <li>
|
---|
12901 | Allocate and populate an array with base metric names the data will be
|
---|
12902 | collected for.
|
---|
12903 | </li>
|
---|
12904 | <li>
|
---|
12905 | Call <link to="IPerformanceCollector::setupMetrics" />. From now on the
|
---|
12906 | metric data will be collected and stored.
|
---|
12907 | </li>
|
---|
12908 | <li>
|
---|
12909 | Wait for the data to get collected.
|
---|
12910 | </li>
|
---|
12911 | <li>
|
---|
12912 | Allocate and populate an array with references to objects the metric
|
---|
12913 | values will be queried for. You can re-use the object array used for
|
---|
12914 | setting base metrics.
|
---|
12915 | </li>
|
---|
12916 | <li>
|
---|
12917 | Allocate and populate an array with metric names the data will be
|
---|
12918 | collected for. Note that metric names differ from base metric names.
|
---|
12919 | </li>
|
---|
12920 | <li>
|
---|
12921 | Call <link to="IPerformanceCollector::queryMetricsData" />. The data that
|
---|
12922 | have been collected so far are returned. Note that the values are still
|
---|
12923 | retained internally and data collection continues.
|
---|
12924 | </li>
|
---|
12925 | </ul>
|
---|
12926 |
|
---|
12927 | For an example of usage refer to the following files in VirtualBox SDK:
|
---|
12928 | <ul>
|
---|
12929 | <li>
|
---|
12930 | Java: <tt>bindings/webservice/java/jax-ws/samples/metrictest.java</tt>
|
---|
12931 | </li>
|
---|
12932 | <li>
|
---|
12933 | Python: <tt>bindings/xpcom/python/sample/shellcommon.py</tt>
|
---|
12934 | </li>
|
---|
12935 | </ul>
|
---|
12936 | </desc>
|
---|
12937 |
|
---|
12938 | <attribute name="metricNames" type="wstring" readonly="yes" safearray="yes">
|
---|
12939 | <desc>
|
---|
12940 | Array of unique names of metrics.
|
---|
12941 |
|
---|
12942 | This array represents all metrics supported by the performance
|
---|
12943 | collector. Individual objects do not necessarily support all of them.
|
---|
12944 | <link to="IPerformanceCollector::getMetrics"/> can be used to get the
|
---|
12945 | list of supported metrics for a particular object.
|
---|
12946 | </desc>
|
---|
12947 | </attribute>
|
---|
12948 |
|
---|
12949 | <method name="getMetrics">
|
---|
12950 | <desc>
|
---|
12951 | Returns parameters of specified metrics for a set of objects.
|
---|
12952 | <note>
|
---|
12953 | @c Null metrics array means all metrics. @c Null object array means
|
---|
12954 | all existing objects.
|
---|
12955 | </note>
|
---|
12956 | </desc>
|
---|
12957 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
12958 | <desc>
|
---|
12959 | Metric name filter. Currently, only a comma-separated list of metrics
|
---|
12960 | is supported.
|
---|
12961 | </desc>
|
---|
12962 | </param>
|
---|
12963 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
12964 | <desc>
|
---|
12965 | Set of objects to return metric parameters for.
|
---|
12966 | </desc>
|
---|
12967 | </param>
|
---|
12968 | <param name="metrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
12969 | <desc>
|
---|
12970 | Array of returned metric parameters.
|
---|
12971 | </desc>
|
---|
12972 | </param>
|
---|
12973 | </method>
|
---|
12974 |
|
---|
12975 | <method name="setupMetrics">
|
---|
12976 | <desc>
|
---|
12977 | Sets parameters of specified base metrics for a set of objects. Returns
|
---|
12978 | an array of <link to="IPerformanceMetric" /> describing the metrics have
|
---|
12979 | been affected.
|
---|
12980 | <note>
|
---|
12981 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
12982 | object array means all existing objects. If metric name array contains
|
---|
12983 | a single element and object array contains many, the single metric
|
---|
12984 | name array element is applied to each object array element to form
|
---|
12985 | metric/object pairs.
|
---|
12986 | </note>
|
---|
12987 | </desc>
|
---|
12988 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
12989 | <desc>
|
---|
12990 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
12991 | support.
|
---|
12992 | </desc>
|
---|
12993 | </param>
|
---|
12994 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
12995 | <desc>
|
---|
12996 | Set of objects to setup metric parameters for.
|
---|
12997 | </desc>
|
---|
12998 | </param>
|
---|
12999 | <param name="period" type="unsigned long" dir="in">
|
---|
13000 | <desc>
|
---|
13001 | Time interval in seconds between two consecutive samples of performance
|
---|
13002 | data.
|
---|
13003 | </desc>
|
---|
13004 | </param>
|
---|
13005 | <param name="count" type="unsigned long" dir="in">
|
---|
13006 | <desc>
|
---|
13007 | Number of samples to retain in performance data history. Older samples
|
---|
13008 | get discarded.
|
---|
13009 | </desc>
|
---|
13010 | </param>
|
---|
13011 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13012 | <desc>
|
---|
13013 | Array of metrics that have been modified by the call to this method.
|
---|
13014 | </desc>
|
---|
13015 | </param>
|
---|
13016 | </method>
|
---|
13017 |
|
---|
13018 | <method name="enableMetrics">
|
---|
13019 | <desc>
|
---|
13020 | Turns on collecting specified base metrics. Returns an array of
|
---|
13021 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13022 | affected.
|
---|
13023 | <note>
|
---|
13024 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13025 | object array means all existing objects. If metric name array contains
|
---|
13026 | a single element and object array contains many, the single metric
|
---|
13027 | name array element is applied to each object array element to form
|
---|
13028 | metric/object pairs.
|
---|
13029 | </note>
|
---|
13030 | </desc>
|
---|
13031 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13032 | <desc>
|
---|
13033 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13034 | support.
|
---|
13035 | </desc>
|
---|
13036 | </param>
|
---|
13037 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13038 | <desc>
|
---|
13039 | Set of objects to enable metrics for.
|
---|
13040 | </desc>
|
---|
13041 | </param>
|
---|
13042 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13043 | <desc>
|
---|
13044 | Array of metrics that have been modified by the call to this method.
|
---|
13045 | </desc>
|
---|
13046 | </param>
|
---|
13047 | </method>
|
---|
13048 |
|
---|
13049 | <method name="disableMetrics">
|
---|
13050 | <desc>
|
---|
13051 | Turns off collecting specified base metrics. Returns an array of
|
---|
13052 | <link to="IPerformanceMetric" /> describing the metrics have been
|
---|
13053 | affected.
|
---|
13054 | <note>
|
---|
13055 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13056 | object array means all existing objects. If metric name array contains
|
---|
13057 | a single element and object array contains many, the single metric
|
---|
13058 | name array element is applied to each object array element to form
|
---|
13059 | metric/object pairs.
|
---|
13060 | </note>
|
---|
13061 | </desc>
|
---|
13062 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13063 | <desc>
|
---|
13064 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13065 | support.
|
---|
13066 | </desc>
|
---|
13067 | </param>
|
---|
13068 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13069 | <desc>
|
---|
13070 | Set of objects to disable metrics for.
|
---|
13071 | </desc>
|
---|
13072 | </param>
|
---|
13073 | <param name="affectedMetrics" type="IPerformanceMetric" dir="return" safearray="yes">
|
---|
13074 | <desc>
|
---|
13075 | Array of metrics that have been modified by the call to this method.
|
---|
13076 | </desc>
|
---|
13077 | </param>
|
---|
13078 | </method>
|
---|
13079 |
|
---|
13080 | <method name="queryMetricsData">
|
---|
13081 | <desc>
|
---|
13082 | Queries collected metrics data for a set of objects.
|
---|
13083 |
|
---|
13084 | The data itself and related metric information are returned in seven
|
---|
13085 | parallel and one flattened array of arrays. Elements of
|
---|
13086 | <tt>returnMetricNames, returnObjects, returnUnits, returnScales,
|
---|
13087 | returnSequenceNumbers, returnDataIndices and returnDataLengths</tt> with
|
---|
13088 | the same index describe one set of values corresponding to a single
|
---|
13089 | metric.
|
---|
13090 |
|
---|
13091 | The <tt>returnData</tt> parameter is a flattened array of arrays. Each
|
---|
13092 | start and length of a sub-array is indicated by
|
---|
13093 | <tt>returnDataIndices</tt> and <tt>returnDataLengths</tt>. The first
|
---|
13094 | value for metric <tt>metricNames[i]</tt> is at
|
---|
13095 | <tt>returnData[returnIndices[i]]</tt>.
|
---|
13096 |
|
---|
13097 | <note>
|
---|
13098 | @c Null or empty metric name array means all metrics. @c Null or empty
|
---|
13099 | object array means all existing objects. If metric name array contains
|
---|
13100 | a single element and object array contains many, the single metric
|
---|
13101 | name array element is applied to each object array element to form
|
---|
13102 | metric/object pairs.
|
---|
13103 | </note>
|
---|
13104 | <note>
|
---|
13105 | Data collection continues behind the scenes after call to
|
---|
13106 | @c queryMetricsData. The return data can be seen as the snapshot of
|
---|
13107 | the current state at the time of @c queryMetricsData call. The
|
---|
13108 | internally kept metric values are not cleared by the call. This makes
|
---|
13109 | possible querying different subsets of metrics or aggregates with
|
---|
13110 | subsequent calls. If periodic querying is needed it is highly
|
---|
13111 | suggested to query the values with @c interval*count period to avoid
|
---|
13112 | confusion. This way a completely new set of data values will be
|
---|
13113 | provided by each query.
|
---|
13114 | </note>
|
---|
13115 | </desc>
|
---|
13116 | <param name="metricNames" type="wstring" dir="in" safearray="yes">
|
---|
13117 | <desc>
|
---|
13118 | Metric name filter. Comma-separated list of metrics with wildcard
|
---|
13119 | support.
|
---|
13120 | </desc>
|
---|
13121 | </param>
|
---|
13122 | <param name="objects" type="$unknown" dir="in" safearray="yes">
|
---|
13123 | <desc>
|
---|
13124 | Set of objects to query metrics for.
|
---|
13125 | </desc>
|
---|
13126 | </param>
|
---|
13127 | <param name="returnMetricNames" type="wstring" dir="out" safearray="yes">
|
---|
13128 | <desc>
|
---|
13129 | Names of metrics returned in @c returnData.
|
---|
13130 | </desc>
|
---|
13131 | </param>
|
---|
13132 | <param name="returnObjects" type="$unknown" dir="out" safearray="yes">
|
---|
13133 | <desc>
|
---|
13134 | Objects associated with metrics returned in @c returnData.
|
---|
13135 | </desc>
|
---|
13136 | </param>
|
---|
13137 | <param name="returnUnits" type="wstring" dir="out" safearray="yes">
|
---|
13138 | <desc>
|
---|
13139 | Units of measurement for each returned metric.
|
---|
13140 | </desc>
|
---|
13141 | </param>
|
---|
13142 | <param name="returnScales" type="unsigned long" dir="out" safearray="yes">
|
---|
13143 | <desc>
|
---|
13144 | Divisor that should be applied to return values in order to get
|
---|
13145 | floating point values. For example:
|
---|
13146 | <tt>(double)returnData[returnDataIndices[0]+i] / returnScales[0]</tt>
|
---|
13147 | will retrieve the floating point value of i-th sample of the first
|
---|
13148 | metric.
|
---|
13149 | </desc>
|
---|
13150 | </param>
|
---|
13151 | <param name="returnSequenceNumbers" type="unsigned long" dir="out" safearray="yes">
|
---|
13152 | <desc>
|
---|
13153 | Sequence numbers of the first elements of value sequences of particular metrics
|
---|
13154 | returned in @c returnData. For aggregate metrics it is the sequence number of
|
---|
13155 | the sample the aggregate started calculation from.
|
---|
13156 | </desc>
|
---|
13157 | </param>
|
---|
13158 | <param name="returnDataIndices" type="unsigned long" dir="out" safearray="yes">
|
---|
13159 | <desc>
|
---|
13160 | Indices of the first elements of value sequences of particular metrics
|
---|
13161 | returned in @c returnData.
|
---|
13162 | </desc>
|
---|
13163 | </param>
|
---|
13164 | <param name="returnDataLengths" type="unsigned long" dir="out" safearray="yes">
|
---|
13165 | <desc>
|
---|
13166 | Lengths of value sequences of particular metrics.
|
---|
13167 | </desc>
|
---|
13168 | </param>
|
---|
13169 | <param name="returnData" type="long" dir="return" safearray="yes">
|
---|
13170 | <desc>
|
---|
13171 | Flattened array of all metric data containing sequences of values for
|
---|
13172 | each metric.
|
---|
13173 | </desc>
|
---|
13174 | </param>
|
---|
13175 | </method>
|
---|
13176 |
|
---|
13177 | </interface>
|
---|
13178 |
|
---|
13179 | <module name="VBoxSVC" context="LocalServer">
|
---|
13180 | <class name="VirtualBox" uuid="B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F"
|
---|
13181 | namespace="virtualbox.org">
|
---|
13182 | <interface name="IVirtualBox" default="yes"/>
|
---|
13183 | </class>
|
---|
13184 | </module>
|
---|
13185 |
|
---|
13186 | <module name="VBoxC" context="InprocServer" threadingModel="Free">
|
---|
13187 | <class name="Session" uuid="3C02F46D-C9D2-4F11-A384-53F0CF917214"
|
---|
13188 | namespace="virtualbox.org">
|
---|
13189 | <interface name="ISession" default="yes"/>
|
---|
13190 | </class>
|
---|
13191 | <class name="CallbackWrapper" uuid="49EE8561-5563-4715-B18C-A4B1A490DAFE"
|
---|
13192 | namespace="virtualbox.org">
|
---|
13193 | <interface name="ILocalOwner" default="yes"/>
|
---|
13194 | <interface name="IVirtualBoxCallback"/>
|
---|
13195 | <interface name="IConsoleCallback"/>
|
---|
13196 | </class>
|
---|
13197 | </module>
|
---|
13198 |
|
---|
13199 | </library>
|
---|
13200 |
|
---|
13201 | </idl>
|
---|
13202 |
|
---|
13203 | <!-- vim: set shiftwidth=2 tabstop=2 expandtab: -->
|
---|