|
1 /* |
|
2 * Copyright (c) 2006-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MMFAUDIOSERVERFACTORY_H |
|
21 #define MMFAUDIOSERVERFACTORY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <ecom/ecom.h> |
|
26 #include <badesca.h> |
|
27 #include <a3f/mmfaudiosvrservice.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CMMFAudioServer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Utility factory class that can be used to launch additional servers/objects |
|
36 * in Audio Server. |
|
37 * |
|
38 * @lib AudioServerFactory.lib |
|
39 * @since |
|
40 */ |
|
41 class CMMFAudioServerFactory : public CBase |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Constructs, and returns a pointer to, a new CMMFAudioServerFactory |
|
47 * object. |
|
48 * Leaves on failure.. |
|
49 * @return CMMFAudioServerFactory* A pointer to newly created object. |
|
50 */ |
|
51 IMPORT_C static CMMFAudioServerFactory* NewL(); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 */ |
|
56 IMPORT_C ~CMMFAudioServerFactory(); |
|
57 |
|
58 public: // New functions |
|
59 |
|
60 /** |
|
61 * Called by Audio Server when Audio Server is started. |
|
62 * @since |
|
63 * @param const CMMFAudioServer& aAudioServer - Audio Server |
|
64 */ |
|
65 IMPORT_C void StartL(const CMMFAudioServer& aAudioServer); |
|
66 |
|
67 /** |
|
68 * Called by Audio Server when Audio Server is shutting down |
|
69 * @since |
|
70 * @param const CMMFAudioServer& aAudioServer - Audio Server |
|
71 */ |
|
72 IMPORT_C void Stop(const CMMFAudioServer& aAudioServer); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * C++ default constructor. |
|
78 */ |
|
79 CMMFAudioServerFactory(); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 */ |
|
84 void ConstructL(); |
|
85 RPointerArray<MAudioSvrService> iAudioServList; |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // MMFAUDIOSERVERFACTORY_H |
|
90 |
|
91 // End of File |