ZaStoGram_desktop/Telegram/SourceFiles/platform/mac/widget_helper_mac.h
John Preston 873b9db7a9 Turn on Enhanced Security for the macOS widget helper
Task: 2026/11/20/turn-on-enhanced-security-for-the-macos-widget-helper
2026-11-22 22:36:09 +04:00

28 lines
738 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include <chrono>
namespace Platform::WidgetHelper::details {
constexpr auto kRelayEndWait = std::chrono::milliseconds(1000);
struct RequirementText {
QString text;
QString check;
QString error;
};
[[nodiscard]] QString SystemError(const char *call, int error);
[[nodiscard]] QByteArray BundledPath(const char *relative);
[[nodiscard]] RequirementText HelperRequirementText(
const QString &identifier,
const QByteArray &path);
} // namespace Platform::WidgetHelper::details