diff -r 5dedbccec665 -r 5c11946e75b3 pushmtm/MtmUiSrc/PushMtmUi.cpp --- a/pushmtm/MtmUiSrc/PushMtmUi.cpp Mon Mar 15 12:40:52 2010 +0200 +++ b/pushmtm/MtmUiSrc/PushMtmUi.cpp Wed Mar 31 21:35:49 2010 +0300 @@ -44,6 +44,8 @@ #include #include #include +#include "PushMtmPrivateCRKeys.h" +#include // ================= MEMBER FUNCTIONS ======================= @@ -77,6 +79,10 @@ CRegisteredMtmDll& aRegisteredMtmDll ) : CBaseMtmUi( aBaseMtm, aRegisteredMtmDll ) { + CRepository* PushSL = CRepository::NewL( KCRUidPushMtm ); + CleanupStack::PushL( PushSL ); + User::LeaveIfError( PushSL->Get( KPushMtmServiceEnabled , iPushSLEnabled ) ); + CleanupStack::PopAndDestroy( PushSL ); } // --------------------------------------------------------- @@ -248,10 +254,7 @@ CMsvOperation* operation = NULL; if ( - tEntry.iBioType == KUidWapPushMsgSI.iUid -#ifdef __SERIES60_PUSH_SL - || tEntry.iBioType == KUidWapPushMsgSL.iUid -#endif // __SERIES60_PUSH_SL + tEntry.iBioType == KUidWapPushMsgSI.iUid || (iPushSLEnabled && tEntry.iBioType == KUidWapPushMsgSL.iUid) ) { TEditorParameters editorParameters;