phonebookengines/VirtualPhonebook/VPbkCntModel/src/CFilteredGroupView.cpp
branchRCL_3
changeset 57 2666d9724c76
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
45:34879f5cfc63 57:2666d9724c76
   140     // Stop observing the base view, the custom view
   140     // Stop observing the base view, the custom view
   141     // will observe it and report back
   141     // will observe it and report back
   142     // Construction of the iCustomFilteredView should be done in two 
   142     // Construction of the iCustomFilteredView should be done in two 
   143     // phases. Due to that there is dependencies between views in this 
   143     // phases. Due to that there is dependencies between views in this 
   144     // and iCustomFilteredView class.
   144     // and iCustomFilteredView class.
   145     iCustomFilteredView = 
   145     CCustomFilteredGroupView* customFilteredView = 
   146         new (ELeave) CCustomFilteredGroupView( Store(), iFilter, 
   146         new (ELeave) CCustomFilteredGroupView( Store(), iFilter, 
   147             *this );
   147             *this );
       
   148     
       
   149     if ( iCustomFilteredView )
       
   150         {
       
   151         delete iCustomFilteredView;
       
   152         iCustomFilteredView = NULL;
       
   153         }
       
   154     iCustomFilteredView = customFilteredView;
       
   155     customFilteredView = NULL;
       
   156     
   148     ConstructBaseViewsL( aViewDefinition, *iCustomFilteredView, 
   157     ConstructBaseViewsL( aViewDefinition, *iCustomFilteredView, 
   149             aViewSortOrder );
   158             aViewSortOrder );
   150             
   159             
   151     iCustomFilteredView->ConstructL
   160     iCustomFilteredView->ConstructL
   152         ( aViewDefinition, *this, *iSortOrder, *iView );
   161         ( aViewDefinition, *this, *iSortOrder, *iView );