|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef RMTPFILEDPSINGLETONS_H |
|
17 #define RMTPFILEDPSINGLETONS_H |
|
18 |
|
19 #include "mtpdebug.h" |
|
20 |
|
21 /** |
|
22 Implements the MTP file data processor singletons reference manager. |
|
23 @internalComponent |
|
24 |
|
25 */ |
|
26 |
|
27 class CMTPFileDpConfigMgr; |
|
28 class MMTPDataProviderFramework; |
|
29 |
|
30 class RMTPFileDpSingletons |
|
31 { |
|
32 public: |
|
33 RMTPFileDpSingletons(); |
|
34 |
|
35 void OpenL(MMTPDataProviderFramework& aFramework); |
|
36 void Close(); |
|
37 |
|
38 CMTPFileDpConfigMgr& FrameworkConfig(); |
|
39 |
|
40 private: |
|
41 |
|
42 /** |
|
43 Implements the singletons reference block. |
|
44 */ |
|
45 class CSingletons : public CObject |
|
46 { |
|
47 public: |
|
48 |
|
49 static CSingletons& OpenL(MMTPDataProviderFramework& aFramework); |
|
50 void Close(); |
|
51 |
|
52 private: // From CObject |
|
53 |
|
54 private: |
|
55 |
|
56 static CSingletons* NewL(MMTPDataProviderFramework& aFramework); |
|
57 virtual ~CSingletons(); |
|
58 void ConstructL(MMTPDataProviderFramework& aFramework); |
|
59 |
|
60 public: // Owned |
|
61 |
|
62 /** |
|
63 FLOGGER debug trace member variable. |
|
64 */ |
|
65 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
66 |
|
67 /** |
|
68 The file config manager. |
|
69 */ |
|
70 CMTPFileDpConfigMgr* iConfigMgr; |
|
71 }; |
|
72 |
|
73 private: // Owned |
|
74 |
|
75 /** |
|
76 FLOGGER debug trace member variable. |
|
77 */ |
|
78 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
79 |
|
80 /** |
|
81 The singletons reference block. |
|
82 */ |
|
83 CSingletons* iSingletons; |
|
84 }; |
|
85 |
|
86 #endif // RMTPFILEDPSINGLETONS_H |