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 |
69 TWsRedrawEvent redraw; |
71 TWsRedrawEvent redraw; |
70 iWsSession.GetRedraw(redraw); |
72 iWsSession.GetRedraw(redraw); |
71 const TUint handle = redraw.Handle(); |
73 const TUint handle = redraw.Handle(); |
72 __ASSERT_ALWAYS(IsHandleValid(handle), Panic(ECoePanicInvalidHandle)); |
74 __ASSERT_ALWAYS(IsHandleValid(handle), Panic(ECoePanicInvalidHandle)); |
73 CCoeControl* window=REINTERPRET_CAST(CCoeControl*,handle); |
75 CCoeControl* window=REINTERPRET_CAST(CCoeControl*,handle); |
102 |
104 |
103 void CCoeRedrawer::DoCancel() |
105 void CCoeRedrawer::DoCancel() |
104 { |
106 { |
105 iWsSession.RedrawReadyCancel(); |
107 iWsSession.RedrawReadyCancel(); |
106 } |
108 } |
|
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 |