2021-08-31 16:47:38 +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/layers/generic_box.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
2022-02-02 21:58:21 +00:00
|
|
|
class AbstractCheckView;
|
|
|
|
|
2021-08-31 16:47:38 +00:00
|
|
|
struct ForwardOptions {
|
|
|
|
bool dropNames = false;
|
|
|
|
bool hasCaptions = false;
|
|
|
|
bool dropCaptions = false;
|
|
|
|
};
|
|
|
|
|
2022-02-02 21:58:21 +00:00
|
|
|
void FillForwardOptions(
|
|
|
|
Fn<not_null<AbstractCheckView*>(
|
|
|
|
rpl::producer<QString> &&,
|
|
|
|
bool)> createView,
|
|
|
|
int count,
|
|
|
|
ForwardOptions options,
|
|
|
|
Fn<void(ForwardOptions)> optionsChanged,
|
|
|
|
rpl::lifetime &lifetime);
|
|
|
|
|
2021-08-31 16:47:38 +00:00
|
|
|
void ForwardOptionsBox(
|
|
|
|
not_null<GenericBox*> box,
|
|
|
|
int count,
|
|
|
|
ForwardOptions options,
|
|
|
|
Fn<void(ForwardOptions)> optionsChanged,
|
|
|
|
Fn<void()> changeRecipient);
|
|
|
|
|
|
|
|
} // namespace Ui
|