|
1 // Copyright (c) 1998-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 // string constants for IMCV |
|
15 // These are needed to prevent the 'Initialised data' problem in ARM builds |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @internalTechnology |
|
21 @released |
|
22 */ |
|
23 |
|
24 #if !defined (__IMCVTEXT_H__) |
|
25 #define __IMCVTEXT_H__ |
|
26 |
|
27 // The strings in this file MUST NOT BE translated.... |
|
28 |
|
29 const TInt KMaxPriorityTextLength = 18; // "*special-delivery*" = 18 chars |
|
30 const TInt KImcvDateStringLength = 32; |
|
31 |
|
32 //priorities |
|
33 const TInt KPriorityHigh =1; |
|
34 const TInt KPriorityNormal =3; |
|
35 const TInt KPriorityLow =5; |
|
36 |
|
37 //Includes length of charset name ISO_8859-1 |
|
38 const TInt KMinimumEncodedChars = 15; |
|
39 |
|
40 const TInt KMaxExtensionLength = 5; |
|
41 |
|
42 //---------------------------------------------------------------------------------------- |
|
43 // General tokens |
|
44 _LIT8(KImcvEpoc32, "EPOC32"); |
|
45 _LIT(KImcvIMCV, "IMCV"); |
|
46 _LIT8(KImcvSpace, " "); |
|
47 _LIT8(KImcvCommaSpace, ", "); |
|
48 _LIT8(KImcvForwardSlash, "/"); |
|
49 _LIT8(KImcvCRLF, "\r\n"); |
|
50 _LIT16(KImcvCRLF16, "\r\n"); |
|
51 _LIT8(KImcvStuffedDot, "\r\n."); |
|
52 _LIT(KImcvDateFormat, " %S, %2d %S %04d %02d:%02d:%02d "); |
|
53 _LIT(KImcvMonthNames, "JanFebMarAprMayJunJulAugSepOctNovDec"); |
|
54 _LIT(KImcvDayNames, "MonTueWedThuFriSatSun"); |
|
55 _LIT8(KImcvUnknown, "unknown"); |
|
56 _LIT(KImcvTimeZoneNeg, "-%02d%02d"); |
|
57 _LIT(KImcvTimeZonePos, "+%02d%02d"); |
|
58 _LIT(KImcvEmbeddedEmailFilenameExtension, ".eml"); |
|
59 _LIT(KImcvEmbeddedEmailDefaultFilename, "AttachedEmail"); |
|
60 //---------------------------------------------------------------------------------------- |
|
61 // Message header tokens |
|
62 _LIT8(KImcvFromPrompt, "From:"); |
|
63 _LIT8(KImcvReplyToPrompt, "Reply-to:"); |
|
64 _LIT8(KImcvToPrompt, "To:"); |
|
65 _LIT8(KImcvCcPrompt, "Cc:"); |
|
66 _LIT8(KImcvBccPrompt, "Bcc:"); |
|
67 _LIT8(KImcvSubjectPrompt, "Subject:"); |
|
68 _LIT8(KImcvDatePrompt, "Date:"); |
|
69 _LIT8(KImcvReceivedPrompt, "Received:"); |
|
70 _LIT8(KImcvMessageIdPrompt, "Message-ID:"); |
|
71 _LIT8(KImcvXMailer, "X-Mailer: "); |
|
72 |
|
73 _LIT8(KImcvPriorityPrompt, "Priority:"); |
|
74 _LIT8(KImcvXPriorityPrompt, "X-Priority:"); |
|
75 _LIT8(KImcvXMSMailPriorityPrompt, "X-MSMail-Priority:"); |
|
76 _LIT8(KImcvImportancePrompt, "Importance:"); |
|
77 |
|
78 _LIT8(KImportanceLow, "*low*"); |
|
79 _LIT8(KImportanceLowest, "*Lowest*"); |
|
80 _LIT8(KImportanceNormal, "*normal*"); |
|
81 _LIT8(KImportanceHigh, "*high*"); |
|
82 _LIT8(KImportanceHighest, "*Highest*"); |
|
83 |
|
84 _LIT8(KImPriorityUrgent, "*urgent*"); |
|
85 _LIT8(KImPriorityNormal, "*normal*"); |
|
86 _LIT8(KImPriorityNonUrgent, "*non-urgent*"); |
|
87 |
|
88 _LIT8(KImPrioritySendHigh, "1 (Highest)"); |
|
89 _LIT8(KImPrioritySendNormal, "3 (Normal)"); |
|
90 _LIT8(KImPrioritySendLow, "5 (Lowest)"); |
|
91 |
|
92 _LIT8(KImImportanceSendHigh, "high"); |
|
93 _LIT8(KImImportanceSendNormal, "normal"); |
|
94 _LIT8(KImImportanceSendLow, "low"); |
|
95 |
|
96 _LIT8(KImcvReturnReceiptToPrompt, "Return-Receipt-To:"); |
|
97 _LIT8(KImcvReturnXReceiptToPrompt, "X-Return-Receipt-To:"); |
|
98 _LIT8(KImcvMsgDispositionTo, "Disposition-Notification-To:"); |
|
99 _LIT8(KImcvMsgDispositionOptions, "Disposition-Notification-Options:"); |
|
100 |
|
101 //---------------------------------------------------------------------------------------- |
|
102 // MIME header tokens |
|
103 _LIT8(KImcvSpMimeVersion, " 1.0"); |
|
104 _LIT8(KImcvMimeVersion, "1.0"); |
|
105 _LIT8(KImcvTextPlain, " text/plain"); |
|
106 _LIT8(KImcvMultipartMixed, " multipart/mixed"); |
|
107 _LIT8(KImcvTextDirectory, " text/directory"); |
|
108 _LIT8(KImcvQuotedPrintable, " quoted-printable"); |
|
109 _LIT8(KImcvApplOctet, " application/octet-stream"); |
|
110 _LIT8(KImcvExe, "exe"); |
|
111 _LIT8(KImcvCmd, "cmd"); |
|
112 _LIT8(KImcv7Bit, " 7bit"); |
|
113 _LIT8(KImcvBase64, " base64"); |
|
114 _LIT8(KImcvMime, "MIME*"); |
|
115 _LIT8(KImcvContent, "Content*"); |
|
116 _LIT8(KImcvMimeBoundaryStartEnd, "--"); |
|
117 |
|
118 _LIT8(KImcvMimePrompt, "MIME-Version:"); |
|
119 _LIT8(KImcvContentType, "Content-Type:"); |
|
120 _LIT8(KImcvContentTransferEncoding, "Content-Transfer-Encoding:"); |
|
121 _LIT8(KImcvContentDisposition, "Content-Disposition:"); |
|
122 _LIT8(KImcvContentDescription, "Content-Description:"); |
|
123 _LIT8(KImcvContentLocation, "Content-Location:"); |
|
124 _LIT8(KImcvContentId, "Content-Id:"); |
|
125 _LIT8(KImcvContentBase, "Content-Base:"); |
|
126 _LIT8(KImcvContentLanguage, "Content-Language:"); |
|
127 _LIT8(KImcvDefaultLanguage, " i-default"); |
|
128 |
|
129 // MIME Parameter names |
|
130 _LIT8(KImcvMimeDispositionFilename, "filename"); |
|
131 _LIT8(KImcvMimeTypeName, "name"); |
|
132 _LIT8(KImcvBoundary, "boundary"); |
|
133 _LIT8(KImcvCharset, "charset"); |
|
134 _LIT8(KImcvStartPart, "start"); |
|
135 // Content-Disposition: types |
|
136 _LIT8(KImcvInline, "inline"); |
|
137 _LIT8(KImcvAttachment, "attachment"); |
|
138 // Content-Type: types |
|
139 _LIT8(KImcvMultipart, "multipart"); |
|
140 _LIT8(KImcvText, "text"); |
|
141 _LIT8(KImcvImage, "image"); |
|
142 _LIT8(KImcvAudio, "audio"); |
|
143 _LIT8(KImcvVideo, "video"); |
|
144 _LIT8(KImcvApplication, "application"); |
|
145 _LIT8(KImcvOctetStream, "octet-stream"); |
|
146 _LIT8(KImcvMessage, "message"); |
|
147 // Content-Type: Multipart types |
|
148 _LIT8(KImcvMixed, "mixed"); |
|
149 _LIT8(KImcvRelated, "related"); |
|
150 _LIT8(KImcvAlternative, "alternative"); |
|
151 _LIT8(KImcvEncrypted, "encrypted"); |
|
152 _LIT8(KImcvParallel, "parallel"); |
|
153 _LIT8(KImcvDigest, "digest"); |
|
154 _LIT8(KImcvSigned, "signed"); |
|
155 _LIT8(KImcvReport, "report"); |
|
156 |
|
157 // Content-Type: Text types |
|
158 _LIT8(KImcvHtml, "html"); |
|
159 _LIT8(KImcvPlain, "plain"); |
|
160 _LIT8(KImcvDirectory, "directory"); |
|
161 _LIT8(KImcvRtf, "rtf"); |
|
162 |
|
163 // Content-Type: Message types |
|
164 _LIT8(KImcvPartial, "partial"); |
|
165 _LIT8(KImcvExternal, "external-body"); |
|
166 _LIT8(KImcvDeliveryStatus, "delivery-status"); |
|
167 _LIT8(KImcvRfc822, "rfc822"); |
|
168 |
|
169 // Content-Type: Directory types |
|
170 _LIT8(KImcvProfile, "profile"); |
|
171 _LIT8(KImcvVCard, "vcard"); |
|
172 _LIT8(KImcvXVCard, "x-vcard"); |
|
173 _LIT8(KImcvVCalender, "x-vcalendar"); |
|
174 _LIT8(KImcvICalendar, "calendar"); |
|
175 _LIT8(KImcvICalendarMethod, "method"); |
|
176 _LIT8(KImcvICalendarComponent, "component"); |
|
177 |
|
178 // Content-Type: Image, Audio, Video, Application types |
|
179 _LIT8(KImcvBmp, "bmp"); |
|
180 _LIT8(KImcvGif, "gif"); |
|
181 _LIT8(KImcvJpeg, "jpeg"); |
|
182 _LIT8(KImcvTiff, "tiff"); |
|
183 _LIT8(KImcvWav, "wav"); |
|
184 _LIT8(KImcvZip, "x-gzip"); |
|
185 //---------------------------------------------------------------------------------------- |
|
186 // UU Encoding tokens |
|
187 _LIT8(KImcvUueStart, "begin "); |
|
188 _LIT8(KImcvUue644, "644"); |
|
189 _LIT8(KImcvUueEnd, "end\r\n"); |
|
190 _LIT8(KImcvUueLastLine, "`\r\n"); |
|
191 |
|
192 _LIT8(KImcvXUUString, "X-UUENCODE"); |
|
193 //---------------------------------------------------------------------------------------- |
|
194 // QP Encoding tokens |
|
195 _LIT8(KImcvPlainRichText, " "); |
|
196 _LIT8(KImcvEndOfLine, "=\r\n"); |
|
197 _LIT8(KImcvQPFormatString, "=%02X\r\n"); |
|
198 _LIT8(KImcvQPEqualsSign, "=3D"); |
|
199 _LIT8(KImcvQPEncoded, "=%02X"); |
|
200 _LIT8(KImcvParagraph, "\006"); |
|
201 _LIT8(KImcvCharacterFormat, "%c"); |
|
202 |
|
203 _LIT8(KImcvEncodeCharacterList, "?"); |
|
204 _LIT8(KImcvEncodedWordStart, "=?"); |
|
205 _LIT8(KImcvEncodedWordEnd, "?="); |
|
206 _LIT8(KImcvQuestionMarkString, "?"); |
|
207 _LIT8(KImcvB, "B"); |
|
208 _LIT8(KImcvQ, "Q"); |
|
209 |
|
210 _LIT8(KWildChars, "**"); |
|
211 _LIT8(KBasicAsciiChars,"'+,-_bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ0123456789"); |
|
212 _LIT8(KValidCharacters, "bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ0123456789"); |
|
213 |
|
214 _LIT8(KPrintChar, "%c"); |
|
215 _LIT8(KPrintString, "%S"); |
|
216 |
|
217 // Filename Extensions |
|
218 _LIT(KTextExtension, ".txt"); |
|
219 _LIT(KHtmlExtension, ".html"); |
|
220 _LIT(KVCardExtension, ".vcf"); |
|
221 _LIT(KVCalExtension, ".vcs"); |
|
222 _LIT(KICalExtension, ".ics"); |
|
223 _LIT(KRtfExtension, ".rtf"); |
|
224 |
|
225 // Used in CImSendMimeHeaderBase::AppendFilenameL |
|
226 _LIT8(KImcvEqualsQuote, "=\""); |
|
227 _LIT8(KImcvQuoteString, "\""); |
|
228 |
|
229 _LIT(KImcvMimeText, "This is a MIME Message"); |
|
230 |
|
231 |
|
232 // UIDS |
|
233 const TUint8 KImcvSpaceChar = ' '; |
|
234 const TUint8 KImcvCR = '\r'; |
|
235 const TUint8 KImcvLF = '\n'; |
|
236 const TUint8 KImcvSP = ' '; |
|
237 const TUint8 KImcvTab = '\t'; |
|
238 const TUint8 KImcvAny = '*'; |
|
239 const TUint8 KImcvEquals = '='; |
|
240 const TUint8 KImcvHyphen = '-'; |
|
241 const TUint8 KImcvUnderScore = '_'; |
|
242 const TUint8 KImcvLeftBracket = '('; |
|
243 const TUint8 KImcvRightBracket = ')'; |
|
244 const TUint8 KImcvLeftChevron = '<'; |
|
245 const TUint8 KImcvRightChevron = '>'; |
|
246 const TUint8 KImcvDoubleQuote = '\"'; |
|
247 const TUint8 KImcvDefaultChar = '_'; // inserted into filename in place of illegal EPOC32 filename char |
|
248 const TUint8 KImcvComma = ','; |
|
249 const TUint8 KImcvSemiColon = ';'; |
|
250 const TUint8 KImcvColon = ':'; |
|
251 const TUint8 KImcvPlus = '+'; |
|
252 const TUint8 KImcvBackSlash = '\\'; |
|
253 const TUint8 KImcvQuote = '"'; |
|
254 const TUint8 KImcvSingleQuote = '\''; |
|
255 const TUint8 KImcvInvertedComma = '`'; |
|
256 const TUint8 KImcvTilde = '~'; |
|
257 const TUint8 KImcvQuestionMark = '?'; |
|
258 const TUint8 KImcvAt ='@'; |
|
259 const TUint8 KImcvFullStop ='.'; |
|
260 const TUint8 KImcvPercentSign = '%'; |
|
261 const TUint8 KImcvExclamation = '!'; |
|
262 const TUint8 KImcvESC = 0x1B; |
|
263 |
|
264 // Special characters previously defined in EText |
|
265 enum { |
|
266 ETextParagraphDelimiter=0x10, |
|
267 }; |
|
268 |
|
269 |
|
270 #endif |