epoc32/include/imcvrecv.inl
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/imcvrecv.inl	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,203 +0,0 @@
     1.4 -// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// 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
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -// Class CRfc822Token Inline functions
    1.18 -// 
    1.19 -//
    1.20 -
    1.21 -
    1.22 -
    1.23 -inline HBufC8* CRfc822Token::OutputLine()
    1.24 -	{
    1.25 -	return iOutputLine;
    1.26 -	}
    1.27 -
    1.28 -inline TBool CRfc822Token::LastToken()
    1.29 -	{
    1.30 -	return iLastToken;
    1.31 -	}
    1.32 -
    1.33 -inline void CRfc822Token::SetImRecvConvert( CImRecvConvert* aImRecvConvert )
    1.34 -	{
    1.35 -	iImRecvConvert = aImRecvConvert;
    1.36 -	}
    1.37 -
    1.38 -
    1.39 -/****************************************************************************
    1.40 -	Class CImRecvConvert Inline functions
    1.41 -*****************************************************************************/
    1.42 -
    1.43 -inline void CImRecvConvert::SetAttachmentPathL(const TDesC& aFullPath)
    1.44 -	{
    1.45 -	// get full path to current message file = directory path
    1.46 -	if (iAttachmentFullPath)
    1.47 -		{
    1.48 -		delete iAttachmentFullPath;
    1.49 -		iAttachmentFullPath=NULL;
    1.50 -		}
    1.51 -	iAttachmentFullPath=aFullPath.AllocL();
    1.52 -	}
    1.53 -
    1.54 -inline void CImRecvConvert::SetMsvId(TMsvId aId)
    1.55 -	{
    1.56 -	iServerEntry->SetEntry(aId);
    1.57 -	iPopulateMessage = (iServerEntry->Entry().iType == KUidMsvMessageEntry);
    1.58 -	iRootEntryId = aId;
    1.59 -	}
    1.60 -
    1.61 -inline const TTime CImRecvConvert::Date() const
    1.62 -	{
    1.63 -	return iTimeDate;
    1.64 -	}
    1.65 -
    1.66 -inline const TMsvPriority CImRecvConvert::Priority() const
    1.67 -	{
    1.68 -	return iImPriority;
    1.69 -	}
    1.70 -
    1.71 -inline void CImRecvConvert::SaveAllAttachments(TBool aSave)
    1.72 -	{
    1.73 -	iSavingAttachments=aSave;
    1.74 -	}
    1.75 -
    1.76 -inline const TInt CImRecvConvert::ReceiveError() const
    1.77 -	{
    1.78 -	return iReceiveError;
    1.79 -	}
    1.80 -
    1.81 -inline CMsvServerEntry& CImRecvConvert::ServerEntry()
    1.82 -	{
    1.83 -	return *iServerEntry;
    1.84 -	}
    1.85 -
    1.86 -inline const TBool CImRecvConvert::ValidCompleteHeader() const
    1.87 -	{
    1.88 -	return (iEmptyHeaderSize<(iOutputHeader->DataSize()) && iFinishedHeader);
    1.89 -	}
    1.90 -
    1.91 -inline const CImHeader& CImRecvConvert::Header() const
    1.92 -	{
    1.93 -	return *iOutputHeader;
    1.94 -	}
    1.95 -
    1.96 -inline const TMsvId CImRecvConvert::EntryId() const
    1.97 -	{
    1.98 -	// If we are temporarily on the null entry then return the saved entry
    1.99 -	if (iServerEntry->Entry().Id() == KMsvNullIndexEntryId)
   1.100 -		return iSavedEntryId;
   1.101 -	else
   1.102 -		return iServerEntry->Entry().Id();
   1.103 -	}
   1.104 -
   1.105 -inline TBool CImRecvConvert::NotFinishedRfc822Header()
   1.106 -	{
   1.107 -	return iNotFinishedRfc822Header;
   1.108 -	}
   1.109 -
   1.110 -inline CImConvertCharconv& CImRecvConvert::CharacterConverter()
   1.111 -	{
   1.112 -	return *iCharConv;
   1.113 -	}
   1.114 -
   1.115 -/****************************************************************************
   1.116 -	Class CMimeParser Inline functions
   1.117 -*****************************************************************************/
   1.118 -inline void CMimeParser::StoreMimeHeaderL(CMsvStore& entryStore)
   1.119 -	{
   1.120 -	iMimeHeader->StoreL(entryStore);
   1.121 -	}
   1.122 -
   1.123 -inline void CMimeParser::StoreMimeHeaderWithoutCommitL(CMsvStore& entryStore)
   1.124 -	{
   1.125 -	iMimeHeader->StoreL(entryStore);
   1.126 -	}
   1.127 -
   1.128 -inline void CMimeParser::RestoreMimeHeaderL(CMsvStore& entryStore)
   1.129 -	{
   1.130 -	RestoreMimeParserL(entryStore);
   1.131 -	}
   1.132 -
   1.133 -inline TMimeContentType CMimeParser::ContentType()
   1.134 -	{
   1.135 -	return iContentType;
   1.136 -	}
   1.137 -
   1.138 -inline TImEncodingType CMimeParser::ContentEncoding()
   1.139 -	{
   1.140 -	return iContentEncoding;
   1.141 -	}
   1.142 -
   1.143 -inline const TBool CMimeParser::MessageIsMime() const
   1.144 -	{
   1.145 -	return isMime;
   1.146 -	}
   1.147 -
   1.148 -inline const TDesC& CMimeParser::ContentDescription() const
   1.149 -	{
   1.150 -	return iContentDescription;
   1.151 -	}
   1.152 -
   1.153 -inline const TPtrC CMimeParser::ContentLocation() const
   1.154 -	{
   1.155 -	return iMimeHeader->ContentLocation();
   1.156 -	}
   1.157 -
   1.158 -inline const TPtrC8 CMimeParser::ContentId() const
   1.159 -	{
   1.160 -	return iMimeHeader->ContentID();
   1.161 -	}
   1.162 -
   1.163 -inline const TPtrC8 CMimeParser::ContentDisposition() const
   1.164 -	{
   1.165 -	return iMimeHeader->ContentDisposition();
   1.166 -	}
   1.167 -
   1.168 -inline const TBool CMimeParser::IsTerminatingBoundary() const
   1.169 -	{
   1.170 -	return iTerminatingBoundary;
   1.171 -	}
   1.172 -
   1.173 -inline const TBool CMimeParser::BoundaryExists() const
   1.174 -	{
   1.175 -	return (iBoundaryLength!=0);
   1.176 -	}
   1.177 -
   1.178 -inline const TBool CMimeParser::BoundaryFound() const
   1.179 -	{
   1.180 -	return iBoundaryFound;
   1.181 -	}
   1.182 -
   1.183 -inline const TInt CMimeParser::MimeHeaderSize() const
   1.184 -	{
   1.185 -	return iEmptyMimeHeaderSize-iMimeHeader->Size();
   1.186 -	}
   1.187 -
   1.188 -inline const TInt CMimeParser::ReceiveError() const
   1.189 -	{
   1.190 -	return iReceiveError;
   1.191 -	}
   1.192 -
   1.193 -inline TBool CMimeParser::IsMessageDigest()
   1.194 -	{
   1.195 -	return (ContentType()==EMimeMultipart && ContentSubType().Compare(KImcvDigest)==0);
   1.196 -	}
   1.197 -
   1.198 -inline TBool CMimeParser::MimeFieldsExist() const
   1.199 -	{
   1.200 -	return iMimeFieldsExist;
   1.201 -	}
   1.202 -
   1.203 -inline void CMimeParser::ResetMimeFieldsExist()
   1.204 -	{
   1.205 -	iMimeFieldsExist=EFalse;
   1.206 -	}