mpviewplugins/mpmediawallviewplugin/tsrc/unittest_mpmediawallview/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 mpmediawallview. |
|
15 * |
|
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 void setItemVisibility(const QModelIndex &index, bool visible); |
|
40 |
|
41 void refreshModel(); |
|
42 MpMpxCollectionData *collectionData(); |
|
43 |
|
44 }; |
|
45 |
|
46 #endif // MPCOLLECTIONDATAMODEL_H |
|
47 |