equal
deleted
inserted
replaced
49 TInt CWsClient::iReply; |
49 TInt CWsClient::iReply; |
50 TInt CWsClient::iReplyOffset; |
50 TInt CWsClient::iReplyOffset; |
51 CWsClient* CWsClient::iCurrentClient; |
51 CWsClient* CWsClient::iCurrentClient; |
52 CWsObject* CWsClient::iDestObj; |
52 CWsObject* CWsClient::iDestObj; |
53 const TUint8* CWsClient::iNextCmd; |
53 const TUint8* CWsClient::iNextCmd; |
54 CIdle* CWsClient::iMoreCommands=NULL; |
|
55 |
54 |
56 TUint CWsClient::iConnectionId = CDebugLogBase::EDummyConnectionId+1; |
55 TUint CWsClient::iConnectionId = CDebugLogBase::EDummyConnectionId+1; |
57 CArrayFixFlat<CWsClient::TWsCursorArrayItem>* CWsClient::iSystemPointerCursors = NULL; |
56 CArrayFixFlat<CWsClient::TWsCursorArrayItem>* CWsClient::iSystemPointerCursors = NULL; |
58 TInt CWsClient::iDefaultSystemPointerCursorIndex = 0; //Negative when there isn't one |
57 TInt CWsClient::iDefaultSystemPointerCursorIndex = 0; //Negative when there isn't one |
59 CWsPointerCursor* CWsClient::iDefaultSystemPointerCursor; |
58 CWsPointerCursor* CWsClient::iDefaultSystemPointerCursor; |
567 if (err<KErrNone) |
566 if (err<KErrNone) |
568 SetReply(err); |
567 SetReply(err); |
569 |
568 |
570 if (iInternalFlags&(EFinishedProcessingCommands|EPanicClientAsSoonAsPossible)) |
569 if (iInternalFlags&(EFinishedProcessingCommands|EPanicClientAsSoonAsPossible)) |
571 CompleteMessage(iClientMessage,iReply); // (finish) |
570 CompleteMessage(iClientMessage,iReply); // (finish) |
572 else |
|
573 iMoreCommands->Start(TCallBack(CWsClient::DoContinueDeferredServiceOfCommandBuf,this)); // (call #3.1.1) |
|
574 |
571 |
575 iCurrentClient=NULL; |
572 iCurrentClient=NULL; |
576 #if defined(_DEBUG) |
573 #if defined(_DEBUG) |
577 User::Heap().Check(); |
574 User::Heap().Check(); |
578 #endif |
575 #endif |
579 } |
576 } |
580 |
|
581 TInt CWsClient::DoContinueDeferredServiceOfCommandBuf(TAny* aClient) // (step #3.1.1) |
|
582 { |
|
583 static_cast<CWsClient*>(aClient)->DoServiceCommandBuf(); // (call #3.1) |
|
584 return KErrNone; |
|
585 } |
|
586 |
|
587 |
577 |
588 void CWsClient::ExecuteAsyncClientCommandL(TInt aOpcode, const RMessage2& aMessage) // (step #3.2) |
578 void CWsClient::ExecuteAsyncClientCommandL(TInt aOpcode, const RMessage2& aMessage) // (step #3.2) |
589 { |
579 { |
590 switch(aOpcode) |
580 switch(aOpcode) |
591 { |
581 { |
1990 iClientMessage.ReadL(KRemoteBufferMessageSlot,aDes,aOffset); |
1980 iClientMessage.ReadL(KRemoteBufferMessageSlot,aDes,aOffset); |
1991 } |
1981 } |
1992 |
1982 |
1993 void CWsClient::InitStaticsL() |
1983 void CWsClient::InitStaticsL() |
1994 { |
1984 { |
1995 iMoreCommands=CIdle::NewL(EClientBufferPriority); |
|
1996 } |
1985 } |
1997 |
1986 |
1998 void CWsClient::DeleteStatics() |
1987 void CWsClient::DeleteStatics() |
1999 { |
1988 { |
2000 if (iTextCursorArray) |
1989 if (iTextCursorArray) |
2005 |
1994 |
2006 delete iTextCursorArray; |
1995 delete iTextCursorArray; |
2007 iTextCursorArray = NULL; |
1996 iTextCursorArray = NULL; |
2008 } |
1997 } |
2009 |
1998 |
2010 delete iMoreCommands; |
|
2011 iMoreCommands=NULL; |
|
2012 // coverity[extend_simple_error] |
1999 // coverity[extend_simple_error] |
2013 } |
2000 } |
2014 |
2001 |
2015 /* CWsClient implementing MWsClient */ |
2002 /* CWsClient implementing MWsClient */ |
2016 |
2003 |