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