API published in: S60 1st Ed
API deprecated in: S60 5th Ed
Link against: pbkview.lib
Required Capabilities
ReadUserData WriteUserData
#include <cpbkcontacteditordlg.h>
Inherits CAknForm.
This class can be used to construct an UI editor dialog that is specifically tailored to edit contacts in a similar fashion as in the platform contacts application.
Public Member Functions |
|
~CPbkContactEditorDlg () | |
Destructor. |
|
IMPORT_C void | ResetWhenDestroyed (CPbkContactEditorDlg **aSelfPtr) |
Sets aSelfPtr to NULL when this dialog is destroyed. |
|
IMPORT_C TContactItemId | ExecuteLD () |
Runs the dialog. |
|
IMPORT_C void | HideExitCommand () |
Hides the 'Exit' command from the options menu. |
|
IMPORT_C void | SetHelpContext (TCoeHelpContext aContext) |
Sets help context. |
|
IMPORT_C void | SetExitCallback (MPbkEditorOkToExitCallback *aCallback) |
Sets exit callback. |
|
IMPORT_C void | SetExitCommandId (TInt aCommandId) |
Sets the exit command in the options menu to forward aCommandId to the application framework. |
|
Static Public Member Functions |
|
static IMPORT_C CPbkContactEditorDlg * | NewL (CPbkContactEngine &aEngine, CPbkContactItem &aContactItem, TBool aIsNewContact, TInt aFocusIndex=-1, TBool aEdited=EFalse) |
Creates an instance of an editor dialog for an aContactItem. |
|
Protected Types |
|
enum | TStateFlag { EHideExit, EEscKeyReceived, EUnderDestruction } |
State flag values for CPbkContactEditorDlg. More... |
|
Protected Member Functions |
|
CPbkContactEditorDlg (CPbkContactEngine &aEngine, CPbkContactItem &aContactItem, TInt aFocusIndex) | |
void | BaseConstructL (TBool aIsNewContact, TBool aEdited) |
void | StoreTitlePaneTextL () |
void | ConstructContextMenuL () |
void | ConstructNaviPaneL () |
TBool | IsNewContact () const |
void | UpdateTitlePaneL () |
void | CloseAllPopups () |
TBool | ContactAlreadyExistsL () |
TBool | DuplicateNameMatchL (CContactIdArray *aIdArray) |
TBool | CheckForDuplicateEntryL () |
void | ReloadThumbnailL () |
void | WriteContactToDbL () |
Protected Attributes |
|
CPbkContactItem & | iContactItem |
Ref: Contact item under editing. |
|
CPbkContactEditorFieldArray * | iFieldManager |
Own: Contact editor field manager. |
|
Friends |
|
class | CExtension |
|
State flag values for CPbkContactEditorDlg. |
|
Destructor. |
|
|
|
|
|
|
|
|
|
Runs the dialog. This object is destroyed when this function returns or leaves. NOTE: Current status pane layout is replaced with the Phonebook one. Restoring the original pane is left to be the responsibility of the caller.
|
|
Hides the 'Exit' command from the options menu. This must be called before calling ExecuteLD. |
|
|
Creates an instance of an editor dialog for an aContactItem.
|
|
|
Sets aSelfPtr to NULL when this dialog is destroyed. Precondition: !aSelfPtr || *aSelfPtr==this |
|
Sets exit callback. The callback is called before exit happens. If the callback returns EFalse, the exit process is cancelled.
|
|
Sets the exit command in the options menu to forward aCommandId to the application framework. Allows clients to process and capture the exit command in the application exit situation.
|
|
Sets help context. There are many applications using contact editor and they may have an own help topic to be shown, when editor's help is launched. With this command it's possible to define the used help content. If not called after, uses Phonebook's own help context as default.
|
|
|
|
|
|
Ref: Contact item under editing. |
|
Own: Contact editor field manager. |