Files
MuditaOS/module-services/service-eink/internal/StaticData.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

32 lines
818 B
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
namespace service::eink::internal
{
/**
* @brief Static settings data
*/
class StaticData
{
public:
StaticData(const StaticData &) = delete;
StaticData &operator=(const StaticData &) = delete;
/**
* Gets instance of static data object
* @return instance of data object
*/
static StaticData &get();
void setInvertedMode(bool enabled) noexcept;
[[nodiscard]] auto isInvertedModeEnabled() const noexcept -> bool;
private:
bool invertedEnabled{false};
StaticData() noexcept = default;
};
} // namespace service::eink::internal