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 view common definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPMPXCOLLECTIONVIEWDEFS_H |
|
19 #define MPMPXCOLLECTIONVIEWDEFS_H |
|
20 |
|
21 #include <QMetaType> |
|
22 |
|
23 // Context of collection view. |
|
24 // It's the exact location within collection navigation. |
|
25 enum TCollectionContext { |
|
26 ECollectionContextUnknown = 0, |
|
27 ECollectionContextAllSongs, |
|
28 ECollectionContextAlbums, |
|
29 ECollectionContextAlbumSongs, |
|
30 ECollectionContextPlaylists, |
|
31 ECollectionContextPlaylistSongs, |
|
32 ECollectionContextGenres, |
|
33 ECollectionContextGenreSongs |
|
34 }; |
|
35 // Register so type can be used in signal and slot connection |
|
36 Q_DECLARE_METATYPE(TCollectionContext) |
|
37 |
|
38 #endif // MPMPXCOLLECTIONVIEWDEFS_H |
|
39 |
|