equal
deleted
inserted
replaced
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
21 #include <msvsysagentaction.h> |
21 #include <msvsysagentaction.h> |
22 #include <txtrich.h> |
22 #include <txtrich.h> |
23 #include <logsmspdudata.h> |
23 #include <logsmspdudata.h> |
24 #include <smsulog.h> |
24 #include <smsulog.h> |
25 #include <logwraplimits.h> |
25 #include <logwraplimits.h> |
|
26 #include <exterror.h> |
26 |
27 |
27 #include "SMSSendSession.h" |
28 #include "SMSSendSession.h" |
28 #include "SMSSPAN.H" |
29 #include "SMSSPAN.H" |
29 |
30 |
30 CSmsOutboxSend* CSmsOutboxSend::NewL(CMsvServerEntry& aServerEntry, CMsvScheduleSend& aScheduleSend, RFs& aFs) |
31 CSmsOutboxSend* CSmsOutboxSend::NewL(CMsvServerEntry& aServerEntry, CMsvScheduleSend& aScheduleSend, RFs& aFs) |
208 #endif |
209 #endif |
209 case ESmsOutboxSendStateSending: |
210 case ESmsOutboxSendStateSending: |
210 { |
211 { |
211 if (iCurrentMessage) |
212 if (iCurrentMessage) |
212 { |
213 { |
213 ReScheduleFailedMessageL(); |
214 if( (iProgress.iError == KErrGsmSMSShortMessageTransferRejected) || (iProgress.iError == KErrGsmSMSInvalidMandatoryInformation) || (iProgress.iError == KErrGsmSMSUnidentifiedSubscriber) || |
|
215 (iProgress.iError == KErrGsmSMSUnknownSubscriber) || (iProgress.iError == KErrGsmSMSNetworkOutOfOrder) ) |
|
216 { |
|
217 DoComplete(iProgress.iError); |
|
218 } |
|
219 else |
|
220 { |
|
221 ReScheduleFailedMessageL(); |
|
222 } |
214 } |
223 } |
215 else |
224 else |
216 { |
225 { |
217 __ASSERT_DEBUG(iProgress.iError == KErrNotFound, Panic(KSmssPanicUnexpectedErrorCode)); |
226 __ASSERT_DEBUG(iProgress.iError == KErrNotFound, Panic(KSmssPanicUnexpectedErrorCode)); |
218 } |
227 } |