|
1 /* |
|
2 * Copyright (c) 2005 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: This class provides methods for fetching the ID of selected |
|
15 * landmark or category and the handle to database to which either |
|
16 * landmark or category belongs. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 // INCLUDE FILES |
|
28 #include "TLmkItemIdDbCombiInfo.h" |
|
29 |
|
30 // ============================ MEMBER FUNCTIONS =============================== |
|
31 // ----------------------------------------------------------------------------- |
|
32 // TLmkItemIdDbCombiInfo::TLmkItemIdDbCombiInfo |
|
33 // C++ default constructor can NOT contain any code, that |
|
34 // might leave. |
|
35 // ----------------------------------------------------------------------------- |
|
36 EXPORT_C TLmkItemIdDbCombiInfo::TLmkItemIdDbCombiInfo() : iLmDb(NULL), iLmItemId(0) |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // TLmkItemIdDbCombiInfo::~TLmkItemIdDbCombiInfo |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C TLmkItemIdDbCombiInfo::~TLmkItemIdDbCombiInfo() |
|
45 { |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // TLmkItemIdDbCombiInfo::SetItemId |
|
50 // |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 EXPORT_C void TLmkItemIdDbCombiInfo::SetItemId( TPosLmItemId & aLmItemId) |
|
54 { |
|
55 iLmItemId = aLmItemId; |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // TLmkItemIdDbCombiInfo::SetLmDb |
|
60 // |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C void TLmkItemIdDbCombiInfo::SetLmDb( CPosLandmarkDatabase* aDb) |
|
64 { |
|
65 iLmDb = aDb; |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // TLmkItemIdDbCombiInfo::GetItemId |
|
70 // |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 EXPORT_C TPosLmItemId TLmkItemIdDbCombiInfo::GetItemId() const |
|
74 { |
|
75 return iLmItemId; |
|
76 } |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // TLmkItemIdDbCombiInfo::GetLmDb |
|
80 // |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 EXPORT_C CPosLandmarkDatabase* TLmkItemIdDbCombiInfo::GetLmDb() const |
|
84 { |
|
85 return iLmDb; |
|
86 } |
|
87 |
|
88 // End of file |
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |