homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenumodetransition.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 02 Sep 2010 20:17:27 +0300
changeset 85 35368b604b28
parent 46 23b5d6a29cce
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description: Hs Menu Mode Transition.
 *
 */

#ifndef HSMENUMODETRANSITION_H
#define HSMENUMODETRANSITION_H

#include <QAbstractTransition>
#include "hsapp_defs.h"

class QState;
class HsMenuModeWrapper;

class HsMenuModeTransition: public QAbstractTransition
{

public:

    HsMenuModeTransition(
        HsMenuModeWrapper &menuMode, Hs::HsMenuMode expectedMode, QState *target);

    bool eventTest(QEvent *event);

    void onTransition(QEvent *event);

private:

    HsMenuModeWrapper &mMenuMode;
    const Hs::HsMenuMode mExpectedMenuMode;
};

#endif //HSMENUMODETRANSITION_H