|
1 /* |
|
2 * Copyright (c) 2005 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: File output for encoder. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPOSLMFILEOUTPUT_H |
|
20 #define CPOSLMFILEOUTPUT_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <f32file.h> |
|
24 #include <s32file.h> |
|
25 #include "EPos_CPosLmOutput.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CPosLmDiskUtilities; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * File output for encoder. |
|
34 */ |
|
35 class CPosLmFileOutput : public CPosLmOutput |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 * |
|
42 * @param aOutputFile The file name to write the encoded data to. |
|
43 * @returns A new instance of this class. |
|
44 */ |
|
45 static CPosLmFileOutput* NewL( |
|
46 /* IN */ const TDesC& aOutputFile |
|
47 ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CPosLmFileOutput(); |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 /* |
|
57 * From CPosLmOutput. |
|
58 * |
|
59 * @param aDesc A descriptor that should be written to the output. |
|
60 */ |
|
61 void CheckLowDiskL( |
|
62 /* IN */ const TDesC16& aDesc |
|
63 ); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CPosLmFileOutput(); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL( |
|
76 /* IN */ const TDesC& aOutputFile |
|
77 ); |
|
78 |
|
79 // Prohibit copy constructor if not deriving from CBase. |
|
80 CPosLmFileOutput( const CPosLmFileOutput& ); |
|
81 // Prohibit assigment operator if not deriving from CBase. |
|
82 CPosLmFileOutput& operator=( const CPosLmFileOutput& ); |
|
83 |
|
84 private: // Data |
|
85 |
|
86 RFs iFs; |
|
87 RFileWriteStream iFileWriteStream; |
|
88 CPosLmDiskUtilities* iDiskUtilities; |
|
89 TChar iDbDrive; |
|
90 |
|
91 }; |
|
92 |
|
93 #endif // CPOSLMFILEOUTPUT_H |
|
94 |
|
95 // End of File |