mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cdescriptionutility.cpp
branchRCL_3
changeset 34 e257e2b6459d
parent 23 4740b34b83ce
equal deleted inserted replaced
30:6f9f6e99a23e 34:e257e2b6459d
   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         }