tdesktop/Telegram/SourceFiles/boxes/premium_limits_box.h

86 lines
2.3 KiB
C
Raw Normal View History

2022-05-06 12:46:43 +00:00
/*
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/generic_box.h"
namespace style {
struct PremiumLimits;
} // namespace style
2022-11-08 14:49:53 +00:00
namespace Data {
class Forum;
} // namespace Data
2022-05-06 12:46:43 +00:00
namespace Main {
class Session;
} // namespace Main
2022-05-11 09:59:38 +00:00
namespace Window {
class SessionNavigation;
} // namespace Window
2022-05-06 12:46:43 +00:00
void ChannelsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
void PublicLinksLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Window::SessionNavigation*> navigation,
Fn<void()> retry);
2022-05-06 12:46:43 +00:00
void FilterChatsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
int currentCount,
bool include);
void FilterLinksLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
2022-05-06 12:46:43 +00:00
void FiltersLimitBox(
not_null<Ui::GenericBox*> box,
2023-09-12 17:00:39 +00:00
not_null<Main::Session*> session,
std::optional<int> filtersCountOverride);
void ShareableFiltersLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
2022-05-06 12:46:43 +00:00
void FilterPinsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
FilterId filterId);
2022-05-09 13:09:46 +00:00
void FolderPinsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
2022-05-06 15:13:25 +00:00
void PinsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
2022-11-08 14:49:53 +00:00
void ForumPinsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Data::Forum*> forum);
2023-12-31 04:49:55 +00:00
void SublistsPinsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
2022-05-11 09:59:38 +00:00
void CaptionLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
int remove,
const style::PremiumLimits *stOverride = nullptr);
2022-05-11 09:59:38 +00:00
void CaptionLimitReachedBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
int remove,
const style::PremiumLimits *stOverride = nullptr);
void FileSizeLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
uint64 fileSizeBytes,
const style::PremiumLimits *stOverride = nullptr);
2022-05-31 10:32:07 +00:00
void AccountsLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
[[nodiscard]] QString LimitsPremiumRef(const QString &addition);