tdesktop/Telegram/SourceFiles/boxes/premium_limits_box.h

61 lines
1.6 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 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);
2022-05-06 12:46:43 +00:00
void FiltersLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session);
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-05-11 09:59:38 +00:00
void CaptionLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
int remove);
2022-05-11 09:59:38 +00:00
void CaptionLimitReachedBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
int remove);
void FileSizeLimitBox(
not_null<Ui::GenericBox*> box,
not_null<Main::Session*> session,
uint64 fileSizeBytes);
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);