camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp
changeset 24 2094593137f5
parent 21 fa6d9f75d6a6
child 29 699651f2666f
equal deleted inserted replaced
21:fa6d9f75d6a6 24:2094593137f5
   905 }
   905 }
   906 
   906 
   907 
   907 
   908 /*!
   908 /*!
   909 * Slot to handle Autofocus events.
   909 * Slot to handle Autofocus events.
       
   910 * \param newState Indicates current state of the auto focus
       
   911 * \param error Contains possible error code
   910 */
   912 */
   911 void CxeStillCaptureControlSymbian::handleAutofocusStateChanged(
   913 void CxeStillCaptureControlSymbian::handleAutofocusStateChanged(
   912                                          CxeAutoFocusControl::State newState,
   914                                          CxeAutoFocusControl::State newState,
   913                                          CxeError::Id /*error*/ )
   915                                          CxeError::Id error )
   914 {
   916 {
   915     CX_DEBUG_ENTER_FUNCTION();
   917     CX_DEBUG_ENTER_FUNCTION();
       
   918     Q_UNUSED(error);
   916     mAfState = newState;
   919     mAfState = newState;
   917     CxeAutoFocusControl::Mode mode = mAutoFocusControl.mode();
   920     CxeAutoFocusControl::Mode mode = mAutoFocusControl.mode();
   918 
   921 
   919     // if focused and in correct mode, play sound
   922     // if focused and in correct mode, play sound
   920     if  (newState == CxeAutoFocusControl::Ready &&
   923     if  (newState == CxeAutoFocusControl::Ready &&
   921          mode != CxeAutoFocusControl::Hyperfocal &&
   924          mode != CxeAutoFocusControl::Hyperfocal &&
   922          mode != CxeAutoFocusControl::Infinity) {
   925          mode != CxeAutoFocusControl::Infinity &&
       
   926          mAutoFocusControl.isSoundEnabled()) {
   923         mAutoFocusSoundPlayer->play();
   927         mAutoFocusSoundPlayer->play();
   924     }
   928     }
   925     CX_DEBUG_EXIT_FUNCTION();
   929     CX_DEBUG_EXIT_FUNCTION();
   926 }
   930 }
   927 
   931