1 /* |
|
2 * Copyright (c) 2005 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: AMMS player builder group for adding players. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAMMSPLAYERBUILDERGROUP_H |
|
20 #define CAMMSPLAYERBUILDERGROUP_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cammsplayerbuilder.h" |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * |
|
29 * This class is used to add AMMS audio controls to the player. |
|
30 * |
|
31 * |
|
32 * @since 3.0 |
|
33 */ |
|
34 NONSHARABLE_CLASS(CAMMSPlayerBuilderGroup): public CAMMSPlayerBuilder |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 static CAMMSPlayerBuilderGroup* NewL(); |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CAMMSPlayerBuilderGroup* NewLC(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CAMMSPlayerBuilderGroup(); |
|
51 |
|
52 public: // Funtions from base classes |
|
53 /** |
|
54 * Adds the AMMS audio controls to the player |
|
55 * |
|
56 * @param aPlayer The MMA Player where the AMMS controls are added |
|
57 */ |
|
58 virtual void PreparePlayerL(CMMAPlayer* aPlayer); |
|
59 |
|
60 public: // New methods |
|
61 /** |
|
62 * Adds the AMMS control builder |
|
63 * |
|
64 * @param aPlayerBuilder The AMMS player builder |
|
65 */ |
|
66 void AddBuilderAndPopL(CAMMSPlayerBuilder* aPlayerBuilder); |
|
67 |
|
68 private: |
|
69 /** |
|
70 * C++ default constructor. |
|
71 */ |
|
72 CAMMSPlayerBuilderGroup(); |
|
73 |
|
74 /** |
|
75 * By default Symbian 2nd phase constructor is private. |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 private: // Data |
|
80 |
|
81 CArrayPtrSeg< CAMMSPlayerBuilder >* iPlayerBuilders; // Owned |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // CAMMSPLAYERBUILDERGROUP_H |
|
86 |
|
87 |
|