Files
MuditaOS/module-bluetooth/Bluetooth/command/OperatorName.hpp
Bartosz Cichocki 31db992c5c [MOS-264] Add handling of signal strength and operator name in HFP
To be able to display signal strength, operator name and
rest of status indicators in Bluetooth's HFP profile, some
refactor has been done.
2022-04-11 11:46:30 +02:00

24 lines
539 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 <string>
#include <string_view>
namespace bluetooth
{
class OperatorName
{
public:
explicit OperatorName(const std::string &name) : name(name){};
OperatorName() = default;
auto getName() const -> const std::string_view
{
return name;
}
private:
std::string name{""};
};
} // namespace bluetooth