epoc32/include/imcvrecv.inl
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // Class CRfc822Token Inline functions
    15 // 
    16 //
    17 
    18 
    19 
    20 inline HBufC8* CRfc822Token::OutputLine()
    21 	{
    22 	return iOutputLine;
    23 	}
    24 
    25 inline TBool CRfc822Token::LastToken()
    26 	{
    27 	return iLastToken;
    28 	}
    29 
    30 inline void CRfc822Token::SetImRecvConvert( CImRecvConvert* aImRecvConvert )
    31 	{
    32 	iImRecvConvert = aImRecvConvert;
    33 	}
    34 
    35 
    36 /****************************************************************************
    37 	Class CImRecvConvert Inline functions
    38 *****************************************************************************/
    39 
    40 inline void CImRecvConvert::SetAttachmentPathL(const TDesC& aFullPath)
    41 	{
    42 	// get full path to current message file = directory path
    43 	if (iAttachmentFullPath)
    44 		{
    45 		delete iAttachmentFullPath;
    46 		iAttachmentFullPath=NULL;
    47 		}
    48 	iAttachmentFullPath=aFullPath.AllocL();
    49 	}
    50 
    51 inline void CImRecvConvert::SetMsvId(TMsvId aId)
    52 	{
    53 	iServerEntry->SetEntry(aId);
    54 	iPopulateMessage = (iServerEntry->Entry().iType == KUidMsvMessageEntry);
    55 	iRootEntryId = aId;
    56 	}
    57 
    58 inline const TTime CImRecvConvert::Date() const
    59 	{
    60 	return iTimeDate;
    61 	}
    62 
    63 inline const TMsvPriority CImRecvConvert::Priority() const
    64 	{
    65 	return iImPriority;
    66 	}
    67 
    68 inline void CImRecvConvert::SaveAllAttachments(TBool aSave)
    69 	{
    70 	iSavingAttachments=aSave;
    71 	}
    72 
    73 inline const TInt CImRecvConvert::ReceiveError() const
    74 	{
    75 	return iReceiveError;
    76 	}
    77 
    78 inline CMsvServerEntry& CImRecvConvert::ServerEntry()
    79 	{
    80 	return *iServerEntry;
    81 	}
    82 
    83 inline const TBool CImRecvConvert::ValidCompleteHeader() const
    84 	{
    85 	return (iEmptyHeaderSize<(iOutputHeader->DataSize()) && iFinishedHeader);
    86 	}
    87 
    88 inline const CImHeader& CImRecvConvert::Header() const
    89 	{
    90 	return *iOutputHeader;
    91 	}
    92 
    93 inline const TMsvId CImRecvConvert::EntryId() const
    94 	{
    95 	// If we are temporarily on the null entry then return the saved entry
    96 	if (iServerEntry->Entry().Id() == KMsvNullIndexEntryId)
    97 		return iSavedEntryId;
    98 	else
    99 		return iServerEntry->Entry().Id();
   100 	}
   101 
   102 inline TBool CImRecvConvert::NotFinishedRfc822Header()
   103 	{
   104 	return iNotFinishedRfc822Header;
   105 	}
   106 
   107 inline CImConvertCharconv& CImRecvConvert::CharacterConverter()
   108 	{
   109 	return *iCharConv;
   110 	}
   111 
   112 /****************************************************************************
   113 	Class CMimeParser Inline functions
   114 *****************************************************************************/
   115 inline void CMimeParser::StoreMimeHeaderL(CMsvStore& entryStore)
   116 	{
   117 	iMimeHeader->StoreL(entryStore);
   118 	}
   119 
   120 inline void CMimeParser::StoreMimeHeaderWithoutCommitL(CMsvStore& entryStore)
   121 	{
   122 	iMimeHeader->StoreL(entryStore);
   123 	}
   124 
   125 inline void CMimeParser::RestoreMimeHeaderL(CMsvStore& entryStore)
   126 	{
   127 	RestoreMimeParserL(entryStore);
   128 	}
   129 
   130 inline TMimeContentType CMimeParser::ContentType()
   131 	{
   132 	return iContentType;
   133 	}
   134 
   135 inline TImEncodingType CMimeParser::ContentEncoding()
   136 	{
   137 	return iContentEncoding;
   138 	}
   139 
   140 inline const TBool CMimeParser::MessageIsMime() const
   141 	{
   142 	return isMime;
   143 	}
   144 
   145 inline const TDesC& CMimeParser::ContentDescription() const
   146 	{
   147 	return iContentDescription;
   148 	}
   149 
   150 inline const TPtrC CMimeParser::ContentLocation() const
   151 	{
   152 	return iMimeHeader->ContentLocation();
   153 	}
   154 
   155 inline const TPtrC8 CMimeParser::ContentId() const
   156 	{
   157 	return iMimeHeader->ContentID();
   158 	}
   159 
   160 inline const TPtrC8 CMimeParser::ContentDisposition() const
   161 	{
   162 	return iMimeHeader->ContentDisposition();
   163 	}
   164 
   165 inline const TBool CMimeParser::IsTerminatingBoundary() const
   166 	{
   167 	return iTerminatingBoundary;
   168 	}
   169 
   170 inline const TBool CMimeParser::BoundaryExists() const
   171 	{
   172 	return (iBoundaryLength!=0);
   173 	}
   174 
   175 inline const TBool CMimeParser::BoundaryFound() const
   176 	{
   177 	return iBoundaryFound;
   178 	}
   179 
   180 inline const TInt CMimeParser::MimeHeaderSize() const
   181 	{
   182 	return iEmptyMimeHeaderSize-iMimeHeader->Size();
   183 	}
   184 
   185 inline const TInt CMimeParser::ReceiveError() const
   186 	{
   187 	return iReceiveError;
   188 	}
   189 
   190 inline TBool CMimeParser::IsMessageDigest()
   191 	{
   192 	return (ContentType()==EMimeMultipart && ContentSubType().Compare(KImcvDigest)==0);
   193 	}
   194 
   195 inline TBool CMimeParser::MimeFieldsExist() const
   196 	{
   197 	return iMimeFieldsExist;
   198 	}
   199 
   200 inline void CMimeParser::ResetMimeFieldsExist()
   201 	{
   202 	iMimeFieldsExist=EFalse;
   203 	}