Files
Upsilon/apps/settings/sub_menu/about_controller.h
2019-11-07 23:57:05 -05:00

38 lines
975 B
C++

#ifndef SETTINGS_ABOUT_CONTROLLER_H
#define SETTINGS_ABOUT_CONTROLLER_H
#include "generic_sub_controller.h"
#include "../../hardware_test/pop_up_controller.h"
#include "contributors_controller.h"
namespace Settings {
class AboutController : public GenericSubController {
public:
AboutController(Responder * parentResponder);
bool handleEvent(Ion::Events::Event event) override;
HighlightCell * reusableCell(int index, int type) override;
int reusableCellCount(int type) override;
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
private:
bool hasUsername(){
#ifdef USERNAME
return true;
#else
return false
#endif
}
#ifdef USERNAME
constexpr static int k_totalNumberOfCell = 6;
#else
constexpr static int k_totalNumberOfCell = 5;
#endif
ContributorsController m_contributorsController;
MessageTableCellWithBuffer m_cells[k_totalNumberOfCell];
HardwareTest::PopUpController m_hardwareTestPopUpController;
};
}
#endif