homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsmenuworkerstate.h
branchRCL_3
changeset 82 5f0182e07bfb
equal deleted inserted replaced
79:f00a6757af32 82:5f0182e07bfb
       
     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:
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSMENUWORKERSTATE_H
       
    19 #define HSMENUWORKERSTATE_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QState>
       
    23 #include <QStateMachine>
       
    24 #include <hsmenuevent.h>
       
    25 
       
    26 #include "hsmenustates_global.h"
       
    27 HS_STATES_TEST_CLASS(MenuStatesTest)
       
    28 
       
    29 class HsMenuWorkerState: public QState
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
       
    34 
       
    35 public:
       
    36 
       
    37     HsMenuWorkerState(QState *parent = 0);
       
    38 
       
    39     virtual ~HsMenuWorkerState();
       
    40     
       
    41 signals:
       
    42 
       
    43     void reset();    
       
    44 
       
    45 private:
       
    46 
       
    47     void construct();
       
    48 
       
    49     template<class T>
       
    50     T *createChildState(HsMenuEvent::OperationType operation);
       
    51 
       
    52 private:
       
    53 
       
    54     QState *mInitialState;
       
    55 
       
    56 };
       
    57 
       
    58 #endif //HSMenuWorkerState_H