1
0
mirror of https://github.com/Dejvino/lilybook.git synced 2024-11-14 20:33:28 +00:00
lilybook/main/modes/SdCardMenuMode.h

32 lines
603 B
C++

#include "AppMode.h"
#include "AbstractMenuMode.h"
#define DIR_ENTRY_NAME_SIZE 16
typedef struct {
char name[DIR_ENTRY_NAME_SIZE];
unsigned long bytes;
void* next;
} dir_entry_t;
class SdCardMenuMode : public AbstractMenuMode
{
public:
void start();
void finish();
protected:
char* getTitle();
char** getOptions();
int getOptionsSize();
void onOptionSelected(int option);
int getOptionsX();
int getOptionsFont();
private:
char* basedir = "/sdcard/";
char** options;
char* optionsNames;
unsigned long* optionsBytes;
int optionsSize;
};