supl/locationsuplfw/gateway/src/epos_csuplsessionmanager.cpp
branchRCL_3
changeset 41 d746aee05493
parent 0 667063e416a2
child 42 02ba3f1733c6
equal deleted inserted replaced
31:380473e13443 41:d746aee05493
    47 
    47 
    48 // EPOC default constructor
    48 // EPOC default constructor
    49 void CSuplSessionManager::ConstructL()
    49 void CSuplSessionManager::ConstructL()
    50     {
    50     {
    51     DEBUG_TRACE("CSuplSessionManager::ConstructL", __LINE__)            
    51     DEBUG_TRACE("CSuplSessionManager::ConstructL", __LINE__)            
    52     iCommMgr = CSuplCommunicationManager::NewL();
    52 	iSessionRetryQ = CSuplSessionRetryQ::NewL();
       
    53     iCommMgr = CSuplCommunicationManager::NewL(*this);
    53     iCommMgr->Initialize();
    54     iCommMgr->Initialize();
    54     iConnectError=KErrNone;
    55     iConnectError=KErrNone;
    55     }
    56     }
    56 
    57 
    57 // Two-phased constructor
    58 // Two-phased constructor
    70     {
    71     {
    71     DEBUG_TRACE("CSuplSessionManager::~CSuplSessionManager", __LINE__)            
    72     DEBUG_TRACE("CSuplSessionManager::~CSuplSessionManager", __LINE__)            
    72     if(iProtocolMgr)          
    73     if(iProtocolMgr)          
    73     delete iProtocolMgr;
    74     delete iProtocolMgr;
    74     delete iCommMgr;
    75     delete iCommMgr;
       
    76 	delete iSessionRetryQ;
    75     delete iEcomWatcher;
    77     delete iEcomWatcher;
    76     REComSession::FinalClose();
    78     REComSession::FinalClose();
    77     }
    79     }
    78  
    80  
    79 // ------------------------------------------------------------------
    81 // ------------------------------------------------------------------
   463 		{
   465 		{
   464 		TRequestStatus *status = &aStatus;
   466 		TRequestStatus *status = &aStatus;
   465 		User::RequestComplete(status,KErrNotReady);
   467 		User::RequestComplete(status,KErrNotReady);
   466 		}	
   468 		}	
   467 	}
   469 	}
       
   470 	
       
   471 void CSuplSessionManager::ConnectionOpened()
       
   472 	{
       
   473 	iSessionRetryQ->SessionStarted();	
       
   474 	}
       
   475 
       
   476 void CSuplSessionManager::ConnectionClosed()
       
   477 	{
       
   478 	iSessionRetryQ->SessionEnded();	
       
   479 	}
       
   480 
       
   481 
       
   482 void CSuplSessionManager::QueueForReIssueRequestL(CSuplSessionRequest& aSessionRequest)
       
   483 	{
       
   484 	iSessionRetryQ->AddToQueueL(aSessionRequest);
       
   485 	}
       
   486 
       
   487 void CSuplSessionManager::RemoveFromQueueForReIssueRequest(CSuplSessionRequest& aSessionRequest)
       
   488 	{
       
   489 	iSessionRetryQ->RemoveFromQueueL(aSessionRequest);
       
   490 	}	
   468     
   491     
   469 // End of File
   492 // End of File