void CTestSearchSortDeltaCache::TestChangeEntry() { _LIT(KFunction, "TestChangeEntry"); INFO_PRINTF1(KFunction); TSecureId aOwnerId = 0x999; sampleTMsvEntry.iDate.UniversalTime(); sampleTMsvEntry.SetParent(4096); sampleTMsvEntry.iType = KUidMsvMessageEntry; sampleTMsvEntry.SetId(10); iIndexAdapter->AddEntry(sampleTMsvEntry, aOwnerId, ETrue); TInt32 mtm1 = 35; TInt32 mtm2 = 45; sampleTMsvEntry.SetMtmData1(mtm1); sampleTMsvEntry.SetMtmData2(mtm2); iIndexAdapter->ChangeEntry(sampleTMsvEntry, 0x999, ETrue); ASSERT_TRUE(iSearchSortDeltaCache->iUpdateEntry.Count() == 0 ); }
void TestUniDataModelVCalPlugin::SetForMtmTypeL(TMsvEntry& aEntry, TBIOMessageType aType) { TInt index; aEntry.iBioType = KUidBIOVCalenderMsg; // Set other TMsvEntry fields if we have a BIO message type if (aType != ENoMessage) { aEntry.SetMtmData2(0); aEntry.SetMtmData3(0); } // set description from BIF file iBioDb->GetBioIndexWithMsgIDL(TUid::Uid(aEntry.iBioType), index); if (index == KErrNotFound) User::Leave(KErrNotFound); aEntry.iDescription.Set(iBioDb->BifReader(index).Description()); }