|
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 CAudioOutputControlUtility class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 |
|
22 #include <AudioOutputControlUtility.h> |
|
23 #include "AudioOutputControlUtilityImpl.h" |
|
24 |
|
25 |
|
26 // Two-phased constructor. To be called by derived classes. |
|
27 EXPORT_C void CAudioOutputControlUtility::ConstructL(CAudioOutputControlUtilityImpl* aImpl) |
|
28 { |
|
29 iImpl = aImpl; |
|
30 } |
|
31 |
|
32 EXPORT_C CAudioOutputControlUtility::CAudioOutputControlUtility() |
|
33 |
|
34 { |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CAudioOutputControlUtility::DestructL |
|
39 // Destructor |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 EXPORT_C CAudioOutputControlUtility::~CAudioOutputControlUtility() |
|
43 { |
|
44 #ifdef _DEBUG |
|
45 RDebug::Print(_L("CAudioOutputControlUtility[%x]::~AudioOutputControlUtility\n"),this); |
|
46 #endif |
|
47 delete iImpl; |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------- |
|
51 // CAudioOutputControlUtility::Configure |
|
52 // ?implementation_description |
|
53 // (other items were commented in a header). |
|
54 // --------------------------------------------------------- |
|
55 // |
|
56 EXPORT_C TInt CAudioOutputControlUtility::Configure(CMMFDevSound& aDevSound) |
|
57 { |
|
58 TInt status(KErrNotReady); |
|
59 if (iImpl) |
|
60 { |
|
61 return iImpl->Configure(aDevSound); |
|
62 } |
|
63 return status; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------- |
|
67 // CAudioOutputControlUtility::ConfigureL |
|
68 // ?implementation_description |
|
69 // (other items were commented in a header). |
|
70 // --------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C TInt CAudioOutputControlUtility::SetDRMConfigIntfc(CDRMConfigIntfc*& aDRMConfigIntfc) |
|
73 { |
|
74 TInt status(KErrNotReady); |
|
75 if (iImpl) |
|
76 { |
|
77 return iImpl->SetDRMConfigIntfc(aDRMConfigIntfc); |
|
78 } |
|
79 return status; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------- |
|
83 // CAudioOutputControlUtility::SetDataSource |
|
84 // Implementation given by CAudioOutputControlUtilityImpl class |
|
85 // (other items were commented in a header). |
|
86 // --------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C TInt CAudioOutputControlUtility::SetDataSource(MDataSource* aDataSource) |
|
89 { |
|
90 TInt status(KErrNotReady); |
|
91 if (iImpl) |
|
92 { |
|
93 return iImpl->SetDataSource(aDataSource); |
|
94 } |
|
95 return status; |
|
96 } |
|
97 |
|
98 // --------------------------------------------------------- |
|
99 // CAudioOutputControlUtility::SetDataSource |
|
100 // Implementation given by CAudioOutputControlUtilityImpl class |
|
101 // (other items were commented in a header). |
|
102 // --------------------------------------------------------- |
|
103 // |
|
104 EXPORT_C TInt CAudioOutputControlUtility::SetDataSource(CMultimediaDataSource* aDataSource) |
|
105 { |
|
106 TInt status(KErrNotReady); |
|
107 if (iImpl) |
|
108 { |
|
109 return iImpl->SetDataSource(aDataSource); |
|
110 } |
|
111 return status; |
|
112 } |
|
113 // End of file |
|
114 |