2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-27 12:47:16 +00:00
tdesktop/Telegram/SourceFiles/boxes/premium_preview_box.h

63 lines
1.3 KiB
C
Raw Normal View History

/*
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
class DocumentData;
namespace Ui {
class GenericBox;
} // namespace Ui
namespace Window {
class SessionController;
} // namespace Window
namespace Main {
class Session;
} // namespace Main
void ShowStickerPreviewBox(
not_null<Window::SessionController*> controller,
not_null<DocumentData*> document);
void DoubledLimitsPreviewBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
enum class PremiumPreview {
2022-06-10 12:03:47 +04:00
MoreUpload,
FasterDownload,
VoiceToText,
NoAds,
Reactions,
Stickers,
2022-07-15 12:45:44 +03:00
AnimatedEmoji,
2022-06-10 12:03:47 +04:00
AdvancedChatManagement,
ProfileBadge,
AnimatedUserpics,
kCount,
};
enum class ReactionDisableType {
None,
Group,
Channel,
};
void ShowPremiumPreviewBox(
not_null<Window::SessionController*> controller,
PremiumPreview section,
const base::flat_map<QString, ReactionDisableType> &disabled = {});
2022-06-14 13:42:43 +04:00
void ShowPremiumPreviewToBuy(
not_null<Window::SessionController*> controller,
PremiumPreview section,
Fn<void()> hiddenCallback);
void PremiumUnavailableBox(not_null<Ui::GenericBox*> box);