mpviewplugins/mpcollectionviewplugin/tsrc/unittest_mpcollectioncontainers/stub/inc/mpcollectiontbonelistdatamodel.h
branchRCL_3
changeset 52 14979e23cb5e
child 55 f3930dda3342
equal deleted inserted replaced
50:26a1709b9fec 52:14979e23cb5e
       
     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 #ifndef MPCOLLECTIONTBONELISTDATAMODEL_H
       
    20 #define MPCOLLECTIONTBONELISTDATAMODEL_H
       
    21 
       
    22 #include <QAbstractListModel>
       
    23 
       
    24 class MpMpxCollectionData;
       
    25 
       
    26 class MpCollectionTBoneListDataModel : public QAbstractListModel
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31 
       
    32     explicit MpCollectionTBoneListDataModel( MpMpxCollectionData *data, QObject *parent=0 );
       
    33     virtual ~MpCollectionTBoneListDataModel();
       
    34 
       
    35     int rowCount(const QModelIndex &parent=QModelIndex()) const;
       
    36     QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const;
       
    37 
       
    38 public slots:
       
    39 
       
    40     void refreshModel();
       
    41 
       
    42 private:
       
    43 
       
    44     MpMpxCollectionData             *mCollectionData;   // Not own
       
    45     int                             mRowCount;
       
    46 
       
    47 };
       
    48 
       
    49 #endif // MPCOLLECTIONTBONELISTDATAMODEL_H
       
    50