camerauis/cameraxui/cxengine/src/cxeengine.cpp
changeset 45 24fd82631616
parent 43 0e652f8f1fbd
equal deleted inserted replaced
43:0e652f8f1fbd 45:24fd82631616
     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".
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include "cxutils.h"
    18 #include "cxutils.h"
    19 #include "cxeengine.h"
    19 #include "cxeengine.h"
       
    20 #ifdef Q_OS_SYMBIAN
    20 #include "cxeenginesymbian.h"
    21 #include "cxeenginesymbian.h"
    21 
    22 #else
       
    23 #include "cxeenginedesktop.h"
       
    24 #endif
    22 
    25 
    23 // This should be the only exported method
    26 // This should be the only exported method
    24 EXPORT_C CxeEngine* CxeEngine::createEngine()
    27 CAMERAX_ENGINE_EXPORT CxeEngine* CxeEngine::createEngine()
    25 {
    28 {
    26     CX_DEBUG_ENTER_FUNCTION();
    29     CX_DEBUG_ENTER_FUNCTION();
    27 
    30 
       
    31 #ifdef Q_OS_SYMBIAN
    28     CxeEngineSymbian *res = new CxeEngineSymbian();
    32     CxeEngineSymbian *res = new CxeEngineSymbian();
       
    33 #else // Q_OS_SYMBIAN
       
    34     CxeEngineDesktop *res = new CxeEngineDesktop();
       
    35 #endif // Q_OS_SYMBIAN
       
    36 
    29     res->construct();
    37     res->construct();
    30     CX_DEBUG_EXIT_FUNCTION();
    38     CX_DEBUG_EXIT_FUNCTION();
    31     return res;
    39     return res;
    32 }
    40 }
    33 
    41