equal
deleted
inserted
replaced
1393 CleanupStack::PopAndDestroy( 2 ); // rdArray, readStream |
1393 CleanupStack::PopAndDestroy( 2 ); // rdArray, readStream |
1394 _DBG_FILE("CNSmlAgendaDataStore::DoCommitCreateItemL - \ |
1394 _DBG_FILE("CNSmlAgendaDataStore::DoCommitCreateItemL - \ |
1395 Multiple items are not supported: END"); |
1395 Multiple items are not supported: END"); |
1396 User::Leave( KErrNotSupported ); |
1396 User::Leave( KErrNotSupported ); |
1397 } |
1397 } |
|
1398 |
|
1399 // Check the validity of the calentry |
|
1400 CCalEntry* arrayentry = rdArray[0]; |
|
1401 if ( !arrayentry ) |
|
1402 { |
|
1403 CleanupStack::PopAndDestroy( 2 ); // rdArray, readStream |
|
1404 _DBG_FILE("CNSmlAgendaDataStore::DoCommitCreateItemL - \ |
|
1405 Invalid Calentry: END"); |
|
1406 User::Leave( KErrGeneral ); |
|
1407 } |
1398 |
1408 |
1399 TInt err( KErrNone ); |
1409 TInt err( KErrNone ); |
1400 |
1410 |
1401 _DBG_FILE("CNSmlAgendaDataStore::DoCommitCreateItemL: before StoreL"); |
1411 _DBG_FILE("CNSmlAgendaDataStore::DoCommitCreateItemL: before StoreL"); |
1402 TRAP( err, iInterimUtils->StoreL( *iEntryView, *rdArray[0], ETrue ) ); |
1412 TRAP( err, iInterimUtils->StoreL( *iEntryView, *rdArray[0], ETrue ) ); |
1593 CleanupStack::PopAndDestroy( 2 ); // rdArray, readStream |
1603 CleanupStack::PopAndDestroy( 2 ); // rdArray, readStream |
1594 _DBG_FILE("CNSmlAgendaDataStore::DoCommitReplaceItemL - \ |
1604 _DBG_FILE("CNSmlAgendaDataStore::DoCommitReplaceItemL - \ |
1595 Multiple items are not supported: END"); |
1605 Multiple items are not supported: END"); |
1596 User::Leave( KErrNotSupported ); |
1606 User::Leave( KErrNotSupported ); |
1597 } |
1607 } |
|
1608 |
|
1609 // Check the validity of the calentry |
|
1610 CCalEntry* arrayentry = rdArray[0]; |
|
1611 if ( !arrayentry ) |
|
1612 { |
|
1613 CleanupStack::PopAndDestroy( 2 ); // rdArray, readStream |
|
1614 _DBG_FILE("CNSmlAgendaDataStore::DoCommitCreateItemL - \ |
|
1615 Invalid Calentry: END"); |
|
1616 User::Leave( KErrGeneral ); |
|
1617 } |
1598 |
1618 |
1599 TInt err( KErrNone ); |
1619 TInt err( KErrNone ); |
1600 |
1620 |
1601 _DBG_FILE("CNSmlAgendaDataStore::DoCommitReplaceItemL: before StoreL"); |
1621 _DBG_FILE("CNSmlAgendaDataStore::DoCommitReplaceItemL: before StoreL"); |
1602 TRAP( err, iInterimUtils->StoreL( *iEntryView, *rdArray[0], ETrue ) ); |
1622 TRAP( err, iInterimUtils->StoreL( *iEntryView, *rdArray[0], ETrue ) ); |