camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakeautofocuscontrol.cpp
changeset 43 0e652f8f1fbd
parent 19 d9aefe59d544
child 51 ccc0e7e3344f
equal deleted inserted replaced
28:3075d9b614e6 43:0e652f8f1fbd
     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".
    33 CxeFakeAutoFocusControl::~CxeFakeAutoFocusControl()
    33 CxeFakeAutoFocusControl::~CxeFakeAutoFocusControl()
    34 {
    34 {
    35     CX_DEBUG_IN_FUNCTION();
    35     CX_DEBUG_IN_FUNCTION();
    36 }
    36 }
    37 
    37 
    38 CxeError::Id CxeFakeAutoFocusControl::start()
    38 CxeError::Id CxeFakeAutoFocusControl::start(bool soundEnabled)
    39 {
    39 {
    40     CX_DEBUG_IN_FUNCTION();
    40     CX_DEBUG_IN_FUNCTION();
    41     return CxeError::None;
    41     return CxeError::None;
    42 }
    42 }
    43 
    43 
    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
       
    69 {
       
    70     return true;
       
    71 }
       
    72 
       
    73 bool CxeFakeAutoFocusControl::isSoundEnabled() const
    63 {
    74 {
    64     return true;
    75     return true;
    65 }
    76 }
    66 
    77 
    67 CxeAutoFocusControl::State CxeFakeAutoFocusControl::state() const
    78 CxeAutoFocusControl::State CxeFakeAutoFocusControl::state() const