phonebookui/Phonebook2/UIControls/src/CPbk2AdaptiveSearchGridFiller.cpp
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
child 32 2828b4d142c0
equal deleted inserted replaced
0:e686773b3f54 3:04ab22b956c2
    25 #include <FindUtil.h>
    25 #include <FindUtil.h>
    26 #include <badesca.h>
    26 #include <badesca.h>
    27 
    27 
    28 const TInt KMaxAdaptiveGridCacheCount = 10;
    28 const TInt KMaxAdaptiveGridCacheCount = 10;
    29 const TInt KAdaptiveSearchKeyMapGranularity = 100;
    29 const TInt KAdaptiveSearchKeyMapGranularity = 100;
    30 const TInt KAdaptiveSearchRefineStep = 200;
    30 const TInt KAdaptiveSearchRefineStep = 10;
    31 const TInt KContactFormattingFlags = MPbk2ContactNameFormatter::EPreserveLeadingSpaces | MPbk2ContactNameFormatter::EReplaceNonGraphicChars;
    31 const TInt KContactFormattingFlags = MPbk2ContactNameFormatter::EPreserveLeadingSpaces | MPbk2ContactNameFormatter::EReplaceNonGraphicChars;
    32 
    32 
    33 
    33 
    34 NONSHARABLE_CLASS(CPbk2AdaptiveGrid) : public CBase
    34 NONSHARABLE_CLASS(CPbk2AdaptiveGrid) : public CBase
    35 	{
    35 	{
    73 // --------------------------------------------------------------------------
    73 // --------------------------------------------------------------------------
    74 // CPbk2ContactEditorDlg::CPbk2ContactEditorDlg
    74 // CPbk2ContactEditorDlg::CPbk2ContactEditorDlg
    75 // --------------------------------------------------------------------------
    75 // --------------------------------------------------------------------------
    76 //
    76 //
    77 CPbk2AdaptiveSearchGridFiller::CPbk2AdaptiveSearchGridFiller( CAknSearchField& aField, MPbk2ContactNameFormatter& aNameFormatter )
    77 CPbk2AdaptiveSearchGridFiller::CPbk2AdaptiveSearchGridFiller( CAknSearchField& aField, MPbk2ContactNameFormatter& aNameFormatter )
    78 	: CActive( CActive::EPriorityStandard ), iSearchField( aField ), iNameFormatter( aNameFormatter ),
    78 	: CActive( CActive::EPriorityIdle ), iSearchField( aField ), iNameFormatter( aNameFormatter ),
    79 	iInvalidateAdaptiveSearchGrid( EFalse ),iSetFocusToSearchGrid( ETrue )
    79 	iInvalidateAdaptiveSearchGrid( EFalse ),iSetFocusToSearchGrid( ETrue )
    80     {
    80     {
    81 	CActiveScheduler::Add( this );
    81 	CActiveScheduler::Add( this );
    82     }
    82     }
    83 
    83