30 // ----------------------------------------------------------------------------- |
31 // ----------------------------------------------------------------------------- |
31 // CFSFWImplementation::CFSFWImplementation |
32 // CFSFWImplementation::CFSFWImplementation |
32 // ----------------------------------------------------------------------------- |
33 // ----------------------------------------------------------------------------- |
33 CFSFWImplementation::CFSFWImplementation() |
34 CFSFWImplementation::CFSFWImplementation() |
34 { |
35 { |
35 FUNC_LOG; |
36 NM_FUNCTION; |
|
37 |
36 iPluginManager = NULL; |
38 iPluginManager = NULL; |
37 } |
39 } |
38 |
40 |
39 // ----------------------------------------------------------------------------- |
41 // ----------------------------------------------------------------------------- |
40 // CFSFWImplementation::~CFSFWImplementation |
42 // CFSFWImplementation::~CFSFWImplementation |
41 // ----------------------------------------------------------------------------- |
43 // ----------------------------------------------------------------------------- |
42 CFSFWImplementation::~CFSFWImplementation() |
44 CFSFWImplementation::~CFSFWImplementation() |
43 { |
45 { |
44 FUNC_LOG; |
46 NM_FUNCTION; |
|
47 |
45 delete iPluginManager; |
48 delete iPluginManager; |
46 } |
49 } |
47 // ----------------------------------------------------------------------------- |
50 // ----------------------------------------------------------------------------- |
48 // CFSFWImplementation::NewLC |
51 // CFSFWImplementation::NewLC |
49 // ----------------------------------------------------------------------------- |
52 // ----------------------------------------------------------------------------- |
50 CFSFWImplementation* CFSFWImplementation::NewLC(TInt aConfiguration) |
53 CFSFWImplementation* CFSFWImplementation::NewLC(TInt aConfiguration) |
51 { |
54 { |
52 FUNC_LOG; |
55 NM_FUNCTION; |
53 CFSFWImplementation* impl = new (ELeave) CFSFWImplementation(); |
56 |
54 CleanupStack:: PushL(impl); |
57 CFSFWImplementation* impl = new (ELeave) CFSFWImplementation(); |
55 impl->ConstructL(aConfiguration); |
58 CleanupStack:: PushL(impl); |
56 return impl; |
59 impl->ConstructL(aConfiguration); |
|
60 return impl; |
57 } |
61 } |
58 |
62 |
59 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
60 // CFSFWImplementation::NewL |
64 // CFSFWImplementation::NewL |
61 // ----------------------------------------------------------------------------- |
65 // ----------------------------------------------------------------------------- |
62 CFSFWImplementation* CFSFWImplementation::NewL(TInt aConfiguration) |
66 CFSFWImplementation* CFSFWImplementation::NewL(TInt aConfiguration) |
63 { |
67 { |
64 FUNC_LOG; |
68 NM_FUNCTION; |
65 CFSFWImplementation* impl = CFSFWImplementation::NewLC(aConfiguration); |
69 |
66 CleanupStack:: Pop(impl); |
70 CFSFWImplementation* impl = CFSFWImplementation::NewLC(aConfiguration); |
67 return impl; |
71 CleanupStack:: Pop(impl); |
|
72 return impl; |
68 } |
73 } |
69 |
74 |
70 // ----------------------------------------------------------------------------- |
75 // ----------------------------------------------------------------------------- |
71 // CFSFWImplementation::ConstructL |
76 // CFSFWImplementation::ConstructL |
72 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
73 void CFSFWImplementation::ConstructL(TInt aConfiguration) |
78 void CFSFWImplementation::ConstructL(TInt aConfiguration) |
74 { |
79 { |
75 FUNC_LOG; |
80 NM_FUNCTION; |
|
81 |
76 // create plugin manager |
82 // create plugin manager |
77 iPluginManager = CFSMailPluginManager::NewL(aConfiguration); |
83 iPluginManager = CFSMailPluginManager::NewL(aConfiguration); |
78 } |
84 } |
79 |
85 |
80 // ----------------------------------------------------------------------------- |
86 // ----------------------------------------------------------------------------- |
81 // CFSFWImplementation::GetPluginManager |
87 // CFSFWImplementation::GetPluginManager |
82 // ----------------------------------------------------------------------------- |
88 // ----------------------------------------------------------------------------- |
83 CFSMailPluginManager& CFSFWImplementation::GetPluginManager( ) |
89 CFSMailPluginManager& CFSFWImplementation::GetPluginManager( ) |
84 { |
90 { |
85 FUNC_LOG; |
91 NM_FUNCTION; |
|
92 |
86 return *iPluginManager; |
93 return *iPluginManager; |
87 } |
94 } |
88 |
95 |