"Fossies" - the Fresh Open Source Software Archive

Member "src/Main/Forms/ChangePasswordDialog.h" (10 Oct 2018, 1804 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 "ChangePasswordDialog.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_ChangePasswordDialog
   14 #define TC_HEADER_Main_Forms_ChangePasswordDialog
   15 
   16 #include "Forms.h"
   17 #include "Main/Main.h"
   18 #include "VolumePasswordPanel.h"
   19 
   20 namespace VeraCrypt
   21 {
   22     class ChangePasswordDialog : public ChangePasswordDialogBase
   23     {
   24     public:
   25         struct Mode
   26         {
   27             enum Enum
   28             {
   29                 ChangePasswordAndKeyfiles,
   30                 ChangeKeyfiles,
   31                 RemoveAllKeyfiles,
   32                 ChangePkcs5Prf
   33             };
   34         };
   35 
   36         ChangePasswordDialog (wxWindow* parent, shared_ptr <VolumePath> volumePath, Mode::Enum mode = Mode::ChangePasswordAndKeyfiles, shared_ptr <VolumePassword> password = shared_ptr <VolumePassword> (), shared_ptr <KeyfileList> keyfiles = shared_ptr <KeyfileList> (), shared_ptr <VolumePassword> newPassword = shared_ptr <VolumePassword> (), shared_ptr <KeyfileList> newKeyfiles = shared_ptr <KeyfileList> ());
   37         virtual ~ChangePasswordDialog ();
   38         
   39 #ifdef TC_MACOSX
   40         virtual bool ProcessEvent(wxEvent& event);
   41 #endif
   42 
   43     protected:
   44         void OnOKButtonClick (wxCommandEvent& event);
   45         void OnPasswordPanelUpdate ();
   46         void OnPasswordPanelUpdate (EventArgs &args) { OnPasswordPanelUpdate(); }
   47 
   48         Mode::Enum DialogMode;
   49 
   50         VolumePasswordPanel *CurrentPasswordPanel;
   51         VolumePasswordPanel *NewPasswordPanel;
   52         shared_ptr <VolumePath> Path;
   53     };
   54 }
   55 
   56 #endif // TC_HEADER_Main_Forms_ChangePasswordDialog