2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move tg:// handlers to a separate module.

Also move joinGroupByHash and stickerSetBox from MainWidget.
This commit is contained in:
John Preston
2018-11-26 15:55:02 +04:00
parent 338129faea
commit 59ecf375b0
30 changed files with 546 additions and 397 deletions

View File

@@ -0,0 +1,25 @@
/*
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();
} // namespace Core