30 lines
		
	
	
	
		
			669 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			669 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 "base/flags.h"
 | 
						|
 | 
						|
template <typename Flags>
 | 
						|
struct EditFlagsDescriptor;
 | 
						|
 | 
						|
namespace PowerSaving {
 | 
						|
enum Flag : uint32;
 | 
						|
using Flags = base::flags<Flag>;
 | 
						|
} // namespace PowerSaving
 | 
						|
 | 
						|
namespace Ui {
 | 
						|
class GenericBox;
 | 
						|
} // namespace Ui
 | 
						|
 | 
						|
namespace Settings {
 | 
						|
 | 
						|
void PowerSavingBox(not_null<Ui::GenericBox*> box);
 | 
						|
 | 
						|
[[nodiscard]] EditFlagsDescriptor<PowerSaving::Flags> PowerSavingLabels();
 | 
						|
 | 
						|
} // namespace PowerSaving
 |