messagingfw/msgtestfw/TestActions/Email/Smtp/inc/ImCltCvRecv.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 2003-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 #if !defined (__IM_CLT_CV_RECV_H__)
       
    18 #define __IM_CLT_CV_RECV_H__
       
    19 
       
    20 
       
    21 #include <msvapi.h>
       
    22 
       
    23 #include "Local_imcvrecv.h"
       
    24 
       
    25 
       
    26 class CImCltRecvConvert : public CLocalImRecvConvert
       
    27 /**
       
    28 @internalTechnology
       
    29 @released
       
    30 */
       
    31 	{
       
    32 friend class CLocalMimeParser;
       
    33 public:
       
    34 	/*IMPORT_C*/ static CImCltRecvConvert* NewLC( RFs& anFs,CMsvEntry* aClientEntry,TUid aMsgType,TMsvId aEmailServiceId);
       
    35 	/*IMPORT_C*/ static CImCltRecvConvert* NewL( RFs& anFs,CMsvEntry* aClientEntry,TUid aMsgType,TMsvId aEmailServiceId);
       
    36 	/*IMPORT_C*/ ~CImCltRecvConvert();
       
    37 
       
    38 	/*IMPORT_C*/ void ResetL();
       
    39 	/*IMPORT_C*/ void ResetForHeadersL();
       
    40 
       
    41 	/*IMPORT_C*/ TInt ParseNextFieldL(const TDesC8& aSourceLine);
       
    42 	/*IMPORT_C*/ TMsvId MessageCompleteL();
       
    43 	/*IMPORT_C*/ void MessageCompleteL(TMsvEmailEntry aEmailEntry);
       
    44 	/*IMPORT_C*/ TMsvEmailEntry MessageEntryDetailsL();
       
    45 
       
    46 	inline void SetMsvId(TMsvId aId);
       
    47 	inline CMsvEntry& ClientEntry();
       
    48 	inline const TMsvId EntryId() const;	
       
    49 
       
    50 private:
       
    51 	CImCltRecvConvert(RFs& anFs,CMsvEntry* aClientEntry,TUid aMsgType,TMsvId aEmailServiceId);
       
    52 	void ConstructL(RFs& anFs);
       
    53 
       
    54 	void ParseNextLineL(const TDesC8& aSourceLine);
       
    55 	void ParseBodyLineL(const TDesC8& aSourceLine);
       
    56 	void ParseMimeLineL(const TDesC8& aSourceLine);
       
    57 	void EndOfHeaderProcessingL();
       
    58 	TBool CreateNonMIMEFolderEntryL(TMsvId aCurrentId);
       
    59 
       
    60 	TInt Value(const TUint8*&);
       
    61 	void Whitespace(const TUint8*&);
       
    62 
       
    63 	TBool CreateAttachmentL();
       
    64 	void WriteToAttachmentL(const TDesC8& text);
       
    65 
       
    66 	void MoveUpFromFolderEntryL();
       
    67 	void MoveToParentEntryL();
       
    68 	void UpdateMultipartDataL();
       
    69 
       
    70 	TBool StoreEntryDataL();
       
    71 
       
    72 	void StoreEntryStreamsL();
       
    73 	void StoreEntryStreamsL(TInt aSettings);
       
    74 	void CreateEntryL();
       
    75 	void StoreMessageEntryDetailsL();
       
    76 	
       
    77 private:
       
    78 	CMsvEntry* iClientEntry;
       
    79 	CMsvServerEntry* iNullServerEntry;
       
    80 	};
       
    81 
       
    82 
       
    83 #include "ImCltCvRecv.inl"
       
    84 
       
    85 #endif