os/mm/devsoundextensions/restrictedaudiooutput/RestrictedAudioOutputBase/src/RestrictedAudioOutput.cpp
First public contribution.
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: This is the implementation of the CRestrictedAudioOutput class.
22 #include <RestrictedAudioOutputProxy.h>
23 #include <RestrictedAudioOutputMessageTypes.h>
24 #include <RestrictedAudioOutput.h>
25 #include "RestrictedAudioOutputImpl.h"
29 EXPORT_C CRestrictedAudioOutput::CRestrictedAudioOutput()
32 RDebug::Print(_L("CRestrictedAudioOutput[%x]:CRestrictedAudioOutput\n"),this);
34 // -----------------------------------------------------------------------------
35 // CRestrictedAudioOutput::ConstructL
36 // Symbian 2nd phase constructor can leave.
37 // -----------------------------------------------------------------------------
39 EXPORT_C void CRestrictedAudioOutput::ConstructL()
42 RDebug::Print(_L("CRestrictedAudioOutput::ConstructL\n"));
44 iImpl = CRestrictedAudioOutputImpl::NewL();
47 // -----------------------------------------------------------------------------
48 // CMMFDevSoundAdaptation::DestructL
50 // -----------------------------------------------------------------------------
52 EXPORT_C CRestrictedAudioOutput::~CRestrictedAudioOutput()
55 RDebug::Print(_L("CRestrictedAudioOutput[%x]RestrictedAudioOutput\n"),this);
60 // ---------------------------------------------------------
61 // CRestrictedAudioOutput::AppendAllowedOutput
62 // ?implementation_description
63 // (other items were commented in a header).
64 // ---------------------------------------------------------
66 EXPORT_C TInt CRestrictedAudioOutput::AppendAllowedOutput(TAllowedOutputPreference aOutput)
69 RDebug::Print(_L("CRestrictedAudioOutput[%x]AppendAllowedOutput\n"),this);
71 return iImpl->AppendAllowedOutput(aOutput);
74 // ---------------------------------------------------------
75 // CRestrictedAudioOutput::RemoveAllowedOutput
76 // ?implementation_description
77 // (other items were commented in a header).
78 // ---------------------------------------------------------
80 EXPORT_C TInt CRestrictedAudioOutput::RemoveAllowedOutput(TAllowedOutputPreference aOutput)
83 return iImpl->RemoveAllowedOutput(aOutput);
86 // ---------------------------------------------------------
87 // CRestrictedAudioOutput::GetAllowedOutput
88 // ?implementation_description
89 // (other items were commented in a header).
90 // ---------------------------------------------------------
92 EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutput(TInt aIndex, TAllowedOutputPreference& aOutput)
94 return iImpl->GetAllowedOutput(aIndex, aOutput);
97 // ---------------------------------------------------------
98 // CRestrictedAudioOutput::GetAllowedOutputCount
99 // ?implementation_description
100 // (other items were commented in a header).
101 // ---------------------------------------------------------
103 EXPORT_C TInt CRestrictedAudioOutput::GetAllowedOutputCount(TInt& aSize)
106 RDebug::Print(_L("CRestrictedAudioOutput[%x]GetAllowedOutputCount\n"),this);
108 return iImpl->GetAllowedOutputCount(aSize);
111 // ---------------------------------------------------------
112 // CRestrictedAudioOutput::Reset
113 // ?implementation_description
114 // (other items were commented in a header).
115 // ---------------------------------------------------------
117 EXPORT_C TInt CRestrictedAudioOutput::Reset()
119 return iImpl->Reset();
122 // ---------------------------------------------------------
123 // CRestrictedAudioOutput::Commit
124 // ?implementation_description
125 // (other items were commented in a header).
126 // ---------------------------------------------------------
128 EXPORT_C TInt CRestrictedAudioOutput::Commit()
130 return iImpl->Commit();