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