13 * |
13 * |
14 * Description: This file implements class CFSFWImplementation. |
14 * Description: This file implements class CFSFWImplementation. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 #include "emailtrace.h" |
18 |
19 |
19 #include "emailtrace.h" |
20 //<qmail> |
20 #include "cfsfwimplementation.h" |
21 #include <nmcommonheaders.h> |
|
22 //</qmail> |
|
23 |
|
24 #include "CFSFWImplementation.h" |
21 //<cmail> |
25 //<cmail> |
22 #include "cfsmailplugin.h" |
26 #include "CFSMailPlugin.h" |
23 //</cmail> |
27 //</cmail> |
24 #include "cfsmailpluginmanager.h" |
28 #include "CFSMailPluginManager.h" |
25 |
29 |
26 // ================= MEMBER FUNCTIONS ========================================== |
30 // ================= MEMBER FUNCTIONS ========================================== |
27 // ----------------------------------------------------------------------------- |
31 // ----------------------------------------------------------------------------- |
28 // CFSFWImplementation::CFSFWImplementation |
32 // CFSFWImplementation::CFSFWImplementation |
29 // ----------------------------------------------------------------------------- |
33 // ----------------------------------------------------------------------------- |
30 CFSFWImplementation::CFSFWImplementation() |
34 CFSFWImplementation::CFSFWImplementation() |
31 { |
35 { |
32 FUNC_LOG; |
36 NM_FUNCTION; |
|
37 |
33 iPluginManager = NULL; |
38 iPluginManager = NULL; |
34 } |
39 } |
35 |
40 |
36 // ----------------------------------------------------------------------------- |
41 // ----------------------------------------------------------------------------- |
37 // CFSFWImplementation::~CFSFWImplementation |
42 // CFSFWImplementation::~CFSFWImplementation |
38 // ----------------------------------------------------------------------------- |
43 // ----------------------------------------------------------------------------- |
39 CFSFWImplementation::~CFSFWImplementation() |
44 CFSFWImplementation::~CFSFWImplementation() |
40 { |
45 { |
41 FUNC_LOG; |
46 NM_FUNCTION; |
|
47 |
42 delete iPluginManager; |
48 delete iPluginManager; |
43 } |
49 } |
44 // ----------------------------------------------------------------------------- |
50 // ----------------------------------------------------------------------------- |
45 // CFSFWImplementation::NewLC |
51 // CFSFWImplementation::NewLC |
46 // ----------------------------------------------------------------------------- |
52 // ----------------------------------------------------------------------------- |
47 CFSFWImplementation* CFSFWImplementation::NewLC(TInt aConfiguration) |
53 CFSFWImplementation* CFSFWImplementation::NewLC(TInt aConfiguration) |
48 { |
54 { |
49 FUNC_LOG; |
55 NM_FUNCTION; |
50 CFSFWImplementation* impl = new (ELeave) CFSFWImplementation(); |
56 |
51 CleanupStack:: PushL(impl); |
57 CFSFWImplementation* impl = new (ELeave) CFSFWImplementation(); |
52 impl->ConstructL(aConfiguration); |
58 CleanupStack:: PushL(impl); |
53 return impl; |
59 impl->ConstructL(aConfiguration); |
|
60 return impl; |
54 } |
61 } |
55 |
62 |
56 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
57 // CFSFWImplementation::NewL |
64 // CFSFWImplementation::NewL |
58 // ----------------------------------------------------------------------------- |
65 // ----------------------------------------------------------------------------- |
59 CFSFWImplementation* CFSFWImplementation::NewL(TInt aConfiguration) |
66 CFSFWImplementation* CFSFWImplementation::NewL(TInt aConfiguration) |
60 { |
67 { |
61 FUNC_LOG; |
68 NM_FUNCTION; |
62 CFSFWImplementation* impl = CFSFWImplementation::NewLC(aConfiguration); |
69 |
63 CleanupStack:: Pop(impl); |
70 CFSFWImplementation* impl = CFSFWImplementation::NewLC(aConfiguration); |
64 return impl; |
71 CleanupStack:: Pop(impl); |
|
72 return impl; |
65 } |
73 } |
66 |
74 |
67 // ----------------------------------------------------------------------------- |
75 // ----------------------------------------------------------------------------- |
68 // CFSFWImplementation::ConstructL |
76 // CFSFWImplementation::ConstructL |
69 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
70 void CFSFWImplementation::ConstructL(TInt aConfiguration) |
78 void CFSFWImplementation::ConstructL(TInt aConfiguration) |
71 { |
79 { |
72 FUNC_LOG; |
80 NM_FUNCTION; |
|
81 |
73 // create plugin manager |
82 // create plugin manager |
74 iPluginManager = CFSMailPluginManager::NewL(aConfiguration); |
83 iPluginManager = CFSMailPluginManager::NewL(aConfiguration); |
75 } |
84 } |
76 |
85 |
77 // ----------------------------------------------------------------------------- |
86 // ----------------------------------------------------------------------------- |
78 // CFSFWImplementation::GetPluginManager |
87 // CFSFWImplementation::GetPluginManager |
79 // ----------------------------------------------------------------------------- |
88 // ----------------------------------------------------------------------------- |
80 CFSMailPluginManager& CFSFWImplementation::GetPluginManager( ) |
89 CFSMailPluginManager& CFSFWImplementation::GetPluginManager( ) |
81 { |
90 { |
82 FUNC_LOG; |
91 NM_FUNCTION; |
|
92 |
83 return *iPluginManager; |
93 return *iPluginManager; |
84 } |
94 } |
85 |
95 |