/* 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 SeparatePanel; class BoxContent; } // namespace Ui namespace Payments::Ui { using namespace ::Ui; class PanelDelegate; struct Invoice; struct RequestedInformation; struct ShippingOptions; enum class EditField; class EditInformation; class Panel final { public: explicit Panel(not_null delegate); ~Panel(); void requestActivate(); void showForm( const Invoice &invoice, const RequestedInformation ¤t, const ShippingOptions &options); void showEditInformation( const Invoice &invoice, const RequestedInformation ¤t, EditField field); void showEditError( const Invoice &invoice, const RequestedInformation ¤t, EditField field); void chooseShippingOption(const ShippingOptions &options); [[nodiscard]] rpl::producer<> backRequests() const; void showBox(object_ptr box); void showToast(const TextWithEntities &text); [[nodiscard]] rpl::lifetime &lifetime(); private: const not_null _delegate; std::unique_ptr _widget; QPointer _weakEditWidget; }; } // namespace Payments::Ui