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()13 inline OutdateReason WhySystemBecomesOutdated() {
14 	return OutdateReason::IsOld;
15 }
16 
IsMac()17 inline constexpr bool IsMac() {
18 	return true;
19 }
20 
IsMacStoreBuild()21 inline 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()29 inline constexpr bool IsWindows() { return false; }
IsWindows32Bit()30 inline constexpr bool IsWindows32Bit() { return false; }
IsWindows64Bit()31 inline constexpr bool IsWindows64Bit() { return false; }
IsWindowsStoreBuild()32 inline constexpr bool IsWindowsStoreBuild() { return false; }
IsWindows7OrGreater()33 inline bool IsWindows7OrGreater() { return false; }
IsWindows8OrGreater()34 inline bool IsWindows8OrGreater() { return false; }
IsWindows8Point1OrGreater()35 inline bool IsWindows8Point1OrGreater() { return false; }
IsWindows10OrGreater()36 inline bool IsWindows10OrGreater() { return false; }
IsWindows11OrGreater()37 inline bool IsWindows11OrGreater() { return false; }
IsLinux()38 inline constexpr bool IsLinux() { return false; }
IsX11()39 inline bool IsX11() { return false; }
IsWayland()40 inline bool IsWayland() { return false; }
GetLibcName()41 inline QString GetLibcName() { return QString(); }
GetLibcVersion()42 inline QString GetLibcVersion() { return QString(); }
GetWindowManager()43 inline QString GetWindowManager() { return QString(); }
44 
45 void OpenInputMonitoringPrivacySettings();
46 void OpenDesktopCapturePrivacySettings();
47 void OpenAccessibilityPrivacySettings();
48 
49 } // namespace Platform
50