camerauis/cameraxui/cxui/tsrc/cxuifakeautofocuscontrol.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 53 61bc0f252b2b
child 57 2c87b2808fd7
--- a/camerauis/cameraxui/cxui/tsrc/cxuifakeautofocuscontrol.h	Tue Aug 31 15:03:46 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-/*
-* Copyright (c) 2009 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"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:
-*
-*/
-
-#ifndef CXUIFAKEAUTOFOCUSCONTROL_H
-#define CXUIFAKEAUTOFOCUSCONTROL_H
-
-#include "cxeautofocuscontrolsymbian.h"
-#include "cxestatemachine.h"
-
-//forward declarations
-class CxeCameraDevice;
-class CxeAutoFocusControlSymbian;
-
-
-/**
- * CxeAutoFocusControl is responsible for handling Autofocus events from the camera adaptation.
- * It also routes the Autofocus successful and failed events to the clients interested in Žknowing the
- * status of Autofocus.
- */
-class CxuiFakeAutoFocusControl : public CxeAutoFocusControlSymbian
-{
-    Q_OBJECT
-public:
-    
-    CxuiFakeAutoFocusControl( CxeCameraDevice &cameraDevice );
-    virtual ~CxuiFakeAutoFocusControl();
-
-    CxeError::Id  start();
-    void cancel();
-    void setMode( CxeAutoFocusControl::Mode newMode );
-    CxeAutoFocusControl::Mode mode() const;
-
-    CxeAutoFocusControl::State state() const;
-    bool supported() const;
-    int setFakeState(CxeAutoFocusControl::State);
-
-protected: // from CxeStateMachine    
-    void handleStateChanged( int newStateId, CxeError::Id error );
-
-
-private:
-    // handles to-do things if the event is AF event
-    void handleAfEvent(int eventUid, int error);
-
-private:
-    CxeCameraDevice &mCameraDevice;
-    CCamera::CCameraAdvancedSettings *mAdvancedSettings; // not owned
-    CxeAutoFocusControl::Mode mAfMode;
-    CCamera::CCameraAdvancedSettings::TFocusRange mAFRange;
-};
-
-#endif // CXUIFAKEAUTOFOCUSCONTROL_H