camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxestatemachine/cxestatemachineunit.cpp
changeset 19 d9aefe59d544
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     1 /*
       
     2 * Copyright (c) 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 "cxestatemachineunit.h"
       
    19 #include "cxeerror.h"
       
    20 
       
    21 CxeStateMachineUnit::CxeStateMachineUnit( const char *stateMachineName ) :
       
    22     CxeStateMachineBase(stateMachineName),
       
    23     mHandleStateChangedCounter(0),
       
    24     mStateChangeErrorId(CxeError::None),
       
    25     mStateChangeStateId(-1)
       
    26 {
       
    27 
       
    28 }
       
    29 CxeStateMachineUnit::~CxeStateMachineUnit()
       
    30 {
       
    31 
       
    32 }
       
    33 
       
    34 void CxeStateMachineUnit::handleStateChanged( int newStateId, CxeError::Id error )
       
    35 {
       
    36     mHandleStateChangedCounter++;
       
    37     mStateChangeErrorId = error;
       
    38     mStateChangeStateId = newStateId;
       
    39 }