26 m_name =
new char[strlen(name) + 1]();
char * m_name
Name of application.
Definition: App.h:132
bool m_ready
If the application has been created.
Definition: App.h:133
virtual void destroy()
Destroys the application.
Definition: App.h:110
Adafruit_ILI9341 & display()
Gets the TFT display driver.
Definition: Dilbert.h:44
AppManager * m_manager
Pointer to application manager.
Definition: App.h:130
Used to manage several applications on the badge.
Definition: AppManager.h:30
virtual void onEntry()
Called when the application is entered.
Definition: App.h:70
virtual void exit()
Exits the application.
Definition: App.h:91
virtual bool handleButton(IButton *button)
Handle button presses.
Definition: App.h:121
Main hardware abstraction class.
Definition: Dilbert.h:17
virtual void run()
Called in a loop while the application is active.
Definition: App.h:83
virtual void onExit()
Called when the application exits.
Definition: App.h:101
uint16_t m_backgroundColour
Background colour.
Definition: App.h:135
virtual void create()
Creates the application.
Definition: App.h:60
App(char *name)
Creates a new instance of a badge application.
Definition: App.h:22
char * name()
Gets the name of the application.
Definition: App.h:40
bool activateAppByIdx(uint8_t idx)
Activates an application given it's index.
Definition: AppManager.cpp:84
Dilbert * m_badge
Pointer to badge driver.
Definition: App.h:129
Used to encapsulate an individual application.
Definition: App.h:15
void setBackgroundColour(uint16_t colour)
Sets the background fill colour of the display for this application.
Definition: App.h:50