VirtualBox

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

Last change on this file since 82781 was 82605, checked in by vboxsync, 4 years ago

FE/Qt: Dealing with todo's mentioned r135326. Part 1.

  • 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: 26.8 KB
Line 
1/* $Id: UIConverterBackend.h 82605 2019-12-17 12:32:26Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIConverterBackend declaration.
4 */
5
6/*
7 * Copyright (C) 2012-2019 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef FEQT_INCLUDED_SRC_converter_UIConverterBackend_h
19#define FEQT_INCLUDED_SRC_converter_UIConverterBackend_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/* Qt includes: */
25#include <QColor>
26#include <QIcon>
27#include <QPixmap>
28#include <QString>
29
30/* GUI includes: */
31#include "UIDefs.h"
32#include "UILibraryDefs.h"
33#include "UIMediumDefs.h"
34#include "UIExtraDataDefs.h"
35#include "UISettingsDefs.h"
36
37/* Other VBox includes: */
38#include <iprt/assert.h>
39
40
41/* Determines if 'Object of type X' can be converted to object of other type.
42 * This function always returns 'false' until re-determined for specific object type. */
43template<class X> bool canConvert() { return false; }
44
45/* Converts passed 'Object X' to QColor.
46 * This function returns null QColor for any object type until re-determined for specific one. */
47template<class X> QColor toColor(const X & /* xobject */) { AssertFailed(); return QColor(); }
48
49/* Converts passed 'Object X' to QIcon.
50 * This function returns null QIcon for any object type until re-determined for specific one. */
51template<class X> QIcon toIcon(const X & /* xobject */) { AssertFailed(); return QIcon(); }
52
53/* Converts passed 'Object X' to QPixmap.
54 * This function returns null QPixmap for any object type until re-determined for specific one. */
55template<class X> QPixmap toWarningPixmap(const X & /* xobject */) { AssertFailed(); return QPixmap(); }
56
57/* Converts passed 'Object of type X' to QString.
58 * This function returns null QString for any object type until re-determined for specific one. */
59template<class X> QString toString(const X & /* xobject */) { AssertFailed(); return QString(); }
60/* Converts passed QString to 'Object of type X'.
61 * This function returns default constructed object for any object type until re-determined for specific one. */
62template<class X> X fromString(const QString & /* strData */) { AssertFailed(); return X(); }
63
64/* Converts passed 'Object of type X' to non-translated QString.
65 * This function returns null QString for any object type until re-determined for specific one. */
66template<class X> QString toInternalString(const X & /* xobject */) { AssertFailed(); return QString(); }
67/* Converts passed non-translated QString to 'Object of type X'.
68 * This function returns default constructed object for any object type until re-determined for specific one. */
69template<class X> X fromInternalString(const QString & /* strData */) { AssertFailed(); return X(); }
70
71/* Converts passed 'Object of type X' to abstract integer.
72 * This function returns 0 for any object type until re-determined for specific one. */
73template<class X> int toInternalInteger(const X & /* xobject */) { AssertFailed(); return 0; }
74/* Converts passed abstract integer to 'Object of type X'.
75 * This function returns default constructed object for any object type until re-determined for specific one. */
76template<class X> X fromInternalInteger(const int & /* iData */) { AssertFailed(); return X(); }
77
78
79/* Declare global canConvert specializations: */
80template<> SHARED_LIBRARY_STUFF bool canConvert<SizeSuffix>();
81template<> SHARED_LIBRARY_STUFF bool canConvert<StorageSlot>();
82template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DialogType>();
83template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuType>();
84template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>();
85template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>();
86template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>();
87template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>();
88template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuInputActionType>();
89template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>();
90#ifdef VBOX_WITH_DEBUGGER_GUI
91template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>();
92#endif /* VBOX_WITH_DEBUGGER_GUI */
93#ifdef VBOX_WS_MAC
94template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::MenuWindowActionType>();
95#endif /* VBOX_WS_MAC */
96template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral>();
97template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeSystem>();
98template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay>();
99template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeStorage>();
100template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeAudio>();
101template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork>();
102template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeSerial>();
103template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeUsb>();
104template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders>();
105template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface>();
106template<> SHARED_LIBRARY_STUFF bool canConvert<UIExtraDataMetaDefs::DetailsElementOptionTypeDescription>();
107template<> SHARED_LIBRARY_STUFF bool canConvert<UIToolType>();
108template<> SHARED_LIBRARY_STUFF bool canConvert<UIVisualStateType>();
109template<> SHARED_LIBRARY_STUFF bool canConvert<DetailsElementType>();
110template<> SHARED_LIBRARY_STUFF bool canConvert<PreviewUpdateIntervalType>();
111template<> SHARED_LIBRARY_STUFF bool canConvert<EventHandlingType>();
112template<> SHARED_LIBRARY_STUFF bool canConvert<GUIFeatureType>();
113template<> SHARED_LIBRARY_STUFF bool canConvert<GlobalSettingsPageType>();
114template<> SHARED_LIBRARY_STUFF bool canConvert<MachineSettingsPageType>();
115template<> SHARED_LIBRARY_STUFF bool canConvert<WizardType>();
116template<> SHARED_LIBRARY_STUFF bool canConvert<IndicatorType>();
117template<> SHARED_LIBRARY_STUFF bool canConvert<MachineCloseAction>();
118template<> SHARED_LIBRARY_STUFF bool canConvert<MouseCapturePolicy>();
119template<> SHARED_LIBRARY_STUFF bool canConvert<GuruMeditationHandlerType>();
120template<> SHARED_LIBRARY_STUFF bool canConvert<ScalingOptimizationType>();
121#ifndef VBOX_WS_MAC
122template<> SHARED_LIBRARY_STUFF bool canConvert<MiniToolbarAlignment>();
123#endif
124template<> SHARED_LIBRARY_STUFF bool canConvert<InformationElementType>();
125template<> SHARED_LIBRARY_STUFF bool canConvert<MaxGuestResolutionPolicy>();
126template<> SHARED_LIBRARY_STUFF bool canConvert<UIMediumFormat>();
127template<> SHARED_LIBRARY_STUFF bool canConvert<UISettingsDefs::RecordingMode>();
128
129/* Declare COM canConvert specializations: */
130template<> SHARED_LIBRARY_STUFF bool canConvert<KMachineState>();
131template<> SHARED_LIBRARY_STUFF bool canConvert<KSessionState>();
132template<> SHARED_LIBRARY_STUFF bool canConvert<KParavirtProvider>();
133template<> SHARED_LIBRARY_STUFF bool canConvert<KDeviceType>();
134template<> SHARED_LIBRARY_STUFF bool canConvert<KClipboardMode>();
135template<> SHARED_LIBRARY_STUFF bool canConvert<KDnDMode>();
136template<> SHARED_LIBRARY_STUFF bool canConvert<KPointingHIDType>();
137template<> SHARED_LIBRARY_STUFF bool canConvert<KGraphicsControllerType>();
138template<> SHARED_LIBRARY_STUFF bool canConvert<KMediumType>();
139template<> SHARED_LIBRARY_STUFF bool canConvert<KMediumVariant>();
140template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAttachmentType>();
141template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAdapterType>();
142template<> SHARED_LIBRARY_STUFF bool canConvert<KNetworkAdapterPromiscModePolicy>();
143template<> SHARED_LIBRARY_STUFF bool canConvert<KPortMode>();
144template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBControllerType>();
145template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBDeviceState>();
146template<> SHARED_LIBRARY_STUFF bool canConvert<KUSBDeviceFilterAction>();
147template<> SHARED_LIBRARY_STUFF bool canConvert<KAudioDriverType>();
148template<> SHARED_LIBRARY_STUFF bool canConvert<KAudioControllerType>();
149template<> SHARED_LIBRARY_STUFF bool canConvert<KAuthType>();
150template<> SHARED_LIBRARY_STUFF bool canConvert<KStorageBus>();
151template<> SHARED_LIBRARY_STUFF bool canConvert<KStorageControllerType>();
152template<> SHARED_LIBRARY_STUFF bool canConvert<KChipsetType>();
153template<> SHARED_LIBRARY_STUFF bool canConvert<KNATProtocol>();
154
155
156/* Declare global conversion specializations: */
157template<> SHARED_LIBRARY_STUFF QString toString(const SizeSuffix &sizeSuffix);
158template<> SHARED_LIBRARY_STUFF SizeSuffix fromString<SizeSuffix>(const QString &strSizeSuffix);
159template<> SHARED_LIBRARY_STUFF QString toString(const StorageSlot &storageSlot);
160template<> SHARED_LIBRARY_STUFF StorageSlot fromString<StorageSlot>(const QString &strStorageSlot);
161template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DialogType &enmDialogType);
162template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DialogType fromInternalString<UIExtraDataMetaDefs::DialogType>(const QString &strDialogType);
163template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuType &menuType);
164template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuType fromInternalString<UIExtraDataMetaDefs::MenuType>(const QString &strMenuType);
165template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &menuApplicationActionType);
166template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuApplicationActionType fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(const QString &strMenuApplicationActionType);
167template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType);
168template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuHelpActionType fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(const QString &strMenuHelpActionType);
169template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType);
170template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuMachineActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType);
171template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType);
172template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuViewActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType);
173template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuInputActionType &runtimeMenuInputActionType);
174template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuInputActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuInputActionType>(const QString &strRuntimeMenuInputActionType);
175template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType);
176template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuDevicesActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType);
177#ifdef VBOX_WITH_DEBUGGER_GUI
178template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType);
179template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType);
180#endif /* VBOX_WITH_DEBUGGER_GUI */
181#ifdef VBOX_WS_MAC
182template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::MenuWindowActionType &menuWindowActionType);
183template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::MenuWindowActionType fromInternalString<UIExtraDataMetaDefs::MenuWindowActionType>(const QString &strMenuWindowActionType);
184#endif /* VBOX_WS_MAC */
185template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &enmDetailsElementOptionTypeGeneral);
186template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral &enmDetailsElementOptionTypeGeneral);
187template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeGeneral>(const QString &strDetailsElementOptionTypeGeneral);
188template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSystem &enmDetailsElementOptionTypeSystem);
189template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSystem &enmDetailsElementOptionTypeSystem);
190template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeSystem fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeSystem>(const QString &strDetailsElementOptionTypeSystem);
191template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay &enmDetailsElementOptionTypeDisplay);
192template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay &enmDetailsElementOptionTypeDisplay);
193template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeDisplay>(const QString &strDetailsElementOptionTypeDisplay);
194template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeStorage &enmDetailsElementOptionTypeStorage);
195template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeStorage &enmDetailsElementOptionTypeStorage);
196template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeStorage fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeStorage>(const QString &strDetailsElementOptionTypeStorage);
197template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeAudio &enmDetailsElementOptionTypeAudio);
198template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeAudio &enmDetailsElementOptionTypeAudio);
199template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeAudio fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeAudio>(const QString &strDetailsElementOptionTypeAudio);
200template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork &enmDetailsElementOptionTypeNetwork);
201template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork &enmDetailsElementOptionTypeNetwork);
202template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork>(const QString &strDetailsElementOptionTypeNetwork);
203template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSerial &enmDetailsElementOptionTypeSerial);
204template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSerial &enmDetailsElementOptionTypeSerial);
205template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeSerial fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeSerial>(const QString &strDetailsElementOptionTypeSerial);
206template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUsb &enmDetailsElementOptionTypeUsb);
207template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUsb &enmDetailsElementOptionTypeUsb);
208template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeUsb fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeUsb>(const QString &strDetailsElementOptionTypeUsb);
209template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders &enmDetailsElementOptionTypeSharedFolders);
210template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders &enmDetailsElementOptionTypeSharedFolders);
211template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeSharedFolders>(const QString &strDetailsElementOptionTypeSharedFolders);
212template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface &enmDetailsElementOptionTypeUserInterface);
213template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface &enmDetailsElementOptionTypeUserInterface);
214template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeUserInterface>(const QString &strDetailsElementOptionTypeUserInterface);
215template<> SHARED_LIBRARY_STUFF QString toString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDescription &enmDetailsElementOptionTypeDescription);
216template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIExtraDataMetaDefs::DetailsElementOptionTypeDescription &enmDetailsElementOptionTypeDescription);
217template<> SHARED_LIBRARY_STUFF UIExtraDataMetaDefs::DetailsElementOptionTypeDescription fromInternalString<UIExtraDataMetaDefs::DetailsElementOptionTypeDescription>(const QString &strDetailsElementOptionTypeDescription);
218template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIToolType &enmToolType);
219template<> SHARED_LIBRARY_STUFF UIToolType fromInternalString<UIToolType>(const QString &strToolType);
220template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIVisualStateType &visualStateType);
221template<> SHARED_LIBRARY_STUFF UIVisualStateType fromInternalString<UIVisualStateType>(const QString &strVisualStateType);
222template<> SHARED_LIBRARY_STUFF QString toString(const DetailsElementType &detailsElementType);
223template<> SHARED_LIBRARY_STUFF DetailsElementType fromString<DetailsElementType>(const QString &strDetailsElementType);
224template<> SHARED_LIBRARY_STUFF QString toInternalString(const DetailsElementType &detailsElementType);
225template<> SHARED_LIBRARY_STUFF DetailsElementType fromInternalString<DetailsElementType>(const QString &strDetailsElementType);
226template<> SHARED_LIBRARY_STUFF QIcon toIcon(const DetailsElementType &detailsElementType);
227template<> SHARED_LIBRARY_STUFF QString toInternalString(const PreviewUpdateIntervalType &previewUpdateIntervalType);
228template<> SHARED_LIBRARY_STUFF PreviewUpdateIntervalType fromInternalString<PreviewUpdateIntervalType>(const QString &strPreviewUpdateIntervalType);
229template<> SHARED_LIBRARY_STUFF int toInternalInteger(const PreviewUpdateIntervalType &previewUpdateIntervalType);
230template<> SHARED_LIBRARY_STUFF PreviewUpdateIntervalType fromInternalInteger<PreviewUpdateIntervalType>(const int &iPreviewUpdateIntervalType);
231template<> SHARED_LIBRARY_STUFF EventHandlingType fromInternalString<EventHandlingType>(const QString &strEventHandlingType);
232template<> SHARED_LIBRARY_STUFF QString toInternalString(const GUIFeatureType &guiFeatureType);
233template<> SHARED_LIBRARY_STUFF GUIFeatureType fromInternalString<GUIFeatureType>(const QString &strGuiFeatureType);
234template<> SHARED_LIBRARY_STUFF QString toInternalString(const GlobalSettingsPageType &globalSettingsPageType);
235template<> SHARED_LIBRARY_STUFF GlobalSettingsPageType fromInternalString<GlobalSettingsPageType>(const QString &strGlobalSettingsPageType);
236template<> SHARED_LIBRARY_STUFF QPixmap toWarningPixmap(const GlobalSettingsPageType &globalSettingsPageType);
237template<> SHARED_LIBRARY_STUFF QString toInternalString(const MachineSettingsPageType &machineSettingsPageType);
238template<> SHARED_LIBRARY_STUFF MachineSettingsPageType fromInternalString<MachineSettingsPageType>(const QString &strMachineSettingsPageType);
239template<> SHARED_LIBRARY_STUFF QPixmap toWarningPixmap(const MachineSettingsPageType &machineSettingsPageType);
240template<> SHARED_LIBRARY_STUFF QString toInternalString(const WizardType &wizardType);
241template<> SHARED_LIBRARY_STUFF WizardType fromInternalString<WizardType>(const QString &strWizardType);
242template<> SHARED_LIBRARY_STUFF QString toInternalString(const IndicatorType &indicatorType);
243template<> SHARED_LIBRARY_STUFF IndicatorType fromInternalString<IndicatorType>(const QString &strIndicatorType);
244template<> SHARED_LIBRARY_STUFF QString toString(const IndicatorType &indicatorType);
245template<> SHARED_LIBRARY_STUFF QIcon toIcon(const IndicatorType &indicatorType);
246template<> SHARED_LIBRARY_STUFF QString toInternalString(const MachineCloseAction &machineCloseAction);
247template<> SHARED_LIBRARY_STUFF MachineCloseAction fromInternalString<MachineCloseAction>(const QString &strMachineCloseAction);
248template<> SHARED_LIBRARY_STUFF QString toInternalString(const MouseCapturePolicy &mouseCapturePolicy);
249template<> SHARED_LIBRARY_STUFF MouseCapturePolicy fromInternalString<MouseCapturePolicy>(const QString &strMouseCapturePolicy);
250template<> SHARED_LIBRARY_STUFF QString toInternalString(const GuruMeditationHandlerType &guruMeditationHandlerType);
251template<> SHARED_LIBRARY_STUFF GuruMeditationHandlerType fromInternalString<GuruMeditationHandlerType>(const QString &strGuruMeditationHandlerType);
252template<> SHARED_LIBRARY_STUFF QString toInternalString(const ScalingOptimizationType &optimizationType);
253template<> SHARED_LIBRARY_STUFF ScalingOptimizationType fromInternalString<ScalingOptimizationType>(const QString &strOptimizationType);
254#ifndef VBOX_WS_MAC
255template<> SHARED_LIBRARY_STUFF QString toInternalString(const MiniToolbarAlignment &miniToolbarAlignment);
256template<> SHARED_LIBRARY_STUFF MiniToolbarAlignment fromInternalString<MiniToolbarAlignment>(const QString &strMiniToolbarAlignment);
257#endif
258template<> SHARED_LIBRARY_STUFF QString toString(const InformationElementType &informationElementType);
259template<> SHARED_LIBRARY_STUFF InformationElementType fromString<InformationElementType>(const QString &strInformationElementType);
260template<> SHARED_LIBRARY_STUFF QString toInternalString(const InformationElementType &informationElementType);
261template<> SHARED_LIBRARY_STUFF InformationElementType fromInternalString<InformationElementType>(const QString &strInformationElementType);
262template<> SHARED_LIBRARY_STUFF QIcon toIcon(const InformationElementType &informationElementType);
263template<> SHARED_LIBRARY_STUFF QString toInternalString(const MaxGuestResolutionPolicy &enmMaxGuestResolutionPolicy);
264template<> SHARED_LIBRARY_STUFF MaxGuestResolutionPolicy fromInternalString<MaxGuestResolutionPolicy>(const QString &strMaxGuestResolutionPolicy);
265template<> SHARED_LIBRARY_STUFF QString toString(const UIMediumFormat &enmUIMediumFormat);
266template<> SHARED_LIBRARY_STUFF QString toInternalString(const UIMediumFormat &enmUIMediumFormat);
267template<> SHARED_LIBRARY_STUFF UIMediumFormat fromInternalString<UIMediumFormat>(const QString &strUIMediumFormat);
268template<> SHARED_LIBRARY_STUFF QString toString(const UISettingsDefs::RecordingMode &enmRecordingMode);
269template<> SHARED_LIBRARY_STUFF UISettingsDefs::RecordingMode fromString<UISettingsDefs::RecordingMode>(const QString &enmRecordingMode);
270
271/* Declare COM conversion specializations: */
272template<> SHARED_LIBRARY_STUFF QColor toColor(const KMachineState &state);
273template<> SHARED_LIBRARY_STUFF QIcon toIcon(const KMachineState &state);
274template<> SHARED_LIBRARY_STUFF QString toString(const KMachineState &state);
275template<> SHARED_LIBRARY_STUFF QString toString(const KSessionState &state);
276template<> SHARED_LIBRARY_STUFF QString toString(const KParavirtProvider &type);
277template<> SHARED_LIBRARY_STUFF QString toString(const KDeviceType &type);
278template<> SHARED_LIBRARY_STUFF QString toString(const KClipboardMode &mode);
279template<> SHARED_LIBRARY_STUFF QString toString(const KDnDMode &mode);
280template<> SHARED_LIBRARY_STUFF QString toString(const KPointingHIDType &type);
281template<> SHARED_LIBRARY_STUFF QString toString(const KGraphicsControllerType &type);
282template<> SHARED_LIBRARY_STUFF KGraphicsControllerType fromString<KGraphicsControllerType>(const QString &strType);
283template<> SHARED_LIBRARY_STUFF QString toString(const KMediumType &type);
284template<> SHARED_LIBRARY_STUFF QString toString(const KMediumVariant &variant);
285template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAttachmentType &type);
286template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAdapterType &type);
287template<> SHARED_LIBRARY_STUFF QString toString(const KNetworkAdapterPromiscModePolicy &policy);
288template<> SHARED_LIBRARY_STUFF QString toString(const KPortMode &mode);
289template<> SHARED_LIBRARY_STUFF KPortMode fromString<KPortMode>(const QString &strMode);
290template<> SHARED_LIBRARY_STUFF QString toString(const KUSBControllerType &type);
291template<> SHARED_LIBRARY_STUFF QString toString(const KUSBDeviceState &state);
292template<> SHARED_LIBRARY_STUFF QString toString(const KUSBDeviceFilterAction &action);
293template<> SHARED_LIBRARY_STUFF KUSBDeviceFilterAction fromString<KUSBDeviceFilterAction>(const QString &strAction);
294template<> SHARED_LIBRARY_STUFF QString toString(const KAudioDriverType &type);
295template<> SHARED_LIBRARY_STUFF KAudioDriverType fromString<KAudioDriverType>(const QString &strType);
296template<> SHARED_LIBRARY_STUFF QString toString(const KAudioControllerType &type);
297template<> SHARED_LIBRARY_STUFF KAudioControllerType fromString<KAudioControllerType>(const QString &strType);
298template<> SHARED_LIBRARY_STUFF QString toString(const KAuthType &type);
299template<> SHARED_LIBRARY_STUFF KAuthType fromString<KAuthType>(const QString &strType);
300template<> SHARED_LIBRARY_STUFF QString toString(const KStorageBus &bus);
301template<> SHARED_LIBRARY_STUFF KStorageBus fromString<KStorageBus>(const QString &strType);
302template<> SHARED_LIBRARY_STUFF QString toString(const KStorageControllerType &type);
303template<> SHARED_LIBRARY_STUFF KStorageControllerType fromString<KStorageControllerType>(const QString &strType);
304template<> SHARED_LIBRARY_STUFF QString toString(const KChipsetType &type);
305template<> SHARED_LIBRARY_STUFF QString toString(const KNATProtocol &protocol);
306template<> SHARED_LIBRARY_STUFF QString toInternalString(const KNATProtocol &protocol);
307template<> SHARED_LIBRARY_STUFF KNATProtocol fromInternalString<KNATProtocol>(const QString &strProtocol);
308
309
310#endif /* !FEQT_INCLUDED_SRC_converter_UIConverterBackend_h */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use