|
1 // Copyright (c) 1997-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 // concrete conversion for a Plain Text to Quoted Printable |
|
15 // |
|
16 // |
|
17 |
|
18 #if !defined(__QPCONV_H__) |
|
19 #define __QPCONV_H__ |
|
20 #if !defined(__E32BASE_H__) |
|
21 #include <e32base.h> |
|
22 #endif |
|
23 |
|
24 const TInt KQuotedPrintableToText=0x10001825; |
|
25 const TUid KUidQuotedPrintableToText={KQuotedPrintableToText}; |
|
26 const TInt KTextToQuotedPrintable=0x10001826; |
|
27 const TUid KUidTextToQuotedPrintable={KTextToQuotedPrintable}; |
|
28 |
|
29 const TInt KQuotedPrintableConvertAbove=127; |
|
30 |
|
31 class CFileStore; |
|
32 class CStreamDictionary; |
|
33 |
|
34 NONSHARABLE_CLASS(CQpToTxtCnv) : public CConverterBase2 |
|
35 { |
|
36 public: |
|
37 CQpToTxtCnv(); |
|
38 public: // from CConverterBase2 |
|
39 void ConvertObjectAL(RReadStream& aReadStream, RWriteStream& aWriteStream, MConverterUiObserver* aObserver=NULL); |
|
40 TBool DoConvertL(); |
|
41 TInt Capabilities(); |
|
42 TUid Uid(); |
|
43 private: |
|
44 RReadStream* iReadStream; |
|
45 RWriteStream* iWriteStream; |
|
46 TBuf8<3> iBuffer; |
|
47 TInt iBufferPos; |
|
48 }; |
|
49 |
|
50 NONSHARABLE_CLASS(CTxtToQpCnv) : public CConverterBase2 |
|
51 { |
|
52 public: |
|
53 CTxtToQpCnv(); |
|
54 public: // from CConverterBase2 |
|
55 void ConvertObjectAL(RReadStream& aReadStream, RWriteStream& aWriteStream, MConverterUiObserver* aObserver=NULL); |
|
56 TBool DoConvertL(); |
|
57 TInt Capabilities(); |
|
58 TUid Uid(); |
|
59 void FormatAndWriteBufferL(TDes8& aChar); |
|
60 void WriteBufferL(TDes8& aChar); |
|
61 private: |
|
62 RReadStream* iReadStream; |
|
63 RWriteStream* iWriteStream; |
|
64 TInt iLineLen; |
|
65 TInt iEnableAllSplCharForQpCnv; |
|
66 }; |
|
67 #endif |
|
68 |