|
1 /* |
|
2 * Copyright (c) 2006 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: Process Manager Factory for creating the Process Manager |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CCAPROCESSMANAGERFACTORY_H |
|
22 #define CCAPROCESSMANAGERFACTORY_H |
|
23 |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 #include "CCASingletonPC.h" |
|
28 |
|
29 |
|
30 //FORWARD DECLARATIONS |
|
31 class MCAProcessManager; |
|
32 |
|
33 class CCAProcessManagerFactory: public CCASingletonPC |
|
34 { |
|
35 public: |
|
36 |
|
37 //Two Phase Constructor |
|
38 static CCAProcessManagerFactory* NewL(); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 |
|
44 ~CCAProcessManagerFactory(); |
|
45 |
|
46 private: |
|
47 |
|
48 /** |
|
49 * C++ default constructor. |
|
50 */ |
|
51 inline CCAProcessManagerFactory(); |
|
52 |
|
53 /** |
|
54 * Symbian 2nd phase constructor. |
|
55 */ |
|
56 inline void ConstructL(); |
|
57 |
|
58 public: // operations |
|
59 |
|
60 /** |
|
61 * Return pointer to the singleton instance. |
|
62 * |
|
63 * @return pointer to the singleton instance |
|
64 */ |
|
65 IMPORT_C static CCAProcessManagerFactory* InstanceL(); |
|
66 |
|
67 /** |
|
68 * This method is used to get the process manager |
|
69 */ |
|
70 IMPORT_C MCAProcessManager* GetProcessManager(); |
|
71 |
|
72 /** |
|
73 * Delete singleton instance. |
|
74 */ |
|
75 IMPORT_C static void ReleaseResources(); |
|
76 |
|
77 private: |
|
78 |
|
79 // Data |
|
80 MCAProcessManager* iProcessManager; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // CCAPROCESSMANAGERFACTORY_H |
|
85 |
|
86 // End of File |