equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 #ifndef __CIMAPRFC822HEADERFIELDSPARSER_H__ |
|
17 #define __CIMAPRFC822HEADERFIELDSPARSER_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "cimapheaderfieldsparser.h" |
|
21 |
|
22 class CImapFetchResponse; |
|
23 |
|
24 /** |
|
25 @internalTechnology |
|
26 @prototype |
|
27 */ |
|
28 NONSHARABLE_CLASS(CImapRfc822HeaderFieldsParser) : public CImapHeaderFieldsParser |
|
29 { |
|
30 public: |
|
31 static CImapRfc822HeaderFieldsParser* NewL(CImapFetchResponse& aFetchResponse, TInt aLogId); |
|
32 static CImapRfc822HeaderFieldsParser* NewLC(CImapFetchResponse& aFetchResponse, TInt aLogId); |
|
33 ~CImapRfc822HeaderFieldsParser(); |
|
34 |
|
35 private: |
|
36 CImapRfc822HeaderFieldsParser(CImapFetchResponse& aFetchResponse, TInt aLogId); |
|
37 void ConstructL(); |
|
38 void HeaderFieldsComplete(CImapHeaderFields* aHeaderFields); |
|
39 |
|
40 void ParseHeaderFieldsBlockL(const TDesC8& aData); |
|
41 void ParseFieldsL(); |
|
42 void ParsePartsL(RArray<TPtrC8>& aParts, TInt& aLength); |
|
43 |
|
44 private: |
|
45 CImapFetchResponse& iFetchResponse; |
|
46 }; |
|
47 |
|
48 #endif // __CIMAPRFC822HEADERFIELDSPARSER_H__ |