|
1 /* |
|
2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of customization components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef FILE_CODER_B64_H |
|
21 #define FILE_CODER_B64_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * ?one_line_short_description. |
|
31 * ?other_description_lines |
|
32 * |
|
33 * @lib ?library |
|
34 * @since Series ?XX ?SeriesXX_version |
|
35 */ |
|
36 class TFileCoderB64 // : public ?base_class_list |
|
37 { |
|
38 |
|
39 public: // New functions |
|
40 |
|
41 /** |
|
42 * Encode data from given file to memory with B64 coding. |
|
43 * @since Series 60 3.1 |
|
44 * @param aFileName file to be encoded |
|
45 * @param aData return encoded data object |
|
46 * @return void |
|
47 */ |
|
48 TInt EncodeL( const TDesC8& aFileName, CBufFlat &aData ) const; |
|
49 TInt EncodeL( const TDesC8& aFileName, HBufC8* &aData ) const; |
|
50 |
|
51 /** |
|
52 * Decode B64 data to temporary file. |
|
53 * @since Series 60 3.1 |
|
54 * @param aData Data object to be decoded |
|
55 * @param aFileName return created temporary file name |
|
56 * @return void |
|
57 */ |
|
58 void DecodeL( const TDesC8& aData, TDes& aFileName ) const; |
|
59 |
|
60 void DecodeToL( const TDesC8& aData, const TDesC& aFileName ) const; |
|
61 |
|
62 public: // static function |
|
63 |
|
64 static TBool CheckB64Encode( const TDesC8& aData ); |
|
65 |
|
66 |
|
67 }; |
|
68 |
|
69 #endif // FILE_CODER_B64_H |
|
70 |
|
71 // End of File |