equal
deleted
inserted
replaced
1386 iSyncLog = NULL; |
1386 iSyncLog = NULL; |
1387 CleanupStack::PopAndDestroy(); //setttings |
1387 CleanupStack::PopAndDestroy(); //setttings |
1388 return; |
1388 return; |
1389 } |
1389 } |
1390 CleanupStack::PushL( profile ); |
1390 CleanupStack::PushL( profile ); |
|
1391 if( iError ) |
|
1392 { |
1391 if(iError->SyncLogErrorCode() == KErrNone) |
1393 if(iError->SyncLogErrorCode() == KErrNone) |
1392 { |
1394 { |
1393 RWriteStream& LastSyncStream = profile->LastSyncWriteStreamL(); |
1395 RWriteStream& LastSyncStream = profile->LastSyncWriteStreamL(); |
1394 CleanupClosePushL( LastSyncStream ); |
1396 CleanupClosePushL( LastSyncStream ); |
1395 TPckgBuf<TTime> lastsynctime(now); |
1397 TPckgBuf<TTime> lastsynctime(now); |
1411 SyncSuccessTime = lastsynctime().Int64(); |
1413 SyncSuccessTime = lastsynctime().Int64(); |
1412 iSyncLog->SetLastSyncResult(SyncSuccessTime); |
1414 iSyncLog->SetLastSyncResult(SyncSuccessTime); |
1413 CleanupStack::PopAndDestroy(); |
1415 CleanupStack::PopAndDestroy(); |
1414 } |
1416 } |
1415 } |
1417 } |
|
1418 } |
1416 CNSmlHistoryArray* array = CNSmlHistoryArray::NewL(); |
1419 CNSmlHistoryArray* array = CNSmlHistoryArray::NewL(); |
1417 CleanupStack::PushL( array ); |
1420 CleanupStack::PushL( array ); |
1418 array->SetOwnerShip( ETrue ); |
1421 array->SetOwnerShip( ETrue ); |
1419 |
1422 |
1420 RReadStream& readStream = profile->LogReadStreamL(); |
1423 RReadStream& readStream = profile->LogReadStreamL(); |
1833 { |
1836 { |
1834 iDataItem = new (ELeave) RArray<CNSmlDMAlertItem>(); // new (ELeave) RArray<TDes8<255> > (); |
1837 iDataItem = new (ELeave) RArray<CNSmlDMAlertItem>(); // new (ELeave) RArray<TDes8<255> > (); |
1835 |
1838 |
1836 for(TInt i =0; i< count ; i++) |
1839 for(TInt i =0; i< count ; i++) |
1837 { |
1840 { |
1838 CNSmlDMAlertItem* iItem = new (ELeave) CNSmlDMAlertItem ; |
1841 CNSmlDMAlertItem* tempItem = new (ELeave) CNSmlDMAlertItem ; |
1839 iItem->iSource = ((*aItemList)[i].iSource)->AllocL(); |
1842 CleanupStack::PushL( tempItem ); |
1840 iItem->iTarget = ((*aItemList)[i].iTarget)->AllocL(); |
1843 tempItem->iSource = ((*aItemList)[i].iSource)->AllocL(); |
1841 iItem->iMetaType = ((*aItemList)[i].iMetaType)->AllocL(); |
1844 tempItem->iTarget = ((*aItemList)[i].iTarget)->AllocL(); |
1842 iItem->iMetaFormat = ((*aItemList)[i].iMetaFormat)->AllocL(); |
1845 tempItem->iMetaType = ((*aItemList)[i].iMetaType)->AllocL(); |
1843 iItem->iMetaMark = ((*aItemList)[i].iMetaMark)->AllocL(); |
1846 tempItem->iMetaFormat = ((*aItemList)[i].iMetaFormat)->AllocL(); |
1844 iItem->iData = ((*aItemList)[i].iData)->AllocL(); |
1847 tempItem->iMetaMark = ((*aItemList)[i].iMetaMark)->AllocL(); |
1845 iDataItem->AppendL(*iItem); |
1848 tempItem->iData = ((*aItemList)[i].iData)->AllocL(); |
1846 delete iItem; |
1849 iDataItem->AppendL(*tempItem); |
|
1850 CleanupStack::PopAndDestroy( tempItem ); |
1847 } |
1851 } |
1848 } |
1852 } |
1849 |
1853 |
1850 } |
1854 } |
1851 |
1855 |