47
|
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;
|
51
|
26 |
class MpPlaybackData;
|
47
|
27 |
|
|
28 |
|
|
29 |
class MpCollectionDataModel : public QAbstractListModel
|
|
30 |
{
|
|
31 |
Q_OBJECT
|
|
32 |
|
|
33 |
public:
|
|
34 |
|
55
|
35 |
explicit MpCollectionDataModel( MpMpxCollectionData *data, MpPlaybackData *playbackData = 0,
|
|
36 |
QObject *parent=0 );
|
47
|
37 |
virtual ~MpCollectionDataModel();
|
|
38 |
|
|
39 |
int rowCount(const QModelIndex &parent=QModelIndex()) const;
|
|
40 |
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const;
|
|
41 |
void setItemVisibility(const QModelIndex &index, bool visible);
|
|
42 |
|
|
43 |
void refreshModel();
|
|
44 |
MpMpxCollectionData *collectionData();
|
|
45 |
|
|
46 |
};
|
|
47 |
|
|
48 |
#endif // MPCOLLECTIONDATAMODEL_H
|
|
49 |
|