camerauis/cameraxui/cxengine/src/cxestatemachine.cpp
changeset 19 d9aefe59d544
child 45 24fd82631616
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     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 #include "cxestatemachine.h"
       
    18 #include "cxestate.h"
       
    19 #include "cxutils.h"
       
    20 
       
    21 CxeStateMachine::CxeStateMachine( const char* stateMachineName ) :
       
    22     CxeStateMachineBase(stateMachineName)
       
    23 {
       
    24 }
       
    25 
       
    26 CxeStateMachine::~CxeStateMachine()
       
    27 {
       
    28 
       
    29 }
       
    30 
       
    31 bool CxeStateMachine::addState( CxeState* state )
       
    32 {
       
    33     CX_DEBUG_ENTER_FUNCTION();
       
    34     bool success = CxeStateMachineBase::addState(state);
       
    35     CX_DEBUG_ASSERT(success);
       
    36     CX_DEBUG_EXIT_FUNCTION();
       
    37     return success;
       
    38 }
       
    39 
       
    40 bool CxeStateMachine::setState( int stateId, int error )
       
    41 {
       
    42     CX_DEBUG_ENTER_FUNCTION();
       
    43     bool success = CxeStateMachineBase::setState(stateId, error);
       
    44     CX_DEBUG_ASSERT(success);
       
    45     CX_DEBUG_EXIT_FUNCTION();
       
    46     return success;
       
    47 }
       
    48 
       
    49 bool CxeStateMachine::setInitialState( int stateId )
       
    50 {
       
    51     CX_DEBUG_ENTER_FUNCTION();
       
    52     bool success = CxeStateMachineBase::setInitialState(stateId);
       
    53     CX_DEBUG_ASSERT(success);
       
    54     CX_DEBUG_EXIT_FUNCTION();
       
    55     return success;
       
    56 }
       
    57 
       
    58 
       
    59 
       
    60 
       
    61