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