filebrowser/ui/inc/fbfilemodel.h
branchRCL_3
changeset 22 fad26422216a
parent 21 b3cee849fa46
child 23 f8280f3bfeb7
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
     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 FBFILEMODELH_H_
       
    19 #define FBFILEMODELH_H_
       
    20 
       
    21 #include <QAbstractListModel>
       
    22 
       
    23 // Forward declarations
       
    24 class EngineWrapper;
       
    25 class QModelIndex;
       
    26 class QFileIconProvider;
       
    27 
       
    28 class FbFileModel : public QAbstractListModel
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     explicit FbFileModel(EngineWrapper *engineWrapper, QObject *parent = 0);
       
    34     virtual ~FbFileModel();
       
    35 
       
    36     int rowCount(const QModelIndex &parent = QModelIndex()) const;
       
    37     QVariant data(const QModelIndex &index, int role) const;
       
    38     QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
       
    39 
       
    40 private:
       
    41     EngineWrapper *mEngineWrapper;
       
    42     QFileIconProvider *mFileIconProvider;
       
    43 };
       
    44 
       
    45 
       
    46 
       
    47 #endif /* FBFILEMODELH_H_ */