|
1 /* |
|
2 * Copyright (c) 2002 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: LandmarksUi Content File - Landmark editor dialog. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 // INCLUDE FILES |
|
25 #include "CLmkEditorDlg.h" |
|
26 #include <coehelp.h> |
|
27 |
|
28 |
|
29 // ============================= LOCAL FUNCTIONS =============================== |
|
30 // ----------------------------------------------------------------------------- |
|
31 // TLmkEditorParams::TLmkEditorParams |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C CLmkEditorDlg::TLmkEditorParams::TLmkEditorParams() |
|
35 : iAttributes( ELmkAll ), |
|
36 iEditorMode( ELmkEditor ) |
|
37 { |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CLmkEditorDlg::NewL |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C CLmkEditorDlg* CLmkEditorDlg::NewL( CPosLandmarkDatabase& aDb, |
|
45 TPosLmItemId aLandmarkId, |
|
46 TLmkEditorParams& aParams ) |
|
47 { |
|
48 CLmkEditorDlg* self = new( ELeave ) CLmkEditorDlg(); |
|
49 CleanupStack::PushL( self ); |
|
50 self->ConstructL( aDb, aParams, aLandmarkId, NULL ); |
|
51 CleanupStack::Pop(); //self |
|
52 return self; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CLmkEditorDlg::NewL |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 EXPORT_C CLmkEditorDlg* CLmkEditorDlg::NewL( CPosLandmarkDatabase& /*aDb*/, |
|
60 CPosLandmark& /*aLandmark*/, |
|
61 TLmkEditorParams& /*aParams*/) |
|
62 { |
|
63 CLmkEditorDlg* self = new( ELeave ) CLmkEditorDlg(); |
|
64 CleanupStack::PushL( self ); |
|
65 User::Leave(KErrNotSupported); |
|
66 //self->ConstructL( aDb, aParams, aLandmark.LandmarkId(), &aLandmark ); |
|
67 CleanupStack::Pop(); //self |
|
68 return self; |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CLmkEditorDlg::~CLmkEditorDlg |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 EXPORT_C CLmkEditorDlg::~CLmkEditorDlg() |
|
76 { |
|
77 } |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CLmkEditorDlg::CLmkEditorDlg |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 CLmkEditorDlg::CLmkEditorDlg() |
|
84 { |
|
85 } |
|
86 |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CLmkEditorDlg::ConstructL |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 void CLmkEditorDlg::ConstructL( |
|
92 CPosLandmarkDatabase& /*aDb*/, |
|
93 TLmkEditorParams& /*aParams*/, |
|
94 TPosLmItemId /*aLandmarkId*/, |
|
95 CPosLandmark* /*aLandmark*/ ) |
|
96 { |
|
97 User::Leave(KErrNotSupported); |
|
98 } |
|
99 |
|
100 // ----------------------------------------------------------------------------- |
|
101 // CLmkEditorDlg::SetMopParent |
|
102 // ----------------------------------------------------------------------------- |
|
103 // |
|
104 EXPORT_C void CLmkEditorDlg::SetMopParent( MObjectProvider* /*aParent*/) |
|
105 { |
|
106 } |
|
107 |
|
108 // ----------------------------------------------------------------------------- |
|
109 // CLmkEditorDlg::SetHelpContext |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 EXPORT_C void CLmkEditorDlg::SetHelpContext( TCoeHelpContext /*aContext*/) |
|
113 { |
|
114 } |
|
115 |
|
116 // ----------------------------------------------------------------------------- |
|
117 // CLmkEditorDlg::ExecuteLD |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 EXPORT_C TInt CLmkEditorDlg::ExecuteLD() |
|
121 { |
|
122 User::Leave(KErrNotSupported); |
|
123 return 0; |
|
124 } |
|
125 |
|
126 // ----------------------------------------------------------------------------- |
|
127 // CLmkEditorDlg::DisableMapAndNavigationMenuOptions |
|
128 // ----------------------------------------------------------------------------- |
|
129 // |
|
130 EXPORT_C void CLmkEditorDlg::DisableMapAndNavigationMenuOptions() |
|
131 { |
|
132 TRAP_IGNORE (User::Leave(KErrNotSupported)); |
|
133 } |
|
134 // End of File |