mpviewplugins/mpmediawallviewplugin/inc/mpmediawallviewplugin.h
changeset 35 fdb31ab341af
equal deleted inserted replaced
34:2c5162224003 35:fdb31ab341af
       
     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 media wall view.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPMEDIAWALLVIEWPLUGIN_H
       
    19 #define MPMEDIAWALLVIEWPLUGIN_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <mpxviewpluginqt.h>
       
    23 
       
    24 //forward declartions
       
    25 class MpMediaWallView;
       
    26 
       
    27 //class declaration
       
    28 class MpMediaWallViewPlugin : public MpxViewPlugin
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     explicit MpMediaWallViewPlugin();
       
    34     virtual ~MpMediaWallViewPlugin();
       
    35 
       
    36     void createView();
       
    37     void destroyView();
       
    38     void activateView();
       
    39     void deactivateView();
       
    40     QGraphicsWidget *getView();
       
    41     
       
    42 signals:
       
    43     void command( int command );
       
    44 
       
    45 public slots:
       
    46     void orientationChange( Qt::Orientation orientation );
       
    47     void back();
       
    48 
       
    49 private:
       
    50     enum State { NullView, Created, Initialized, Activated };
       
    51     MpMediaWallView    *mView; //owned
       
    52     State             mState;
       
    53 };
       
    54 
       
    55 #endif  // MPMEDIAWALLVIEWPLUGIN_H
       
    56