kotatogram-desktop/Telegram/SourceFiles/settings/settings_power_saving.h
2023-03-01 09:12:02 +04:00

34 lines
768 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 PowerSaving {
enum Flag : uint32;
} // namespace PowerSaving
namespace Ui {
class GenericBox;
} // namespace Ui
namespace Settings {
void PowerSavingBox(not_null<Ui::GenericBox*> box);
struct PowerSavingLabel {
PowerSaving::Flag flags;
QString label;
};
struct NestedPowerSavingLabels {
std::optional<rpl::producer<QString>> nestedLabel;
std::vector<PowerSavingLabel> restrictionLabels;
};
[[nodiscard]] std::vector<NestedPowerSavingLabels> PowerSavingLabelsList();
} // namespace PowerSaving