1.1 --- a/epoc32/include/vtoken.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,366 +0,0 @@
1.4 -// Copyright (c) 1997-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 -//
1.18 -
1.19 -
1.20 -
1.21 -/**
1.22 - @file
1.23 - @publishedAll
1.24 - @released
1.25 -*/
1.26 -
1.27 -#ifndef __VTOKEN_H__
1.28 -#define __VTOKEN_H__
1.29 -
1.30 -#include <e32base.h>
1.31 -
1.32 -#define KMaxExternalizedTokenLength 70
1.33 -#define KMinLineLengthToWriteTo 1
1.34 -
1.35 -/** A colon string. */
1.36 -_LIT8(KVersitTokenColon, ":");
1.37 -/** A Unicode colon string. */
1.38 -_LIT(KVersitTokenColonUnicode, ":");
1.39 -/** A semi-colon string. */
1.40 -_LIT8(KVersitTokenSemiColon, ";");
1.41 -/** A Unicode semi-colon string. */
1.42 -_LIT(KVersitTokenSemiColonUnicode, ";");
1.43 -/** A backslash string (escaped). */
1.44 -_LIT8(KVersitBackSlash, "\\");
1.45 -/** An escaped semi-colon string. */
1.46 -_LIT8(KVersitEscapedSemiColon, "\\;");
1.47 -/** An escaped Unicode semi-colon string. */
1.48 -_LIT(KVersitEscapedSemiColonUnicode, "\\;");
1.49 -/** An equals sign string. */
1.50 -_LIT8(KVersitTokenEquals, "=");
1.51 -/** A full stop string. */
1.52 -_LIT8(KVersitTokenPeriod, ".");
1.53 -/** A space string. */
1.54 -_LIT8(KVersitTokenSpace, " ");
1.55 -/** A minus sign string. */
1.56 -_LIT8(KVersitTokenMinus, "-");
1.57 -/** A plus sign string. */
1.58 -_LIT8(KVersitTokenPlus, "+");
1.59 -/** A line break string. */
1.60 -_LIT8(KVersitLineBreak, "\r\n ");
1.61 -/** The string used at the start of a time interval string. */
1.62 -_LIT8(KVersitTimePeriodBegin, "P");
1.63 -/** The string appended to the number of years when encoding a time interval. */
1.64 -_LIT8(KVersitTimePeriodYear, "Y");
1.65 -/** The string appended to the number of months when encoding a time interval. */
1.66 -_LIT8(KVersitTimePeriodMonth, "M");
1.67 -/** Not used. */
1.68 -_LIT8(KVersitTimePeriodWeek, "W"); //unused
1.69 -/** The string appended to the number of days when encoding a time interval. */
1.70 -_LIT8(KVersitTimePeriodDay, "D");
1.71 -/** The string added before the time of day when encoding a Versit date/time.
1.72 -
1.73 -Also the string added before the time of day when encoding a time interval. */
1.74 -_LIT8(KVersitTimePeriodTime, "T");
1.75 -/** The string appended to the hour value when encoding a time interval. */
1.76 -_LIT8(KVersitTimePeriodHour, "H");
1.77 -/** The string appended to the minutes value when encoding a time interval. */
1.78 -_LIT8(KVersitTimePeriodMinute, "M");
1.79 -/** The string appended to the seconds value when encoding a time interval. */
1.80 -_LIT8(KVersitTimePeriodSecond, "S");
1.81 -/** The string appended to a date/time when encoding a Versit
1.82 -date/time, if the value is in universal time. */
1.83 -_LIT8(KVersitTokenUniversalTime, "Z");
1.84 -
1.85 -/** A colon character. */
1.86 -const TUint KVersitTokenColonVal =':';
1.87 -/** A semi-colon character. */
1.88 -const TUint KVersitTokenSemiColonVal =';';
1.89 -/** A backslash character. */
1.90 -const TUint KVersitTokenBackslashVal ='\\';
1.91 -/** An equals sign character. */
1.92 -const TUint KVersitTokenEqualsVal ='=';
1.93 -/** A full stop character. */
1.94 -const TUint KVersitTokenPeriodVal ='.';
1.95 -/** A comma character. */
1.96 -const TUint KVersitTokenCommaVal =',';
1.97 -/** A left square bracket character. */
1.98 -const TUint KVersitTokenLSquareBracketVal ='[';
1.99 -/** A right square bracket character. */
1.100 -const TUint KVersitTokenRSquareBracketVal =']';
1.101 -/** A minus sign character. */
1.102 -const TUint KVersitTokenMinusVal ='-';
1.103 -/** A plus sign character. */
1.104 -const TUint KVersitTokenPlusVal ='+';
1.105 -/** A Yen character: the escape character for the 'ShiftJis' character set. */
1.106 -const TUint KVersitTokenYenVal =0xa5;
1.107 -/** The character at the beginning of a time interval string. */
1.108 -const TUint KVersitTimePeriodBeginVal ='P';
1.109 -/** The character following the number of years in a time interval string. */
1.110 -const TUint KVersitTimePeriodYearVal ='Y';
1.111 -/** The character following the number of months in a time interval string. */
1.112 -const TUint KVersitTimePeriodMonthVal ='M';
1.113 -/** The character following the number of weeks in a time interval string. */
1.114 -const TUint KVersitTimePeriodWeekVal ='W';
1.115 -/** The character following the number of days in a time interval string. */
1.116 -const TUint KVersitTimePeriodDayVal ='D';
1.117 -/** The character preceding a length of day (hours,minutes and seconds) in a time
1.118 -interval string.
1.119 -
1.120 -Also the character preceding the time of day in a date/time string. */
1.121 -const TUint KVersitTimePeriodTimeVal ='T';
1.122 -/** The character following the number of hours in a time interval string. */
1.123 -const TUint KVersitTimePeriodHourVal ='H';
1.124 -/** The character following the number of minutes in a time interval string. */
1.125 -const TUint KVersitTimePeriodMinuteVal ='M';
1.126 -/** The character following the number of seconds in a time interval string. */
1.127 -const TUint KVersitTimePeriodSecondVal ='S';
1.128 -/** The character at the end of a universal date/time string. */
1.129 -const TUint KVersitTokenUniversalTimeVal ='Z';
1.130 -/** The character at the start of a daily recurring entity string. */
1.131 -const TUint KVersitRecurrenceDailyVal ='D';
1.132 -/** The character at the start of a weekly recurring entity string. */
1.133 -const TUint KVersitRecurrenceWeeklyVal ='W';
1.134 -/** The character which precedes the number of recurrences, when specified, in
1.135 -a recurring entity. */
1.136 -const TUint KVersitRecurrenceNumberOfVal ='#';
1.137 -/** The string at the beginning of a 'monthly by position' recurring entity
1.138 -(see CVersitRecurrenceMonthlyByPos). Used when internalising. */
1.139 -_LIT(KVersitRecurrenceMonthlyByPos, "MP");
1.140 -/** Not used. */
1.141 -_LIT(KVersitRecurrenceMonthlyByDay, "MD");
1.142 -/** Not used. */
1.143 -_LIT(KVersitRecurrenceYearlyByMonth, "YM");
1.144 -/** The string at the beginning of a 'yearly by day' recurring entity,
1.145 -(see CVersitRecurrenceYearlyByDay). Used when internalising. */
1.146 -_LIT(KVersitRecurrenceYearlyByDay, "YD");
1.147 -/** A string in the date list (if a date list is defined) of an entity
1.148 -that recurs either weekly or 'monthly by position' on Mondays. Used when
1.149 -internalising. */
1.150 -_LIT(KVersitRecurrenceMonday, "MO");
1.151 -/** A string in the date list (if a date list is defined) of an entity
1.152 -that recurs either weekly or 'monthly by position' on Tuesdays. Used when internalising. */
1.153 -_LIT(KVersitRecurrenceTuesday, "TU");
1.154 -/** A string in the date list (if a date list is defined) of an entity
1.155 -that recurs either weekly or 'monthly by position' on Wednesdays. Used when internalising. */
1.156 -_LIT(KVersitRecurrenceWednesday, "WE");
1.157 -/** A string in the date list (if a date list is defined) of an entity that
1.158 -recurs either weekly or 'monthly by position' on Thursdays. Used when internalising. */
1.159 -_LIT(KVersitRecurrenceThursday, "TH");
1.160 -/** A string in the date list (if a date list is defined) of an entity that
1.161 -recurs either weekly or 'monthly by position' on Fridays. Used when internalising. */
1.162 -_LIT(KVersitRecurrenceFriday, "FR");
1.163 -/** A string in the date list (if a date list is defined) of an entity that
1.164 -recurs either weekly or 'monthly by position' on Saturdays. Used when internalising. */
1.165 -_LIT(KVersitRecurrenceSaturday, "SA");
1.166 -/** A string in the date list (if a date list is defined) of an entity that
1.167 -recurs either weekly or 'monthly by position' on Sundays. Used when internalising. */
1.168 -_LIT(KVersitRecurrenceSunday, "SU");
1.169 -/** The string appended to the 'occurrence list' section of an entity that
1.170 -recurs on the last day of the month. Used when internalising. */
1.171 -_LIT(KVersitRecurrenceLastDay, "LD");
1.172 -
1.173 -/** The string used at the start of a daily recurring entity. */
1.174 -_LIT8(KVersitRecurrenceDaily, "D");
1.175 -/** The string used at the start of a weekly recurring entity. */
1.176 -_LIT8(KVersitRecurrenceWeekly, "W");
1.177 -/** The string appended just before the number of occurrences, when encoding a recurring
1.178 -entity as a descriptor. */
1.179 -_LIT8(KVersitRecurrenceNumberOf, "#");
1.180 -/** The string used at the start of a 'monthly by position' recurring entity,
1.181 -(see CVersitRecurrenceMonthlyByPos). Used when externalising. */
1.182 -_LIT8(KVersitRecurrenceMonthlyByPos8, "MP");
1.183 -/** Not used. */
1.184 -_LIT8(KVersitRecurrenceMonthlyByDay8, "MD");
1.185 -/** Not used. */
1.186 -_LIT8(KVersitRecurrenceYearlyByMonth8, "YM");
1.187 -/** The string used at the start of a 'yearly by day' recurring entity,
1.188 -(see CVersitRecurrenceYearlyByDay). Used when externalising. */
1.189 -_LIT8(KVersitRecurrenceYearlyByDay8, "YD");
1.190 -/** The string appended to the 'occurrence list' section of an entity that recurs on Mondays.
1.191 -Used when externalising. */
1.192 -_LIT8(KVersitRecurrenceMonday8, "MO");
1.193 -/** The string appended to the 'occurrence list' section of an entity that recurs on Tuesdays.
1.194 -Used when externalising. */
1.195 -_LIT8(KVersitRecurrenceTuesday8, "TU");
1.196 -/** The string appended to the 'occurrence list' section of an entity that recurs on Wednesdays.
1.197 -Used when externalising. */
1.198 -_LIT8(KVersitRecurrenceWednesday8, "WE");
1.199 -/** The string appended to the 'occurrence list' section of an entity that recurs on Thursdays.
1.200 -Used when externalising. */
1.201 -_LIT8(KVersitRecurrenceThursday8, "TH");
1.202 -/** The string appended to the 'occurrence list' section of an entity that recurs on Fridays.
1.203 -Used when externalising. */
1.204 -_LIT8(KVersitRecurrenceFriday8, "FR");
1.205 -/** The string appended to the 'occurrence list' section of an entity that recurs on Saturdays.
1.206 -Used when externalising. */
1.207 -_LIT8(KVersitRecurrenceSaturday8, "SA");
1.208 -/** The string appended to the 'occurrence list' section of an entity that recurs on Sundays.
1.209 -Used when externalising. */
1.210 -_LIT8(KVersitRecurrenceSunday8, "SU");
1.211 -/** The string appended to the 'occurrence list' section of an entity that recurs on the last day of
1.212 -the month. Used when externalising. */
1.213 -_LIT8(KVersitRecurrenceLastDay8, "LD");
1.214 -/** The string at the start of an entity encoded in a stream.
1.215 -
1.216 -This is implemented as the name of a property, but this property is not stored in the entity's array
1.217 -of properties. */
1.218 -_LIT8(KVersitTokenBEGIN, "BEGIN");
1.219 -/** The string at the start of an agent vCard entity encoded in a stream.
1.220 -
1.221 -The reason for needing a Unicode version, is that the agent vCard is held in a
1.222 -property value in the parent vCard, and all property values are converted
1.223 -to Unicode when they are internalised, in order to make them character set-independent.
1.224 -
1.225 -This is implemented as the name of a property, but this property is not stored in the
1.226 -entity's array of properties. */
1.227 -_LIT(KVersitVarTokenBEGIN, "BEGIN");
1.228 -/** The string which follows the body of data of a vCard/vCalendar encoded in a stream.
1.229 -It is followed only by the entity name.
1.230 -
1.231 -This is implemented as the name of a property, but this property is not stored in the
1.232 -entity's array of properties. */
1.233 -_LIT8(KVersitTokenEND, "END");
1.234 -/** A carriage return and line feed */
1.235 -_LIT8(KVersitTokenCRLF, "\r\n"); // carriage return, line feed
1.236 -/** A boolean true value. Not used. */
1.237 -_LIT8(KVersitTokenTRUE, "TRUE");
1.238 -/** A boolean true value. */
1.239 -_LIT(KVersitVarTokenTRUE, "TRUE");
1.240 -/** A boolean false value. Not used. */
1.241 -_LIT8(KVersitTokenFALSE, "FALSE");
1.242 -/** A boolean false value. */
1.243 -_LIT(KVersitVarTokenFALSE, "FALSE");
1.244 -/** The symbol added to the beginning of an unrecognised property name while
1.245 -internalising from a stream. */
1.246 -_LIT8(KVersitTokenXDashEPOC, "X-EPOC");
1.247 -_LIT8(KVersitTokenXDash, "X-");
1.248 -/** An empty string. */
1.249 -_LIT8(KVersitTokenEmptyNarrow, "");
1.250 -/** An empty string. */
1.251 -_LIT(KVersitTokenEmpty, "");
1.252 -
1.253 -//The following names should not be used, versit now uses CharConv character set names.
1.254 -// params
1.255 -_LIT8(KVersitTokenENCODING, "ENCODING");
1.256 -_LIT8(KVersitTokenBASE64, "BASE64");
1.257 -_LIT8(KVersitTokenQUOTEDPRINTABLE, "QUOTED-PRINTABLE");
1.258 -_LIT8(KVersitToken8BIT, "8-BIT");
1.259 -_LIT8(KVersitTokenCHARSET, "CHARSET");
1.260 -_LIT8(KVersitTokenUTF8, "UTF-8");
1.261 -_LIT8(KVersitTokenUTF7, "UTF-7");
1.262 -_LIT8(KVersitTokenISO1, "ISO-8859-1");
1.263 -_LIT8(KVersitTokenISO2, "ISO-8859-2");
1.264 -_LIT8(KVersitTokenISO4, "ISO-8859-4");
1.265 -_LIT8(KVersitTokenISO5, "ISO-8859-5");
1.266 -_LIT8(KVersitTokenISO7, "ISO-8859-7");
1.267 -_LIT8(KVersitTokenISO9, "ISO-8859-9");
1.268 -_LIT8(KVersitTokenTYPE, "TYPE"); //used for photo format type
1.269 -
1.270 -// parameters for the X-EPOCALARM
1.271 -_LIT8(KVersitTokenVALUE, "VALUE");
1.272 -_LIT8(KVersitTokenCONTENTTYPE, "X-CONTENTTYPE");
1.273 -_LIT8(KVersitTokenINLINE, "INLINE");
1.274 -_LIT8(KVersitTokenBINARY, "BINARY");
1.275 -
1.276 -// additional character sets
1.277 -_LIT8(KVersitTokenISO3, "ISO-8859-3");
1.278 -_LIT8(KVersitTokenISO10, "ISO-8859-10");
1.279 -_LIT8(KVersitTokenShiftJIS, "SHIFT_JIS");
1.280 -_LIT8(KVersitTokenGB2312, "GB 2312-80"); //This and the following contain the wrong name.
1.281 -_LIT8(KVersitTokenGBK, "GBK");
1.282 -_LIT8(KVersitTokenBIG5, "BIG5 level 1 and 2");
1.283 -_LIT8(KVersitTokenISO2022JP, "ISO 2022-JP");
1.284 -_LIT8(KVersitTokenEUCJP, "EUC-JP");
1.285 -_LIT8(KVersitTokenJIS, "JIS");
1.286 -
1.287 -
1.288 -// entities
1.289 -_LIT8(KVersitTokenVCALENDAR, "VCALENDAR");
1.290 -_LIT8(KVersitTokenVCARD, "VCARD");
1.291 -_LIT(KVersitVarTokenVCALENDAR, "VCALENDAR");
1.292 -_LIT(KVersitVarTokenVCARD, "VCARD");
1.293 -_LIT(KVersitVarTokenVEVENT, "VEVENT");
1.294 -_LIT(KVersitVarTokenVTODO, "VTODO");
1.295 -
1.296 -// properties
1.297 -_LIT8(KVersitTokenXALARM, "X-EPOCALARM");
1.298 -_LIT8(KVersitTokenAALARM, "AALARM");
1.299 -_LIT8(KVersitTokenDALARM, "DALARM");
1.300 -_LIT8(KVersitTokenPALARM, "PALARM");
1.301 -_LIT8(KVersitTokenMALARM, "MALARM");
1.302 -_LIT8(KVersitTokenDAYLIGHT, "DAYLIGHT");
1.303 -_LIT(KVersitVarTokenDAYLIGHT, "DAYLIGHT");
1.304 -_LIT8(KVersitTokenVERSION, "VERSION");
1.305 -_LIT8(KVersitTokenCATEGORIES, "CATEGORIES");
1.306 -_LIT8(KVersitTokenRESOURCES, "RESOURCES");
1.307 -_LIT8(KVersitTokenDCREATED, "DCREATED");
1.308 -_LIT8(KVersitTokenDTSTART, "DTSTART");
1.309 -_LIT8(KVersitTokenDTEND, "DTEND");
1.310 -_LIT8(KVersitTokenLASTMODIFIED, "LAST-MODIFIED");
1.311 -_LIT8(KVersitTokenCOMPLETED, "COMPLETED");
1.312 -_LIT8(KVersitTokenDUE, "DUE");
1.313 -_LIT8(KVersitTokenEXDATE, "EXDATE");
1.314 -_LIT8(KVersitTokenEXRULE, "EXRULE");
1.315 -_LIT8(KVersitTokenRDATE, "RDATE");
1.316 -_LIT8(KVersitTokenRRULE, "RRULE");
1.317 -_LIT8(KVersitTokenRNUM, "RNUM");
1.318 -_LIT8(KVersitTokenPRIORITY, "PRIORITY");
1.319 -_LIT8(KVersitTokenSEQUENCE, "SEQUENCE");
1.320 -_LIT8(KVersitTokenTRANSP, "TRANSP");
1.321 -_LIT8(KVersitTokenBDAY, "BDAY");
1.322 -_LIT8(KVersitTokenAGENT, "AGENT");
1.323 -_LIT8(KVersitTokenLABEL, "LABEL");
1.324 -_LIT8(KVersitTokenPHOTO, "PHOTO");
1.325 -_LIT8(KVersitTokenEMAIL, "EMAIL");
1.326 -_LIT8(KVersitTokenINTERNET, "INTERNET");
1.327 -_LIT8(KVersitTokenTITLE, "TITLE");
1.328 -_LIT8(KVersitTokenROLE, "ROLE");
1.329 -_LIT8(KVersitTokenLOGO, "LOGO");
1.330 -_LIT8(KVersitTokenNOTE, "NOTE");
1.331 -_LIT8(KVersitTokenSOUND, "SOUND");
1.332 -_LIT8(KVersitTokenMAILER, "MAILER");
1.333 -_LIT8(KVersitTokenPRODID, "PRODID");
1.334 -_LIT8(KVersitTokenATTACH, "ATTACH");
1.335 -_LIT8(KVersitTokenATTENDEE, "ATTENDEE");
1.336 -_LIT8(KVersitTokenCLASS, "CLASS");
1.337 -_LIT8(KVersitTokenDESCRIPTION, "DESCRIPTION");
1.338 -_LIT8(KVersitTokenLOCATION, "LOCATION");
1.339 -_LIT8(KVersitTokenRELATEDTO, "RELATED-TO");
1.340 -_LIT8(KVersitTokenSTATUS, "STATUS");
1.341 -_LIT8(KVersitTokenSUMMARY, "SUMMARY");
1.342 -_LIT8(KVersitTokenN, "N");
1.343 -_LIT8(KVersitTokenTZ, "TZ");
1.344 -_LIT8(KVersitTokenADR, "ADR");
1.345 -_LIT8(KVersitTokenORG, "ORG");
1.346 -_LIT8(KVersitTokenREV, "REV");
1.347 -_LIT8(KVersitTokenFN, "FN");
1.348 -_LIT8(KVersitTokenTEL, "TEL");
1.349 -_LIT8(KVersitTokenURL, "URL");
1.350 -_LIT8(KVersitTokenGEO, "GEO");
1.351 -_LIT8(KVersitTokenUID, "UID");
1.352 -_LIT8(KVersitTokenKEY, "KEY");
1.353 -_LIT8(KVersitTokenSECONDNAME, "X-EPOCSECONDNAME");
1.354 -_LIT8(KVersitTokenXMETHOD, "X-METHOD"); // For Group Scheduling
1.355 -_LIT8(KVersitTokenXRECURRENCEID, "X-RECURRENCE-ID"); // For Group Scheduling
1.356 -_LIT8(KVersitTokenXLOCALUID, "X-SYMBIAN-LUID");
1.357 -_LIT8(KVersitTokenXDTSTAMP, "X-SYMBIAN-DTSTAMP");
1.358 -_LIT(KVersitVarTokenINTERNET, "INTERNET"); //Used by Jave Phone and not by versit
1.359 -_LIT8(KVersitTokenAssistant, "X-ASSISTANT");
1.360 -_LIT8(KVersitTokenAssistantTel, "X-ASSISTANT-TEL");
1.361 -_LIT8(KVersitTokenAnniversary, "X-ANNIVERSARY");
1.362 -_LIT8(KVersitTokenSpouse, "X-SPOUSE");
1.363 -_LIT8(KVersitTokenChildren, "X-CHILDREN");
1.364 -_LIT8(KVersitTokenClass, "X-CLASS");
1.365 -_LIT8(KVersitAttachLabel, "X-NAME");
1.366 -_LIT8(KVersitAttachMimeType, "X-FMTTYPE");
1.367 -_LIT8(KVersitXUserIntType, "X-SYMBIAN-USERINT");
1.368 -
1.369 -#endif