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: Base class for AMMS controls. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAMMSCONTROL_H |
|
20 #define CAMMSCONTROL_H |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include <cmmacontrol.h> |
|
24 #include "ammsconstants.h" |
|
25 // RD_JAVA_HTTP_EMC_ENABLED |
|
26 #ifdef RD_JAVA_HTTP_EMC_ENABLED |
|
27 #include "StreamControl.h" |
|
28 #include "EffectControl.h" |
|
29 #include "MMControlFactory.h" |
|
30 using namespace multimedia; |
|
31 using multimedia ::MStreamControl; |
|
32 using multimedia ::MEffectControl; |
|
33 using multimedia ::CMultimediaFactory; |
|
34 #endif |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class CCustomCommandUtility; |
|
38 class CMMAPlayer; |
|
39 |
|
40 // CLASS DECLARATION |
|
41 |
|
42 /** |
|
43 * |
|
44 * Base class for AMMS controls. |
|
45 * |
|
46 * |
|
47 * @since 3.0 |
|
48 */ |
|
49 NONSHARABLE_CLASS(CAMMSControl): public CMMAControl |
|
50 { |
|
51 public: |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 virtual ~CAMMSControl(); |
|
56 |
|
57 public: // New functions |
|
58 /** |
|
59 * Creates the custom command utility. |
|
60 * @since 3.0 |
|
61 */ |
|
62 CCustomCommandUtility* CreateCustomCommandUtilityL(); |
|
63 |
|
64 /** |
|
65 * Prepares the Control by creating the Effect API Control. |
|
66 */ |
|
67 virtual void PrepareControlL(); |
|
68 |
|
69 /** |
|
70 * Deallocates the Control by deleting the Effect API Control. |
|
71 */ |
|
72 virtual void DeallocateControl(); |
|
73 |
|
74 public: // From CMMAControl |
|
75 |
|
76 const TDesC& PublicClassName() const; |
|
77 |
|
78 protected: |
|
79 |
|
80 /** |
|
81 * C++ default constructor. |
|
82 * @param aPlayer Player that has this control. |
|
83 */ |
|
84 CAMMSControl(CMMAPlayer* aPlayer); |
|
85 |
|
86 public: // Data |
|
87 |
|
88 /** Type of the Control */ |
|
89 TAMMSControlTypes iControlType; |
|
90 |
|
91 protected: // Data |
|
92 |
|
93 CMMAPlayer* iPlayer; // Not owned. |
|
94 }; |
|
95 |
|
96 #endif // CAMMSCONTROL_H |
|
97 |
|
98 |
|