mpviewplugins/mpsettingsviewplugin/inc/mpsettingsviewplugin.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 playback view.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPSETTINGSVIEWPLUGIN_H
       
    19 #define MPSETTINGSVIEWPLUGIN_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <mpxviewpluginqt.h>
       
    23 
       
    24 //forward declartions
       
    25 class MpSettingsView;
       
    26 
       
    27 //class declaration
       
    28 class MpSettingsViewPlugin : public MpxViewPlugin
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     explicit MpSettingsViewPlugin();
       
    34     virtual ~MpSettingsViewPlugin();
       
    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     MpSettingsView    *mView; //owned
       
    52     State             mState;
       
    53 };
       
    54 
       
    55 #endif  // MPSETTINGSVIEWPLUGIN_H
       
    56