1.1 --- a/epoc32/include/imcvtext.h Wed Mar 31 12:27:01 2010 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,272 +0,0 @@
1.4 -// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -// string constants for IMCV
1.18 -// These are needed to prevent the 'Initialised data' problem in ARM builds
1.19 -//
1.20 -//
1.21 -
1.22 -
1.23 -
1.24 -/**
1.25 - @internalTechnology
1.26 - @released
1.27 -*/
1.28 -
1.29 -#if !defined (__IMCVTEXT_H__)
1.30 -#define __IMCVTEXT_H__
1.31 -
1.32 -// The strings in this file MUST NOT BE translated....
1.33 -
1.34 -const TInt KMaxPriorityTextLength = 18; // "*special-delivery*" = 18 chars
1.35 -const TInt KImcvDateStringLength = 32;
1.36 -
1.37 -//priorities
1.38 -const TInt KPriorityHigh =1;
1.39 -const TInt KPriorityNormal =3;
1.40 -const TInt KPriorityLow =5;
1.41 -
1.42 -//Includes length of charset name ISO_8859-1
1.43 -const TInt KMinimumEncodedChars = 15;
1.44 -
1.45 -const TInt KMaxExtensionLength = 5;
1.46 -
1.47 -//----------------------------------------------------------------------------------------
1.48 -// General tokens
1.49 -_LIT8(KImcvEpoc32, "EPOC32");
1.50 -_LIT(KImcvIMCV, "IMCV");
1.51 -_LIT8(KImcvSpace, " ");
1.52 -_LIT8(KImcvCommaSpace, ", ");
1.53 -_LIT8(KImcvForwardSlash, "/");
1.54 -_LIT8(KImcvCRLF, "\r\n");
1.55 -_LIT16(KImcvCRLF16, "\r\n");
1.56 -_LIT8(KImcvStuffedDot, "\r\n.");
1.57 -_LIT(KImcvDateFormat, " %S, %2d %S %04d %02d:%02d:%02d ");
1.58 -_LIT(KImcvMonthNames, "JanFebMarAprMayJunJulAugSepOctNovDec");
1.59 -_LIT(KImcvDayNames, "MonTueWedThuFriSatSun");
1.60 -_LIT8(KImcvUnknown, "unknown");
1.61 -_LIT(KImcvTimeZoneNeg, "-%02d%02d");
1.62 -_LIT(KImcvTimeZonePos, "+%02d%02d");
1.63 -_LIT(KImcvEmbeddedEmailFilenameExtension, ".eml");
1.64 -_LIT(KImcvEmbeddedEmailDefaultFilename, "AttachedEmail");
1.65 -//----------------------------------------------------------------------------------------
1.66 -// Message header tokens
1.67 -_LIT8(KImcvFromPrompt, "From:");
1.68 -_LIT8(KImcvReplyToPrompt, "Reply-to:");
1.69 -_LIT8(KImcvToPrompt, "To:");
1.70 -_LIT8(KImcvCcPrompt, "Cc:");
1.71 -_LIT8(KImcvBccPrompt, "Bcc:");
1.72 -_LIT8(KImcvSubjectPrompt, "Subject:");
1.73 -_LIT8(KImcvDatePrompt, "Date:");
1.74 -_LIT8(KImcvReceivedPrompt, "Received:");
1.75 -_LIT8(KImcvMessageIdPrompt, "Message-ID:");
1.76 -_LIT8(KImcvXMailer, "X-Mailer: ");
1.77 -
1.78 -_LIT8(KImcvPriorityPrompt, "Priority:");
1.79 -_LIT8(KImcvXPriorityPrompt, "X-Priority:");
1.80 -_LIT8(KImcvXMSMailPriorityPrompt, "X-MSMail-Priority:");
1.81 -_LIT8(KImcvImportancePrompt, "Importance:");
1.82 -
1.83 -_LIT8(KImportanceLow, "*low*");
1.84 -_LIT8(KImportanceLowest, "*Lowest*");
1.85 -_LIT8(KImportanceNormal, "*normal*");
1.86 -_LIT8(KImportanceHigh, "*high*");
1.87 -_LIT8(KImportanceHighest, "*Highest*");
1.88 -
1.89 -_LIT8(KImPriorityUrgent, "*urgent*");
1.90 -_LIT8(KImPriorityNormal, "*normal*");
1.91 -_LIT8(KImPriorityNonUrgent, "*non-urgent*");
1.92 -
1.93 -_LIT8(KImPrioritySendHigh, "1 (Highest)");
1.94 -_LIT8(KImPrioritySendNormal, "3 (Normal)");
1.95 -_LIT8(KImPrioritySendLow, "5 (Lowest)");
1.96 -
1.97 -_LIT8(KImImportanceSendHigh, "high");
1.98 -_LIT8(KImImportanceSendNormal, "normal");
1.99 -_LIT8(KImImportanceSendLow, "low");
1.100 -
1.101 -_LIT8(KImcvReturnReceiptToPrompt, "Return-Receipt-To:");
1.102 -_LIT8(KImcvReturnXReceiptToPrompt, "X-Return-Receipt-To:");
1.103 -_LIT8(KImcvMsgDispositionTo, "Disposition-Notification-To:");
1.104 -_LIT8(KImcvMsgDispositionOptions, "Disposition-Notification-Options:");
1.105 -
1.106 -//----------------------------------------------------------------------------------------
1.107 -// MIME header tokens
1.108 -_LIT8(KImcvSpMimeVersion, " 1.0");
1.109 -_LIT8(KImcvMimeVersion, "1.0");
1.110 -_LIT8(KImcvTextPlain, " text/plain");
1.111 -_LIT8(KImcvMultipartMixed, " multipart/mixed");
1.112 -_LIT8(KImcvTextDirectory, " text/directory");
1.113 -_LIT8(KImcvQuotedPrintable, " quoted-printable");
1.114 -_LIT8(KImcvApplOctet, " application/octet-stream");
1.115 -_LIT8(KImcvExe, "exe");
1.116 -_LIT8(KImcvCmd, "cmd");
1.117 -_LIT8(KImcv7Bit, " 7bit");
1.118 -_LIT8(KImcvBase64, " base64");
1.119 -_LIT8(KImcvMime, "MIME*");
1.120 -_LIT8(KImcvContent, "Content*");
1.121 -_LIT8(KImcvMimeBoundaryStartEnd, "--");
1.122 -
1.123 -_LIT8(KImcvMimePrompt, "MIME-Version:");
1.124 -_LIT8(KImcvContentType, "Content-Type:");
1.125 -_LIT8(KImcvContentTransferEncoding, "Content-Transfer-Encoding:");
1.126 -_LIT8(KImcvContentDisposition, "Content-Disposition:");
1.127 -_LIT8(KImcvContentDescription, "Content-Description:");
1.128 -_LIT8(KImcvContentLocation, "Content-Location:");
1.129 -_LIT8(KImcvContentId, "Content-Id:");
1.130 -_LIT8(KImcvContentBase, "Content-Base:");
1.131 -_LIT8(KImcvContentLanguage, "Content-Language:");
1.132 -_LIT8(KImcvDefaultLanguage, " i-default");
1.133 -
1.134 -// MIME Parameter names
1.135 -_LIT8(KImcvMimeDispositionFilename, "filename");
1.136 -_LIT8(KImcvMimeTypeName, "name");
1.137 -_LIT8(KImcvBoundary, "boundary");
1.138 -_LIT8(KImcvCharset, "charset");
1.139 -_LIT8(KImcvStartPart, "start");
1.140 -// Content-Disposition: types
1.141 -_LIT8(KImcvInline, "inline");
1.142 -_LIT8(KImcvAttachment, "attachment");
1.143 -// Content-Type: types
1.144 -_LIT8(KImcvMultipart, "multipart");
1.145 -_LIT8(KImcvText, "text");
1.146 -_LIT8(KImcvImage, "image");
1.147 -_LIT8(KImcvAudio, "audio");
1.148 -_LIT8(KImcvVideo, "video");
1.149 -_LIT8(KImcvApplication, "application");
1.150 -_LIT8(KImcvOctetStream, "octet-stream");
1.151 -_LIT8(KImcvMessage, "message");
1.152 -// Content-Type: Multipart types
1.153 -_LIT8(KImcvMixed, "mixed");
1.154 -_LIT8(KImcvRelated, "related");
1.155 -_LIT8(KImcvAlternative, "alternative");
1.156 -_LIT8(KImcvEncrypted, "encrypted");
1.157 -_LIT8(KImcvParallel, "parallel");
1.158 -_LIT8(KImcvDigest, "digest");
1.159 -_LIT8(KImcvSigned, "signed");
1.160 -_LIT8(KImcvReport, "report");
1.161 -
1.162 -// Content-Type: Text types
1.163 -_LIT8(KImcvHtml, "html");
1.164 -_LIT8(KImcvPlain, "plain");
1.165 -_LIT8(KImcvDirectory, "directory");
1.166 -_LIT8(KImcvRtf, "rtf");
1.167 -
1.168 -// Content-Type: Message types
1.169 -_LIT8(KImcvPartial, "partial");
1.170 -_LIT8(KImcvExternal, "external-body");
1.171 -_LIT8(KImcvDeliveryStatus, "delivery-status");
1.172 -_LIT8(KImcvRfc822, "rfc822");
1.173 -
1.174 -// Content-Type: Directory types
1.175 -_LIT8(KImcvProfile, "profile");
1.176 -_LIT8(KImcvVCard, "vcard");
1.177 -_LIT8(KImcvXVCard, "x-vcard");
1.178 -_LIT8(KImcvVCalender, "x-vcalendar");
1.179 -_LIT8(KImcvICalendar, "calendar");
1.180 -_LIT8(KImcvICalendarMethod, "method");
1.181 -_LIT8(KImcvICalendarComponent, "component");
1.182 -
1.183 -// Content-Type: Image, Audio, Video, Application types
1.184 -_LIT8(KImcvBmp, "bmp");
1.185 -_LIT8(KImcvGif, "gif");
1.186 -_LIT8(KImcvJpeg, "jpeg");
1.187 -_LIT8(KImcvTiff, "tiff");
1.188 -_LIT8(KImcvWav, "wav");
1.189 -_LIT8(KImcvZip, "x-gzip");
1.190 -//----------------------------------------------------------------------------------------
1.191 -// UU Encoding tokens
1.192 -_LIT8(KImcvUueStart, "begin ");
1.193 -_LIT8(KImcvUue644, "644");
1.194 -_LIT8(KImcvUueEnd, "end\r\n");
1.195 -_LIT8(KImcvUueLastLine, "`\r\n");
1.196 -
1.197 -_LIT8(KImcvXUUString, "X-UUENCODE");
1.198 -//----------------------------------------------------------------------------------------
1.199 -// QP Encoding tokens
1.200 -_LIT8(KImcvPlainRichText, " ");
1.201 -_LIT8(KImcvEndOfLine, "=\r\n");
1.202 -_LIT8(KImcvQPFormatString, "=%02X\r\n");
1.203 -_LIT8(KImcvQPEqualsSign, "=3D");
1.204 -_LIT8(KImcvQPEncoded, "=%02X");
1.205 -_LIT8(KImcvParagraph, "\006");
1.206 -_LIT8(KImcvCharacterFormat, "%c");
1.207 -
1.208 -_LIT8(KImcvEncodeCharacterList, "?");
1.209 -_LIT8(KImcvEncodedWordStart, "=?");
1.210 -_LIT8(KImcvEncodedWordEnd, "?=");
1.211 -_LIT8(KImcvQuestionMarkString, "?");
1.212 -_LIT8(KImcvB, "B");
1.213 -_LIT8(KImcvQ, "Q");
1.214 -
1.215 -_LIT8(KWildChars, "**");
1.216 -_LIT8(KBasicAsciiChars,"'+,-_bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ0123456789");
1.217 -_LIT8(KValidCharacters, "bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ0123456789");
1.218 -
1.219 -_LIT8(KPrintChar, "%c");
1.220 -_LIT8(KPrintString, "%S");
1.221 -
1.222 -// Filename Extensions
1.223 -_LIT(KTextExtension, ".txt");
1.224 -_LIT(KHtmlExtension, ".html");
1.225 -_LIT(KVCardExtension, ".vcf");
1.226 -_LIT(KVCalExtension, ".vcs");
1.227 -_LIT(KICalExtension, ".ics");
1.228 -_LIT(KRtfExtension, ".rtf");
1.229 -
1.230 -// Used in CImSendMimeHeaderBase::AppendFilenameL
1.231 -_LIT8(KImcvEqualsQuote, "=\"");
1.232 -_LIT8(KImcvQuoteString, "\"");
1.233 -
1.234 -_LIT(KImcvMimeText, "This is a MIME Message");
1.235 -
1.236 -
1.237 -// UIDS
1.238 -const TUint8 KImcvSpaceChar = ' ';
1.239 -const TUint8 KImcvCR = '\r';
1.240 -const TUint8 KImcvLF = '\n';
1.241 -const TUint8 KImcvSP = ' ';
1.242 -const TUint8 KImcvTab = '\t';
1.243 -const TUint8 KImcvAny = '*';
1.244 -const TUint8 KImcvEquals = '=';
1.245 -const TUint8 KImcvHyphen = '-';
1.246 -const TUint8 KImcvUnderScore = '_';
1.247 -const TUint8 KImcvLeftBracket = '(';
1.248 -const TUint8 KImcvRightBracket = ')';
1.249 -const TUint8 KImcvLeftChevron = '<';
1.250 -const TUint8 KImcvRightChevron = '>';
1.251 -const TUint8 KImcvDoubleQuote = '\"';
1.252 -const TUint8 KImcvDefaultChar = '_'; // inserted into filename in place of illegal EPOC32 filename char
1.253 -const TUint8 KImcvComma = ',';
1.254 -const TUint8 KImcvSemiColon = ';';
1.255 -const TUint8 KImcvColon = ':';
1.256 -const TUint8 KImcvPlus = '+';
1.257 -const TUint8 KImcvBackSlash = '\\';
1.258 -const TUint8 KImcvQuote = '"';
1.259 -const TUint8 KImcvSingleQuote = '\'';
1.260 -const TUint8 KImcvInvertedComma = '`';
1.261 -const TUint8 KImcvTilde = '~';
1.262 -const TUint8 KImcvQuestionMark = '?';
1.263 -const TUint8 KImcvAt ='@';
1.264 -const TUint8 KImcvFullStop ='.';
1.265 -const TUint8 KImcvPercentSign = '%';
1.266 -const TUint8 KImcvExclamation = '!';
1.267 -const TUint8 KImcvESC = 0x1B;
1.268 -
1.269 -// Special characters previously defined in EText
1.270 - enum {
1.271 - ETextParagraphDelimiter=0x10,
1.272 - };
1.273 -
1.274 -
1.275 -#endif