mpviewplugins/mpcollectionviewplugin/inc/mpcollectioncontainerartists.h
branchRCL_3
changeset 52 14979e23cb5e
equal deleted inserted replaced
50:26a1709b9fec 52:14979e23cb5e
       
     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 container definition - Artists.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPCOLLECTIONCONTAINERARTISTS_H
       
    19 #define MPCOLLECTIONCONTAINERARTISTS_H
       
    20 
       
    21 #include "mpcollectionlistcontainer.h"
       
    22 
       
    23 class HgMediawall;
       
    24 class MpCollectionTBoneListDataModel;
       
    25 
       
    26 class MpCollectionContainerArtists : public MpCollectionListContainer
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31 
       
    32     explicit MpCollectionContainerArtists( HbDocumentLoader *loader, QGraphicsItem *parent=0 );
       
    33     virtual ~MpCollectionContainerArtists();
       
    34 
       
    35     void setDataModel( MpCollectionDataModel *dataModel );
       
    36 
       
    37 public slots:
       
    38 
       
    39     void itemActivated( const QModelIndex &index );
       
    40     void albumCentered( const QModelIndex &modelIndex);
       
    41     void dataReloaded();
       
    42     void albumDataChanged();
       
    43     void scrollingStarted();
       
    44     void albumDataAvailable();
       
    45 
       
    46 private:
       
    47 
       
    48     void setupContainer();
       
    49 
       
    50 private:
       
    51     
       
    52     HgMediawall                     *mTBone;            // Own
       
    53     MpCollectionTBoneListDataModel  *mTBoneListModel;   // Own
       
    54     int                             mCurrentArtistIndex;
       
    55     int                             mCurrentAlbumIndex;
       
    56     int                             mAlbumIndexOffset;
       
    57 
       
    58 };
       
    59 
       
    60 #endif  // MPCOLLECTIONCONTAINERARTISTS_H
       
    61