~aleteoryx/muditaos

ref: fc076fa4ccf5d1090ed649d35dabdff20e50aa79 muditaos/module-apps/application-desktop/data/DesktopData.hpp -rw-r--r-- 636 bytes
fc076fa4 — Lefucjusz [MOS-855] Fix restore from legacy backup 3 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
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <gui/SwitchData.hpp>
#include <service-desktop/DesktopMessages.hpp>

#include <filesystem>
#include <utility>

namespace gui
{
    class CurrentOsVersion : public gui::SwitchData
    {
        std::string osVersion;

      public:
        [[nodiscard]] std::string getCurrentOsVersion() const
        {
            return osVersion;
        }

        void setData(std::string version)
        {
            osVersion = std::move(version);
        }
    };

} // namespace gui