csxhelp/src/CSXH.cpp
branchRCL_3
changeset 18 cbffe13eac63
parent 0 1f04cf54edd8
equal deleted inserted replaced
17:12f60d9a73b3 18:cbffe13eac63
       
     1 /*
       
     2 * Copyright (c) 2006 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 #include "CSXHApplication.h"
       
    20 #include <eikstart.h>
       
    21 
       
    22 #ifdef __UI_FRAMEWORKS_V2__
       
    23 
       
    24 // Create an application, and return a pointer to it
       
    25 CApaApplication* NewApplication()
       
    26     {
       
    27     return new CCSXHApplication;
       
    28     }
       
    29 
       
    30 TInt E32Main()
       
    31     {
       
    32     return EikStart::RunApplication(NewApplication);
       
    33     }
       
    34 
       
    35 ///////////////////////////////////////////////////////////////////////////////
       
    36 //
       
    37 // The following is required for wins on EKA1 (using the exedll target)
       
    38 //
       
    39 #if defined(__WINS__) && !defined(EKA2)
       
    40 EXPORT_C TInt WinsMain(TDesC* aCmdLine)
       
    41     {
       
    42     return EikStart::RunApplication(NewApplication, aCmdLine);
       
    43     }
       
    44 
       
    45 TInt E32Dll(TDllReason)
       
    46     {
       
    47     return KErrNone;
       
    48     }
       
    49 #endif
       
    50 
       
    51 #else // __UI_FRAMEWORKS_V2__
       
    52 
       
    53 // Create an application, and return a pointer to it
       
    54 EXPORT_C CApaApplication* NewApplication()
       
    55   {
       
    56   return new CCSXHApplication;
       
    57   }
       
    58 
       
    59 // DLL entry point, return that everything is ok
       
    60 GLDEF_C TInt E32Dll(TDllReason)
       
    61   {
       
    62   return KErrNone;
       
    63   }
       
    64 
       
    65 #endif // __UI_FRAMEWORKS_V2__
       
    66