|
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: Factory functions to create the update and delete utilities |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "mpxcollectionhelperimp.h" |
|
21 #include "mpxcollectioncachedhelper.h" |
|
22 |
|
23 #include "mpxcollectionuihelperimp.h" |
|
24 #include "mpxcollectionhelperfactory.h" |
|
25 |
|
26 // ======== MEMBER FUNCTIONS ======== |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // Factory method to create the collection ui helper |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 EXPORT_C MMPXCollectionUiHelper* CMPXCollectionHelperFactory::NewCollectionUiHelperL(const TUid& aModeId) |
|
33 { |
|
34 return CMPXCollectionUiHelperImp::NewL(aModeId); |
|
35 } |
|
36 |
|
37 // --------------------------------------------------------------------------- |
|
38 // Factory method to create the collection helper |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 EXPORT_C MMPXCollectionHelper* CMPXCollectionHelperFactory::NewCollectionHelperL() |
|
42 { |
|
43 return CMPXCollectionHelperImp::NewL(); |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // Factory method to create the cached collection helper |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 EXPORT_C MMPXCollectionHelper* CMPXCollectionHelperFactory::NewCollectionCachedHelperL() |
|
51 { |
|
52 return CMPXCollectionCachedHelper::NewL(); |
|
53 } |