Changeset 51928 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
- Timestamp:
- Jul 8, 2014 12:46:54 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94819
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.