diff -r 5a264aaf7677 -r c044bc2ea8f7 profilesservices/ProfileEngine/WrapperSrc/CProEngNotifyHandlerImpl.cpp --- a/profilesservices/ProfileEngine/WrapperSrc/CProEngNotifyHandlerImpl.cpp Tue May 25 04:13:06 2010 +0800 +++ b/profilesservices/ProfileEngine/WrapperSrc/CProEngNotifyHandlerImpl.cpp Thu Jun 10 16:03:48 2010 +0800 @@ -30,8 +30,7 @@ #include #include #include -#include "CProEngActiveSettingsEventDelegate.h" -#include "CProEngMasterSettingsEventDelegate.h" + // ============================= LOCAL FUNCTIONS =============================== @@ -57,9 +56,7 @@ CProEngNotifyHandlerImpl::CProEngNotifyHandlerImpl() : iActiveIdEventDelegate( NULL ), iActiveProfileEventDelegate( NULL ), - iNameArrayEventDelegate( NULL ), - iActiveSettingEventDelegate( NULL ), - iMasterSettingEventDelegate( NULL ) + iNameArrayEventDelegate( NULL ) { } @@ -200,60 +197,6 @@ return result; } - -// ----------------------------------------------------------------------------- -// CProEngNotifyHandlerImpl::RequestActiveSettingsNotificationsL -// ----------------------------------------------------------------------------- -// -TInt CProEngNotifyHandlerImpl::RequestActiveSettingsNotificationsL( - MProEngActiveSettingsObserver &aObserver ) - { - if( iActiveSettingEventDelegate ) - { - return KErrAlreadyExists; - } - - iActiveSettingEventDelegate = CProEngActiveSettingsEventDelegate::NewL( - aObserver ); - - // make the actual request to the Central Repository: - TInt result( iActiveSettingEventDelegate->RequestNotification() ); - if( result != KErrNone ) - { - delete iActiveSettingEventDelegate; - iActiveSettingEventDelegate = NULL; - } - - return result; - } - -// ----------------------------------------------------------------------------- -// CProEngNotifyHandlerImpl::RequestMasterSettingsNotificationsL -// ----------------------------------------------------------------------------- -// -TInt CProEngNotifyHandlerImpl::RequestMasterSettingsNotificationsL( - MProEngMasterSettingsObserver &aObserver ) - { - if( iMasterSettingEventDelegate ) - { - return KErrAlreadyExists; - } - - iMasterSettingEventDelegate = CProEngMasterSettingsEventDelegate::NewL( - aObserver ); - - // make the actual request to the Central Repository: - TInt result( iMasterSettingEventDelegate->RequestNotification() ); - if( result != KErrNone ) - { - delete iMasterSettingEventDelegate; - iMasterSettingEventDelegate = NULL; - } - - return result; - } - - // ----------------------------------------------------------------------------- // CProEngNotifyHandlerImpl::CancelProfileActivationNotifications // ----------------------------------------------------------------------------- @@ -316,35 +259,6 @@ } } - -// ----------------------------------------------------------------------------- -// CProEngNotifyHandlerImpl::CancelActiveSettingsNotificationsL -// ----------------------------------------------------------------------------- -// -void CProEngNotifyHandlerImpl::CancelActiveSettingsNotificationsL() - { - if( iActiveSettingEventDelegate ) - { - iActiveSettingEventDelegate->Cancel(); - delete iActiveSettingEventDelegate; - iActiveSettingEventDelegate = NULL; - } - } - -// ----------------------------------------------------------------------------- -// CProEngNotifyHandlerImpl::CancelMasterSettingsNotificationsL -// ----------------------------------------------------------------------------- -// -void CProEngNotifyHandlerImpl::CancelMasterSettingsNotificationsL() - { - if( iMasterSettingEventDelegate ) - { - iMasterSettingEventDelegate->Cancel(); - delete iMasterSettingEventDelegate; - iMasterSettingEventDelegate = NULL; - } - } - // ----------------------------------------------------------------------------- // CProEngNotifyHandlerImpl::CancelAll // ----------------------------------------------------------------------------- @@ -354,9 +268,6 @@ CancelProfileActivationNotifications(); CancelActiveProfileNotifications(); CancelProfileNameArrayNotifications(); - CancelActiveSettingsNotificationsL(); - CancelMasterSettingsNotificationsL(); - TInt count = iProfileEventDelegates.Count(); for( TInt i( 0 ); i