creator/engine/inc/creator_calendarelement.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     1 /*
       
     2 * Copyright (c) 2010 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 "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CREATORCALENDARELEMENT_H_
       
    22 #define CREATORCALENDARELEMENT_H_
       
    23 
       
    24 #include "creator_scriptelement.h"
       
    25 
       
    26 class CCalenderInterimParameters;
       
    27 
       
    28 // Calendar elements:
       
    29 namespace creatorcalendar
       
    30 {
       
    31     _LIT(KCalendar, "calendar");
       
    32 
       
    33     // Calendar entry types:
       
    34     _LIT(KType, "type");
       
    35     _LIT(KCalTypeAppointment, "appointment");
       
    36     _LIT(KCalTypeEvent, "event");
       
    37     _LIT(KCalTypeReminder, "reminder");
       
    38     _LIT(KCalTypeAnniversary, "anniversary");
       
    39     _LIT(KCalTypeTodo, "todo");
       
    40 
       
    41     // Calendar entry field elements:
       
    42     _LIT(KSummary, "summary");
       
    43     _LIT(KDescription, "description");
       
    44     _LIT(KLocation, "location");
       
    45     _LIT(KStarttime, "starttime");
       
    46     _LIT(KEndtime, "endtime");
       
    47     _LIT(KRecurrentFreq, "recurrentfrequency");
       
    48     _LIT(KRecurrentInterval, "recurrentinterval");
       
    49     _LIT(KRecurrentFrom, "recurrentfrom");
       
    50     _LIT(KRecurrentTo, "recurrentto");
       
    51     _LIT(KRepeatingCount, "repeatingcount");
       
    52     _LIT(KAlarmtime, "alarmtime");
       
    53     _LIT(KSynchronization, "synchronization");
       
    54     _LIT(KOrganizername, "organizername");
       
    55     _LIT(KOrganizeremail, "organizeremail");
       
    56     _LIT(KAttendees, "attendees");
       
    57     _LIT(KAttendee, "attendee");
       
    58     _LIT(KCommonname, "commonname");
       
    59     _LIT(KEmail, "email");
       
    60     _LIT(KRole, "role");
       
    61     _LIT(KStatus, "status");
       
    62     _LIT(KPriority, "priority");
       
    63 
       
    64     // Recurrency frequency values:
       
    65     _LIT(KNotRepeated, "not-repeated");
       
    66     _LIT(KWeekly, "weekly");
       
    67     _LIT(KDaily, "daily");
       
    68     _LIT(KMonthly, "monthly");
       
    69     _LIT(KYearly, "yearly");
       
    70 
       
    71     // Attendee role values:
       
    72     _LIT(KRoleRequired, "required");
       
    73     _LIT(KRoleOptional, "optional");
       
    74     _LIT(KRoleNonPart, "non-participant");
       
    75     _LIT(KRoleChair, "chair");
       
    76     
       
    77     // Calendar entry status values:
       
    78     _LIT(KCalStatusTentative, "tentative");
       
    79     _LIT(KCalStatusConfirmed, "confirmed");
       
    80     _LIT(KCalStatusCancelled, "cancelled");
       
    81     _LIT(KCalStatusNeedsAction, "todoneedsaction");
       
    82     _LIT(KCalStatusCompleted, "todocompleted");
       
    83     _LIT(KCalStatusInProcess, "todoinprocess");
       
    84 
       
    85     // Attendee status values:
       
    86     _LIT(KStatusNeedsAction, "needsaction");
       
    87     _LIT(KStatusAccepted, "accepted");
       
    88     _LIT(KStatusTentative, "tentative");
       
    89     _LIT(KStatusConfirmed, "confirmed");
       
    90     _LIT(KStatusDeclined, "declined");
       
    91     _LIT(KStatusCompleted, "completed");
       
    92     _LIT(KStatusDelegated, "delegated");
       
    93     _LIT(KStatusInProcess, "inprocess");
       
    94     
       
    95     // Priority values:
       
    96     _LIT(KPriorityHigh, "high");
       
    97     _LIT(KPriorityMedium, "medium");
       
    98     _LIT(KPriorityLow, "low");
       
    99 }
       
   100 
       
   101 class CCreatorCalendarElement : public CCreatorScriptElement
       
   102 {
       
   103 public:
       
   104     static CCreatorCalendarElement* NewL(CCreatorEngine* aEngine, const TDesC& aName, const TDesC& aContext = KNullDesC);
       
   105     void ExecuteCommandL();
       
   106 protected:
       
   107     CCreatorCalendarElement(CCreatorEngine* aEngine);
       
   108     
       
   109     enum TEntryType {
       
   110         EAppointment,
       
   111         EEvent,
       
   112         EReminder,
       
   113         EAnniversary,
       
   114         ETodo
       
   115     };
       
   116     
       
   117     void FillEntryParamsL(TEntryType aType, const RPointerArray<CCreatorScriptElement>& fields, CCalenderInterimParameters* parameters); 
       
   118 };
       
   119 
       
   120 #endif /*CREATORCALENDARELEMENT_H_*/