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