mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-02 19:13:44 +00:00
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
This commit is contained in:
51
map/power_management/power_management_schemas.hpp
Normal file
51
map/power_management/power_management_schemas.hpp
Normal file
@@ -0,0 +1,51 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user