os/mm/devsoundextensions/restrictedaudiooutput/RestrictedAudioOutputBase/src/RestrictedAudioOutput.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.
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:   This is the implementation of the CRestrictedAudioOutput class.
    15 *
    16 */
    17 
    18 
    19 
    20 
    21 // INCLUDE FILES
    22 #include <RestrictedAudioOutputProxy.h>
    23 #include <RestrictedAudioOutputMessageTypes.h>
    24 #include <RestrictedAudioOutput.h>
    25 #include "RestrictedAudioOutputImpl.h"
    26 
    27 
    28     
    29 EXPORT_C CRestrictedAudioOutput::CRestrictedAudioOutput()
    30 
    31 	{
    32 	RDebug::Print(_L("CRestrictedAudioOutput[%x]:CRestrictedAudioOutput\n"),this);
    33 	}    
    34 // -----------------------------------------------------------------------------
    35 // CRestrictedAudioOutput::ConstructL
    36 // Symbian 2nd phase constructor can leave.
    37 // -----------------------------------------------------------------------------
    38 //
    39 EXPORT_C void CRestrictedAudioOutput::ConstructL()
    40     {
    41 #ifdef _DEBUG    
    42 	RDebug::Print(_L("CRestrictedAudioOutput::ConstructL\n"));  
    43 #endif	  
    44     iImpl = CRestrictedAudioOutputImpl::NewL();
    45     }
    46        
    47 // -----------------------------------------------------------------------------
    48 // CMMFDevSoundAdaptation::DestructL
    49 // Destructor
    50 // -----------------------------------------------------------------------------
    51 //
    52 EXPORT_C CRestrictedAudioOutput::~CRestrictedAudioOutput()
    53     {
    54 #ifdef _DEBUG    
    55 	RDebug::Print(_L("CRestrictedAudioOutput[%x]RestrictedAudioOutput\n"),this); 
    56 #endif	
    57     delete iImpl;
    58     }
    59 
    60 // ---------------------------------------------------------
    61 // CRestrictedAudioOutput::AppendAllowedOutput
    62 // ?implementation_description
    63 // (other items were commented in a header).
    64 // ---------------------------------------------------------
    65 //
    66 EXPORT_C TInt CRestrictedAudioOutput::AppendAllowedOutput(TAllowedOutputPreference aOutput)
    67     {
    68 #ifdef _DEBUG    
    69 	RDebug::Print(_L("CRestrictedAudioOutput[%x]AppendAllowedOutput\n"),this); 
    70 #endif   
    71     return iImpl->AppendAllowedOutput(aOutput);
    72     }
    73 
    74 // ---------------------------------------------------------
    75 // CRestrictedAudioOutput::RemoveAllowedOutput
    76 // ?implementation_description
    77 // (other items were commented in a header).
    78 // ---------------------------------------------------------
    79 //
    80 EXPORT_C TInt CRestrictedAudioOutput::RemoveAllowedOutput(TAllowedOutputPreference aOutput)
    81     {
    82     
    83     return iImpl->RemoveAllowedOutput(aOutput);
    84     }
    85 
    86 // ---------------------------------------------------------
    87 // CRestrictedAudioOutput::GetAllowedOutput
    88 // ?implementation_description
    89 // (other items were commented in a header).
    90 // ---------------------------------------------------------
    91 //
    92 EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutput(TInt aIndex, TAllowedOutputPreference& aOutput)
    93     {
    94     return iImpl->GetAllowedOutput(aIndex, aOutput);
    95     }
    96     
    97 // ---------------------------------------------------------
    98 // CRestrictedAudioOutput::GetAllowedOutputCount
    99 // ?implementation_description
   100 // (other items were commented in a header).
   101 // ---------------------------------------------------------
   102 //
   103 EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutputCount(TInt& aSize)
   104     {
   105 #ifdef _DEBUG    
   106 	RDebug::Print(_L("CRestrictedAudioOutput[%x]GetAllowedOutputCount\n"),this);
   107 #endif	      
   108     return iImpl->GetAllowedOutputCount(aSize);
   109     }
   110     
   111 // ---------------------------------------------------------
   112 // CRestrictedAudioOutput::Reset
   113 // ?implementation_description
   114 // (other items were commented in a header).
   115 // ---------------------------------------------------------
   116 //
   117 EXPORT_C TInt CRestrictedAudioOutput::Reset()
   118     {
   119     return iImpl->Reset();
   120     }
   121     
   122 // ---------------------------------------------------------
   123 // CRestrictedAudioOutput::Commit
   124 // ?implementation_description
   125 // (other items were commented in a header).
   126 // ---------------------------------------------------------
   127 //
   128 EXPORT_C TInt CRestrictedAudioOutput::Commit()
   129     {
   130     return iImpl->Commit();
   131     }    
   132     
   133 // End of file
   134