settings_power_saving.h 669 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "base/flags.h"
  9. template <typename Flags>
  10. struct EditFlagsDescriptor;
  11. namespace PowerSaving {
  12. enum Flag : uint32;
  13. using Flags = base::flags<Flag>;
  14. } // namespace PowerSaving
  15. namespace Ui {
  16. class GenericBox;
  17. } // namespace Ui
  18. namespace Settings {
  19. void PowerSavingBox(not_null<Ui::GenericBox*> box);
  20. [[nodiscard]] EditFlagsDescriptor<PowerSaving::Flags> PowerSavingLabels();
  21. } // namespace PowerSaving