VirtualBox

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

Last change on this file since 102493 was 101447, checked in by vboxsync, 12 months ago

FE/Qt: bugref:10513: UIAdvancedSettingsDialog: Connecting experience mode check-box state to extra-data read/write.

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