calendarui/inc/calencommon.h
branchRCL_3
changeset 65 12af337248b1
equal deleted inserted replaced
60:96907930389d 65:12af337248b1
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:  Header file for Calendar application's common includes.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CALENCOMMON_H
       
    20 #define CALENCOMMON_H
       
    21 
       
    22 #define CALEN_AGENDAVIEW_XML_FILE ":/xml/calenagendaview.docml"
       
    23 #define CALEN_AGENDAVIEW "agendaView"
       
    24 #define CALEN_AGENDAVIEW_WIDGET "agendaViewWidget"
       
    25 #define CALEN_AGENDAVIEW_LISTWIDGET "eventsList"
       
    26 #define CALEN_AGENDAVIEW_HEADING "headingWidget"
       
    27 #define CALEN_AGENDAVIEW_HEADING_REGIONALPLUGIN_WIDGET "headingRegionalPluginWidget"
       
    28 #define CALEN_AGENDAVIEW_MENU_NEW_EVENT "newEventAction"
       
    29 #define CALEN_AGENDAVIEW_MENU_GO_TO_TODAY "todayAction"
       
    30 #define CALEN_AGENDAVIEW_MENU_GO_TO_DATE "goToDateAction"
       
    31 #define CALEN_AGENDAVIEW_MENU_SWITCH_TO_DAYVIEW "switchToDayViewAction"
       
    32 #define CALEN_AGENDAVIEW_MENU_SETTINGS "settingsAction"
       
    33 #define CALEN_PORTRAIT "portrait"
       
    34 #define CALEN_LANDSCAPE "landscape"
       
    35 #define CALEN_MONTHVIEW_XML_FILE ":/xml/calenmonthview.docml"
       
    36 #define CALEN_MONTHVIEW "monthView"
       
    37 #define CALEN_MONTHVIEW_EXCEPT_PANE "monthViewExceptPreviewPane"
       
    38 #define CALEN_MONTH_TITLE "monthTitle"
       
    39 #define CALEN_DAYNAMES_WIDGET "dayNamesWidget"
       
    40 #define CALEN_MONTHGRID "monthGrid"
       
    41 #define CALEN_PREVPANELAYOUT "prevPaneLayout"
       
    42 #define CALEN_PREVPREVIEWPARENT "prevPaneWidget"
       
    43 #define CALEN_CURRPREVIEWPARENT "currPaneWidget"
       
    44 #define CALEN_NEXTPREVIEWPARENT "nextPaneWidget"
       
    45 #define CALEN_PREVREGIONALINFO "prevRegionalInfo"
       
    46 #define CALEN_CURRREGIONALINFO "currRegionalInfo"
       
    47 #define CALEN_NEXTREGIONALINFO "nextRegionalInfo"
       
    48 #define CALEN_NEXTPANELAYOUT "nextPaneLayout"
       
    49 #define CALEN_CURRPANELAYOUT "currPaneLayout"
       
    50 #define CALEN_PREVPREVIEWPANE "prevPreviewPane"
       
    51 #define CALEN_CURRPREVIEWPANE "currPreviewPane"
       
    52 #define CALEN_NEXTPREVIEWPANE "nextPreviewPane"
       
    53 #define CALEN_NOENTRIES_LABEL_PREV "NoEntriesLabelPrev"
       
    54 #define CALEN_NOENTRIES_LABEL_CURR "NoEntriesLabelCurr"
       
    55 #define CALEN_NOENTRIES_LABEL_NEXT "NoEntriesLabelNext"
       
    56 #define CALEN_PREVIEWPANE_TITLE "previewPaneTitle"
       
    57 #define CALEN_PREVIEWPANE_LISTWIDGET "listWidget"
       
    58 #define CALEN_WEEKNUMBERS_WIDGET "weekNumbersWidget"
       
    59 #define CALEN_MONTHGRID_WEEKNUMBERS_WIDGET "monthGridWeekNumWidget"
       
    60 #define CALEN_MONTVIEW_DELETE_SUBMENU "deleteSubMenu"
       
    61 #define CALEN_MONTVIEW_MENU_NEWEVENT "NewEventAction"
       
    62 #define CALEN_MONTVIEW_MENU_GOTOTODAY "goToTodayAction"
       
    63 #define CALEN_MONTVIEW_MENU_GOTODATE "goToDateAction"
       
    64 #define CALEN_MONTVIEW_MENU_BEFOREDATE "beforeDateAction"
       
    65 #define CALEN_MONTVIEW_MENU_ALLENTRIES "allEntriesAction"
       
    66 #define CALEN_MONTVIEW_MENU_SETTINGS "settingsAction"
       
    67 #define CALEN_MONTVIEW_FIRST_DAY_LABEL "firstDayLabel"
       
    68 #define CALEN_MONTVIEW_SECOND_DAY_LABEL "secondDayLabel"
       
    69 #define CALEN_MONTVIEW_THIRD_DAY_LABEL "thirdDayLabel"
       
    70 #define CALEN_MONTVIEW_FOURTH_DAY_LABEL "fourthDayLabel"
       
    71 #define CALEN_MONTVIEW_FIFTH_DAY_LABEL "fifthDayLabel"
       
    72 #define CALEN_MONTVIEW_SIXTH_DAY_LABEL "sixthDayLabel"
       
    73 #define CALEN_MONTVIEW_SEVENTH_DAY_LABEL "seventhDayLabel"
       
    74 #define CALEN_MONTVIEW_FIRST_WEEK_LABEL "firstWeekLabel"
       
    75 #define CALEN_MONTVIEW_SECOND_WEEK_LABEL "secondWeekLabel"
       
    76 #define CALEN_MONTVIEW_THIRD_WEEK_LABEL "thirdWeekLabel"
       
    77 #define CALEN_MONTVIEW_FOURTH_WEEK_LABEL "fourthWeekLabel"
       
    78 #define CALEN_MONTVIEW_FIFTH_WEEK_LABEL "fifthWeekLabel"
       
    79 #define CALEN_MONTVIEW_SIXTH_WEEK_LABEL "sixthWeekLabel"
       
    80 
       
    81 #define CALEN_DAYVIEW_DOCML ":/xml/calendayview.docml"
       
    82 #define CALEN_DAYVIEW "dayView"
       
    83 #define CALEN_DAYVIEW_DAYINFO "dayViewDayInfo"
       
    84 #define CALEN_DAYVIEW_CONTENTWIDGET "dayViewContentWidget"
       
    85 #define CALEN_DAYVIEW_HOURSCROLLAREA "dayViewHourScrollArea"
       
    86 #define CALEN_DAYVIEW_CONTENTSCROLLAREA "dayViewContentScrollArea"
       
    87 
       
    88 /*!
       
    89 	\class CalendarNamespace
       
    90 
       
    91 	This will have all the common enums and declarations needed by the calendar
       
    92 	application.
       
    93  */
       
    94 class CalendarNamespace {
       
    95 
       
    96 public:
       
    97 	/*!
       
    98 		\enum DataRole
       
    99 	 */
       
   100 	enum DataRole {
       
   101 		CalendarMonthDayRole ,
       
   102 		CalendarMonthFocusRole,
       
   103 		CalendarMonthUnderlineRole,
       
   104 		CalendarMonthEventRole,
       
   105 		CalendarMonthTextColorRole		
       
   106 	};
       
   107 	
       
   108 	/*!
       
   109 	   \enum widgetType
       
   110 	 */
       
   111 	enum WidgetType {
       
   112 	    CalenDayNameWidget = 0,
       
   113 	    CalenWeekNumWidget
       
   114 	};
       
   115 };
       
   116 #endif // CALENCOMMON_H
       
   117 
       
   118 // End of file	--Don't remove this.