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"
|
|
|
|
|
2023-05-18 13:46:24 +00:00
|
|
|
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,
|
2022-05-23 14:46:15 +00:00
|
|
|
not_null<Window::SessionNavigation*> navigation,
|
|
|
|
Fn<void()> retry);
|
2022-05-06 12:46:43 +00:00
|
|
|
void FilterChatsLimitBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
2022-06-07 05:05:33 +00:00
|
|
|
not_null<Main::Session*> session,
|
2023-07-30 03:02:14 +00:00
|
|
|
int currentCount,
|
|
|
|
bool include);
|
2023-04-03 13:42:01 +00:00
|
|
|
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);
|
2023-04-03 13:42:01 +00:00
|
|
|
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,
|
2022-06-06 12:20:54 +00:00
|
|
|
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);
|
2022-05-11 09:59:38 +00:00
|
|
|
void CaptionLimitBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
2022-06-06 12:00:23 +00:00
|
|
|
not_null<Main::Session*> session,
|
2023-05-18 13:46:24 +00:00
|
|
|
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,
|
2023-05-18 13:46:24 +00:00
|
|
|
int remove,
|
|
|
|
const style::PremiumLimits *stOverride = nullptr);
|
2022-05-23 14:46:15 +00:00
|
|
|
void FileSizeLimitBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
2022-06-06 11:15:56 +00:00
|
|
|
not_null<Main::Session*> session,
|
2023-05-18 13:46:24 +00:00
|
|
|
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);
|
2022-05-23 14:46:15 +00:00
|
|
|
|
|
|
|
[[nodiscard]] QString LimitsPremiumRef(const QString &addition);
|