deviceupdatesui/deviceupdates/src/dminforetrieval.cpp
changeset 42 aa33c2cb9a50
parent 18 7d11f9a6646f
child 53 1273bf2c520c
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
   481                     iProfileList->At( itemnum ).iProfileId,
   481                     iProfileList->At( itemnum ).iProfileId,
   482                     iProfileList->At( itemnum ).iBearer,fotanote ) );
   482                     iProfileList->At( itemnum ).iBearer,fotanote ) );
   483     if(error == KErrNone)   {}             
   483     if(error == KErrNone)   {}             
   484     }
   484     }
   485 
   485 
       
   486 void DmInfo::sync(int aProfileId)
       
   487     {
       
   488     int itemNum = findProfile(aProfileId);
       
   489     if(itemNum!=KErrNotFound)
       
   490         {
       
   491         synchronize(itemNum);
       
   492         }
       
   493     }
       
   494 
   486 void DmInfo::synccomplete(int jobstatus)
   495 void DmInfo::synccomplete(int jobstatus)
   487     {
   496     {
   488     if (jobstatus == ENSmlSyncComplete)
   497     if (jobstatus == ENSmlSyncComplete)
   489         {
   498         {
   490         //iSyncProfileList->ReadProfileItemsL();
   499         //iSyncProfileList->ReadProfileItemsL();
   491         //Update profile list
   500         //Update profile list
   492         refreshProfileList();
   501         refreshProfileList();
   493         }
   502         }
   494     serversView->syncCompleted(jobstatus);
   503     if(serversView!=NULL)
       
   504         {
       
   505         serversView->syncCompleted(jobstatus);
       
   506         }
   495     iDbEventsBlocked = EFalse;
   507     iDbEventsBlocked = EFalse;
   496     }
   508     }
   497 
   509 
   498 // -----------------------------------------------------------------------------
   510 // -----------------------------------------------------------------------------
   499 // HandleDbEventL
   511 // HandleDbEventL
   541     {
   553     {
   542     iDbEventsBlocked = aEvent;
   554     iDbEventsBlocked = aEvent;
   543     FLOG( "[OMADM] DmInfo::DisableDbNotifications() completed" );
   555     FLOG( "[OMADM] DmInfo::DisableDbNotifications() completed" );
   544     }
   556     }
   545 
   557 
       
   558 TInt DmInfo::findProfile(TInt aProfileId)
       
   559     {
       
   560     for(TInt i=0;i<iProfileList->Count();i++)
       
   561         {
       
   562         if(iProfileList->At(i).iProfileId == aProfileId)
       
   563             {
       
   564             return i;
       
   565             }
       
   566         }
       
   567     return KErrNotFound;
       
   568     }