camerauis/cameraxui/cxengine/src/cxeengine.cpp
branchRCL_3
changeset 53 61bc0f252b2b
equal deleted inserted replaced
50:f54ad444594d 53:61bc0f252b2b
       
     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 
       
    18 #include "cxutils.h"
       
    19 #include "cxeengine.h"
       
    20 #ifdef Q_OS_SYMBIAN
       
    21 #include "cxeenginesymbian.h"
       
    22 #else
       
    23 #include "cxeenginedesktop.h"
       
    24 #endif
       
    25 
       
    26 // This should be the only exported method
       
    27 CAMERAX_ENGINE_EXPORT CxeEngine* CxeEngine::createEngine()
       
    28 {
       
    29     CX_DEBUG_ENTER_FUNCTION();
       
    30 
       
    31 #ifdef Q_OS_SYMBIAN
       
    32     CxeEngineSymbian *res = new CxeEngineSymbian();
       
    33 #else // Q_OS_SYMBIAN
       
    34     CxeEngineDesktop *res = new CxeEngineDesktop();
       
    35 #endif // Q_OS_SYMBIAN
       
    36 
       
    37     res->construct();
       
    38     CX_DEBUG_EXIT_FUNCTION();
       
    39     return res;
       
    40 }
       
    41 
       
    42 CxeEngine::CxeEngine()
       
    43 {
       
    44     CX_DEBUG_ENTER_FUNCTION();
       
    45     CX_DEBUG_EXIT_FUNCTION();
       
    46 }
       
    47 
       
    48 CxeEngine::~CxeEngine()
       
    49 {
       
    50     CX_DEBUG_ENTER_FUNCTION();
       
    51     CX_DEBUG_EXIT_FUNCTION();
       
    52 }