camerauis/cameraxui/cxengine/inc/cxeviewfindercontroldesktop.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef CXEVIEWFINDERCONTROLDESKTOP_H_
       
    18 #define CXEVIEWFINDERCONTROLDESKTOP_H_
       
    19 
       
    20 #include "cxeviewfindercontrol.h"
       
    21 
       
    22 class CxeCameraDeviceDesktop;
       
    23 class CxeViewfinderWidgetDesktop;
       
    24 
       
    25 class CxeViewfinderControlDesktop : public CxeViewfinderControl
       
    26 {
       
    27     Q_OBJECT
       
    28 public:
       
    29 
       
    30     CxeViewfinderControlDesktop(CxeCameraDeviceDesktop &cameraDevice);
       
    31     virtual ~CxeViewfinderControlDesktop();
       
    32 
       
    33     virtual void setWindow(WId windowId);
       
    34 
       
    35     virtual CxeError::Id start();
       
    36     
       
    37     virtual void stop();
       
    38     
       
    39     virtual CxeViewfinderControl::State state() const;
       
    40 
       
    41     virtual QSize deviceDisplayResolution() const;
       
    42 
       
    43 private:
       
    44     State mState;
       
    45     WId mWindowId;
       
    46     QSize mResolution;
       
    47     CxeCameraDeviceDesktop &mCameraDevice;
       
    48     CxeViewfinderWidgetDesktop *mViewfinderWidget;
       
    49 
       
    50 };
       
    51 
       
    52 #endif /*CXEVIEWFINDERCONTROLDESKTOP_H_*/