|
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 is a builder class for decoder object. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CAACAUDIOPLAYCONTROLLERDECODERBUILDER_H |
|
21 #define CAACAUDIOPLAYCONTROLLERDECODERBUILDER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // CONSTANTS |
|
27 const TInt KAACDecoder = 1; |
|
28 const TInt KAACConverter = 2; |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CAdvancedAudioDecoder; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * This class implements converter builder. |
|
37 * |
|
38 * @lib AACAudioPlayControllerPlugin.lib |
|
39 * @since 3.0 |
|
40 */ |
|
41 class CAACAudioPlayControllerDecoderBuilder : public CBase |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 */ |
|
48 static CAACAudioPlayControllerDecoderBuilder* NewL(); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CAACAudioPlayControllerDecoderBuilder(); |
|
54 |
|
55 public: // New functions |
|
56 |
|
57 /** |
|
58 * Creates a decoder of specified type. |
|
59 * @param none |
|
60 * @return pointer to CAdvancedAudioDecoder object |
|
61 */ |
|
62 CAdvancedAudioDecoder* BuildDecoderL( TInt aType ); |
|
63 |
|
64 private: |
|
65 |
|
66 /** |
|
67 * C++ default constructor. |
|
68 */ |
|
69 CAACAudioPlayControllerDecoderBuilder(); |
|
70 |
|
71 /** |
|
72 * By default Symbian 2nd phase constructor is private. |
|
73 */ |
|
74 void ConstructL(); |
|
75 |
|
76 private: // Data |
|
77 |
|
78 }; |
|
79 |
|
80 #endif // CAACAUDIOPLAYCONTROLLERDECODERBUILDER_H |
|
81 |
|
82 // End of File |