calendarui/inc/calendar.hrh
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:38:59 +0300
branchRCL_3
changeset 48 bf573002ff72
parent 0 f979ecb2b13e
child 59 aba12c885d83
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2002 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:  This file contains declarations for resources of Calendar.
 *                The file can be included in C++ or resource file.
 *
*/


#ifndef CALENDAR_HRH
#define CALENDAR_HRH

#include <avkon.hrh>
#include "CalendarVariant.hrh"



enum TCalenExternalCommands
    {
    ECalenExtAiwCommandId = 100000
    };

// Command ID of menu pane. 
// e.g "Edit", "Erase", "Settings", "Send as" etc.
enum TCalenMenuPaneCommands
    {
    //always hidden, allows easy adding of items to beginning of menu
    ECalenCmdFirstMenuItem = 10100,

    /* List commands */
    ECalenCmdMark,
    ECalenMarkOne,
    ECalenUnmarkOne,
    ECalenMarkAll,
    ECalenUnmarkAll,

    ECalenCmdComplete,
    ECalenMarkDone,
    ECalenMarkUnDone,

    ECalenCmdChangeView,

    
    /* Settings view */
    //ECalenCmdSetting,
    ECalenCmdChange,
		
	/* Event view From alarm commands */
    ECalenStopAlarm,
    ECalenSnoozeAlarm,

    /* Misc commands */
#ifdef RD_CALEN_ENHANCED_MSK 
	ECalenCmdOpenMskDialog,
#endif //RD_CALEN_ENHANCED_MSK

    /* Meeting request commands*/
    ECalenCmdSendResponse,
    ECalenCmdShowAttendees,
    ECalenCmdSendAccept,
    ECalenCmdSendTentative,
    ECalenCmdSendDecline,

    /* End of common commands */ 
    ECalenCmdLast, 
    ECalenRegionalVariantCmdFirst = 100160 
    };

enum TCalenDayViewCommands
    {
    ECalenCopyToCalendars = 100161
    };

// Do not use this directly but through ItemToArrayIndex,
// because regional variator can add their own setting items between
// these setting items
enum TSettingListItemId
    {
    ECalenSettingListItemIdHead = 6000,
    ECalenAlarmToneItemId,
    ECalenSnoozeTimeItemId,
    ECalenDefaultViewItemId,
    ECalenWeekFormatItemId,
    ECalenWeekNumberItemId,
    ECalenWeekTitleItemId,
    ECalenExtCalendarItemId,
    ECalenDefaultMailboxId,
    ECalenToolbarItemId,
    ECalenPluginListItemId,
    ECalenInfoBarPluginsItemId,
    ECalenRegionalVariantSettingListItemIdFirst = 6020
    };


// Assume there are less than 1000 Uikon controls, 
// and they can't be defined anywhere else.

enum TCustomControl
    {
    ECalenCtrlTypeSettingItemList = 1000,
    ECalenRegionalVariantCustomControlFirst
    };


enum CCalenSettingFormCtls
    {
    ECalenSettingItemList = 10100
    };


/* Constants */

enum TCalenMinTime
    {
    ECalenMinDay = 0,
    ECalenMinMonth = 0,
    ECalenMinYear = 1900,
    ECalenMinSecond = 0,
    ECalenMinMinute = 0,
    ECalenMinHour = 0,
    ECalenMinAnnivYear = 1900
    };

enum TCalenMaxTime
    {
    ECalenMaxDay = 29,
    ECalenMaxMonth = 11,
    ECalenMaxYear = 2100,
    ECalenMaxSecond = 59,
    ECalenMaxMinute = 59,
    ECalenMaxHour = 23,
    ECalenMaxAnnivYear = 2100
    };

enum TCalenOthers
    {
    ECalenCharsInLine = 200
    };


enum // TCalenRepeat
    {
    ECalenRepeatThis,
    ECalenRepeatAll,
    ECalenRepeatThisFuture,
    ECalenRepeatThisPast
    };

enum // TTodoPriority
    {
    ETodoPriorityHigh = 1,
    ETodoPriorityNormal,
    ETodoPriorityLow
    };
enum //
    {
    ECalenCmdEdit = 1,
    ECalenCmdAdd,
    ECalenCmdDelete,
    ECalenCmdItemSelect,
    ECalenCmdItemDeselect,
    ECalenCmdShow,
    ECalenCmdHide
    };

enum
    {
    ECalenMultiDbName = 5000,
    ECalenMultiDbColor,
    ECalenMultiDbPublicPrivate,
    ECalenMultiDbHiddenVisible,
    ECalenMultiDbSyncStatus
    };

 enum
    {
    ECalenMultiDbHelp = 1,
    ECalenMultiDbExit
    };
 
 enum TCalenAttachmentCommands
     {
     ECalenAddImage,
     ECalenAddNote,
     ECalenAddAudio,
     ECalenAddVideo,
     ECalenAddOtherFiles,
     ECalenViewAttachmentCmdOpen,
     ECalenViewAttachmentCmdSave,
     ECalenViewAttachmentCmdRemove,
     ECalenViewAttachmentAdd,
     ECalenViewAttachmentCmdFetch,
     ECalenViewerCmdAttachmentCmdExit
     };
 
 // dialog control ids.
 enum TCalenAttachmentDlgCtrlIds
     {
     ECalenAttachmentListBoxId = 1,
     ECalenCannotOpenNoteId,
     ECalenSavedNoteId,
     ECalenWaitNoteId
     };
 
 // custom control types.
 enum TCalenAttachmentDlgCustomControls
     {
     ECalenAttachmentListBox = 0x2001
     };
 
#define CALEN_VIEW_CYCLING_NEXT '#'
#define CALEN_VIEW_CYCLING_PREV '*'

// Event colours
#define cell_cale_public_event_c   210  // blue
#define cell_cale_private_event_c   35  // red
#define cell_cale_unsynch_event_c   14  // light red (dimmed 35)
#define cell_cale_many_event_c     107  // dark red
#define cell_cale_grayed_event_c   221

//Meeting Request Colours
#define cell_cale_accepted_mr       210 // blue, RGB (0, 0, 255)
#define cell_cale_tentative_mr      114 // light blue, RGB (102, 204, 255)
#define cell_cale_cancelled_mr       35 // red, RGB (255, 0, 0)

 enum
     {
     /// Enable Ok button for calender selection dialog
     ECalenSelectCmdOk = 3000
     };

#endif // end of CALENDAR_HRH


// End of File