mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-25 16:08:30 -04:00
Added bluetooth settings middleware to store BT status in settings. Added middleware layer to handle new settings queries.
23 lines
542 B
C++
23 lines
542 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 <string>
|
|
#include <SwitchData.hpp>
|
|
namespace gui
|
|
{
|
|
class PhoneNameData : public SwitchData
|
|
{
|
|
public:
|
|
explicit PhoneNameData(std::string name) : name(std::move(name))
|
|
{}
|
|
[[nodiscard]] auto getName() const -> const std::string &
|
|
{
|
|
return name;
|
|
}
|
|
|
|
private:
|
|
const std::string name;
|
|
};
|
|
} // namespace gui
|