messagingappbase/mce/src/mceui.cpp
branchRCL_3
changeset 18 a9c7e5670d17
parent 17 caea42e26caa
child 22 52d61119153d
equal deleted inserted replaced
17:caea42e26caa 18:a9c7e5670d17
  2952         {
  2952         {
  2953         delete iMMSNotifications;
  2953         delete iMMSNotifications;
  2954         iMMSNotifications = NULL;
  2954         iMMSNotifications = NULL;
  2955         }
  2955         }
  2956 
  2956 
  2957     if ( local && ( ( iEntry->Entry().Parent() == KMsvGlobalInBoxIndexEntryId ) ||
       
  2958         ( iEntry->Entry().Parent() == KMsvGlobalOutBoxIndexEntryId ) ) ) 
       
  2959         {
       
  2960         CheckMMSNotificationsL( selection );
       
  2961         if (  selection->Count() <= 0 )
       
  2962             {
       
  2963             // delete mms notifications, if any
       
  2964             if ( iMMSNotifications->Count() > 0 )
       
  2965                 {
       
  2966                 //delete MMS notifications
       
  2967                 TBuf8<1> params;
       
  2968                 HandleMMSNotificationsDeleteL( params );
       
  2969                 }
       
  2970             CleanupStack::PopAndDestroy( selection );
       
  2971             return;
       
  2972             }
       
  2973         }
       
  2974 
       
  2975     if ( local )
  2957     if ( local )
  2976         {
  2958         {
  2977         CAknQueryDialog* confDialog = CAknQueryDialog::NewL();
  2959         CAknQueryDialog* confDialog = CAknQueryDialog::NewL();
  2978         confDialog->PrepareLC( R_MCE_CONFIRMATION );
  2960         confDialog->PrepareLC( R_MCE_CONFIRMATION );
  2979         // confDialog in CleanupStack now
  2961         // confDialog in CleanupStack now
  3004             {
  2986             {
  3005             CleanupStack::PopAndDestroy( selection ); // selection
  2987             CleanupStack::PopAndDestroy( selection ); // selection
  3006             return;
  2988             return;
  3007             }
  2989             }
  3008         }
  2990         }
       
  2991     
       
  2992     if ( local && ( ( iEntry->Entry().Parent() == KMsvGlobalInBoxIndexEntryId ) ||
       
  2993         ( iEntry->Entry().Parent() == KMsvGlobalOutBoxIndexEntryId ) ) ) 
       
  2994         {
       
  2995         CheckMMSNotificationsL( selection );
       
  2996         if (  selection->Count() <= 0 )
       
  2997             {
       
  2998             // delete mms notifications, if any
       
  2999             if ( iMMSNotifications->Count() > 0 )
       
  3000                 {
       
  3001                 //delete MMS notifications
       
  3002                 TBuf8<1> params;
       
  3003                 HandleMMSNotificationsDeleteL( params );
       
  3004                 }
       
  3005             CleanupStack::PopAndDestroy( selection );
       
  3006             return;
       
  3007             }
       
  3008         }
       
  3009 
       
  3010    
  3009     iEntry->SetEntryL( iEntry->Entry().Parent() );
  3011     iEntry->SetEntryL( iEntry->Entry().Parent() );
  3010 
  3012 
  3011     CBaseMtmUi* ui = NULL;
  3013     CBaseMtmUi* ui = NULL;
  3012     TUid mtm=iEntry->Entry().iMtm;
  3014     TUid mtm=iEntry->Entry().iMtm;
  3013     if ( !local )
  3015     if ( !local )