Add support for custom text strings depending on the filesystem

Part 2 of 4 to provide new UUID support for NTFS.

See Bug #667278 - Add support for setting UUID
This commit is contained in:
Rogier Goossens 2012-01-27 11:14:53 -07:00 committed by Curtis Gedak
parent ce9feeda0e
commit 8735227dd7
3 changed files with 18 additions and 0 deletions

View File

@ -34,6 +34,9 @@ public:
FileSystem() ;
virtual ~FileSystem() {}
virtual const Glib::ustring get_custom_text( CUSTOM_TEXT ttype, int index = 0 ) ;
static const Glib::ustring get_generic_text( CUSTOM_TEXT ttype, int index = 0 ) ;
virtual FS get_filesystem_support() = 0 ;
virtual void set_used_sectors( Partition & partition ) = 0 ;
virtual void read_label( Partition & partition ) = 0 ;

View File

@ -91,6 +91,11 @@ enum SIZE_UNIT
UNIT_TIB = 5
} ;
enum CUSTOM_TEXT
{
CTEXT_NONE,
} ;
//struct to store file system information
struct FS
{

View File

@ -27,6 +27,16 @@ FileSystem::FileSystem()
{
}
const Glib::ustring FileSystem::get_custom_text( CUSTOM_TEXT ttype, int index )
{
return get_generic_text( ttype, index ) ;
}
const Glib::ustring FileSystem::get_generic_text( CUSTOM_TEXT ttype, int index )
{
return "" ;
}
int FileSystem::execute_command( const Glib::ustring & command, OperationDetail & operationdetail )
{
operationdetail .add_child( OperationDetail( command, STATUS_NONE, FONT_BOLD_ITALIC ) ) ;