diff -r e7aa27f58ae1 -r 578830873419 emailuis/nmailuiengine/inc/nmfolderlistmodel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailuis/nmailuiengine/inc/nmfolderlistmodel.h Fri Apr 16 14:51:52 2010 +0300 @@ -0,0 +1,44 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef NMFOLDERLISTMODEL_H_ +#define NMFOLDERLISTMODEL_H_ + +#include + +class NmFolder; +class NmFolderListModelPrivate; +class NmDataManager; + +class NMUIENGINE_EXPORT NmFolderListModel : public QAbstractListModel +{ +public: + + NmFolderListModel(NmDataManager &dataManager, QObject *parent = 0); + virtual ~NmFolderListModel(); + QModelIndex parent(const QModelIndex &child) const; + int rowCount(const QModelIndex &parent = QModelIndex()) const; + int columnCount(const QModelIndex &parent = QModelIndex()) const; + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; + void refresh(QList &folderList); + +private: + NmDataManager &mDataManager; // not owned + NmFolderListModelPrivate *d; // owned +}; + +#endif /* NMFOLDERLISTMODEL_H_ */