Files
comaps/map/power_management/power_management_schemas.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

52 lines
1.0 KiB
C++

#pragma once
#include <array>
#include <cstdint>
#include <string>
namespace power_management
{
// Note: the order is important.
// Note: new facilities must be added before Facility::Count.
// Note: do not use Facility::Count in external code, this value for internal use only.
enum class Facility : uint8_t
{
Buildings3d,
PerspectiveView,
TrackRecording,
TrafficJams,
GpsTrackingForTraffic,
OsmEditsUploading,
UgcUploading,
BookmarkCloudUploading,
MapDownloader,
Count
};
// Note: the order is important.
enum class Scheme : uint8_t
{
None,
Normal,
EconomyMedium,
EconomyMaximum,
Auto,
};
enum class AutoScheme : uint8_t
{
Normal,
EconomyMedium,
EconomyMaximum,
};
using FacilitiesState = std::array<bool, static_cast<size_t>(Facility::Count)>;
FacilitiesState const & GetFacilitiesState(Scheme const scheme);
FacilitiesState const & GetFacilitiesState(AutoScheme const autoScheme);
std::string DebugPrint(Facility const facility);
std::string DebugPrint(Scheme const scheme);
} // namespace power_management