mpviewplugins/mpcollectionviewplugin/inc/mpmpxcollectionviewdefs.h
changeset 22 ecf06a08d4d9
parent 20 82baf59ce8dd
child 23 d45f4c087764
child 25 3ec52facab4d
child 34 2c5162224003
equal deleted inserted replaced
20:82baf59ce8dd 22:ecf06a08d4d9
     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