mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cdescriptionutility.cpp
changeset 35 2ee890d2f7e7
parent 27 cbb1bfb7ebfb
equal deleted inserted replaced
32:edd273b3192a 35:2ee890d2f7e7
   132 // -----------------------------------------------------------------------------
   132 // -----------------------------------------------------------------------------
   133 //
   133 //
   134 TUint32 CDescriptionUtility::GetGroupCode( TUint32 aPropCode )
   134 TUint32 CDescriptionUtility::GetGroupCode( TUint32 aPropCode )
   135     {
   135     {
   136     TInt count = sizeof( KPropGroupMapTable ) / sizeof( KPropGroupMapTable[0] );
   136     TInt count = sizeof( KPropGroupMapTable ) / sizeof( KPropGroupMapTable[0] );
   137     // TODO: if need to refine the search approach to improve performance
   137 
   138     for( TInt i = 0; i < count; i++ )
   138     for( TInt i = 0; i < count; i++ )
   139         {
   139         {
   140         if ( aPropCode == KPropGroupMapTable[i].iPropCode )
   140         if ( aPropCode == KPropGroupMapTable[i].iPropCode )
   141             return KPropGroupMapTable[i].iGroupCode;
   141             return KPropGroupMapTable[i].iGroupCode;
   142         }
   142         }