mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-01 13:34:05 +02:00
32 lines
665 B
C++
32 lines
665 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 Ui {
|
|
|
|
class RpWidget;
|
|
class GenericBox;
|
|
|
|
enum class ShowOrPremium : uchar {
|
|
LastSeen,
|
|
ReadTime,
|
|
};
|
|
void ShowOrPremiumBox(
|
|
not_null<GenericBox*> box,
|
|
ShowOrPremium type,
|
|
QString shortName,
|
|
Fn<void()> justShow,
|
|
Fn<void()> toPremium);
|
|
|
|
[[nodiscard]] object_ptr<RpWidget> MakeShowOrLabel(
|
|
not_null<RpWidget*> parent,
|
|
rpl::producer<QString> text);
|
|
|
|
} // namespace Ui
|