1 // This file is part of Desktop App Toolkit, 2 // a set of libraries for developing nice desktop applications. 3 // 4 // For license and copyright information please follow this link: 5 // https://github.com/desktop-app/legal/blob/master/LEGAL 6 // 7 #pragma once 8 9 #include "base/platform/base_platform_info.h" 10 11 namespace Platform { 12 WhySystemBecomesOutdated()13inline OutdateReason WhySystemBecomesOutdated() { 14 return OutdateReason::IsOld; 15 } 16 IsMac()17inline constexpr bool IsMac() { 18 return true; 19 } 20 IsMacStoreBuild()21inline constexpr bool IsMacStoreBuild() { 22 #ifdef OS_MAC_STORE 23 return true; 24 #else // OS_MAC_STORE 25 return false; 26 #endif // OS_MAC_STORE 27 } 28 IsWindows()29inline constexpr bool IsWindows() { return false; } IsWindows32Bit()30inline constexpr bool IsWindows32Bit() { return false; } IsWindows64Bit()31inline constexpr bool IsWindows64Bit() { return false; } IsWindowsStoreBuild()32inline constexpr bool IsWindowsStoreBuild() { return false; } IsWindows7OrGreater()33inline bool IsWindows7OrGreater() { return false; } IsWindows8OrGreater()34inline bool IsWindows8OrGreater() { return false; } IsWindows8Point1OrGreater()35inline bool IsWindows8Point1OrGreater() { return false; } IsWindows10OrGreater()36inline bool IsWindows10OrGreater() { return false; } IsWindows11OrGreater()37inline bool IsWindows11OrGreater() { return false; } IsLinux()38inline constexpr bool IsLinux() { return false; } IsX11()39inline bool IsX11() { return false; } IsWayland()40inline bool IsWayland() { return false; } GetLibcName()41inline QString GetLibcName() { return QString(); } GetLibcVersion()42inline QString GetLibcVersion() { return QString(); } GetWindowManager()43inline QString GetWindowManager() { return QString(); } 44 45 void OpenInputMonitoringPrivacySettings(); 46 void OpenDesktopCapturePrivacySettings(); 47 void OpenAccessibilityPrivacySettings(); 48 49 } // namespace Platform 50