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