mpviewplugins/mpcollectionviewplugin/inc/mpcollectionviewplugin.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: Plugin interface for Music Player collection view.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPCOLLECTIONVIEWPLUGIN_H
       
    19 #define MPCOLLECTIONVIEWPLUGIN_H
       
    20 
       
    21 
       
    22 #include <QObject>
       
    23 #include <mpxviewpluginqt.h>
       
    24 
       
    25 class MpCollectionView;
       
    26 
       
    27 
       
    28 class MpCollectionViewPlugin : public MpxViewPlugin
       
    29 {
       
    30     Q_OBJECT
       
    31     
       
    32 public:
       
    33 
       
    34     MpCollectionViewPlugin();
       
    35     virtual ~MpCollectionViewPlugin();
       
    36 
       
    37     void createView();
       
    38     void destroyView();
       
    39     void activateView();
       
    40     void deactivateView();
       
    41     QGraphicsWidget* getView();
       
    42 
       
    43 signals:
       
    44 
       
    45     void command( int command );
       
    46 
       
    47 public slots:
       
    48 
       
    49     void orientationChange( Qt::Orientation orientation );
       
    50     void back();
       
    51 
       
    52 private:
       
    53 
       
    54     enum State { NullView, Created, Initialized, Activated };
       
    55 
       
    56     MpCollectionView    *mView; // Own
       
    57     State               mState;
       
    58 
       
    59 };
       
    60 
       
    61 #endif  // MPCOLLECTIONVIEWPLUGIN_H
       
    62