textinput/peninputcommonctrls/src/peninputbuttons/peninputbutton.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 44 ecbabf52600f
equal deleted inserted replaced
46:bd83ceabce89 50:5a1685599b76
  1924         {
  1924         {
  1925         return iModesList[aModeIndex]->iModeId;
  1925         return iModesList[aModeIndex]->iModeId;
  1926         }
  1926         }
  1927     
  1927     
  1928     return KErrNotFound;    
  1928     return KErrNotFound;    
       
  1929     }
       
  1930 
       
  1931 // ------------------------------------------------
       
  1932 // CAknFepCtrlMultiModeButton::ModeIndexByModeId
       
  1933 // ------------------------------------------------
       
  1934 EXPORT_C TInt CAknFepCtrlMultiModeButton::ModeIndexByModeId( TInt aModeId )
       
  1935     {
       
  1936     TInt count = NumberOfModes();
       
  1937     for ( TInt i = 0; i < count; i++ )
       
  1938          {
       
  1939          if (iModesList[i]->iModeId == aModeId )
       
  1940              {
       
  1941              return i;
       
  1942              }
       
  1943         }
       
  1944     return KErrNotFound;
  1929     }
  1945     }
  1930 
  1946 
  1931 // -----------------------------------------------------------------------------
  1947 // -----------------------------------------------------------------------------
  1932 // CAknFepCtrlMultiModeButton::GetRangeListL()
  1948 // CAknFepCtrlMultiModeButton::GetRangeListL()
  1933 // (other items were commented in a header).
  1949 // (other items were commented in a header).