summaryrefslogtreecommitdiffstats
path: root/partitions.hpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-05-26 04:41:08 +0200
committerGerrit Code Review <gerrit2@gerrit>2014-06-04 15:46:32 +0200
commit87c7bac9c9a2875feb8cf67284f3530fc371c468 (patch)
treed36289e8510d5ad294cb03e0652e34bbba3dc2f5 /partitions.hpp
parentFix crash while loading config due to incorrect tw_storage_path (diff)
downloadandroid_bootable_recovery-87c7bac9c9a2875feb8cf67284f3530fc371c468.tar
android_bootable_recovery-87c7bac9c9a2875feb8cf67284f3530fc371c468.tar.gz
android_bootable_recovery-87c7bac9c9a2875feb8cf67284f3530fc371c468.tar.bz2
android_bootable_recovery-87c7bac9c9a2875feb8cf67284f3530fc371c468.tar.lz
android_bootable_recovery-87c7bac9c9a2875feb8cf67284f3530fc371c468.tar.xz
android_bootable_recovery-87c7bac9c9a2875feb8cf67284f3530fc371c468.tar.zst
android_bootable_recovery-87c7bac9c9a2875feb8cf67284f3530fc371c468.zip
Diffstat (limited to 'partitions.hpp')
-rw-r--r--partitions.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/partitions.hpp b/partitions.hpp
index 7341fe0b5..73ff1fbc5 100644
--- a/partitions.hpp
+++ b/partitions.hpp
@@ -55,6 +55,8 @@ public:
bool Wipe(string New_File_System); // Wipes the partition
bool Wipe(); // Wipes the partition
bool Wipe_AndSec(); // Wipes android secure
+ bool Can_Repair(); // Checks to see if we have everything needed to be able to repair the current file system
+ bool Repair(); // Repairs the current file system
bool Backup(string backup_folder); // Backs up the partition to the folder specified
bool Check_MD5(string restore_folder); // Checks MD5 of a backup
bool Restore(string restore_folder); // Restores the partition using the backup folder provided
@@ -158,6 +160,7 @@ private:
friend class TWPartitionManager;
friend class DataManager;
friend class GUIPartitionList;
+friend class GUIAction;
};
class TWPartitionManager
@@ -191,6 +194,9 @@ public:
int Wipe_By_Path(string Path); // Wipes a partition based on path
int Wipe_By_Block(string Block); // Wipes a partition based on block device
int Wipe_By_Name(string Name); // Wipes a partition based on display name
+ int Wipe_By_Path(string Path, string New_File_System); // Wipes a partition based on path
+ int Wipe_By_Block(string Block, string New_File_System); // Wipes a partition based on block device
+ int Wipe_By_Name(string Name, string New_File_System); // Wipes a partition based on display name
int Factory_Reset(); // Performs a factory reset
int Wipe_Dalvik_Cache(); // Wipes dalvik cache
int Wipe_Rotate_Data(); // Wipes rotation data --
@@ -198,6 +204,9 @@ public:
int Wipe_Android_Secure(); // Wipes android secure
int Format_Data(); // Really formats data on /data/media devices -- also removes encryption
int Wipe_Media_From_Data(); // Removes and recreates the media folder on /data/media devices
+ int Repair_By_Path(string Path, bool Display_Error); // Repairs a partition based on path
+ int Repair_By_Block(string Block, bool Display_Error); // Repairs a partition based on block device
+ int Repair_By_Name(string Name, bool Display_Error); // Repairs a partition based on display name
void Refresh_Sizes(); // Refreshes size data of partitions
void Update_System_Details(); // Updates fstab, file systems, sizes, etc.
int Decrypt_Device(string Password); // Attempt to decrypt any encrypted partitions