Changeset 51928 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 8, 2014 12:46:54 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94819
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extradata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r51927 r51928 158 158 } 159 159 160 QStringList UIExtraDataManager::suppressedMessages() const160 QStringList UIExtraDataManager::suppressedMessages() 161 161 { 162 162 return extraDataStringList(GUI_SuppressMessages); … … 168 168 } 169 169 170 QStringList UIExtraDataManager::messagesWithInvertedOption() const170 QStringList UIExtraDataManager::messagesWithInvertedOption() 171 171 { 172 172 return extraDataStringList(GUI_InvertMessageOption); … … 174 174 175 175 #if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG) 176 QString UIExtraDataManager::preventBetaBuildWarningForVersion() const176 QString UIExtraDataManager::preventBetaBuildWarningForVersion() 177 177 { 178 178 return extraDataString(GUI_PreventBetaWarning); … … 181 181 182 182 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 183 bool UIExtraDataManager::applicationUpdateEnabled() const183 bool UIExtraDataManager::applicationUpdateEnabled() 184 184 { 185 185 /* 'True' unless 'restriction' feature allowed: */ … … 187 187 } 188 188 189 QString UIExtraDataManager::applicationUpdateData() const189 QString UIExtraDataManager::applicationUpdateData() 190 190 { 191 191 return extraDataString(GUI_UpdateDate); … … 197 197 } 198 198 199 qulonglong UIExtraDataManager::applicationUpdateCheckCounter() const199 qulonglong UIExtraDataManager::applicationUpdateCheckCounter() 200 200 { 201 201 /* Read subsequent update check counter value: */ … … 219 219 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 220 220 221 QList<GlobalSettingsPageType> UIExtraDataManager::restrictedGlobalSettingsPages() const221 QList<GlobalSettingsPageType> UIExtraDataManager::restrictedGlobalSettingsPages() 222 222 { 223 223 /* Prepare result: */ … … 234 234 } 235 235 236 QList<MachineSettingsPageType> UIExtraDataManager::restrictedMachineSettingsPages(const QString &strID) const236 QList<MachineSettingsPageType> UIExtraDataManager::restrictedMachineSettingsPages(const QString &strID) 237 237 { 238 238 /* Prepare result: */ … … 249 249 } 250 250 251 QStringList UIExtraDataManager::shortcutOverrides(const QString &strPoolExtraDataID) const251 QStringList UIExtraDataManager::shortcutOverrides(const QString &strPoolExtraDataID) 252 252 { 253 253 if (strPoolExtraDataID == GUI_Input_SelectorShortcuts) … … 258 258 } 259 259 260 QString UIExtraDataManager::recentFolderForHardDrives() const260 QString UIExtraDataManager::recentFolderForHardDrives() 261 261 { 262 262 return extraDataString(GUI_RecentFolderHD); 263 263 } 264 264 265 QString UIExtraDataManager::recentFolderForOpticalDisks() const265 QString UIExtraDataManager::recentFolderForOpticalDisks() 266 266 { 267 267 return extraDataString(GUI_RecentFolderCD); 268 268 } 269 269 270 QString UIExtraDataManager::recentFolderForFloppyDisks() const270 QString UIExtraDataManager::recentFolderForFloppyDisks() 271 271 { 272 272 return extraDataString(GUI_RecentFolderFD); … … 288 288 } 289 289 290 QStringList UIExtraDataManager::recentListOfHardDrives() const290 QStringList UIExtraDataManager::recentListOfHardDrives() 291 291 { 292 292 return extraDataStringList(GUI_RecentListHD); 293 293 } 294 294 295 QStringList UIExtraDataManager::recentListOfOpticalDisks() const295 QStringList UIExtraDataManager::recentListOfOpticalDisks() 296 296 { 297 297 return extraDataStringList(GUI_RecentListCD); 298 298 } 299 299 300 QStringList UIExtraDataManager::recentListOfFloppyDisks() const300 QStringList UIExtraDataManager::recentListOfFloppyDisks() 301 301 { 302 302 return extraDataStringList(GUI_RecentListFD); … … 318 318 } 319 319 320 QRect UIExtraDataManager::selectorWindowGeometry(QWidget *pWidget) const320 QRect UIExtraDataManager::selectorWindowGeometry(QWidget *pWidget) 321 321 { 322 322 /* Get corresponding extra-data: */ … … 361 361 } 362 362 363 bool UIExtraDataManager::selectorWindowShouldBeMaximized() const363 bool UIExtraDataManager::selectorWindowShouldBeMaximized() 364 364 { 365 365 /* Get corresponding extra-data: */ … … 385 385 } 386 386 387 QList<int> UIExtraDataManager::selectorWindowSplitterHints() const387 QList<int> UIExtraDataManager::selectorWindowSplitterHints() 388 388 { 389 389 /* Get corresponding extra-data: */ … … 410 410 } 411 411 412 bool UIExtraDataManager::selectorWindowToolBarVisible() const412 bool UIExtraDataManager::selectorWindowToolBarVisible() 413 413 { 414 414 /* 'True' unless feature restricted: */ … … 422 422 } 423 423 424 bool UIExtraDataManager::selectorWindowStatusBarVisible() const424 bool UIExtraDataManager::selectorWindowStatusBarVisible() 425 425 { 426 426 /* 'True' unless feature restricted: */ … … 436 436 void UIExtraDataManager::clearSelectorWindowGroupsDefinitions() 437 437 { 438 /* Read-only access global extra-data map: */439 const ExtraDataMap &data = m_data[GlobalID];440 438 /* Wipe-out each the group definition record: */ 441 foreach (const QString &strKey, data.keys())439 foreach (const QString &strKey, m_data.value(GlobalID).keys()) 442 440 if (strKey.startsWith(GUI_GroupDefinitions)) 443 441 setExtraDataString(strKey, QString()); 444 442 } 445 443 446 QStringList UIExtraDataManager::selectorWindowGroupsDefinitions(const QString &strGroupID) const444 QStringList UIExtraDataManager::selectorWindowGroupsDefinitions(const QString &strGroupID) 447 445 { 448 446 return extraDataStringList(GUI_GroupDefinitions + strGroupID); … … 454 452 } 455 453 456 QString UIExtraDataManager::selectorWindowLastItemChosen() const454 QString UIExtraDataManager::selectorWindowLastItemChosen() 457 455 { 458 456 return extraDataString(GUI_LastItemSelected); … … 506 504 } 507 505 508 PreviewUpdateIntervalType UIExtraDataManager::selectorWindowPreviewUpdateInterval() const506 PreviewUpdateIntervalType UIExtraDataManager::selectorWindowPreviewUpdateInterval() 509 507 { 510 508 return gpConverter->fromInternalString<PreviewUpdateIntervalType>(extraDataString(GUI_PreviewUpdate)); … … 544 542 } 545 543 546 bool UIExtraDataManager::showMachineInSelectorChooser(const QString &strID) const544 bool UIExtraDataManager::showMachineInSelectorChooser(const QString &strID) 547 545 { 548 546 /* 'True' unless 'restriction' feature allowed: */ … … 550 548 } 551 549 552 bool UIExtraDataManager::showMachineInSelectorDetails(const QString &strID) const550 bool UIExtraDataManager::showMachineInSelectorDetails(const QString &strID) 553 551 { 554 552 /* 'True' unless 'restriction' feature allowed: */ … … 556 554 } 557 555 558 bool UIExtraDataManager::machineReconfigurationEnabled(const QString &strID) const556 bool UIExtraDataManager::machineReconfigurationEnabled(const QString &strID) 559 557 { 560 558 /* 'True' unless 'restriction' feature allowed: */ … … 562 560 } 563 561 564 bool UIExtraDataManager::machineSnapshotOperationsEnabled(const QString &strID) const562 bool UIExtraDataManager::machineSnapshotOperationsEnabled(const QString &strID) 565 563 { 566 564 /* 'True' unless 'restriction' feature allowed: */ … … 568 566 } 569 567 570 bool UIExtraDataManager::machineFirstTimeStarted(const QString &strID) const568 bool UIExtraDataManager::machineFirstTimeStarted(const QString &strID) 571 569 { 572 570 /* 'True' only if feature is allowed: */ … … 581 579 582 580 #ifndef Q_WS_MAC 583 QStringList UIExtraDataManager::machineWindowIconNames(const QString &strID) const581 QStringList UIExtraDataManager::machineWindowIconNames(const QString &strID) 584 582 { 585 583 return extraDataStringList(GUI_MachineWindowIcons, strID); 586 584 } 587 585 588 QString UIExtraDataManager::machineWindowNamePostfix(const QString &strID) const586 QString UIExtraDataManager::machineWindowNamePostfix(const QString &strID) 589 587 { 590 588 return extraDataString(GUI_MachineWindowNamePostfix, strID); … … 592 590 #endif /* !Q_WS_MAC */ 593 591 594 QRect UIExtraDataManager::machineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID) const592 QRect UIExtraDataManager::machineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID) 595 593 { 596 594 /* Choose corresponding key: */ … … 626 624 } 627 625 628 bool UIExtraDataManager::machineWindowShouldBeMaximized(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID) const626 bool UIExtraDataManager::machineWindowShouldBeMaximized(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID) 629 627 { 630 628 /* Choose corresponding key: */ … … 668 666 } 669 667 670 RuntimeMenuType UIExtraDataManager::restrictedRuntimeMenuTypes(const QString &strID) const668 RuntimeMenuType UIExtraDataManager::restrictedRuntimeMenuTypes(const QString &strID) 671 669 { 672 670 /* Prepare result: */ … … 684 682 685 683 #ifdef Q_WS_MAC 686 RuntimeMenuApplicationActionType UIExtraDataManager::restrictedRuntimeMenuApplicationActionTypes(const QString &strID) const684 RuntimeMenuApplicationActionType UIExtraDataManager::restrictedRuntimeMenuApplicationActionTypes(const QString &strID) 687 685 { 688 686 /* Prepare result: */ … … 700 698 #endif /* Q_WS_MAC */ 701 699 702 RuntimeMenuMachineActionType UIExtraDataManager::restrictedRuntimeMenuMachineActionTypes(const QString &strID) const700 RuntimeMenuMachineActionType UIExtraDataManager::restrictedRuntimeMenuMachineActionTypes(const QString &strID) 703 701 { 704 702 /* Prepare result: */ … … 715 713 } 716 714 717 RuntimeMenuViewActionType UIExtraDataManager::restrictedRuntimeMenuViewActionTypes(const QString &strID) const715 RuntimeMenuViewActionType UIExtraDataManager::restrictedRuntimeMenuViewActionTypes(const QString &strID) 718 716 { 719 717 /* Prepare result: */ … … 730 728 } 731 729 732 RuntimeMenuDevicesActionType UIExtraDataManager::restrictedRuntimeMenuDevicesActionTypes(const QString &strID) const730 RuntimeMenuDevicesActionType UIExtraDataManager::restrictedRuntimeMenuDevicesActionTypes(const QString &strID) 733 731 { 734 732 /* Prepare result: */ … … 746 744 747 745 #ifdef VBOX_WITH_DEBUGGER_GUI 748 RuntimeMenuDebuggerActionType UIExtraDataManager::restrictedRuntimeMenuDebuggerActionTypes(const QString &strID) const746 RuntimeMenuDebuggerActionType UIExtraDataManager::restrictedRuntimeMenuDebuggerActionTypes(const QString &strID) 749 747 { 750 748 /* Prepare result: */ … … 762 760 #endif /* VBOX_WITH_DEBUGGER_GUI */ 763 761 764 RuntimeMenuHelpActionType UIExtraDataManager::restrictedRuntimeMenuHelpActionTypes(const QString &strID) const762 RuntimeMenuHelpActionType UIExtraDataManager::restrictedRuntimeMenuHelpActionTypes(const QString &strID) 765 763 { 766 764 /* Prepare result: */ … … 777 775 } 778 776 779 UIVisualStateType UIExtraDataManager::restrictedVisualStates(const QString &strID) const777 UIVisualStateType UIExtraDataManager::restrictedVisualStates(const QString &strID) 780 778 { 781 779 /* Prepare result: */ … … 792 790 } 793 791 794 UIVisualStateType UIExtraDataManager::requestedVisualState(const QString &strID) const792 UIVisualStateType UIExtraDataManager::requestedVisualState(const QString &strID) 795 793 { 796 794 if (isFeatureAllowed(GUI_Fullscreen, strID)) return UIVisualStateType_Fullscreen; … … 807 805 } 808 806 809 bool UIExtraDataManager::guestScreenAutoResizeEnabled(const QString &strID) const807 bool UIExtraDataManager::guestScreenAutoResizeEnabled(const QString &strID) 810 808 { 811 809 /* 'True' unless feature restricted: */ … … 819 817 } 820 818 821 QSize UIExtraDataManager::lastGuestSizeHint(ulong uScreenIndex, const QString &strID) const819 QSize UIExtraDataManager::lastGuestSizeHint(ulong uScreenIndex, const QString &strID) 822 820 { 823 821 /* Choose corresponding key: */ … … 857 855 } 858 856 859 bool UIExtraDataManager::wasLastGuestSizeHintForFullScreen(ulong uScreenIndex, const QString &strID) const857 bool UIExtraDataManager::wasLastGuestSizeHintForFullScreen(ulong uScreenIndex, const QString &strID) 860 858 { 861 859 /* Choose corresponding key: */ … … 898 896 } 899 897 900 bool UIExtraDataManager::autoMountGuestScreensEnabled(const QString &strID) const898 bool UIExtraDataManager::autoMountGuestScreensEnabled(const QString &strID) 901 899 { 902 900 /* Show only if 'allowed' flag is set: */ … … 905 903 906 904 #ifdef VBOX_WITH_VIDEOHWACCEL 907 bool UIExtraDataManager::useLinearStretch(const QString &strID) const905 bool UIExtraDataManager::useLinearStretch(const QString &strID) 908 906 { 909 907 /* 'True' unless feature restricted: */ … … 911 909 } 912 910 913 bool UIExtraDataManager::usePixelFormatYV12(const QString &strID) const911 bool UIExtraDataManager::usePixelFormatYV12(const QString &strID) 914 912 { 915 913 /* 'True' unless feature restricted: */ … … 917 915 } 918 916 919 bool UIExtraDataManager::usePixelFormatUYVY(const QString &strID) const917 bool UIExtraDataManager::usePixelFormatUYVY(const QString &strID) 920 918 { 921 919 /* 'True' unless feature restricted: */ … … 923 921 } 924 922 925 bool UIExtraDataManager::usePixelFormatYUY2(const QString &strID) const923 bool UIExtraDataManager::usePixelFormatYUY2(const QString &strID) 926 924 { 927 925 /* 'True' unless feature restricted: */ … … 929 927 } 930 928 931 bool UIExtraDataManager::usePixelFormatAYUV(const QString &strID) const929 bool UIExtraDataManager::usePixelFormatAYUV(const QString &strID) 932 930 { 933 931 /* 'True' unless feature restricted: */ … … 936 934 #endif /* VBOX_WITH_VIDEOHWACCEL */ 937 935 938 HiDPIOptimizationType UIExtraDataManager::hiDPIOptimizationType(const QString &strID) const936 HiDPIOptimizationType UIExtraDataManager::hiDPIOptimizationType(const QString &strID) 939 937 { 940 938 return gpConverter->fromInternalString<HiDPIOptimizationType>(extraDataString(GUI_HiDPI_Optimization, strID)); 941 939 } 942 940 943 bool UIExtraDataManager::miniToolbarEnabled(const QString &strID) const941 bool UIExtraDataManager::miniToolbarEnabled(const QString &strID) 944 942 { 945 943 /* 'True' unless feature restricted: */ … … 953 951 } 954 952 955 bool UIExtraDataManager::autoHideMiniToolbar(const QString &strID) const953 bool UIExtraDataManager::autoHideMiniToolbar(const QString &strID) 956 954 { 957 955 /* 'True' unless feature restricted: */ … … 965 963 } 966 964 967 Qt::AlignmentFlag UIExtraDataManager::miniToolbarAlignment(const QString &strID) const965 Qt::AlignmentFlag UIExtraDataManager::miniToolbarAlignment(const QString &strID) 968 966 { 969 967 /* Return Qt::AlignBottom unless MiniToolbarAlignment_Top specified separately: */ … … 987 985 } 988 986 989 QList<IndicatorType> UIExtraDataManager::restrictedStatusBarIndicators(const QString &strID) const987 QList<IndicatorType> UIExtraDataManager::restrictedStatusBarIndicators(const QString &strID) 990 988 { 991 989 /* Prepare result: */ … … 1003 1001 1004 1002 #ifdef Q_WS_MAC 1005 bool UIExtraDataManager::presentationModeEnabled(const QString &strID) const1003 bool UIExtraDataManager::presentationModeEnabled(const QString &strID) 1006 1004 { 1007 1005 /* 'False' unless feature allowed: */ … … 1009 1007 } 1010 1008 1011 bool UIExtraDataManager::realtimeDockIconUpdateEnabled(const QString &strID) const1009 bool UIExtraDataManager::realtimeDockIconUpdateEnabled(const QString &strID) 1012 1010 { 1013 1011 /* 'True' unless feature restricted: */ … … 1021 1019 } 1022 1020 1023 int UIExtraDataManager::realtimeDockIconUpdateMonitor(const QString &strID) const1021 int UIExtraDataManager::realtimeDockIconUpdateMonitor(const QString &strID) 1024 1022 { 1025 1023 return extraDataString(GUI_RealtimeDockIconUpdateMonitor, strID).toInt(); … … 1032 1030 #endif /* Q_WS_MAC */ 1033 1031 1034 bool UIExtraDataManager::passCADtoGuest(const QString &strID) const1032 bool UIExtraDataManager::passCADtoGuest(const QString &strID) 1035 1033 { 1036 1034 /* 'False' unless feature allowed: */ … … 1038 1036 } 1039 1037 1040 GuruMeditationHandlerType UIExtraDataManager::guruMeditationHandlerType(const QString &strID) const1038 GuruMeditationHandlerType UIExtraDataManager::guruMeditationHandlerType(const QString &strID) 1041 1039 { 1042 1040 return gpConverter->fromInternalString<GuruMeditationHandlerType>(extraDataString(GUI_GuruMeditationHandler, strID)); 1043 1041 } 1044 1042 1045 bool UIExtraDataManager::hidLedsSyncState(const QString &strID) const1043 bool UIExtraDataManager::hidLedsSyncState(const QString &strID) 1046 1044 { 1047 1045 /* 'True' unless feature restricted: */ … … 1049 1047 } 1050 1048 1051 QRect UIExtraDataManager::informationWindowGeometry(QWidget *pWidget, QWidget *pParentWidget, const QString &strID) const1049 QRect UIExtraDataManager::informationWindowGeometry(QWidget *pWidget, QWidget *pParentWidget, const QString &strID) 1052 1050 { 1053 1051 /* Get corresponding extra-data: */ … … 1092 1090 } 1093 1091 1094 bool UIExtraDataManager::informationWindowShouldBeMaximized(const QString &strID) const1092 bool UIExtraDataManager::informationWindowShouldBeMaximized(const QString &strID) 1095 1093 { 1096 1094 /* Get corresponding extra-data: */ … … 1116 1114 } 1117 1115 1118 MachineCloseAction UIExtraDataManager::defaultMachineCloseAction(const QString &strID) const1116 MachineCloseAction UIExtraDataManager::defaultMachineCloseAction(const QString &strID) 1119 1117 { 1120 1118 return gpConverter->fromInternalString<MachineCloseAction>(extraDataString(GUI_DefaultCloseAction, strID)); 1121 1119 } 1122 1120 1123 MachineCloseAction UIExtraDataManager::restrictedMachineCloseActions(const QString &strID) const1121 MachineCloseAction UIExtraDataManager::restrictedMachineCloseActions(const QString &strID) 1124 1122 { 1125 1123 /* Prepare result: */ … … 1136 1134 } 1137 1135 1138 MachineCloseAction UIExtraDataManager::lastMachineCloseAction(const QString &strID) const1136 MachineCloseAction UIExtraDataManager::lastMachineCloseAction(const QString &strID) 1139 1137 { 1140 1138 return gpConverter->fromInternalString<MachineCloseAction>(extraDataString(GUI_LastCloseAction, strID)); … … 1146 1144 } 1147 1145 1148 QString UIExtraDataManager::machineCloseHookScript(const QString &strID) const1146 QString UIExtraDataManager::machineCloseHookScript(const QString &strID) 1149 1147 { 1150 1148 return extraDataString(GUI_CloseActionHook, strID); … … 1152 1150 1153 1151 #ifdef VBOX_WITH_DEBUGGER_GUI 1154 QString UIExtraDataManager::debugFlagValue(const QString &strDebugFlagKey) const1152 QString UIExtraDataManager::debugFlagValue(const QString &strDebugFlagKey) 1155 1153 { 1156 1154 return extraDataString(strDebugFlagKey).toLower().trimmed(); … … 1277 1275 } 1278 1276 1279 void UIExtraDataManager::hotloadMachineExtraDataMap(const QString &strID) const1277 void UIExtraDataManager::hotloadMachineExtraDataMap(const QString &strID) 1280 1278 { 1281 1279 /* Make sure it is valid ID: */ … … 1302 1300 } 1303 1301 1304 bool UIExtraDataManager::isFeatureAllowed(const QString &strKey, const QString &strID /* = GlobalID */) const1302 bool UIExtraDataManager::isFeatureAllowed(const QString &strKey, const QString &strID /* = GlobalID */) 1305 1303 { 1306 1304 /* Hot-load machine extra-data map if necessary: */ … … 1308 1306 hotloadMachineExtraDataMap(strID); 1309 1307 1310 /* Access corresponding map: */1311 ExtraDataMap &data = m_data[strID];1308 /* Read-only access corresponding map: */ 1309 const ExtraDataMap data = m_data.value(strID); 1312 1310 1313 1311 /* 'false' if value was not set: */ … … 1323 1321 } 1324 1322 1325 bool UIExtraDataManager::isFeatureRestricted(const QString &strKey, const QString &strID /* = GlobalID */) const1323 bool UIExtraDataManager::isFeatureRestricted(const QString &strKey, const QString &strID /* = GlobalID */) 1326 1324 { 1327 1325 /* Hot-load machine extra-data map if necessary: */ … … 1329 1327 hotloadMachineExtraDataMap(strID); 1330 1328 1331 /* Access corresponding map: */1332 ExtraDataMap &data = m_data[strID];1329 /* Read-only access corresponding map: */ 1330 const ExtraDataMap data = m_data.value(strID); 1333 1331 1334 1332 /* 'false' if value was not set: */ … … 1354 1352 } 1355 1353 1356 QString UIExtraDataManager::extraDataString(const QString &strKey, const QString &strID /* = GlobalID */) const1354 QString UIExtraDataManager::extraDataString(const QString &strKey, const QString &strID /* = GlobalID */) 1357 1355 { 1358 1356 /* Hot-load machine extra-data map if necessary: */ … … 1403 1401 } 1404 1402 1405 QStringList UIExtraDataManager::extraDataStringList(const QString &strKey, const QString &strID /* = GlobalID */) const1403 QStringList UIExtraDataManager::extraDataStringList(const QString &strKey, const QString &strID /* = GlobalID */) 1406 1404 { 1407 1405 /* Hot-load machine extra-data map if necessary: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r51927 r51928 79 79 * @{ */ 80 80 /** Returns the list of supressed messages for the Message/Popup center frameworks. */ 81 QStringList suppressedMessages() const;81 QStringList suppressedMessages(); 82 82 /** Defines the @a list of supressed messages for the Message/Popup center frameworks. */ 83 83 void setSuppressedMessages(const QStringList &list); 84 84 85 85 /** Returns the list of messages for the Message/Popup center frameworks with inverted check-box state. */ 86 QStringList messagesWithInvertedOption() const;86 QStringList messagesWithInvertedOption(); 87 87 88 88 #if !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG) 89 89 /** Returns version for which user wants to prevent BETA build warning. */ 90 QString preventBetaBuildWarningForVersion() const;90 QString preventBetaBuildWarningForVersion(); 91 91 #endif /* !defined(VBOX_BLEEDING_EDGE) && !defined(DEBUG) */ 92 92 /** @} */ … … 96 96 * @{ */ 97 97 /** Returns whether Application Update functionality enabled. */ 98 bool applicationUpdateEnabled() const;98 bool applicationUpdateEnabled(); 99 99 100 100 /** Returns Application Update data. */ 101 QString applicationUpdateData() const;101 QString applicationUpdateData(); 102 102 /** Defines Application Update data as @a strValue. */ 103 103 void setApplicationUpdateData(const QString &strValue); 104 104 105 105 /** Returns Application Update check counter. */ 106 qulonglong applicationUpdateCheckCounter() const;106 qulonglong applicationUpdateCheckCounter(); 107 107 /** Increments Application Update check counter. */ 108 108 void incrementApplicationUpdateCheckCounter(); … … 113 113 * @{ */ 114 114 /** Returns restricted global settings pages. */ 115 QList<GlobalSettingsPageType> restrictedGlobalSettingsPages() const;115 QList<GlobalSettingsPageType> restrictedGlobalSettingsPages(); 116 116 /** Returns restricted machine settings pages. */ 117 QList<MachineSettingsPageType> restrictedMachineSettingsPages(const QString &strID) const;117 QList<MachineSettingsPageType> restrictedMachineSettingsPages(const QString &strID); 118 118 /** @} */ 119 119 … … 121 121 * @{ */ 122 122 /** Returns shortcut overrides for shortcut-pool with @a strPoolExtraDataID. */ 123 QStringList shortcutOverrides(const QString &strPoolExtraDataID) const;123 QStringList shortcutOverrides(const QString &strPoolExtraDataID); 124 124 /** @} */ 125 125 … … 127 127 * @{ */ 128 128 /** Returns recent folder for hard-drives. */ 129 QString recentFolderForHardDrives() const;129 QString recentFolderForHardDrives(); 130 130 /** Returns recent folder for optical-disks. */ 131 QString recentFolderForOpticalDisks() const;131 QString recentFolderForOpticalDisks(); 132 132 /** Returns recent folder for floppy-disks. */ 133 QString recentFolderForFloppyDisks() const;133 QString recentFolderForFloppyDisks(); 134 134 /** Defines recent folder for hard-drives as @a strValue. */ 135 135 void setRecentFolderForHardDrives(const QString &strValue); … … 140 140 141 141 /** Returns the list of recently used hard-drives. */ 142 QStringList recentListOfHardDrives() const;142 QStringList recentListOfHardDrives(); 143 143 /** Returns the list of recently used optical-disk. */ 144 QStringList recentListOfOpticalDisks() const;144 QStringList recentListOfOpticalDisks(); 145 145 /** Returns the list of recently used floppy-disk. */ 146 QStringList recentListOfFloppyDisks() const;146 QStringList recentListOfFloppyDisks(); 147 147 /** Defines the list of recently used hard-drives as @a value. */ 148 148 void setRecentListOfHardDrives(const QStringList &value); … … 156 156 * @{ */ 157 157 /** Returns selector-window geometry using @a pWidget as the hint. */ 158 QRect selectorWindowGeometry(QWidget *pWidget) const;158 QRect selectorWindowGeometry(QWidget *pWidget); 159 159 /** Returns whether selector-window should be maximized. */ 160 bool selectorWindowShouldBeMaximized() const;160 bool selectorWindowShouldBeMaximized(); 161 161 /** Defines selector-window @a geometry and @a fMaximized state. */ 162 162 void setSelectorWindowGeometry(const QRect &geometry, bool fMaximized); 163 163 164 164 /** Returns selector-window splitter hints. */ 165 QList<int> selectorWindowSplitterHints() const;165 QList<int> selectorWindowSplitterHints(); 166 166 /** Defines selector-window splitter @a hints. */ 167 167 void setSelectorWindowSplitterHints(const QList<int> &hints); 168 168 169 169 /** Returns whether selector-window tool-bar visible. */ 170 bool selectorWindowToolBarVisible() const;170 bool selectorWindowToolBarVisible(); 171 171 /** Defines whether selector-window tool-bar @a fVisible. */ 172 172 void setSelectorWindowToolBarVisible(bool fVisible); 173 173 174 174 /** Returns whether selector-window status-bar visible. */ 175 bool selectorWindowStatusBarVisible() const;175 bool selectorWindowStatusBarVisible(); 176 176 /** Defines whether selector-window status-bar @a fVisible. */ 177 177 void setSelectorWindowStatusBarVisible(bool fVisible); … … 180 180 void clearSelectorWindowGroupsDefinitions(); 181 181 /** Returns selector-window chooser-pane' groups definitions for passed @a strGroupID. */ 182 QStringList selectorWindowGroupsDefinitions(const QString &strGroupID) const;182 QStringList selectorWindowGroupsDefinitions(const QString &strGroupID); 183 183 /** Defines selector-window chooser-pane' groups @a definitions for passed @a strGroupID. */ 184 184 void setSelectorWindowGroupsDefinitions(const QString &strGroupID, const QStringList &definitions); 185 185 186 186 /** Returns last-item ID of the item chosen in selector-window chooser-pane. */ 187 QString selectorWindowLastItemChosen() const;187 QString selectorWindowLastItemChosen(); 188 188 /** Defines @a lastItemID of the item chosen in selector-window chooser-pane. */ 189 189 void setSelectorWindowLastItemChosen(const QString &strItemID); … … 195 195 196 196 /** Returns selector-window details-pane' preview update interval. */ 197 PreviewUpdateIntervalType selectorWindowPreviewUpdateInterval() const;197 PreviewUpdateIntervalType selectorWindowPreviewUpdateInterval(); 198 198 /** Defines selector-window details-pane' preview update @a interval. */ 199 199 void setSelectorWindowPreviewUpdateInterval(PreviewUpdateIntervalType interval); … … 211 211 * @{ */ 212 212 /** Returns whether machine should be shown in selector-window chooser-pane. */ 213 bool showMachineInSelectorChooser(const QString &strID) const;213 bool showMachineInSelectorChooser(const QString &strID); 214 214 /** Returns whether machine should be shown in selector-window details-pane. */ 215 bool showMachineInSelectorDetails(const QString &strID) const;215 bool showMachineInSelectorDetails(const QString &strID); 216 216 217 217 /** Returns whether machine reconfiguration enabled. */ 218 bool machineReconfigurationEnabled(const QString &strID) const;218 bool machineReconfigurationEnabled(const QString &strID); 219 219 /** Returns whether machine snapshot operations enabled. */ 220 bool machineSnapshotOperationsEnabled(const QString &strID) const;220 bool machineSnapshotOperationsEnabled(const QString &strID); 221 221 222 222 /** Returns whether this machine is first time started. */ 223 bool machineFirstTimeStarted(const QString &strID) const;223 bool machineFirstTimeStarted(const QString &strID); 224 224 /** Returns whether this machine is fFirstTimeStarted. */ 225 225 void setMachineFirstTimeStarted(bool fFirstTimeStarted, const QString &strID); … … 227 227 #ifndef Q_WS_MAC 228 228 /** Except Mac OS X: Returns redefined machine-window icon names. */ 229 QStringList machineWindowIconNames(const QString &strID) const;229 QStringList machineWindowIconNames(const QString &strID); 230 230 /** Except Mac OS X: Returns redefined machine-window name postfix. */ 231 QString machineWindowNamePostfix(const QString &strID) const;231 QString machineWindowNamePostfix(const QString &strID); 232 232 #endif /* !Q_WS_MAC */ 233 233 234 234 /** Returns geometry for machine-window with @a uScreenIndex in @a visualStateType. */ 235 QRect machineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID) const;235 QRect machineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID); 236 236 /** Returns whether machine-window with @a uScreenIndex in @a visualStateType should be maximized. */ 237 bool machineWindowShouldBeMaximized(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID) const;237 bool machineWindowShouldBeMaximized(UIVisualStateType visualStateType, ulong uScreenIndex, const QString &strID); 238 238 /** Defines @a geometry and @a fMaximized state for machine-window with @a uScreenIndex in @a visualStateType. */ 239 239 void setMachineWindowGeometry(UIVisualStateType visualStateType, ulong uScreenIndex, const QRect &geometry, bool fMaximized, const QString &strID); 240 240 241 241 /** Returns restricted Runtime UI menu types. */ 242 RuntimeMenuType restrictedRuntimeMenuTypes(const QString &strID) const;242 RuntimeMenuType restrictedRuntimeMenuTypes(const QString &strID); 243 243 #ifdef Q_WS_MAC 244 244 /** Mac OS X: Returns restricted Runtime UI action types for Application menu. */ 245 RuntimeMenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QString &strID) const;245 RuntimeMenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QString &strID); 246 246 #endif /* Q_WS_MAC */ 247 247 /** Returns restricted Runtime UI action types for Machine menu. */ 248 RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QString &strID) const;248 RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QString &strID); 249 249 /** Returns restricted Runtime UI action types for View menu. */ 250 RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QString &strID) const;250 RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QString &strID); 251 251 /** Returns restricted Runtime UI action types for Devices menu. */ 252 RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QString &strID) const;252 RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QString &strID); 253 253 #ifdef VBOX_WITH_DEBUGGER_GUI 254 254 /** Returns restricted Runtime UI action types for Debugger menu. */ 255 RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QString &strID) const;255 RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QString &strID); 256 256 #endif /* VBOX_WITH_DEBUGGER_GUI */ 257 257 /** Returns restricted Runtime UI action types for Help menu. */ 258 RuntimeMenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QString &strID) const;258 RuntimeMenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QString &strID); 259 259 260 260 /** Returns restricted Runtime UI visual-states. */ 261 UIVisualStateType restrictedVisualStates(const QString &strID) const;261 UIVisualStateType restrictedVisualStates(const QString &strID); 262 262 263 263 /** Returns requested Runtime UI visual-state. */ 264 UIVisualStateType requestedVisualState(const QString &strID) const;264 UIVisualStateType requestedVisualState(const QString &strID); 265 265 /** Defines requested Runtime UI visual-state as @a visualState. */ 266 266 void setRequestedVisualState(UIVisualStateType visualState, const QString &strID); 267 267 268 268 /** Returns whether guest-screen auto-resize according machine-window size is enabled. */ 269 bool guestScreenAutoResizeEnabled(const QString &strID) const;269 bool guestScreenAutoResizeEnabled(const QString &strID); 270 270 /** Defines whether guest-screen auto-resize according machine-window size is @a fEnabled. */ 271 271 void setGuestScreenAutoResizeEnabled(bool fEnabled, const QString &strID); 272 272 273 273 /** Returns last guest-screen size-hint for screen with @a uScreenIndex. */ 274 QSize lastGuestSizeHint(ulong uScreenIndex, const QString &strID) const;274 QSize lastGuestSizeHint(ulong uScreenIndex, const QString &strID); 275 275 /** Defines last guest-screen @a sizeHint for screen with @a uScreenIndex. */ 276 276 void setLastGuestSizeHint(ulong uScreenIndex, const QSize &sizeHint, const QString &strID); 277 277 /** Returns whether guest size-hint was for full or seamless screen with @a uScreenIndex. */ 278 bool wasLastGuestSizeHintForFullScreen(ulong uScreenIndex, const QString &strID) const;278 bool wasLastGuestSizeHintForFullScreen(ulong uScreenIndex, const QString &strID); 279 279 /** Defines whether guest size-hint @a fWas for full or seamless screen with @a uScreenIndex. */ 280 280 void markLastGuestSizeHintAsFullScreen(ulong uScreenIndex, bool fWas, const QString &strID); … … 286 286 287 287 /** Returns whether automatic mounting/unmounting of guest-screens enabled. */ 288 bool autoMountGuestScreensEnabled(const QString &strID) const;288 bool autoMountGuestScreensEnabled(const QString &strID); 289 289 290 290 #ifdef VBOX_WITH_VIDEOHWACCEL 291 291 /** Returns whether 2D acceleration should use linear sretch. */ 292 bool useLinearStretch(const QString &strID) const;292 bool useLinearStretch(const QString &strID); 293 293 /** Returns whether 2D acceleration should use YV12 pixel format. */ 294 bool usePixelFormatYV12(const QString &strID) const;294 bool usePixelFormatYV12(const QString &strID); 295 295 /** Returns whether 2D acceleration should use UYVY pixel format. */ 296 bool usePixelFormatUYVY(const QString &strID) const;296 bool usePixelFormatUYVY(const QString &strID); 297 297 /** Returns whether 2D acceleration should use YUY2 pixel format. */ 298 bool usePixelFormatYUY2(const QString &strID) const;298 bool usePixelFormatYUY2(const QString &strID); 299 299 /** Returns whether 2D acceleration should use AYUV pixel format. */ 300 bool usePixelFormatAYUV(const QString &strID) const;300 bool usePixelFormatAYUV(const QString &strID); 301 301 #endif /* VBOX_WITH_VIDEOHWACCEL */ 302 302 303 303 /** Returns Runtime UI HiDPI optimization type. */ 304 HiDPIOptimizationType hiDPIOptimizationType(const QString &strID) const;304 HiDPIOptimizationType hiDPIOptimizationType(const QString &strID); 305 305 306 306 /** Returns whether mini-toolbar is enabled for full and seamless screens. */ 307 bool miniToolbarEnabled(const QString &strID) const;307 bool miniToolbarEnabled(const QString &strID); 308 308 /** Defines whether mini-toolbar is @a fEnabled for full and seamless screens. */ 309 309 void setMiniToolbarEnabled(bool fEnabled, const QString &strID); 310 310 311 311 /** Returns whether mini-toolbar should auto-hide itself. */ 312 bool autoHideMiniToolbar(const QString &strID) const;312 bool autoHideMiniToolbar(const QString &strID); 313 313 /** Defines whether mini-toolbar should @a fAutoHide itself. */ 314 314 void setAutoHideMiniToolbar(bool fAutoHide, const QString &strID); 315 315 316 316 /** Returns mini-toolbar alignment. */ 317 Qt::AlignmentFlag miniToolbarAlignment(const QString &strID) const;317 Qt::AlignmentFlag miniToolbarAlignment(const QString &strID); 318 318 /** Returns mini-toolbar @a alignment. */ 319 319 void setMiniToolbarAlignment(Qt::AlignmentFlag alignment, const QString &strID); 320 320 321 321 /** Returns restricted Runtime UI status-bar indicators. */ 322 QList<IndicatorType> restrictedStatusBarIndicators(const QString &strID) const;322 QList<IndicatorType> restrictedStatusBarIndicators(const QString &strID); 323 323 324 324 #ifdef Q_WS_MAC 325 325 /** Mac OS X: Returns whether 'presentation mode' enabled. */ 326 bool presentationModeEnabled(const QString &strID) const;326 bool presentationModeEnabled(const QString &strID); 327 327 328 328 /** Mac OS X: Returns whether Dock icon should be updated at runtime. */ 329 bool realtimeDockIconUpdateEnabled(const QString &strID) const;329 bool realtimeDockIconUpdateEnabled(const QString &strID); 330 330 /** Mac OS X: Defines whether Dock icon update should be fEnabled at runtime. */ 331 331 void setRealtimeDockIconUpdateEnabled(bool fEnabled, const QString &strID); 332 332 333 333 /** Mac OS X: Returns guest-screen which Dock icon should reflect at runtime. */ 334 int realtimeDockIconUpdateMonitor(const QString &strID) const;334 int realtimeDockIconUpdateMonitor(const QString &strID); 335 335 /** Mac OS X: Defines guest-screen @a iIndex which Dock icon should reflect at runtime. */ 336 336 void setRealtimeDockIconUpdateMonitor(int iIndex, const QString &strID); … … 338 338 339 339 /** Returns whether machine should pass CAD to guest. */ 340 bool passCADtoGuest(const QString &strID) const;340 bool passCADtoGuest(const QString &strID); 341 341 342 342 /** Returns redefined guru-meditation handler type. */ 343 GuruMeditationHandlerType guruMeditationHandlerType(const QString &strID) const;343 GuruMeditationHandlerType guruMeditationHandlerType(const QString &strID); 344 344 345 345 /** Returns whether machine should perform HID LEDs synchronization. */ 346 bool hidLedsSyncState(const QString &strID) const;346 bool hidLedsSyncState(const QString &strID); 347 347 /** @} */ 348 348 … … 350 350 * @{ */ 351 351 /** Returns information-window geometry using @a pWidget and @a pParentWidget as hints. */ 352 QRect informationWindowGeometry(QWidget *pWidget, QWidget *pParentWidget, const QString &strID) const;352 QRect informationWindowGeometry(QWidget *pWidget, QWidget *pParentWidget, const QString &strID); 353 353 /** Returns whether information-window should be maximized or not. */ 354 bool informationWindowShouldBeMaximized(const QString &strID) const;354 bool informationWindowShouldBeMaximized(const QString &strID); 355 355 /** Defines information-window @a geometry and @a fMaximized state. */ 356 356 void setInformationWindowGeometry(const QRect &geometry, bool fMaximized, const QString &strID); … … 360 360 * @{ */ 361 361 /** Returns default machine close action. */ 362 MachineCloseAction defaultMachineCloseAction(const QString &strID) const;362 MachineCloseAction defaultMachineCloseAction(const QString &strID); 363 363 /** Returns restricted machine close actions. */ 364 MachineCloseAction restrictedMachineCloseActions(const QString &strID) const;364 MachineCloseAction restrictedMachineCloseActions(const QString &strID); 365 365 366 366 /** Returns last machine close action. */ 367 MachineCloseAction lastMachineCloseAction(const QString &strID) const;367 MachineCloseAction lastMachineCloseAction(const QString &strID); 368 368 /** Defines last @a machineCloseAction. */ 369 369 void setLastMachineCloseAction(MachineCloseAction machineCloseAction, const QString &strID); 370 370 371 371 /** Returns machine close hook script name as simple string. */ 372 QString machineCloseHookScript(const QString &strID) const;372 QString machineCloseHookScript(const QString &strID); 373 373 /** @} */ 374 374 … … 377 377 * @{ */ 378 378 /** Returns debug flag value for passed @a strDebugFlagKey. */ 379 QString debugFlagValue(const QString &strDebugFlagKey) const;379 QString debugFlagValue(const QString &strDebugFlagKey); 380 380 /** @} */ 381 381 #endif /* VBOX_WITH_DEBUGGER_GUI */ … … 407 407 408 408 /** Hot-load machine extra-data map. */ 409 void hotloadMachineExtraDataMap(const QString &strID) const;409 void hotloadMachineExtraDataMap(const QString &strID); 410 410 411 411 /** Determines whether feature corresponding to passed @a strKey is allowed. 412 412 * If valid @a strID is set => applies to machine extra-data, otherwise => to global one. */ 413 bool isFeatureAllowed(const QString &strKey, const QString &strID = GlobalID) const;413 bool isFeatureAllowed(const QString &strKey, const QString &strID = GlobalID); 414 414 /** Determines whether feature corresponding to passed @a strKey is restricted. 415 415 * If valid @a strID is set => applies to machine extra-data, otherwise => to global one. */ 416 bool isFeatureRestricted(const QString &strKey, const QString &strID = GlobalID) const;416 bool isFeatureRestricted(const QString &strKey, const QString &strID = GlobalID); 417 417 418 418 /** Translates bool flag into 'allowed' value. */ … … 423 423 /** Returns extra-data value corresponding to passed @a strKey as QString. 424 424 * If valid @a strID is set => applies to machine extra-data, otherwise => to global one. */ 425 QString extraDataString(const QString &strKey, const QString &strID = GlobalID) const;425 QString extraDataString(const QString &strKey, const QString &strID = GlobalID); 426 426 /** Defines extra-data value corresponding to passed @a strKey as strValue. 427 427 * If valid @a strID is set => applies to machine extra-data, otherwise => to global one. */ … … 430 430 /** Returns extra-data value corresponding to passed @a strKey as QStringList. 431 431 * If valid @a strID is set => applies to machine extra-data, otherwise => to global one. */ 432 QStringList extraDataStringList(const QString &strKey, const QString &strID = GlobalID) const;432 QStringList extraDataStringList(const QString &strKey, const QString &strID = GlobalID); 433 433 /** Defines extra-data value corresponding to passed @a strKey as strValue. 434 434 * If valid @a strID is set => applies to machine extra-data, otherwise => to global one. */ … … 448 448 449 449 /** Holds extra-data map instance. */ 450 mutableQMap<QString, ExtraDataMap> m_data;450 QMap<QString, ExtraDataMap> m_data; 451 451 }; 452 452
Note:
See TracChangeset
for help on using the changeset viewer.