logsui/AppSrc/CLogsRecentListControlContainer.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 74 6b5524b4f673
equal deleted inserted replaced
74:6b5524b4f673 85:38bb213f60ba
    21 #include <AknIconArray.h>
    21 #include <AknIconArray.h>
    22 #include <aknnavide.h>
    22 #include <aknnavide.h>
    23 #include <akntabgrp.h>
    23 #include <akntabgrp.h>
    24 #include <AknsConstants.h>  //For skinned icons
    24 #include <AknsConstants.h>  //For skinned icons
    25 #include <csxhelp/log.hlp.hrh>
    25 #include <csxhelp/log.hlp.hrh>
    26 #include <logs.rsg>
    26 #include <Logs.rsg>
    27 #include <logs.mbg>   //Index file for Logs icons.
    27 #include <logs.mbg>   //Index file for Logs icons.
    28 
    28 
    29 #include "CLogsRecentListControlContainer.h"
    29 #include "CLogsRecentListControlContainer.h"
    30 #include "CLogsEngine.h"
    30 #include "CLogsEngine.h"
    31 #include "MLogsModel.h"
    31 #include "MLogsModel.h"
   117     AddControlContainerIconsL();
   117     AddControlContainerIconsL();
   118     iListBox->Model()->SetOwnershipType( ELbmOwnsItemArray );//Ownership of iAdapter transferred 
   118     iListBox->Model()->SetOwnershipType( ELbmOwnsItemArray );//Ownership of iAdapter transferred 
   119 
   119 
   120     iAdapter = CLogsRecentListAdapter::NewL( this, iLastOwnIconOffset );
   120     iAdapter = CLogsRecentListAdapter::NewL( this, iLastOwnIconOffset );
   121 
   121 
   122     // Shows "No missed calls" in this case
       
   123      MakeEmptyTextListBoxL( iListBox, EmptyListboxResourceL() );
       
   124     iListBox->Model()->SetItemTextArray( iAdapter );
   122     iListBox->Model()->SetItemTextArray( iAdapter );
   125     
   123     
   126     // Fetch data for extension
   124     //The below was a bad place for this as container is not deleted when we lose foreground
   127     if( iView->CurrentModel()->Count() > 0 )
   125     //but we still reread events. Instead we handle this in CLogsRecentListView::StateChangedL 
   128         {
   126     //MakeEmptyTextListBoxL( iListBox, EmptyListboxResource() );  //Shows "no data" in this case
   129         iControlExtension->HandleAdditionalData( 
       
   130                     *( iView->CurrentModel() ), 
       
   131                     *iListBox );
       
   132         }
       
   133     
       
   134     MakeScrollArrowsL( iListBox );
   127     MakeScrollArrowsL( iListBox );
   135 
   128 
   136     //Create recent list view tab group (Logs.rss)
   129     //Create recent list view tab group (Logs.rss)
   137     CAknNavigationDecorator* naviTabGroup = NavigationTabGroupL( R_STM_NAVI_PANE_TAB_GROUP, 
   130     CAknNavigationDecorator* naviTabGroup = NavigationTabGroupL( R_STM_NAVI_PANE_TAB_GROUP, 
   138                                                                  CLogsNaviDecoratorWrapper::InstanceL() );
   131                                                                  CLogsNaviDecoratorWrapper::InstanceL() );