eikhkeyt.h

Go to the documentation of this file.
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 
00019 #ifndef __EIKHKEYT_H__
00020 #define __EIKHKEYT_H__
00021 
00022 #include <e32base.h>
00023 #include <e32keys.h>
00024 
00029 struct SEikHotKey
00030         {
00031         TInt iCommandId; 
00032         TInt iKeycode;   
00033         };
00034 
00041 class CEikHotKeyTable : public CArrayFixFlat<SEikHotKey>
00042         {
00043 public:
00044 
00048         IMPORT_C CEikHotKeyTable();
00049         
00053         IMPORT_C ~CEikHotKeyTable();
00054         
00067         IMPORT_C TBool HotKeyFromCommandId( TInt aCommandId,
00068                                             TInt& aKeycode,
00069                                             TInt& aModifiers) const;
00070         
00079         IMPORT_C TInt CommandIdFromHotKey(TInt aKeycode,TInt aModifiers) const;
00080         
00091         IMPORT_C void AddItemL(TInt aCommandId,TInt aKeycode,TInt aModifiers);
00092         
00099         IMPORT_C void RemoveItem(TInt aCommandId);
00100         
00107         IMPORT_C void ConstructFromResourceL(TInt aResourceId);
00108         
00112         IMPORT_C void Reset();
00113         
00114 private:
00115         TInt iNumberPlain;
00116         TInt iNumberCtrl;
00117         TInt iNumberShiftCtrl;
00118         TInt iSpare;
00119         };
00120 
00121 // __EIKHKEYT_H__
00122 #endif

Copyright © Nokia Corporation 2001-2008
Back to top