mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
27 lines
565 B
C++
27 lines
565 B
C++
#ifndef _READ_BOOK_CONTROLLER_H_
|
|
#define _READ_BOOK_CONTROLLER_H_
|
|
|
|
#include <escher.h>
|
|
#include "apps/external/archive.h"
|
|
#include "word_wrap_view.h"
|
|
|
|
namespace Reader {
|
|
|
|
class ReadBookController : public ViewController {
|
|
public:
|
|
ReadBookController(Responder * parentResponder);
|
|
View * view() override;
|
|
|
|
void setBook(const External::Archive::File& file);
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
|
|
void savePosition() const;
|
|
void loadPosition();
|
|
private:
|
|
WordWrapTextView m_readerView;
|
|
const External::Archive::File* m_file;
|
|
};
|
|
|
|
}
|
|
|
|
#endif |