simpledatamodeladapter/src/presencepluginconnection.cpp
branchRCL_3
changeset 18 52d91a16fec3
parent 0 c8caa15ef882
equal deleted inserted replaced
14:de84881f4ac3 18:52d91a16fec3
   106     const MXIMPServiceInfo& aServiceInfo,
   106     const MXIMPServiceInfo& aServiceInfo,
   107     const MXIMPContextClientInfo& /*aClientCtxInfo*/,
   107     const MXIMPContextClientInfo& /*aClientCtxInfo*/,
   108     const TDesC8& aETag )
   108     const TDesC8& aETag )
   109     {
   109     {
   110     DP_SDA("CPresencePluginConnection::ConstructL loaded");
   110     DP_SDA("CPresencePluginConnection::ConstructL loaded");
   111      
   111     
   112     iETag = aETag.AllocL();                  
   112     iETag = aETag.AllocL();                  
   113     
   113     
   114     iSession = CPresencePluginSession::NewL( aServiceInfo, *this );
   114     iSession = CPresencePluginSession::NewL( aServiceInfo, *this );
   115             
   115             
   116     // create instance from data class
   116     // create instance from data class
   193 // ---------------------------------------------------------------------------
   193 // ---------------------------------------------------------------------------
   194 //
   194 //
   195 CPresencePluginConnection::~CPresencePluginConnection()
   195 CPresencePluginConnection::~CPresencePluginConnection()
   196     {
   196     {
   197     DP_SDA("CPresencePluginConnection::~CPresencePluginConnection");
   197     DP_SDA("CPresencePluginConnection::~CPresencePluginConnection");
       
   198     
       
   199     Cancel();
   198     
   200     
   199     delete iSipPresentity;
   201     delete iSipPresentity;
   200     iSipPresentity = NULL;
   202     iSipPresentity = NULL;
   201     
   203     
   202     delete iPluginWinfo;
   204     delete iPluginWinfo;
   874         DP_SDA("Deleting SimpleImPlugin done");
   876         DP_SDA("Deleting SimpleImPlugin done");
   875         }
   877         }
   876     }
   878     }
   877 
   879 
   878 // ---------------------------------------------------------------------------
   880 // ---------------------------------------------------------------------------
   879 // CPresencePluginPublisher::DoCancel()
   881 // CPresencePluginConnection::DoCancel()
   880 // ---------------------------------------------------------------------------
   882 // ---------------------------------------------------------------------------
   881 //
   883 //
   882 void CPresencePluginConnection::DoCancel(  )
   884 void CPresencePluginConnection::DoCancel(  )
   883     {
   885     {
   884     DP_SDA("CPresencePluginConnection::DoCancel CANCEL");
   886     DP_SDA("CPresencePluginConnection::DoCancel CANCEL");
   885     }
   887     iPublisher->Cancel();
   886 
   888     }
   887 // ---------------------------------------------------------------------------
   889 
   888 // CPresencePluginSession::RunL()
   890 // ---------------------------------------------------------------------------
       
   891 // CPresencePluginConnection::RunL()
   889 // ---------------------------------------------------------------------------
   892 // ---------------------------------------------------------------------------
   890 //
   893 //
   891 void CPresencePluginConnection::RunL(  )
   894 void CPresencePluginConnection::RunL(  )
   892     {
   895     {
   893     DP_SDA("CPresencePluginConnection::RunL");
   896     DP_SDA("CPresencePluginConnection::RunL");
   908         DeleteImFeaturesPlugin();
   911         DeleteImFeaturesPlugin();
   909         }
   912         }
   910     }
   913     }
   911 
   914 
   912 // ---------------------------------------------------------------------------
   915 // ---------------------------------------------------------------------------
   913 // CPresencePluginSession::RunError
   916 // CPresencePluginConnection::RunError
   914 // ---------------------------------------------------------------------------
   917 // ---------------------------------------------------------------------------
   915 //
   918 //
   916 TInt CPresencePluginConnection::RunError( TInt /*aError*/ )
   919 TInt CPresencePluginConnection::RunError( TInt /*aError*/ )
   917     {
   920     {
   918     DP_SDA("CPresencePluginConnection::RunError"); 
   921     DP_SDA("CPresencePluginConnection::RunError");