camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp
changeset 39 c5025ea871a1
parent 38 0f0b4c1d7744
child 40 2922f70fca82
equal deleted inserted replaced
38:0f0b4c1d7744 39:c5025ea871a1
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   802     mAfState = newState;
   802     mAfState = newState;
   803     CxeAutoFocusControl::Mode mode = mAutoFocusControl.mode();
   803     CxeAutoFocusControl::Mode mode = mAutoFocusControl.mode();
   804 
   804 
   805     // if focused and in correct mode, play sound
   805     // if focused and in correct mode, play sound
   806     if  (newState == CxeAutoFocusControl::Ready &&
   806     if  (newState == CxeAutoFocusControl::Ready &&
   807          mode != CxeAutoFocusControl::Hyperfocal &&
   807          !mAutoFocusControl.isFixedFocusMode(mode) &&
   808          mode != CxeAutoFocusControl::Infinity &&
       
   809          mAutoFocusControl.isSoundEnabled()) {
   808          mAutoFocusControl.isSoundEnabled()) {
   810         mAutoFocusSoundPlayer->play();
   809         mAutoFocusSoundPlayer->play();
   811     }
   810     }
   812     CX_DEBUG_EXIT_FUNCTION();
   811     CX_DEBUG_EXIT_FUNCTION();
   813 }
   812 }