cmmanager/cmmgr/cmmserver/src/cmmdestinationstruct.cpp
changeset 27 489cf6208544
parent 23 7ec726f93df1
child 40 c5b848e6c7d1
equal deleted inserted replaced
23:7ec726f93df1 27:489cf6208544
   209     if ( !iMetadataRecord->FindL( iTransactionHandler->Session() ) )
   209     if ( !iMetadataRecord->FindL( iTransactionHandler->Session() ) )
   210         {
   210         {
   211         // Not found -> fill in with default values.
   211         // Not found -> fill in with default values.
   212         iMetadataRecord->iSNAP = iId;
   212         iMetadataRecord->iSNAP = iId;
   213         iMetadataRecord->iMetadata = 0;
   213         iMetadataRecord->iMetadata = 0;
   214         iMetadataRecord->iIcon = 0;
   214         //iMetadataRecord->iIcon = 0;//TODO, set to 0 or not?
   215         iMetadataRecord->SetRecordId( KCDNewRecordRequest );
   215         iMetadataRecord->SetRecordId( KCDNewRecordRequest );
   216         iMetadataRecordStatus = ECmmRecordStatusUnsaved;
   216         iMetadataRecordStatus = ECmmRecordStatusUnsaved;
   217         }
   217         }
   218     else
   218     else
   219         {
   219         {
   834                     }
   834                     }
   835                 else
   835                 else
   836                     {
   836                     {
   837                     // Normal connection method.
   837                     // Normal connection method.
   838                     snapRecord2->iEmbeddedSNAP = 0;
   838                     snapRecord2->iEmbeddedSNAP = 0;
   839                     snapRecord2->iIAP = ( KCDMaskShowField & CommsDat::KCDTIdIAPRecord ) | ( connMethodRealId << 8 );
   839                     snapRecord2->iIAP = CommsDat::KCDTIdIAPRecord | ( connMethodRealId << 8 );
   840                     snapRecord2->iPriority = i + 1; // Priority values start from 1.
   840                     snapRecord2->iPriority = i + 1; // Priority values start from 1.
   841                     aDestinationInstance.iConnMethodItemArray[i].iPriority = i + 1; // Update this just in case.
   841                     aDestinationInstance.iConnMethodItemArray[i].iPriority = i + 1; // Update this just in case.
   842                     }
   842                     }
   843 
   843 
   844                 if ( existingRecordCount > index )
   844                 if ( existingRecordCount > index )
  1331                 }
  1331                 }
  1332             if ( !source->iIcon.IsNull() )
  1332             if ( !source->iIcon.IsNull() )
  1333                 {
  1333                 {
  1334                 metadataRecord->iIcon.SetL( source->iIcon );
  1334                 metadataRecord->iIcon.SetL( source->iIcon );
  1335                 }
  1335                 }
       
  1336             //if ( !source->iIconFileName.IsNull() )//TODO, enable after commsdat icon changes are implemented.
       
  1337                 //{
       
  1338                 //metadataRecord->iIconFileName.SetL( source->iIconFileName );
       
  1339                 //}
  1336             metadataRecord->SetElementId( source->ElementId() );
  1340             metadataRecord->SetElementId( source->ElementId() );
  1337 
  1341 
  1338             CleanupStack::Pop( metadataRecord );
  1342             CleanupStack::Pop( metadataRecord );
  1339             target = static_cast<CommsDat::CCDRecordBase*>( metadataRecord );
  1343             target = static_cast<CommsDat::CCDRecordBase*>( metadataRecord );
  1340             }
  1344             }