本文整理汇总了C++中CCalEntry::SequenceNumberL方法的典型用法代码示例。如果您正苦于以下问题:C++ CCalEntry::SequenceNumberL方法的具体用法?C++ CCalEntry::SequenceNumberL怎么用?C++ CCalEntry::SequenceNumberL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCalEntry
的用法示例。
在下文中一共展示了CCalEntry::SequenceNumberL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ExtractEntriesL
// Helper method
// Extract all entries given by Guids in iCurrentTestData
void CDummyCalendarApp::ExtractEntriesL(TBool aCompareWithExpectedNum, TInt aExpectedNum)
{
// Extract entries by the GUIDs given in current-test-data's iGuids
for(TInt a = 0; a < iCurrentTestData->iGuidsToExtract.Count(); a++)
{
TPtrC8 guid = iCurrentTestData->iGuidsToExtract[a];
RPointerArray<CCalEntry> entryArray;
CleanupStack::PushL(TCleanupItem(ResetAndDestroyCalEntryArray, &entryArray));
iEntryView->FetchL(guid, entryArray);
test.Printf(_L("%d GS entries fetched\n"), entryArray.Count());
if (aCompareWithExpectedNum)
{
test.Printf(_L("%d entries were expected"), aExpectedNum);
test(entryArray.Count() == aExpectedNum);
}
CCalEntry* entryPtr;
for(TInt a = 0; a < entryArray.Count(); a++)
{
entryPtr = entryArray[a];
if(a==0)
{
test.Printf(_L("Parent -> SeqNum:%d\n"), entryPtr->SequenceNumberL());
}
else
{
TBuf<16> recIdTimeBuf;
TTime recIdTime = entryPtr->RecurrenceIdL().TimeLocalL();
recIdTime.FormatL(recIdTimeBuf, KFormatDate());
test.Printf(_L("Child -> SeqNum:%d, RecID: %S\n"), entryPtr->SequenceNumberL(), &recIdTimeBuf);
}
}
CleanupStack::Pop(); // TCleanupItem(ResetAndDestroyCalEntryArray, &entryArray)
entryArray.ResetAndDestroy();
}
}