AyuGramDesktop/Telegram/SourceFiles/media/stories/media_stories_share.h
2025-02-12 17:24:24 +04:00

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