|
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 creates an instance of different metadata parsers |
|
15 * available in this library. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CMETADATAPARSERFACTORY_H |
|
22 #define CMETADATAPARSERFACTORY_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class CMetaDataParser; |
|
29 class CMetaDataSource; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * This class creates an instance of different metadata parsers available |
|
35 * in this library. |
|
36 * |
|
37 * @lib MetaDataUtility.lib |
|
38 * @since 3.0 |
|
39 */ |
|
40 class CMetaDataParserFactory : public CBase |
|
41 { |
|
42 public: // New functions |
|
43 |
|
44 /** |
|
45 * Creates an instance of ID3 parser that can interpret the specified source. |
|
46 * @param aSource Reference to a metadata source |
|
47 * @return A pointer to a new instance of parser; NULL if parser is not created. |
|
48 */ |
|
49 static CMetaDataParser* CreateID3ParserL( CMetaDataSource& aSource ); |
|
50 |
|
51 /** |
|
52 * Creates an instance of MP4 parser that can interpret the specified file. |
|
53 * @param aSource Reference to a metadata source |
|
54 * @return A pointer to a new instance of parser; NULL if parser is not created. |
|
55 */ |
|
56 static CMetaDataParser* CreateMP4ParserFileL( CMetaDataSource& aSource ); |
|
57 |
|
58 /** |
|
59 * Creates an instance of MP4 parser that can interpret the specified descriptor. |
|
60 * @param aDes Source descriptor |
|
61 * @return A pointer to a new instance of parser; NULL if parser is not created. |
|
62 */ |
|
63 static CMetaDataParser* CreateMP4ParserDesL( const TDesC8& aDes ); |
|
64 |
|
65 /** |
|
66 * Creates an instance of DCF file parser. |
|
67 * @param aSource Reference to a metadata source |
|
68 * @return A pointer to a new instance of parser; NULL if parser is not created. |
|
69 */ |
|
70 static CMetaDataParser* CreateDcf1FileParserL( CMetaDataSource& aSource ); |
|
71 |
|
72 /** |
|
73 * Creates an instance of DCF2 file parser. |
|
74 * @param aSource Reference to a metadata source |
|
75 * @return A pointer to a new instance of parser; NULL if parser is not created. |
|
76 */ |
|
77 static CMetaDataParser* CreateDcf2FileParserL( CMetaDataSource& aSource ); |
|
78 |
|
79 /** |
|
80 * Creates an instance of WMA file parser. |
|
81 * @param aSource Reference to a metadata source |
|
82 * @return A pointer to a new instance of parser; NULL if parser is not created. |
|
83 */ |
|
84 static CMetaDataParser* CreateWMAParserFileL( CMetaDataSource& aSource ); |
|
85 |
|
86 /** |
|
87 * Creates an instance of RA parser. |
|
88 * @param aSource Reference to a metadata source |
|
89 * @return A pointer to a new instance of parser; NULL if parser is not created. |
|
90 */ |
|
91 static CMetaDataParser* CreateRAParserL( CMetaDataSource& aSource ); |
|
92 }; |
|
93 |
|
94 #endif // CMETADATAPARSERFACTORY_H |
|
95 |
|
96 // End of File |