mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-05 20:02:46 -05:00
29 lines
973 B
C++
29 lines
973 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 <application-settings/models/bluetooth/BluetoothSettingsModel.hpp>
|
|
#include <Text.hpp>
|
|
#include <AppWindow.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class PhoneNameWindow : public AppWindow
|
|
{
|
|
public:
|
|
PhoneNameWindow(app::ApplicationCommon *app, std::shared_ptr<BluetoothSettingsModel> bluetoothSettingsModel);
|
|
|
|
private:
|
|
void buildInterface() override;
|
|
void destroyInterface() override;
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
auto onInput(const InputEvent &inputEvent) -> bool override;
|
|
|
|
Text *inputField = nullptr;
|
|
std::shared_ptr<BluetoothSettingsModel> bluetoothSettingsModel;
|
|
|
|
static constexpr auto maxNameLength = 248; // Max 248 bytes according to Bluetooth Core Specification v5.2
|
|
};
|
|
|
|
} /* namespace gui */
|