|
1 /* |
|
2 * Copyright (c) 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: This class implements |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "MetaDataParserRA.h" |
|
22 #ifdef _DEBUG |
|
23 #include <e32svr.h> |
|
24 #endif |
|
25 |
|
26 #include <s32mem.h> |
|
27 #include "MetaDataSourceFile.h" |
|
28 |
|
29 |
|
30 // ============================ MEMBER FUNCTIONS =============================== |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // CMetaDataParserRA::CMetaDataParserRA |
|
34 // C++ default constructor can NOT contain any code, that |
|
35 // might leave. |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 CMetaDataParserRA::CMetaDataParserRA( |
|
39 CMetaDataSource& aSource ) |
|
40 : iSource(aSource) |
|
41 { |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CMetaDataParserRA::ConstructL |
|
46 // Symbian 2nd phase constructor can leave. |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 void CMetaDataParserRA::ConstructL() |
|
50 { |
|
51 #ifdef _DEBUG |
|
52 RDebug::Print(_L("CMetaDataParserRA::ConstructL - Done")); |
|
53 #endif |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // CMetaDataParserRA::NewL |
|
58 // Two-phased constructor. |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 CMetaDataParserRA* CMetaDataParserRA::NewL( |
|
62 CMetaDataSource& aSource ) |
|
63 { |
|
64 #ifdef _DEBUG |
|
65 RDebug::Print(_L("CMetaDataParserRA::NewL")); |
|
66 #endif |
|
67 CMetaDataParserRA* self = new( ELeave ) CMetaDataParserRA(aSource); |
|
68 CleanupStack::PushL( self ); |
|
69 self->ConstructL(); |
|
70 CleanupStack::Pop(); |
|
71 return self; |
|
72 } |
|
73 |
|
74 // Destructor |
|
75 CMetaDataParserRA::~CMetaDataParserRA() |
|
76 { |
|
77 |
|
78 } |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // CMetaDataParserRA::ParseL |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 void CMetaDataParserRA::ParseL( |
|
85 const RArray<TMetaDataFieldId>& /*aWantedFields*/, |
|
86 CMetaDataFieldContainer& /*aContainer*/ ) |
|
87 { |
|
88 #ifdef _DEBUG |
|
89 RDebug::Print(_L("CMetaDataParserRA::ParseL")); |
|
90 #endif |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CMetaDataParserRA::ValidateL |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 TBool CMetaDataParserRA::ValidateL() |
|
98 { |
|
99 return EFalse; |
|
100 } |
|
101 |
|
102 // ----------------------------------------------------------------------------- |
|
103 // CMetaDataParserRA::OpenFileL |
|
104 // |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 void CMetaDataParserRA::OpenFileL(RFile& /*aFile*/) |
|
108 { |
|
109 #ifdef _DEBUG |
|
110 RDebug::Print(_L("CMetaDataParserRA::OpenFileL")); |
|
111 #endif |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 void CMetaDataParserRA::OpenDesL(const TDesC8& /*aDes*/) |
|
117 { |
|
118 #ifdef _DEBUG |
|
119 RDebug::Print(_L("CMetaDataParserRA::OpenDesL")); |
|
120 #endif |
|
121 } |
|
122 |
|
123 // ----------------------------------------------------------------------------- |
|
124 // CMetaDataParserRA::GetTitleL |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 TInt CMetaDataParserRA::GetTitleL(TInt /*aCount*/) |
|
128 { |
|
129 return KErrNotFound; |
|
130 } |
|
131 |
|
132 // ----------------------------------------------------------------------------- |
|
133 // CMetaDataParserRA::GetArtistL |
|
134 // ----------------------------------------------------------------------------- |
|
135 // |
|
136 TInt CMetaDataParserRA::GetArtistL(TInt /*aCount*/) |
|
137 { |
|
138 return KErrNotFound; |
|
139 } |
|
140 |
|
141 // ----------------------------------------------------------------------------- |
|
142 // CMetaDataParserRA::GetGenreL |
|
143 // ----------------------------------------------------------------------------- |
|
144 // |
|
145 TInt CMetaDataParserRA::GetGenreL(TInt /*aCount*/) |
|
146 { |
|
147 return KErrNotFound; |
|
148 } |
|
149 |
|
150 // ----------------------------------------------------------------------------- |
|
151 // CMetaDataParserRA::GeComposerL |
|
152 // ----------------------------------------------------------------------------- |
|
153 // |
|
154 TInt CMetaDataParserRA::GetComposerL(TInt /*aCount*/) |
|
155 { |
|
156 return KErrNotFound; |
|
157 } |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // CMetaDataParserRA::GetCopyrightL |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 TInt CMetaDataParserRA::GetCopyrightL(TInt /*aCount*/) |
|
164 { |
|
165 return KErrNotFound; |
|
166 } |
|
167 |
|
168 // End of File |