2023-10-11 20:13:10 +00:00
|
|
|
/*
|
|
|
|
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 "ui/widgets/scroll_area.h"
|
|
|
|
#include "ui/wrap/vertical_layout.h"
|
|
|
|
|
2023-10-16 18:16:16 +00:00
|
|
|
namespace Ui {
|
|
|
|
class Show;
|
|
|
|
} // namespace Ui
|
|
|
|
|
2023-10-11 20:13:10 +00:00
|
|
|
namespace Info {
|
|
|
|
class Controller;
|
|
|
|
} // namespace Info
|
|
|
|
|
|
|
|
namespace Info::Boosts {
|
|
|
|
|
|
|
|
class Memento;
|
|
|
|
|
|
|
|
class InnerWidget final : public Ui::VerticalLayout {
|
|
|
|
public:
|
|
|
|
struct ShowRequest final {
|
|
|
|
};
|
|
|
|
|
|
|
|
InnerWidget(
|
|
|
|
QWidget *parent,
|
|
|
|
not_null<Controller*> controller,
|
|
|
|
not_null<PeerData*> peer);
|
|
|
|
|
|
|
|
[[nodiscard]] not_null<PeerData*> peer() const;
|
|
|
|
|
|
|
|
[[nodiscard]] rpl::producer<Ui::ScrollToRequest> scrollToRequests() const;
|
|
|
|
[[nodiscard]] rpl::producer<ShowRequest> showRequests() const;
|
|
|
|
|
|
|
|
void showFinished();
|
|
|
|
|
|
|
|
private:
|
|
|
|
not_null<Controller*> _controller;
|
|
|
|
not_null<PeerData*> _peer;
|
2023-10-16 18:16:16 +00:00
|
|
|
std::shared_ptr<Ui::Show> _show;
|
2023-10-11 20:13:10 +00:00
|
|
|
|
|
|
|
rpl::event_stream<Ui::ScrollToRequest> _scrollToRequests;
|
|
|
|
rpl::event_stream<ShowRequest> _showRequests;
|
|
|
|
rpl::event_stream<> _showFinished;
|
|
|
|
rpl::event_stream<bool> _loaded;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Info::Boosts
|