#include <app/CLmkEditorDlg.h>
class CLmkEditorDlg : public CBase |
Public Member Enumerations | |
---|---|
enum | _TLmkEditorAttributes { ELmkOnlyName, ELmkCategory, ELmkStreet, ELmkCity, ..., ELmkWebAddress } |
enum | _TLmkEditorMode { ELmkEditor, ELmkViewer } |
Public Member Functions | |
---|---|
~CLmkEditorDlg() | |
IMPORT_C void | DisableMapAndNavigationMenuOptions() |
IMPORT_C TInt | ExecuteLD() |
IMPORT_C CLmkEditorDlg * | NewL(CPosLandmarkDatabase &, TPosLmItemId, TLmkEditorParams &) |
IMPORT_C CLmkEditorDlg * | NewL(CPosLandmarkDatabase &, CPosLandmark &, TLmkEditorParams &) |
IMPORT_C void | SetHelpContext(TCoeHelpContext) |
IMPORT_C void | SetMopParent(MObjectProvider *) |
This is a dialog class, which is used to launch landmark viewer/editor. 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.
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.
IMPORT_C void | DisableMapAndNavigationMenuOptions | ( | ) |
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.
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.
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.
Returns: Returns non-zero if accepted & saved in edit mode. Returns zero if fails due to less memory or any other error in edit mode.It always returns zero in view mode.
IMPORT_C CLmkEditorDlg * | NewL | ( | CPosLandmarkDatabase & | aDb, |
TPosLmItemId | aLandmarkId, | |||
TLmkEditorParams & | aParams | |||
) | [static] |
Parameter | Description |
---|---|
aDb | Reference to landmark database that includes this landmark. |
aParams | Attribute, holds values for launching the landmark dialog in viewer or editor mode, and number of landmark fields to be displayed. |
Returns: new instance of this class
IMPORT_C CLmkEditorDlg * | NewL | ( | CPosLandmarkDatabase & | aDb, |
CPosLandmark & | aLandmark, | |||
TLmkEditorParams & | aParams | |||
) | [static] |
Parameter | Description |
---|---|
aDb | reference to landmark database, where new landmark will be created, if launched in edit mode. |
aParams | aParams attributes whether to launch landmark in viewer mode or editor mode. |
Returns: new instance of this class
IMPORT_C void | SetHelpContext | ( | TCoeHelpContext | aContext | ) |
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.
Parameter | Description |
---|---|
aContext | help context to use |