MPbkDataSaveCallback 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 <cpbkdatasaveappui.h>

Detailed Description

Callback interface for CPbkDataSaveAppUi::HandleCommandL.

Public Member Functions

virtual IMPORT_C void  PbkDataSaveNoFieldL (CPbkContactItem &aContact)
  Called by CPbkDataSaveAppUi::HandleCommandL if there is no field available where to save the data and no new field could be added.
virtual IMPORT_C TPtrC  PbkDataSaveClipTextL (const TDesC &aText, CPbkFieldInfo &aFieldInfo)
  Called from CPbkDataSaveAppUi::HandleCommandL if the aText is too long to fit into field.

Member Function Documentation

virtual IMPORT_C TPtrC MPbkDataSaveCallback::PbkDataSaveClipTextL const TDesC &  aText,
CPbkFieldInfo aFieldInfo
[virtual]
 

Called from CPbkDataSaveAppUi::HandleCommandL if the aText is too long to fit into field.

Default implementation clips aText from the end. If an empty string is returned the field addition is canceled.

Parameters:
aText  The original text.
aFieldInfo  The type of field where the text should be inserted.
Returns:
A substring of aText so that the substring's length is <=aFieldInfo.MaxLength().
virtual IMPORT_C void MPbkDataSaveCallback::PbkDataSaveNoFieldL CPbkContactItem aContact  )  [virtual]
 

Called by CPbkDataSaveAppUi::HandleCommandL if there is no field available where to save the data and no new field could be added.

Default implementation does nothing.

Parameters:
aContact  Contact where the field cannot be added.

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

Copyright © Nokia Corporation 2001-2008
Back to top