os/mm/devsoundextensions/restrictedaudiooutput/RestrictedAudioOutputBase/src/RestrictedAudioOutput.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsoundextensions/restrictedaudiooutput/RestrictedAudioOutputBase/src/RestrictedAudioOutput.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,134 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:   This is the implementation of the CRestrictedAudioOutput class.
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +
    1.24 +// INCLUDE FILES
    1.25 +#include <RestrictedAudioOutputProxy.h>
    1.26 +#include <RestrictedAudioOutputMessageTypes.h>
    1.27 +#include <RestrictedAudioOutput.h>
    1.28 +#include "RestrictedAudioOutputImpl.h"
    1.29 +
    1.30 +
    1.31 +    
    1.32 +EXPORT_C CRestrictedAudioOutput::CRestrictedAudioOutput()
    1.33 +
    1.34 +	{
    1.35 +	RDebug::Print(_L("CRestrictedAudioOutput[%x]:CRestrictedAudioOutput\n"),this);
    1.36 +	}    
    1.37 +// -----------------------------------------------------------------------------
    1.38 +// CRestrictedAudioOutput::ConstructL
    1.39 +// Symbian 2nd phase constructor can leave.
    1.40 +// -----------------------------------------------------------------------------
    1.41 +//
    1.42 +EXPORT_C void CRestrictedAudioOutput::ConstructL()
    1.43 +    {
    1.44 +#ifdef _DEBUG    
    1.45 +	RDebug::Print(_L("CRestrictedAudioOutput::ConstructL\n"));  
    1.46 +#endif	  
    1.47 +    iImpl = CRestrictedAudioOutputImpl::NewL();
    1.48 +    }
    1.49 +       
    1.50 +// -----------------------------------------------------------------------------
    1.51 +// CMMFDevSoundAdaptation::DestructL
    1.52 +// Destructor
    1.53 +// -----------------------------------------------------------------------------
    1.54 +//
    1.55 +EXPORT_C CRestrictedAudioOutput::~CRestrictedAudioOutput()
    1.56 +    {
    1.57 +#ifdef _DEBUG    
    1.58 +	RDebug::Print(_L("CRestrictedAudioOutput[%x]RestrictedAudioOutput\n"),this); 
    1.59 +#endif	
    1.60 +    delete iImpl;
    1.61 +    }
    1.62 +
    1.63 +// ---------------------------------------------------------
    1.64 +// CRestrictedAudioOutput::AppendAllowedOutput
    1.65 +// ?implementation_description
    1.66 +// (other items were commented in a header).
    1.67 +// ---------------------------------------------------------
    1.68 +//
    1.69 +EXPORT_C TInt CRestrictedAudioOutput::AppendAllowedOutput(TAllowedOutputPreference aOutput)
    1.70 +    {
    1.71 +#ifdef _DEBUG    
    1.72 +	RDebug::Print(_L("CRestrictedAudioOutput[%x]AppendAllowedOutput\n"),this); 
    1.73 +#endif   
    1.74 +    return iImpl->AppendAllowedOutput(aOutput);
    1.75 +    }
    1.76 +
    1.77 +// ---------------------------------------------------------
    1.78 +// CRestrictedAudioOutput::RemoveAllowedOutput
    1.79 +// ?implementation_description
    1.80 +// (other items were commented in a header).
    1.81 +// ---------------------------------------------------------
    1.82 +//
    1.83 +EXPORT_C TInt CRestrictedAudioOutput::RemoveAllowedOutput(TAllowedOutputPreference aOutput)
    1.84 +    {
    1.85 +    
    1.86 +    return iImpl->RemoveAllowedOutput(aOutput);
    1.87 +    }
    1.88 +
    1.89 +// ---------------------------------------------------------
    1.90 +// CRestrictedAudioOutput::GetAllowedOutput
    1.91 +// ?implementation_description
    1.92 +// (other items were commented in a header).
    1.93 +// ---------------------------------------------------------
    1.94 +//
    1.95 +EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutput(TInt aIndex, TAllowedOutputPreference& aOutput)
    1.96 +    {
    1.97 +    return iImpl->GetAllowedOutput(aIndex, aOutput);
    1.98 +    }
    1.99 +    
   1.100 +// ---------------------------------------------------------
   1.101 +// CRestrictedAudioOutput::GetAllowedOutputCount
   1.102 +// ?implementation_description
   1.103 +// (other items were commented in a header).
   1.104 +// ---------------------------------------------------------
   1.105 +//
   1.106 +EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutputCount(TInt& aSize)
   1.107 +    {
   1.108 +#ifdef _DEBUG    
   1.109 +	RDebug::Print(_L("CRestrictedAudioOutput[%x]GetAllowedOutputCount\n"),this);
   1.110 +#endif	      
   1.111 +    return iImpl->GetAllowedOutputCount(aSize);
   1.112 +    }
   1.113 +    
   1.114 +// ---------------------------------------------------------
   1.115 +// CRestrictedAudioOutput::Reset
   1.116 +// ?implementation_description
   1.117 +// (other items were commented in a header).
   1.118 +// ---------------------------------------------------------
   1.119 +//
   1.120 +EXPORT_C TInt CRestrictedAudioOutput::Reset()
   1.121 +    {
   1.122 +    return iImpl->Reset();
   1.123 +    }
   1.124 +    
   1.125 +// ---------------------------------------------------------
   1.126 +// CRestrictedAudioOutput::Commit
   1.127 +// ?implementation_description
   1.128 +// (other items were commented in a header).
   1.129 +// ---------------------------------------------------------
   1.130 +//
   1.131 +EXPORT_C TInt CRestrictedAudioOutput::Commit()
   1.132 +    {
   1.133 +    return iImpl->Commit();
   1.134 +    }    
   1.135 +    
   1.136 +// End of file
   1.137 +