homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenumodetransition.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:43:04 +0300
changeset 46 23b5d6a29cce
parent 35 f9ce957a272c
child 81 7dd137878ff8
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
 * 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, HsMenuMode expectedMode, QState *target);

    bool eventTest(QEvent *event);

    void onTransition(QEvent *event);

private:

    HsMenuModeWrapper &mMenuMode;
    const HsMenuMode mExpectedMenuMode;
};

#endif //HSMENUMODETRANSITION_H