Files
recycled-ni-neutrino/src/gui/hdd_menu.h
Michael Liebmann 3805a76157 hddmenu: Support ext4 for formating disk
- Support ext4 for formating disk (require /sbin/mkfs.ext4)
- Support ext4 for check disk (require /sbin/fsck.ext4 or /sbin/e2fsck)
- Display disk format in menu (require /sbin/blkid)
- 'ext4' and 'display disk format' disabled when required files not present


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7c5d29a687
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-02-21 (Fri, 21 Feb 2014)



------------------
This commit was generated by Migit
2014-02-21 00:02:46 +01:00

67 lines
1.4 KiB
C++

/*
Neutrino-GUI - DBoxII-Project
License: GPL
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __hdd_menu__
#define __hdd_menu__
#include "widget/menue.h"
using namespace std;
enum {
fs_ext3,
fs_ext4,
fs_max
};
class CHDDDestExec : public CMenuTarget
{
public:
int exec(CMenuTarget* parent, const std::string&);
};
class CHDDFmtExec : public CMenuTarget
{
public:
int exec(CMenuTarget* parent, const std::string&);
};
class CHDDChkExec : public CMenuTarget
{
public:
int exec(CMenuTarget* parent, const std::string&);
};
class CHDDMenuHandler : public CMenuTarget
{
private:
int width;
public:
CHDDMenuHandler();
~CHDDMenuHandler();
int exec( CMenuTarget* parent, const std::string &actionkey);
int doMenu();
};
#endif