/*
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Resource definitions for editing MR from calendar
*
*/

#ifndef ESMRSRV_ORGANIZEREDITFROMCALENDARPOLICY
#define ESMRSRV_ORGANIZEREDITFROMCALENDARPOLICY

// ---------------------------------------------------------------------------
// r_esmr_organizer_edit_from_calendar
// ES MR Policy for editing MR from calendar application
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_POLICY r_esmr_organizer_edit_from_calendar
    {
    event_type           = EESMREventTypeAppt;
    policy_id            = EESMRPolicyOrganizerEditMRFromCal;
    policy_mode          = EESMREditMR;
    role_flags           = KEESMRFlagOrganizer;
    allowed_app          = KEESMRFlagAppEsCalendar;
    field_ids            = r_esmr_organizer_edit_from_calendar_fields;
    default_commands     = r_esmr_organizer_edit_from_calendar_def_commands;
    additional_commands  = 0;
    }

// ---------------------------------------------------------------------------
// r_esmr_organizer_edit_from_calendar_def_fields
//
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_ID_TABLE r_esmr_organizer_edit_from_calendar_fields
    {
    id_table =
        {
        ESMR_FIELD
            {
            field_id   = EESMRFieldCalendarName;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldUnifiedEditor;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAttendee;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldOptAttendee;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldSubject;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAllDayEvent;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldMeetingTime;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldStartDate;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldStopDate;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAlarmOnOff;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAlarmTime;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAlarmDate;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldLocation;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAlarm;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldRecurrence;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldRecurrenceDate;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldSync;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAttachments;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldDescription;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeEdit;
            }
        };
    }

// ---------------------------------------------------------------------------
// r_esmr_organizer_edit_from_calendar_def_commands
//
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_ID_TABLE r_esmr_organizer_edit_from_calendar_def_commands
    {
    id_table =
        {
        ESMR_ID { id = EESMRCmdSendMR; },
        ESMR_ID { id = EESMRCmdSendMRUpdate; },
        ESMR_ID { id = EESMRCmdAddOptAttendee; },
        ESMR_ID { id = EESMRCmdSaveCloseMR; },
        ESMR_ID { id = EESMRCmdDeleteMR; },
        ESMR_ID { id = EESMRCmdPriorityOptions; },
        ESMR_ID { id = EESMRCmdPriorityHigh; },
        ESMR_ID { id = EESMRCmdPriorityNormal; },
        ESMR_ID { id = EESMRCmdPriorityLow; },
        ESMR_ID { id = EAknCmdHelp; },
        ESMR_ID { id = EAknCmdExit; }
        };
    }

#endif // ESMRSRV_ORGANIZEREDITFROMCALENDARPOLICY

// EOF
