mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
/*
|
|
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 "data/data_star_gift.h"
|
|
|
|
namespace Data {
|
|
struct UniqueGift;
|
|
} // namespace Data
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Ui {
|
|
|
|
class Show;
|
|
|
|
struct GiftForCraftEntry {
|
|
std::shared_ptr<Data::UniqueGift> unique;
|
|
Data::SavedStarGiftId manageId;
|
|
};
|
|
|
|
void ShowGiftCraftInfoBox(
|
|
not_null<Window::SessionController*> controller,
|
|
std::shared_ptr<Data::UniqueGift> gift,
|
|
Data::SavedStarGiftId savedId);
|
|
|
|
void ShowTestGiftCraftBox(
|
|
not_null<Window::SessionController*> controller,
|
|
std::vector<GiftForCraftEntry> gifts);
|
|
|
|
[[nodiscard]] bool ShowCraftLaterError(
|
|
std::shared_ptr<Show> show,
|
|
std::shared_ptr<Data::UniqueGift> gift);
|
|
|
|
void ShowCraftLaterError(
|
|
std::shared_ptr<Show> show,
|
|
TimeId when);
|
|
|
|
[[nodiscard]] bool ShowCraftAddressError(
|
|
std::shared_ptr<Show> show,
|
|
std::shared_ptr<Data::UniqueGift> gift);
|
|
|
|
} // namespace Ui
|