/*
* 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 viewing MR from mail policy
*
*/

#ifndef ESMRSRV_ATTENDEEVIEWALLDAYEVENTFROMMAILPOLICY
#define ESMRSRV_ATTENDEEVIEWALLDAYEVENTFROMMAILPOLICY

// ---------------------------------------------------------------------------
// r_esmr_attd_view_allday_event_from_email
// ES MR Policy forviewing MR from Calendar application
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_POLICY r_esmr_attd_view_allday_event_from_email
    {
    event_type           = EESMREventTypeAppt;
    policy_id            = EESMRPolicyAttendeeViewAllDayEventMRFromEmail;
    policy_mode          = EESMRViewAllDayMR;
    role_flags           = KEESMRFlagRequiredAttendee |
                           KEESMRFlagOptionalAttendee |
                           KEESMRFlagNonParticipant;
    allowed_app          = KEESMRFlagAppEsEmail;
    field_ids            = r_esmr_attd_view_allday_event_from_email_fields;
    default_commands     = r_esmr_attd_view_allday_event_from_email_def_commands;
    additional_commands  = 0; // No additional commands
    }

// ---------------------------------------------------------------------------
// r_esmr_attd_view_allday_event_from_email_fields
//
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_ID_TABLE r_esmr_attd_view_allday_event_from_email_fields
    {
    id_table =
        {
        ESMR_FIELD
            {
            field_id   = EESMRFieldOrganizer;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAttendee;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldOptAttendee;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldResponseArea;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldCalendarName;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView; 
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldDetailedSubject;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
		ESMR_FIELD
			{
			field_id   = EESMRFieldAllDayEvent;
			field_type = EESMRFieldTypeDefault;
			field_mode = EESMRFieldModeView;
			},        			
        ESMR_FIELD
            {
            field_id   = EESMRFieldStartDate;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldStopDate;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
		ESMR_FIELD
			{
			field_id   = EESMRFieldAlarmTime;
			field_type = EESMRFieldTypeDefault;
			field_mode = EESMRFieldModeView;
			},                   
        ESMR_FIELD
            {
            field_id   = EESMRFieldAlarmDate;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldLocation;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldRecurrence;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldRecurrenceDate;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldSync;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldViewerAttachments;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },            
        ESMR_FIELD
            {
            field_id   = EESMRFieldDescription;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            }
        };
    }

// ---------------------------------------------------------------------------
// r_esmr_attd_view_allday_event_from_email_def_commands
//
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_ID_TABLE r_esmr_attd_view_allday_event_from_email_def_commands
    {
    id_table =
        {
        ESMR_ID { id = EESMRCmdAcceptMR; },
        ESMR_ID { id = EESMRCmdTentativeMR; },
        ESMR_ID { id = EESMRCmdDeclineMR; },
        ESMR_ID { id = EESMRCmdRemoveFromCalendar; },
        ESMR_ID { id = EESMRCmdViewCalendar; },
        ESMR_ID { id = EESMRCmdForwardOptions; },
        ESMR_ID { id = EESMRCmdForwardAsMeeting; },
        ESMR_ID { id = EESMRCmdReply; },
        ESMR_ID { id = EESMRCmdReplyAll; },
        ESMR_ID { id = EESMRCmdMailMarkUnread; },
        ESMR_ID { id = EESMRCmdMailDelete; },
        ESMR_ID { id = EESMRCmdMailForwardAsMessage; },
        ESMR_ID { id = EESMRCmdMailMoveMessage; },
        ESMR_ID { id = EESMRCmdMailCopyMessage; },
        ESMR_ID { id = EESMRCmdMailMessageDetails; },
        ESMR_ID { id = EESMRCmdDownloadManager; },
        ESMR_ID { id = EESMRCmdMailPreviousMessage; },
        ESMR_ID { id = EESMRCmdMailNextMessage; },
        ESMR_ID { id = EAknCmdHelp; },
        ESMR_ID { id = EAknCmdExit; }
        };
    }

#endif // ESMRSRV_ATTENDEEVIEWALLDAYEVENTFROMMAILPOLICY

// EOF
