本文整理汇总了C++中CMsvAttachment::GetDesC8Attribute方法的典型用法代码示例。如果您正苦于以下问题:C++ CMsvAttachment::GetDesC8Attribute方法的具体用法?C++ CMsvAttachment::GetDesC8Attribute怎么用?C++ CMsvAttachment::GetDesC8Attribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMsvAttachment
的用法示例。
在下文中一共展示了CMsvAttachment::GetDesC8Attribute方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ImportFromAttachmentL
/**
Imports the Obex header list from the attachment. The header list is retrieved and
stored in this object. Any existing header data is over-written with the headers from
the attachment. If the headers have not been set, this obex list will still be
over written and result in zero headers.
@param aAttachment The attachment to retieve the header list from.
@leave System-wide error codes.
*/
EXPORT_C void CObexHeaderList::ImportFromAttachmentL(CMsvAttachment& aAttachment)
{
TPtrC8 headerData;
if( aAttachment.GetDesC8Attribute(KUidObexHeaders, headerData) == KErrNone )
{
// header data exists, attempt to import it
RDesReadStream readStream(headerData);
readStream.PushL();
readStream >> *this;
CleanupStack::PopAndDestroy(&readStream);
}