ZaStoGram_desktop/Telegram/SourceFiles/e2e_cloud/desktop/protected_groups_box.h
2026-08-02 15:06:02 +03:00

50 lines
1.1 KiB
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
#include "ui/layers/box_content.h"
namespace Ui {
class FlatLabel;
class PasswordInput;
class RoundButton;
} // namespace Ui
namespace Window {
class SessionController;
} // namespace Window
namespace E2ECloud {
class ProtectedGroupsBox final : public Ui::BoxContent {
public:
ProtectedGroupsBox(
QWidget*,
not_null<Window::SessionController*> controller);
protected:
void prepare() override;
void setInnerFocus() override;
void resizeEvent(QResizeEvent *event) override;
private:
void refresh();
void updateControlsGeometry();
void submit();
void showGroupCreation();
const not_null<Window::SessionController*> _controller;
object_ptr<Ui::FlatLabel> _status;
object_ptr<Ui::PasswordInput> _password;
object_ptr<Ui::PasswordInput> _confirm;
object_ptr<Ui::RoundButton> _manage;
object_ptr<Ui::RoundButton> _newGroup;
object_ptr<Ui::RoundButton> _lock;
};
} // namespace E2ECloud