trunk 20080912
[gitenigma.git] / src / setup_harddisk.h
bloba4bcad7ad69b1bfc0b3b894ec4b9ce8f8c4a2b52
1 #ifndef DISABLE_HDD
2 #ifndef DISABLE_FILE
4 #ifndef __lib_apps_enigma_setup_harddisk_h
5 #define __lib_apps_enigma_setup_harddisk_h
7 #include <lib/dvb/edvb.h>
8 #include <lib/gui/listbox.h>
9 #include <lib/base/console.h>
10 #include <lib/gui/enumber.h>
12 class eButton;
13 class eComboBox;
14 class eStatusBar;
16 class eHarddiskSetup: public eListBoxWindow<eListBoxEntryText>
18 int nr;
19 void selectedHarddisk(eListBoxEntryText *sel);
20 public:
21 eHarddiskSetup();
22 int getNr() const { return nr; }
25 class eHarddiskMenu: public eWindow
27 eButton *ext, *format, *bcheck;
28 eLabel *status, *model, *capacity, *bus, *lfs;
29 eLabel *lbltimeout, *lblacoustic;
30 eNumber *timeout, *acoustic;
31 eButton *store, *standby;
32 eComboBox *fs;
33 eStatusBar *sbar;
34 int dev;
35 bool restartNet;
36 int numpart;
37 int visible;
39 void storevalues();
40 void hddstandby();
41 void s_format();
42 void extPressed();
43 void check();
44 void readStatus();
45 public:
46 eHarddiskMenu(int dev);
47 ~eHarddiskMenu()
49 if ( restartNet )
50 eDVB::getInstance()->configureNetwork();
54 class ePartitionCheck: public eWindow
56 eLabel *lState;
57 eButton *bCancel, *bClose;
58 int dev;
59 void onCancel();
60 void fsckClosed(int);
61 int eventHandler( const eWidgetEvent &e );
62 void getData( eString );
63 eConsoleAppContainer *fsck;
64 public:
65 ePartitionCheck( int dev );
68 #endif
70 #endif //DISABLE_FILE
71 #endif //DISABLE_HDD