API published in: S60 3rd Ed
Link against: lmkcommonui.lib
Required Capabilities
LocalServices Location NetworkServices ReadUserData WriteUserData
Exceptions
None
Other Information
None
#include <clmkeditordlg.h>
It provides functionality for viewing and editing landmark data. By default all the fields are shown, but user can customize the total number of displayable fields. It also supports mechanism to disable map and navigation related menu option.
Public Types |
|
enum | _TLmkEditorAttributes { ELmkOnlyName = 0x0000, ELmkCategory = 0x0001, ELmkStreet = 0x0002, ELmkCity = 0x0004, ELmkStateProvince = 0x0008, ELmkCountry = 0x0010, ELmkPostalZIP = 0x0020, ELmkLatitude = 0x0040, ELmkLongitude = 0x0080, ELmkPositionAccuracy = 0x0100, ELmkAltitude = 0x0200, ELmkAltitudeAccuracy = 0x0400, ELmkAll = 0xFFFF, ELmkDescription = 0x0800, ELmkPhoneNumber = 0x1000, ELmkWebAddress = 0x2000 } |
enum | _TLmkEditorMode { ELmkEditor, ELmkViewer } |
Public Member Functions |
|
IMPORT_C | ~CLmkEditorDlg () |
Destructor. |
|
IMPORT_C void | SetMopParent (MObjectProvider *aParent) |
This method sets the context - that is, the enclosing parent control - for this control. |
|
IMPORT_C void | SetHelpContext (TCoeHelpContext aContext) |
This method sets help context. |
|
IMPORT_C TInt | ExecuteLD () |
This function launches the landmark dialog.It launches the dialog either in viewer or editor mode , depending upon the flag
set. |
|
IMPORT_C void | DisableMapAndNavigationMenuOptions () |
This function, when invoked, disables the Map and Navigation related Menu Options This needs to be invoked before ExecuteLD(). |
|
Static Public Member Functions |
|
static IMPORT_C CLmkEditorDlg * | NewL (CPosLandmarkDatabase &aDb, TPosLmItemId aLandmarkId, TLmkEditorParams &aParams) |
This is a static function, which creates and returns an instance of this class, based on landmark id, which exists in landmark
database. |
|
static IMPORT_C CLmkEditorDlg * | NewL (CPosLandmarkDatabase &aDb, CPosLandmark &aLandmark, TLmkEditorParams &aParams) |
This is a static function, which creates and returns an instance of this class, based on landmark object, which does not exist
in landmark database. |
|
Data Structures |
|
class | TLmkEditorParams |
This class is a wrapper, around the flags _TLmkEditorAttributes and _TLmkEditorMode. More... |
|
Defines the flag for displaying landmark fields on the viewer/editor dialog. Any combination of these flags,will display those fields,when viewer/editor is launched. By default the flag is set as ELmkAll.This flag is set in class TLmkEditorParams.
|
|
Defines flag, that decides the mode in which the landmark dialog is launched(viewer or editor). By default, the flag is set as ELmkEditor.This flag is set in class TLmkEditorParams. |
|
Destructor. |
|
This function, when invoked, disables the Map and Navigation related Menu Options This needs to be invoked before ExecuteLD(). By default, the Map and Navigation menu options are enabled and are shown. |
|
This function launches the landmark dialog.It launches the dialog either in viewer or editor mode , depending upon the flag set. Editor mode: When the dialog is launched in edit mode, the user can edit the landmark fields (some or all) and can save the Landmark. On closing the dialog, the landmark is saved to the landmark database. If saving a landmark fails due to less memory, the user is notified with an information note. If any of the landmark fields are filled and landmark name is not provided, user is asked to provide the landmark name, else if nothing is entered the dialog will close without saving the landmark. In case of new landmark creation, once the dialog is closed and the application returns from ExecuteLD() method, client applications can obtain the landmark id of the newly created landmark by calling LandmarkId() method from CPosLandmark class. Viewer mode: The user can view the Landmark contents by accepting the dialog Canelling the dialog will close the dialog
|
|
This is a static function, which creates and returns an instance of this class, based on landmark object, which does not exist in landmark database.
|
|
This is a static function, which creates and returns an instance of this class, based on landmark id, which exists in landmark database.
|
|
This method sets help context. There are many applications using landmark editor and they may have an own help topic to be shown, when editor's help is launched. With this command it is possible to define the used help content. Landmark's own help context is used as default.
|
|
This method sets the context - that is, the enclosing parent control - for this control.
|