sl@0: /* sl@0: * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: This is the implementation of the CRestrictedAudioOutput class. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: // INCLUDE FILES sl@0: #include sl@0: #include sl@0: #include sl@0: #include "RestrictedAudioOutputImpl.h" sl@0: sl@0: sl@0: sl@0: EXPORT_C CRestrictedAudioOutput::CRestrictedAudioOutput() sl@0: sl@0: { sl@0: RDebug::Print(_L("CRestrictedAudioOutput[%x]:CRestrictedAudioOutput\n"),this); sl@0: } sl@0: // ----------------------------------------------------------------------------- sl@0: // CRestrictedAudioOutput::ConstructL sl@0: // Symbian 2nd phase constructor can leave. sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: EXPORT_C void CRestrictedAudioOutput::ConstructL() sl@0: { sl@0: #ifdef _DEBUG sl@0: RDebug::Print(_L("CRestrictedAudioOutput::ConstructL\n")); sl@0: #endif sl@0: iImpl = CRestrictedAudioOutputImpl::NewL(); sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CMMFDevSoundAdaptation::DestructL sl@0: // Destructor sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: EXPORT_C CRestrictedAudioOutput::~CRestrictedAudioOutput() sl@0: { sl@0: #ifdef _DEBUG sl@0: RDebug::Print(_L("CRestrictedAudioOutput[%x]RestrictedAudioOutput\n"),this); sl@0: #endif sl@0: delete iImpl; sl@0: } sl@0: sl@0: // --------------------------------------------------------- sl@0: // CRestrictedAudioOutput::AppendAllowedOutput sl@0: // ?implementation_description sl@0: // (other items were commented in a header). sl@0: // --------------------------------------------------------- sl@0: // sl@0: EXPORT_C TInt CRestrictedAudioOutput::AppendAllowedOutput(TAllowedOutputPreference aOutput) sl@0: { sl@0: #ifdef _DEBUG sl@0: RDebug::Print(_L("CRestrictedAudioOutput[%x]AppendAllowedOutput\n"),this); sl@0: #endif sl@0: return iImpl->AppendAllowedOutput(aOutput); sl@0: } sl@0: sl@0: // --------------------------------------------------------- sl@0: // CRestrictedAudioOutput::RemoveAllowedOutput sl@0: // ?implementation_description sl@0: // (other items were commented in a header). sl@0: // --------------------------------------------------------- sl@0: // sl@0: EXPORT_C TInt CRestrictedAudioOutput::RemoveAllowedOutput(TAllowedOutputPreference aOutput) sl@0: { sl@0: sl@0: return iImpl->RemoveAllowedOutput(aOutput); sl@0: } sl@0: sl@0: // --------------------------------------------------------- sl@0: // CRestrictedAudioOutput::GetAllowedOutput sl@0: // ?implementation_description sl@0: // (other items were commented in a header). sl@0: // --------------------------------------------------------- sl@0: // sl@0: EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutput(TInt aIndex, TAllowedOutputPreference& aOutput) sl@0: { sl@0: return iImpl->GetAllowedOutput(aIndex, aOutput); sl@0: } sl@0: sl@0: // --------------------------------------------------------- sl@0: // CRestrictedAudioOutput::GetAllowedOutputCount sl@0: // ?implementation_description sl@0: // (other items were commented in a header). sl@0: // --------------------------------------------------------- sl@0: // sl@0: EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutputCount(TInt& aSize) sl@0: { sl@0: #ifdef _DEBUG sl@0: RDebug::Print(_L("CRestrictedAudioOutput[%x]GetAllowedOutputCount\n"),this); sl@0: #endif sl@0: return iImpl->GetAllowedOutputCount(aSize); sl@0: } sl@0: sl@0: // --------------------------------------------------------- sl@0: // CRestrictedAudioOutput::Reset sl@0: // ?implementation_description sl@0: // (other items were commented in a header). sl@0: // --------------------------------------------------------- sl@0: // sl@0: EXPORT_C TInt CRestrictedAudioOutput::Reset() sl@0: { sl@0: return iImpl->Reset(); sl@0: } sl@0: sl@0: // --------------------------------------------------------- sl@0: // CRestrictedAudioOutput::Commit sl@0: // ?implementation_description sl@0: // (other items were commented in a header). sl@0: // --------------------------------------------------------- sl@0: // sl@0: EXPORT_C TInt CRestrictedAudioOutput::Commit() sl@0: { sl@0: return iImpl->Commit(); sl@0: } sl@0: sl@0: // End of file sl@0: