本文整理汇总了C++中TMsvEntry::SetMtmData2方法的典型用法代码示例。如果您正苦于以下问题:C++ TMsvEntry::SetMtmData2方法的具体用法?C++ TMsvEntry::SetMtmData2怎么用?C++ TMsvEntry::SetMtmData2使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TMsvEntry
的用法示例。
在下文中一共展示了TMsvEntry::SetMtmData2方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TestChangeEntry
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 );
}
示例2: SetForMtmTypeL
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());
}