VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h@ 103131

Last change on this file since 103131 was 102283, checked in by vboxsync, 14 months ago

FE/Qt: bugref:10501. Build fix.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
  • Property svn:mergeinfo set to (toggle deleted branches)
    /branches/VBox-3.0/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h58652,​70973
    /branches/VBox-3.2/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h66309,​66318
    /branches/VBox-4.0/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h70873
    /branches/VBox-4.1/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h74233
    /branches/VBox-4.2/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h91503-91504,​91506-91508,​91510,​91514-91515,​91521
    /branches/VBox-4.3/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h91223
    /branches/VBox-4.3/trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h91223
    /branches/dsen/gui/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h79076-79078,​79089,​79109-79110,​79112-79113,​79127-79130,​79134,​79141,​79151,​79155,​79157-79159,​79193,​79197
    /branches/dsen/gui2/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h79224,​79228,​79233,​79235,​79258,​79262-79263,​79273,​79341,​79345,​79354,​79357,​79387-79388,​79559-79569,​79572-79573,​79578,​79581-79582,​79590-79591,​79598-79599,​79602-79603,​79605-79606,​79632,​79635,​79637,​79644
    /branches/dsen/gui3/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h79645-79692
File size: 30.4 KB
Line 
1/* $Id: UIConverterBackend.h 102283 2023-11-23 20:11:53Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIConverterBackend declaration.
4 */
5
6/*
7 * Copyright (C) 2012-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef FEQT_INCLUDED_SRC_converter_UIConverterBackend_h
29#define FEQT_INCLUDED_SRC_converter_UIConverterBackend_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QColor>
36#include <QIcon>
37#include <QPixmap>
38#include <QString>
39
40/* GUI includes: */
41#include "UIDefs.h"
42#include "UILibraryDefs.h"
43#include "UIMediumDefs.h"
44#include "UIExtraDataDefs.h"
45#include "UISettingsDefs.h"
46
47/* Other VBox includes: */
48#include <iprt/assert.h>
49
50
51/* Determines if 'Object of type X' can be converted to object of other type.
52 * This function always returns 'false' until re-determined for specific object type. */
53template<class X> bool canConvert() { return false; }
54
55/* Converts passed 'Object X' to QColor.
56 * This function returns null QColor for any object type until re-determined for specific one. */
57template<class X> QColor toColor(const X & /* xobject */) { AssertFailed(); return QColor(); }
58
59/* Converts passed 'Object X' to QIcon.
60 * This function returns null QIcon for any object type until re-determined for specific one. */
61template<class X> QIcon toIcon(const X & /* xobject */) { AssertFailed(); return QIcon(); }
62
63/* Converts passed 'Object X' to QPixmap.
64 * This function returns null QPixmap for any object type until re-determined for specific one. */
65template<class X> QPixmap toWarningPixmap(const X & /* xobject */) { AssertFailed(); return QPixmap(); }
66
67/* Converts passed 'Object of type X' to QString.
68 * This function returns null QString for any object type until re-determined for specific one. */
69template<class X> QString toString(const X & /* xobject */) { AssertFailed(); return QString(); }
70/* Converts passed QString to 'Object of type X'.
71 * This function returns default constructed object for any object type until re-determined for specific one. */
72template<class X> X fromString(const QString & /* strData */) { AssertFailed(); return X(); }
73
74/* Converts passed 'Object of type X' to non-translated QString.
75 * This function returns null QString for any object type until re-determined for specific one. */
76template<class X> QString toInternalString(const X & /* xobject */) { AssertFailed(); return QString(); }
77/* Converts passed non-translated QString to 'Object of type X'.
78 * This function returns default constructed object for any object type until re-determined for specific one. */
79template<class X> X fromInternalString(const QString & /* strData */) { AssertFailed(); return X(); }
80
81/* Converts passed 'Object of type X' to abstract integer.
82 * This function returns 0 for any object type until re-determined for specific one. */
83template<class X> int toInternalInteger(const X & /* xobject */) { AssertFailed(); return 0; }
84/* Converts passed abstract integer to 'Object of type X'.
85 * This function returns default constructed object for any object type until re-determined for specific one. */
86template<class X> X fromInternalInteger(const int & /* iData */) { AssertFailed(); return X(); }
87
88
89/* Declare global canConvert specializations: */
90template<> SHARED_LIBRARY_STUFF bool canConvert<Qt::Alignment>();
91template<> SHARED_LIBRARY_STUFF bool canConvert<Qt::SortOrder>();
92template<> SHARED_LIBRARY_STUFF bool canConvert<SizeSuffix>();
93template<> SHARED_LIBRARY_STUFF bool canConvert<StorageSlot>();
94template<> SHARED_LIBRARY_STUFF bool canConvert<DesktopWatchdogPolicy_SynthTest>();
95template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DialogType>();
96template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuType>();
97template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>();
98template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>();
99template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>();
100template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>();
101template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuInputActionType>();
102template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>();
103#ifdef VBOX_WITH_DEBUGGER_GUI
104template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>();
105#endif /* VBOX_WITH_DEBUGGER_GUI */
106#ifdef VBOX_WS_MAC
107template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuWindowActionType>();
108#endif /* VBOX_WS_MAC */
109template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral>();
110template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeSystem>();
111template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay>();
112template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeStorage>();
113template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeAudio>();
114template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork>();
115template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeSerial>();
116template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeUsb>();
117template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders>();
118template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface>();
119template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeDescription>();
120template<> SHARED_LIBRARY_STUFF bool canConvert<UIColorThemeType>();
121template<> SHARED_LIBRARY_STUFF bool canConvert<UILaunchMode>();
122template<> SHARED_LIBRARY_STUFF bool canConvert<UIToolType>();
123template<> SHARED_LIBRARY_STUFF bool canConvert<UIVisualStateType>();
124template<> SHARED_LIBRARY_STUFF bool canConvert<DetailsElementType>();
125template<> SHARED_LIBRARY_STUFF bool canConvert<PreviewUpdateIntervalType>();
126template<> SHARED_LIBRARY_STUFF bool canConvert<UIDiskEncryptionCipherType>();
127template<> SHARED_LIBRARY_STUFF bool canConvert<GUIFeatureType>();
128template<> SHARED_LIBRARY_STUFF bool canConvert<GlobalSettingsPageType>();
129template<> SHARED_LIBRARY_STUFF bool canConvert<MachineSettingsPageType>();
130template<> SHARED_LIBRARY_STUFF bool canConvert<UIRemoteMode>();
131template<> SHARED_LIBRARY_STUFF bool canConvert<WizardType>();
132template<> SHARED_LIBRARY_STUFF bool canConvert<IndicatorType>();
133template<> SHARED_LIBRARY_STUFF bool canConvert<MachineCloseAction>();
134template<> SHARED_LIBRARY_STUFF bool canConvert<MouseCapturePolicy>();
135template<> SHARED_LIBRARY_STUFF bool canConvert<GuruMeditationHandlerType>();
136template<> SHARED_LIBRARY_STUFF bool canConvert<ScalingOptimizationType>();
137#ifndef VBOX_WS_MAC
138template<> SHARED_LIBRARY_STUFF bool canConvert<MiniToolbarAlignment>();
139#endif
140template<> SHARED_LIBRARY_STUFF bool canConvert<InformationElementType>();
141template<> SHARED_LIBRARY_STUFF bool canConvert<MaximumGuestScreenSizePolicy>();
142template<> SHARED_LIBRARY_STUFF bool canConvert<UIMediumFormat>();
143template<> SHARED_LIBRARY_STUFF bool canConvert<UISettingsDefs::RecordingMode>();
144template<> SHARED_LIBRARY_STUFF bool canConvert<VMActivityOverviewColumn>();
145
146/* Declare COM canConvert specializations: */
147template<> SHARED_LIBRARY_STUFF bool canConvert<KCloudMachineState>();
148template<> SHARED_LIBRARY_STUFF bool canConvert<KMachineState>();
149template<> SHARED_LIBRARY_STUFF bool canConvert<KSessionState>();
150template<> SHARED_LIBRARY_STUFF bool canConvert<KParavirtProvider>();
151template<> SHARED_LIBRARY_STUFF bool canConvert<KDeviceType>();
152template<> SHARED_LIBRARY_STUFF bool canConvert<KClipboardMode>();
153template<> SHARED_LIBRARY_STUFF bool canConvert<KDnDMode>();
154template<> SHARED_LIBRARY_STUFF bool canConvert<KPointingHIDType>();
155template<> SHARED_LIBRARY_STUFF bool canConvert<KGraphicsControllerType>();
156template<> SHARED_LIBRARY_STUFF bool canConvert<KMediumType>();
157template<> SHARED_LIBRARY_STUFF bool canConvert<KMediumVariant>();
158template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAttachmentType>();
159template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAdapterType>();
160template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAdapterPromiscModePolicy>();
161template<> SHARED_LIBRARY_STUFF bool canConvert<KPortMode>();
162template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBControllerType>();
163template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBDeviceState>();
164template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBDeviceFilterAction>();
165template<> SHARED_LIBRARY_STUFF bool canConvert<KAudioDriverType>();
166template<> SHARED_LIBRARY_STUFF bool canConvert<KAudioControllerType>();
167template<> SHARED_LIBRARY_STUFF bool canConvert<KAuthType>();
168template<> SHARED_LIBRARY_STUFF bool canConvert<KStorageBus>();
169template<> SHARED_LIBRARY_STUFF bool canConvert<KStorageControllerType>();
170template<> SHARED_LIBRARY_STUFF bool canConvert<KChipsetType>();
171template<> SHARED_LIBRARY_STUFF bool canConvert<KTpmType>();
172template<> SHARED_LIBRARY_STUFF bool canConvert<KNATProtocol>();
173template<> SHARED_LIBRARY_STUFF bool canConvert<KGuestSessionStatus>();
174template<> SHARED_LIBRARY_STUFF bool canConvert<KProcessStatus>();
175template<> SHARED_LIBRARY_STUFF bool canConvert<KMetricType>();
176
177/* Declare global conversion specializations: */
178template<> SHARED_LIBRARY_STUFF QString toInternalString(const Qt::Alignment &enmAlignment);
179template<> SHARED_LIBRARY_STUFF Qt::Alignment fromInternalString<Qt::Alignment>(const QString &strAlignment);
180template<> SHARED_LIBRARY_STUFF QString toInternalString(const Qt::SortOrder &enmSortOrder);
181template<> SHARED_LIBRARY_STUFF Qt::SortOrder fromInternalString<Qt::SortOrder>(const QString &strSortOrder);
182template<> SHARED_LIBRARY_STUFF QString toString(const SizeSuffix &sizeSuffix);
183template<> SHARED_LIBRARY_STUFF SizeSuffix fromString<SizeSuffix>(const QString &strSizeSuffix);
184template<> SHARED_LIBRARY_STUFF QString toString(const StorageSlot &storageSlot);
185template<> SHARED_LIBRARY_STUFF StorageSlot fromString<StorageSlot>(const QString &strStorageSlot);
186template<> SHARED_LIBRARY_STUFF DesktopWatchdogPolicy_SynthTest fromInternalString<DesktopWatchdogPolicy_SynthTest>(const QString &strPolicyType);
187template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DialogType &enmDialogType);
188template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DialogType fromInternalString<UIExtraDataMetaDefs::DialogType>(const QString &strDialogType);
189template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuType &menuType);
190template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuType fromInternalString<UIExtraDataMetaDefs::MenuType>(const QString &strMenuType);
191template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &menuApplicationActionType);
192template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuApplicationActionType fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(const QString &strMenuApplicationActionType);
193template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType);
194template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuHelpActionType fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(const QString &strMenuHelpActionType);
195template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType);
196template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuMachineActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType);
197template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType);
198template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuViewActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType);
199template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuInputActionType &runtimeMenuInputActionType);
200template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuInputActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuInputActionType>(const QString &strRuntimeMenuInputActionType);
201template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType);
202template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuDevicesActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType);
203#ifdef VBOX_WITH_DEBUGGER_GUI
204template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType);
205template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType);
206#endif /* VBOX_WITH_DEBUGGER_GUI */
207#ifdef VBOX_WS_MAC
208template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuWindowActionType &menuWindowActionType);
209template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuWindowActionType fromInternalString<UIExtraDataMetaDefs::MenuWindowActionType>(const QString &strMenuWindowActionType);
210#endif /* VBOX_WS_MAC */
211template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &enmDetailsElementOptionTypeGeneral);
212template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &enmDetailsElementOptionTypeGeneral);
213template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral>(const QString &strDetailsElementOptionTypeGeneral);
214template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSystem &enmDetailsElementOptionTypeSystem);
215template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSystem &enmDetailsElementOptionTypeSystem);
216template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeSystem fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeSystem>(const QString &strDetailsElementOptionTypeSystem);
217template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay &enmDetailsElementOptionTypeDisplay);
218template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay &enmDetailsElementOptionTypeDisplay);
219template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay>(const QString &strDetailsElementOptionTypeDisplay);
220template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeStorage &enmDetailsElementOptionTypeStorage);
221template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeStorage &enmDetailsElementOptionTypeStorage);
222template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeStorage fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeStorage>(const QString &strDetailsElementOptionTypeStorage);
223template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeAudio &enmDetailsElementOptionTypeAudio);
224template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeAudio &enmDetailsElementOptionTypeAudio);
225template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeAudio fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeAudio>(const QString &strDetailsElementOptionTypeAudio);
226template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork &enmDetailsElementOptionTypeNetwork);
227template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork &enmDetailsElementOptionTypeNetwork);
228template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork>(const QString &strDetailsElementOptionTypeNetwork);
229template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSerial &enmDetailsElementOptionTypeSerial);
230template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSerial &enmDetailsElementOptionTypeSerial);
231template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeSerial fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeSerial>(const QString &strDetailsElementOptionTypeSerial);
232template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUsb &enmDetailsElementOptionTypeUsb);
233template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUsb &enmDetailsElementOptionTypeUsb);
234template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeUsb fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeUsb>(const QString &strDetailsElementOptionTypeUsb);
235template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders &enmDetailsElementOptionTypeSharedFolders);
236template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders &enmDetailsElementOptionTypeSharedFolders);
237template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders>(const QString &strDetailsElementOptionTypeSharedFolders);
238template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface &enmDetailsElementOptionTypeUserInterface);
239template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface &enmDetailsElementOptionTypeUserInterface);
240template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface>(const QString &strDetailsElementOptionTypeUserInterface);
241template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDescription &enmDetailsElementOptionTypeDescription);
242template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDescription &enmDetailsElementOptionTypeDescription);
243template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeDescription fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeDescription>(const QString &strDetailsElementOptionTypeDescription);
244template<> SHARED_LIBRARY_STUFF QString toString(const UIColorThemeType &colorThemeType);
245template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIColorThemeType &colorThemeType);
246template<> SHARED_LIBRARY_STUFF UIColorThemeType fromInternalString<UIColorThemeType>(const QString &strColorThemeType);
247template<> SHARED_LIBRARY_STUFF UILaunchMode fromInternalString<UILaunchMode>(const QString &strDefaultFrontendType);
248template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIToolType &enmToolType);
249template<> SHARED_LIBRARY_STUFF UIToolType fromInternalString<UIToolType>(const QString &strToolType);
250template<> SHARED_LIBRARY_STUFF QString toString(const UIVisualStateType &visualStateType);
251template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIVisualStateType &visualStateType);
252template<> SHARED_LIBRARY_STUFF UIVisualStateType fromInternalString<UIVisualStateType>(const QString &strVisualStateType);
253template<> SHARED_LIBRARY_STUFF QString toString(const DetailsElementType &detailsElementType);
254template<> SHARED_LIBRARY_STUFF DetailsElementType fromString<DetailsElementType>(const QString &strDetailsElementType);
255template<> SHARED_LIBRARY_STUFF QString toInternalString(const DetailsElementType &detailsElementType);
256template<> SHARED_LIBRARY_STUFF DetailsElementType fromInternalString<DetailsElementType>(const QString &strDetailsElementType);
257template<> SHARED_LIBRARY_STUFF QIcon toIcon(const DetailsElementType &detailsElementType);
258template<> SHARED_LIBRARY_STUFF QString toInternalString(const PreviewUpdateIntervalType &previewUpdateIntervalType);
259template<> SHARED_LIBRARY_STUFF PreviewUpdateIntervalType fromInternalString<PreviewUpdateIntervalType>(const QString &strPreviewUpdateIntervalType);
260template<> SHARED_LIBRARY_STUFF int toInternalInteger(const PreviewUpdateIntervalType &previewUpdateIntervalType);
261template<> SHARED_LIBRARY_STUFF PreviewUpdateIntervalType fromInternalInteger<PreviewUpdateIntervalType>(const int &iPreviewUpdateIntervalType);
262template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIDiskEncryptionCipherType &enmDiskEncryptionCipherType);
263template<> SHARED_LIBRARY_STUFF UIDiskEncryptionCipherType fromInternalString<UIDiskEncryptionCipherType>(const QString &strDiskEncryptionCipherType);
264template<> SHARED_LIBRARY_STUFF QString toString(const UIDiskEncryptionCipherType &enmDiskEncryptionCipherType);
265template<> SHARED_LIBRARY_STUFF UIDiskEncryptionCipherType fromString<UIDiskEncryptionCipherType>(const QString &strDiskEncryptionCipherType);
266template<> SHARED_LIBRARY_STUFF QString toInternalString(const GUIFeatureType &guiFeatureType);
267template<> SHARED_LIBRARY_STUFF GUIFeatureType fromInternalString<GUIFeatureType>(const QString &strGuiFeatureType);
268template<> SHARED_LIBRARY_STUFF QString toInternalString(const GlobalSettingsPageType &globalSettingsPageType);
269template<> SHARED_LIBRARY_STUFF GlobalSettingsPageType fromInternalString<GlobalSettingsPageType>(const QString &strGlobalSettingsPageType);
270template<> SHARED_LIBRARY_STUFF QPixmap toWarningPixmap(const GlobalSettingsPageType &globalSettingsPageType);
271template<> SHARED_LIBRARY_STUFF QString toInternalString(const MachineSettingsPageType &machineSettingsPageType);
272template<> SHARED_LIBRARY_STUFF MachineSettingsPageType fromInternalString<MachineSettingsPageType>(const QString &strMachineSettingsPageType);
273template<> SHARED_LIBRARY_STUFF QPixmap toWarningPixmap(const MachineSettingsPageType &machineSettingsPageType);
274template<> SHARED_LIBRARY_STUFF QString toString(const UIRemoteMode &enmMode);
275template<> SHARED_LIBRARY_STUFF QString toInternalString(const WizardType &wizardType);
276template<> SHARED_LIBRARY_STUFF WizardType fromInternalString<WizardType>(const QString &strWizardType);
277template<> SHARED_LIBRARY_STUFF QString toInternalString(const IndicatorType &indicatorType);
278template<> SHARED_LIBRARY_STUFF IndicatorType fromInternalString<IndicatorType>(const QString &strIndicatorType);
279template<> SHARED_LIBRARY_STUFF QString toString(const IndicatorType &indicatorType);
280template<> SHARED_LIBRARY_STUFF QIcon toIcon(const IndicatorType &indicatorType);
281template<> SHARED_LIBRARY_STUFF QString toInternalString(const MachineCloseAction &machineCloseAction);
282template<> SHARED_LIBRARY_STUFF MachineCloseAction fromInternalString<MachineCloseAction>(const QString &strMachineCloseAction);
283template<> SHARED_LIBRARY_STUFF QString toInternalString(const MouseCapturePolicy &mouseCapturePolicy);
284template<> SHARED_LIBRARY_STUFF MouseCapturePolicy fromInternalString<MouseCapturePolicy>(const QString &strMouseCapturePolicy);
285template<> SHARED_LIBRARY_STUFF QString toInternalString(const GuruMeditationHandlerType &guruMeditationHandlerType);
286template<> SHARED_LIBRARY_STUFF GuruMeditationHandlerType fromInternalString<GuruMeditationHandlerType>(const QString &strGuruMeditationHandlerType);
287template<> SHARED_LIBRARY_STUFF QString toInternalString(const ScalingOptimizationType &optimizationType);
288template<> SHARED_LIBRARY_STUFF ScalingOptimizationType fromInternalString<ScalingOptimizationType>(const QString &strOptimizationType);
289#ifndef VBOX_WS_MAC
290template<> SHARED_LIBRARY_STUFF QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment);
291template<> SHARED_LIBRARY_STUFF MiniToolbarAlignment fromInternalString<MiniToolbarAlignment>(const QString &strMiniToolbarAlignment);
292#endif
293template<> SHARED_LIBRARY_STUFF QString toString(const InformationElementType &informationElementType);
294template<> SHARED_LIBRARY_STUFF InformationElementType fromString<InformationElementType>(const QString &strInformationElementType);
295template<> SHARED_LIBRARY_STUFF QString toInternalString(const InformationElementType &informationElementType);
296template<> SHARED_LIBRARY_STUFF InformationElementType fromInternalString<InformationElementType>(const QString &strInformationElementType);
297template<> SHARED_LIBRARY_STUFF QIcon toIcon(const InformationElementType &informationElementType);
298template<> SHARED_LIBRARY_STUFF QString toString(const MaximumGuestScreenSizePolicy &enmMaximumGuestScreenSizePolicy);
299template<> SHARED_LIBRARY_STUFF QString toInternalString(const MaximumGuestScreenSizePolicy &enmMaximumGuestScreenSizePolicy);
300template<> SHARED_LIBRARY_STUFF MaximumGuestScreenSizePolicy fromInternalString<MaximumGuestScreenSizePolicy>(const QString &strMaximumGuestScreenSizePolicy);
301template<> SHARED_LIBRARY_STUFF QString toString(const UIMediumFormat &enmUIMediumFormat);
302template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIMediumFormat &enmUIMediumFormat);
303template<> SHARED_LIBRARY_STUFF UIMediumFormat fromInternalString<UIMediumFormat>(const QString &strUIMediumFormat);
304template<> SHARED_LIBRARY_STUFF QString toString(const UISettingsDefs::RecordingMode &enmRecordingMode);
305template<> SHARED_LIBRARY_STUFF QString toInternalString(const VMActivityOverviewColumn &enmVMActivityOverviewColumn);
306template<> SHARED_LIBRARY_STUFF VMActivityOverviewColumn fromInternalString<VMActivityOverviewColumn>(const QString &strVMActivityOverviewColumn);
307
308/* Declare COM conversion specializations: */
309template<> SHARED_LIBRARY_STUFF QIcon toIcon(const KCloudMachineState &state);
310template<> SHARED_LIBRARY_STUFF QString toString(const KCloudMachineState &state);
311template<> SHARED_LIBRARY_STUFF QColor toColor(const KMachineState &state);
312template<> SHARED_LIBRARY_STUFF QIcon toIcon(const KMachineState &state);
313template<> SHARED_LIBRARY_STUFF QString toString(const KMachineState &state);
314template<> SHARED_LIBRARY_STUFF QString toString(const KSessionState &state);
315template<> SHARED_LIBRARY_STUFF QString toString(const KParavirtProvider &type);
316template<> SHARED_LIBRARY_STUFF QString toString(const KDeviceType &type);
317template<> SHARED_LIBRARY_STUFF QString toString(const KClipboardMode &mode);
318template<> SHARED_LIBRARY_STUFF QString toString(const KDnDMode &mode);
319template<> SHARED_LIBRARY_STUFF QString toString(const KPointingHIDType &type);
320template<> SHARED_LIBRARY_STUFF QString toString(const KGraphicsControllerType &type);
321template<> SHARED_LIBRARY_STUFF KGraphicsControllerType fromString<KGraphicsControllerType>(const QString &strType);
322template<> SHARED_LIBRARY_STUFF QString toString(const KMediumType &type);
323template<> SHARED_LIBRARY_STUFF QString toString(const KMediumVariant &variant);
324template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAttachmentType &type);
325template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAdapterType &type);
326template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAdapterPromiscModePolicy &policy);
327template<> SHARED_LIBRARY_STUFF QString toString(const KPortMode &mode);
328template<> SHARED_LIBRARY_STUFF KPortMode fromString<KPortMode>(const QString &strMode);
329template<> SHARED_LIBRARY_STUFF QString toString(const KUSBControllerType &type);
330template<> SHARED_LIBRARY_STUFF QString toString(const KUSBDeviceState &state);
331template<> SHARED_LIBRARY_STUFF QString toString(const KUSBDeviceFilterAction &action);
332template<> SHARED_LIBRARY_STUFF KUSBDeviceFilterAction fromString<KUSBDeviceFilterAction>(const QString &strAction);
333template<> SHARED_LIBRARY_STUFF QString toString(const KAudioDriverType &type);
334template<> SHARED_LIBRARY_STUFF KAudioDriverType fromString<KAudioDriverType>(const QString &strType);
335template<> SHARED_LIBRARY_STUFF QString toString(const KAudioControllerType &type);
336template<> SHARED_LIBRARY_STUFF KAudioControllerType fromString<KAudioControllerType>(const QString &strType);
337template<> SHARED_LIBRARY_STUFF QString toString(const KAuthType &type);
338template<> SHARED_LIBRARY_STUFF KAuthType fromString<KAuthType>(const QString &strType);
339template<> SHARED_LIBRARY_STUFF QString toString(const KStorageBus &bus);
340template<> SHARED_LIBRARY_STUFF KStorageBus fromString<KStorageBus>(const QString &strType);
341template<> SHARED_LIBRARY_STUFF QString toString(const KStorageControllerType &type);
342template<> SHARED_LIBRARY_STUFF KStorageControllerType fromString<KStorageControllerType>(const QString &strType);
343template<> SHARED_LIBRARY_STUFF QString toString(const KChipsetType &type);
344template<> SHARED_LIBRARY_STUFF QString toString(const KTpmType &type);
345template<> SHARED_LIBRARY_STUFF QString toString(const KNATProtocol &protocol);
346template<> SHARED_LIBRARY_STUFF QString toInternalString(const KNATProtocol &protocol);
347template<> SHARED_LIBRARY_STUFF KNATProtocol fromInternalString<KNATProtocol>(const QString &strProtocol);
348template<> SHARED_LIBRARY_STUFF QString toString(const KGuestSessionStatus &status);
349template<> SHARED_LIBRARY_STUFF KGuestSessionStatus fromString<KGuestSessionStatus>(const QString &strStatus);
350template<> SHARED_LIBRARY_STUFF QString toString(const KProcessStatus &status);
351template<> SHARED_LIBRARY_STUFF KProcessStatus fromString<KProcessStatus>(const QString &strStatus);
352template<> SHARED_LIBRARY_STUFF QString toInternalString(const KMetricType &metricType);
353template<> SHARED_LIBRARY_STUFF KMetricType fromInternalString<KMetricType>(const QString &strMetricType);
354
355
356#endif /* !FEQT_INCLUDED_SRC_converter_UIConverterBackend_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette