Changeset 103321 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 12, 2024 5:11:53 PM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 161622
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r103320 r103321 39 39 #include "UISettingsDefs.h" 40 40 #include "UITranslator.h" 41 #if defined(VBOX_WS_NIX) && !defined(VBOX_GUI_WITH_CUSTOMIZATIONS1) 42 # include "UIDesktopWidgetWatchdog.h" 43 #endif 41 44 42 45 /* COM includes: */ … … 401 404 } 402 405 406 #if defined(VBOX_WS_NIX) && !defined(VBOX_GUI_WITH_CUSTOMIZATIONS1) 403 407 /* DesktopWatchdogPolicy_SynthTest <= QString: */ 404 408 template<> SHARED_LIBRARY_STUFF DesktopWatchdogPolicy_SynthTest UIConverter::fromInternalString<DesktopWatchdogPolicy_SynthTest>(const QString &strPolicyType) const … … 414 418 return DesktopWatchdogPolicy_SynthTest_Both; 415 419 } 420 #endif /* VBOX_WS_NIX && !VBOX_GUI_WITH_CUSTOMIZATIONS1 */ 416 421 417 422 /* QString <= UIExtraDataMetaDefs::DialogType: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.cpp
r98999 r103321 38 38 QStringList UIDefs::VBoxExtPackFileExts = QStringList() << "vbox-extpack"; 39 39 QStringList UIDefs::OVFFileExts = QStringList() << "ovf" << "ova"; 40 41 /** Environment variable names: */42 const char *UIDefs::VBox_DesktopWatchdogPolicy_SynthTest = "VBOX_DESKTOPWATCHDOGPOLICY_SYNTHTEST"; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r103320 r103321 86 86 /** Allowed OVF file extensions. */ 87 87 SHARED_LIBRARY_STUFF extern QStringList OVFFileExts; 88 89 /** Holds environment variable name for Desktop Watchdog / Synthetic Test policy type. */90 SHARED_LIBRARY_STUFF extern const char *VBox_DesktopWatchdogPolicy_SynthTest;91 88 } 92 89 using namespace UIDefs /* if header included */; … … 162 159 163 160 164 /** Desktop Watchdog / Synthetic Test policy type. */165 enum DesktopWatchdogPolicy_SynthTest166 {167 DesktopWatchdogPolicy_SynthTest_Disabled,168 DesktopWatchdogPolicy_SynthTest_ManagerOnly,169 DesktopWatchdogPolicy_SynthTest_MachineOnly,170 DesktopWatchdogPolicy_SynthTest_Both171 };172 Q_DECLARE_METATYPE(DesktopWatchdogPolicy_SynthTest);173 174 175 161 #endif /* !FEQT_INCLUDED_SRC_globals_UIDefs_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.cpp
r102786 r103321 123 123 124 124 #if defined(VBOX_WS_NIX) && !defined(VBOX_GUI_WITH_CUSTOMIZATIONS1) 125 126 /* static */ 127 const QString 128 UIDesktopWidgetWatchdog::s_strVBoxDesktopWatchdogPolicySynthTest = "VBOX_DESKTOPWATCHDOGPOLICY_SYNTHTEST"; 125 129 126 130 /** QWidget extension used as … … 1003 1007 #if defined(VBOX_WS_NIX) && !defined(VBOX_GUI_WITH_CUSTOMIZATIONS1) 1004 1008 /* Load Synthetic Test policy: */ 1005 const QString strSynthTestPolicy = QString::fromLocal8Bit(qgetenv(VBox_DesktopWatchdogPolicy_SynthTest)); 1009 const QString strSynthTestPolicy = 1010 QString::fromLocal8Bit(qgetenv(s_strVBoxDesktopWatchdogPolicySynthTest.toLatin1().constData())); 1006 1011 m_enmSynthTestPolicy = gpConverter->fromInternalString<DesktopWatchdogPolicy_SynthTest>(strSynthTestPolicy); 1007 1012 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.h
r100064 r103321 42 42 /* GUI includes: */ 43 43 #include "UILibraryDefs.h" 44 #if defined(VBOX_WS_NIX) && !defined(VBOX_GUI_WITH_CUSTOMIZATIONS1)45 # include "UIDefs.h"46 #endif47 44 48 45 /* Forward declarations: */ 49 46 class QScreen; 47 48 #if defined(VBOX_WS_NIX) && !defined(VBOX_GUI_WITH_CUSTOMIZATIONS1) 49 /** Desktop Watchdog / Synthetic Test policy type. */ 50 enum DesktopWatchdogPolicy_SynthTest 51 { 52 DesktopWatchdogPolicy_SynthTest_Disabled, 53 DesktopWatchdogPolicy_SynthTest_ManagerOnly, 54 DesktopWatchdogPolicy_SynthTest_MachineOnly, 55 DesktopWatchdogPolicy_SynthTest_Both 56 }; 57 Q_DECLARE_METATYPE(DesktopWatchdogPolicy_SynthTest); 58 #endif /* VBOX_WS_NIX && !VBOX_GUI_WITH_CUSTOMIZATIONS1 */ 50 59 51 60 /** Singleton QObject extension used as desktop-widget … … 210 219 void cleanupExistingWorkers(); 211 220 221 /** Holds environment variable name for Desktop Watchdog / Synthetic Test policy type. */ 222 static const QString s_strVBoxDesktopWatchdogPolicySynthTest; 223 212 224 /** Holds the cached Synthetic Test policy. */ 213 225 DesktopWatchdogPolicy_SynthTest m_enmSynthTestPolicy;
Note:
See TracChangeset
for help on using the changeset viewer.