|
80
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
2 |
// All rights reserved.
|
|
|
3 |
// This component and the accompanying materials are made available
|
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
|
5 |
// which accompanies this distribution, and is available
|
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
|
7 |
//
|
|
|
8 |
// Initial Contributors:
|
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
|
10 |
//
|
|
|
11 |
// Contributors:
|
|
|
12 |
//
|
|
|
13 |
// Description:
|
|
|
14 |
//
|
|
|
15 |
|
|
|
16 |
#include "smss.rls"
|
|
|
17 |
#include <schsend.rh>
|
|
|
18 |
#include <badef.rh>
|
|
|
19 |
#include "smss.hrh"
|
|
|
20 |
|
|
|
21 |
RESOURCE LBUF r_addressee_telephone_open {txt = STRING_r_addressee_telephone_open1;} //max 1 char
|
|
|
22 |
RESOURCE LBUF r_addressee_telephone_close {txt = STRING_r_addressee_telephone_close1;} //max 1 char
|
|
|
23 |
RESOURCE LBUF r_sender_name_format {txt = SMS_GIVEN_NAME" "SMS_FAMILY_NAME;}
|
|
|
24 |
RESOURCE LBUF r_type_status_report {txt = STRING_r_type_status_report1;}
|
|
|
25 |
|
|
|
26 |
//Special Message Indication
|
|
|
27 |
|
|
|
28 |
RESOURCE LBUF r_message_indication_voicemail_one {txt = STRING_r_message_indication_voicemail_one1;} //max 32 chars
|
|
|
29 |
RESOURCE LBUF r_message_indication_voicemail_many {txt = STRING_r_message_indication_voicemail_many1;} //max 32 chars
|
|
|
30 |
|
|
|
31 |
RESOURCE LBUF r_message_indication_email_one {txt = STRING_r_message_indication_email_one1;} //max 32 chars
|
|
|
32 |
RESOURCE LBUF r_message_indication_email_many {txt = STRING_r_message_indication_email_many1;} //max 32 chars
|
|
|
33 |
|
|
|
34 |
RESOURCE LBUF r_message_indication_fax_one {txt = STRING_r_message_indication_fax_one1;} //max 32 chars
|
|
|
35 |
RESOURCE LBUF r_message_indication_fax_many {txt = STRING_r_message_indication_fax_many1;} //max 32 chars
|
|
|
36 |
|
|
|
37 |
RESOURCE LBUF r_message_indication_other_one {txt = STRING_r_message_indication_other_one1;} //max 32 chars
|
|
|
38 |
RESOURCE LBUF r_message_indication_other_many {txt = STRING_r_message_indication_other_many1;} //max 32 chars
|
|
|
39 |
|
|
|
40 |
RESOURCE SEND_ERROR_ACTIONS error_actions
|
|
|
41 |
{
|
|
|
42 |
default =
|
|
|
43 |
{
|
|
|
44 |
SEND_ERROR_ACTION
|
|
|
45 |
{
|
|
|
46 |
flags = KActionRetryLater + KRetriesFixed + KRetrySpacingStatic;
|
|
|
47 |
max_retries = 3;
|
|
|
48 |
errors =
|
|
|
49 |
{
|
|
|
50 |
SEND_ERROR {error = 0;}
|
|
|
51 |
};
|
|
|
52 |
}
|
|
|
53 |
};
|
|
|
54 |
actions =
|
|
|
55 |
{
|
|
|
56 |
SEND_ERROR_ACTION
|
|
|
57 |
{
|
|
|
58 |
flags = KActionFail;
|
|
|
59 |
errors =
|
|
|
60 |
{
|
|
|
61 |
//General Errors
|
|
|
62 |
SEND_ERROR { error = -5; }, // KErrNotSupported
|
|
|
63 |
SEND_ERROR { error = -3; }, // KErrCancel
|
|
|
64 |
|
|
|
65 |
//SMS Errors
|
|
|
66 |
SEND_ERROR { error = -4814; }, // KErrGsmSMSOperationNotAllowed
|
|
|
67 |
SEND_ERROR { error = -5252; }, // KPKIErrKeyStoreEmpty
|
|
|
68 |
SEND_ERROR { error = -4533; }, // KErrGsmSMSShortMessageTransferRejected
|
|
|
69 |
SEND_ERROR { error = -4540; }, // KErrGsmSMSUnidentifiedSubscriber
|
|
|
70 |
SEND_ERROR { error = -4542; }, // KErrGsmSMSUnknownSubscriber
|
|
|
71 |
SEND_ERROR { error = -4550; }, // KErrGsmSMSNetworkOutOfOrder
|
|
|
72 |
SEND_ERROR { error = -4608; } // KErrGsmSMSInvalidMandatoryInformation
|
|
|
73 |
};
|
|
|
74 |
},
|
|
|
75 |
SEND_ERROR_ACTION
|
|
|
76 |
{
|
|
|
77 |
flags = KActionRetryLater + KRetriesInfinite + KRetrySpacingStatic;
|
|
|
78 |
errors =
|
|
|
79 |
{
|
|
|
80 |
//General Errors
|
|
|
81 |
SEND_ERROR { error = -4; }, // KErrNoMemory
|
|
|
82 |
SEND_ERROR { error = -26; }, // KErrDiskFull
|
|
|
83 |
SEND_ERROR { error = -42; }, // KErrBadPower
|
|
|
84 |
|
|
|
85 |
//SMS Errors
|
|
|
86 |
SEND_ERROR { error = -4529; }, // KErrGsmSMSNetworkFailure
|
|
|
87 |
SEND_ERROR { error = -4553; }, // KerrGsmSMSTemporaryFailure
|
|
|
88 |
SEND_ERROR { error = -4554; }, // KerrGsmSMSCongestion
|
|
|
89 |
SEND_ERROR { error = -4559; } // KerrGsmSMSResourcesUnavailable
|
|
|
90 |
};
|
|
|
91 |
},
|
|
|
92 |
|
|
|
93 |
// As per GSM 03.40 specs, its temporary Congestion error, so its better to retry later
|
|
|
94 |
// because retry immediatly will seldom brings success.
|
|
|
95 |
SEND_ERROR_ACTION
|
|
|
96 |
{
|
|
|
97 |
flags = KActionRetryLater + KRetriesFixed + KRetrySpacingStatic;
|
|
|
98 |
max_retries = 3;
|
|
|
99 |
errors =
|
|
|
100 |
{
|
|
|
101 |
//General Errors
|
|
|
102 |
SEND_ERROR { error = -14; }, // KErrInUse
|
|
|
103 |
SEND_ERROR { error = -18; }, // KErrNotReady
|
|
|
104 |
|
|
|
105 |
//Messaging Errors
|
|
|
106 |
SEND_ERROR { error = -7000; }, // KMsvMediaUnavailable
|
|
|
107 |
|
|
|
108 |
//Socket Errors
|
|
|
109 |
SEND_ERROR { error = -190; }, // KErrNetUnreach
|
|
|
110 |
|
|
|
111 |
//SMS Errors
|
|
|
112 |
SEND_ERROR { error = -4534; }, // KerrGsmSMSMemoryCapacityExceeded
|
|
|
113 |
SEND_ERROR { error = -4539; }, // KerrGsmSMSDestinationOutOfOrder
|
|
|
114 |
SEND_ERROR { error = -4607; }, // KErrGsmSMSUnspecifiedInvalidMessage
|
|
|
115 |
SEND_ERROR { error = -4623; }, // KErrGsmSMSUnspecifiedProtocolError
|
|
|
116 |
SEND_ERROR { error = -4642; }, // KerrGsmSMSCannotReplaceShortMessage
|
|
|
117 |
SEND_ERROR { error = -4655; }, // KerrGsmSMSUnspecifiedPIDError
|
|
|
118 |
SEND_ERROR { error = -4671; }, // KerrGsmSMSUnspecifiedDCSError
|
|
|
119 |
SEND_ERROR { error = -4687; }, // KerrGsmSMSUnspecifiedCommandError
|
|
|
120 |
SEND_ERROR { error = -4704; }, // KerrGsmSMSServiceCentreBusy
|
|
|
121 |
SEND_ERROR { error = -4706; }, // KerrGsmSMSSCSystemFailure
|
|
|
122 |
SEND_ERROR { error = -4707; }, // KerrGsmSMSInvalidSMEAddress
|
|
|
123 |
SEND_ERROR { error = -4767; }, // KerrGsmSMSUnspecifiedErrorCause
|
|
|
124 |
SEND_ERROR { error = -4813; }, // KerrGsmSMSServiceOfMSReserved
|
|
|
125 |
SEND_ERROR { error = -4832; }, // KErrGsmSMSMemoryFailure
|
|
|
126 |
SEND_ERROR { error = -4833; }, // KErrGsmSMSInvalidMemoryIndex
|
|
|
127 |
SEND_ERROR { error = -4834; }, // KErrGsmSMSMemoryFull
|
|
|
128 |
SEND_ERROR { error = -4844; }, // KErrGsmSMSNetworkTimeout
|
|
|
129 |
SEND_ERROR { error = -4852; }, // KErrGsmSMSCnmaAckNotExpected
|
|
|
130 |
SEND_ERROR { error = -5012; } // KerrGsmSMSUnknownError
|
|
|
131 |
};
|
|
|
132 |
},
|
|
|
133 |
SEND_ERROR_ACTION
|
|
|
134 |
{
|
|
|
135 |
flags = KActionRetryImmediately + KRetriesFixed + KRetrySpacingStatic;
|
|
|
136 |
max_retries = 3;
|
|
|
137 |
errors =
|
|
|
138 |
{
|
|
|
139 |
//General Errors
|
|
|
140 |
SEND_ERROR { error = -15; }, // KErrServerTerminated
|
|
|
141 |
SEND_ERROR { error = -29; }, // KErrCommsLineFail
|
|
|
142 |
SEND_ERROR { error = -30; }, // KErrCommsFrame
|
|
|
143 |
SEND_ERROR { error = -31; }, // KErrCommsOverrun
|
|
|
144 |
SEND_ERROR { error = -32; }, // KErrCommsParity
|
|
|
145 |
SEND_ERROR { error = -33; }, // KErrTimedOut
|
|
|
146 |
|
|
|
147 |
//ETel Errors
|
|
|
148 |
SEND_ERROR { error = -2017; }, // KErrEtelModemNotDetected
|
|
|
149 |
|
|
|
150 |
//SMS Errors
|
|
|
151 |
SEND_ERROR { error = -4533; } // KerrGsmSMSShortMessageTransferRejected
|
|
|
152 |
};
|
|
|
153 |
}
|
|
|
154 |
};
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
//Email SMS reply/forward format
|
|
|
158 |
RESOURCE LBUF r_sms_email_forward_subject_format {txt = STRING_r_sms_email_forward_subject_format;}
|
|
|
159 |
RESOURCE LBUF r_sms_email_reply_subject_format {txt = STRING_r_sms_email_reply_subject_format;}
|
|
|
160 |
|
|
|
161 |
RESOURCE LBUF r_message_indication_videomessage_one {txt = STRING_r_message_indication_videomessage_one1;} //max 32 chars
|
|
|
162 |
RESOURCE LBUF r_message_indication_videomessage_many {txt = STRING_r_message_indication_videomessage_many1;} //max 32 chars
|
|
|
163 |
|
|
|
164 |
RESOURCE LBUF r_message_indication_enhanced_voicemail_one {txt = STRING_r_message_indication_enhanced_voice_one1;}//max 32 chars
|
|
|
165 |
RESOURCE LBUF r_message_indication_enhanced_voicemail_many {txt = STRING_r_message_indication_enhanced_voice_many1;}//max 32 chars
|