CLmkLandmarkSelectorDlg Class Reference

#include <app/CLmkLandmarkSelectorDlg.h>

Link against: LmkCommonUi.lib

class CLmkLandmarkSelectorDlg : public CBase

Inherits from

  • CLmkLandmarkSelectorDlg

    Detailed Description

    This is a dialog class, which is used to launch landmark selector dialog and to get the selected landmark ids.It displays the landmarks present in landmarks database,as a list.The dialog can be a single selector or multiple selector dialog, depending upon argument passed by the client (in ExecuteLD function) at the time when it is launched.Based on whether it is a single selector or multiple selector dialog, user can select single landmark or multiple landmarks.

    Constructor & Destructor Documentation

    ~CLmkLandmarkSelectorDlg ( )

    IMPORT_C~CLmkLandmarkSelectorDlg()

    Destructor.

    Member Function Documentation

    ExecuteLD ( TLmkItemIdDbCombiInfo & )

    IMPORT_C TIntExecuteLD(TLmkItemIdDbCombiInfo &aSelected)
    This function launches the landmark selector dialog. Client uses this function to launch single landmark selector dialog. This object is destroyed when this function returns or leaves.
    leave
    Leaves with system-wide leave codes.
    panic
    Panics with KLmkPanicNullMember, if the selector is not constructed properly.

    Returns: Returns non-zero if accepted, else zero.

    ExecuteLD ( RArray< TLmkItemIdDbCombiInfo > & )

    IMPORT_C TIntExecuteLD(RArray< TLmkItemIdDbCombiInfo > &aSelectedItems)

    This function launches the landmark selector dialog. Client uses this function to launch multiple landmark selector dialog. This object is destroyed when this function returns or leaves. If the array(aSelectedItems) is passed with already filled landmark ids, then such landmarks will be shown as selected when the dialog is launched, but if any of these ids do not exist in landmarks database, it will be ignored.

    leave
    Leaves with system-wide leave codes.
    panic
    Panics with KLmkPanicNullMember, if the selector is not constructed properly.

    Returns: Returns non-zero if accepted, else zero.

    NewL ( )

    IMPORT_C CLmkLandmarkSelectorDlg *NewL()[static]

    This is a static function, which creates and returns an instance of this class. All the landmarks present in the landmark database are shown in the selector.

    leave
    Leaves with KErrNotSupported if framework functionality is not available.
    panic
    Panics with system-wide panic codes.

    Returns: new instance of this class

    NewL ( const TDesC & )

    IMPORT_C CLmkLandmarkSelectorDlg *NewL(const TDesC &aDatabaseUri)[static]
    This is a static function, which creates and returns an instance of this class. All the landmarks present in the user specified landmark database are shown in the selector.
    leave
    Leaves with KErrNotSupported if framework functionality is not available or the protocol specified in URI is not supported.
    leave
    Leaves with KErrArgument if an empty string is passed as argument or extension of the local database name is not "ldb".
    panic
    Panics with system-wide panic codes.
    ParameterDescription
    aDatabaseUriThe URI of the databases to open.

    Returns: new instance of this class

    SetDialogTitleL ( const TDesC & )

    IMPORT_C voidSetDialogTitleL(const TDesC &aTitle)

    This function sets the title string of the landmark selector dialog. This function has to be called before ExecuteLD() to make the set title appear on ui. Calling this api after ExecuteLD() will not have any impact.

    panic
    Panics with KLmkPanicNullMember, if the selector is not constructed properly.
    ParameterDescription
    aTitleThe title string of the selector dialog.

    SetMopParent ( MObjectProvider * )

    IMPORT_C voidSetMopParent(MObjectProvider *aParent)

    This function sets the context - that is, the enclosing parent control - for this control.

    panic
    Panics with KLmkPanicNullMember, if the selector is not constructed properly.
    ParameterDescription
    aParentThe parent object which is the context for the control.