tdesktop/Telegram/SourceFiles/core/local_url_handlers.h
John Preston 59ecf375b0 Move tg:// handlers to a separate module.
Also move joinGroupByHash and stickerSetBox from MainWidget.
2018-11-26 17:31:13 +04:00

25 lines
565 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();
} // namespace Core