camerauis/cameraxui/cxengine/src/cxestatemachinebase.cpp
changeset 45 24fd82631616
parent 28 3075d9b614e6
--- a/camerauis/cameraxui/cxengine/src/cxestatemachinebase.cpp	Thu Jul 15 01:55:05 2010 +0300
+++ b/camerauis/cameraxui/cxengine/src/cxestatemachinebase.cpp	Fri Jul 23 11:35:41 2010 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * Copyright (c) 2009-2010 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"
@@ -14,12 +14,12 @@
  * Description:
  *
  */
+
 #include "cxestatemachinebase.h"
 #include "cxutils.h"
-#include "cxeerrormappingsymbian.h"
 #include "cxestate.h"
 
-CxeStateMachineBase::CxeStateMachineBase( const char* stateMachineName ) :
+CxeStateMachineBase::CxeStateMachineBase(const char *stateMachineName) :
     mStateBitsUsed(0), mStateId(0), mName(stateMachineName)
 {
 }
@@ -30,7 +30,7 @@
     mStates.clear();
 }
 
-bool CxeStateMachineBase::addState( CxeState* state )
+bool CxeStateMachineBase::addState(CxeState *state)
 {
     bool success( state // non-null state object
                && state->stateId() // state id is not zero
@@ -46,7 +46,7 @@
     return success;
 }
 
-bool CxeStateMachineBase::setState( int stateId, int error )
+bool CxeStateMachineBase::setState(int stateId, CxeError::Id error)
 {
     bool success = true;
 
@@ -76,13 +76,13 @@
 
     if (success) {
         mStateId = stateId;
-        handleStateChanged(mStateId, CxeErrorHandlingSymbian::map(error));
+        handleStateChanged(mStateId, error);
     }
 
     return success;
 }
 
-bool CxeStateMachineBase::setInitialState( int stateId )
+bool CxeStateMachineBase::setInitialState(int stateId)
 {
     bool success = mStates.contains(stateId);
 
@@ -113,7 +113,7 @@
     return mStateId;
 }
 
-bool CxeStateMachineBase::verifyStateChange( int newStateId )
+bool CxeStateMachineBase::verifyStateChange(int newStateId)
 {
     bool allowStateChange = false;
 
@@ -126,7 +126,3 @@
 
     return allowStateChange;
 }
-
-
-
-