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
RevLine 
[55401]1/* $Id: UIExtraDataManager.h 101447 2023-10-15 10:33:58Z vboxsync $ */
[30677]2/** @file
[51035]3 * VBox Qt GUI - UIExtraDataManager class declaration.
[30677]4 */
5
6/*
[98103]7 * Copyright (C) 2010-2023 Oracle and/or its affiliates.
[30677]8 *
[96407]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
[30677]26 */
27
[76581]28#ifndef FEQT_INCLUDED_SRC_extradata_UIExtraDataManager_h
29#define FEQT_INCLUDED_SRC_extradata_UIExtraDataManager_h
[76532]30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
[30677]33
[51035]34/* Qt includes: */
[71437]35#include <QMap>
[51035]36#include <QObject>
[81358]37#include <QRect>
[71437]38#include <QSize>
[74878]39#include <QUuid>
[60599]40#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
[51931]41# include <QPointer>
[71437]42#endif
[51035]43
[51054]44/* GUI includes: */
[51187]45#include "UIExtraDataDefs.h"
[51054]46
[41587]47/* Forward declarations: */
[51035]48class UIExtraDataEventHandler;
[60599]49#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
[51931]50class UIExtraDataManagerWindow;
[71437]51#endif
[30677]52
[60183]53/** Defines the map of extra data values. The index is an extra-data key. */
[51053]54typedef QMap<QString, QString> ExtraDataMap;
[74878]55/** Defines the map of extra data maps. */
56typedef QMap<QUuid, ExtraDataMap> MapOfExtraDataMaps;
[51053]57
[51038]58/** Singleton QObject extension
59 * providing GUI with corresponding extra-data values,
60 * and notifying it whenever any of those values changed. */
[71630]61class SHARED_LIBRARY_STUFF UIExtraDataManager : public QObject
[30677]62{
63 Q_OBJECT;
64
[51056]65 /** Extra-data Manager constructor. */
66 UIExtraDataManager();
67 /** Extra-data Manager destructor. */
68 ~UIExtraDataManager();
69
[51038]70signals:
[30677]71
[51953]72 /** Notifies about extra-data map acknowledging. */
[74942]73 void sigExtraDataMapAcknowledging(const QUuid &uID);
[51953]74
[51930]75 /** Notifies about extra-data change. */
[74942]76 void sigExtraDataChange(const QUuid &uID, const QString &strKey, const QString &strValue);
[51930]77
[93408]78 /** Notifies about notification-center alignment change. */
79 void sigNotificationCenterAlignmentChange();
[92400]80 /** Notifies about notification-center order change. */
81 void sigNotificationCenterOrderChange();
82
[101447]83 /** Notifies about settings expert mode change. */
84 void sigSettingsExpertModeChange();
85
[51038]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();
[66569]93 /** Notifies about Runtime UI host-key combination change. */
94 void sigRuntimeUIHostKeyCombinationChange();
[51038]95
[85035]96 /** Notifies about Cloud Profile Manager restriction change. */
97 void sigCloudProfileManagerRestrictionChange();
98
[85389]99 /** Notifies about Cloud Console Manager data change. */
100 void sigCloudConsoleManagerDataChange();
101 /** Notifies about Cloud Console Manager restriction change. */
102 void sigCloudConsoleManagerRestrictionChange();
103
[75525]104 /** Notifies about VirtualBox Manager / Details pane categories change. */
105 void sigDetailsCategoriesChange();
[75427]106 /** Notifies about VirtualBox Manager / Details pane options change. */
107 void sigDetailsOptionsChange(DetailsElementType enmType);
108
[84990]109 /** Notifies about visual state change. */
110 void sigVisualStateChange(const QUuid &uMachineID);
111
[52464]112 /** Notifies about menu-bar configuration change. */
[74942]113 void sigMenuBarConfigurationChange(const QUuid &uMachineID);
[51996]114 /** Notifies about status-bar configuration change. */
[74942]115 void sigStatusBarConfigurationChange(const QUuid &uMachineID);
[51996]116
[51596]117 /** Notifies about HID LEDs synchronization state change. */
118 void sigHidLedsSyncStateChange(bool fEnabled);
[51038]119
[53389]120 /** Notifies about the scale-factor change. */
[74942]121 void sigScaleFactorChange(const QUuid &uMachineID);
[53389]122
[55187]123 /** Notifies about the scaling optimization type change. */
[74942]124 void sigScalingOptimizationTypeChange(const QUuid &uMachineID);
[55187]125
[97311]126 /** Notifies about font scale factor. */
127 void sigFontScaleFactorChanged(int iFontScaleFactor);
128
[70870]129#ifdef VBOX_WS_MAC
[55726]130 /** Notifies about the HiDPI optimization type change. */
[74942]131 void sigHiDPIOptimizationTypeChange(const QUuid &uMachineID);
[55726]132
[51038]133 /** Mac OS X: Notifies about 'dock icon' appearance change. */
[30677]134 void sigDockIconAppearanceChange(bool fEnabled);
[58382]135 /** Mac OS X: Notifies about 'dock icon overlay' appearance change. */
136 void sigDockIconOverlayAppearanceChange(bool fEnabled);
[71437]137#endif /* VBOX_WS_MAC */
[30677]138
[100064]139#if defined (VBOX_WS_NIX) || defined (VBOX_WS_WIN)
[89700]140 /* Is emitted when host screen saver inhibition state changes. */
141 void sigDisableHostScreenSaverStateChange(bool fDisable);
142#endif
143
[51038]144public:
145
[51927]146 /** Global extra-data ID. */
[74878]147 static const QUuid GlobalID;
[51927]148
[51038]149 /** Static Extra-data Manager instance/constructor. */
150 static UIExtraDataManager* instance();
151 /** Static Extra-data Manager destructor. */
152 static void destroy();
153
[60599]154#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
[51931]155 /** Static show and raise API. */
156 static void openWindow(QWidget *pCenterWidget);
[71437]157#endif
[51931]158
[60260]159 /** @name Base
[51929]160 * @{ */
[74942]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); }
[51929]165
[51953]166 /** Hot-load machine extra-data map. */
[74942]167 void hotloadMachineExtraDataMap(const QUuid &uID);
[51953]168
[51929]169 /** Returns extra-data value corresponding to passed @a strKey as QString.
[74942]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);
[51929]172 /** Defines extra-data value corresponding to passed @a strKey as strValue.
[74942]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);
[51929]175
176 /** Returns extra-data value corresponding to passed @a strKey as QStringList.
[74942]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);
[54794]179 /** Defines extra-data value corresponding to passed @a strKey as value.
[74942]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);
[51929]182 /** @} */
183
[60260]184 /** @name General
185 * @{ */
[81612]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);
[89295]190
191 /** Returns color theme type. */
192 UIColorThemeType colorTheme();
193 /** Defines color theme @a enmType. */
194 void setColorTheme(const UIColorThemeType &enmType);
[60260]195 /** @} */
196
[51679]197 /** @name Messaging
198 * @{ */
199 /** Returns the list of supressed messages for the Message/Popup center frameworks. */
[74942]200 QStringList suppressedMessages(const QUuid &uID = GlobalID);
[51679]201 /** Defines the @a list of supressed messages for the Message/Popup center frameworks. */
202 void setSuppressedMessages(const QStringList &list);
[51195]203
[51679]204 /** Returns the list of messages for the Message/Popup center frameworks with inverted check-box state. */
[51928]205 QStringList messagesWithInvertedOption();
[51679]206
[99184]207#ifdef VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON
[91227]208 /** Returns whether successfull notification-progresses should NOT close automatically. */
209 bool keepSuccessfullNotificationProgresses();
[91236]210 /** Defines whether successfull notification-progresses should NOT close (@a fKeep) automatically. */
211 void setKeepSuccessfullNotificationProgresses(bool fKeep);
[99184]212#endif /* VBOX_NOTIFICATION_CENTER_WITH_KEEP_BUTTON */
[91227]213
[93408]214 /** Returns notification-center alignment. */
215 Qt::Alignment notificationCenterAlignment();
216 /** Defines notification-progresses @a enmOrder. */
217 void setNotificationCenterAlignment(Qt::Alignment enmOrder);
218
[92400]219 /** Returns notification-center order. */
220 Qt::SortOrder notificationCenterOrder();
221 /** Defines notification-progresses @a enmOrder. */
222 void setNotificationCenterOrder(Qt::SortOrder enmOrder);
223
[96808]224 /** Returns whether BETA build label should be hidden. */
225 bool preventBetaBuildLavel();
[51679]226#if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG)
227 /** Returns version for which user wants to prevent BETA build warning. */
[51928]228 QString preventBetaBuildWarningForVersion();
[71437]229#endif
[51679]230 /** @} */
231
[51216]232#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
[51679]233 /** @name Application Update
234 * @{ */
235 /** Returns whether Application Update functionality enabled. */
[51928]236 bool applicationUpdateEnabled();
[51679]237
238 /** Returns Application Update data. */
[51928]239 QString applicationUpdateData();
[51679]240 /** Defines Application Update data as @a strValue. */
241 void setApplicationUpdateData(const QString &strValue);
242
243 /** Returns Application Update check counter. */
[51928]244 qulonglong applicationUpdateCheckCounter();
[51679]245 /** Increments Application Update check counter. */
246 void incrementApplicationUpdateCheckCounter();
247 /** @} */
[51216]248#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
249
[69006]250 /** @name Progress
251 * @{ */
252 /** Returns whether legacy progress handling method is requested. */
253 bool legacyProgressHandlingRequested();
254 /** @} */
255
[51679]256 /** @name Settings
257 * @{ */
[66579]258 /** Returns whether GUI @a enmFeature is enabled. */
259 bool guiFeatureEnabled(GUIFeatureType enmFeature);
260
[51679]261 /** Returns restricted global settings pages. */
[51928]262 QList<GlobalSettingsPageType> restrictedGlobalSettingsPages();
[51679]263 /** Returns restricted machine settings pages. */
[74942]264 QList<MachineSettingsPageType> restrictedMachineSettingsPages(const QUuid &uID);
[101447]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);
[51679]270 /** @} */
[51449]271
[66587]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
[53249]280 /** @name Settings: Display
281 * @{ */
[66588]282 /** Returns maximum guest-screen resolution policy. */
[86977]283 MaximumGuestScreenSizePolicy maxGuestResolutionPolicy();
[66588]284 /** Defines maximum guest-screen resolution @a enmPolicy or @a resolution itself for Fixed policy. */
[86977]285 void setMaxGuestScreenResolution(MaximumGuestScreenSizePolicy enmPolicy, const QSize resolution = QSize());
[66588]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
[53249]291 /** Returns whether hovered machine-window should be activated. */
292 bool activateHoveredMachineWindow();
[53250]293 /** Defines whether hovered machine-window should be @a fActivated. */
294 void setActivateHoveredMachineWindow(bool fActivate);
[89688]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);
[97307]299 /* Set global font scale factor as percentage. 100% is for no scaling. */
300 void setFontScaleFactor(int iFontScaleFactor);
301 int fontScaleFactor();
[53249]302 /** @} */
303
[51679]304 /** @name Settings: Keyboard
305 * @{ */
[66569]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
[51679]311 /** Returns shortcut overrides for shortcut-pool with @a strPoolExtraDataID. */
[51928]312 QStringList shortcutOverrides(const QString &strPoolExtraDataID);
[66571]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);
[66589]318
319 /** Returns the Runtime UI remapped scan codes. */
320 QString remappedScanCodes();
[51679]321 /** @} */
[51198]322
[66590]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
[51679]331 /** @name Settings: Storage
332 * @{ */
333 /** Returns recent folder for hard-drives. */
[51928]334 QString recentFolderForHardDrives();
[51679]335 /** Returns recent folder for optical-disks. */
[51928]336 QString recentFolderForOpticalDisks();
[51679]337 /** Returns recent folder for floppy-disks. */
[51928]338 QString recentFolderForFloppyDisks();
[51679]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);
[51198]345
[51679]346 /** Returns the list of recently used hard-drives. */
[51928]347 QStringList recentListOfHardDrives();
[51679]348 /** Returns the list of recently used optical-disk. */
[51928]349 QStringList recentListOfOpticalDisks();
[51679]350 /** Returns the list of recently used floppy-disk. */
[51928]351 QStringList recentListOfFloppyDisks();
[51679]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 /** @} */
[51199]359
[78519]360 /** @name Settings: Network
361 * @{ */
362 /** Returns the list of restricted network attachment types. */
363 UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork restrictedNetworkAttachmentTypes();
364 /** @} */
365
[77377]366 /** @name VISO Creator
[77376]367 * @{ */
[77377]368 /** Returns recent folder for VISO creation content. */
[77376]369 QString visoCreatorRecentFolder();
[77377]370 /** Defines recent folder for VISO creation content as @a strValue. */
371 void setVISOCreatorRecentFolder(const QString &strValue);
[92492]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();
[77376]378 /** @} */
379
[51679]380 /** @name VirtualBox Manager
381 * @{ */
382 /** Returns selector-window geometry using @a pWidget as the hint. */
[51928]383 QRect selectorWindowGeometry(QWidget *pWidget);
[51679]384 /** Returns whether selector-window should be maximized. */
[51928]385 bool selectorWindowShouldBeMaximized();
[51679]386 /** Defines selector-window @a geometry and @a fMaximized state. */
387 void setSelectorWindowGeometry(const QRect &geometry, bool fMaximized);
[51207]388
[51679]389 /** Returns selector-window splitter hints. */
[51928]390 QList<int> selectorWindowSplitterHints();
[51679]391 /** Defines selector-window splitter @a hints. */
392 void setSelectorWindowSplitterHints(const QList<int> &hints);
[51213]393
[51679]394 /** Returns whether selector-window tool-bar visible. */
[51928]395 bool selectorWindowToolBarVisible();
[51679]396 /** Defines whether selector-window tool-bar @a fVisible. */
397 void setSelectorWindowToolBarVisible(bool fVisible);
[51455]398
[68212]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
[74265]404 /** Returns last selected tool set of VirtualBox Manager. */
[75017]405 QList<UIToolType> toolsPaneLastItemsChosen();
406 /** Defines last selected tool @a set of VirtualBox Manager. */
407 void setToolsPaneLastItemsChosen(const QList<UIToolType> &set);
[74265]408
[51679]409 /** Returns whether selector-window status-bar visible. */
[51928]410 bool selectorWindowStatusBarVisible();
[51679]411 /** Defines whether selector-window status-bar @a fVisible. */
412 void setSelectorWindowStatusBarVisible(bool fVisible);
[51514]413
[88585]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);
[51515]420
[51679]421 /** Returns last-item ID of the item chosen in selector-window chooser-pane. */
[51928]422 QString selectorWindowLastItemChosen();
[51679]423 /** Defines @a lastItemID of the item chosen in selector-window chooser-pane. */
424 void setSelectorWindowLastItemChosen(const QString &strItemID);
[51548]425
[51679]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);
[51541]430
[51679]431 /** Returns selector-window details-pane' preview update interval. */
[51928]432 PreviewUpdateIntervalType selectorWindowPreviewUpdateInterval();
[51679]433 /** Defines selector-window details-pane' preview update @a interval. */
434 void setSelectorWindowPreviewUpdateInterval(PreviewUpdateIntervalType interval);
[75427]435
436 /** Returns VirtualBox Manager / Details pane options for certain @a enmElementType. */
437 QStringList vboxManagerDetailsPaneElementOptions(DetailsElementType enmElementType);
[75607]438 /** Defines VirtualBox Manager / Details pane @a options for certain @a enmElementType. */
439 void setVBoxManagerDetailsPaneElementOptions(DetailsElementType enmElementType, const QStringList &options);
[51679]440 /** @} */
[51532]441
[68962]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);
[77014]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);
[68962]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
[74871]470 /** @name Cloud Profile Manager
471 * @{ */
[85035]472 /** Returns Cloud Profile Manager restrictions. */
473 QStringList cloudProfileManagerRestrictions();
474 /** Defines Cloud Profile Manager @a restrictions. */
475 void setCloudProfileManagerRestrictions(const QStringList &restrictions);
476
[74871]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
[85389]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
[85454]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
[51679]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 /** @} */
[51531]526
[51679]527 /** @name Virtual Machine
528 * @{ */
[77845]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);
[51666]533
[51679]534 /** Returns whether machine reconfiguration enabled. */
[74942]535 bool machineReconfigurationEnabled(const QUuid &uID);
[51679]536 /** Returns whether machine snapshot operations enabled. */
[74942]537 bool machineSnapshotOperationsEnabled(const QUuid &uID);
[51549]538
[51679]539 /** Except Mac OS X: Returns redefined machine-window icon names. */
[74942]540 QStringList machineWindowIconNames(const QUuid &uID);
[66661]541#ifndef VBOX_WS_MAC
[51679]542 /** Except Mac OS X: Returns redefined machine-window name postfix. */
[74942]543 QString machineWindowNamePostfix(const QUuid &uID);
[71437]544#endif
[51209]545
[51679]546 /** Returns geometry for machine-window with @a uScreenIndex in @a visualStateType. */
[74942]547 QRect machineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QUuid &uID);
[51679]548 /** Returns whether machine-window with @a uScreenIndex in @a visualStateType should be maximized. */
[74942]549 bool machineWindowShouldBeMaximized(UIVisualStateType visualStateType, ulong uScreenIndex, const QUuid &uID);
[51679]550 /** Defines @a geometry and @a fMaximized state for machine-window with @a uScreenIndex in @a visualStateType. */
[74942]551 void setMachineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QRect &geometry, bool fMaximized, const QUuid &uID);
[51054]552
[60362]553#ifndef VBOX_WS_MAC
[52645]554 /** Returns whether Runtime UI menu-bar is enabled. */
[74942]555 bool menuBarEnabled(const QUuid &uID);
[52645]556 /** Defines whether Runtime UI menu-bar is @a fEnabled. */
[74942]557 void setMenuBarEnabled(bool fEnabled, const QUuid &uID);
[60362]558#endif /* !VBOX_WS_MAC */
[52645]559
[67942]560 /** Returns whether Runtime UI menu-bar context-menu is enabled. */
[74942]561 bool menuBarContextMenuEnabled(const QUuid &uID);
[67942]562 /** Defines whether Runtime UI menu-bar context-menu is @a fEnabled. */
[74942]563 void setMenuBarContextMenuEnabled(bool fEnabled, const QUuid &uID);
[67942]564
[51679]565 /** Returns restricted Runtime UI menu types. */
[74942]566 UIExtraDataMetaDefs::MenuType restrictedRuntimeMenuTypes(const QUuid &uID);
[52461]567 /** Defines restricted Runtime UI menu types. */
[74942]568 void setRestrictedRuntimeMenuTypes(UIExtraDataMetaDefs::MenuType types, const QUuid &uID);
[52461]569
[55170]570 /** Returns restricted Runtime UI action types for Application menu. */
[74942]571 UIExtraDataMetaDefs::MenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QUuid &uID);
[55170]572 /** Defines restricted Runtime UI action types for Application menu. */
[74942]573 void setRestrictedRuntimeMenuApplicationActionTypes(UIExtraDataMetaDefs::MenuApplicationActionType types, const QUuid &uID);
[52461]574
[51679]575 /** Returns restricted Runtime UI action types for Machine menu. */
[74942]576 UIExtraDataMetaDefs::RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QUuid &uID);
[52461]577 /** Defines restricted Runtime UI action types for Machine menu. */
[74942]578 void setRestrictedRuntimeMenuMachineActionTypes(UIExtraDataMetaDefs::RuntimeMenuMachineActionType types, const QUuid &uID);
[52461]579
[51679]580 /** Returns restricted Runtime UI action types for View menu. */
[74942]581 UIExtraDataMetaDefs::RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QUuid &uID);
[52461]582 /** Defines restricted Runtime UI action types for View menu. */
[74942]583 void setRestrictedRuntimeMenuViewActionTypes(UIExtraDataMetaDefs::RuntimeMenuViewActionType types, const QUuid &uID);
[52461]584
[52937]585 /** Returns restricted Runtime UI action types for Input menu. */
[74942]586 UIExtraDataMetaDefs::RuntimeMenuInputActionType restrictedRuntimeMenuInputActionTypes(const QUuid &uID);
[52937]587 /** Defines restricted Runtime UI action types for Input menu. */
[74942]588 void setRestrictedRuntimeMenuInputActionTypes(UIExtraDataMetaDefs::RuntimeMenuInputActionType types, const QUuid &uID);
[52937]589
[51679]590 /** Returns restricted Runtime UI action types for Devices menu. */
[74942]591 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QUuid &uID);
[52461]592 /** Defines restricted Runtime UI action types for Devices menu. */
[74942]593 void setRestrictedRuntimeMenuDevicesActionTypes(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType types, const QUuid &uID);
[52461]594
[52459]595#ifdef VBOX_WITH_DEBUGGER_GUI
[51679]596 /** Returns restricted Runtime UI action types for Debugger menu. */
[74942]597 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QUuid &uID);
[52461]598 /** Defines restricted Runtime UI action types for Debugger menu. */
[74942]599 void setRestrictedRuntimeMenuDebuggerActionTypes(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType types, const QUuid &uID);
[52459]600#endif /* VBOX_WITH_DEBUGGER_GUI */
[52461]601
[60362]602#ifdef VBOX_WS_MAC
[54272]603 /** Mac OS X: Returns restricted Runtime UI action types for Window menu. */
[74942]604 UIExtraDataMetaDefs::MenuWindowActionType restrictedRuntimeMenuWindowActionTypes(const QUuid &uID);
[54272]605 /** Mac OS X: Defines restricted Runtime UI action types for Window menu. */
[74942]606 void setRestrictedRuntimeMenuWindowActionTypes(UIExtraDataMetaDefs::MenuWindowActionType types, const QUuid &uID);
[60362]607#endif /* VBOX_WS_MAC */
[54272]608
[51679]609 /** Returns restricted Runtime UI action types for Help menu. */
[74942]610 UIExtraDataMetaDefs::MenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QUuid &uID);
[52461]611 /** Defines restricted Runtime UI action types for Help menu. */
[74942]612 void setRestrictedRuntimeMenuHelpActionTypes(UIExtraDataMetaDefs::MenuHelpActionType types, const QUuid &uID);
[51054]613
[51679]614 /** Returns restricted Runtime UI visual-states. */
[74942]615 UIVisualStateType restrictedVisualStates(const QUuid &uID);
[51054]616
[51679]617 /** Returns requested Runtime UI visual-state. */
[74942]618 UIVisualStateType requestedVisualState(const QUuid &uID);
[51679]619 /** Defines requested Runtime UI visual-state as @a visualState. */
[74942]620 void setRequestedVisualState(UIVisualStateType visualState, const QUuid &uID);
[51054]621
[100064]622#ifdef VBOX_WS_NIX
[52788]623 /** Returns whether legacy full-screen mode is requested. */
624 bool legacyFullscreenModeRequested();
[69722]625
626 /** Returns whether internal machine-window name should be unique. */
[74942]627 bool distinguishMachineWindowGroups(const QUuid &uID);
[69722]628 /** Defines whether internal machine-window name should be unique. */
[74942]629 void setDistinguishMachineWindowGroups(const QUuid &uID, bool fEnabled);
[100064]630#endif /* VBOX_WS_NIX */
[52788]631
[51679]632 /** Returns whether guest-screen auto-resize according machine-window size is enabled. */
[74942]633 bool guestScreenAutoResizeEnabled(const QUuid &uID);
[51679]634 /** Defines whether guest-screen auto-resize according machine-window size is @a fEnabled. */
[74942]635 void setGuestScreenAutoResizeEnabled(bool fEnabled, const QUuid &uID);
[51054]636
[56704]637 /** Returns last guest-screen visibility status for screen with @a uScreenIndex. */
[74942]638 bool lastGuestScreenVisibilityStatus(ulong uScreenIndex, const QUuid &uID);
[56704]639 /** Defines whether last guest-screen visibility status was @a fEnabled for screen with @a uScreenIndex. */
[74942]640 void setLastGuestScreenVisibilityStatus(ulong uScreenIndex, bool fEnabled, const QUuid &uID);
[56704]641
[51679]642 /** Returns last guest-screen size-hint for screen with @a uScreenIndex. */
[74942]643 QSize lastGuestScreenSizeHint(ulong uScreenIndex, const QUuid &uID);
[51679]644 /** Defines last guest-screen @a sizeHint for screen with @a uScreenIndex. */
[74942]645 void setLastGuestScreenSizeHint(ulong uScreenIndex, const QSize &sizeHint, const QUuid &uID);
[51565]646
[51679]647 /** Returns host-screen index corresponding to passed guest-screen @a iGuestScreenIndex. */
[74942]648 int hostScreenForPassedGuestScreen(int iGuestScreenIndex, const QUuid &uID);
[51679]649 /** Defines @a iHostScreenIndex corresponding to passed guest-screen @a iGuestScreenIndex. */
[74942]650 void setHostScreenForPassedGuestScreen(int iGuestScreenIndex, int iHostScreenIndex, const QUuid &uID);
[51569]651
[51679]652 /** Returns whether automatic mounting/unmounting of guest-screens enabled. */
[74942]653 bool autoMountGuestScreensEnabled(const QUuid &uID);
[51588]654
[60362]655#ifndef VBOX_WS_MAC
[51679]656 /** Returns whether mini-toolbar is enabled for full and seamless screens. */
[74942]657 bool miniToolbarEnabled(const QUuid &uID);
[51679]658 /** Defines whether mini-toolbar is @a fEnabled for full and seamless screens. */
[74942]659 void setMiniToolbarEnabled(bool fEnabled, const QUuid &uID);
[51054]660
[51679]661 /** Returns whether mini-toolbar should auto-hide itself. */
[74942]662 bool autoHideMiniToolbar(const QUuid &uID);
[51679]663 /** Defines whether mini-toolbar should @a fAutoHide itself. */
[74942]664 void setAutoHideMiniToolbar(bool fAutoHide, const QUuid &uID);
[51054]665
[51679]666 /** Returns mini-toolbar alignment. */
[74942]667 Qt::AlignmentFlag miniToolbarAlignment(const QUuid &uID);
[51679]668 /** Returns mini-toolbar @a alignment. */
[74942]669 void setMiniToolbarAlignment(Qt::AlignmentFlag alignment, const QUuid &uID);
[60362]670#endif /* VBOX_WS_MAC */
[51665]671
[52100]672 /** Returns whether Runtime UI status-bar is enabled. */
[74942]673 bool statusBarEnabled(const QUuid &uID);
[52100]674 /** Defines whether Runtime UI status-bar is @a fEnabled. */
[74942]675 void setStatusBarEnabled(bool fEnabled, const QUuid &uID);
[52100]676
[67942]677 /** Returns whether Runtime UI status-bar context-menu is enabled. */
[74942]678 bool statusBarContextMenuEnabled(const QUuid &uID);
[67942]679 /** Defines whether Runtime UI status-bar context-menu is @a fEnabled. */
[74942]680 void setStatusBarContextMenuEnabled(bool fEnabled, const QUuid &uID);
[67942]681
[52013]682 /** Returns restricted Runtime UI status-bar indicator list. */
[74942]683 QList<IndicatorType> restrictedStatusBarIndicators(const QUuid &uID);
[52013]684 /** Defines restricted Runtime UI status-bar indicator @a list. */
[74942]685 void setRestrictedStatusBarIndicators(const QList<IndicatorType> &list, const QUuid &uID);
[51054]686
[52035]687 /** Returns Runtime UI status-bar indicator order list. */
[74942]688 QList<IndicatorType> statusBarIndicatorOrder(const QUuid &uID);
[52035]689 /** Defines Runtime UI status-bar indicator order @a list. */
[74942]690 void setStatusBarIndicatorOrder(const QList<IndicatorType> &list, const QUuid &uID);
[52035]691
[60362]692#ifdef VBOX_WS_MAC
[51679]693 /** Mac OS X: Returns whether Dock icon should be updated at runtime. */
[74942]694 bool realtimeDockIconUpdateEnabled(const QUuid &uID);
[51679]695 /** Mac OS X: Defines whether Dock icon update should be fEnabled at runtime. */
[74942]696 void setRealtimeDockIconUpdateEnabled(bool fEnabled, const QUuid &uID);
[51595]697
[51679]698 /** Mac OS X: Returns guest-screen which Dock icon should reflect at runtime. */
[74942]699 int realtimeDockIconUpdateMonitor(const QUuid &uID);
[51679]700 /** Mac OS X: Defines guest-screen @a iIndex which Dock icon should reflect at runtime. */
[74942]701 void setRealtimeDockIconUpdateMonitor(int iIndex, const QUuid &uID);
[58382]702
[58544]703 /** Mac OS X: Returns whether Dock icon overlay is disabled. */
[74942]704 bool dockIconDisableOverlay(const QUuid &uID);
[58674]705 /** Mac OS X: Defines whether Dock icon overlay is @a fDisabled. */
[74942]706 void setDockIconDisableOverlay(bool fDisabled, const QUuid &uID);
[60362]707#endif /* VBOX_WS_MAC */
[51596]708
[51679]709 /** Returns whether machine should pass CAD to guest. */
[74942]710 bool passCADtoGuest(const QUuid &uID);
[51654]711
[52190]712 /** Returns the mouse-capture policy. */
[74942]713 MouseCapturePolicy mouseCapturePolicy(const QUuid &uID);
[52190]714
[51679]715 /** Returns redefined guru-meditation handler type. */
[74942]716 GuruMeditationHandlerType guruMeditationHandlerType(const QUuid &uID);
[51654]717
[51679]718 /** Returns whether machine should perform HID LEDs synchronization. */
[74942]719 bool hidLedsSyncState(const QUuid &uID);
[53372]720
[53401]721 /** Returns the scale-factor. */
[74942]722 double scaleFactor(const QUuid &uID, const int uScreenIndex);
723 QList<double> scaleFactors(const QUuid &uID);
[74914]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.*/
[74942]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);
[55187]730
731 /** Returns the scaling optimization type. */
[74942]732 ScalingOptimizationType scalingOptimizationType(const QUuid &uID);
[51679]733 /** @} */
[51654]734
[80773]735 /** @name Virtual Machine: Session Information dialog
[51679]736 * @{ */
[80773]737 /** Returns session information dialog geometry using @a pWidget and @a pParentWidget as hints. */
738 QRect sessionInformationDialogGeometry(QWidget *pWidget, QWidget *pParentWidget);
[51679]739 /** Returns whether information-window should be maximized or not. */
[80773]740 bool sessionInformationDialogShouldBeMaximized();
[51679]741 /** Defines information-window @a geometry and @a fMaximized state. */
[80773]742 void setSessionInformationDialogGeometry(const QRect &geometry, bool fMaximized);
[51679]743 /** @} */
[51671]744
[75642]745 /** @name Guest Control related dialogs
[75057]746 * @{ */
747 void setGuestControlProcessControlSplitterHints(const QList<int> &hints);
748 QList<int> guestControlProcessControlSplitterHints();
[81358]749 QRect fileManagerDialogGeometry(QWidget *pWidget, QWidget *pParentWidget);
[76177]750 bool fileManagerDialogShouldBeMaximized();
751 void setFileManagerDialogGeometry(const QRect &geometry, bool fMaximized);
[81358]752 QRect guestProcessControlDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
[75087]753 bool guestProcessControlDialogShouldBeMaximized();
754 void setGuestProcessControlDialogGeometry(const QRect &geometry, bool fMaximized);
[76177]755 void setFileManagerVisiblePanels(const QStringList &panelNameList);
756 QStringList fileManagerVisiblePanels();
[75057]757 /** @} */
758
[78680]759 /** @name Soft Keyboard
760 * @{ */
[81358]761 QRect softKeyboardDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
[78680]762 void setSoftKeyboardDialogGeometry(const QRect &geometry, bool fMaximized);
763 bool softKeyboardDialogShouldBeMaximized();
[81263]764 void setSoftKeyboardOptions(bool fShowNumPad, bool fHideOSMenuKeys, bool fMultimediaKeys);
765 void softKeyboardOptions(bool &fOutShowNumPad, bool &fOutHideOSMenuKeys, bool &fOutHideMultimediaKeys);
[79434]766 void setSoftKeyboardColorTheme(const QStringList &colorStringList);
767 QStringList softKeyboardColorTheme();
[81309]768 void setSoftKeyboardSelectedColorTheme(const QString &strColorThemeName);
769 QString softKeyboardSelectedColorTheme();
[79508]770 void setSoftKeyboardSelectedLayout(const QUuid &uLayoutUid);
771 QUuid softKeyboardSelectedLayout();
[78680]772 /** @} */
773
[76177]774 /** @name File Manager options
[75642]775 * @{ */
[76177]776 void setFileManagerOptions(bool fListDirectoriesFirst,
[76626]777 bool fShowDeleteConfirmation,
778 bool fshowHumanReadableSizes,
[78010]779 bool fShowHiddenObjects);
[76177]780 bool fileManagerListDirectoriesFirst();
781 bool fileManagerShowDeleteConfirmation();
782 bool fileManagerShowHumanReadableSizes();
[76626]783 bool fileManagerShowHiddenObjects();
[75642]784 /** @} */
785
[51679]786 /** @name Virtual Machine: Close dialog
787 * @{ */
788 /** Returns default machine close action. */
[74942]789 MachineCloseAction defaultMachineCloseAction(const QUuid &uID);
[51679]790 /** Returns restricted machine close actions. */
[74942]791 MachineCloseAction restrictedMachineCloseActions(const QUuid &uID);
[51671]792
[51679]793 /** Returns last machine close action. */
[74942]794 MachineCloseAction lastMachineCloseAction(const QUuid &uID);
[51679]795 /** Defines last @a machineCloseAction. */
[74942]796 void setLastMachineCloseAction(MachineCloseAction machineCloseAction, const QUuid &uID);
[51671]797
[51679]798 /** Returns machine close hook script name as simple string. */
[74942]799 QString machineCloseHookScript(const QUuid &uID);
[90083]800
801 /** Returns whether machine should discard state on power off. */
802 bool discardStateOnPowerOff(const QUuid &uID);
[51679]803 /** @} */
[51663]804
[51679]805#ifdef VBOX_WITH_DEBUGGER_GUI
806 /** @name Virtual Machine: Debug UI
807 * @{ */
808 /** Returns debug flag value for passed @a strDebugFlagKey. */
[51928]809 QString debugFlagValue(const QString &strDebugFlagKey);
[51679]810 /** @} */
811#endif /* VBOX_WITH_DEBUGGER_GUI */
[51663]812
[60599]813#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
[51931]814 /** @name VirtualBox: Extra-data Manager window
815 * @{ */
[81357]816 /** Returns Extra-data Manager geometry using @a pWidget and @a pParentWidget as hint. */
817 QRect extraDataManagerGeometry(QWidget *pWidget, QWidget *pParentWidget);
[51931]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 /** @} */
[60599]828#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
[51931]829
[72030]830 /** @name Virtual Machine: Log Viewer dialog
[57496]831 * @{ */
[81357]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);
[57496]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
[75424]840 /** @name Virtual Machine: Log Viewer widget options
[72030]841 * @{ */
[75424]842 void setLogViweverOptions(const QFont &font, bool wrapLines, bool showLineNumbers);
[72030]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();
[76977]849 void setLogViewerVisiblePanels(const QStringList &panelNameList);
850 QStringList logViewerVisiblePanels();
[72030]851 /** @} */
852
[86716]853 /** @name Help Browser
854 * @{ */
[86791]855 void setHelpBrowserLastUrlList(const QStringList &urlList);
856 QStringList helpBrowserLastUrlList();
[88411]857 void setHelpBrowserZoomPercentage(int iZoomPercentage);
858 int helpBrowserZoomPercentage();
[86764]859 QRect helpBrowserDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry);
860 void setHelpBrowserDialogGeometry(const QRect &geometry, bool fMaximized);
861 bool helpBrowserDialogShouldBeMaximized();
[86958]862 void setHelpBrowserBookmarks(const QStringList &bookmarks);
863 QStringList helpBrowserBookmarks();
[86716]864 /** @} */
865
[88173]866 /** @name Manager UI: VM Activity Overview
[83452]867 * @{ */
[88082]868 void setVMActivityOverviewHiddenColumnList(const QStringList &hiddenColumnList);
869 QStringList VMActivityOverviewHiddenColumnList();
[88205]870 bool VMActivityOverviewShowAllMachines();
871 void setVMActivityOverviewShowAllMachines(bool fShow);
[83452]872 /** @} */
873
[92437]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
[51177]881private slots:
882
883 /** Handles 'extra-data change' event: */
[74942]884 void sltExtraDataChange(const QUuid &uMachineID, const QString &strKey, const QString &strValue);
[51177]885
[30677]886private:
[51038]887
[51047]888 /** Prepare Extra-data Manager. */
889 void prepare();
[51174]890 /** Prepare global extra-data map. */
891 void prepareGlobalExtraDataMap();
892 /** Prepare extra-data event-handler. */
893 void prepareExtraDataEventHandler();
[60599]894#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
[51931]895 // /** Prepare window. */
896 // void prepareWindow();
[51047]897
[51931]898 /** Cleanup window. */
899 void cleanupWindow();
[60599]900#endif /* VBOX_GUI_WITH_EXTRADATA_MANAGER_UI */
[60249]901 /** Cleanup extra-data event-handler. */
902 void cleanupExtraDataEventHandler();
[51048]903 // /** Cleanup extra-data map. */
904 // void cleanupExtraDataMap();
[51929]905 /** Cleanup Extra-data Manager. */
906 void cleanup();
[51047]907
[60599]908#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
[51931]909 /** Open window. */
910 void open(QWidget *pCenterWidget);
[71437]911#endif
[51931]912
[60183]913 /** Retrieves an extra-data key from both machine and global sources.
914 *
[74942]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.
[60183]917 *
918 * @returns String value if found, null string if not.
919 * @param strKey The extra-data key to get.
[74942]920 * @param uID Machine UUID or #GlobalID.
[60183]921 * @param strValue Where to return the value when found. */
[74942]922 QString extraDataStringUnion(const QString &strKey, const QUuid &uID);
[51053]923 /** Determines whether feature corresponding to passed @a strKey is allowed.
[74942]924 * If valid @a uID is set => applies to machine and global extra-data,
[60183]925 * otherwise => only to global one. */
[74942]926 bool isFeatureAllowed(const QString &strKey, const QUuid &uID = GlobalID);
[51178]927 /** Determines whether feature corresponding to passed @a strKey is restricted.
[74942]928 * If valid @a uID is set => applies to machine and global extra-data,
[60183]929 * otherwise => only to global one. */
[74942]930 bool isFeatureRestricted(const QString &strKey, const QUuid &uID = GlobalID);
[51053]931
[66571]932 /** Translates bool flag into QString value. */
933 QString toFeatureState(bool fState);
[51208]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
[81230]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.
[81358]947 * @param pParentWidget Brings the widget to center geometry rectangle according to.
[81230]948 * @param defaultGeometry Brings the default geometry which should be used to
949 * calculate resulting geometry if saved was not found. */
[81358]950 QRect dialogGeometry(const QString &strKey, QWidget *pWidget, QWidget *pParentWidget = 0, const QRect &defaultGeometry = QRect());
[92496]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);
[75087]954
[51569]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);
[51558]958
[71580]959 /** Holds the singleton instance. */
960 static UIExtraDataManager *s_pInstance;
[51038]961
[51927]962 /** Holds extra-data event-handler instance. */
[51035]963 UIExtraDataEventHandler *m_pHandler;
[51048]964
[51927]965 /** Holds extra-data map instance. */
[60182]966 MapOfExtraDataMaps m_data;
[51931]967
[60599]968#ifdef VBOX_GUI_WITH_EXTRADATA_MANAGER_UI
[51931]969 /** Holds Extra-data Manager window instance. */
970 QPointer<UIExtraDataManagerWindow> m_pWindow;
[71437]971#endif
[30677]972};
973
[51038]974/** Singleton Extra-data Manager 'official' name. */
[51035]975#define gEDataManager UIExtraDataManager::instance()
[30677]976
[76581]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