cmmanager/cmmgr/cmmserver/src/cmmconnmethodinstance.cpp
changeset 27 489cf6208544
parent 23 7ec726f93df1
child 40 c5b848e6c7d1
equal deleted inserted replaced
23:7ec726f93df1 27:489cf6208544
    34 
    34 
    35 // ---------------------------------------------------------------------------
    35 // ---------------------------------------------------------------------------
    36 // Two phased construction.
    36 // Two phased construction.
    37 // ---------------------------------------------------------------------------
    37 // ---------------------------------------------------------------------------
    38 //
    38 //
    39 CCmmConnMethodInstance* CCmmConnMethodInstance::NewL( CCmmSession* aCmmSession, CCmmCache* aCache )
    39 CCmmConnMethodInstance* CCmmConnMethodInstance::NewL(
       
    40         CCmmSession* aCmmSession,
       
    41         CCmmCache* aCache )
    40     {
    42     {
    41     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_NEWL_ENTRY );
    43     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_NEWL_ENTRY );
    42 
    44 
    43     CCmmConnMethodInstance* self = CCmmConnMethodInstance::NewLC( aCmmSession, aCache );
    45     CCmmConnMethodInstance* self = CCmmConnMethodInstance::NewLC( aCmmSession, aCache );
    44     CleanupStack::Pop( self );
    46     CleanupStack::Pop( self );
    49 
    51 
    50 // ---------------------------------------------------------------------------
    52 // ---------------------------------------------------------------------------
    51 // Two phased construction.
    53 // Two phased construction.
    52 // ---------------------------------------------------------------------------
    54 // ---------------------------------------------------------------------------
    53 //
    55 //
    54 CCmmConnMethodInstance* CCmmConnMethodInstance::NewLC( CCmmSession* aCmmSession, CCmmCache* aCache )
    56 CCmmConnMethodInstance* CCmmConnMethodInstance::NewLC(
       
    57         CCmmSession* aCmmSession,
       
    58         CCmmCache* aCache )
    55     {
    59     {
    56     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_NEWLC_ENTRY );
    60     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_NEWLC_ENTRY );
    57 
    61 
    58     CCmmConnMethodInstance* self = new( ELeave ) CCmmConnMethodInstance( aCmmSession, aCache );
    62     CCmmConnMethodInstance* self = new( ELeave ) CCmmConnMethodInstance( aCmmSession, aCache );
    59     CleanupClosePushL( *self );
    63     CleanupClosePushL( *self );
    84 
    88 
    85 // ---------------------------------------------------------------------------
    89 // ---------------------------------------------------------------------------
    86 // Constructor.
    90 // Constructor.
    87 // ---------------------------------------------------------------------------
    91 // ---------------------------------------------------------------------------
    88 //
    92 //
    89 CCmmConnMethodInstance::CCmmConnMethodInstance( CCmmSession* aCmmSession, CCmmCache* aCache )
    93 CCmmConnMethodInstance::CCmmConnMethodInstance(
       
    94         CCmmSession* aCmmSession,
       
    95         CCmmCache* aCache )
    90         :
    96         :
    91         iCmmSession( aCmmSession ),
    97         iCmmSession( aCmmSession ),
    92         iCache( aCache )
    98         iCache( aCache )
    93     {
    99     {
    94     OstTraceFunctionEntry0( DUP1_CCMMCONNMETHODINSTANCE_CCMMCONNMETHODINSTANCE_ENTRY );
   100     OstTraceFunctionEntry0( DUP1_CCMMCONNMETHODINSTANCE_CCMMCONNMETHODINSTANCE_ENTRY );
   115 
   121 
   116     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_CONSTRUCTL_EXIT );
   122     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_CONSTRUCTL_EXIT );
   117     }
   123     }
   118 
   124 
   119 // ---------------------------------------------------------------------------
   125 // ---------------------------------------------------------------------------
   120 // Set the plugin base pointer.
       
   121 // ---------------------------------------------------------------------------
       
   122 //
       
   123 void CCmmConnMethodInstance::SetPlugin( CCmPluginBaseEng* aPlugin )
       
   124     {
       
   125     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETPLUGIN_ENTRY );
       
   126 
       
   127     iPlugin = aPlugin;
       
   128 
       
   129     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETPLUGIN_EXIT );
       
   130     }
       
   131 
       
   132 // ---------------------------------------------------------------------------
       
   133 // Get the plugin base pointer.
       
   134 // ---------------------------------------------------------------------------
       
   135 //
       
   136 CCmPluginBaseEng* CCmmConnMethodInstance::GetPlugin() const
       
   137     {
       
   138     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETPLUGIN_ENTRY );
       
   139     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETPLUGIN_EXIT );
       
   140     return iPlugin;
       
   141     }
       
   142 
       
   143 // ---------------------------------------------------------------------------
       
   144 // Get pointer to the plugin data container.
   126 // Get pointer to the plugin data container.
   145 // ---------------------------------------------------------------------------
   127 // ---------------------------------------------------------------------------
   146 //
   128 //
   147 CCmClientPluginInstance* CCmmConnMethodInstance::GetPluginDataInstance() const
   129 CCmClientPluginInstance* CCmmConnMethodInstance::GetPluginDataInstance() const
   148     {
   130     {
   149     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETPLUGINDATAINSTANCE_ENTRY );
       
   150     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETPLUGINDATAINSTANCE_EXIT );
       
   151     return iPluginDataInstance;
   131     return iPluginDataInstance;
   152     }
   132     }
   153 
   133 
   154 // ---------------------------------------------------------------------------
   134 // ---------------------------------------------------------------------------
   155 // Get connection method ID.
   135 // Get connection method ID.
   156 // ---------------------------------------------------------------------------
   136 // ---------------------------------------------------------------------------
   157 //
   137 //
   158 TUint32 CCmmConnMethodInstance::GetId() const
   138 TUint32 CCmmConnMethodInstance::GetId() const
   159     {
   139     {
   160     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETID_ENTRY );
       
   161     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETID_EXIT );
       
   162 
       
   163     return iConnMethodId;
   140     return iConnMethodId;
   164     }
   141     }
   165 
   142 
   166 // ---------------------------------------------------------------------------
   143 // ---------------------------------------------------------------------------
   167 // Set connection method ID.
   144 // Set connection method ID.
   180 // Return bearer type.
   157 // Return bearer type.
   181 // ---------------------------------------------------------------------------
   158 // ---------------------------------------------------------------------------
   182 //
   159 //
   183 TUint32 CCmmConnMethodInstance::GetBearerType() const
   160 TUint32 CCmmConnMethodInstance::GetBearerType() const
   184     {
   161     {
   185     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETBEARERTYPE_ENTRY );
       
   186     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETBEARERTYPE_EXIT );
       
   187 
       
   188     return iBearerType;
   162     return iBearerType;
   189     }
       
   190 
       
   191 // ---------------------------------------------------------------------------
       
   192 // Get bearer type.
       
   193 // ---------------------------------------------------------------------------
       
   194 //
       
   195 void CCmmConnMethodInstance::SetBearerType( const TUint32& aBearerType )
       
   196     {
       
   197     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETBEARERTYPE_ENTRY );
       
   198 
       
   199     iBearerType = aBearerType;
       
   200 
       
   201     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETBEARERTYPE_EXIT );
       
   202     }
   163     }
   203 
   164 
   204 // ---------------------------------------------------------------------------
   165 // ---------------------------------------------------------------------------
   205 // Get handle ID.
   166 // Get handle ID.
   206 // ---------------------------------------------------------------------------
   167 // ---------------------------------------------------------------------------
   305 
   266 
   306     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_COPYDATAL_EXIT );
   267     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_COPYDATAL_EXIT );
   307     }
   268     }
   308 
   269 
   309 // ---------------------------------------------------------------------------
   270 // ---------------------------------------------------------------------------
   310 // Refresh the relevant connection method data in cache side object to be in
       
   311 // synch with database and copy that data back to this session side connection
       
   312 // method object.
       
   313 // ---------------------------------------------------------------------------
       
   314 //
       
   315 //TODO, cleanup
       
   316 /*
       
   317 void CCmmConnMethodInstance::RefreshDataL( CCmmConnMethodStruct* aConnMethodStruct ) //TODO, remove
       
   318     {
       
   319 
       
   320     //TODO
       
   321     //if ( !aConnMethodStruct )
       
   322         //{
       
   323         //User::Leave( KErrCorrupt );
       
   324         //}
       
   325     if ( !iPlugin )
       
   326         {
       
   327         User::Leave( KErrCorrupt );
       
   328         }
       
   329 
       
   330     switch ( aConnMethodStruct->GetStatus() )
       
   331         {
       
   332         case ECmmConnMethodStatusValid:
       
   333         case ECmmConnMethodStatusToBeDeleted:
       
   334             {
       
   335             //TODO, add record status check later and only call Reload() if necessary. TCmmRecordStatus
       
   336             //if ( !aConnMethodStruct->UpToDate() )
       
   337             //    {
       
   338                 iPlugin->ReLoadL();
       
   339             //    }
       
   340             iPlugin->GetPluginDataL( iPluginDataInstance );
       
   341             }
       
   342             break;
       
   343         case ECmmConnMethodStatusNotSaved: // This is checked before.
       
   344         case ECmmConnMethodStatusChanged:
       
   345         default:
       
   346             User::Leave( KErrCorrupt );  // Error, invalid status.
       
   347             break;
       
   348         }
       
   349 
       
   350     // Internal state need to be set to the same state as after a successfull update.
       
   351     UpdateSuccessful();
       
   352 
       
   353     }*/
       
   354 
       
   355 // ---------------------------------------------------------------------------
       
   356 // CCmmConnMethodInstance::GetIntAttributeL
   271 // CCmmConnMethodInstance::GetIntAttributeL
   357 // ---------------------------------------------------------------------------
   272 // ---------------------------------------------------------------------------
   358 //
   273 //
   359 TUint32 CCmmConnMethodInstance::GetIntAttributeL( const TUint32& aAttribute )
   274 TUint32 CCmmConnMethodInstance::GetIntAttributeL( const TUint32& aAttribute )
   360     {
   275     {
   361     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETINTATTRIBUTEL_ENTRY );
   276     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETINTATTRIBUTEL_ENTRY );
   362 
   277 
   363     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   278     if ( !iPlugin )
   364 
   279         {
   365     return iPlugin->GetIntAttributeL( aAttribute, iPluginDataInstance );
   280         User::Leave( KErrCorrupt );
       
   281         }
       
   282 
       
   283     TUint32 result = iPlugin->GetIntAttributeL( aAttribute, iPluginDataInstance );
       
   284 
       
   285     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETINTATTRIBUTEL_EXIT );
       
   286     return result;
   366     }
   287     }
   367 
   288 
   368 // ---------------------------------------------------------------------------
   289 // ---------------------------------------------------------------------------
   369 // CCmmConnMethodInstance::GetBoolAttributeL
   290 // CCmmConnMethodInstance::GetBoolAttributeL
   370 // ---------------------------------------------------------------------------
   291 // ---------------------------------------------------------------------------
   371 //
   292 //
   372 TBool CCmmConnMethodInstance::GetBoolAttributeL( const TUint32& aAttribute )
   293 TBool CCmmConnMethodInstance::GetBoolAttributeL( const TUint32& aAttribute )
   373     {
   294     {
   374     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETBOOLATTRIBUTEL_ENTRY );
   295     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETBOOLATTRIBUTEL_ENTRY );
   375 
   296 
   376     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   297     if ( !iPlugin )
       
   298         {
       
   299         User::Leave( KErrCorrupt );
       
   300         }
   377 
   301 
   378     TBool retVal( EFalse );
   302     TBool retVal( EFalse );
   379 
       
   380     switch ( aAttribute )
   303     switch ( aAttribute )
   381         {
   304         {
   382         case CMManager::ECmConnected:
   305         case CMManager::ECmConnected:
   383             {
   306             {
   384             if ( GetId() > 0 )
   307             if ( GetId() > 0 )
   397             break;
   320             break;
   398         default:
   321         default:
   399             {
   322             {
   400             retVal = iPlugin->GetBoolAttributeL( aAttribute, iPluginDataInstance );
   323             retVal = iPlugin->GetBoolAttributeL( aAttribute, iPluginDataInstance );
   401             }
   324             }
       
   325             break;
   402         }
   326         }
   403 
   327 
   404     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETBOOLATTRIBUTEL_EXIT );
   328     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETBOOLATTRIBUTEL_EXIT );
   405     return retVal;
   329     return retVal;
   406     }
   330     }
   411 //
   335 //
   412 HBufC* CCmmConnMethodInstance::GetStringAttributeL( const TUint32& aAttribute )
   336 HBufC* CCmmConnMethodInstance::GetStringAttributeL( const TUint32& aAttribute )
   413     {
   337     {
   414     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETSTRINGATTRIBUTEL_ENTRY );
   338     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETSTRINGATTRIBUTEL_ENTRY );
   415 
   339 
   416     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   340     if ( !iPlugin )
   417 
   341         {
   418     return iPlugin->GetStringAttributeL( aAttribute, iPluginDataInstance );
   342         User::Leave( KErrCorrupt );
       
   343         }
       
   344 
       
   345     HBufC* result = iPlugin->GetStringAttributeL( aAttribute, iPluginDataInstance );
       
   346 
       
   347     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETSTRINGATTRIBUTEL_EXIT );
       
   348     return result;
   419     }
   349     }
   420 
   350 
   421 // ---------------------------------------------------------------------------
   351 // ---------------------------------------------------------------------------
   422 // CCmmConnMethodInstance::GetString8AttributeL
   352 // CCmmConnMethodInstance::GetString8AttributeL
   423 // ---------------------------------------------------------------------------
   353 // ---------------------------------------------------------------------------
   424 //
   354 //
   425 HBufC8* CCmmConnMethodInstance::GetString8AttributeL( const TUint32& aAttribute )
   355 HBufC8* CCmmConnMethodInstance::GetString8AttributeL( const TUint32& aAttribute )
   426     {
   356     {
   427     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETSTRING8ATTRIBUTEL_ENTRY );
   357     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETSTRING8ATTRIBUTEL_ENTRY );
   428 
   358 
   429     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   359     if ( !iPlugin )
   430 
   360         {
   431     return iPlugin->GetString8AttributeL( aAttribute, iPluginDataInstance );
   361         User::Leave( KErrCorrupt );
       
   362         }
       
   363 
       
   364     HBufC8* result = iPlugin->GetString8AttributeL( aAttribute, iPluginDataInstance );
       
   365 
       
   366     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETSTRING8ATTRIBUTEL_EXIT );
       
   367     return result;
   432     }
   368     }
   433 
   369 
   434 // ---------------------------------------------------------------------------
   370 // ---------------------------------------------------------------------------
   435 // CCmmConnMethodInstance::SetIntAttributeL
   371 // CCmmConnMethodInstance::SetIntAttributeL
   436 // ---------------------------------------------------------------------------
   372 // ---------------------------------------------------------------------------
   439         const TUint32& aAttribute,
   375         const TUint32& aAttribute,
   440         const TUint32& aValue )
   376         const TUint32& aValue )
   441     {
   377     {
   442     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETINTATTRIBUTEL_ENTRY );
   378     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETINTATTRIBUTEL_ENTRY );
   443 
   379 
   444     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   380     if ( !iPlugin )
       
   381         {
       
   382         User::Leave( KErrCorrupt );
       
   383         }
   445 
   384 
   446     iPlugin->SetIntAttributeL( aAttribute, aValue, iPluginDataInstance );
   385     iPlugin->SetIntAttributeL( aAttribute, aValue, iPluginDataInstance );
   447 
   386 
   448     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETINTATTRIBUTEL_EXIT );
   387     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETINTATTRIBUTEL_EXIT );
   449     }
   388     }
   456         const TUint32& aAttribute,
   395         const TUint32& aAttribute,
   457         const TBool& aValue )
   396         const TBool& aValue )
   458     {
   397     {
   459     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETBOOLATTRIBUTEL_ENTRY );
   398     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETBOOLATTRIBUTEL_ENTRY );
   460 
   399 
   461     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   400     if ( !iPlugin )
       
   401         {
       
   402         User::Leave( KErrCorrupt );
       
   403         }
   462 
   404 
   463     iPlugin->SetBoolAttributeL( aAttribute, aValue, iPluginDataInstance );
   405     iPlugin->SetBoolAttributeL( aAttribute, aValue, iPluginDataInstance );
   464 
   406 
   465     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETBOOLATTRIBUTEL_EXIT );
   407     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETBOOLATTRIBUTEL_EXIT );
   466     }
   408     }
   473         const TUint32& aAttribute,
   415         const TUint32& aAttribute,
   474         const TDesC16& aValue )
   416         const TDesC16& aValue )
   475     {
   417     {
   476     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETSTRINGATTRIBUTEL_ENTRY );
   418     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETSTRINGATTRIBUTEL_ENTRY );
   477 
   419 
   478     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   420     if ( !iPlugin )
       
   421         {
       
   422         User::Leave( KErrCorrupt );
       
   423         }
   479 
   424 
   480     iPlugin->SetStringAttributeL( aAttribute, aValue, iPluginDataInstance );
   425     iPlugin->SetStringAttributeL( aAttribute, aValue, iPluginDataInstance );
   481 
   426 
   482     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETSTRINGATTRIBUTEL_EXIT );
   427     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETSTRINGATTRIBUTEL_EXIT );
   483     }
   428     }
   490         const TUint32& aAttribute,
   435         const TUint32& aAttribute,
   491         const TDesC8& aValue )
   436         const TDesC8& aValue )
   492     {
   437     {
   493     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETSTRING8ATTRIBUTEL_ENTRY );
   438     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_SETSTRING8ATTRIBUTEL_ENTRY );
   494 
   439 
   495     __ASSERT_DEBUG( iPlugin != NULL, User::Leave( KErrNotFound ) );
   440     if ( !iPlugin )
       
   441         {
       
   442         User::Leave( KErrCorrupt );
       
   443         }
   496 
   444 
   497     iPlugin->SetString8AttributeL( aAttribute, aValue, iPluginDataInstance );
   445     iPlugin->SetString8AttributeL( aAttribute, aValue, iPluginDataInstance );
   498 
   446 
   499     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETSTRING8ATTRIBUTEL_EXIT );
   447     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_SETSTRING8ATTRIBUTEL_EXIT );
   500     }
       
   501 
       
   502 // ---------------------------------------------------------------------------
       
   503 // Gets the current status of this connection method instance.
       
   504 // ---------------------------------------------------------------------------
       
   505 //
       
   506 TCmmConnMethodStatus CCmmConnMethodInstance::GetStatus() const
       
   507     {
       
   508     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_GETSTATUS_ENTRY );
       
   509     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_GETSTATUS_EXIT );
       
   510     return iStatus;
       
   511     }
   448     }
   512 
   449 
   513 // ---------------------------------------------------------------------------
   450 // ---------------------------------------------------------------------------
   514 // Sets a new status value.
   451 // Sets a new status value.
   515 // ---------------------------------------------------------------------------
   452 // ---------------------------------------------------------------------------
   529 // connection method instance to reflect the new valid state.
   466 // connection method instance to reflect the new valid state.
   530 // ---------------------------------------------------------------------------
   467 // ---------------------------------------------------------------------------
   531 //
   468 //
   532 void CCmmConnMethodInstance::UpdateSuccessful()
   469 void CCmmConnMethodInstance::UpdateSuccessful()
   533     {
   470     {
       
   471     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_UPDATESUCCESSFUL_ENTRY );
       
   472 
   534     SetStatus( ECmmConnMethodStatusValid );
   473     SetStatus( ECmmConnMethodStatusValid );
       
   474 
       
   475     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_UPDATESUCCESSFUL_EXIT );
   535     }
   476     }
   536 
   477 
   537 // ---------------------------------------------------------------------------
   478 // ---------------------------------------------------------------------------
   538 // Called after this connection method has been deleted and database
   479 // Called after this connection method has been deleted and database
   539 // transaction has completed successfully. Sets the internal state of this
   480 // transaction has completed successfully. Sets the internal state of this
   540 // connection method structure to reflect the new deleted state.
   481 // connection method structure to reflect the new deleted state.
   541 // ---------------------------------------------------------------------------
   482 // ---------------------------------------------------------------------------
   542 //
   483 //
   543 void CCmmConnMethodInstance::DeleteSuccessful( const TUint32& aNewSecondaryId )
   484 void CCmmConnMethodInstance::DeleteSuccessful( const TUint32& aNewSecondaryId )
   544     {
   485     {
       
   486     OstTraceFunctionEntry0( CCMMCONNMETHODINSTANCE_DELETESUCCESSFUL_ENTRY );
       
   487 
   545     SetStatus( ECmmConnMethodStatusChanged );
   488     SetStatus( ECmmConnMethodStatusChanged );
   546     SetId( aNewSecondaryId );
   489     SetId( aNewSecondaryId );
       
   490 
       
   491     OstTraceFunctionExit0( CCMMCONNMETHODINSTANCE_DELETESUCCESSFUL_EXIT );
   547     }
   492     }
   548 
   493 
   549 // ---------------------------------------------------------------------------
   494 // ---------------------------------------------------------------------------
   550 // After update/delete to database, refresh temporary ID to real ID if
   495 // After update/delete to database, refresh temporary ID to real ID if
   551 // necessary and refresh status information for any related handles for
   496 // necessary and refresh status information for any related handles for