|
1 /* |
|
2 * Copyright (c) 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: implementation of CFSClientAPI |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "emailtrace.h" |
|
19 #include "CFSClientAPIRequestHandler.h" |
|
20 #include "CFSClientAPI.h" |
|
21 #include "emailclientpluginmanager.h" |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // |
|
25 // ----------------------------------------------------------------------------- |
|
26 CFSClientAPI::CFSClientAPI() |
|
27 { |
|
28 } |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 // ----------------------------------------------------------------------------- |
|
33 CFSClientAPI::~CFSClientAPI() |
|
34 { |
|
35 FUNC_LOG; |
|
36 delete iAPIRequestHandler; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 // ----------------------------------------------------------------------------- |
|
42 EXPORT_C CFSClientAPI* CFSClientAPI::NewL(MEmailClientPluginManager* aPluginManager) |
|
43 { |
|
44 FUNC_LOG; |
|
45 CFSClientAPI* self = new (ELeave) CFSClientAPI(); |
|
46 CleanupStack:: PushL(self); |
|
47 self->ConstructL(aPluginManager); |
|
48 CleanupStack:: Pop(self); |
|
49 return self; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 // ----------------------------------------------------------------------------- |
|
55 void CFSClientAPI::ConstructL(MEmailClientPluginManager* aPluginManager) |
|
56 { |
|
57 FUNC_LOG; |
|
58 iAPIRequestHandler = CFSClientAPIRequestHandler::NewL(aPluginManager); |
|
59 } |
|
60 |