|
1 /* |
|
2 * Copyright (c) 2009 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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TMS_GAIN_EFFECT_BODY_IMPL_H |
|
19 #define TMS_GAIN_EFFECT_BODY_IMPL_H |
|
20 |
|
21 #include <tms.h> |
|
22 #include "tmsgaineffectbody.h" |
|
23 #include "tmsqueuehandler.h" |
|
24 |
|
25 namespace TMS { |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class TMSEffectObserver; |
|
29 class TMSCallProxy; |
|
30 class TMSEffect; |
|
31 |
|
32 // TMSGainEffectBodyImpl class |
|
33 class TMSGainEffectBodyImpl : public TMSGainEffectBody, |
|
34 public MQueueHandlerObserver |
|
35 { |
|
36 public: |
|
37 static gint Create(TMSGainEffectBody*& bodyimpl); |
|
38 |
|
39 // From TMSGainEffectBody |
|
40 virtual ~TMSGainEffectBodyImpl(); |
|
41 virtual gint AddObserver(TMSEffectObserver& obsrvr, gpointer user_data); |
|
42 virtual gint RemoveObserver(TMSEffectObserver& obsrvr); |
|
43 virtual gint SetLevel(const guint level); |
|
44 virtual gint GetLevel(guint& level); |
|
45 virtual gint GetMaxLevel(guint& level); |
|
46 virtual gint GetType(TMSEffectType& effecttype); |
|
47 |
|
48 // From MQueueHandlerObserver |
|
49 virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data); |
|
50 |
|
51 gint SetParentEffect(TMSEffect*& parenteffect); |
|
52 void SetProxy(TMSCallProxy* aProxy, gpointer queuehandler); |
|
53 |
|
54 private: |
|
55 TMSGainEffectBodyImpl(); |
|
56 gint PostConstruct(); |
|
57 |
|
58 private: |
|
59 TMSEffectObserver* iObserver; |
|
60 gpointer iUserData; |
|
61 TMSCallProxy* iProxy; |
|
62 TMSEffect* iParentEffect; |
|
63 }; |
|
64 |
|
65 } //namespace TMS |
|
66 |
|
67 #endif // TMS_GAIN_EFFECT_BODY_IMPL_H |
|
68 |
|
69 // End of file |