本文整理汇总了C++中CMsvEntry::ChildrenWithMtmL方法的典型用法代码示例。如果您正苦于以下问题:C++ CMsvEntry::ChildrenWithMtmL方法的具体用法?C++ CMsvEntry::ChildrenWithMtmL怎么用?C++ CMsvEntry::ChildrenWithMtmL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMsvEntry
的用法示例。
在下文中一共展示了CMsvEntry::ChildrenWithMtmL方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RemoveOrphanLogicsL
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
//
void CIpsSosAOImapPopLogic::RemoveOrphanLogicsL()
{
CMsvEntry* cEntry = iSession.GetEntryL( KMsvRootIndexEntryId );
CleanupStack::PushL( cEntry );
CMsvEntrySelection* popEntries = cEntry->ChildrenWithMtmL( KSenduiMtmPop3Uid );
CleanupStack::PushL( popEntries );
CMsvEntrySelection* imapEntries = cEntry->ChildrenWithMtmL( KSenduiMtmImap4Uid );
CleanupStack::PushL( imapEntries );
TInt count = iMailboxLogics.Count();
for(TInt i=count-1; i>-1;i--)
{
if( popEntries->Find(iMailboxLogics[i]->GetMailboxId()) == KErrNotFound &&
imapEntries->Find(iMailboxLogics[i]->GetMailboxId()) == KErrNotFound)
{
StopAndRemoveMailboxL( iMailboxLogics[i]->GetMailboxId() );
}
}
CleanupStack::PopAndDestroy( 3, cEntry );
}
示例2: ExecuteActionL
/**
Function : ExecuteActionL
Description : Issues command to Pigeon Server MTM to schedule/reschedule the messages
@internalTechnology
@param : none
@return : void
@pre
@post none
*/
void CMtfTestActionSchedulePigeonMessage::ExecuteActionL()
{
TestCase().INFO_PRINTF2(_L("Test Action %S start..."), &KTestActionSchedulePigeonMessage);
// Obtain input parameters
CMsvSession* paramSession = ObtainParameterReferenceL<CMsvSession>(TestCase(),
ActionParameters().Parameter(0));
TMsvId paramParentId = ObtainValueParameterL<TMsvId>(TestCase(),
ActionParameters().Parameter(1));
TInt paramCommand = ObtainValueParameterL<TInt>(TestCase(),
ActionParameters().Parameter(2));
//Error Handling Just in case one of the above inputs fail.
if(TestCase().TestStepResult() == EPass)
{
CMsvEntry* entry = CMsvEntry::NewL(*paramSession,paramParentId,TMsvSelectionOrdering());
// Get the selection of Pigeon Messages
iSelection = entry->ChildrenWithMtmL(KUidMsgTypePigeon);
// Initiate asynchronous operation, passing the schedule/reschedule the message in the selection
// Dummy aParameter value passed as Pigeon MTM does not make use of it.
iOperation = paramSession->TransferCommandL(*iSelection,paramCommand, _L8("aaaa"), iStatus);
CActiveScheduler::Add(this);
SetActive();
}
TestCase().INFO_PRINTF2(_L("Test Action %S completed."), &KTestActionSchedulePigeonMessage);
}
示例3: RefreshMailboxListL
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
//
void CIpsSosAOImapPopLogic::RefreshMailboxListL( )
{
FUNC_LOG;
CMsvEntry* cEntry = iSession.GetEntryL( KMsvRootIndexEntryId );
CleanupStack::PushL( cEntry );
CMsvEntrySelection* childEntries = cEntry->ChildrenWithMtmL( KSenduiMtmPop3Uid );
CleanupStack::PushL( childEntries );
UpdateLogicArrayL( *childEntries );
CleanupStack::PopAndDestroy( childEntries );
childEntries = cEntry->ChildrenWithMtmL( KSenduiMtmImap4Uid );
CleanupStack::PushL( childEntries );
UpdateLogicArrayL( *childEntries );
CleanupStack::PopAndDestroy( childEntries );
CleanupStack::PopAndDestroy( cEntry );
}
示例4: mailbox_defined
EXPORT_C TBool phonehelper::mailbox_defined()
{
CALLSTACKITEM_N(_CL("phonehelper"), _CL("mailbox_defined"));
TBool mailbox_defined = EFalse;
dummyhandler * dummy=new (ELeave) dummyhandler;
CleanupStack::PushL(dummy);
CMsvSession * session = CMsvSession::OpenSyncL(*dummy);
CleanupStack::PushL(session);
CMsvEntry* entry = CMsvEntry::NewL(*session, KMsvRootIndexEntryId ,TMsvSelectionOrdering());
CleanupStack::PushL(entry);
CMsvEntrySelection* imap = entry->ChildrenWithMtmL(KSenduiMtmImap4Uid);
CleanupStack::PushL(imap);
CMsvEntrySelection* pop = entry->ChildrenWithMtmL(KSenduiMtmPop3Uid);
CleanupStack::PushL(pop);
if ((imap->Count() >0) || (pop->Count()>0)) mailbox_defined = ETrue;
CleanupStack::PopAndDestroy(5); //dummy, session, entry
return mailbox_defined;
}
示例5: DoExecuteL
LOCAL_C void DoExecuteL()
{
CActiveScheduler* activeScheduler = new (ELeave) CActiveScheduler();
CleanupStack::PushL(activeScheduler);
CActiveScheduler::Install(activeScheduler);
// Create Session
CSessionObserver* sessionObserver;
sessionObserver = new (ELeave) CSessionObserver;
CleanupStack::PushL(sessionObserver);
CMsvSession* session = CMsvSession::OpenSyncL(*sessionObserver);
CleanupStack::PushL(session);
// Set the message entry to global Outbox folder
CMsvEntry* msvEntry = session->GetEntryL(KMsvGlobalOutBoxIndexEntryId);
CleanupStack::PushL(msvEntry);
// Get the selection of Pigeon messages present in Outbox
CMsvEntrySelection* selection = msvEntry->ChildrenWithMtmL(KUidMsgTypePigeon);
CleanupStack::PushL(selection);
// Schedule it to send immediately - use default settings.
CMsvScheduleSettings* settings = CMsvScheduleSettings::NewL();
CleanupStack::PushL(settings);
RScheduler scheduler;
TSchedulerItemRef ref;
CMsvScheduleSend::ConnectAndRegisterL(scheduler, *settings);
CleanupClosePushL(scheduler);
TInt selCount = selection->Count();
for( TInt index = 0; index < selCount; ++index )
{
msvEntry->SetEntryL(selection->At(index));
if(msvEntry != NULL)
{
TMsvEntry entry = msvEntry->Entry();
ref.iHandle = KErrNotFound;
FindOrCreateScheduleL(scheduler, entry.iDate, *settings, ref);
User::LeaveIfError(scheduler.DisableSchedule(ref.iHandle));
TMsvSchedulePackage package;
package.iPollProgress = 3000000;
package.iCommandId = ESendScheduledL;
package.iId = selection->At(index);
TTaskInfo info;
CMsvScheduleSend::ScheduleEntryL(scheduler, ref, package, info);
User::LeaveIfError(scheduler.EnableSchedule(ref.iHandle));
}
}
CleanupStack::PopAndDestroy(7, activeScheduler);
}