mpengine/tsrc/unittest_mpengine/stub/inc/mpmpxcollectiondata.h
changeset 48 af3740e3753f
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
       
     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: MpMpxCollectionData stub for testing MpCollectionDataModel
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPMPXCOLLECTIONDATA_H
       
    19 #define MPMPXCOLLECTIONDATA_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include "mpmpxcollectionviewdefs.h"
       
    24 
       
    25 
       
    26 class MpMpxCollectionData : public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31 
       
    32     enum DataType {
       
    33         Title,
       
    34         Artist,
       
    35         Count,
       
    36         AlbumArtUri
       
    37     };
       
    38 
       
    39     // Stub functions
       
    40     explicit MpMpxCollectionData( QObject *parent=0 );
       
    41     virtual ~MpMpxCollectionData();
       
    42 
       
    43     TCollectionContext context() const;
       
    44     int count() const;
       
    45     QString itemData( int index, MpMpxCollectionData::DataType type ) const;
       
    46 
       
    47 signals:
       
    48 
       
    49     void contextChanged( TCollectionContext context );
       
    50 
       
    51 public:
       
    52 
       
    53     TCollectionContext      mContext;
       
    54     int                     mCount;
       
    55     bool                    mItemDataReturn;
       
    56 
       
    57 };
       
    58 
       
    59 #endif // MPMPXCOLLECTIONDATA_H
       
    60