mpviewplugins/mpcollectionviewplugin/tsrc/unittest_mpcollectioncontainers/stub/inc/mpcollectiondatamodel.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: Music Player collection abstract data model stub for testing |
|
15 * mpcollectioncontainers. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef MPCOLLECTIONDATAMODEL_H |
|
20 #define MPCOLLECTIONDATAMODEL_H |
|
21 |
|
22 #include <QAbstractListModel> |
|
23 |
|
24 class MpMpxCollectionData; |
|
25 class MpCollectionAlbumArtManager; |
|
26 |
|
27 |
|
28 class MpCollectionDataModel : public QAbstractListModel |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 explicit MpCollectionDataModel( MpMpxCollectionData *data, QObject *parent=0 ); |
|
35 virtual ~MpCollectionDataModel(); |
|
36 |
|
37 int rowCount(const QModelIndex &parent=QModelIndex()) const; |
|
38 QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const; |
|
39 |
|
40 void refreshModel(); |
|
41 MpMpxCollectionData *collectionData(); |
|
42 |
|
43 public: |
|
44 |
|
45 MpMpxCollectionData *mCollectionData; |
|
46 int mRowCount; |
|
47 bool mCachingInProgress; |
|
48 |
|
49 }; |
|
50 |
|
51 #endif // MPCOLLECTIONDATAMODEL_H |
|
52 |