homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenumodetransition.h
changeset 35 f9ce957a272c
child 46 23b5d6a29cce
equal deleted inserted replaced
5:c743ef5928ba 35:f9ce957a272c
       
     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: Hs Menu Mode Transition.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSMENUMODETRANSITION_H
       
    19 #define HSMENUMODETRANSITION_H
       
    20 
       
    21 #include <QAbstractTransition>
       
    22 #include "hsmenuview.h"
       
    23 
       
    24 class QState;
       
    25 
       
    26 class HsMenuModeTransition: public QAbstractTransition
       
    27 {
       
    28 
       
    29 public:
       
    30 
       
    31     HsMenuModeTransition(
       
    32         HsMenuView &menuView, HsMenuMode menuMode, QState *target);
       
    33 
       
    34     bool eventTest(QEvent *event);
       
    35 
       
    36     void onTransition(QEvent *event);
       
    37 
       
    38 private:
       
    39 
       
    40     HsMenuView &mMenuView;
       
    41     HsMenuMode mMode;
       
    42 };
       
    43 
       
    44 #endif //HSMENUMODETRANSITION_H