VirtualBox

Changeset 89700 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 15, 2021 10:21:35 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145148
Message:

FE/Qt: bugref:3355. More infrastucture for host screen saver disabling

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r89688 r89700  
    47434743            else if (strKey == GUI_CloudConsoleManager_Restrictions)
    47444744                emit sigCloudConsoleManagerRestrictionChange();
     4745            else if (strKey == GUI_DisableHostScreenSaver)
     4746                emit sigDisableHostScreenSaverStateChange(isFeatureAllowed(GUI_DisableHostScreenSaver));
    47454747            /* Details categories: */
    47464748            else if (strKey == GUI_Details_Elements)
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r89688 r89700  
    115115    void sigDockIconOverlayAppearanceChange(bool fEnabled);
    116116#endif /* VBOX_WS_MAC */
     117
     118#ifdef VBOX_WS_X11
     119    /* Is emitted when host screen saver inhibition state changes. */
     120    void sigDisableHostScreenSaverStateChange(bool fDisable);
     121#endif
    117122
    118123public:
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r89040 r89700  
    708708{
    709709    m_fIsHidLedsSyncEnabled = fEnabled;
     710}
     711
     712void UIMachineLogic::sltDisableHostScreenSaverStateChanged(bool fDisabled)
     713{
     714    Q_UNUSED(fDisabled);
    710715}
    711716
     
    14871492    /* HID LEDs sync initialization: */
    14881493    sltSwitchKeyboardLedsToGuestLeds();
     1494    /* */
     1495#if defined(VBOX_WS_X11)
     1496    connect(gEDataManager, &UIExtraDataManager::sigDisableHostScreenSaverStateChange,
     1497            this, &UIMachineLogic::sltDisableHostScreenSaverStateChanged);
     1498#endif
    14891499}
    14901500
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r89040 r89700  
    351351    void sltSwitchKeyboardLedsToPreviousLeds();
    352352
     353    /* Handle disabling/enabling host screen saver. */
     354    void sltDisableHostScreenSaverStateChanged(bool fDisabled);
     355
    353356    /** Show Global Preferences. */
    354357    void sltShowGlobalPreferences();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r87251 r89700  
    195195
    196196        bool fIsUSBEmpty = host.GetUSBDevices().size() == 0;
     197        printf("%d %d %d warning\n", host.lastRC(), host.isReallyOk(), host.isWarning());
     198
    197199        if (fIsUSBEmpty)
    198200        {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette