Annotation of truecrypt/main/textuserinterface.h, revision 1.1

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_TextUserInterface
        !            10: #define TC_HEADER_Main_TextUserInterface
        !            11: 
        !            12: #include "System.h"
        !            13: #include "Main.h"
        !            14: #include "UserInterface.h"
        !            15: 
        !            16: namespace TrueCrypt
        !            17: {
        !            18:        class TextUserInterface : public UserInterface
        !            19:        {
        !            20:        public:
        !            21:                TextUserInterface ();
        !            22:                virtual ~TextUserInterface ();
        !            23: 
        !            24:                virtual shared_ptr <KeyfileList> AskKeyfiles (const wxString &message = L"") const;
        !            25:                virtual shared_ptr <VolumePassword> AskPassword (const wxString &message = L"", bool verify = false) const;
        !            26:                virtual wstring AskString (const wxString &message) const;
        !            27:                virtual shared_ptr <VolumePath> AskVolumePath (const wxString &message = L"") const;
        !            28:                virtual bool AskYesNo (const wxString &message, bool defaultYes = false, bool warning = false) const;
        !            29:                virtual void BeginBusyState () const { }
        !            30:                virtual void ChangePassword (shared_ptr <VolumePath> volumePath = shared_ptr <VolumePath>(), 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>()) const;
        !            31:                virtual void DoShowError (const wxString &message) const;
        !            32:                virtual void DoShowInfo (const wxString &message) const;
        !            33:                virtual void DoShowString (const wxString &str) const;
        !            34:                virtual void DoShowWarning (const wxString &message) const;
        !            35:                virtual void EndBusyState () const { }
        !            36:                virtual shared_ptr <GetStringFunctor> GetAdminPasswordRequestHandler ();
        !            37:                virtual VolumeInfoList MountAllDeviceHostedVolumes (MountOptions &options) const;
        !            38:                virtual shared_ptr <VolumeInfo> MountVolume (MountOptions &options) const;
        !            39:                virtual bool OnInit ();
        !            40:                virtual int OnRun();
        !            41:                static void SetTerminalEcho (bool enable);
        !            42:                virtual void Yield () const { }
        !            43: 
        !            44:        protected:
        !            45:                static void OnSignal (int signal);
        !            46: 
        !            47:                auto_ptr <wxFFileInputStream> FInputStream;
        !            48:                auto_ptr <wxTextInputStream> TextInputStream;
        !            49: 
        !            50:        private:
        !            51:                TextUserInterface (const TextUserInterface &);
        !            52:                TextUserInterface &operator= (const TextUserInterface &);
        !            53:        };
        !            54: 
        !            55:        extern wxMessageOutput *DefaultMessageOutput;
        !            56: }
        !            57: 
        !            58: #endif // TC_HEADER_Main_TextUserInterface

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.