phonebookengines/contactsmodel/cntplsql/inc/cpcskeymap.h
changeset 31 2a11b5b00470
parent 27 de1630741fbe
child 46 efe85016a067
--- a/phonebookengines/contactsmodel/cntplsql/inc/cpcskeymap.h	Mon May 03 12:24:20 2010 +0300
+++ b/phonebookengines/contactsmodel/cntplsql/inc/cpcskeymap.h	Fri May 14 15:42:23 2010 +0300
@@ -90,7 +90,7 @@
 		/**
 		 * Construct mappings between keys and characters.
 		 */
-		TBool ContructKeyboardMappings();
+		void ContructKeyboardMappings();
 
 		/**
          * Returns a list of languages installed on the phone.
@@ -108,8 +108,10 @@
          */
         TChar KeyForCharacter(const TChar& aChar) const;
 
+#if defined(_DEBUG)
         TInt KeyIdToNumber(TInt aKeyId) const;
-        
+#endif // #if defined(_DEBUG)
+
         TChar ArrayIndexToNumberChar(TInt aArrayIndex) const;
 #else // #if defined(USE_ORBIT_KEYMAP)
 		TChar GetNumericValueForChar(TChar input) const;
@@ -118,10 +120,18 @@
     private: // Data
 
 #if defined(USE_ORBIT_KEYMAP)
-		// One QString for each key of the keyboard (1-9,0).
+		// One QString for each key of the keyboard (1-9,0,*,#).
 		// Each contains all the characters that can originate from that key,
         // considering the languages available on the device.
+		//
+		// iKeyMapping[0] has mappings for 1-key, iKeyMapping[1] for 2-key, ...
+		// iKeyMapping[8] for 9-key, iKeyMapping[9] for 0-key,
+		// iKeyMapping[10] for *-key, iKeyMapping[11] for #-key.
         QList<QString> iKeyMapping;
+
+		// Characters that have been hardcoded to certain keys, regardless of
+		// actual keymap.
+		QString iHardcodedChars;
 #endif // #if defined(USE_ORBIT_KEYMAP)
 
 		// For unit testing