/*
* Copyright (c) 2009-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 definition for meeting viewer policy
*
*/


// ---------------------------------------------------------------------------
// r_bccal_meeting_viewer
// BC Cal Event plugin Policy for viewing meeting from calendar application
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_POLICY r_bccal_meeting_viewer
    {
    event_type           = EESMREventTypeAppt;
    policy_id            = EESMRPolicyMeetingViewer;
    policy_mode          = EESMRViewMR;
    role_flags           = KEESMRFlagOrganizer;
    allowed_app          = KEESMRFlagAppEsCalendar;
    field_ids            = r_bccal_meeting_viewer_fields;
    default_commands     = r_bccal_meeting_viewer_def_commands;
    additional_commands  = 0;
    }

// ---------------------------------------------------------------------------
// r_bccal_meeting_viewer_fields
// Default field set for meeting viewer
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_ID_TABLE r_bccal_meeting_viewer_fields
    {
    id_table =
        {
        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   = EESMRFieldMeetingTime;
            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 = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAlarmDate;
            field_type = EESMRFieldTypeAdditional;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldLocation;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldAlarm;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldRecurrence;
            field_type = EESMRFieldTypeDefault;
            field_mode = EESMRFieldModeView;
            },
        ESMR_FIELD
            {
            field_id   = EESMRFieldRecurrenceDate;
            field_type = EESMRFieldTypeAdditional;
            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_bccal_meeting_viewer_def_commands
// Default options menu items for meeting viewer
// ---------------------------------------------------------------------------
//
RESOURCE ESMR_ID_TABLE r_bccal_meeting_viewer_def_commands
    {
    id_table =
        {
        ESMR_ID { id = EESMRCmdCalEntryUIEdit; },
        ESMR_ID { id = EESMRCmdCalEntryUIDelete; },
        ESMR_ID { id = EAknCmdHelp; },
        ESMR_ID { id = EAknCmdExit; }
        };
    }
