1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Class CRfc822Token Inline functions
20 inline HBufC8* CRfc822Token::OutputLine()
25 inline TBool CRfc822Token::LastToken()
30 inline void CRfc822Token::SetImRecvConvert( CImRecvConvert* aImRecvConvert )
32 iImRecvConvert = aImRecvConvert;
36 /****************************************************************************
37 Class CImRecvConvert Inline functions
38 *****************************************************************************/
40 inline void CImRecvConvert::SetAttachmentPathL(const TDesC& aFullPath)
42 // get full path to current message file = directory path
43 if (iAttachmentFullPath)
45 delete iAttachmentFullPath;
46 iAttachmentFullPath=NULL;
48 iAttachmentFullPath=aFullPath.AllocL();
51 inline void CImRecvConvert::SetMsvId(TMsvId aId)
53 iServerEntry->SetEntry(aId);
54 iPopulateMessage = (iServerEntry->Entry().iType == KUidMsvMessageEntry);
58 inline const TTime CImRecvConvert::Date() const
63 inline const TMsvPriority CImRecvConvert::Priority() const
68 inline void CImRecvConvert::SaveAllAttachments(TBool aSave)
70 iSavingAttachments=aSave;
73 inline const TInt CImRecvConvert::ReceiveError() const
78 inline CMsvServerEntry& CImRecvConvert::ServerEntry()
83 inline const TBool CImRecvConvert::ValidCompleteHeader() const
85 return (iEmptyHeaderSize<(iOutputHeader->DataSize()) && iFinishedHeader);
88 inline const CImHeader& CImRecvConvert::Header() const
90 return *iOutputHeader;
93 inline const TMsvId CImRecvConvert::EntryId() const
95 // If we are temporarily on the null entry then return the saved entry
96 if (iServerEntry->Entry().Id() == KMsvNullIndexEntryId)
99 return iServerEntry->Entry().Id();
102 inline TBool CImRecvConvert::NotFinishedRfc822Header()
104 return iNotFinishedRfc822Header;
107 inline CImConvertCharconv& CImRecvConvert::CharacterConverter()
112 /****************************************************************************
113 Class CMimeParser Inline functions
114 *****************************************************************************/
115 inline void CMimeParser::StoreMimeHeaderL(CMsvStore& entryStore)
117 iMimeHeader->StoreL(entryStore);
120 inline void CMimeParser::StoreMimeHeaderWithoutCommitL(CMsvStore& entryStore)
122 iMimeHeader->StoreL(entryStore);
125 inline void CMimeParser::RestoreMimeHeaderL(CMsvStore& entryStore)
127 RestoreMimeParserL(entryStore);
130 inline TMimeContentType CMimeParser::ContentType()
135 inline TImEncodingType CMimeParser::ContentEncoding()
137 return iContentEncoding;
140 inline const TBool CMimeParser::MessageIsMime() const
145 inline const TDesC& CMimeParser::ContentDescription() const
147 return iContentDescription;
150 inline const TPtrC CMimeParser::ContentLocation() const
152 return iMimeHeader->ContentLocation();
155 inline const TPtrC8 CMimeParser::ContentId() const
157 return iMimeHeader->ContentID();
160 inline const TPtrC8 CMimeParser::ContentDisposition() const
162 return iMimeHeader->ContentDisposition();
165 inline const TBool CMimeParser::IsTerminatingBoundary() const
167 return iTerminatingBoundary;
170 inline const TBool CMimeParser::BoundaryExists() const
172 return (iBoundaryLength!=0);
175 inline const TBool CMimeParser::BoundaryFound() const
177 return iBoundaryFound;
180 inline const TInt CMimeParser::MimeHeaderSize() const
182 return iEmptyMimeHeaderSize-iMimeHeader->Size();
185 inline const TInt CMimeParser::ReceiveError() const
187 return iReceiveError;
190 inline TBool CMimeParser::IsMessageDigest()
192 return (ContentType()==EMimeMultipart && ContentSubType().Compare(KImcvDigest)==0);
195 inline TBool CMimeParser::MimeFieldsExist() const
197 return iMimeFieldsExist;
200 inline void CMimeParser::ResetMimeFieldsExist()
202 iMimeFieldsExist=EFalse;