EmlaLockSafe
views::LockedView Class Reference

View used when the safe is locked. More...

#include <LockedView.h>

Inheritance diagram for views::LockedView:

Public Member Functions

 LockedView (LiquidCrystal_PCF8574 *display, RotaryEncoder *encoder)
 Construct the locked view. More...
 
 LockedView (const LockedView &other)=delete
 Copy constructor - not available. More...
 
 LockedView (LockedView &&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...
 
String temperatureStrings [6]
 temperature strings if they are not provided by the emlalock API More...
 

Detailed Description

View used when the safe is locked.

Constructor & Destructor Documentation

◆ LockedView() [1/3]

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

Construct the locked view.

Parameters
displaypointer to the LCD instance
encoderpointer to the encoder instance

◆ LockedView() [2/3]

views::LockedView::LockedView ( const LockedView other)
delete

Copy constructor - not available.

◆ LockedView() [3/3]

views::LockedView::LockedView ( LockedView &&  other)
deletenoexcept

Move constructor.

Member Function Documentation

◆ activate()

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

called as soon as the view becomes active

◆ tick()

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

called during the loop function

Parameters
forceRedrawif true everything should be redrawn

Member Data Documentation

◆ encoder

RotaryEncoder* views::LockedView::encoder
protected

pointer to the encoder instance

◆ temperatureStrings

String views::LockedView::temperatureStrings[6]
protected

temperature strings if they are not provided by the emlalock API


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