testdev/ite/test/com.nokia.testfw.codegen.ui.test/resource/HelloWorld/HelloWorld_Main.cpp
changeset 1 96906a986c3b
equal deleted inserted replaced
0:f1112f777ce9 1:96906a986c3b
       
     1 /*
       
     2 * Copyright (c) 2000 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 
       
    19 
       
    20 #include "HelloWorld.h"
       
    21 
       
    22 //             The entry point for the application code. It creates
       
    23 //             an instance of the CApaApplication derived
       
    24 //             class, CExampleApplication.
       
    25 //
       
    26 
       
    27 #if defined(EKA2)
       
    28 
       
    29 #include <eikstart.h>
       
    30 LOCAL_C CApaApplication* NewApplication()
       
    31 	{
       
    32 	return new CExampleApplication;
       
    33 	}
       
    34 	
       
    35 GLDEF_C TInt E32Main()
       
    36 	{
       
    37 	return EikStart::RunApplication(NewApplication);
       
    38 	}
       
    39 	
       
    40 #endif
       
    41 
       
    42 #if defined(__WINS__) && !defined(EKA2)
       
    43 //             This function is required by all Symbian OS DLLs. In this 
       
    44 //             example, it does nothing.
       
    45 
       
    46 EXPORT_C CApaApplication* NewApplication()
       
    47 	{
       
    48 	return new CExampleApplication;
       
    49 	}
       
    50 
       
    51 GLDEF_C TInt E32Dll(TDllReason)
       
    52 	{
       
    53 	return KErrNone;
       
    54 	}
       
    55 	
       
    56 EXPORT_C TInt WinsMain(TDesC* aCmdLine)
       
    57 	{
       
    58 	return EikStart::RunApplication(NewApplication, aCmdLine);
       
    59 	}
       
    60 	
       
    61 #endif