|
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: Audio Output Control Utility |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AudioOutputControlUtilityProxyImpl_H |
|
20 #define AudioOutputControlUtilityProxyImpl_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "AudioOutputControlUtilityImpl.h" |
|
24 #include "AudioOutputControlUtilityProxy.h" |
|
25 #include <RestrictedAudioOutput.h> |
|
26 #include <ConfigurationComponentsFactory.h> |
|
27 #include <AudioOutput.h> |
|
28 #include "DRMConfigTypes.h" |
|
29 |
|
30 class CAudioOutputControlUtilityImpl; |
|
31 |
|
32 class CAudioOutputControlUtilityProxyImpl : public CAudioOutputControlUtilityImpl |
|
33 //public CBase, [shouldnt inherit from multiple C-based classes] |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Constructs, and returns a pointer to, a new CBody object. |
|
38 * Leaves on failure.. |
|
39 * @return CBody* A pointer to newly created object. |
|
40 */ |
|
41 static CAudioOutputControlUtilityProxyImpl* NewL(); |
|
42 |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 * |
|
47 */ |
|
48 ~CAudioOutputControlUtilityProxyImpl(); |
|
49 |
|
50 TInt Configure(CMMFDevSound& aDevSound); |
|
51 TInt SetDRMConfigIntfc(CDRMConfigIntfc* aDRMConfigIntfc); |
|
52 TInt SetDataSource(MDataSource* aDataSource); |
|
53 TInt SetDataSource(CMultimediaDataSource* aDataSource); |
|
54 private: |
|
55 void ConstructL(); |
|
56 CAudioOutputControlUtilityProxyImpl(); |
|
57 //CRestrictedAudioOutput::TAllowedOutputPreference CalcPref(TDRMAllowedOutputDevice aOutputDevice); |
|
58 TInt CalcPref(TDRMAllowedOutputDevice aOutputDevice, CRestrictedAudioOutput::TAllowedOutputPreference& aAllowedOutput); |
|
59 //TDRMAllowedOutputDevice CalcDrmAllowedOutputDevice(CRestrictedAudioOutput::TAllowedOutputPreference aPref); |
|
60 TInt ConfigureRestrictedAudioOutputL(CMMFDevSound& aDevSound); |
|
61 TInt SetCalculatedPreference(const TInt& aValue); |
|
62 |
|
63 private: |
|
64 //Data: |
|
65 CConfigurationComponentsFactory* iFactory; |
|
66 CRestrictedAudioOutput* iRestrictedAudioOutput; |
|
67 CDRMConfigIntfc* iDRMConfigIntfc; |
|
68 MDataSource* iDataSource; |
|
69 CMultimediaDataSource* iMMDataSource; |
|
70 CAudioOutput* iAudioOutput; |
|
71 }; |
|
72 |
|
73 #endif // AudioOutputControlUtilityProxyImpl_H |
|
74 |
|
75 // End of file |