1 /* |
|
2 * Copyright (c) 2009 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 __CHARVESTERAUDIOPLAYLISTPARSER_H__ |
|
20 #define __CHARVESTERAUDIOPLAYLISTPARSER_H__ |
|
21 |
|
22 #include <charconv.h> |
|
23 #include <barsc.h> |
|
24 |
|
25 #include "harvesterm3uplaylistparser.h" |
|
26 |
|
27 // |
|
28 // CAudioMDParser |
|
29 // |
|
30 class CHarvesterAudioPlaylistParser : public CBase |
|
31 { |
|
32 public: |
|
33 static CHarvesterAudioPlaylistParser* NewL(); |
|
34 virtual ~CHarvesterAudioPlaylistParser(); |
|
35 |
|
36 TBool ParseMimeType( const TDesC& aFileName, TDes& aMimeType ); |
|
37 TBool ParseL( const TDesC& aFileName, RPointerArray<HBufC>& aUriArray, TPtrC aMimeType ); |
|
38 void Reset(); |
|
39 |
|
40 private: |
|
41 CHarvesterAudioPlaylistParser(); |
|
42 void ConstructL(); |
|
43 |
|
44 /** |
|
45 * Generate to character sets based on locale. |
|
46 */ |
|
47 void GenerateTopCharacterSetsL(); |
|
48 |
|
49 /** |
|
50 * Select character set(s) for the specified language. |
|
51 * @param aLanguage language to select character sets for |
|
52 */ |
|
53 void SelectCharacterSetsForLanguageL( TInt aLanguage ); |
|
54 |
|
55 /** |
|
56 * reads the character set for the specified resource. |
|
57 * @param aResourceId id of the resource to read from the resource file |
|
58 */ |
|
59 void ReadCharacterSetResourceL( TInt aResourceId ); |
|
60 |
|
61 /** |
|
62 * Determine whether the given character set is specified |
|
63 * as top character set. |
|
64 * @param aCharacterSetId id of the character set to be tested |
|
65 */ |
|
66 TBool IsInTopCharacterSet( TUint aCharacterSetId ); |
|
67 |
|
68 private: |
|
69 RFs iFs; |
|
70 |
|
71 CArrayFix<CCnvCharacterSetConverter::SCharacterSet>* iTopCharacterSet; |
|
72 CArrayFix<CCnvCharacterSetConverter::SCharacterSet>* iAvailableCharacterSet; |
|
73 |
|
74 RResourceFile iRscFile; |
|
75 |
|
76 CHarvesterM3UPlaylistParser* iM3UParser; |
|
77 }; |
|
78 |
|
79 |
|
80 |
|
81 #endif // __CHARVESTERAUDIOPLAYLISTPARSER_H__ |
|
82 |
|