mpviewplugins/mpmediawallviewplugin/tsrc/unittest_mpmediawallview/stub/inc/mpcollectiontbonelistdatamodel.h
changeset 47 4cc1412daed0
child 51 560ce2306a17
equal deleted inserted replaced
45:612c4815aebe 47:4cc1412daed0
       
     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 mpmediawallview.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef MPCOLLECTIONTBONELISTDATAMODEL_H
       
    20 #define MPCOLLECTIONTBONELISTDATAMODEL_H
       
    21 
       
    22 #include <QAbstractListModel>
       
    23 
       
    24 class MpMpxCollectionData;
       
    25 class MpPlaybackData;
       
    26 
       
    27 class MpCollectionTBoneListDataModel : public QAbstractListModel
       
    28 {
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32 
       
    33     explicit MpCollectionTBoneListDataModel( MpMpxCollectionData *collectionData,
       
    34                 MpPlaybackData *playbackData = 0, QObject *parent = 0 );
       
    35     virtual ~MpCollectionTBoneListDataModel();
       
    36 
       
    37     int rowCount(const QModelIndex &parent=QModelIndex()) const;
       
    38     QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const;
       
    39 
       
    40 
       
    41 };
       
    42 
       
    43 #endif // MPCOLLECTIONTBONELISTDATAMODEL_H
       
    44