2018-06-02 14:29:21 +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
|
|
|
|
*/
|
2020-09-30 07:51:17 +00:00
|
|
|
#pragma once
|
2018-06-02 14:29:21 +00:00
|
|
|
|
2020-09-30 07:51:17 +00:00
|
|
|
#include "ui/text/text_entity.h"
|
2021-05-31 13:10:30 +00:00
|
|
|
#include "base/weak_ptr.h"
|
2020-09-30 07:51:17 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
2021-05-31 13:10:30 +00:00
|
|
|
namespace Toast {
|
|
|
|
class Instance;
|
|
|
|
} // namespace Toast
|
2020-09-30 07:51:17 +00:00
|
|
|
|
|
|
|
struct MultilineToastArgs {
|
2021-03-17 18:13:23 +00:00
|
|
|
QWidget *parentOverride = nullptr;
|
2020-09-30 07:51:17 +00:00
|
|
|
TextWithEntities text;
|
2021-02-11 14:46:46 +00:00
|
|
|
crl::time duration = 0;
|
2020-09-30 07:51:17 +00:00
|
|
|
};
|
|
|
|
|
2021-05-31 13:10:30 +00:00
|
|
|
base::weak_ptr<Toast::Instance> ShowMultilineToast(
|
|
|
|
MultilineToastArgs &&args);
|
2020-09-30 07:51:17 +00:00
|
|
|
|
|
|
|
} // namespace Ui
|