mpviewplugins/mpmediawallviewplugin/tsrc/unittest_mpmediawallview/stub/inc/mpmpxcollectiondata.h
changeset 48 af3740e3753f
child 51 560ce2306a17
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 mpmediawallview
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPMPXCOLLECTIONDATA_H
       
    19 #define MPMPXCOLLECTIONDATA_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "mpmpxcollectionviewdefs.h"
       
    23 
       
    24 class CMPXMedia;
       
    25 
       
    26 class MpMpxCollectionData : public QObject
       
    27 {
       
    28 
       
    29 public:
       
    30 
       
    31     enum DataType {
       
    32         Title,
       
    33         Uri,
       
    34         Duration,
       
    35         Count,
       
    36         Artist,
       
    37         Album,
       
    38         Genre,
       
    39         Rating,
       
    40         AlbumArtUri
       
    41     };
       
    42 
       
    43     // Stub functions
       
    44     explicit MpMpxCollectionData( QObject *parent=0 );
       
    45     virtual ~MpMpxCollectionData();
       
    46     void setCount(int count);
       
    47 
       
    48     TCollectionContext context();
       
    49 
       
    50     int count() const;
       
    51     QString collectionTitle() const;
       
    52     QString itemData( int index, MpMpxCollectionData::DataType type ) const;
       
    53     void setContext( TCollectionContext context );
       
    54     int itemIndex( int itemUniqueId );    
       
    55     bool setCurrentAlbum( int index );
       
    56 
       
    57     const CMPXMedia& containerMedia();
       
    58 
       
    59 public:
       
    60 
       
    61     CMPXMedia               *mContainerMedia;
       
    62     bool                    mMediaSet;
       
    63     TCollectionContext      mContext;
       
    64     int                     mCount;
       
    65     int                     mCurrentAlbumIndex;
       
    66     bool                    mCurrentAlbumAvailable;
       
    67     bool                    mReturnCollectionTitle;
       
    68 
       
    69 };
       
    70 
       
    71 #endif // MPMPXCOLLECTIONDATA_H
       
    72