本文整理汇总了C++中TMsvEntry::SetMtmData3方法的典型用法代码示例。如果您正苦于以下问题:C++ TMsvEntry::SetMtmData3方法的具体用法?C++ TMsvEntry::SetMtmData3怎么用?C++ TMsvEntry::SetMtmData3使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TMsvEntry
的用法示例。
在下文中一共展示了TMsvEntry::SetMtmData3方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CompleteMessage
TInt CIacSettingsParser::CompleteMessage()
{
TMsvEntry entry = iEntry.Entry();
entry.SetMtmData3(KBIO_MSG_ENTRY_PROCESSED);
TRAPD(error, iEntry.ChangeL(entry));
return error;
}
示例2: LaunchEditorL
// methods from CSendAsEditUtils
void CSendAsTestEditUtils::LaunchEditorL(TMsvId /*aId*/, TRequestStatus& aStatus)
{
CDummyObserver* ob1 = new(ELeave) CDummyObserver;
CleanupStack::PushL(ob1);
CMsvSession* session = CMsvSession::OpenSyncL(*ob1);
CleanupStack::PushL(session);
CMsvEntry* cEntry = CMsvEntry::NewL(*session, KMsvDraftEntryId,
TMsvSelectionOrdering(KMsvNoGrouping,EMsvSortByNone,ETrue));
CleanupStack::PushL(cEntry);
CMsvEntrySelection* selection = cEntry->ChildrenL();
CleanupStack::PushL(selection);
CMsvEntry* cEntry2 = session->GetEntryL(selection->At(0));
CleanupStack::PushL(cEntry2);
TMsvEntry entry = cEntry2->Entry();
entry.SetMtmData3(234567890); // Show we've been called by touching the TMsvEntry.
cEntry2->ChangeL(entry);
CleanupStack::PopAndDestroy(5, ob1); // cEntry2, selection, cEntry, session, ob1
iUserStatus = &aStatus;
aStatus = KRequestPending;
// wait a few seconds before completing
iEditTimer->After(KSendAsTestEditWaitTime);
}
示例3: 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());
}