emailuis/nmhswidget/inc/nmhswidgettitlerow.h
changeset 18 578830873419
child 23 2dc6caa42ec3
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     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 NMHSWIDGETTITLEROW_H_
       
    19 #define NMHSWIDGETTITLEROW_H_
       
    20 
       
    21 #include <hbwidget.h>
       
    22 
       
    23 //FORWARD DECLARATIONS:
       
    24 class HbLabel;
       
    25 
       
    26 class NmHsWidgetTitleRow : public HbWidget
       
    27 {
       
    28     Q_OBJECT
       
    29   
       
    30 public:
       
    31     NmHsWidgetTitleRow(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0);
       
    32     ~NmHsWidgetTitleRow();
       
    33     
       
    34 private:
       
    35     void loadDocML();
       
    36     void updateData();
       
    37     
       
    38 public slots: 
       
    39     void updateAccountName(const QString& accountName );
       
    40     void updateUnreadCount(const int& unreadCount );
       
    41 
       
    42 private:
       
    43     HbLabel *mMailboxIcon;
       
    44     HbLabel *mMailboxInfo;
       
    45     QString mAccountName;
       
    46     int mUnreadCount;
       
    47 };
       
    48 
       
    49 #endif // NMHSWIDGETTITLEROW_H_