|
1 |
|
2 // MmfGlblAudioEffect.cpp |
|
3 |
|
4 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
5 // All rights reserved. |
|
6 // This component and the accompanying materials are made available |
|
7 // under the terms of "Eclipse Public License v1.0" |
|
8 // which accompanies this distribution, and is available |
|
9 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 // |
|
11 // Initial Contributors: |
|
12 // Nokia Corporation - initial contribution. |
|
13 // |
|
14 // Contributors: |
|
15 // |
|
16 // Description: |
|
17 // |
|
18 |
|
19 #include <mmf/common/mmfglblaudioeffect.h> |
|
20 #include <mmf/plugin/mmfglblaudioeffectplugin.h> |
|
21 |
|
22 // |
|
23 // CMmfGlobalAudioEffect |
|
24 // |
|
25 |
|
26 EXPORT_C TUint CMmfGlobalAudioEffect::Capability(TBool aCurrentOnly) |
|
27 { |
|
28 return iBaseImplementation->Capability(aCurrentOnly); |
|
29 } |
|
30 |
|
31 EXPORT_C void CMmfGlobalAudioEffect::RequestNotificationL(TUid aEventUid) |
|
32 { |
|
33 iBaseImplementation->RequestNotificationL(aEventUid); |
|
34 } |
|
35 |
|
36 EXPORT_C TBool CMmfGlobalAudioEffect::IsEnabled() const |
|
37 { |
|
38 return iBaseImplementation->IsEnabled(); |
|
39 } |
|
40 |
|
41 EXPORT_C TBool CMmfGlobalAudioEffect::IsActive() const |
|
42 { |
|
43 return iBaseImplementation->IsActive(); |
|
44 } |
|
45 |
|
46 EXPORT_C void CMmfGlobalAudioEffect::SetEnabledL(TBool aBool) |
|
47 { |
|
48 iBaseImplementation->SetEnabledL(aBool); |
|
49 } |
|
50 |
|
51 EXPORT_C TUid CMmfGlobalAudioEffect::SettingsByUidL() const |
|
52 { |
|
53 return iBaseImplementation->SettingsByUidL(); |
|
54 } |
|
55 |
|
56 EXPORT_C void CMmfGlobalAudioEffect::SetSettingsByUidL(TUid aPresetUid) |
|
57 { |
|
58 iBaseImplementation->SetSettingsByUidL(aPresetUid); |
|
59 } |
|
60 |
|
61 EXPORT_C HBufC8* CMmfGlobalAudioEffect::SettingsByDesL() const |
|
62 { |
|
63 return iBaseImplementation->SettingsByDesL(); |
|
64 } |
|
65 |
|
66 EXPORT_C void CMmfGlobalAudioEffect::SetSettingsByDesL(const TDesC8& aParam) |
|
67 { |
|
68 iBaseImplementation->SetSettingsByDesL(aParam); |
|
69 } |
|
70 |
|
71 EXPORT_C MMmfGlobalAudioPresetList* CMmfGlobalAudioEffect::KnownPresetsL() |
|
72 { |
|
73 return iBaseImplementation->KnownPresetsL(); |
|
74 } |
|
75 |
|
76 EXPORT_C void CMmfGlobalAudioEffect::ExtractValuesL(TDes8& aPackageBuf) |
|
77 { |
|
78 iBaseImplementation->ExtractValuesL(aPackageBuf); |
|
79 } |
|
80 |
|
81 EXPORT_C void CMmfGlobalAudioEffect::SetByValuesL(const TDesC8& aPackageBuf) |
|
82 { |
|
83 iBaseImplementation->SetByValuesL(aPackageBuf); |
|
84 } |
|
85 |
|
86 EXPORT_C CMmfGlobalAudioEffect::CMmfGlobalAudioEffect() |
|
87 { |
|
88 // nothing to construct |
|
89 } |
|
90 |
|
91 EXPORT_C CMmfGlobalAudioEffect::~CMmfGlobalAudioEffect() |
|
92 { |
|
93 if (iBaseImplementation) |
|
94 { |
|
95 iBaseImplementation->Release(); |
|
96 } |
|
97 } |
|
98 |
|
99 EXPORT_C void CMmfGlobalAudioEffect::BaseConstructL(TUid aImplementationUid, MMmfGlobalAudioEffectObserver* aObserver) |
|
100 { |
|
101 iBaseImplementation = MMmfGlobalAudioImpl::NewL(aImplementationUid, this, aObserver); |
|
102 } |
|
103 |
|
104 EXPORT_C TInt CMmfGlobalAudioEffect::CreateCustomInterface(TUid aInterfaceUid) |
|
105 { |
|
106 return iBaseImplementation->CreateCustomInterface(aInterfaceUid); |
|
107 } |
|
108 |
|
109 EXPORT_C TAny* CMmfGlobalAudioEffect::CustomInterface(TUid aInterfaceUid) |
|
110 { |
|
111 return iBaseImplementation->CustomInterface(aInterfaceUid); |
|
112 } |