equal
deleted
inserted
replaced
64 SetActive(); |
64 SetActive(); |
65 } |
65 } |
66 |
66 |
67 void CCoeRedrawer::RunL() |
67 void CCoeRedrawer::RunL() |
68 { |
68 { |
69 User::LeaveIfError( iStatus.Int() ); |
|
70 |
|
71 TWsRedrawEvent redraw; |
69 TWsRedrawEvent redraw; |
72 iWsSession.GetRedraw(redraw); |
70 iWsSession.GetRedraw(redraw); |
73 const TUint handle = redraw.Handle(); |
71 const TUint handle = redraw.Handle(); |
74 __ASSERT_ALWAYS(IsHandleValid(handle), Panic(ECoePanicInvalidHandle)); |
72 __ASSERT_ALWAYS(IsHandleValid(handle), Panic(ECoePanicInvalidHandle)); |
75 CCoeControl* window=REINTERPRET_CAST(CCoeControl*,handle); |
73 CCoeControl* window=REINTERPRET_CAST(CCoeControl*,handle); |
104 |
102 |
105 void CCoeRedrawer::DoCancel() |
103 void CCoeRedrawer::DoCancel() |
106 { |
104 { |
107 iWsSession.RedrawReadyCancel(); |
105 iWsSession.RedrawReadyCancel(); |
108 } |
106 } |
109 |
|
110 /** |
|
111 Log the error (debug builds) before panicking. |
|
112 The panic code is consistent with that in CCoeEnv::RunL(). |
|
113 */ |
|
114 TInt CCoeRedrawer::RunError( TInt aError ) |
|
115 { |
|
116 #ifdef _DEBUG |
|
117 RDebug::Print( _L("CCoeRedrawer's iStatus = %d"), iStatus.Int() ); |
|
118 #endif |
|
119 |
|
120 Panic( ECoePanicWservBlindCommandFailed ); |
|
121 aError = KErrNone; |
|
122 |
|
123 return aError; |
|
124 } |
|
125 |
|
126 |
|