25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

32 satır
603 B

  1. #include "AppMode.h"
  2. #include "AbstractMenuMode.h"
  3. #define DIR_ENTRY_NAME_SIZE 16
  4. typedef struct {
  5. char name[DIR_ENTRY_NAME_SIZE];
  6. unsigned long bytes;
  7. void* next;
  8. } dir_entry_t;
  9. class SdCardMenuMode : public AbstractMenuMode
  10. {
  11. public:
  12. void start();
  13. void finish();
  14. protected:
  15. char* getTitle();
  16. char** getOptions();
  17. int getOptionsSize();
  18. void onOptionSelected(int option);
  19. int getOptionsX();
  20. int getOptionsFont();
  21. private:
  22. char* basedir = "/sdcard/";
  23. char** options;
  24. char* optionsNames;
  25. unsigned long* optionsBytes;
  26. int optionsSize;
  27. };