2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-26 12:27:12 +00:00
2019-01-23 12:51:58 +04:00

30 lines
665 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
namespace qthelp {
class RegularExpressionMatch;
} // namespace qthelp
namespace Core {
struct LocalUrlHandler {
QString expression;
Fn<bool(
const qthelp::RegularExpressionMatch &match,
const QVariant &context)> handler;
};
const std::vector<LocalUrlHandler> &LocalUrlHandlers();
bool InternalPassportLink(const QString &url);
bool StartUrlRequiresActivate(const QString &url);
} // namespace Core