~aleteoryx/muditaos

ref: e84aa4a52f67ea29a0ceeef478bfa960800fa4de muditaos/module-services/service-db/agents/settings/FactorySettings.hpp -rw-r--r-- 808 bytes
e84aa4a5 — Lefucjusz [BH-2091] Remove timer from loop mode in Relaxation 1 year, 1 month 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
// 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

#include <Database/Database.hpp>

namespace settings
{
    namespace factory
    {
        static constexpr auto entry_key         = "factory_data";
        static constexpr auto serial_number_key = "serial";
        static constexpr auto case_colour_key   = "case_colour";
    }

    class FactorySettings
    {
      public:
        virtual ~FactorySettings()                                                       = default;
        [[nodiscard]] virtual auto getMfgEntries() const -> std::unique_ptr<QueryResult> = 0;
        virtual auto initDb(Database *database) const -> void                            = 0;
    };
} // namespace settings