cmmanager/cmmgr/cmmserver/src/cmminstancemapping.cpp
changeset 53 4af712113915
parent 46 95d45f234cf3
equal deleted inserted replaced
47:cb7afde124a3 53:4af712113915
    85 CDestination::CDestination()
    85 CDestination::CDestination()
    86     {
    86     {
    87     OstTraceFunctionEntry0( DUP1_CDESTINATION_CDESTINATION_ENTRY );
    87     OstTraceFunctionEntry0( DUP1_CDESTINATION_CDESTINATION_ENTRY );
    88 
    88 
    89     iId = 0;
    89     iId = 0;
       
    90     iMetadata = 0;
    90 
    91 
    91     OstTraceFunctionExit0( DUP1_CDESTINATION_CDESTINATION_EXIT );
    92     OstTraceFunctionExit0( DUP1_CDESTINATION_CDESTINATION_EXIT );
    92     }
    93     }
    93 
    94 
    94 // ---------------------------------------------------------------------------
    95 // ---------------------------------------------------------------------------
   521 void CCmmInstanceMapping::DestinationsContainingConnMethodL(
   522 void CCmmInstanceMapping::DestinationsContainingConnMethodL(
   522         const TUint32 aConnMethodId,
   523         const TUint32 aConnMethodId,
   523         RArray<TUint32>& aDestinationIds ) const
   524         RArray<TUint32>& aDestinationIds ) const
   524     {
   525     {
   525     OstTraceFunctionEntry0( CCMMINSTANCEMAPPING_DESTINATIONSCONTAININGCONNMETHODL_ENTRY );
   526     OstTraceFunctionEntry0( CCMMINSTANCEMAPPING_DESTINATIONSCONTAININGCONNMETHODL_ENTRY );
   526     
   527 
   527     aDestinationIds.Reset();
   528     aDestinationIds.Reset();
   528     TInt count( 0 );
   529     TInt count( 0 );
   529     
   530 
   530     // Go through each destination.
   531     // Go through each destination.
   531     for ( TInt i = 0; i < iDestinations.Count(); i++ )
   532     for ( TInt i = 0; i < iDestinations.Count(); i++ )
   532         {
   533         {
   533         TBool foundInThisDestination( EFalse );
   534         TBool foundInThisDestination( EFalse );
   534 
   535 
   556                     break;
   557                     break;
   557                     }
   558                     }
   558                 }
   559                 }
   559             }
   560             }
   560         }
   561         }
   561     
   562 
   562     OstTraceFunctionExit0( CCMMINSTANCEMAPPING_DESTINATIONSCONTAININGCONNMETHODL_EXIT );
   563     OstTraceFunctionExit0( CCMMINSTANCEMAPPING_DESTINATIONSCONTAININGCONNMETHODL_EXIT );
   563     }
   564     }
   564 
   565 
   565 // ---------------------------------------------------------------------------
   566 // ---------------------------------------------------------------------------
   566 // Get database session.
   567 // Get database session.
  1352                 aChangedDestinations.Append( iDestinations[i]->iId );
  1353                 aChangedDestinations.Append( iDestinations[i]->iId );
  1353                 break;
  1354                 break;
  1354                 }
  1355                 }
  1355             }
  1356             }
  1356         }
  1357         }
  1357     
  1358 
  1358     OstTraceFunctionExit0( DUP1_CCMMINSTANCEMAPPING_REMOVECONNMETHOD_EXIT );
  1359     OstTraceFunctionExit0( DUP1_CCMMINSTANCEMAPPING_REMOVECONNMETHOD_EXIT );
  1359     }
  1360     }
  1360 
  1361 
  1361 // ---------------------------------------------------------------------------
  1362 // ---------------------------------------------------------------------------
  1362 // Remove the destination from current destination/connection method
  1363 // Remove the destination from current destination/connection method
  1424 
  1425 
  1425     OstTraceFunctionExit0( CCMMINSTANCEMAPPING_REMOVECONNMETHODFROMDESTINATIONS_EXIT );
  1426     OstTraceFunctionExit0( CCMMINSTANCEMAPPING_REMOVECONNMETHODFROMDESTINATIONS_EXIT );
  1426     }
  1427     }
  1427 
  1428 
  1428 // ---------------------------------------------------------------------------
  1429 // ---------------------------------------------------------------------------
  1429 // Iterate through destinations to find the one identified with parameter
  1430 // Iterate through destinations to find the one identified with provided ID
  1430 // and returns its metadata mask.
  1431 // and return its metadata.
  1431 // ---------------------------------------------------------------------------
  1432 // ---------------------------------------------------------------------------
  1432 //
  1433 //
  1433 TUint32 CCmmInstanceMapping::DestinationMetadata( 
  1434 TUint32 CCmmInstanceMapping::DestinationMetadata(
  1434         const TUint32 aDestinationId ) const
  1435         const TUint32 aDestinationId ) const
  1435     {
  1436     {
  1436     OstTraceFunctionEntry0( CCMMINSTANCEMAPPING_DESTINATIONMETADATA_ENTRY );
  1437     OstTraceFunctionEntry0( CCMMINSTANCEMAPPING_DESTINATIONMETADATA_ENTRY );
  1437 
  1438 
  1438     TUint32 metadata( 0 );
  1439     TUint32 metadata( 0 );