calendarui/server/CalenSvr/src/CalSvrSession.cpp
branchRCL_3
changeset 5 42814f902fe6
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
0:f979ecb2b13e 5:42814f902fe6
   163     if(!iInitActive)
   163     if(!iInitActive)
   164         {
   164         {
   165         TRACE_EXIT_POINT;
   165         TRACE_EXIT_POINT;
   166         return;
   166         return;
   167         }
   167         }
   168 
   168 	if(iRegistered)
   169     Server()->UnregisterUserL(*this);
   169     	{
   170     iRegistered = EFalse;
   170     	Server()->UnregisterUserL(*this);
   171 
   171 		iRegistered = EFalse;
   172     iInitMessage.Complete(KErrCancel);
   172     	}
   173     iInitActive = EFalse;
   173 	if(!iInitMessage.IsNull() )
       
   174 		{
       
   175 		iInitMessage.Complete(KErrCancel);
       
   176         iInitActive = EFalse;
       
   177 		}
   174     
   178     
   175     TRACE_EXIT_POINT;
   179     TRACE_EXIT_POINT;
   176     }
   180     }
   177 
   181 
   178 // -----------------------------------------------------------------------------
   182 // -----------------------------------------------------------------------------
   228 
   232 
   229     HandleInitReady();
   233     HandleInitReady();
   230     
   234     
   231     TRACE_EXIT_POINT;
   235     TRACE_EXIT_POINT;
   232     }
   236     }
       
   237 
       
   238 
       
   239 // -----------------------------------------------------------------------------
       
   240 // ?classname::?member_function
       
   241 // ?implementation_description
       
   242 // (other items were commented in a header).
       
   243 // -----------------------------------------------------------------------------
       
   244 //srinath
       
   245 void CCalSvrSession::HandleError()
       
   246 	{
       
   247 	TRACE_ENTRY_POINT;
       
   248 	
       
   249 	if(!iInitMessage.IsNull() )
       
   250 		{
       
   251 		iInitMessage.Complete(KErrNone);
       
   252 		}
       
   253 	
       
   254 	TRACE_EXIT_POINT;
       
   255 	}
   233 
   256 
   234 // -----------------------------------------------------------------------------
   257 // -----------------------------------------------------------------------------
   235 // ?classname::?member_function
   258 // ?classname::?member_function
   236 // ?implementation_description
   259 // ?implementation_description
   237 // (other items were commented in a header).
   260 // (other items were commented in a header).