trunk 20080912
[gitenigma.git] / src / flashtool.h
blobec614df05097694a179963601b05e0ee958a3e18
1 #ifdef ENABLE_FLASHTOOL
2 /**********************************************
4 * $Revision: 1.3 $
6 **********************************************/
8 #ifndef __flashtool_h__
9 #define __flashtool_h__
11 #include <lib/gui/ewidget.h>
12 #include <lib/gui/listbox.h>
15 class eFlashtool: public eListBoxWindow<eListBoxEntryText>
17 private:
18 int flashimage;
19 int mtd;
21 void sel_item(eListBoxEntryText *sel);
22 bool erase();
23 bool readmtd(char destination[]);
24 public:
25 void programm(char filename[]);
27 eFlashtool(int direction);
28 ~eFlashtool();
32 class eFlashtoolMain: public eListBoxWindow<eListBoxEntryText>
34 private:
35 void sel_item(eListBoxEntryText *sel);
36 public:
37 eFlashtoolMain();
38 ~eFlashtoolMain();
42 class eFlashtoolImageView: public eListBoxWindow<eListBoxEntryText>
44 private:
45 int fmtdnr;
46 char buffer[100];
48 void sel_item(eListBoxEntryText *sel);
49 public:
50 ~eFlashtoolImageView();
51 eFlashtoolImageView(char folder[]);
52 char* getFilename();
56 class eFlashtoolSource: public eListBoxWindow<eListBoxEntryText>
58 private:
59 bool flash;
60 char buffer[100];
62 void sel_item(eListBoxEntryText *sel);
63 public:
64 ~eFlashtoolSource();
65 eFlashtoolSource(int direction);
66 char* getDestination();
70 #endif /* __flashtool_h__ */
71 #endif // ENABLE_FLASHTOOL