36 lines
		
	
	
	
		
			730 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			730 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
 | 
						|
 | 
						|
namespace Ui {
 | 
						|
class GenericBox;
 | 
						|
class VerticalLayout;
 | 
						|
} // namespace Ui
 | 
						|
 | 
						|
namespace Main {
 | 
						|
class Session;
 | 
						|
} // namespace Main
 | 
						|
 | 
						|
void UsernamesBox(
 | 
						|
	not_null<Ui::GenericBox*> box,
 | 
						|
	not_null<Main::Session*> session);
 | 
						|
 | 
						|
struct UsernameCheckInfo final {
 | 
						|
	enum class Type {
 | 
						|
		Good,
 | 
						|
		Error,
 | 
						|
		Default,
 | 
						|
		PurchaseAvailable,
 | 
						|
	};
 | 
						|
	Type type;
 | 
						|
	TextWithEntities text;
 | 
						|
};
 | 
						|
 | 
						|
void AddUsernameCheckLabel(
 | 
						|
	not_null<Ui::VerticalLayout*> container,
 | 
						|
	rpl::producer<UsernameCheckInfo> checkInfo);
 |