mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cdescriptionutility.cpp
equal
deleted
inserted
replaced
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 } |