mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
34 lines
834 B
C++
34 lines
834 B
C++
#ifndef __LIST_BOOK_CONTROLLER_H__
|
|
#define __LIST_BOOK_CONTROLLER_H__
|
|
|
|
#include <escher.h>
|
|
#include <apps/external/archive.h>
|
|
|
|
namespace reader
|
|
{
|
|
|
|
class ListBookController : public ViewController, public SimpleListViewDataSource, public ScrollViewDataSource
|
|
{
|
|
public:
|
|
ListBookController(Responder * parentResponder);
|
|
View* view() override;
|
|
|
|
int numberOfRows() const override;
|
|
KDCoordinate cellHeight() override;
|
|
HighlightCell * reusableCell(int index) override;
|
|
int reusableCellCount() const override;
|
|
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
|
|
private:
|
|
TableView m_tableView;
|
|
|
|
static const int NB_FILES = 20;
|
|
External::Archive::File m_files[NB_FILES];
|
|
int m_nbFiles = 0;
|
|
|
|
static const int NB_CELLS = 6;
|
|
MessageTableCell m_cells[NB_CELLS];
|
|
};
|
|
|
|
}
|
|
|
|
#endif |