calendarui/inc/calendar.hrh
changeset 0 f979ecb2b13e
child 18 c198609911f9
child 48 bf573002ff72
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002 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:  This file contains declarations for resources of Calendar.
       
    15  *                The file can be included in C++ or resource file.
       
    16  *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CALENDAR_HRH
       
    21 #define CALENDAR_HRH
       
    22 
       
    23 #include <avkon.hrh>
       
    24 #include "CalendarVariant.hrh"
       
    25 
       
    26 
       
    27 
       
    28 enum TCalenExternalCommands
       
    29     {
       
    30     ECalenExtAiwCommandId = 100000
       
    31     };
       
    32 
       
    33 // Command ID of menu pane. 
       
    34 // e.g "Edit", "Erase", "Settings", "Send as" etc.
       
    35 enum TCalenMenuPaneCommands
       
    36     {
       
    37     //always hidden, allows easy adding of items to beginning of menu
       
    38     ECalenCmdFirstMenuItem = 10100,
       
    39 
       
    40     /* List commands */
       
    41     ECalenCmdMark,
       
    42     ECalenMarkOne,
       
    43     ECalenUnmarkOne,
       
    44     ECalenMarkAll,
       
    45     ECalenUnmarkAll,
       
    46 
       
    47     ECalenCmdComplete,
       
    48     ECalenMarkDone,
       
    49     ECalenMarkUnDone,
       
    50 
       
    51     ECalenCmdChangeView,
       
    52 
       
    53     
       
    54     /* Settings view */
       
    55     //ECalenCmdSetting,
       
    56     ECalenCmdChange,
       
    57 		
       
    58 	/* Event view From alarm commands */
       
    59     ECalenStopAlarm,
       
    60     ECalenSnoozeAlarm,
       
    61 
       
    62     /* Misc commands */
       
    63 #ifdef RD_CALEN_ENHANCED_MSK 
       
    64 	ECalenCmdOpenMskDialog,
       
    65 #endif //RD_CALEN_ENHANCED_MSK
       
    66 
       
    67     /* Meeting request commands*/
       
    68     ECalenCmdSendResponse,
       
    69     ECalenCmdShowAttendees,
       
    70     ECalenCmdSendAccept,
       
    71     ECalenCmdSendTentative,
       
    72     ECalenCmdSendDecline,
       
    73 
       
    74     /* End of common commands */ 
       
    75     ECalenCmdLast, 
       
    76     ECalenRegionalVariantCmdFirst = 100160 
       
    77     };
       
    78 
       
    79 enum TCalenDayViewCommands
       
    80     {
       
    81     ECalenCopyToCalendars = 100161
       
    82     };
       
    83 
       
    84 // Do not use this directly but through ItemToArrayIndex,
       
    85 // because regional variator can add their own setting items between
       
    86 // these setting items
       
    87 enum TSettingListItemId
       
    88     {
       
    89     ECalenSettingListItemIdHead = 6000,
       
    90     ECalenAlarmToneItemId,
       
    91     ECalenSnoozeTimeItemId,
       
    92     ECalenDefaultViewItemId,
       
    93     ECalenWeekFormatItemId,
       
    94     ECalenWeekTitleItemId,
       
    95     ECalenExtCalendarItemId,
       
    96     ECalenDefaultMailboxId,
       
    97     ECalenToolbarItemId,
       
    98     ECalenPluginListItemId,
       
    99     ECalenInfoBarPluginsItemId,
       
   100     ECalenRegionalVariantSettingListItemIdFirst = 6020
       
   101     };
       
   102 
       
   103 
       
   104 // Assume there are less than 1000 Uikon controls, 
       
   105 // and they can't be defined anywhere else.
       
   106 
       
   107 enum TCustomControl
       
   108     {
       
   109     ECalenCtrlTypeSettingItemList = 1000,
       
   110     ECalenRegionalVariantCustomControlFirst
       
   111     };
       
   112 
       
   113 
       
   114 enum CCalenSettingFormCtls
       
   115     {
       
   116     ECalenSettingItemList = 10100
       
   117     };
       
   118 
       
   119 
       
   120 /* Constants */
       
   121 
       
   122 enum TCalenMinTime
       
   123     {
       
   124     ECalenMinDay = 0,
       
   125     ECalenMinMonth = 0,
       
   126     ECalenMinYear = 1900,
       
   127     ECalenMinSecond = 0,
       
   128     ECalenMinMinute = 0,
       
   129     ECalenMinHour = 0,
       
   130     ECalenMinAnnivYear = 1900
       
   131     };
       
   132 
       
   133 enum TCalenMaxTime
       
   134     {
       
   135     ECalenMaxDay = 29,
       
   136     ECalenMaxMonth = 11,
       
   137     ECalenMaxYear = 2100,
       
   138     ECalenMaxSecond = 59,
       
   139     ECalenMaxMinute = 59,
       
   140     ECalenMaxHour = 23,
       
   141     ECalenMaxAnnivYear = 2100
       
   142     };
       
   143 
       
   144 enum TCalenOthers
       
   145     {
       
   146     ECalenCharsInLine = 200
       
   147     };
       
   148 
       
   149 
       
   150 enum // TCalenRepeat
       
   151     {
       
   152     ECalenRepeatThis,
       
   153     ECalenRepeatAll,
       
   154     ECalenRepeatThisFuture,
       
   155     ECalenRepeatThisPast
       
   156     };
       
   157 
       
   158 enum // TTodoPriority
       
   159     {
       
   160     ETodoPriorityHigh = 1,
       
   161     ETodoPriorityNormal,
       
   162     ETodoPriorityLow
       
   163     };
       
   164 enum //
       
   165     {
       
   166     ECalenCmdEdit = 1,
       
   167     ECalenCmdAdd,
       
   168     ECalenCmdDelete,
       
   169     ECalenCmdItemSelect,
       
   170     ECalenCmdItemDeselect,
       
   171     ECalenCmdShow,
       
   172     ECalenCmdHide
       
   173     };
       
   174 
       
   175 enum
       
   176     {
       
   177     ECalenMultiDbName = 5000,
       
   178     ECalenMultiDbColor,
       
   179     ECalenMultiDbPublicPrivate,
       
   180     ECalenMultiDbHiddenVisible,
       
   181     ECalenMultiDbSyncStatus
       
   182     };
       
   183 
       
   184  enum
       
   185     {
       
   186     ECalenMultiDbHelp = 1,
       
   187     ECalenMultiDbExit
       
   188     };
       
   189  
       
   190  enum TCalenAttachmentCommands
       
   191      {
       
   192      ECalenAddImage,
       
   193      ECalenAddNote,
       
   194      ECalenAddAudio,
       
   195      ECalenAddVideo,
       
   196      ECalenAddOtherFiles,
       
   197      ECalenViewAttachmentCmdOpen,
       
   198      ECalenViewAttachmentCmdSave,
       
   199      ECalenViewAttachmentCmdRemove,
       
   200      ECalenViewAttachmentAdd,
       
   201      ECalenViewAttachmentCmdFetch,
       
   202      ECalenViewerCmdAttachmentCmdExit
       
   203      };
       
   204  
       
   205  // dialog control ids.
       
   206  enum TCalenAttachmentDlgCtrlIds
       
   207      {
       
   208      ECalenAttachmentListBoxId = 1,
       
   209      ECalenCannotOpenNoteId,
       
   210      ECalenSavedNoteId,
       
   211      ECalenWaitNoteId
       
   212      };
       
   213  
       
   214  // custom control types.
       
   215  enum TCalenAttachmentDlgCustomControls
       
   216      {
       
   217      ECalenAttachmentListBox = 0x2001
       
   218      };
       
   219  
       
   220 #define CALEN_VIEW_CYCLING_NEXT '#'
       
   221 #define CALEN_VIEW_CYCLING_PREV '*'
       
   222 
       
   223 // Event colours
       
   224 #define cell_cale_public_event_c   210  // blue
       
   225 #define cell_cale_private_event_c   35  // red
       
   226 #define cell_cale_unsynch_event_c   14  // light red (dimmed 35)
       
   227 #define cell_cale_many_event_c     107  // dark red
       
   228 #define cell_cale_grayed_event_c   221
       
   229 
       
   230 //Meeting Request Colours
       
   231 #define cell_cale_accepted_mr       210 // blue, RGB (0, 0, 255)
       
   232 #define cell_cale_tentative_mr      114 // light blue, RGB (102, 204, 255)
       
   233 #define cell_cale_cancelled_mr       35 // red, RGB (255, 0, 0)
       
   234 
       
   235  enum
       
   236      {
       
   237      /// Enable Ok button for calender selection dialog
       
   238      ECalenSelectCmdOk = 3000
       
   239      };
       
   240 
       
   241 #endif // end of CALENDAR_HRH
       
   242 
       
   243 
       
   244 // End of File