1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/Effect/src/MmfGlblAudioEffect.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,112 @@
1.4 +
1.5 +// MmfGlblAudioEffect.cpp
1.6 +
1.7 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.8 +// All rights reserved.
1.9 +// This component and the accompanying materials are made available
1.10 +// under the terms of "Eclipse Public License v1.0"
1.11 +// which accompanies this distribution, and is available
1.12 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.13 +//
1.14 +// Initial Contributors:
1.15 +// Nokia Corporation - initial contribution.
1.16 +//
1.17 +// Contributors:
1.18 +//
1.19 +// Description:
1.20 +//
1.21 +
1.22 +#include <mmf/common/mmfglblaudioeffect.h>
1.23 +#include <mmf/plugin/mmfglblaudioeffectplugin.h>
1.24 +
1.25 +//
1.26 +// CMmfGlobalAudioEffect
1.27 +//
1.28 +
1.29 +EXPORT_C TUint CMmfGlobalAudioEffect::Capability(TBool aCurrentOnly)
1.30 + {
1.31 + return iBaseImplementation->Capability(aCurrentOnly);
1.32 + }
1.33 +
1.34 +EXPORT_C void CMmfGlobalAudioEffect::RequestNotificationL(TUid aEventUid)
1.35 + {
1.36 + iBaseImplementation->RequestNotificationL(aEventUid);
1.37 + }
1.38 +
1.39 +EXPORT_C TBool CMmfGlobalAudioEffect::IsEnabled() const
1.40 + {
1.41 + return iBaseImplementation->IsEnabled();
1.42 + }
1.43 +
1.44 +EXPORT_C TBool CMmfGlobalAudioEffect::IsActive() const
1.45 + {
1.46 + return iBaseImplementation->IsActive();
1.47 + }
1.48 +
1.49 +EXPORT_C void CMmfGlobalAudioEffect::SetEnabledL(TBool aBool)
1.50 + {
1.51 + iBaseImplementation->SetEnabledL(aBool);
1.52 + }
1.53 +
1.54 +EXPORT_C TUid CMmfGlobalAudioEffect::SettingsByUidL() const
1.55 + {
1.56 + return iBaseImplementation->SettingsByUidL();
1.57 + }
1.58 +
1.59 +EXPORT_C void CMmfGlobalAudioEffect::SetSettingsByUidL(TUid aPresetUid)
1.60 + {
1.61 + iBaseImplementation->SetSettingsByUidL(aPresetUid);
1.62 + }
1.63 +
1.64 +EXPORT_C HBufC8* CMmfGlobalAudioEffect::SettingsByDesL() const
1.65 + {
1.66 + return iBaseImplementation->SettingsByDesL();
1.67 + }
1.68 +
1.69 +EXPORT_C void CMmfGlobalAudioEffect::SetSettingsByDesL(const TDesC8& aParam)
1.70 + {
1.71 + iBaseImplementation->SetSettingsByDesL(aParam);
1.72 + }
1.73 +
1.74 +EXPORT_C MMmfGlobalAudioPresetList* CMmfGlobalAudioEffect::KnownPresetsL()
1.75 + {
1.76 + return iBaseImplementation->KnownPresetsL();
1.77 + }
1.78 +
1.79 +EXPORT_C void CMmfGlobalAudioEffect::ExtractValuesL(TDes8& aPackageBuf)
1.80 + {
1.81 + iBaseImplementation->ExtractValuesL(aPackageBuf);
1.82 + }
1.83 +
1.84 +EXPORT_C void CMmfGlobalAudioEffect::SetByValuesL(const TDesC8& aPackageBuf)
1.85 + {
1.86 + iBaseImplementation->SetByValuesL(aPackageBuf);
1.87 + }
1.88 +
1.89 +EXPORT_C CMmfGlobalAudioEffect::CMmfGlobalAudioEffect()
1.90 + {
1.91 + // nothing to construct
1.92 + }
1.93 +
1.94 +EXPORT_C CMmfGlobalAudioEffect::~CMmfGlobalAudioEffect()
1.95 + {
1.96 + if (iBaseImplementation)
1.97 + {
1.98 + iBaseImplementation->Release();
1.99 + }
1.100 + }
1.101 +
1.102 +EXPORT_C void CMmfGlobalAudioEffect::BaseConstructL(TUid aImplementationUid, MMmfGlobalAudioEffectObserver* aObserver)
1.103 + {
1.104 + iBaseImplementation = MMmfGlobalAudioImpl::NewL(aImplementationUid, this, aObserver);
1.105 + }
1.106 +
1.107 +EXPORT_C TInt CMmfGlobalAudioEffect::CreateCustomInterface(TUid aInterfaceUid)
1.108 + {
1.109 + return iBaseImplementation->CreateCustomInterface(aInterfaceUid);
1.110 + }
1.111 +
1.112 +EXPORT_C TAny* CMmfGlobalAudioEffect::CustomInterface(TUid aInterfaceUid)
1.113 + {
1.114 + return iBaseImplementation->CustomInterface(aInterfaceUid);
1.115 + }