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
|
|
15 |
* mpcollectioncontainers.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
#include "stub/inc/mpcollectiondatamodel.h"
|
|
21 |
#include "stub/inc/mpmpxcollectiondata.h"
|
|
22 |
|
|
23 |
|
|
24 |
/*!
|
|
25 |
Stub function
|
|
26 |
*/
|
|
27 |
MpCollectionDataModel::MpCollectionDataModel( MpMpxCollectionData *data, QObject *parent )
|
|
28 |
: QAbstractListModel(parent)
|
|
29 |
{
|
|
30 |
Q_UNUSED(data);
|
|
31 |
}
|
|
32 |
|
|
33 |
/*!
|
|
34 |
Stub function
|
|
35 |
*/
|
|
36 |
MpCollectionDataModel::~MpCollectionDataModel()
|
|
37 |
{
|
|
38 |
}
|
|
39 |
|
|
40 |
/*!
|
|
41 |
Stub function
|
|
42 |
*/
|
|
43 |
int MpCollectionDataModel::rowCount( const QModelIndex &parent ) const
|
|
44 |
{
|
|
45 |
Q_UNUSED(parent);
|
|
46 |
return 0;
|
|
47 |
}
|
|
48 |
|
|
49 |
/*!
|
|
50 |
Stub function
|
|
51 |
*/
|
|
52 |
QVariant MpCollectionDataModel::data(const QModelIndex &index, int role) const
|
|
53 |
{
|
|
54 |
Q_UNUSED(index);
|
|
55 |
Q_UNUSED(role);
|
|
56 |
return QVariant();
|
|
57 |
}
|
|
58 |
|
|
59 |
/*!
|
|
60 |
Stub function
|
|
61 |
*/
|
|
62 |
void MpCollectionDataModel::refreshModel()
|
|
63 |
{
|
|
64 |
}
|
|
65 |
|
|
66 |
/*!
|
|
67 |
Stub function
|
|
68 |
*/
|
|
69 |
MpMpxCollectionData *MpCollectionDataModel::collectionData()
|
|
70 |
{
|
|
71 |
return new MpMpxCollectionData();
|
|
72 |
}
|
|
73 |
|
|
74 |
/*!
|
|
75 |
Stub function
|
|
76 |
*/
|
|
77 |
void MpCollectionDataModel::setItemVisibility(const QModelIndex &index, bool visible)
|
|
78 |
{
|
|
79 |
Q_UNUSED(index);
|
|
80 |
Q_UNUSED(visible);
|
|
81 |
}
|