Dilbert
Firmware for the Dilbert interactive badge.
 All Classes Files Functions Variables Enumerations Macros Pages
SystemSettingsApp.h
Go to the documentation of this file.
1 
3 #ifndef _SYSTEMSETTINGS_H_
4 #define _SYSTEMSETTINGS_H_
5 
6 #include "App.h"
7 
13 class SystemSettingsApp : public App
14 {
15 public:
16  static const size_t NUM_OPTIONS = 6;
17 
18 public:
20  virtual ~SystemSettingsApp();
21 
22  virtual void create();
23  virtual void onEntry();
24 
25  virtual bool handleButton(IButton *button);
26 
27 private:
28  void redraw();
29  void modifyCurrentSetting(int8_t direction);
30 
31 private:
32  size_t m_selectedIndex;
33 };
34 
35 #endif
Provides functionality for changing system setings.
Definition: SystemSettingsApp.h:13
virtual void create()
Creates the application.
Definition: SystemSettingsApp.cpp:30
virtual bool handleButton(IButton *button)
Handle button presses.
Definition: SystemSettingsApp.cpp:71
SystemSettingsApp()
Creates a new system settings application.
Definition: SystemSettingsApp.cpp:17
virtual void onEntry()
Called when the application is entered.
Definition: SystemSettingsApp.cpp:39
Used to encapsulate an individual application.
Definition: App.h:15