"Fossies" - the Fresh Open Source Software Archive

Member "src/Main/Forms/VolumeCreationWizard.h" (10 Oct 2018, 2629 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "VolumeCreationWizard.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.22_Source_vs_1.23_Source.

    1 /*
    2  Derived from source code of TrueCrypt 7.1a, which is
    3  Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
    4  by the TrueCrypt License 3.0.
    5 
    6  Modifications and additions to the original source code (contained in this file)
    7  and all other portions of this file are Copyright (c) 2013-2017 IDRIX
    8  and are governed by the Apache License 2.0 the full text of which is
    9  contained in the file License.txt included in VeraCrypt binary and source
   10  code distribution packages.
   11 */
   12 
   13 #ifndef TC_HEADER_Main_Forms_VolumeCreationWizard
   14 #define TC_HEADER_Main_Forms_VolumeCreationWizard
   15 
   16 #include "WizardFrame.h"
   17 #include "Core/VolumeCreator.h"
   18 
   19 namespace VeraCrypt
   20 {
   21     class VolumeCreationWizard : public WizardFrame
   22     {
   23     public:
   24         VolumeCreationWizard (wxWindow* parent);
   25         ~VolumeCreationWizard ();
   26 
   27 #ifdef TC_MACOSX
   28         virtual bool ProcessEvent(wxEvent& event);
   29 #endif
   30 
   31     protected:
   32         struct Step
   33         {
   34             enum Enum
   35             {
   36                 VolumeHostType,
   37                 VolumeType,
   38                 VolumeLocation,
   39                 EncryptionOptions,
   40                 VolumeSize,
   41                 VolumePassword,
   42                 VolumePim,
   43                 LargeFilesSupport,
   44                 FormatOptions,
   45                 CrossPlatformSupport,
   46                 CreationProgress,
   47                 VolumeCreatedInfo,
   48                 OuterVolumeContents,
   49                 HiddenVolume
   50             };
   51         };
   52 
   53         void CreateVolume ();
   54         WizardPage *GetPage (WizardStep step);
   55         void OnAbortButtonClick (EventArgs &args);
   56         void OnMouseMotion (wxMouseEvent& event);
   57         void OnProgressTimer ();
   58         void OnRandomPoolUpdateTimer ();
   59         void OnThreadExiting (wxCommandEvent& event);
   60         void OnVolumeCreatorFinished ();
   61         WizardStep ProcessPageChangeRequest (bool forward);
   62 
   63         volatile bool AbortConfirmationPending;
   64         volatile bool AbortRequested;
   65         volatile bool CreationAborted;
   66         shared_ptr <VolumeCreator> Creator;
   67         bool CrossPlatformSupport;
   68         static bool DeviceWarningConfirmed;
   69         bool DisplayKeyInfo;
   70         auto_ptr <wxTimer> ProgressTimer;
   71         auto_ptr <wxTimer> RandomPoolUpdateTimer;
   72         shared_ptr <KeyfileList> Keyfiles;
   73         bool LargeFilesSupport;
   74         uint64 MaxHiddenVolumeSize;
   75         shared_ptr <VolumeInfo> MountedOuterVolume;
   76         bool OuterVolume;
   77         bool QuickFormatEnabled;
   78         shared_ptr <EncryptionAlgorithm> SelectedEncryptionAlgorithm;
   79         uint32 SelectedFilesystemClusterSize;
   80         VolumeCreationOptions::FilesystemType::Enum SelectedFilesystemType;
   81         VolumePath SelectedVolumePath;
   82         VolumeHostType::Enum SelectedVolumeHostType;
   83         VolumeType::Enum SelectedVolumeType;
   84         shared_ptr <VolumePassword> Password;
   85         int Pim;
   86         shared_ptr <Pkcs5Kdf> Kdf;
   87         uint32 SectorSize;
   88         shared_ptr <Hash> SelectedHash;
   89         uint64 VolumeSize;
   90 
   91     private:
   92         void UpdateControls ();
   93     };
   94 }
   95 
   96 #endif // TC_HEADER_Main_Forms_VolumeCreationWizard