116 // -------------------------------------------------------------------------- |
116 // -------------------------------------------------------------------------- |
117 // |
117 // |
118 void CWsfRefreshScanActiveWrapper::RunL() |
118 void CWsfRefreshScanActiveWrapper::RunL() |
119 { |
119 { |
120 LOG_ENTERFN( "CWsfRefreshScanActiveWrapper::RunL" ); |
120 LOG_ENTERFN( "CWsfRefreshScanActiveWrapper::RunL" ); |
121 if (iState == EUninitialized) |
121 if (iStatus == KErrNone) |
122 { |
122 { |
123 LOG_WRITE( "request scan" ); |
123 if (iState == EUninitialized) |
124 iModel->RefreshScan( iPckg, iStatus ); |
124 { |
125 iState = EInitialized; |
125 LOG_WRITE( "request scan" ); |
126 SetActive(); // Tell scheduler a request is active |
126 iModel->RefreshScan( iPckg, iStatus ); |
127 } |
127 iState = EInitialized; |
128 else if (iState == EInitialized ) |
128 SetActive(); // Tell scheduler a request is active |
129 { |
129 } |
130 LOG_WRITEF( "request result = %d", iPckg() ); |
130 else if (iState == EInitialized ) |
131 iModel->SetRefreshState( iPckg() ); |
131 { |
132 } |
132 LOG_WRITEF( "request result = %d", iPckg() ); |
|
133 iModel->SetRefreshState( iPckg() ); |
|
134 } |
|
135 else |
|
136 { |
|
137 LOG_WRITEF( "iState = %d", iState ); |
|
138 } |
|
139 } |
133 else |
140 else |
134 { |
141 { |
135 LOG_WRITEF( "iState = %d", iState ); |
142 LOG_WRITEF( "RefreshScanActiveWrapper iStatus = %d", iStatus.Int() ); |
136 } |
143 } |
137 } |
144 } |
138 |
145 |
139 |
146 |
140 // -------------------------------------------------------------------------- |
147 // -------------------------------------------------------------------------- |