Files
MuditaOS/module-apps/application-desktop/data/DesktopData.hpp
Pawel.Paprocki 040550f3b7 [BH-356] Move TPLIB (microtar) to separate directory
Move microtar to lib, amend CMAKE files
2021-05-24 09:44:29 +02:00

46 lines
1.0 KiB
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 UpdateSwitchData : public gui::SwitchData
{
public:
explicit UpdateSwitchData(sdesktop::UpdateOsMessage *messageToCopyFrom) : updateOsMessage(*messageToCopyFrom)
{}
[[nodiscard]] const sdesktop::UpdateOsMessage &getUpdateOsMessage() const noexcept
{
return updateOsMessage;
}
private:
sdesktop::UpdateOsMessage updateOsMessage;
};
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