tdesktop/Telegram/SourceFiles/settings/settings_power_saving.h

31 lines
669 B
C
Raw Normal View History

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
#include "base/flags.h"
template <typename Flags>
struct EditFlagsDescriptor;
2023-02-21 12:31:55 +00:00
namespace PowerSaving {
enum Flag : uint32;
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);
[[nodiscard]] EditFlagsDescriptor<PowerSaving::Flags> PowerSavingLabels();
2023-02-21 12:31:55 +00:00
} // namespace PowerSaving