diff -r c53acadfccc6 -r acef663c1218 mds_plat/metadata_engine_api/inc/mdeobjectdef.h --- a/mds_plat/metadata_engine_api/inc/mdeobjectdef.h Mon Jan 18 20:34:07 2010 +0200 +++ b/mds_plat/metadata_engine_api/inc/mdeobjectdef.h Tue Jan 26 12:13:20 2010 +0200 @@ -116,7 +116,31 @@ CMdEPropertyDef* GetPropertyDefL(const TDesC& aName, CMdEObjectDef* aChild); void ConstructL(CMdCSerializationBuffer& aSchemaBuffer); + + /** + * Compares two properties. + * + * @param aFirst First property. + * @param aSecond Second property. + * + * @return 0, if the properties are equal; + * a negative value, if the first property is less than the second; + * a positive value, if the first property is greater than the second. + */ + static TInt CompareProperties( const CMdEPropertyDef& aFirst, const CMdEPropertyDef& aSecond ); + /** + * Compares two properties. + * + * @param aFirst First property id. + * @param aSecond Second property. + * + * @return 0, if the properties are equal; + * a negative value, if the first property is less than the second; + * a positive value, if the first property is greater than the second. + */ + static TInt CompareProperties( const TDefId* aFirst, const CMdEPropertyDef& aSecond ); + private: const TMdCObjectDef& iObjectDef; CMdENamespaceDef& iNamespaceDef;