EmlaLockSafe
views::EmergencyEnterKeyView Class Reference

View which allows to enter a key to unlock without WiFi. More...

#include <EmergencyEnterKeyView.h>

Inheritance diagram for views::EmergencyEnterKeyView:

Public Member Functions

 EmergencyEnterKeyView (LiquidCrystal_PCF8574 *display, RotaryEncoder *encoder)
 Construct the view object. More...
 
 EmergencyEnterKeyView (const EmergencyEnterKeyView &other)=delete
 Copy constructor - not available. More...
 
 EmergencyEnterKeyView (EmergencyEnterKeyView &&other) noexcept=delete
 Move constructor. More...
 
virtual void tick (const bool &forceRedraw)
 called during the loop function More...
 

Protected Member Functions

virtual void activate ()
 called as soon as the view becomes active More...
 

Protected Attributes

RotaryEncoder * encoder
 pointer to the encoder instance More...
 
char enteredKey [7]
 Cache of the entered key. More...
 
int editIndex
 Position of the key cache which is currently edited. More...
 

Detailed Description

View which allows to enter a key to unlock without WiFi.

Constructor & Destructor Documentation

◆ EmergencyEnterKeyView() [1/3]

views::EmergencyEnterKeyView::EmergencyEnterKeyView ( LiquidCrystal_PCF8574 *  display,
RotaryEncoder *  encoder 
)
inline

Construct the view object.

Parameters
displaypointer to the LCD instance

◆ EmergencyEnterKeyView() [2/3]

views::EmergencyEnterKeyView::EmergencyEnterKeyView ( const EmergencyEnterKeyView other)
delete

Copy constructor - not available.

◆ EmergencyEnterKeyView() [3/3]

views::EmergencyEnterKeyView::EmergencyEnterKeyView ( EmergencyEnterKeyView &&  other)
deletenoexcept

Move constructor.

Member Function Documentation

◆ activate()

virtual void views::EmergencyEnterKeyView::activate ( )
inlineprotectedvirtual

called as soon as the view becomes active

◆ tick()

virtual void views::EmergencyEnterKeyView::tick ( const bool &  forceRedraw)
inlinevirtual

called during the loop function

Parameters
forceRedrawif true everything should be redrawn

Member Data Documentation

◆ editIndex

int views::EmergencyEnterKeyView::editIndex
protected

Position of the key cache which is currently edited.

◆ encoder

RotaryEncoder* views::EmergencyEnterKeyView::encoder
protected

pointer to the encoder instance

◆ enteredKey

char views::EmergencyEnterKeyView::enteredKey[7]
protected

Cache of the entered key.


The documentation for this class was generated from the following file: