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