cmmanager/cmmgr/cmmserver/src/cmmdbchangelistener.cpp
changeset 53 4af712113915
parent 20 9c97ad6591ae
equal deleted inserted replaced
47:cb7afde124a3 53:4af712113915
   120 // Get the database table ID that this listener is monitoring.
   120 // Get the database table ID that this listener is monitoring.
   121 // ---------------------------------------------------------------------------
   121 // ---------------------------------------------------------------------------
   122 //
   122 //
   123 TUint32 CCmmDbChangeListener::GetTableId()
   123 TUint32 CCmmDbChangeListener::GetTableId()
   124     {
   124     {
   125     OstTraceFunctionEntry0( CCMMDBCHANGELISTENER_GETTABLEID_ENTRY );
   125     // No traces.
   126     OstTraceFunctionExit0( CCMMDBCHANGELISTENER_GETTABLEID_EXIT );
       
   127 
       
   128     return iTableId;
   126     return iTableId;
   129     }
   127     }
   130 
   128 
   131 // ---------------------------------------------------------------------------
   129 // ---------------------------------------------------------------------------
   132 // Start the listener if not yet started.
   130 // Start the listener if not yet started.
   186         }
   184         }
   187 
   185 
   188     TInt err = RequestNotification(); // Start to listen for next change.
   186     TInt err = RequestNotification(); // Start to listen for next change.
   189 
   187 
   190     // React to current change notification
   188     // React to current change notification
   191     iListenerManager->DbChangeDetected( iTableId );
   189     iListenerManager->DbChangeDetectedL( iTableId );
   192 
   190 
   193     if ( err )
   191     if ( err )
   194         {
   192         {
   195         iListenerManager->DbChangeError( iTableId );
   193         iListenerManager->DbChangeError( iTableId );
   196         }
   194         }
   215     OstTraceFunctionExit0( CCMMDBCHANGELISTENER_REQUESTNOTIFICATION_EXIT );
   213     OstTraceFunctionExit0( CCMMDBCHANGELISTENER_REQUESTNOTIFICATION_EXIT );
   216 
   214 
   217     return err;
   215     return err;
   218     }
   216     }
   219 
   217 
       
   218 // -----------------------------------------------------------------------------
       
   219 // Handles the leave from the RunL()
       
   220 // -----------------------------------------------------------------------------
       
   221 //
       
   222 TInt CCmmDbChangeListener::RunError( TInt /*aLeaveCode*/ )
       
   223     {
       
   224     OstTrace0( TRACE_ERROR, CCMMDBCHANGELISTENER_RUNERROR, "CCmmDbChangeListener::RunError" );
       
   225 
       
   226     return KErrNone;
       
   227     }
       
   228 
   220 // End of file
   229 // End of file