EmlaLockSafe
views::UnlockSafeView Class Reference

View used to unlock the safe. More...

#include <UnlockSafeView.h>

Inheritance diagram for views::UnlockSafeView:

Public Member Functions

 UnlockSafeView (LiquidCrystal_PCF8574 *display, RotaryEncoder *encoder, const int &numberOfColumns, const int &numberOfRows)
 Construct the vie. More...
 
 UnlockSafeView (const UnlockSafeView &other)=delete
 Copy constructor - not available. More...
 
 UnlockSafeView (UnlockSafeView &&other) noexcept=delete
 Move constructor - not available. 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...
 
const int numberOfColumns
 Number of display-columns. More...
 
const int numberOfRows
 Number of display-rows. More...
 
time_t activationTime
 Time when this view was activated. More...
 

Detailed Description

View used to unlock the safe.

Constructor & Destructor Documentation

◆ UnlockSafeView() [1/3]

views::UnlockSafeView::UnlockSafeView ( LiquidCrystal_PCF8574 *  display,
RotaryEncoder *  encoder,
const int &  numberOfColumns,
const int &  numberOfRows 
)
inline

Construct the vie.

Parameters
displaypointer to the LCD instance
encoderpointer to the encoder instance
numberOfColumnsnumber of display-columns
numberOfRowsnumber of display-rows

◆ UnlockSafeView() [2/3]

views::UnlockSafeView::UnlockSafeView ( const UnlockSafeView other)
delete

Copy constructor - not available.

◆ UnlockSafeView() [3/3]

views::UnlockSafeView::UnlockSafeView ( UnlockSafeView &&  other)
deletenoexcept

Move constructor - not available.

Member Function Documentation

◆ activate()

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

called as soon as the view becomes active

◆ tick()

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

called during the loop function

Parameters
forceRedrawif true everything should be redrawn

Member Data Documentation

◆ activationTime

time_t views::UnlockSafeView::activationTime
protected

Time when this view was activated.

◆ encoder

RotaryEncoder* views::UnlockSafeView::encoder
protected

pointer to the encoder instance

◆ numberOfColumns

const int views::UnlockSafeView::numberOfColumns
protected

Number of display-columns.

◆ numberOfRows

const int views::UnlockSafeView::numberOfRows
protected

Number of display-rows.


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