~aleteoryx/muditaos

ref: cf019e3d9604bb7599f3bfb49d4cda47aff9815d muditaos/module-apps/application-settings/data/PhoneNameData.hpp -rw-r--r-- 542 bytes
cf019e3d — Alek Rudnik [EGD-6776] Music Player All Songs Window 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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