|
1 /* |
|
2 * Copyright (c) 2004 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 the DialUtils factory interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <DialUtils.h> |
|
22 #include "DialUtilsFactImpl.h" |
|
23 #include "DialUtilsImpl.h" |
|
24 |
|
25 |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CDialUtilsFactImpl::CDialUtilsApiLD |
|
32 // |
|
33 // |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 CDialUtilsApi* CDialUtilsFactImpl::CDialUtilsApiLD() |
|
37 { |
|
38 CleanupStack::PushL( this ); |
|
39 |
|
40 CDialUtilsImpl* dialutils = CDialUtilsImpl::NewL(); |
|
41 CleanupStack::PopAndDestroy( this ); |
|
42 return dialutils; |
|
43 } |
|
44 |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CDialUtilsFactImpl::~CDialUtilsFactImpl |
|
48 // |
|
49 // Destructor. |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CDialUtilsFactImpl::~CDialUtilsFactImpl() |
|
53 { |
|
54 } |
|
55 |
|
56 |
|
57 |
|
58 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CreateDialUtilsFactoryL |
|
62 // |
|
63 // Creates DialUtilsFactory. This is only exported function. |
|
64 // Returns: CDialUtilsFactory*: DialUtils Factory instance. |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 EXPORT_C CDialUtilsFactory* CreateDialUtilsFactoryL() |
|
68 { |
|
69 return new ( ELeave ) CDialUtilsFactImpl; |
|
70 } |
|
71 |
|
72 |
|
73 // End of File |