emailuis/nmhswidget/inc/nmhswidgetconsts.h
branchRCL_3
changeset 24 d189ee25cf9d
equal deleted inserted replaced
23:dcf0eedfc1a3 24:d189ee25cf9d
       
     1 /*
       
     2  * Copyright (c) 2010 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: 
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef NMHSWIDGETCONSTS_H
       
    19 #define NMHSWIDGETCONSTS_H
       
    20 
       
    21 /**************************************************
       
    22  * engine
       
    23  *************************************************/
       
    24 //Maximum amount of envelopes that can be provided to client in getData function
       
    25 //This is also the amount of envelopes that is kept in mData all the time
       
    26 const int KMaxNumberOfEnvelopesProvided = 3;
       
    27 //Maximum value for unread count
       
    28 const int KMaxUnreadCount = 999; 
       
    29 
       
    30 /**************************************************
       
    31  * nmhswidget
       
    32  *************************************************/
       
    33 /**  docml file including UI definitions */
       
    34 const QString KNmHsWidgetDocML = ":/docml/nmhswidget.docml";
       
    35 /** container widget including all UI components */
       
    36 const QString KNmHsWidgetMainContainer = "mainContainer";
       
    37 /** container widget including title row and content container */
       
    38 const QString KNmHsWidgetContainer = "nmhswidgetContainer";
       
    39 /** container widget including content (mail rows / no mails label */
       
    40 const QString KNmHsWidgetEmptySpaceContainer = "emptySpaceContainer";
       
    41 /** container widget including content (mail rows / no mails label */
       
    42 const QString KNmHsWidgetContentContainer = "mailRowContainer";
       
    43 /** no mails label - shown when inbox is empty */
       
    44 const QString KNmHsWidgetNoMailsLabel = "noMailsLabel";
       
    45 /** contents margin/spacing in all layouts / container widgets */
       
    46 const int KNmHsWidgetContentsMargin = 0;
       
    47 /** Widget's background image*/
       
    48 const QString KNmHsWidgetBackgroundImage = "qtg_fr_hswidget_normal";
       
    49 /** max number of mails shown in widget */
       
    50 const int KMaxNumberOfMailsShown = KMaxNumberOfEnvelopesProvided;
       
    51 /** Widget's localization file name*/
       
    52 const QString KNmHsWidgetLocFileName = "mailwidget_";
       
    53 /** Widget's localization file location*/
       
    54 const QString KNmHsWidgetLocLocation = "z:/resource/qt/translations/";
       
    55 /** Widget's state property values */
       
    56 const QString KNmHsWidgetStateCollapsed = "collapsed";
       
    57 const QString KNmHsWidgetStateExpanded = "expanded";
       
    58 
       
    59 /**************************************************
       
    60  * Title row widget
       
    61  *************************************************/
       
    62 /**  docml file including title row UI definitions */
       
    63 /**#define KNmHsWidgetTitleRowDocML ":/docml/nmhswidgettitle.docml" */
       
    64 /**  docml file including title row UI definitions */
       
    65 const QString KNmHsWidgetTitleRowContainer = "titleLayoutWidget";
       
    66 /** mailbox icon */
       
    67 const QString KNmHsWidgetTitleRowMailboxIcon = "mailboxIcon";
       
    68 /** mailbox name label */
       
    69 const QString KNmHsWidgetTitleRowMailboxNameLabel = "mailboxNameLabel";
       
    70 /** unread count label */
       
    71 const QString KNmHsWidgetTitleRowUnreadCountLabel = "unreadCountLabel";
       
    72 /** expand collapse icon */
       
    73 const QString KNmHsWidgetTitleRowCollapseExpandIconLabel = "collapseExpandIcon";
       
    74 
       
    75 /**************************************************
       
    76  * Mail row widget
       
    77  *************************************************/
       
    78 /**  docml file including mail row UI definitions */
       
    79 const QString KNmHsWidgetMailRowDocML = ":/docml/nmhswidgetmail.docml";
       
    80 /** container widget name for mail row UI items */
       
    81 const QString KNmHsWidgetMailRowContainer  = "emailLayoutWidget";
       
    82 /** sender label */
       
    83 const QString KNmHsWidgetMailRowSenderLabel = "labelSender";
       
    84 /** time label */
       
    85 const QString KNmHsWidgetMailRowTimeLabel = "labelTime";
       
    86 /** subject label */
       
    87 const QString KNmHsWidgetMailRowSubjectLabel = "labelSubject";
       
    88 /** new mail icon */
       
    89 const QString KNmHsWidgetMailRowNewMailIcon = "iconNewMail";
       
    90 /** left status icon */
       
    91 const QString KNmHsWidgetMailRowLeftIcon = "iconOne";
       
    92 /** middle status icon */
       
    93 const QString KNmHsWidgetMailRowMiddleIcon = "iconTwo";
       
    94 /** right status icon */
       
    95 const QString KNmHsWidgetMailRowRightIcon = "iconThree";
       
    96 /** separator icon */
       
    97 const QString KNmHsWidgetMailSeparatorIcon = "iconSeparator";
       
    98 
       
    99 
       
   100 #endif  // NMHSWIDGETCONSTS_H