|
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: Manipulates the settings of an effect called Doppler. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAMMSAUDIODOPPLERCONTROL_H |
|
20 #define CAMMSAUDIODOPPLERCONTROL_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <SourceDopplerBase.h> |
|
25 #include <CustomCommandUtility.h> |
|
26 #include "cammsdopplercontrol.h" |
|
27 |
|
28 // CONSTANTS |
|
29 _LIT(KAMMSAudioDopplerControl, "DopplerControl"); |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * |
|
35 * Controls for the Doppler Control effect for the Audio source. |
|
36 * This class delegates Doppler Control effect method calls to |
|
37 * CSourceDoppler. |
|
38 * |
|
39 * |
|
40 * @since 3.0 |
|
41 */ |
|
42 NONSHARABLE_CLASS(CAMMSAudioDopplerControl): public CAMMSDopplerControl |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 * @param aPlayer Player that has this control. |
|
49 * |
|
50 */ |
|
51 static CAMMSAudioDopplerControl* NewLC(CMMAPlayer* aPlayer); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 ~CAMMSAudioDopplerControl(); |
|
57 |
|
58 public: // Functions from base classes |
|
59 const TDesC& ClassName() const; |
|
60 |
|
61 /** |
|
62 * Prepares the Control. |
|
63 */ |
|
64 void PrepareControlL(); |
|
65 |
|
66 /** |
|
67 * Deallocates the Control. |
|
68 */ |
|
69 void DeallocateControl(); |
|
70 |
|
71 private: |
|
72 /** |
|
73 * C++ constructor. |
|
74 * @param aPlayer Player that has this control. |
|
75 */ |
|
76 CAMMSAudioDopplerControl(CMMAPlayer* aPlayer); |
|
77 }; |
|
78 |
|
79 #endif // CAMMSAUDIODOPPLERCONTROL_H |