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