EmlaLockSafe
views::TimeRestrictedView Class Reference

View used when the safe should be opened but the time is not within the allowed range. More...

#include <TimeRestrictedView.h>

Inheritance diagram for views::TimeRestrictedView:

Public Member Functions

 TimeRestrictedView (LiquidCrystal_PCF8574 *display)
 Construct the view. More...
 
 TimeRestrictedView (const TimeRestrictedView &other)=delete
 Copy constructor - not available. More...
 
 TimeRestrictedView (TimeRestrictedView &&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

long activationMillis
 Time when the view was activated. More...
 

Detailed Description

View used when the safe should be opened but the time is not within the allowed range.

Constructor & Destructor Documentation

◆ TimeRestrictedView() [1/3]

views::TimeRestrictedView::TimeRestrictedView ( LiquidCrystal_PCF8574 *  display)
inline

Construct the view.

Parameters
displaypointer to the LCD instance

◆ TimeRestrictedView() [2/3]

views::TimeRestrictedView::TimeRestrictedView ( const TimeRestrictedView other)
delete

Copy constructor - not available.

◆ TimeRestrictedView() [3/3]

views::TimeRestrictedView::TimeRestrictedView ( TimeRestrictedView &&  other)
deletenoexcept

Move constructor.

Member Function Documentation

◆ activate()

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

called as soon as the view becomes active

◆ tick()

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

called during the loop function

Parameters
forceRedrawif true everything should be redrawn

Member Data Documentation

◆ activationMillis

long views::TimeRestrictedView::activationMillis
protected

Time when the view was activated.


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