UVControl/src/screen/countdown.h

30 lines
496 B
C
Raw Normal View History

#ifndef __countdown
#define __countdown
2017-11-26 19:22:15 +00:00
#include "screen.h"
2017-11-26 19:22:15 +00:00
/*
* Countdown screen
* Shows the remaining time.
*/
class CountdownScreen : public BaseScreen
2017-11-26 19:22:15 +00:00
{
private:
uint32_t mLastDisplayed;
2017-11-26 19:22:15 +00:00
protected:
void printRemainingTime();
2017-11-26 19:22:15 +00:00
public:
CountdownScreen(ScreenManager* screenManager) : BaseScreen(screenManager) { }
2017-11-26 19:22:15 +00:00
void onShow();
void onHide();
2017-11-26 19:22:15 +00:00
void onButton();
void onEncoder(int32_t lastPosition, int32_t newPosition);
2017-11-26 19:22:15 +00:00
void onTick();
};
#endif