|
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: Location history item factory class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRLOCATIONHISTORYITEMFACTORY_H |
|
20 #define CESMRLOCATIONHISTORYITEMFACTORY_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class MESMRLocationHistoryItem; |
|
25 |
|
26 /** |
|
27 * CESMRLocationHistoryItemFactory implements interface for creating location history items. |
|
28 */ |
|
29 NONSHARABLE_CLASS(CESMRLocationHistoryItemFactory) : public CBase |
|
30 { |
|
31 public: // Construction and destruction |
|
32 /** |
|
33 * Two-phased constructor. |
|
34 * Creates a new instance of class |
|
35 * |
|
36 * @return CESMRLocationHistoryItemFactory instance |
|
37 */ |
|
38 static CESMRLocationHistoryItemFactory* NewL(); |
|
39 |
|
40 /** |
|
41 * C++ destructor. |
|
42 */ |
|
43 ~CESMRLocationHistoryItemFactory(); |
|
44 |
|
45 public: // new methods |
|
46 |
|
47 /** |
|
48 * Creates a location history item. Ownership is transferred to |
|
49 * caller. |
|
50 * |
|
51 * @param aAddress Address for the location history item |
|
52 * @param aUrl Url for the location history item |
|
53 * |
|
54 * @return Pointer to created location history item object. |
|
55 */ |
|
56 MESMRLocationHistoryItem* CreateLocationHistoryItemL( const TDesC& aAddress, |
|
57 const TDesC& aUrl ); |
|
58 |
|
59 private: // Implementation |
|
60 |
|
61 /** |
|
62 * Default constructor |
|
63 */ |
|
64 CESMRLocationHistoryItemFactory(); |
|
65 |
|
66 private: // Data |
|
67 |
|
68 TUint iIndex; // global running index of location history items |
|
69 }; |
|
70 |
|
71 #endif // CESMRLOCATIONHISTORYITEMFACTORY_H |