CPbkMemoryEntryAddItemDlg Class Reference

API published in: S60 1st Ed
API deprecated in: S60 5th Ed

Link against: pbkview.lib

Capability Information

Required Capabilities

ReadUserData WriteUserData


#include <
cpbkmemoryentryadditemdlg.h>

Inherited by CPbkItemTypeSelectAddToExisting, and CPbkItemTypeSelectCreateNew.


Detailed Description

Field type selection dialog for Phonebook's Create New- and Edit Memory entry-functions.

Also used externally for Create New Entry- and Add to Existing Entry-services.


Public Member Functions

IMPORT_C CPbkMemoryEntryAddItemDlg ()
 Constructor.
IMPORT_C void ResetWhenDestroyed (CPbkMemoryEntryAddItemDlg **aSelfPtr)
 Sets *aSelfPtr to NULL when this dialog is destroyed.
IMPORT_C CPbkFieldInfoExecuteLD (CArrayPtrFlat< CPbkFieldInfo > &aFieldInfos, TInt aCbaResource)
 Run the dialog and return selected field info.
IMPORT_C CPbkFieldInfoExecuteLD (CArrayPtr< CPbkFieldInfo > &aFieldInfos, TInt aCbaResource, const TDesC &aTitleText)
 Run the dialog and return selected field info.
virtual IMPORT_C CPbkFieldInfoExecuteLD (CArrayPtr< CPbkFieldInfo > &aFieldInfos)
 Basic ExecuteLD for derived classes to override.
IMPORT_C ~CPbkMemoryEntryAddItemDlg ()
 Destructor.
void SortFieldInfoArray ()

Protected Member Functions

void PrepareLC (CArrayPtr< CPbkFieldInfo > &aFieldInfos, TInt aCbaResource, const TDesC &aTitle)
 Creates list items, sets Cba and title.
CPbkFieldInfoRunLD ()
 Execute the initialized dialog.

Constructor & Destructor Documentation

IMPORT_C CPbkMemoryEntryAddItemDlg::CPbkMemoryEntryAddItemDlg  ) 
 

Constructor.

IMPORT_C CPbkMemoryEntryAddItemDlg::~CPbkMemoryEntryAddItemDlg  ) 
 

Destructor.

Also cancels and dismisses this popup list, in other words makes ExecuteLD return just like cancel was pressed.


Member Function Documentation

virtual IMPORT_C CPbkFieldInfo* CPbkMemoryEntryAddItemDlg::ExecuteLD CArrayPtr< CPbkFieldInfo > &  aFieldInfos  )  [virtual]
 

Basic ExecuteLD for derived classes to override.

Parameters:
aFieldInfos An array of field info objects to select from.

Reimplemented in CPbkItemTypeSelectCreateNew, and CPbkItemTypeSelectAddToExisting.

IMPORT_C CPbkFieldInfo* CPbkMemoryEntryAddItemDlg::ExecuteLD CArrayPtr< CPbkFieldInfo > &  aFieldInfos,
TInt  aCbaResource,
const TDesC &  aTitleText
 

Run the dialog and return selected field info.

Parameters:
aFieldInfos An array of field info objects to select from.
aCbaResource Cba buttons to use with the dialog.
aTitleText Text to put into popup list's title. No title pane if aTitleText is empty.
Returns:
Pointer to a field info in aFieldInfos or NULL if canceled.
IMPORT_C CPbkFieldInfo* CPbkMemoryEntryAddItemDlg::ExecuteLD CArrayPtrFlat< CPbkFieldInfo > &  aFieldInfos,
TInt  aCbaResource
 

Run the dialog and return selected field info.

Parameters:
aFieldInfos An array of field info objects to select from.
aCbaResource Cba buttons to use with the dialog.
Returns:
Pointer to a field info in aFieldInfos or NULL if canceled.
void CPbkMemoryEntryAddItemDlg::PrepareLC CArrayPtr< CPbkFieldInfo > &  aFieldInfos,
TInt  aCbaResource,
const TDesC &  aTitle
[protected]
 

Creates list items, sets Cba and title.

Executed before RunLD. First part of ExecuteLD.

Parameters:
aFieldInfos An array of field info objects to select from.
aCbaResource Cba buttons to use with the dialog
aTitle Text to put into popup list's title
IMPORT_C void CPbkMemoryEntryAddItemDlg::ResetWhenDestroyed CPbkMemoryEntryAddItemDlg **  aSelfPtr  ) 
 

Sets *aSelfPtr to NULL when this dialog is destroyed.

!aSelfPtr || *aSelfPtr==this

CPbkFieldInfo* CPbkMemoryEntryAddItemDlg::RunLD  )  [protected]
 

Execute the initialized dialog.

Second part of ExecuteLD.

Returns:
Pointer to a field info
void CPbkMemoryEntryAddItemDlg::SortFieldInfoArray  ) 
 

The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top