|
1 /* |
|
2 * Copyright (c) 2006 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: Project file for EnhancedMediaClient Utility |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef BALANCEEFFECTIMPL_H_ |
|
19 #define BALANCEEFFECTIMPL_H_ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <BalanceControl.h> |
|
23 #include "EffectControlBase.h" |
|
24 |
|
25 namespace multimedia |
|
26 { |
|
27 class CBalanceEffect : public CBase, |
|
28 public MBalanceControl, |
|
29 public CEffectControlBase |
|
30 { |
|
31 public: |
|
32 CBalanceEffect(); |
|
33 ~CBalanceEffect(); |
|
34 TInt PostConstructor(); |
|
35 |
|
36 // From MControl begins |
|
37 TInt AddObserver( MControlObserver& aObserver ); |
|
38 TInt RemoveObserver( MControlObserver& aObserver ); |
|
39 TUid Type(); |
|
40 TControlType ControlType(); |
|
41 // From MControl ends |
|
42 |
|
43 // From MEffectControl begins |
|
44 TInt Apply(); |
|
45 // From MEffectControl ends |
|
46 |
|
47 // From MBalanceControl begins |
|
48 TInt GetBalance(TInt& aBalance); |
|
49 TInt SetBalance(TInt& aBalance); |
|
50 // From MBalanceControl ends |
|
51 |
|
52 // From CEffectControlBase begins |
|
53 void Event( TEffectControlEvent aEvent ); |
|
54 // From CEffectControlBase ends |
|
55 |
|
56 private: |
|
57 TInt DoApply(); |
|
58 private: |
|
59 TInt iBalance; |
|
60 // Set when Client calls Apply |
|
61 TBool iEnabled; |
|
62 };//class CBalanceEffect |
|
63 |
|
64 } // namespace multimedia |
|
65 |
|
66 #endif /*BALANCEEFFECTIMPL_H_*/ |
|
67 |
|
68 // End of file |