|
|
1.1 ! root 1: /* ! 2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved. ! 3: ! 4: Governed by the TrueCrypt License 2.4 the full text of which is contained ! 5: in the file License.txt included in TrueCrypt binary and source code ! 6: distribution packages. ! 7: */ ! 8: ! 9: #ifndef TC_HEADER_Main_Forms_VolumePasswordWizardPage ! 10: #define TC_HEADER_Main_Forms_VolumePasswordWizardPage ! 11: ! 12: #include "Forms.h" ! 13: #include "VolumePasswordPanel.h" ! 14: ! 15: namespace TrueCrypt ! 16: { ! 17: class VolumePasswordWizardPage : public VolumePasswordWizardPageBase ! 18: { ! 19: public: ! 20: VolumePasswordWizardPage (wxPanel* parent, shared_ptr <VolumePassword> password, shared_ptr <KeyfileList> keyfiles, bool enableConfirmation = true); ! 21: ~VolumePasswordWizardPage (); ! 22: ! 23: shared_ptr <KeyfileList> GetKeyfiles () const { return PasswordPanel->GetKeyfiles(); } ! 24: shared_ptr <VolumePassword> GetPassword () const { return PasswordPanel->GetPassword(); } ! 25: bool IsValid (); ! 26: void SetMaxStaticTextWidth (int width) { InfoStaticText->Wrap (width); } ! 27: void SetPageText (const wxString &text) { InfoStaticText->SetLabel (text); } ! 28: ! 29: protected: ! 30: void OnPasswordPanelUpdate (EventArgs &args) { PageUpdatedEvent.Raise(); } ! 31: ! 32: bool ConfirmationMode; ! 33: VolumePasswordPanel *PasswordPanel; ! 34: }; ! 35: } ! 36: ! 37: #endif // TC_HEADER_Main_Forms_VolumePasswordWizardPage
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.