Commit 8735227d authored by Rogier Goossens's avatar Rogier Goossens Committed by Curtis Gedak
Browse files

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
parent ce9feeda
......@@ -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 ;
......
......@@ -91,6 +91,11 @@ enum SIZE_UNIT
UNIT_TIB = 5
} ;
enum CUSTOM_TEXT
{
CTEXT_NONE,
} ;
//struct to store file system information
struct FS
{
......
......@@ -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 ) ) ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment