mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 05:29:23 +00:00
40 lines
812 B
C++
40 lines
812 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
|
|
|
|
template <typename Object>
|
|
class object_ptr;
|
|
|
|
class ChannelData;
|
|
|
|
namespace Ui {
|
|
class RpWidget;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace AntiSpamMenu {
|
|
|
|
class AntiSpamValidator final {
|
|
public:
|
|
AntiSpamValidator(
|
|
not_null<Window::SessionController*> controller,
|
|
not_null<ChannelData*> channel);
|
|
|
|
[[nodiscard]] object_ptr<Ui::RpWidget> createButton() const;
|
|
|
|
private:
|
|
const not_null<ChannelData*> _channel;
|
|
const not_null<Window::SessionController*> _controller;
|
|
|
|
};
|
|
|
|
} // namespace AntiSpamMenu
|