22
|
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( defined __SERIES60_30__ || defined __SERIES60_31__ )
|
|
22 |
#include "creator_phonebook.h"
|
|
23 |
#include "creator_accesspoint.h"
|
|
24 |
#else
|
|
25 |
#include "creator_virtualphonebook.h"
|
|
26 |
#include "creator_connectionmethod.h"
|
|
27 |
#endif
|
|
28 |
|
|
29 |
CCreatorPhonebookBase* TCreatorFactory::CreatePhoneBookL(CCreatorEngine* aEngine)
|
|
30 |
{
|
|
31 |
#if( defined __SERIES60_30__ || defined __SERIES60_31__ )
|
|
32 |
return CCreatorPhonebook::NewL(aEngine);
|
|
33 |
#else
|
|
34 |
return CCreatorVirtualPhonebook::NewL(aEngine);
|
|
35 |
#endif
|
|
36 |
|
|
37 |
}
|
|
38 |
|
|
39 |
CCreatorModuleBaseParameters* TCreatorFactory::CreatePhoneBookParametersL()
|
|
40 |
{
|
|
41 |
#if( defined __SERIES60_30__ || defined __SERIES60_31__ )
|
|
42 |
return new(ELeave) CPhonebookParameters;
|
|
43 |
#else
|
|
44 |
return new(ELeave) CVirtualPhonebookParameters;
|
|
45 |
#endif
|
|
46 |
}
|
|
47 |
|
|
48 |
CCreatorConnectionSettingsBase* TCreatorFactory::CreateConnectionSettingsL(CCreatorEngine* aEngine)
|
|
49 |
{
|
|
50 |
#if( defined __SERIES60_30__ || defined __SERIES60_31__ )
|
|
51 |
return CCreatorAccessPoints::NewL(aEngine);
|
|
52 |
#else
|
|
53 |
return CCreatorConnectionSettings::NewL(aEngine);
|
|
54 |
#endif
|
|
55 |
|
|
56 |
}
|
|
57 |
|
|
58 |
CCreatorModuleBaseParameters* TCreatorFactory::CreateConnectionSettingsParametersL()
|
|
59 |
{
|
|
60 |
#if( defined __SERIES60_30__ || defined __SERIES60_31__ )
|
|
61 |
return new(ELeave) CAccessPointsParameters;
|
|
62 |
#else
|
|
63 |
return new(ELeave) CConnectionSettingsParameters;
|
|
64 |
#endif
|
|
65 |
}
|