camerauis/cameraxui/cxengine/inc/cxecameradevicecontrolsymbian.h
changeset 56 01e205c615b9
parent 19 d9aefe59d544
equal deleted inserted replaced
48:42ba2d16bf40 56:01e205c615b9
     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".
    16 */
    16 */
    17 #ifndef CXECAMERADEVICECONTROLSYMBIAN_H
    17 #ifndef CXECAMERADEVICECONTROLSYMBIAN_H
    18 #define CXECAMERADEVICECONTROLSYMBIAN_H
    18 #define CXECAMERADEVICECONTROLSYMBIAN_H
    19 
    19 
    20 //  Include Files
    20 //  Include Files
       
    21 #include <QTimer>
    21 
    22 
    22 #include "cxecameradevicecontrol.h"
    23 #include "cxecameradevicecontrol.h"
    23 #include "cxecameradevice.h"
    24 #include "cxecameradevice.h"
    24 #include "cxestatemachine.h"
    25 #include "cxestatemachine.h"
    25 #include "cxeerror.h"
    26 #include "cxeerror.h"
    75     void cameraEvent(int eventUid, int error); // ECam events
    76     void cameraEvent(int eventUid, int error); // ECam events
    76     void imageBufferReady(MCameraBuffer* buffer, int error);
    77     void imageBufferReady(MCameraBuffer* buffer, int error);
    77     void deviceReady(); // device is ready to prepared in either still or video mode
    78     void deviceReady(); // device is ready to prepared in either still or video mode
    78     void vfFrameReady(MCameraBuffer* buffer, int error);
    79     void vfFrameReady(MCameraBuffer* buffer, int error);
    79 
    80 
       
    81 private slots:
       
    82     void doReserve();
       
    83 
    80 protected: // Protected data so that unit test cases can replace
    84 protected: // Protected data so that unit test cases can replace
    81            // mCameraDevice with a fake implementation.
    85            // mCameraDevice with a fake implementation.
    82     CxeCameraDevice *mCameraDevice; // own
    86     CxeCameraDevice *mCameraDevice; // own
    83 
    87 
    84 protected: // data
    88 protected: // data
    85     Cxe::CameraIndex mCameraIndex;
    89     Cxe::CameraIndex mCameraIndex;
    86     Cxe::CameraMode  mCameraMode;
    90     Cxe::CameraMode  mCameraMode;
       
    91     QTimer mReserveTimer;
    87 };
    92 };
    88 
    93 
    89 #endif  // CXECAMERADEVICECONTROLSYMBIAN_H
    94 #endif  // CXECAMERADEVICECONTROLSYMBIAN_H
    90 
    95