/** Comparing the datas with the set values from the ini file.
@param	aCalEntry Pointer to CCalEntry.
@param	aEntryProperties Structure containing the entry properties
*/
void CTestCalInterimApiFetchEntryAndCheckData::CheckDataL(CCalEntry* aCalEntry, const TEntryProperties& aEntryProperties)
	{
	if ( aEntryProperties.iSummary != KNullDesC16() )
		{
		TPtrC	summary(aCalEntry->SummaryL());
		INFO_PRINTF3(KExpectedAndFoundSummary, &aEntryProperties.iSummary, &summary);
		TEST1( summary == aEntryProperties.iSummary, ETrue);
		}
	if ( aEntryProperties.iDescription != KNullDesC16() )
		{
		TPtrC	description(aCalEntry->DescriptionL());
		INFO_PRINTF3(KExpectedAndFoundDescription, &aEntryProperties.iDescription, &description);
		TEST1( description == aEntryProperties.iDescription, ETrue);
		}
	if ( aEntryProperties.iLocation != KNullDesC16() )
		{
		TPtrC	location(aCalEntry->LocationL());
		INFO_PRINTF3(KExpectedAndFoundLocation, &aEntryProperties.iLocation, &location);
		TEST1( location == aEntryProperties.iLocation, ETrue);	
		}
	if(aEntryProperties.iCategories != KNullDesC16() )
		{
		CheckCategoriesL(aCalEntry, aEntryProperties.iCategories);
		}
	if(aEntryProperties.iHasLocalId )
		{
		TCalLocalUid	localId(aCalEntry->LocalUidL());
		INFO_PRINTF3(KExpectedAndFoundLocalId, aEntryProperties.iLocalId, localId);
		TEST1( localId == aEntryProperties.iLocalId, ETrue );
		}
	if(aEntryProperties.iHasPriority )
		{
		TUint	priority(aCalEntry->PriorityL());
		INFO_PRINTF3(KExpectedAndFoundPriority, aEntryProperties.iPriority, priority);
		TEST1( priority == aEntryProperties.iPriority, ETrue );
		}
	if (aEntryProperties.iGeoLat != KNullDesC16() && aEntryProperties.iGeoLong != KNullDesC16())
		{
		CheckGEOPropertyL(aCalEntry, aEntryProperties.iGeoLat, aEntryProperties.iGeoLong);
		}
	if (aEntryProperties.iTrans != KValueIntNotIni)
		{
		TInt trans(aCalEntry->TimeTransparencyL());
		INFO_PRINTF3(KExpectedAndFoundStatus, aEntryProperties.iTrans, trans);
		TEST1( trans == aEntryProperties.iTrans, ETrue);
		}
		
	}
Esempio n. 2
0
				static void _UpdateAutoIncrement(
					util::RegistryKeyType id
				){
					util::RegistryObjectType localId(util::decodeObjectId(id));

					boost::mutex::scoped_lock mutex(*_idMutex);

					if(	!K::TABLE.HAS_AUTO_INCREMENT ||
						util::decodeGridNodeId(id) != DBModule::GetNodeId() ||
						localId < _autoIncrementValue
					){
						return;
					}

					_autoIncrementValue = localId + 1;
				}