mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-07 04:42:15 -05:00
26 lines
719 B
C++
26 lines
719 B
C++
// 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 <gui/SwitchData.hpp>
|
|
#include <service-cellular/PacketDataTypes.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
|
|
class ApnListData : public SwitchData
|
|
{
|
|
public:
|
|
explicit ApnListData(std::vector<std::shared_ptr<packet_data::APN::Config>> apns) : apns(std::move(apns))
|
|
{}
|
|
[[nodiscard]] auto getAPNs() const noexcept -> const std::vector<std::shared_ptr<packet_data::APN::Config>> &
|
|
{
|
|
return apns;
|
|
}
|
|
|
|
private:
|
|
std::vector<std::shared_ptr<packet_data::APN::Config>> apns;
|
|
};
|
|
} // namespace gui
|