Files
MuditaOS/module-apps/apps-common/popups/data/TetheringParams.hpp
Maciej-Mudita 1f9c6b4a51 [MOS-26] Add tethering info on status bar
When tethering is on, info appears in the status bar
and network coverage indicates "no connection"
2022-10-20 08:56:51 +02:00

28 lines
674 B
C++

// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "popups/Popups.hpp"
#include <service-appmgr/Actions.hpp>
#include <PhoneModes/Common.hpp>
namespace gui
{
class TetheringParams : public app::manager::actions::ActionParams
{
public:
explicit TetheringParams(sys::phone_modes::Tethering state) : tetheringState{state}
{}
[[nodiscard]] auto getTetheringState() const noexcept
{
return tetheringState;
}
private:
sys::phone_modes::Tethering tetheringState;
};
} // namespace gui