sdkcreationmw/sdkexamples/cppexamples/S60Ex/Localization/src/localization.cpp
changeset 1 ac50fd48361b
parent 0 b26acd06ea60
equal deleted inserted replaced
0:b26acd06ea60 1:ac50fd48361b
     1 /*
     1 /*
     2 * Copyright (c) 2005 - 2007 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005 - 2007 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 the License "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".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    17 
    17 
    18 
    18 
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #ifdef __SERIES60_3X__
       
    23 #include <eikstart.h>
    22 #include <eikstart.h>
    24 #endif
       
    25 
    23 
    26 #include "LocalizationApplication.h"
    24 #include "LocalizationApplication.h"
    27 
    25 
    28 EXPORT_C CApaApplication* NewApplication()
    26 EXPORT_C CApaApplication* NewApplication()
    29 	{
    27 	{
    30 	return static_cast<CApaApplication*>( new CLocalizationApplication );
    28 	return static_cast<CApaApplication*>( new CLocalizationApplication );
    31 	}
    29 	}
    32 
    30 
    33 #ifdef __SERIES60_3X__
       
    34 
       
    35 GLDEF_C TInt E32Main()
    31 GLDEF_C TInt E32Main()
    36 	{
    32 	{
    37 	return EikStart::RunApplication( NewApplication );
    33 	return EikStart::RunApplication( NewApplication );
    38 	}
    34 	}
    39 	
       
    40 #else
       
    41 
       
    42 GLDEF_C TInt E32Dll( TDllReason )
       
    43     {
       
    44     return KErrNone;
       
    45     }
       
    46 
       
    47 #endif
       
    48