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:
25
Telegram/SourceFiles/core/local_url_handlers.h
Normal file
25
Telegram/SourceFiles/core/local_url_handlers.h
Normal 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
|
Reference in New Issue
Block a user