mpviewplugins/mpcollectionviewplugin/tsrc/unittest_mpcollectioncontainers/stub/src/mpcollectiontbonelistdatamodel.cpp
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 (for TBone) stub |
|
15 * for testing mpcollectioncontainers. |
|
16 * |
|
17 */ |
|
18 |
|
19 #include "stub/inc/mpcollectiontbonelistdatamodel.h" |
|
20 #include "stub/inc/mpmpxcollectiondata.h" |
|
21 #include "mptrace.h" |
|
22 |
|
23 /*! |
|
24 Stub function |
|
25 */ |
|
26 MpCollectionTBoneListDataModel::MpCollectionTBoneListDataModel( MpMpxCollectionData *data, QObject *parent ) |
|
27 : QAbstractListModel(parent), |
|
28 mCollectionData(data), |
|
29 mRowCount(0) |
|
30 { |
|
31 TX_LOG |
|
32 } |
|
33 |
|
34 /*! |
|
35 Stub function |
|
36 */ |
|
37 MpCollectionTBoneListDataModel::~MpCollectionTBoneListDataModel() |
|
38 { |
|
39 TX_LOG |
|
40 } |
|
41 |
|
42 /*! |
|
43 Stub function |
|
44 */ |
|
45 int MpCollectionTBoneListDataModel::rowCount( const QModelIndex &parent ) const |
|
46 { |
|
47 TX_LOG |
|
48 Q_UNUSED(parent); |
|
49 return mRowCount; |
|
50 } |
|
51 |
|
52 /*! |
|
53 Stub function |
|
54 */ |
|
55 QVariant MpCollectionTBoneListDataModel::data(const QModelIndex &index, int role) const |
|
56 { |
|
57 TX_ENTRY |
|
58 Q_UNUSED(index); |
|
59 Q_UNUSED(role); |
|
60 QVariant returnValue = QVariant(); |
|
61 TX_EXIT |
|
62 return returnValue; |
|
63 } |
|
64 |
|
65 /*! |
|
66 Stub function |
|
67 */ |
|
68 void MpCollectionTBoneListDataModel::refreshModel() |
|
69 { |
|
70 TX_LOG |
|
71 } |
|
72 |