1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "creator_factory.h" |
|
20 |
|
21 #if SYMBIAN_VERSION_SUPPORT >= SYMBIAN_4 |
|
22 #include "creator_accessPoint.h" |
|
23 #elif( defined __SERIES60_30__ || defined __SERIES60_31__ ) |
|
24 #include "creator_phonebook.h" |
|
25 #include "creator_accessPoint.h" |
|
26 #else |
|
27 #include "creator_virtualphonebook.h" |
|
28 #include "creator_connectionmethod.h" |
|
29 #endif |
|
30 |
|
31 CCreatorPhonebookBase* TCreatorFactory::CreatePhoneBookL(CCreatorEngine* aEngine) |
|
32 { |
|
33 #if SYMBIAN_VERSION_SUPPORT >= SYMBIAN_4 |
|
34 ; //TODO return an object |
|
35 #elif( defined __SERIES60_30__ || defined __SERIES60_31__ ) |
|
36 return CCreatorPhonebook::NewL(aEngine); |
|
37 #else |
|
38 return CCreatorVirtualPhonebook::NewL(aEngine); |
|
39 #endif |
|
40 |
|
41 } |
|
42 |
|
43 CCreatorModuleBaseParameters* TCreatorFactory::CreatePhoneBookParametersL() |
|
44 { |
|
45 #if SYMBIAN_VERSION_SUPPORT >= SYMBIAN_4 |
|
46 ; //TODO return an object |
|
47 #elif( defined __SERIES60_30__ || defined __SERIES60_31__ ) |
|
48 return new(ELeave) CPhonebookParameters; |
|
49 #else |
|
50 return new(ELeave) CVirtualPhonebookParameters; |
|
51 #endif |
|
52 } |
|
53 |
|
54 CCreatorConnectionSettingsBase* TCreatorFactory::CreateConnectionSettingsL(CCreatorEngine* aEngine) |
|
55 { |
|
56 #if( defined __SERIES60_30__ || defined __SERIES60_31__ || SYMBIAN_VERSION_SUPPORT >= SYMBIAN_4 ) |
|
57 return CCreatorAccessPoints::NewL(aEngine); |
|
58 #else |
|
59 return CCreatorConnectionSettings::NewL(aEngine); |
|
60 #endif |
|
61 |
|
62 } |
|
63 |
|
64 CCreatorModuleBaseParameters* TCreatorFactory::CreateConnectionSettingsParametersL() |
|
65 { |
|
66 #if( defined __SERIES60_30__ || defined __SERIES60_31__ || SYMBIAN_VERSION_SUPPORT >= SYMBIAN_4 ) |
|
67 return new(ELeave) CAccessPointsParameters; |
|
68 #else |
|
69 return new(ELeave) CConnectionSettingsParameters; |
|
70 #endif |
|
71 } |
|