38 lines
		
	
	
	
		
			844 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			844 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 "ui/layers/generic_box.h"
 | |
| 
 | |
| namespace Ui {
 | |
| 
 | |
| class AbstractCheckView;
 | |
| 
 | |
| struct ForwardOptions {
 | |
| 	int sendersCount = 0;
 | |
| 	int captionsCount = 0;
 | |
| 	bool dropNames = false;
 | |
| 	bool dropCaptions = false;
 | |
| };
 | |
| 
 | |
| void FillForwardOptions(
 | |
| 	Fn<not_null<AbstractCheckView*>(
 | |
| 		rpl::producer<QString> &&,
 | |
| 		bool)> createView,
 | |
| 	ForwardOptions options,
 | |
| 	Fn<void(ForwardOptions)> optionsChanged,
 | |
| 	rpl::lifetime &lifetime);
 | |
| 
 | |
| void ForwardOptionsBox(
 | |
| 	not_null<GenericBox*> box,
 | |
| 	int count,
 | |
| 	ForwardOptions options,
 | |
| 	Fn<void(ForwardOptions)> optionsChanged,
 | |
| 	Fn<void()> changeRecipient);
 | |
| 
 | |
| } // namespace Ui
 | 
