00001 /* 00002 * ============================================================================ 00003 * Name : eikhkeyt.h 00004 * Part of : S60 UI Framework / EikCoCtl 00005 * Description : Class declaration for EIKON hotkey table. 00006 * Version : %version: 1 % 00007 * 00008 * Copyright © 2002-2006 Nokia. All rights reserved. 00009 * This material, including documentation and any related computer 00010 * programs, is protected by copyright controlled by Nokia. All 00011 * rights are reserved. Copying, including reproducing, storing, 00012 * adapting or translating, any or all of this material requires the 00013 * prior written consent of Nokia. This material also contains 00014 * confidential information which may not be disclosed to others 00015 * without the prior written consent of Nokia. 00016 * ============================================================================ 00017 */ 00018 // Copyright (c) 1997-1999 Symbian Ltd. All rights reserved. 00019 00020 #ifndef __EIKHKEYT_H__ 00021 #define __EIKHKEYT_H__ 00022 00023 #include <e32base.h> 00024 #include <e32keys.h> 00025 00030 struct SEikHotKey 00031 { 00032 TInt iCommandId; 00033 TInt iKeycode; 00034 }; 00035 00042 class CEikHotKeyTable : public CArrayFixFlat<SEikHotKey> 00043 { 00044 public: 00045 00049 IMPORT_C CEikHotKeyTable(); 00050 00054 IMPORT_C ~CEikHotKeyTable(); 00055 00068 IMPORT_C TBool HotKeyFromCommandId( TInt aCommandId, 00069 TInt& aKeycode, 00070 TInt& aModifiers) const; 00071 00080 IMPORT_C TInt CommandIdFromHotKey(TInt aKeycode,TInt aModifiers) const; 00081 00092 IMPORT_C void AddItemL(TInt aCommandId,TInt aKeycode,TInt aModifiers); 00093 00100 IMPORT_C void RemoveItem(TInt aCommandId); 00101 00108 IMPORT_C void ConstructFromResourceL(TInt aResourceId); 00109 00113 IMPORT_C void Reset(); 00114 00115 private: 00116 TInt iNumberPlain; 00117 TInt iNumberCtrl; 00118 TInt iNumberShiftCtrl; 00119 TInt iSpare; 00120 }; 00121 00122 // __EIKHKEYT_H__ 00123 #endif