本文整理汇总了C++中TMsvEntry::Priority方法的典型用法代码示例。如果您正苦于以下问题:C++ TMsvEntry::Priority方法的具体用法?C++ TMsvEntry::Priority怎么用?C++ TMsvEntry::Priority使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TMsvEntry
的用法示例。
在下文中一共展示了TMsvEntry::Priority方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ListChildrenL
EXPORT_C void CMsvTestUtils::ListChildrenL(RFile& aFile, CDir& rfcFileList, TInt& aCount, TInt& aEntryCount, TBool aReplace, TBool aOtherFiles)
{
// Check details of attachments on current context entry
// Get list of children IDs
CMsvEntrySelection* msvSelection = NULL;
TMsvEntry entry;
if (iClientServer==EClientSide)
{
entry = iMsvEntry->Entry();
msvSelection = iMsvEntry->ChildrenL();
}
else
{
entry = iServerEntry->Entry();
msvSelection = new (ELeave) CMsvEntrySelection;
iServerEntry->GetChildren(*msvSelection);
}
CleanupStack::PushL(msvSelection);
TInt attachCount = msvSelection->Count(); // For each child ..
TPtrC type;
SetFolderType(entry, type);
TPtrC priority;
TMsvPriority temp=entry.Priority();
if(temp==EMsvHighPriority)
priority.Set(_L("High "));
else if(temp==EMsvMediumPriority)
priority.Set(_L("Medium"));
else if(temp==EMsvLowPriority)
priority.Set(_L("Low "));
else
priority.Set(_L("None "));
TBuf<11> other=_L("------- ");
TBuf<6> streams=_L("------");
if ((iClientServer==EClientSide && iMsvEntry->HasStoreL()) ||
(iClientServer==EServerSide && iServerEntry->HasStoreL()))
{
CMsvStore* fileStore;
fileStore = (iClientServer==EClientSide) ? iMsvEntry->ReadStoreL() : iServerEntry->ReadStoreL();
if(aOtherFiles && fileStore->IsPresentL(KMsvEntryRichTextBody))
{
WriteBodyDataL(entry.Id(), iLogsDir, *fileStore, aReplace);
streams.Replace(2, 1, _L("B"));
}
delete fileStore;
}
if(entry.Attachment())
streams.Replace(3, 1, _L("A"));
if (entry.New())
other.Replace(1, 1, _L("N"));
if (entry.Unread())
other.Replace(2, 1, _L("U"));
if (entry.Complete())
other.Replace(3, 1, _L("C"));
TBuf<600> outputLine;
// Put details into output string buffer
TMsvId current=entry.Id();
if (iClientServer==EClientSide)
iMsvEntry->SetEntryL(current);
else
iServerEntry->SetEntry(current);
for(TInt i=0; i<aCount; i++)
outputLine.AppendFormat(_L(" "));
outputLine.AppendFormat(TRefByValue<const TDesC>_L("%S, 00%x, Children=%d, Size=%d, Store=%S, P=%S, Other=%S, Det:%S\r\n"),
&type,
entry.Id(),
attachCount,
entry.iSize,
&streams,
&priority,
&other,
&entry.iDetails);
HBufC8* pOutputLine8 = HBufC8::NewLC(outputLine.Length());
pOutputLine8->Des().Copy(outputLine);
aFile.Write(pOutputLine8->Des());
CleanupStack::PopAndDestroy(); // pBuf16
for(TInt j=0; j<attachCount; j++)
{
// Get Context of current message
if (iClientServer==EClientSide)
iMsvEntry->SetEntryL((*msvSelection)[j]);
else
iServerEntry->SetEntry((*msvSelection)[j]);
aEntryCount++;
//.........这里部分代码省略.........