email/email/smtp/inc/local_imcvrecv.inl
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 /**
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Class CRfc822Token Inline functions
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 /**
       
    26  @file
       
    27 */
       
    28 
       
    29 inline HBufC8* CLocalRfc822Token::OutputLine()
       
    30 	{
       
    31 	return iOutputLine;
       
    32 	}
       
    33 
       
    34 inline TBool CLocalRfc822Token::LastToken()
       
    35 	{
       
    36 	return iLastToken;
       
    37 	}
       
    38 
       
    39 inline void CLocalRfc822Token::SetImRecvConvert( CLocalImRecvConvert* aImRecvConvert )
       
    40 	{
       
    41 	iImRecvConvert = aImRecvConvert;
       
    42 	}
       
    43 
       
    44 
       
    45 /****************************************************************************
       
    46 	Class CLocalImRecvConvert Inline functions
       
    47 *****************************************************************************/
       
    48 
       
    49 inline void CLocalImRecvConvert::SetAttachmentPathL(const TDesC& aFullPath)
       
    50 	{
       
    51 	// get full path to current message file = directory path
       
    52 	if (iAttachmentFullPath)
       
    53 		{
       
    54 		delete iAttachmentFullPath;
       
    55 		iAttachmentFullPath=NULL;
       
    56 		}
       
    57 	iAttachmentFullPath=aFullPath.AllocL();
       
    58 	}
       
    59 
       
    60 inline void CLocalImRecvConvert::SetMsvId(TMsvId aId)
       
    61 	{
       
    62 	iServerEntry->SetEntry(aId);
       
    63 	iPopulateMessage = (iServerEntry->Entry().iType == KUidMsvMessageEntry);
       
    64 	iRootEntryId = aId;
       
    65 	}
       
    66 
       
    67 inline const TTime CLocalImRecvConvert::Date() const
       
    68 	{
       
    69 	return iTimeDate;
       
    70 	}
       
    71 
       
    72 inline const TMsvPriority CLocalImRecvConvert::Priority() const
       
    73 	{
       
    74 	return iImPriority;
       
    75 	}
       
    76 
       
    77 inline void CLocalImRecvConvert::SaveAllAttachments(TBool aSave)
       
    78 	{
       
    79 	iSavingAttachments=aSave;
       
    80 	}
       
    81 
       
    82 inline const TInt CLocalImRecvConvert::ReceiveError() const
       
    83 	{
       
    84 	return iReceiveError;
       
    85 	}
       
    86 
       
    87 inline CMsvServerEntry& CLocalImRecvConvert::ServerEntry()
       
    88 	{
       
    89 	return *iServerEntry;
       
    90 	}
       
    91 
       
    92 inline const TBool CLocalImRecvConvert::ValidCompleteHeader() const
       
    93 	{
       
    94 	return (iEmptyHeaderSize<(iOutputHeader->DataSize()) && iFinishedHeader);
       
    95 	}
       
    96 
       
    97 inline const CImHeader& CLocalImRecvConvert::Header() const
       
    98 	{
       
    99 	return *iOutputHeader;
       
   100 	}
       
   101 
       
   102 inline TBool CLocalImRecvConvert::NotFinishedRfc822Header()
       
   103 	{
       
   104 	return iNotFinishedRfc822Header;
       
   105 	}
       
   106 
       
   107 inline CImConvertCharconv& CLocalImRecvConvert::CharacterConverter()
       
   108 	{
       
   109 	return *iCharConv;
       
   110 	}
       
   111 
       
   112 /****************************************************************************
       
   113 	Class CLocalMimeParser Inline functions
       
   114 *****************************************************************************/
       
   115 inline void CLocalMimeParser::StoreMimeHeaderL(CMsvStore& entryStore)
       
   116 	{
       
   117 	iMimeHeader->StoreL(entryStore);
       
   118 	}
       
   119 
       
   120 inline void CLocalMimeParser::StoreMimeHeaderWithoutCommitL(CMsvStore& entryStore)
       
   121 	{
       
   122 	iMimeHeader->StoreL(entryStore);
       
   123 	}
       
   124 
       
   125 inline void CLocalMimeParser::RestoreMimeHeaderL(CMsvStore& entryStore)
       
   126 	{
       
   127 	RestoreMimeParserL(entryStore);
       
   128 	}
       
   129 
       
   130 inline TMimeContentType CLocalMimeParser::ContentType()
       
   131 	{
       
   132 	return iContentType;
       
   133 	}
       
   134 
       
   135 inline TImEncodingType CLocalMimeParser::ContentEncoding()
       
   136 	{
       
   137 	return iContentEncoding;
       
   138 	}
       
   139 
       
   140 inline const TBool CLocalMimeParser::MessageIsMime() const
       
   141 	{
       
   142 	return isMime;
       
   143 	}
       
   144 
       
   145 inline const TDesC& CLocalMimeParser::ContentDescription() const
       
   146 	{
       
   147 	return iContentDescription;
       
   148 	}
       
   149 
       
   150 inline const TPtrC CLocalMimeParser::ContentLocation() const
       
   151 	{
       
   152 	return iMimeHeader->ContentLocation();
       
   153 	}
       
   154 
       
   155 inline const TPtrC8 CLocalMimeParser::ContentId() const
       
   156 	{
       
   157 	return iMimeHeader->ContentID();
       
   158 	}
       
   159 
       
   160 inline const TPtrC8 CLocalMimeParser::ContentDisposition() const
       
   161 	{
       
   162 	return iMimeHeader->ContentDisposition();
       
   163 	}
       
   164 
       
   165 inline const TBool CLocalMimeParser::IsTerminatingBoundary() const
       
   166 	{
       
   167 	return iTerminatingBoundary;
       
   168 	}
       
   169 
       
   170 inline const TBool CLocalMimeParser::BoundaryExists() const
       
   171 	{
       
   172 	return (iBoundaryLength!=0);
       
   173 	}
       
   174 
       
   175 inline const TBool CLocalMimeParser::BoundaryFound() const
       
   176 	{
       
   177 	return iBoundaryFound;
       
   178 	}
       
   179 
       
   180 inline const TInt CLocalMimeParser::MimeHeaderSize() const
       
   181 	{
       
   182 	return iEmptyMimeHeaderSize-iMimeHeader->Size();
       
   183 	}
       
   184 
       
   185 inline const TInt CLocalMimeParser::ReceiveError() const
       
   186 	{
       
   187 	return iReceiveError;
       
   188 	}
       
   189 
       
   190 inline TBool CLocalMimeParser::IsMessageDigest()
       
   191 	{
       
   192 	return (ContentType()==EMimeMultipart && ContentSubType().Compare(KImcvDigest)==0);
       
   193 	}
       
   194 
       
   195 inline TBool CLocalMimeParser::MimeFieldsExist() const
       
   196 	{
       
   197 	return iMimeFieldsExist;
       
   198 	}
       
   199 
       
   200 inline void CLocalMimeParser::ResetMimeFieldsExist()
       
   201 	{
       
   202 	iMimeFieldsExist=EFalse;
       
   203 	}