VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/UserInterface.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-25 22:54:14 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-26 00:51:52 +0100
commitd90d9f0c401a21c85a525aaca0b97df8f7955db8 (patch)
tree699016cd3928010352b3cbad97c1a7c94c4e8f13 /src/Main/UserInterface.h
parentbbcc944855d7824812af3a10fd447ccefc534a71 (diff)
downloadVeraCrypt-d90d9f0c401a21c85a525aaca0b97df8f7955db8.tar.gz
VeraCrypt-d90d9f0c401a21c85a525aaca0b97df8f7955db8.zip
Linux/MacOSX: Implement waiting dialog for lengthy operations in order to have a better user experience.
Diffstat (limited to 'src/Main/UserInterface.h')
-rwxr-xr-xsrc/Main/UserInterface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main/UserInterface.h b/src/Main/UserInterface.h
index ae74ae99..a280bcc2 100755
--- a/src/Main/UserInterface.h
+++ b/src/Main/UserInterface.h
@@ -54,6 +54,7 @@ namespace VeraCrypt
virtual void ListMountedVolumes (const VolumeInfoList &volumes) const;
virtual void ListSecurityTokenKeyfiles () const = 0;
virtual shared_ptr <VolumeInfo> MountVolume (MountOptions &options) const;
+ virtual shared_ptr <VolumeInfo> MountVolumeThread (MountOptions &options) const { return Core->MountVolume (options);}
virtual VolumeInfoList MountAllDeviceHostedVolumes (MountOptions &options) const;
virtual VolumeInfoList MountAllFavoriteVolumes (MountOptions &options);
virtual void OpenExplorerWindow (const DirectoryPath &path);
@@ -75,6 +76,7 @@ namespace VeraCrypt
virtual wxString TimeSpanToString (uint64 seconds) const;
virtual bool VolumeHasUnrecommendedExtension (const VolumePath &path) const;
virtual void Yield () const = 0;
+ virtual WaitThreadUI* GetWaitThreadUI(WaitThreadRoutine *pRoutine) const { return new WaitThreadUI(pRoutine);}
virtual wxDateTime VolumeTimeToDateTime (VolumeTime volumeTime) const { return wxDateTime ((time_t) (volumeTime / 1000ULL / 1000 / 10 - 134774ULL * 24 * 3600)); }
virtual wxString VolumeTimeToString (VolumeTime volumeTime) const;
virtual wxString VolumeTypeToString (VolumeType::Enum type, VolumeProtection::Enum protection) const;
@@ -88,6 +90,8 @@ namespace VeraCrypt
const UserInterface *UI;
};
+ static void ThrowException (Exception* ex);
+
protected:
UserInterface ();
virtual bool OnExceptionInMainLoop () { throw; }