2018-11-26 15:55:02 +04:00
|
|
|
/*
|
|
|
|
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();
|
|
|
|
|
2019-01-21 17:42:21 +04:00
|
|
|
bool InternalPassportLink(const QString &url);
|
|
|
|
|
|
|
|
bool StartUrlRequiresActivate(const QString &url);
|
|
|
|
|
2018-11-26 15:55:02 +04:00
|
|
|
} // namespace Core
|