Files
MuditaOS/module-apps/application-settings/windows/bluetooth/PhoneNameWindow.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

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 */