|
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 for location history item factory |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "emailtrace.h" |
|
20 #include "cesmrlocationhistoryitemfactory.h" |
|
21 #include "mesmrlocationhistoryitem.h" |
|
22 #include "cesmrlocationhistoryitem.h" |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // CESMRLocationHistoryItemFactory::NewL |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 CESMRLocationHistoryItemFactory* CESMRLocationHistoryItemFactory::NewL() |
|
31 { |
|
32 FUNC_LOG; |
|
33 CESMRLocationHistoryItemFactory* self = |
|
34 new (ELeave) CESMRLocationHistoryItemFactory(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // CESMRLocationHistoryItemFactory::~CESMRLocationHistoryItemFactory |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 CESMRLocationHistoryItemFactory::~CESMRLocationHistoryItemFactory() |
|
43 { |
|
44 FUNC_LOG; |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // CESMRLocationHistoryItemFactory::CreateLocationHistoryItemL |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 MESMRLocationHistoryItem* CESMRLocationHistoryItemFactory::CreateLocationHistoryItemL( |
|
52 const TDesC& aAddress, |
|
53 const TDesC& aUrl ) |
|
54 { |
|
55 FUNC_LOG; |
|
56 MESMRLocationHistoryItem* item = CESMRLocationHistoryItem::NewL( iIndex, aAddress, aUrl ); |
|
57 iIndex++; |
|
58 return item; |
|
59 } |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // CESMRLocationHistoryItemFactory::CESMRLocationHistoryItemFactory |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 CESMRLocationHistoryItemFactory::CESMRLocationHistoryItemFactory() : |
|
66 iIndex( 0 ) |
|
67 { |
|
68 FUNC_LOG; |
|
69 } |
|
70 |
|
71 // EOF |
|
72 |