mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
34 lines
824 B
C++
34 lines
824 B
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 "base/object_ptr.h"
|
|
|
|
namespace ChatHelpers {
|
|
class Show;
|
|
} // namespace ChatHelpers
|
|
|
|
namespace Ui {
|
|
class BoxContent;
|
|
} // namespace Ui
|
|
|
|
namespace Media::Stories {
|
|
|
|
[[nodiscard]] object_ptr<Ui::BoxContent> PrepareShareBox(
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
|
FullStoryId id,
|
|
bool viewerStyle = false);
|
|
|
|
[[nodiscard]] QString FormatShareAtTime(TimeId seconds);
|
|
|
|
[[nodiscard]] object_ptr<Ui::BoxContent> PrepareShareAtTimeBox(
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
|
not_null<HistoryItem*> item,
|
|
TimeId videoTimestamp);
|
|
|
|
} // namespace Media::Stories
|