camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakeautofocuscontrol.cpp
changeset 39 c5025ea871a1
parent 38 0f0b4c1d7744
child 46 c826656d6714
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".
    57 CxeAutoFocusControl::Mode CxeFakeAutoFocusControl::mode() const
    57 CxeAutoFocusControl::Mode CxeFakeAutoFocusControl::mode() const
    58 {
    58 {
    59     return mAfMode;
    59     return mAfMode;
    60 }
    60 }
    61 
    61 
       
    62 bool CxeFakeAutoFocusControl::isFixedFocusMode(Mode mode) const
       
    63 {
       
    64     return (mode == CxeAutoFocusControl::Hyperfocal
       
    65          || mode == CxeAutoFocusControl::Infinity);
       
    66 }
       
    67 
    62 bool CxeFakeAutoFocusControl::supported() const
    68 bool CxeFakeAutoFocusControl::supported() const
    63 {
    69 {
    64     return true;
    70     return true;
    65 }
    71 }
    66 
    72