本文整理汇总了C++中TMsvEntry::InPreparation方法的典型用法代码示例。如果您正苦于以下问题:C++ TMsvEntry::InPreparation方法的具体用法?C++ TMsvEntry::InPreparation怎么用?C++ TMsvEntry::InPreparation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TMsvEntry
的用法示例。
在下文中一共展示了TMsvEntry::InPreparation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: HandleMsgCreatedChangedL
// -----------------------------------------------------------------------------
// CMessageMonitorPlugin::HandleMsgCreatedChangedL
// -----------------------------------------------------------------------------
//
void CMessageMonitorPlugin::HandleMsgCreatedChangedL( const CMsvEntrySelection& aSelection,
const TMsvId aFolderId,
const TMsvSessionEvent aEvent )
{
WRITELOG("ENTER CMessageMonitorPlugin::HandleMsgCreatedChangedL");
TInt count( aSelection.Count() );
// cycle through every message in the CMsvEntrySelection
for ( TInt i=0; i < count; ++i )
{
// extract the message server entry from the parameters
TMsvId msgId = aSelection[i];
WRITELOG1("msgId: %d", msgId );
TMsvId service = 0;
TMsvEntry entry;
TInt err = iMsvSession->GetEntry( msgId, service, entry );
WRITELOG1("HandleMsgCreatedChangedL error: %d ", err);
THarvesterEventType event =
( aEvent == EMsvEntriesCreated ) || entry.Unread() ?
EHarvesterAdd :
EHarvesterEdit;
// ... we only want to process message entries, that are in the inbox
// ... and are valid for adding to Mds.
if ( ( !err ) &&
( KUidMsvMessageEntry == entry.iType ) &&
( KMsvGlobalInBoxIndexEntryId == aFolderId ) &&
( entry.Visible() && entry.Complete() && !entry.InPreparation() ) &&
( IsValidMessageTypeL( entry, *iMsvSession ) ) )
{
HBufC* uri = CreateUriL( entry.iMtm, msgId );
CleanupStack::PushL( uri );
CHarvesterData* hd = CHarvesterData::NewL( uri );
CleanupStack::Pop( uri );
hd->SetEventType( event );
hd->SetBinary( EFalse );
hd->SetTakeSnapshot( EFalse );
iMonitorPluginObserver->MonitorEvent( hd );
}
}
WRITELOG("END CMessageMonitorPlugin::HandleMsgCreatedChangedL");
}