mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-16 10:00:03 -05:00
To be able to display signal strength, operator name and rest of status indicators in Bluetooth's HFP profile, some refactor has been done.
24 lines
539 B
C++
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
|