class project main.cpp publish

Dependencies:   mbed C12832_lcd USBHost USBHostPTP LCD_Menu

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PTPMenu.h Source File

PTPMenu.h

00001 #include "mbed.h"
00002 #include <vector>
00003 #include "C12832_lcd.h"
00004 #include "Selection.h"
00005 #include "Menu.h"
00006 #include "Navigator.h"
00007 
00008 #define GETALLJPG       0x01
00009 #define GETALLJPGTHUMB  0x02
00010 #define GETNUMJPG       0x03
00011 #define GETNUMOBJ       0x04
00012 #define DUMPDEVICEINFO  0x05
00013 #define CAPTUREMODEON   0x06
00014 #define CAPTUREMODEOFF  0x07
00015 #define VFINDERON       0x08
00016 #define VFINDEROFF      0x09
00017 #define TAKEPHOTO       0x0a
00018 #define ENABLEDECODER   0x0b
00019 #define CLOSESESSION    0xFF
00020 
00021 class PTPMenu {
00022 public:
00023     PTPMenu(C12832_LCD *lcdIn){
00024       menus.clear();
00025       navigator = NULL;
00026       command = 0x00;
00027       this->lcd=lcdIn;
00028       GenerateMenu();
00029     };
00030 
00031     uint8_t command;
00032     C12832_LCD *lcd;
00033     Navigator *navigator;
00034     void poll(void);
00035 
00036 private:
00037     vector<Menu> menus;
00038     void GenerateMenu(void);
00039 
00040 };