equal
deleted
inserted
replaced
134 |
134 |
135 void CCMGDCommandHandler::RunL() |
135 void CCMGDCommandHandler::RunL() |
136 { |
136 { |
137 TRACE_FUNC_ENTRY |
137 TRACE_FUNC_ENTRY |
138 |
138 |
|
139 Trace(_L("Error = %d"), iStatus.Int()); |
|
140 Trace(_L("State = %d"), iHandlerState); |
|
141 |
139 iReply.Zero(); |
142 iReply.Zero(); |
140 |
143 |
141 TInt err = iStatus.Int(); |
144 TInt err = iStatus.Int(); |
142 if(err == KErrNone) |
145 if(err == KErrNone) |
143 { |
146 { |
191 case ECMGDStateRetrieveAllIndices: |
194 case ECMGDStateRetrieveAllIndices: |
192 { |
195 { |
193 iHandlerState = ECMGDStateIdle; |
196 iHandlerState = ECMGDStateIdle; |
194 iReply.Format(KCMGDSupportedCmdsList, &KNullDesC8); |
197 iReply.Format(KCMGDSupportedCmdsList, &KNullDesC8); |
195 iCallback->CreateReplyAndComplete(EReplyTypeOk, iReply); |
198 iCallback->CreateReplyAndComplete(EReplyTypeOk, iReply); |
|
199 break; |
|
200 } |
|
201 case ECMGDStateDeleteFilteredEntries: |
|
202 { |
|
203 iMobileSmsStore.DeleteAll(iStatus); |
|
204 iHandlerState = ECMGDStateDeleteAllEntries; |
|
205 SetActive(); |
196 break; |
206 break; |
197 } |
207 } |
198 default: |
208 default: |
199 iHandlerState = ECMGDStateIdle; |
209 iHandlerState = ECMGDStateIdle; |
200 iCallback->CreateCMSReplyAndComplete(err); |
210 iCallback->CreateCMSReplyAndComplete(err); |