Files
MuditaOS/module-apps/locks/widgets/LockBoxConstantSize.hpp
Przemyslaw Brudny bc737e93f6 [EGD-5885] Added SimLockHandler
Refactored LockWindow TitleBar handling. Added Sim pin request
block on lockedPhone. Added Sim info popup added when pin
changed. Updated assets. Removed old PinLock structures.
Cleared LockBox structures. Removed old settings sim setters.
New CellularMessage adaptation. Cleared Lock structure.
2021-05-26 20:09:33 +02:00

40 lines
1.0 KiB
C++

// 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 "LockBox.hpp"
#include <locks/windows/LockInputWindow.hpp>
#include <Image.hpp>
namespace gui
{
class LockBoxConstantSize : public LockBox
{
public:
void buildLockBox(unsigned int pinSize) override;
void clear() final;
void popChar(unsigned int charNum) final;
void putChar(unsigned int charNum) final;
protected:
explicit LockBoxConstantSize(LockInputWindow *lockBaseWindow) : lockWindow(lockBaseWindow)
{}
void buildPinLabels(unsigned int pinSize);
private:
struct InputLabel : public HBox
{
InputLabel(Item *parent, uint32_t w, uint32_t h);
void setVisibleState(bool isImageVisible);
gui::Image *image = nullptr;
};
LockInputWindow *lockWindow;
std::vector<InputLabel *> inputLabels;
};
} // namespace gui