mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
46 lines
1.2 KiB
C++
46 lines
1.2 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
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace ChatHelpers {
|
|
class Show;
|
|
} // namespace ChatHelpers
|
|
|
|
namespace Data {
|
|
struct UniqueGift;
|
|
class SavedStarGiftId;
|
|
} // namespace Data
|
|
|
|
void ShowTransferToBox(
|
|
not_null<Window::SessionController*> controller,
|
|
not_null<PeerData*> peer,
|
|
std::shared_ptr<Data::UniqueGift> gift,
|
|
Data::SavedStarGiftId savedId,
|
|
Fn<void()> closeParentBox);
|
|
|
|
void ShowTransferGiftBox(
|
|
not_null<Window::SessionController*> window,
|
|
std::shared_ptr<Data::UniqueGift> gift,
|
|
Data::SavedStarGiftId savedId);
|
|
|
|
void ShowBuyResaleGiftBox(
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
|
std::shared_ptr<Data::UniqueGift> gift,
|
|
not_null<PeerData*> to,
|
|
Fn<void()> closeParentBox);
|
|
|
|
bool ShowResaleGiftLater(
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
|
std::shared_ptr<Data::UniqueGift> gift);
|
|
bool ShowTransferGiftLater(
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
|
std::shared_ptr<Data::UniqueGift> gift);
|