mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 06:30:46 -04:00
31 lines
636 B
C++
31 lines
636 B
C++
// 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
|