--- a/textinput/peninputcommonctrls/src/peninputbuttons/peninputbutton.cpp Tue Sep 14 21:59:06 2010 +0300
+++ b/textinput/peninputcommonctrls/src/peninputbuttons/peninputbutton.cpp Wed Sep 15 12:34:44 2010 +0300
@@ -1928,6 +1928,22 @@
return KErrNotFound;
}
+// ------------------------------------------------
+// CAknFepCtrlMultiModeButton::ModeIndexByModeId
+// ------------------------------------------------
+EXPORT_C TInt CAknFepCtrlMultiModeButton::ModeIndexByModeId( TInt aModeId )
+ {
+ TInt count = NumberOfModes();
+ for ( TInt i = 0; i < count; i++ )
+ {
+ if (iModesList[i]->iModeId == aModeId )
+ {
+ return i;
+ }
+ }
+ return KErrNotFound;
+ }
+
// -----------------------------------------------------------------------------
// CAknFepCtrlMultiModeButton::GetRangeListL()
// (other items were commented in a header).