Annotation of truecrypt/main/hotkey.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_Hotkey
        !            10: #define TC_HEADER_Main_Hotkey
        !            11: 
        !            12: #include "System.h"
        !            13: #include "Main.h"
        !            14: 
        !            15: namespace TrueCrypt
        !            16: {
        !            17:        struct Hotkey;
        !            18:        typedef list < shared_ptr <Hotkey> > HotkeyList;
        !            19: 
        !            20:        struct Hotkey
        !            21:        {
        !            22:        public:
        !            23:                struct Id
        !            24:                {
        !            25:                        enum
        !            26:                        {
        !            27:                                DismountAll = 0,
        !            28:                                ForceDismountAllWipeCache,
        !            29:                                ForceDismountAllWipeCacheExit,
        !            30:                                MountAllDevices,
        !            31:                                MountAllFavorites,
        !            32:                                ShowHideApplication,
        !            33:                                WipeCache
        !            34:                        };
        !            35:                };
        !            36: 
        !            37:                Hotkey (int id, const wstring &name, const wxString &description, int virtualKeyCode = 0, int virtualKeyModifiers = 0)
        !            38:                        : Description (description), Id (id), Name (name), VirtualKeyCode (virtualKeyCode), VirtualKeyModifiers (virtualKeyModifiers) { }
        !            39: 
        !            40:                virtual ~Hotkey () { }
        !            41: 
        !            42:                static HotkeyList GetAvailableHotkeys ();
        !            43:                wxString GetShortcutString () const;
        !            44:                static wxString GetVirtualKeyCodeString (int virtualKeyCode);
        !            45:                static HotkeyList LoadList ();
        !            46:                static void RegisterList (wxWindow *handler, const HotkeyList &hotkeys);
        !            47:                static void SaveList (const HotkeyList &hotkeys);
        !            48:                static void UnregisterList (wxWindow *handler, const HotkeyList &hotkeys);
        !            49: 
        !            50:                wxString Description;
        !            51:                int Id;
        !            52:                wstring Name;
        !            53:                int VirtualKeyCode;
        !            54:                int VirtualKeyModifiers;
        !            55: 
        !            56:        protected:
        !            57:                static wxString GetFileName () { return L"Hotkeys.xml"; }
        !            58:        };
        !            59: }
        !            60: 
        !            61: #endif // TC_HEADER_Main_Hotkey

unix.superglobalmegacorp.com

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