Files
2026-01-28 11:55:19 +04:00

34 lines
743 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;
class RpWidget;
} // namespace Ui
namespace Settings {
void PowerSavingBox(
not_null<Ui::GenericBox*> box,
PowerSaving::Flags highlightFlags = PowerSaving::Flags());
[[nodiscard]] EditFlagsDescriptor<PowerSaving::Flags> PowerSavingLabels();
} // namespace Settings