VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h@ 100064

Last change on this file since 100064 was 100064, checked in by vboxsync, 17 months ago

FE/Qt: bugref:10421. Replacing VBOX_WS_X11 with VBOX_WS_NIX.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 46.9 KB
Line 
1/* $Id: UIExtraDataManager.h 100064 2023-06-04 09:10:01Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - UIExtraDataManager class declaration.
4 */
5
6/*
7 * Copyright (C) 2010-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_extradata_UIExtraDataManager_h
29#define FEQT_INCLUDED_SRC_extradata_UIExtraDataManager_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/* Qt includes: */
35#include <QMap>
36#include <QObject>
37#include <QRect>
38#include <QSize>
39#include <QUuid>
40#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
41# include <QPointer>
42#endif
43
44/* GUI includes: */
45#include "UIExtraDataDefs.h"
46
47/* Forward declarations: */
48class UIExtraDataEventHandler;
49#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
50class UIExtraDataManagerWindow;
51#endif
52
53/** Defines the map of extra data values. The index is an extra-data key. */
54typedef QMap<QString, QString> ExtraDataMap;
55/** Defines the map of extra data maps. */
56typedef QMap<QUuid, ExtraDataMap> MapOfExtraDataMaps;
57
58/** Singleton QObject extension
59 * providing GUI with corresponding extra-data values,
60 * and notifying it whenever any of those values changed. */
61class SHARED_LIBRARY_STUFF UIExtraDataManager : public QObject
62{
63 Q_OBJECT;
64
65 /** Extra-data Manager constructor. */
66 UIExtraDataManager();
67 /** Extra-data Manager destructor. */
68 ~UIExtraDataManager();
69
70signals:
71
72 /** Notifies about extra-data map acknowledging. */
73 void sigExtraDataMapAcknowledging(const QUuid &uID);
74
75 /** Notifies about extra-data change. */
76 void sigExtraDataChange(const QUuid &uID, const QString &strKey, const QString &strValue);
77
78 /** Notifies about notification-center alignment change. */
79 void sigNotificationCenterAlignmentChange();
80 /** Notifies about notification-center order change. */
81 void sigNotificationCenterOrderChange();
82
83 /** Notifies about GUI language change. */
84 void sigLanguageChange(QString strLanguage);
85
86 /** Notifies about Selector UI keyboard shortcut change. */
87 void sigSelectorUIShortcutChange();
88 /** Notifies about Runtime UI keyboard shortcut change. */
89 void sigRuntimeUIShortcutChange();
90 /** Notifies about Runtime UI host-key combination change. */
91 void sigRuntimeUIHostKeyCombinationChange();
92
93 /** Notifies about Cloud Profile Manager restriction change. */
94 void sigCloudProfileManagerRestrictionChange();
95
96 /** Notifies about Cloud Console Manager data change. */
97 void sigCloudConsoleManagerDataChange();
98 /** Notifies about Cloud Console Manager restriction change. */
99 void sigCloudConsoleManagerRestrictionChange();
100
101 /** Notifies about VirtualBox Manager / Details pane categories change. */
102 void sigDetailsCategoriesChange();
103 /** Notifies about VirtualBox Manager / Details pane options change. */
104 void sigDetailsOptionsChange(DetailsElementType enmType);
105
106 /** Notifies about visual state change. */
107 void sigVisualStateChange(const QUuid &uMachineID);
108
109 /** Notifies about menu-bar configuration change. */
110 void sigMenuBarConfigurationChange(const QUuid &uMachineID);
111 /** Notifies about status-bar configuration change. */
112 void sigStatusBarConfigurationChange(const QUuid &uMachineID);
113
114 /** Notifies about HID LEDs synchronization state change. */
115 void sigHidLedsSyncStateChange(bool fEnabled);
116
117 /** Notifies about the scale-factor change. */
118 void sigScaleFactorChange(const QUuid &uMachineID);
119
120 /** Notifies about the scaling optimization type change. */
121 void sigScalingOptimizationTypeChange(const QUuid &uMachineID);
122
123 /** Notifies about font scale factor. */
124 void sigFontScaleFactorChanged(int iFontScaleFactor);
125
126#ifdef VBOX_WS_MAC
127 /** Notifies about the HiDPI optimization type change. */
128 void sigHiDPIOptimizationTypeChange(const QUuid &uMachineID);
129
130 /** Mac OS X: Notifies about 'dock icon' appearance change. */
131 void sigDockIconAppearanceChange(bool fEnabled);
132 /** Mac OS X: Notifies about 'dock icon overlay' appearance change. */
133 void sigDockIconOverlayAppearanceChange(bool fEnabled);
134#endif /* VBOX_WS_MAC */
135
136#if defined (VBOX_WS_NIX) || defined (VBOX_WS_WIN)
137 /* Is emitted when host screen saver inhibition state changes. */
138 void sigDisableHostScreenSaverStateChange(bool fDisable);
139#endif
140
141public:
142
143 /** Global extra-data ID. */
144 static const QUuid GlobalID;
145
146 /** Static Extra-data Manager instance/constructor. */
147 static UIExtraDataManager* instance();
148 /** Static Extra-data Manager destructor. */
149 static void destroy();
150
151#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
152 /** Static show and raise API. */
153 static void openWindow(QWidget *pCenterWidget);
154#endif
155
156 /** @name Base
157 * @{ */
158 /** Returns whether Extra-data Manager cached the map with passed @a uID. */
159 bool contains(const QUuid &uID) const { return m_data.contains(uID); }
160 /** Returns read-only extra-data map for passed @a uID. */
161 const ExtraDataMap map(const QUuid &uID) const { return m_data.value(uID); }
162
163 /** Hot-load machine extra-data map. */
164 void hotloadMachineExtraDataMap(const QUuid &uID);
165
166 /** Returns extra-data value corresponding to passed @a strKey as QString.
167 * If valid @a uID is set => applies to machine extra-data, otherwise => to global one. */
168 QString extraDataString(const QString &strKey, const QUuid &uID = GlobalID);
169 /** Defines extra-data value corresponding to passed @a strKey as strValue.
170 * If valid @a uID is set => applies to machine extra-data, otherwise => to global one. */
171 void setExtraDataString(const QString &strKey, const QString &strValue, const QUuid &uID = GlobalID);
172
173 /** Returns extra-data value corresponding to passed @a strKey as QStringList.
174 * If valid @a uID is set => applies to machine extra-data, otherwise => to global one. */
175 QStringList extraDataStringList(const QString &strKey, const QUuid &uID = GlobalID);
176 /** Defines extra-data value corresponding to passed @a strKey as value.
177 * If valid @a uID is set => applies to machine extra-data, otherwise => to global one. */
178 void setExtraDataStringList(const QString &strKey, const QStringList &value, const QUuid &uID = GlobalID);
179 /** @} */
180
181 /** @name General
182 * @{ */
183 /** Returns a list of restricted dialogs. */
184 UIExtraDataMetaDefs::DialogType restrictedDialogTypes(const QUuid &uID);
185 /** Defines a list of restricted dialogs. */
186 void setRestrictedDialogTypes(UIExtraDataMetaDefs::DialogType enmTypes, const QUuid &uID);
187
188 /** Returns color theme type. */
189 UIColorThemeType colorTheme();
190 /** Defines color theme @a enmType. */
191 void setColorTheme(const UIColorThemeType &enmType);
192 /** @} */
193
194 /** @name Messaging
195 * @{ */
196 /** Returns the list of supressed messages for the Message/Popup center frameworks. */
197 QStringList suppressedMessages(const QUuid &uID = GlobalID);
198 /** Defines the @a list of supressed messages for the Message/Popup center frameworks. */
199 void setSuppressedMessages(const QStringList &list);
200
201 /** Returns the list of messages for the Message/Popup center frameworks with inverted check-box state. */
202 QStringList messagesWithInvertedOption();
203
204#ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON
205 /** Returns whether successfull notification-progresses should NOT close automatically. */
206 bool keepSuccessfullNotificationProgresses();
207 /** Defines whether successfull notification-progresses should NOT close (@a fKeep) automatically. */
208 void setKeepSuccessfullNotificationProgresses(bool fKeep);
209#endif /* VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON */
210
211 /** Returns notification-center alignment. */
212 Qt::Alignment notificationCenterAlignment();
213 /** Defines notification-progresses @a enmOrder. */
214 void setNotificationCenterAlignment(Qt::Alignment enmOrder);
215
216 /** Returns notification-center order. */
217 Qt::SortOrder notificationCenterOrder();
218 /** Defines notification-progresses @a enmOrder. */
219 void setNotificationCenterOrder(Qt::SortOrder enmOrder);
220
221 /** Returns whether BETA build label should be hidden. */
222 bool preventBetaBuildLavel();
223#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
224 /** Returns version for which user wants to prevent BETA build warning. */
225 QString preventBetaBuildWarningForVersion();
226#endif
227 /** @} */
228
229#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
230 /** @name Application Update
231 * @{ */
232 /** Returns whether Application Update functionality enabled. */
233 bool applicationUpdateEnabled();
234
235 /** Returns Application Update data. */
236 QString applicationUpdateData();
237 /** Defines Application Update data as @a strValue. */
238 void setApplicationUpdateData(const QString &strValue);
239
240 /** Returns Application Update check counter. */
241 qulonglong applicationUpdateCheckCounter();
242 /** Increments Application Update check counter. */
243 void incrementApplicationUpdateCheckCounter();
244 /** @} */
245#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
246
247 /** @name Progress
248 * @{ */
249 /** Returns whether legacy progress handling method is requested. */
250 bool legacyProgressHandlingRequested();
251 /** @} */
252
253 /** @name Settings
254 * @{ */
255 /** Returns whether GUI @a enmFeature is enabled. */
256 bool guiFeatureEnabled(GUIFeatureType enmFeature);
257
258 /** Returns restricted global settings pages. */
259 QList<GlobalSettingsPageType> restrictedGlobalSettingsPages();
260 /** Returns restricted machine settings pages. */
261 QList<MachineSettingsPageType> restrictedMachineSettingsPages(const QUuid &uID);
262 /** @} */
263
264 /** @name Settings: Language
265 * @{ */
266 /** Returns the GUI language ID. */
267 QString languageId();
268 /** Defines the GUI @a strLanguageId. */
269 void setLanguageId(const QString &strLanguageId);
270 /** @} */
271
272 /** @name Settings: Display
273 * @{ */
274 /** Returns maximum guest-screen resolution policy. */
275 MaximumGuestScreenSizePolicy maxGuestResolutionPolicy();
276 /** Defines maximum guest-screen resolution @a enmPolicy or @a resolution itself for Fixed policy. */
277 void setMaxGuestScreenResolution(MaximumGuestScreenSizePolicy enmPolicy, const QSize resolution = QSize());
278 /** Returns maximum guest-screen resolution for fixed policy. */
279 QSize maxGuestResolutionForPolicyFixed();
280 /** Defines maximum guest-screen @a resolution for fixed policy. */
281 void setMaxGuestResolutionForPolicyFixed(const QSize &resolution);
282
283 /** Returns whether hovered machine-window should be activated. */
284 bool activateHoveredMachineWindow();
285 /** Defines whether hovered machine-window should be @a fActivated. */
286 void setActivateHoveredMachineWindow(bool fActivate);
287 /* Return whether host screen saver is disabled when a vm is running. */
288 bool disableHostScreenSaver();
289 /* Sets whether host screen saver is disabled when a vm is running. */
290 void setDisableHostScreenSaver(bool fActivate);
291 /* Set global font scale factor as percentage. 100% is for no scaling. */
292 void setFontScaleFactor(int iFontScaleFactor);
293 int fontScaleFactor();
294 /** @} */
295
296 /** @name Settings: Keyboard
297 * @{ */
298 /** Returns the Runtime UI host-key combination. */
299 QString hostKeyCombination();
300 /** Defines the Runtime UI host-key combination. */
301 void setHostKeyCombination(const QString &strHostCombo);
302
303 /** Returns shortcut overrides for shortcut-pool with @a strPoolExtraDataID. */
304 QStringList shortcutOverrides(const QString &strPoolExtraDataID);
305
306 /** Returns whether the Runtime UI auto-capture is enabled. */
307 bool autoCaptureEnabled();
308 /** Defines whether the Runtime UI auto-capture is @a fEnabled. */
309 void setAutoCaptureEnabled(bool fEnabled);
310
311 /** Returns the Runtime UI remapped scan codes. */
312 QString remappedScanCodes();
313 /** @} */
314
315 /** @name Settings: Proxy
316 * @{ */
317 /** Returns VBox proxy settings. */
318 QString proxySettings();
319 /** Defines VBox proxy @a strSettings. */
320 void setProxySettings(const QString &strSettings);
321 /** @} */
322
323 /** @name Settings: Storage
324 * @{ */
325 /** Returns recent folder for hard-drives. */
326 QString recentFolderForHardDrives();
327 /** Returns recent folder for optical-disks. */
328 QString recentFolderForOpticalDisks();
329 /** Returns recent folder for floppy-disks. */
330 QString recentFolderForFloppyDisks();
331 /** Defines recent folder for hard-drives as @a strValue. */
332 void setRecentFolderForHardDrives(const QString &strValue);
333 /** Defines recent folder for optical-disk as @a strValue. */
334 void setRecentFolderForOpticalDisks(const QString &strValue);
335 /** Defines recent folder for floppy-disk as @a strValue. */
336 void setRecentFolderForFloppyDisks(const QString &strValue);
337
338 /** Returns the list of recently used hard-drives. */
339 QStringList recentListOfHardDrives();
340 /** Returns the list of recently used optical-disk. */
341 QStringList recentListOfOpticalDisks();
342 /** Returns the list of recently used floppy-disk. */
343 QStringList recentListOfFloppyDisks();
344 /** Defines the list of recently used hard-drives as @a value. */
345 void setRecentListOfHardDrives(const QStringList &value);
346 /** Defines the list of recently used optical-disks as @a value. */
347 void setRecentListOfOpticalDisks(const QStringList &value);
348 /** Defines the list of recently used floppy-disks as @a value. */
349 void setRecentListOfFloppyDisks(const QStringList &value);
350 /** @} */
351
352 /** @name Settings: Network
353 * @{ */
354 /** Returns the list of restricted network attachment types. */
355 UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork restrictedNetworkAttachmentTypes();
356 /** @} */
357
358 /** @name VISO Creator
359 * @{ */
360 /** Returns recent folder for VISO creation content. */
361 QString visoCreatorRecentFolder();
362 /** Defines recent folder for VISO creation content as @a strValue. */
363 void setVISOCreatorRecentFolder(const QString &strValue);
364 /** Returns viso creator geometry using @a pWidget as the hint. */
365 QRect visoCreatorDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
366 /** Set viso creator geometry. */
367 void setVisoCreatorDialogGeometry(const QRect &geometry, bool fMaximized);
368 /** Returns whether viso creator dialog should be maximized. */
369 bool visoCreatorDialogShouldBeMaximized();
370 /** @} */
371
372 /** @name VirtualBox Manager
373 * @{ */
374 /** Returns selector-window geometry using @a pWidget as the hint. */
375 QRect selectorWindowGeometry(QWidget *pWidget);
376 /** Returns whether selector-window should be maximized. */
377 bool selectorWindowShouldBeMaximized();
378 /** Defines selector-window @a geometry and @a fMaximized state. */
379 void setSelectorWindowGeometry(const QRect &geometry, bool fMaximized);
380
381 /** Returns selector-window splitter hints. */
382 QList<int> selectorWindowSplitterHints();
383 /** Defines selector-window splitter @a hints. */
384 void setSelectorWindowSplitterHints(const QList<int> &hints);
385
386 /** Returns whether selector-window tool-bar visible. */
387 bool selectorWindowToolBarVisible();
388 /** Defines whether selector-window tool-bar @a fVisible. */
389 void setSelectorWindowToolBarVisible(bool fVisible);
390
391 /** Returns whether selector-window tool-bar text visible. */
392 bool selectorWindowToolBarTextVisible();
393 /** Defines whether selector-window tool-bar text @a fVisible. */
394 void setSelectorWindowToolBarTextVisible(bool fVisible);
395
396 /** Returns last selected tool set of VirtualBox Manager. */
397 QList<UIToolType> toolsPaneLastItemsChosen();
398 /** Defines last selected tool @a set of VirtualBox Manager. */
399 void setToolsPaneLastItemsChosen(const QList<UIToolType> &set);
400
401 /** Returns whether selector-window status-bar visible. */
402 bool selectorWindowStatusBarVisible();
403 /** Defines whether selector-window status-bar @a fVisible. */
404 void setSelectorWindowStatusBarVisible(bool fVisible);
405
406 /** Returns all the existing selector-window chooser-pane' group definition keys. */
407 QStringList knownMachineGroupDefinitionKeys();
408 /** Returns selector-window chooser-pane' group definitions for passed @a strGroupID. */
409 QStringList machineGroupDefinitions(const QString &strGroupID);
410 /** Defines selector-window chooser-pane' group @a definitions for passed @a strGroupID. */
411 void setMachineGroupDefinitions(const QString &strGroupID, const QStringList &definitions);
412
413 /** Returns last-item ID of the item chosen in selector-window chooser-pane. */
414 QString selectorWindowLastItemChosen();
415 /** Defines @a lastItemID of the item chosen in selector-window chooser-pane. */
416 void setSelectorWindowLastItemChosen(const QString &strItemID);
417
418 /** Returns selector-window details-pane' elements. */
419 QMap<DetailsElementType, bool> selectorWindowDetailsElements();
420 /** Defines selector-window details-pane' @a elements. */
421 void setSelectorWindowDetailsElements(const QMap<DetailsElementType, bool> &elements);
422
423 /** Returns selector-window details-pane' preview update interval. */
424 PreviewUpdateIntervalType selectorWindowPreviewUpdateInterval();
425 /** Defines selector-window details-pane' preview update @a interval. */
426 void setSelectorWindowPreviewUpdateInterval(PreviewUpdateIntervalType interval);
427
428 /** Returns VirtualBox Manager / Details pane options for certain @a enmElementType. */
429 QStringList vboxManagerDetailsPaneElementOptions(DetailsElementType enmElementType);
430 /** Defines VirtualBox Manager / Details pane @a options for certain @a enmElementType. */
431 void setVBoxManagerDetailsPaneElementOptions(DetailsElementType enmElementType, const QStringList &options);
432 /** @} */
433
434 /** @name Snapshot Manager
435 * @{ */
436 /** Returns whether Snapshot Manager details expanded. */
437 bool snapshotManagerDetailsExpanded();
438 /** Defines whether Snapshot Manager details @a fExpanded. */
439 void setSnapshotManagerDetailsExpanded(bool fExpanded);
440 /** @} */
441
442 /** @name Virtual Media Manager
443 * @{ */
444 /** Returns whether Virtual Media Manager details expanded. */
445 bool virtualMediaManagerDetailsExpanded();
446 /** Defines whether Virtual Media Manager details @a fExpanded. */
447 void setVirtualMediaManagerDetailsExpanded(bool fExpanded);
448 /** Returns whether Virtual Media Manager search widget expanded. */
449 bool virtualMediaManagerSearchWidgetExpanded();
450 /** Defines whether Virtual Media Manager search widget @a fExpanded. */
451 void setVirtualMediaManagerSearchWidgetExpanded(bool fExpanded);
452 /** @} */
453
454 /** @name Host Network Manager
455 * @{ */
456 /** Returns whether Host Network Manager details expanded. */
457 bool hostNetworkManagerDetailsExpanded();
458 /** Defines whether Host Network Manager details @a fExpanded. */
459 void setHostNetworkManagerDetailsExpanded(bool fExpanded);
460 /** @} */
461
462 /** @name Cloud Profile Manager
463 * @{ */
464 /** Returns Cloud Profile Manager restrictions. */
465 QStringList cloudProfileManagerRestrictions();
466 /** Defines Cloud Profile Manager @a restrictions. */
467 void setCloudProfileManagerRestrictions(const QStringList &restrictions);
468
469 /** Returns whether Cloud Profile Manager details expanded. */
470 bool cloudProfileManagerDetailsExpanded();
471 /** Defines whether Cloud Profile Manager details @a fExpanded. */
472 void setCloudProfileManagerDetailsExpanded(bool fExpanded);
473 /** @} */
474
475 /** @name Cloud Console Manager
476 * @{ */
477 /** Returns registered Cloud Console Manager applications. */
478 QStringList cloudConsoleManagerApplications();
479 /** Returns registered Cloud Console Manager profiles for application with @a strId. */
480 QStringList cloudConsoleManagerProfiles(const QString &strId);
481
482 /** Returns definition for Cloud Console Manager application with @a strId. */
483 QString cloudConsoleManagerApplication(const QString &strId);
484 /** Defines @a strDefinition for Cloud Console Manager application with @a strId. */
485 void setCloudConsoleManagerApplication(const QString &strId, const QString &strDefinition);
486
487 /** Returns definition for Cloud Console Manager profile with @a strProfileId for application with @a strApplicationId. */
488 QString cloudConsoleManagerProfile(const QString &strApplicationId, const QString &strProfileId);
489 /** Returns @a strDefinition for Cloud Console Manager profile with @a strProfileId for application with @a strApplicationId. */
490 void setCloudConsoleManagerProfile(const QString &strApplicationId, const QString &strProfileId, const QString &strDefinition);
491
492 /** Returns Cloud Console Manager restrictions. */
493 QStringList cloudConsoleManagerRestrictions();
494 /** Defines Cloud Console Manager @a restrictions. */
495 void setCloudConsoleManagerRestrictions(const QStringList &restrictions);
496
497 /** Returns whether Cloud Console Manager details expanded. */
498 bool cloudConsoleManagerDetailsExpanded();
499 /** Defines whether Cloud Console Manager details @a fExpanded. */
500 void setCloudConsoleManagerDetailsExpanded(bool fExpanded);
501 /** @} */
502
503 /** @name Cloud Console
504 * @{ */
505 /** Returns Cloud Console public key path. */
506 QString cloudConsolePublicKeyPath();
507 /** Defines Cloud Console public key @a strPath. */
508 void setCloudConsolePublicKeyPath(const QString &strPath);
509 /** @} */
510
511 /** @name Wizards
512 * @{ */
513 /** Returns mode for wizard of passed @a type. */
514 WizardMode modeForWizardType(WizardType type);
515 /** Defines @a mode for wizard of passed @a type. */
516 void setModeForWizardType(WizardType type, WizardMode mode);
517 /** @} */
518
519 /** @name Virtual Machine
520 * @{ */
521 /** Returns whether machine should be shown in VirtualBox Manager Chooser-pane. */
522 bool showMachineInVirtualBoxManagerChooser(const QUuid &uID);
523 /** Returns whether machine should be shown in VirtualBox Manager Details-pane. */
524 bool showMachineInVirtualBoxManagerDetails(const QUuid &uID);
525
526 /** Returns whether machine reconfiguration enabled. */
527 bool machineReconfigurationEnabled(const QUuid &uID);
528 /** Returns whether machine snapshot operations enabled. */
529 bool machineSnapshotOperationsEnabled(const QUuid &uID);
530
531 /** Except Mac OS X: Returns redefined machine-window icon names. */
532 QStringList machineWindowIconNames(const QUuid &uID);
533#ifndef VBOX_WS_MAC
534 /** Except Mac OS X: Returns redefined machine-window name postfix. */
535 QString machineWindowNamePostfix(const QUuid &uID);
536#endif
537
538 /** Returns geometry for machine-window with @a uScreenIndex in @a visualStateType. */
539 QRect machineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QUuid &uID);
540 /** Returns whether machine-window with @a uScreenIndex in @a visualStateType should be maximized. */
541 bool machineWindowShouldBeMaximized(UIVisualStateType visualStateType, ulong uScreenIndex, const QUuid &uID);
542 /** Defines @a geometry and @a fMaximized state for machine-window with @a uScreenIndex in @a visualStateType. */
543 void setMachineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QRect &geometry, bool fMaximized, const QUuid &uID);
544
545#ifndef VBOX_WS_MAC
546 /** Returns whether Runtime UI menu-bar is enabled. */
547 bool menuBarEnabled(const QUuid &uID);
548 /** Defines whether Runtime UI menu-bar is @a fEnabled. */
549 void setMenuBarEnabled(bool fEnabled, const QUuid &uID);
550#endif /* !VBOX_WS_MAC */
551
552 /** Returns whether Runtime UI menu-bar context-menu is enabled. */
553 bool menuBarContextMenuEnabled(const QUuid &uID);
554 /** Defines whether Runtime UI menu-bar context-menu is @a fEnabled. */
555 void setMenuBarContextMenuEnabled(bool fEnabled, const QUuid &uID);
556
557 /** Returns restricted Runtime UI menu types. */
558 UIExtraDataMetaDefs::MenuType restrictedRuntimeMenuTypes(const QUuid &uID);
559 /** Defines restricted Runtime UI menu types. */
560 void setRestrictedRuntimeMenuTypes(UIExtraDataMetaDefs::MenuType types, const QUuid &uID);
561
562 /** Returns restricted Runtime UI action types for Application menu. */
563 UIExtraDataMetaDefs::MenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QUuid &uID);
564 /** Defines restricted Runtime UI action types for Application menu. */
565 void setRestrictedRuntimeMenuApplicationActionTypes(UIExtraDataMetaDefs::MenuApplicationActionType types, const QUuid &uID);
566
567 /** Returns restricted Runtime UI action types for Machine menu. */
568 UIExtraDataMetaDefs::RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QUuid &uID);
569 /** Defines restricted Runtime UI action types for Machine menu. */
570 void setRestrictedRuntimeMenuMachineActionTypes(UIExtraDataMetaDefs::RuntimeMenuMachineActionType types, const QUuid &uID);
571
572 /** Returns restricted Runtime UI action types for View menu. */
573 UIExtraDataMetaDefs::RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QUuid &uID);
574 /** Defines restricted Runtime UI action types for View menu. */
575 void setRestrictedRuntimeMenuViewActionTypes(UIExtraDataMetaDefs::RuntimeMenuViewActionType types, const QUuid &uID);
576
577 /** Returns restricted Runtime UI action types for Input menu. */
578 UIExtraDataMetaDefs::RuntimeMenuInputActionType restrictedRuntimeMenuInputActionTypes(const QUuid &uID);
579 /** Defines restricted Runtime UI action types for Input menu. */
580 void setRestrictedRuntimeMenuInputActionTypes(UIExtraDataMetaDefs::RuntimeMenuInputActionType types, const QUuid &uID);
581
582 /** Returns restricted Runtime UI action types for Devices menu. */
583 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QUuid &uID);
584 /** Defines restricted Runtime UI action types for Devices menu. */
585 void setRestrictedRuntimeMenuDevicesActionTypes(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType types, const QUuid &uID);
586
587#ifdef VBOX_WITH_DEBUGGER_GUI
588 /** Returns restricted Runtime UI action types for Debugger menu. */
589 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QUuid &uID);
590 /** Defines restricted Runtime UI action types for Debugger menu. */
591 void setRestrictedRuntimeMenuDebuggerActionTypes(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType types, const QUuid &uID);
592#endif /* VBOX_WITH_DEBUGGER_GUI */
593
594#ifdef VBOX_WS_MAC
595 /** Mac OS X: Returns restricted Runtime UI action types for Window menu. */
596 UIExtraDataMetaDefs::MenuWindowActionType restrictedRuntimeMenuWindowActionTypes(const QUuid &uID);
597 /** Mac OS X: Defines restricted Runtime UI action types for Window menu. */
598 void setRestrictedRuntimeMenuWindowActionTypes(UIExtraDataMetaDefs::MenuWindowActionType types, const QUuid &uID);
599#endif /* VBOX_WS_MAC */
600
601 /** Returns restricted Runtime UI action types for Help menu. */
602 UIExtraDataMetaDefs::MenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QUuid &uID);
603 /** Defines restricted Runtime UI action types for Help menu. */
604 void setRestrictedRuntimeMenuHelpActionTypes(UIExtraDataMetaDefs::MenuHelpActionType types, const QUuid &uID);
605
606 /** Returns restricted Runtime UI visual-states. */
607 UIVisualStateType restrictedVisualStates(const QUuid &uID);
608
609 /** Returns requested Runtime UI visual-state. */
610 UIVisualStateType requestedVisualState(const QUuid &uID);
611 /** Defines requested Runtime UI visual-state as @a visualState. */
612 void setRequestedVisualState(UIVisualStateType visualState, const QUuid &uID);
613
614#ifdef VBOX_WS_NIX
615 /** Returns whether legacy full-screen mode is requested. */
616 bool legacyFullscreenModeRequested();
617
618 /** Returns whether internal machine-window name should be unique. */
619 bool distinguishMachineWindowGroups(const QUuid &uID);
620 /** Defines whether internal machine-window name should be unique. */
621 void setDistinguishMachineWindowGroups(const QUuid &uID, bool fEnabled);
622#endif /* VBOX_WS_NIX */
623
624 /** Returns whether guest-screen auto-resize according machine-window size is enabled. */
625 bool guestScreenAutoResizeEnabled(const QUuid &uID);
626 /** Defines whether guest-screen auto-resize according machine-window size is @a fEnabled. */
627 void setGuestScreenAutoResizeEnabled(bool fEnabled, const QUuid &uID);
628
629 /** Returns last guest-screen visibility status for screen with @a uScreenIndex. */
630 bool lastGuestScreenVisibilityStatus(ulong uScreenIndex, const QUuid &uID);
631 /** Defines whether last guest-screen visibility status was @a fEnabled for screen with @a uScreenIndex. */
632 void setLastGuestScreenVisibilityStatus(ulong uScreenIndex, bool fEnabled, const QUuid &uID);
633
634 /** Returns last guest-screen size-hint for screen with @a uScreenIndex. */
635 QSize lastGuestScreenSizeHint(ulong uScreenIndex, const QUuid &uID);
636 /** Defines last guest-screen @a sizeHint for screen with @a uScreenIndex. */
637 void setLastGuestScreenSizeHint(ulong uScreenIndex, const QSize &sizeHint, const QUuid &uID);
638
639 /** Returns host-screen index corresponding to passed guest-screen @a iGuestScreenIndex. */
640 int hostScreenForPassedGuestScreen(int iGuestScreenIndex, const QUuid &uID);
641 /** Defines @a iHostScreenIndex corresponding to passed guest-screen @a iGuestScreenIndex. */
642 void setHostScreenForPassedGuestScreen(int iGuestScreenIndex, int iHostScreenIndex, const QUuid &uID);
643
644 /** Returns whether automatic mounting/unmounting of guest-screens enabled. */
645 bool autoMountGuestScreensEnabled(const QUuid &uID);
646
647#ifndef VBOX_WS_MAC
648 /** Returns whether mini-toolbar is enabled for full and seamless screens. */
649 bool miniToolbarEnabled(const QUuid &uID);
650 /** Defines whether mini-toolbar is @a fEnabled for full and seamless screens. */
651 void setMiniToolbarEnabled(bool fEnabled, const QUuid &uID);
652
653 /** Returns whether mini-toolbar should auto-hide itself. */
654 bool autoHideMiniToolbar(const QUuid &uID);
655 /** Defines whether mini-toolbar should @a fAutoHide itself. */
656 void setAutoHideMiniToolbar(bool fAutoHide, const QUuid &uID);
657
658 /** Returns mini-toolbar alignment. */
659 Qt::AlignmentFlag miniToolbarAlignment(const QUuid &uID);
660 /** Returns mini-toolbar @a alignment. */
661 void setMiniToolbarAlignment(Qt::AlignmentFlag alignment, const QUuid &uID);
662#endif /* VBOX_WS_MAC */
663
664 /** Returns whether Runtime UI status-bar is enabled. */
665 bool statusBarEnabled(const QUuid &uID);
666 /** Defines whether Runtime UI status-bar is @a fEnabled. */
667 void setStatusBarEnabled(bool fEnabled, const QUuid &uID);
668
669 /** Returns whether Runtime UI status-bar context-menu is enabled. */
670 bool statusBarContextMenuEnabled(const QUuid &uID);
671 /** Defines whether Runtime UI status-bar context-menu is @a fEnabled. */
672 void setStatusBarContextMenuEnabled(bool fEnabled, const QUuid &uID);
673
674 /** Returns restricted Runtime UI status-bar indicator list. */
675 QList<IndicatorType> restrictedStatusBarIndicators(const QUuid &uID);
676 /** Defines restricted Runtime UI status-bar indicator @a list. */
677 void setRestrictedStatusBarIndicators(const QList<IndicatorType> &list, const QUuid &uID);
678
679 /** Returns Runtime UI status-bar indicator order list. */
680 QList<IndicatorType> statusBarIndicatorOrder(const QUuid &uID);
681 /** Defines Runtime UI status-bar indicator order @a list. */
682 void setStatusBarIndicatorOrder(const QList<IndicatorType> &list, const QUuid &uID);
683
684#ifdef VBOX_WS_MAC
685 /** Mac OS X: Returns whether Dock icon should be updated at runtime. */
686 bool realtimeDockIconUpdateEnabled(const QUuid &uID);
687 /** Mac OS X: Defines whether Dock icon update should be fEnabled at runtime. */
688 void setRealtimeDockIconUpdateEnabled(bool fEnabled, const QUuid &uID);
689
690 /** Mac OS X: Returns guest-screen which Dock icon should reflect at runtime. */
691 int realtimeDockIconUpdateMonitor(const QUuid &uID);
692 /** Mac OS X: Defines guest-screen @a iIndex which Dock icon should reflect at runtime. */
693 void setRealtimeDockIconUpdateMonitor(int iIndex, const QUuid &uID);
694
695 /** Mac OS X: Returns whether Dock icon overlay is disabled. */
696 bool dockIconDisableOverlay(const QUuid &uID);
697 /** Mac OS X: Defines whether Dock icon overlay is @a fDisabled. */
698 void setDockIconDisableOverlay(bool fDisabled, const QUuid &uID);
699#endif /* VBOX_WS_MAC */
700
701 /** Returns whether machine should pass CAD to guest. */
702 bool passCADtoGuest(const QUuid &uID);
703
704 /** Returns the mouse-capture policy. */
705 MouseCapturePolicy mouseCapturePolicy(const QUuid &uID);
706
707 /** Returns redefined guru-meditation handler type. */
708 GuruMeditationHandlerType guruMeditationHandlerType(const QUuid &uID);
709
710 /** Returns whether machine should perform HID LEDs synchronization. */
711 bool hidLedsSyncState(const QUuid &uID);
712
713 /** Returns the scale-factor. */
714 double scaleFactor(const QUuid &uID, const int uScreenIndex);
715 QList<double> scaleFactors(const QUuid &uID);
716 /** Saves the @a dScaleFactor for the monitor with @a uScreenIndex. If the existing scale factor
717 * list (from extra data) does not have scale factors for the screens with ids in [0, uScreenIndex)
718 * the this function appends a default scale factor for said screens.*/
719 void setScaleFactor(double dScaleFactor, const QUuid &uID, const int uScreenIndex);
720 /** Replaces the scale factor list of the machine with @a uID with @a scaleFactors. */
721 void setScaleFactors(const QList<double> &scaleFactors, const QUuid &uID);
722
723 /** Returns the scaling optimization type. */
724 ScalingOptimizationType scalingOptimizationType(const QUuid &uID);
725 /** @} */
726
727 /** @name Virtual Machine: Session Information dialog
728 * @{ */
729 /** Returns session information dialog geometry using @a pWidget and @a pParentWidget as hints. */
730 QRect sessionInformationDialogGeometry(QWidget *pWidget, QWidget *pParentWidget);
731 /** Returns whether information-window should be maximized or not. */
732 bool sessionInformationDialogShouldBeMaximized();
733 /** Defines information-window @a geometry and @a fMaximized state. */
734 void setSessionInformationDialogGeometry(const QRect &geometry, bool fMaximized);
735 /** @} */
736
737 /** @name Guest Control related dialogs
738 * @{ */
739 void setGuestControlProcessControlSplitterHints(const QList<int> &hints);
740 QList<int> guestControlProcessControlSplitterHints();
741 QRect fileManagerDialogGeometry(QWidget *pWidget, QWidget *pParentWidget);
742 bool fileManagerDialogShouldBeMaximized();
743 void setFileManagerDialogGeometry(const QRect &geometry, bool fMaximized);
744 QRect guestProcessControlDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
745 bool guestProcessControlDialogShouldBeMaximized();
746 void setGuestProcessControlDialogGeometry(const QRect &geometry, bool fMaximized);
747 void setFileManagerVisiblePanels(const QStringList &panelNameList);
748 QStringList fileManagerVisiblePanels();
749 /** @} */
750
751 /** @name Soft Keyboard
752 * @{ */
753 QRect softKeyboardDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
754 void setSoftKeyboardDialogGeometry(const QRect &geometry, bool fMaximized);
755 bool softKeyboardDialogShouldBeMaximized();
756 void setSoftKeyboardOptions(bool fShowNumPad, bool fHideOSMenuKeys, bool fMultimediaKeys);
757 void softKeyboardOptions(bool &fOutShowNumPad, bool &fOutHideOSMenuKeys, bool &fOutHideMultimediaKeys);
758 void setSoftKeyboardColorTheme(const QStringList &colorStringList);
759 QStringList softKeyboardColorTheme();
760 void setSoftKeyboardSelectedColorTheme(const QString &strColorThemeName);
761 QString softKeyboardSelectedColorTheme();
762 void setSoftKeyboardSelectedLayout(const QUuid &uLayoutUid);
763 QUuid softKeyboardSelectedLayout();
764 /** @} */
765
766 /** @name File Manager options
767 * @{ */
768 void setFileManagerOptions(bool fListDirectoriesFirst,
769 bool fShowDeleteConfirmation,
770 bool fshowHumanReadableSizes,
771 bool fShowHiddenObjects);
772 bool fileManagerListDirectoriesFirst();
773 bool fileManagerShowDeleteConfirmation();
774 bool fileManagerShowHumanReadableSizes();
775 bool fileManagerShowHiddenObjects();
776 /** @} */
777
778 /** @name Virtual Machine: Close dialog
779 * @{ */
780 /** Returns default machine close action. */
781 MachineCloseAction defaultMachineCloseAction(const QUuid &uID);
782 /** Returns restricted machine close actions. */
783 MachineCloseAction restrictedMachineCloseActions(const QUuid &uID);
784
785 /** Returns last machine close action. */
786 MachineCloseAction lastMachineCloseAction(const QUuid &uID);
787 /** Defines last @a machineCloseAction. */
788 void setLastMachineCloseAction(MachineCloseAction machineCloseAction, const QUuid &uID);
789
790 /** Returns machine close hook script name as simple string. */
791 QString machineCloseHookScript(const QUuid &uID);
792
793 /** Returns whether machine should discard state on power off. */
794 bool discardStateOnPowerOff(const QUuid &uID);
795 /** @} */
796
797#ifdef VBOX_WITH_DEBUGGER_GUI
798 /** @name Virtual Machine: Debug UI
799 * @{ */
800 /** Returns debug flag value for passed @a strDebugFlagKey. */
801 QString debugFlagValue(const QString &strDebugFlagKey);
802 /** @} */
803#endif /* VBOX_WITH_DEBUGGER_GUI */
804
805#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
806 /** @name VirtualBox: Extra-data Manager window
807 * @{ */
808 /** Returns Extra-data Manager geometry using @a pWidget and @a pParentWidget as hint. */
809 QRect extraDataManagerGeometry(QWidget *pWidget, QWidget *pParentWidget);
810 /** Returns whether Extra-data Manager should be maximized or not. */
811 bool extraDataManagerShouldBeMaximized();
812 /** Defines Extra-data Manager @a geometry and @a fMaximized state. */
813 void setExtraDataManagerGeometry(const QRect &geometry, bool fMaximized);
814
815 /** Returns Extra-data Manager splitter hints using @a pWidget as hint. */
816 QList<int> extraDataManagerSplitterHints(QWidget *pWidget);
817 /** Defines Extra-data Manager splitter @a hints. */
818 void setExtraDataManagerSplitterHints(const QList<int> &hints);
819 /** @} */
820#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
821
822 /** @name Virtual Machine: Log Viewer dialog
823 * @{ */
824 /** Returns log-window geometry using @a pWidget, @a pParentWidget and @a defaultGeometry as hints. */
825 QRect logWindowGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
826 /** Returns whether log-window should be maximized or not. */
827 bool logWindowShouldBeMaximized();
828 /** Defines log-window @a geometry and @a fMaximized state. */
829 void setLogWindowGeometry(const QRect &geometry, bool fMaximized);
830 /** @} */
831
832 /** @name Virtual Machine: Log Viewer widget options
833 * @{ */
834 void setLogViweverOptions(const QFont &font, bool wrapLines, bool showLineNumbers);
835 /** Returns log-viewer line wrapping flag. */
836 bool logViewerWrapLines();
837 /** Returns log-viewer show line numbers flag. */
838 bool logViewerShowLineNumbers();
839 /** Tries to find system font by searching by family and style strings within the font database. */
840 QFont logViewerFont();
841 void setLogViewerVisiblePanels(const QStringList &panelNameList);
842 QStringList logViewerVisiblePanels();
843 /** @} */
844
845 /** @name Help Browser
846 * @{ */
847 void setHelpBrowserLastUrlList(const QStringList &urlList);
848 QStringList helpBrowserLastUrlList();
849 void setHelpBrowserZoomPercentage(int iZoomPercentage);
850 int helpBrowserZoomPercentage();
851 QRect helpBrowserDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
852 void setHelpBrowserDialogGeometry(const QRect &geometry, bool fMaximized);
853 bool helpBrowserDialogShouldBeMaximized();
854 void setHelpBrowserBookmarks(const QStringList &bookmarks);
855 QStringList helpBrowserBookmarks();
856 /** @} */
857
858 /** @name Manager UI: VM Activity Overview
859 * @{ */
860 void setVMActivityOverviewHiddenColumnList(const QStringList &hiddenColumnList);
861 QStringList VMActivityOverviewHiddenColumnList();
862 bool VMActivityOverviewShowAllMachines();
863 void setVMActivityOverviewShowAllMachines(bool fShow);
864 /** @} */
865
866 /** @name Medium Selector
867 * @{ */
868 QRect mediumSelectorDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
869 void setMediumSelectorDialogGeometry(const QRect &geometry, bool fMaximized);
870 bool mediumSelectorDialogShouldBeMaximized();
871 /** @} */
872
873private slots:
874
875 /** Handles 'extra-data change' event: */
876 void sltExtraDataChange(const QUuid &uMachineID, const QString &strKey, const QString &strValue);
877
878private:
879
880 /** Prepare Extra-data Manager. */
881 void prepare();
882 /** Prepare global extra-data map. */
883 void prepareGlobalExtraDataMap();
884 /** Prepare extra-data event-handler. */
885 void prepareExtraDataEventHandler();
886#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
887 // /** Prepare window. */
888 // void prepareWindow();
889
890 /** Cleanup window. */
891 void cleanupWindow();
892#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
893 /** Cleanup extra-data event-handler. */
894 void cleanupExtraDataEventHandler();
895 // /** Cleanup extra-data map. */
896 // void cleanupExtraDataMap();
897 /** Cleanup Extra-data Manager. */
898 void cleanup();
899
900#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
901 /** Open window. */
902 void open(QWidget *pCenterWidget);
903#endif
904
905 /** Retrieves an extra-data key from both machine and global sources.
906 *
907 * If @a uID isn't #GlobalID, this will first check the extra-data associated
908 * with the machine given by @a uID then fallback on the global extra-data.
909 *
910 * @returns String value if found, null string if not.
911 * @param strKey The extra-data key to get.
912 * @param uID Machine UUID or #GlobalID.
913 * @param strValue Where to return the value when found. */
914 QString extraDataStringUnion(const QString &strKey, const QUuid &uID);
915 /** Determines whether feature corresponding to passed @a strKey is allowed.
916 * If valid @a uID is set => applies to machine and global extra-data,
917 * otherwise => only to global one. */
918 bool isFeatureAllowed(const QString &strKey, const QUuid &uID = GlobalID);
919 /** Determines whether feature corresponding to passed @a strKey is restricted.
920 * If valid @a uID is set => applies to machine and global extra-data,
921 * otherwise => only to global one. */
922 bool isFeatureRestricted(const QString &strKey, const QUuid &uID = GlobalID);
923
924 /** Translates bool flag into QString value. */
925 QString toFeatureState(bool fState);
926 /** Translates bool flag into 'allowed' value. */
927 QString toFeatureAllowed(bool fAllowed);
928 /** Translates bool flag into 'restricted' value. */
929 QString toFeatureRestricted(bool fRestricted);
930
931 /** Defines saved dialog geometry according to specified attributes.
932 * @param strKey Brings geometry extra-data key of particular dialog.
933 * @param geometry Brings the dialog geometry to save.
934 * @param fMaximized Brings whether saved dialog geometry should be marked as maximized. */
935 void setDialogGeometry(const QString &strKey, const QRect &geometry, bool fMaximized);
936 /** Returns saved dialog geometry according to specified attributes.
937 * @param strKey Brings geometry extra-data key of particular dialog.
938 * @param pWidget Brings the widget to limit geometry bounds according to.
939 * @param pParentWidget Brings the widget to center geometry rectangle according to.
940 * @param defaultGeometry Brings the default geometry which should be used to
941 * calculate resulting geometry if saved was not found. */
942 QRect dialogGeometry(const QString &strKey, QWidget *pWidget, QWidget *pParentWidget = 0, const QRect &defaultGeometry = QRect());
943 /** Returns true if the dialog should be maximized.
944 * @param strKey Brings geometry extra-data key of particular dialog. */
945 bool dialogShouldBeMaximized(const QString &strKey);
946
947 /** Returns string consisting of @a strBase appended with @a uScreenIndex for the *non-primary* screen-index.
948 * If @a fSameRuleForPrimary is 'true' same rule will be used for *primary* screen-index. Used for storing per-screen extra-data. */
949 static QString extraDataKeyPerScreen(const QString &strBase, ulong uScreenIndex, bool fSameRuleForPrimary = false);
950
951 /** Holds the singleton instance. */
952 static UIExtraDataManager *s_pInstance;
953
954 /** Holds extra-data event-handler instance. */
955 UIExtraDataEventHandler *m_pHandler;
956
957 /** Holds extra-data map instance. */
958 MapOfExtraDataMaps m_data;
959
960#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
961 /** Holds Extra-data Manager window instance. */
962 QPointer<UIExtraDataManagerWindow> m_pWindow;
963#endif
964};
965
966/** Singleton Extra-data Manager 'official' name. */
967#define gEDataManager UIExtraDataManager::instance()
968
969#endif /* !FEQT_INCLUDED_SRC_extradata_UIExtraDataManager_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