summaryrefslogtreecommitdiff
path: root/gptpart.h
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2011-03-17 13:53:01 -0400
committersrs5694 <srs5694@users.sourceforge.net>2011-03-17 13:53:01 -0400
commit5a6085310b7f8fe1c35e56bcab7de161808b488d (patch)
treec7dbb1fb45e0f35ef6e04cf8a448909f420e83aa /gptpart.h
parentc2f6e0cb812dd08fdb8f8cabda4f08a070c6f9fe (diff)
downloadsgdisk-5a6085310b7f8fe1c35e56bcab7de161808b488d.tar.gz
Preliminary UTF-16LE support for GPT descriptions
Diffstat (limited to 'gptpart.h')
-rw-r--r--gptpart.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gptpart.h b/gptpart.h
index 81653d0..d47f505 100644
--- a/gptpart.h
+++ b/gptpart.h
@@ -54,13 +54,15 @@ class GPTPart {
PartType & GetType(void) {return partitionType;}
uint16_t GetHexType(void) const;
string GetTypeName(void);
+ UnicodeString GetUTypeName(void);
const GUIDData GetUniqueGUID(void) const {return uniqueGUID;}
uint64_t GetFirstLBA(void) const {return firstLBA;}
uint64_t GetLastLBA(void) const {return lastLBA;}
uint64_t GetLengthLBA(void) const;
Attributes GetAttributes(void) {return attributes;}
void ShowAttributes(uint32_t partNum) {attributes.ShowAttributes(partNum);}
- string GetDescription(void);
+// string GetDescription(void);
+ UnicodeString GetDescription(void);
int IsUsed(void);
// Simple data assignment:
@@ -72,7 +74,9 @@ class GPTPart {
void SetLastLBA(uint64_t l) {lastLBA = l;}
void SetAttributes(uint64_t a) {attributes = a;}
void SetAttributes(void) {attributes.ChangeAttributes();}
- void SetName(const string & n);
+ void SetName(string theName);
+ void SetName(UnicodeString theName);
+// void SetName(UChar *theName);
void SetDefaultDescription(void);
// Additional functions