equal
deleted
inserted
replaced
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 FILEBROWSERMODELH_H_ |
|
19 #define FILEBROWSERMODELH_H_ |
|
20 |
|
21 #include <QAbstractListModel> |
|
22 |
|
23 // Forward declarations |
|
24 class EngineWrapper; |
|
25 class QModelIndex; |
|
26 class QFileIconProvider; |
|
27 |
|
28 class FileBrowserModel : public QAbstractListModel |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 explicit FileBrowserModel(EngineWrapper *engineWrapper, QObject *parent = 0); |
|
34 virtual ~FileBrowserModel(); |
|
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 /* FILEBROWSERMODELH_H_ */ |
|