1455 dbCaps = CNSmlDbCaps::NewL(); |
1455 dbCaps = CNSmlDbCaps::NewL(); |
1456 aDbCaps.Append(dbCaps); |
1456 aDbCaps.Append(dbCaps); |
1457 break; |
1457 break; |
1458 |
1458 |
1459 case ESourceRef: |
1459 case ESourceRef: |
1460 dbCaps->SetSourceRefL(ptrStringPart); |
1460 if (dbCaps) |
1461 |
1461 { |
|
1462 dbCaps->SetSourceRefL(ptrStringPart); |
|
1463 } |
1462 break; |
1464 break; |
1463 |
1465 |
1464 case EDisplayName: |
1466 case EDisplayName: |
1465 dbCaps->SetDisplayNameL(ptrStringPart); |
1467 if (dbCaps) |
|
1468 { |
|
1469 dbCaps->SetDisplayNameL(ptrStringPart); |
|
1470 } |
1466 break; |
1471 break; |
1467 |
1472 |
1468 case EMaxGUIDSize: |
1473 case EMaxGUIDSize: |
1469 dbCaps->SetMaxGuidSizeL(ptrStringPart); |
1474 if (dbCaps) |
|
1475 { |
|
1476 dbCaps->SetMaxGuidSizeL(ptrStringPart); |
|
1477 } |
1470 break; |
1478 break; |
1471 |
1479 |
1472 case ERxPref: |
1480 case ERxPref: |
1473 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1481 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1474 dbCaps->SetRxPrefL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
1482 if (dbCaps) |
|
1483 { |
|
1484 dbCaps->SetRxPrefL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
|
1485 } |
1475 break; |
1486 break; |
1476 |
1487 |
1477 case ERx: |
1488 case ERx: |
1478 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1489 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1479 dbCaps->AddRxL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
1490 if (dbCaps) |
|
1491 { |
|
1492 dbCaps->AddRxL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
|
1493 } |
1480 break; |
1494 break; |
1481 |
1495 |
1482 case ETxPref: |
1496 case ETxPref: |
1483 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1497 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1484 dbCaps->SetTxPrefL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
1498 if (dbCaps) |
|
1499 { |
|
1500 dbCaps->SetTxPrefL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
|
1501 } |
1485 break; |
1502 break; |
1486 |
1503 |
1487 |
1504 |
1488 case ETx: |
1505 case ETx: |
1489 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1506 separator = ptrStringPart.Locate(KTabSeparator()[0]); |
1490 dbCaps->AddTxL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
1507 if (dbCaps) |
|
1508 { |
|
1509 dbCaps->AddTxL(ptrStringPart.Left(separator),ptrStringPart.Right(ptrStringPart.Length()-separator-1)); |
|
1510 } |
1491 break; |
1511 break; |
1492 |
1512 |
1493 |
1513 |
1494 case EDSMem: |
1514 case EDSMem: |
1495 break; |
1515 break; |
1496 |
1516 |
1497 case ESupportHierarchicalSync: |
1517 case ESupportHierarchicalSync: |
1498 dbCaps->SetSupportHierarchicalSyncL(); |
1518 if (dbCaps) |
|
1519 { |
|
1520 dbCaps->SetSupportHierarchicalSyncL(); |
|
1521 } |
1499 break; |
1522 break; |
1500 |
1523 |
1501 case ESyncCap: |
1524 case ESyncCap: |
1502 break; |
1525 break; |
1503 |
1526 |