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

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 ();
1.1.1.2 ! root       37: #ifdef __WXGTK__
        !            38:                virtual bool Initialize (int &argc, wxChar **argv) { return wxAppBase::Initialize(argc, argv); }
        !            39: #endif
1.1       root       40:                virtual VolumeInfoList MountAllDeviceHostedVolumes (MountOptions &options) const;
                     41:                virtual shared_ptr <VolumeInfo> MountVolume (MountOptions &options) const;
                     42:                virtual bool OnInit ();
                     43:                virtual int OnRun();
                     44:                static void SetTerminalEcho (bool enable);
                     45:                virtual void Yield () const { }
                     46: 
                     47:        protected:
                     48:                static void OnSignal (int signal);
                     49: 
                     50:                auto_ptr <wxFFileInputStream> FInputStream;
                     51:                auto_ptr <wxTextInputStream> TextInputStream;
                     52: 
                     53:        private:
                     54:                TextUserInterface (const TextUserInterface &);
                     55:                TextUserInterface &operator= (const TextUserInterface &);
                     56:        };
                     57: 
                     58:        extern wxMessageOutput *DefaultMessageOutput;
                     59: }
                     60: 
                     61: #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.