diff -r b9b00b134b0d -r d316aecb87fd deviceupdatesui/deviceupdates/src/dminforetrieval.cpp --- a/deviceupdatesui/deviceupdates/src/dminforetrieval.cpp Tue Jul 13 03:51:25 2010 +0530 +++ b/deviceupdatesui/deviceupdates/src/dminforetrieval.cpp Tue Jul 13 04:01:20 2010 +0530 @@ -483,6 +483,15 @@ if(error == KErrNone) {} } +void DmInfo::sync(int aProfileId) + { + int itemNum = findProfile(aProfileId); + if(itemNum!=KErrNotFound) + { + synchronize(itemNum); + } + } + void DmInfo::synccomplete(int jobstatus) { if (jobstatus == ENSmlSyncComplete) @@ -491,7 +500,10 @@ //Update profile list refreshProfileList(); } - serversView->syncCompleted(jobstatus); + if(serversView!=NULL) + { + serversView->syncCompleted(jobstatus); + } iDbEventsBlocked = EFalse; } @@ -543,3 +555,14 @@ FLOG( "[OMADM] DmInfo::DisableDbNotifications() completed" ); } +TInt DmInfo::findProfile(TInt aProfileId) + { + for(TInt i=0;iCount();i++) + { + if(iProfileList->At(i).iProfileId == aProfileId) + { + return i; + } + } + return KErrNotFound; + }