camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxeenginesymbian/cxeenginesymbianunit.cpp
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009-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 #include "cxeenginesymbianunit.h"
       
    18 
       
    19 #include "cxefakecameradevicecontrol.h"
       
    20 #include "cxefakesettings.h"
       
    21 #include "cxefakefeaturemanager.h"
       
    22 #include "cxefakeautofocuscontrol.h"
       
    23 #include "cxefakestillcapturecontrol.h"
       
    24 #include "cxefakevideocapturecontrol.h"
       
    25 #include "cxefakezoomcontrol.h"
       
    26 #include "cxefakeviewfindercontrol.h"
       
    27 #include "cxefakesensoreventhandler.h"
       
    28 #include "cxefakefilenamegenerator.h"
       
    29 #include "cxutils.h"
       
    30 
       
    31 
       
    32 //  Member Functions
       
    33 
       
    34 CxeEngineSymbianUnit::CxeEngineSymbianUnit()
       
    35 {
       
    36     CX_DEBUG_IN_FUNCTION();
       
    37 }
       
    38 
       
    39 CxeEngineSymbianUnit::~CxeEngineSymbianUnit()
       
    40 {
       
    41     CX_DEBUG_IN_FUNCTION();
       
    42 }
       
    43 
       
    44 
       
    45 /*!
       
    46     Create all control classes
       
    47 */
       
    48 void CxeEngineSymbianUnit::createControls()
       
    49 {
       
    50     CX_DEBUG_ENTER_FUNCTION();
       
    51 
       
    52     if (!mVideoCaptureControl) {
       
    53         mSettings = new CxeFakeSettings();
       
    54         
       
    55         mCameraDeviceControl = new CxeFakeCameraDeviceControl();
       
    56 
       
    57         mFeatureManager = new CxeFakeFeatureManager();
       
    58 
       
    59         mSensorEventHandler = new CxeFakeSensorEventHandler();
       
    60 
       
    61         mFilenameGenerator = new CxeFakeFilenameGenerator();
       
    62 
       
    63         mViewfinderControl = new CxeFakeViewfinderControl();
       
    64 
       
    65         mStillCaptureControl = new CxeFakeStillCaptureControl();
       
    66 
       
    67         mAutoFocusControl = new CxeFakeAutoFocusControl();
       
    68 
       
    69         mZoomControl = new CxeFakeZoomControl();
       
    70 
       
    71         mVideoCaptureControl = new CxeFakeVideoCaptureControl();
       
    72 
       
    73         mFeatureManager = new CxeFakeFeatureManager();
       
    74 
       
    75     }
       
    76 
       
    77     CX_DEBUG_EXIT_FUNCTION();
       
    78 }
       
    79 
       
    80 // End of file