diff options
Diffstat (limited to 'src/Main/UserInterface.h')
-rwxr-xr-x | src/Main/UserInterface.h | 4 |
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; } |