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