ipsservices/ipssossettings/src/ipssetview.cpp
branchRCL_3
changeset 26 67369d1b217f
parent 16 4ce476e64c59
equal deleted inserted replaced
24:b5fbb9b25d57 26:67369d1b217f
    18 
    18 
    19 #include "emailtrace.h"
    19 #include "emailtrace.h"
    20 #include <ecom/implementationproxy.h>
    20 #include <ecom/implementationproxy.h>
    21 #include <msvstd.h>
    21 #include <msvstd.h>
    22 #include <aknViewAppUi.h>
    22 #include <aknViewAppUi.h>
    23 #include <aknclearer.h>
       
    24 //<cmail>
    23 //<cmail>
    25 #include "FreestyleEmailUiConstants.h"
    24 #include "FreestyleEmailUiConstants.h"
    26 //</cmail>
    25 //</cmail>
    27 #include <ipssossettings.rsg>
    26 #include <ipssossettings.rsg>
    28 
    27 
    64 CIpsSetView::~CIpsSetView()
    63 CIpsSetView::~CIpsSetView()
    65     {
    64     {
    66     FUNC_LOG;
    65     FUNC_LOG;
    67     delete iAsyncCallback;
    66     delete iAsyncCallback;
    68     delete iCustomMessage;
    67     delete iCustomMessage;
    69     if (iLocalScreenClearer != NULL)
       
    70         {
       
    71         delete iLocalScreenClearer;
       
    72         iLocalScreenClearer = NULL;
       
    73         }
       
    74     }
    68     }
    75 
    69 
    76 // Constructor
    70 // Constructor
    77 CIpsSetView::CIpsSetView()
    71 CIpsSetView::CIpsSetView()
    78     {
    72     {
    94     iPrevViewId = aPrevViewId;
    88     iPrevViewId = aPrevViewId;
    95     delete iCustomMessage;
    89     delete iCustomMessage;
    96     iCustomMessage = NULL;
    90     iCustomMessage = NULL;
    97     iCustomMessage = aCustomMessage.AllocL();
    91     iCustomMessage = aCustomMessage.AllocL();
    98     iAsyncCallback->CallBack();
    92     iAsyncCallback->CallBack();
    99     iLocalScreenClearer = CAknLocalScreenClearer::NewL( EFalse );
       
   100     }
    93     }
   101 
    94 
   102 void CIpsSetView::DoDeactivate()
    95 void CIpsSetView::DoDeactivate()
   103     {
    96     {
   104     FUNC_LOG;
    97     FUNC_LOG;
   105     if (iLocalScreenClearer != NULL)
       
   106         {
       
   107         delete iLocalScreenClearer;
       
   108         iLocalScreenClearer = NULL;
       
   109         }
       
   110     }
    98     }
   111 
    99 
   112 TPtrC CIpsSetView::MailSettingsSubviewCaption(
   100 TPtrC CIpsSetView::MailSettingsSubviewCaption(
   113 		TFSMailMsgId /*aAccountId*/,
   101 		TFSMailMsgId /*aAccountId*/,
   114 		TInt /*aSubviewIndex*/,
   102 		TInt /*aSubviewIndex*/,
   194         // Exit Freestyle app
   182         // Exit Freestyle app
   195         User::Exit( KErrCancel );
   183         User::Exit( KErrCancel );
   196         }
   184         }
   197     else
   185     else
   198         {
   186         {
   199         //refresh background
       
   200         self->iLocalScreenClearer->DrawNow();
       
   201         
       
   202     	//check if composer is active view; needed to handle special case when email is plugin settings and composer is activated externaly
   187     	//check if composer is active view; needed to handle special case when email is plugin settings and composer is activated externaly
   203     	TVwsViewId aViewId;
   188     	TVwsViewId aViewId;
   204     	self->AppUi()->GetActiveViewId(aViewId);
   189     	self->AppUi()->GetActiveViewId(aViewId);
   205     	if (aViewId.iViewUid == MailEditorId )
   190     	if (aViewId.iViewUid == MailEditorId )
   206     		{
   191     		{