|
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 ConfigurationComponentsFactoryImpl class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CONFIGURATIONCOMPONENTSFACTORYIMPL_H |
|
20 #define CONFIGURATIONCOMPONENTSFACTORYIMPL_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ConfigurationComponentsFactory.h> |
|
24 |
|
25 |
|
26 class CRestrictedAudioOutput; |
|
27 class CAudioOutputControlUtilityProxy; |
|
28 |
|
29 |
|
30 /** |
|
31 * CConfigurationComponentsFactoryImpl class documentation. |
|
32 * |
|
33 * @lib ConfigurationComponentsFactory.lib |
|
34 * |
|
35 * @since S60 5.0 |
|
36 */ |
|
37 class CConfigurationComponentsFactory::CBody : public CBase |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Constructs, and returns a pointer to, a new CBody object. |
|
46 * Leaves on failure.. |
|
47 * @return CBody* A pointer to newly created object. |
|
48 */ |
|
49 static CBody* NewL(); |
|
50 |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 * |
|
55 */ |
|
56 ~CBody(); |
|
57 |
|
58 /** |
|
59 * Creates RestrictedAudioOutputProxy |
|
60 * |
|
61 * @param aOutput to be appended. |
|
62 * @return KErrNone if successful. KErrAlreadyExists if aOutput is already |
|
63 * appended before. KErrIncompleteInitialization if ConstructL is not called |
|
64 * by the deriving class. Otherwise any systemwide error code. |
|
65 */ |
|
66 TInt CreateRestrictedAudioOutput(CMMFDevSound& aDevSound, CRestrictedAudioOutput*& aAudioOutput); |
|
67 |
|
68 /** |
|
69 * Creates AudioOutputControlUtility |
|
70 * |
|
71 * @param aOutput to be appended. |
|
72 * @return KErrNone if successful. KErrAlreadyExists if aOutput is already |
|
73 * appended before. KErrIncompleteInitialization if ConstructL is not called |
|
74 * by the deriving class. Otherwise any systemwide error code. |
|
75 */ |
|
76 TInt CreateAudioOutputControlUtility(CAudioOutputControlUtility*& aAudioOutputControlUtility); |
|
77 |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 CBody(); |
|
85 |
|
86 /** |
|
87 * By default Symbian 2nd phase constructor is private. |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 // Data: |
|
92 |
|
93 |
|
94 private: // Friend classes |
|
95 friend class CConfigurationComponentsFactory; |
|
96 CRestrictedAudioOutput* iAudioOutput; |
|
97 CAudioOutputControlUtility* iAudioOutputControlUtility; |
|
98 |
|
99 |
|
100 |
|
101 }; |
|
102 |
|
103 #endif // CONFIGURATIONCOMPONENTSFACTORYIMPL_H |
|
104 |
|
105 // End of file |