|
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 mpcollectioncontainers |
|
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 |
|
47 TCollectionContext context(); |
|
48 |
|
49 int count() const; |
|
50 QString collectionTitle() const; |
|
51 QString itemData( int index, MpMpxCollectionData::DataType type ) const; |
|
52 |
|
53 bool setCurrentAlbum( int index ); |
|
54 int albumSongsCount() const; |
|
55 |
|
56 const CMPXMedia& containerMedia(); |
|
57 |
|
58 public: |
|
59 |
|
60 CMPXMedia *mContainerMedia; |
|
61 bool mMediaSet; |
|
62 TCollectionContext mContext; |
|
63 int mCount; |
|
64 int mAlbumSongsCount; |
|
65 int mCurrentAlbumIndex; |
|
66 bool mCurrentAlbumAvailable; |
|
67 bool mReturnCollectionTitle; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif // MPMPXCOLLECTIONDATA_H |
|
72 |