~aleteoryx/muditaos

ref: 6ae0cf0e5e1ce1c9edabfb7ef71970a3048312ee muditaos/module-services/service-eink/internal/StaticData.hpp -rw-r--r-- 806 bytes
6ae0cf0e — Lukasz Mastalerz [MOS-901] Missing translation for words "show" and "replace" 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/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