equal
deleted
inserted
replaced
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). |