emailuis/nmhswidget/inc/nmhswidgetlistmodel.h
changeset 75 47d84de1c893
child 76 38bf5461e270
equal deleted inserted replaced
72:64e38f08e49c 75:47d84de1c893
       
     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 NMHSWIDGETLISTMODEL_H_
       
    19 #define NMHSWIDGETLISTMODEL_H_
       
    20 
       
    21 #include <QStandardItemModel>
       
    22 
       
    23 class NmMessageEnvelope;
       
    24 class NmHsWidgetListModelItem;
       
    25 
       
    26 class NmHsWidgetListModel : public QStandardItemModel
       
    27 {
       
    28 Q_OBJECT
       
    29 public:
       
    30 
       
    31     NmHsWidgetListModel(QObject *parent = 0);
       
    32     virtual ~NmHsWidgetListModel();
       
    33     QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
       
    34     void refresh(QList<NmMessageEnvelope*> &mailboxList);
       
    35 
       
    36 public slots:
       
    37 
       
    38 private:
       
    39     NmHsWidgetListModelItem *createMessageListModelItem(const NmMessageEnvelope* env);
       
    40 
       
    41 };
       
    42 
       
    43 #endif /* NMHSWIDGETLISTMODEL_H_ */