mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
26 lines
696 B
C++
26 lines
696 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 "translate_provider.h"
|
|
|
|
namespace Platform {
|
|
|
|
[[nodiscard]] bool IsTranslateProviderAvailable();
|
|
[[nodiscard]] std::unique_ptr<Ui::TranslateProvider> CreateTranslateProvider();
|
|
|
|
} // namespace Platform
|
|
|
|
#if defined Q_OS_WINRT || defined Q_OS_WIN
|
|
#include "platform/win/translate_provider_win.h"
|
|
#elif defined Q_OS_MAC
|
|
#include "platform/mac/translate_provider_mac.h"
|
|
#else
|
|
#include "platform/linux/translate_provider_linux.h"
|
|
#endif
|