2023-02-21 12:31:55 +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
|
|
|
|
|
2023-02-25 12:17:48 +00:00
|
|
|
#include "base/flags.h"
|
|
|
|
|
|
|
|
template <typename Flags>
|
|
|
|
struct EditFlagsDescriptor;
|
|
|
|
|
2023-02-21 12:31:55 +00:00
|
|
|
namespace PowerSaving {
|
|
|
|
enum Flag : uint32;
|
2023-02-25 12:17:48 +00:00
|
|
|
using Flags = base::flags<Flag>;
|
2023-02-21 12:31:55 +00:00
|
|
|
} // namespace PowerSaving
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class GenericBox;
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
namespace Settings {
|
|
|
|
|
|
|
|
void PowerSavingBox(not_null<Ui::GenericBox*> box);
|
|
|
|
|
2023-02-25 12:17:48 +00:00
|
|
|
[[nodiscard]] EditFlagsDescriptor<PowerSaving::Flags> PowerSavingLabels();
|
2023-02-21 12:31:55 +00:00
|
|
|
|
|
|
|
} // namespace PowerSaving
|