pushmtm/MtmUiSrc/PushMtmUi.cpp
branchRCL_3
changeset 48 5c11946e75b3
parent 0 84ad3b177aa3
equal deleted inserted replaced
46:5dedbccec665 48:5c11946e75b3
    42 #include <mtmuidef.hrh>
    42 #include <mtmuidef.hrh>
    43 #include <MTMExtendedCapabilities.hrh>
    43 #include <MTMExtendedCapabilities.hrh>
    44 #include <MuiuMsgEditorLauncher.h>
    44 #include <MuiuMsgEditorLauncher.h>
    45 #include <data_caging_path_literals.hrh>
    45 #include <data_caging_path_literals.hrh>
    46 #include <f32file.h>
    46 #include <f32file.h>
       
    47 #include "PushMtmPrivateCRKeys.h"
       
    48 #include <centralrepository.h> 
    47 
    49 
    48 // ================= MEMBER FUNCTIONS =======================
    50 // ================= MEMBER FUNCTIONS =======================
    49 
    51 
    50 // ---------------------------------------------------------
    52 // ---------------------------------------------------------
    51 // CPushMtmUi::NewL
    53 // CPushMtmUi::NewL
    75 //
    77 //
    76 CPushMtmUi::CPushMtmUi( CBaseMtm& aBaseMtm, 
    78 CPushMtmUi::CPushMtmUi( CBaseMtm& aBaseMtm, 
    77                         CRegisteredMtmDll& aRegisteredMtmDll )
    79                         CRegisteredMtmDll& aRegisteredMtmDll )
    78 :   CBaseMtmUi( aBaseMtm, aRegisteredMtmDll )
    80 :   CBaseMtmUi( aBaseMtm, aRegisteredMtmDll )
    79     {
    81     {
       
    82     CRepository* PushSL = CRepository::NewL( KCRUidPushMtm );
       
    83     CleanupStack::PushL( PushSL );   
       
    84     User::LeaveIfError( PushSL->Get( KPushMtmServiceEnabled , iPushSLEnabled ) );
       
    85     CleanupStack::PopAndDestroy( PushSL ); 
    80     }
    86     }
    81 
    87 
    82 // ---------------------------------------------------------
    88 // ---------------------------------------------------------
    83 // CPushMtmUi::SetProgressSuccess
    89 // CPushMtmUi::SetProgressSuccess
    84 // ---------------------------------------------------------
    90 // ---------------------------------------------------------
   246         }
   252         }
   247 
   253 
   248     CMsvOperation* operation = NULL;
   254     CMsvOperation* operation = NULL;
   249 
   255 
   250     if ( 
   256     if ( 
   251          tEntry.iBioType == KUidWapPushMsgSI.iUid 
   257          tEntry.iBioType == KUidWapPushMsgSI.iUid || (iPushSLEnabled && tEntry.iBioType == KUidWapPushMsgSL.iUid)
   252 #ifdef __SERIES60_PUSH_SL
       
   253          || tEntry.iBioType == KUidWapPushMsgSL.iUid
       
   254 #endif // __SERIES60_PUSH_SL
       
   255        )
   258        )
   256         {
   259         {
   257         TEditorParameters editorParameters;
   260         TEditorParameters editorParameters;
   258         editorParameters.iId = tEntry.Id();
   261         editorParameters.iId = tEntry.Id();
   259         editorParameters.iFlags = EMsgLaunchEditorThenWait | 
   262         editorParameters.iFlags = EMsgLaunchEditorThenWait |