sapi_calendar/calendarservice/inc/calendarconstants.h
changeset 0 14df0fbfcc4e
equal deleted inserted replaced
-1:000000000000 0:14df0fbfcc4e
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Constants definitions used across calendar SAPI
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _CALENDARCONSTANTS_H_
       
    20 #define _CALENDARCONSTANTS_H_
       
    21 
       
    22 const TInt KArrayGran 		= 4;
       
    23 const TInt KArrayZeroIndex 	= 0;
       
    24 const TInt KMaxUidLength 	= 100;
       
    25 const TInt KMaxErrorMessageLength = 100;
       
    26 const TInt KMaxFileNameLength = 239;
       
    27 
       
    28 const TInt KRRTypeDaily 	= 1;
       
    29 const TInt KRRTypeWeekly 	= 2;
       
    30 const TInt KRRTypeMonthly 	= 3;
       
    31 const TInt KRRTypeYearly 	= 4;
       
    32 
       
    33 const TUint KUidSeparator 	= ':';
       
    34 
       
    35 // Constants for Error Message
       
    36 _LIT(KErrorMsgSeparator, 	" : ");
       
    37 _LIT(KDomainName, 			"Calendar");
       
    38 _LIT(KCmdInvalid, 			"Command Not Supported");
       
    39 _LIT(KCmdFailed, 			"Error executing Command");
       
    40 _LIT(KMissing,				" is missing");
       
    41 _LIT(KInvalid,				" is invalid");
       
    42 _LIT(KAsyncNotSupported,	"Async not supported");
       
    43 _LIT(KInvalidAsyncParam,	"Invalid async parameters");
       
    44 _LIT(KInvalidCancelParam,	"Cancel bit not set in aCmdOptions");
       
    45 _LIT8(KRepeatWeekNum,		"RepeatRule:DaysOfMonth:WeekNunber");
       
    46 _LIT(KServiceInUse,	    "Operation in progress, cannot be cancelled");
       
    47 
       
    48 
       
    49 // Constants specifing the format of the calender
       
    50 _LIT8(KCalFmtVCal,			"VCal");
       
    51 _LIT8(KCalFmtICal,			"ICal");
       
    52 
       
    53 _LIT8(KErrorCode,			"ErrorCode");
       
    54 _LIT8(KErrorMessage,		"ErrorMessage");
       
    55 _LIT8(KReturnValue,			"ReturnValue");
       
    56 _LIT8(KTransactionID,		"TransactionID");
       
    57 
       
    58 
       
    59 // Calendar Entry Replication Status
       
    60 _LIT(KReplOpen, 			"Open");
       
    61 _LIT(KReplPrivate, 			"Private");
       
    62 _LIT(KReplRest, 			"Restricted");
       
    63 
       
    64 // Calendar Entry Status
       
    65 _LIT(KStatusTentative, 		"Tentative");
       
    66 _LIT(KStatusConfirmed, 		"Confirmed");
       
    67 _LIT(KStatusCancelled, 		"Cancelled");
       
    68 _LIT(KStatusTodoNeedsAction,"TodoNeedsAction");
       
    69 _LIT(KStatusTodoCompleted, 	"TodoCompleted");
       
    70 _LIT(KStatusTodoInProcess, 	"TodoInProcess");
       
    71 _LIT(KNullStatus, 			"NullStatus");
       
    72 
       
    73 // Calendar Entry Methods
       
    74 _LIT(KMethodNone, 			"None");
       
    75 _LIT(KMethodPublish, 		"Publish");
       
    76 _LIT(KMethodRequest, 		"Request");
       
    77 _LIT(KMethodReply, 			"Reply");
       
    78 _LIT(KMethodAdd, 			"Add");
       
    79 _LIT(KMethodCancel, 		"Cancel");
       
    80 _LIT(KMethodRefresh, 		"Refresh");
       
    81 _LIT(KMethodCounter, 		"Counter");
       
    82 _LIT(KMethodDecCounter, 	"DeclineCounter");
       
    83 
       
    84 // Calendar Entry types
       
    85 _LIT(KEntryAppt, 			"Meeting");
       
    86 _LIT(KEntryTodo, 			"ToDo");
       
    87 _LIT(KEntryEvent, 			"DayEvent");
       
    88 _LIT(KEntryReminder, 		"Reminder");
       
    89 _LIT(KEntryAnniv, 			"Anniversary");
       
    90 _LIT(KIncludeAll, 			"IncludeAll");
       
    91 
       
    92 // Calendar Command Names
       
    93 _LIT8(KCmdAdd,				"Add");
       
    94 _LIT8(KCmdDelete,			"Delete");
       
    95 _LIT8(KCmdGetList,			"GetList");
       
    96 _LIT8(KCmdImport,			"Import");
       
    97 _LIT8(KCmdExport,			"Export");
       
    98 _LIT8(KCmdReqNot,			"RequestNotification");
       
    99 _LIT8(KCmdCancel,			"Cancel");
       
   100 
       
   101 // GetList Parameters
       
   102 _LIT8(KFilter, 				"Filter");
       
   103 _LIT8(KDefault, 			"DefaultCalendar");
       
   104 _LIT8(KId, 			        "id");
       
   105 _LIT8(KLocalId, 			"LocalId");
       
   106 _LIT8(KStartRange, 			"StartRange");
       
   107 _LIT8(KEndRange, 			"EndRange");
       
   108 _LIT8(KSearchText, 			"SearchText");
       
   109 _LIT8(KEntryType, 			"Type");
       
   110 
       
   111 // Delete parameters
       
   112 _LIT8(KCalendarList, 		"CalendarList");
       
   113 _LIT8(KIdList, 		        "IdList");
       
   114 _LIT8(KLocalIdList, 		"LocalIdList");
       
   115 _LIT8(KDeleteAll, 			"DeleteAll");
       
   116 _LIT8(KData, 				"Data");
       
   117 
       
   118 
       
   119 // Request notification parameters
       
   120 _LIT8(KIncludeUndatedTodos, "IncludeUndatedTodos");
       
   121 _LIT8(KChangeType, 			"ChangeType");
       
   122 
       
   123 // Change type attributes
       
   124 _LIT(KChangeAdd, 		  	"Add");
       
   125 _LIT(KChangeDelete, 		"Delete");
       
   126 _LIT(KChangeModify, 		"Modify");
       
   127 _LIT(KChangeUndefined, 		"Unknown");
       
   128 
       
   129 
       
   130 // Content type attributes
       
   131 _LIT(KContentCalendar, 		"Calendar");
       
   132 _LIT(KContentCalendarEntry, "CalendarEntry");
       
   133 
       
   134 // Calendar Entry Attributes
       
   135 _LIT8(KContentType, 		"Type");
       
   136 _LIT8(KItem,  		      	"Item");
       
   137 _LIT8(KCalendar,  		    "Calendar");
       
   138 _LIT8(KCalendarName,        "CalendarName");
       
   139 _LIT8(KCalendarEntry,       "CalendarEntry");
       
   140 _LIT8(KType,                "Type");
       
   141 _LIT8(KSummary,             "Summary");
       
   142 _LIT8(KDescription,         "Description");
       
   143 _LIT8(KLocation,            "Location");
       
   144 _LIT8(KReplication,         "Replication");
       
   145 _LIT8(KEntryStatus,         "Status");
       
   146 _LIT8(KMethod,              "Method");
       
   147 _LIT8(KSeqNum,              "SeqNum");
       
   148 _LIT8(KPriority,            "Priority");
       
   149 _LIT8(KStartTime,           "StartTime");
       
   150 _LIT8(KEndTime,             "EndTime");
       
   151 _LIT8(KAlarmTime,           "AlarmTime");
       
   152 _LIT8(KPhoneOwner,          "PhoneOwner");
       
   153 _LIT8(KOrganizer,           "Organizer");
       
   154 _LIT8(KAttendeeList,        "Attendees");
       
   155 _LIT8(KCommonName,          "CommonName");
       
   156 _LIT8(KAddress,             "Address");
       
   157 _LIT8(KRole,                "Role");
       
   158 _LIT8(KStatus,              "Status");
       
   159 _LIT8(KRsvp,                "Rsvp");
       
   160 _LIT8(KRepeatDates,         "RepeatDates");
       
   161 _LIT8(KExceptionDates,      "ExDates");
       
   162 _LIT8(KRepeatRule,          "RepeatRule");
       
   163 _LIT8(KRepeatType,          "Type");
       
   164 _LIT8(KRStartDate,          "StartDate");
       
   165 _LIT8(KUntilDate,           "UntilDate");
       
   166 _LIT8(KInterval,            "Interval");
       
   167 _LIT8(KDaysInWeek,          "DaysInWeek");
       
   168 _LIT8(KMonthDays,           "MonthDays");
       
   169 _LIT8(KDaysOfMonth,         "DaysOfMonth");
       
   170 _LIT8(KMonth,               "Month");
       
   171 _LIT8(KDay,           		"Day");
       
   172 _LIT8(KWeekNum,             "WeekNum");
       
   173 
       
   174 // Calendar Instance Attributes
       
   175 _LIT8(KInstStartTime,       "InstanceStartTime");
       
   176 _LIT8(KInstEndTime,         "InstanceEndTime");
       
   177 
       
   178 // Import / Export params
       
   179 _LIT8(KCalendarFormat,      "Format");
       
   180 _LIT8(KFormatICal,          "ICal");
       
   181 _LIT8(KFormatVCal,          "VCal");
       
   182 _LIT8(KInputBuffer,         "Buffer");
       
   183 _LIT8(KImExFileName,        "FileName");
       
   184 _LIT8(KCalendarGuidList,    "IdList");
       
   185 _LIT8(KCalendarLuidList,    "LocalIdList");
       
   186 
       
   187 
       
   188 // Calendar User Status
       
   189 _LIT(KAttStatusNeedsAction,     "NeedsAction");
       
   190 _LIT(KAttStatusAccepted, 		"Accepted");
       
   191 _LIT(KAttStatusTentative, 		"Tentative");
       
   192 _LIT(KAttStatusConfirmed, 		"Confirmed");
       
   193 _LIT(KAttStatusDeclined, 	    "Declined");
       
   194 _LIT(KAttStatusCompleted, 		"Completed");
       
   195 _LIT(KAttStatusDelegated, 		"Delegated");
       
   196 _LIT(KAttStatusInProcess, 	    "InProcess");
       
   197 
       
   198 // Calendar User Role
       
   199 _LIT(KAttRoleReqParticipant,    "Required");
       
   200 _LIT(KAttRoleOptParticipant, 	"Optional");
       
   201 _LIT(KAttRoleNonParticipant,	"NonParticipant");
       
   202 _LIT(KAttRoleChair     , 		"Chair");
       
   203 
       
   204 
       
   205 // Calendar Entry Repeat Types
       
   206 _LIT(KDailyRepeat,              "Daily");
       
   207 _LIT(KWeeklyRepeat,             "Weekly");
       
   208 _LIT(KMonthlyRepeat,            "Monthly");
       
   209 _LIT(KYearlyRepeat,             "Yearly");
       
   210 
       
   211 #endif _CALENDARCONSTANTS_H_