|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSTSEFACFILE_H |
|
20 #define CSTSEFACFILE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cstsfile.h" |
|
24 |
|
25 namespace java |
|
26 { |
|
27 namespace satsa |
|
28 { |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CSTSAce; |
|
32 class CSTSFileDataManager; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 /** |
|
36 * ACF card file class for handling file selection, reading and data |
|
37 * decoding. |
|
38 * |
|
39 * @since 3.0 |
|
40 */ |
|
41 NONSHARABLE_CLASS(CSTSEFACFile): public CSTSFile |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CSTSEFACFile* NewLC(CSTSFileDataManager* aFileDataManager); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CSTSEFACFile(); |
|
54 |
|
55 public: // New functions |
|
56 |
|
57 /** |
|
58 * Sets records array. This method MUST be called |
|
59 * before read method is used. |
|
60 * @since 3.0 |
|
61 * @param aRecordsArr Pointer to array where records will be added. |
|
62 */ |
|
63 void SetArray(CArrayPtr< CSTSAce>* aRecordsArr); |
|
64 |
|
65 void SetPath(const TDesC8& aPath); |
|
66 |
|
67 protected: //New fuctions |
|
68 |
|
69 /** |
|
70 * C++ default constructor. |
|
71 */ |
|
72 CSTSEFACFile(CSTSFileDataManager* aFileDataManager); |
|
73 |
|
74 protected: // Functions from base classes |
|
75 |
|
76 TBool DecodeAndAppendRowL(const TDesC8& aRowData, |
|
77 TInt aMaxValidDataAmount); |
|
78 |
|
79 void ResetData(); |
|
80 |
|
81 const TDesC8& RetrieveContentL(); |
|
82 |
|
83 private: // Data |
|
84 |
|
85 //array of Ace type of records |
|
86 CArrayPtr< CSTSAce>* iRecordsArr; //not owned |
|
87 |
|
88 }; |
|
89 |
|
90 } // namespace satsa |
|
91 } // namespace java |
|
92 #endif // CSTSEFACFILE_H |
|
93 // End of File |