phonebookui/Phonebook2/UIControls/src/CPbk2NamesListControl.cpp
branchRCL_3
changeset 21 b3431bff8c19
parent 15 e8e3147d53eb
child 23 5586b4d2ec3e
equal deleted inserted replaced
15:e8e3147d53eb 21:b3431bff8c19
   844                 iContactManager( aManager ),
   844                 iContactManager( aManager ),
   845                 iBaseView( &aView ),
   845                 iBaseView( &aView ),
   846                 iContainer( aContainer ),
   846                 iContainer( aContainer ),
   847                 iNameFormatter( aNameFormatter ),
   847                 iNameFormatter( aNameFormatter ),
   848                 iStoreProperties( aStoreProperties ),
   848                 iStoreProperties( aStoreProperties ),
   849                 iThumbManager( aThumbManager ), //TODO
   849                 iThumbManager( aThumbManager ),
   850                 iAllowPointerEvents( ETrue )
   850                 iAllowPointerEvents( ETrue )
   851     {
   851     {
   852     }
   852     }
   853 
   853 
   854 // --------------------------------------------------------------------------
   854 // --------------------------------------------------------------------------
   938                const CCoeControl* aContainer,
   938                const CCoeControl* aContainer,
   939                CVPbkContactManager& aManager,
   939                CVPbkContactManager& aManager,
   940                MVPbkContactViewBase& aView,
   940                MVPbkContactViewBase& aView,
   941                MPbk2ContactNameFormatter& aNameFormatter,
   941                MPbk2ContactNameFormatter& aNameFormatter,
   942                CPbk2StorePropertyArray& aStoreProperties,
   942                CPbk2StorePropertyArray& aStoreProperties,
   943                CPbk2ThumbnailManager* aThumbManager )   //TODO
   943                CPbk2ThumbnailManager* aThumbManager )
   944     {
   944     {
   945     CPbk2NamesListControl* self = new (ELeave) CPbk2NamesListControl(
   945     CPbk2NamesListControl* self = new (ELeave) CPbk2NamesListControl(
   946             aContainer, aManager, aView, aNameFormatter, aStoreProperties, aThumbManager );
   946             aContainer, aManager, aView, aNameFormatter, aStoreProperties, aThumbManager );
   947     CleanupStack::PushL(self);
   947     CleanupStack::PushL(self);
   948     self->ConstructL( aResourceId);
   948     self->ConstructL( aResourceId);
  1047         iListBox = CPbk2ContactViewListBox::NewL
  1047         iListBox = CPbk2ContactViewListBox::NewL
  1048             ( *this, aReader, iContactManager,
  1048             ( *this, aReader, iContactManager,
  1049             *iViewStack, iNameFormatter, iStoreProperties,
  1049             *iViewStack, iNameFormatter, iStoreProperties,
  1050             iUiExtension, *iSearchFilter );
  1050             iUiExtension, *iSearchFilter );
  1051 
  1051 
  1052         //TODO at this point remove observer
       
  1053         if( iThumbManager )
  1052         if( iThumbManager )
  1054             {
  1053             {
  1055             iThumbManager->RemoveObserver();
  1054             iThumbManager->RemoveObserver();
  1056             }
  1055             }
  1057         iDoubleListBox = NULL;
  1056         iDoubleListBox = NULL;