hwrmhaptics/examples/hapticstestapp/src/hapticstest.cpp
changeset 76 cb32bcc88bad
equal deleted inserted replaced
73:d38941471f1c 76:cb32bcc88bad
       
     1 /*
       
     2 * Copyright (c) 2007 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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "hapticstestapplication.h"
       
    20 #include <eikstart.h>
       
    21 
       
    22 #ifdef __UI_FRAMEWORKS_V2__
       
    23 
       
    24 // ---------------------------------------------------------
       
    25 // Create an application, and return a pointer to it
       
    26 // ---------------------------------------------------------
       
    27 //
       
    28 CApaApplication* NewApplication()
       
    29     {
       
    30     return new CHapticsTestApplication;
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------
       
    34 // Main entry-point.
       
    35 // ---------------------------------------------------------
       
    36 //
       
    37 TInt E32Main()
       
    38     {
       
    39     return EikStart::RunApplication(NewApplication);
       
    40     }
       
    41 
       
    42 ///////////////////////////////////////////////////////////////////////////////
       
    43 //
       
    44 // The following is required for wins on EKA1 (using the exedll target)
       
    45 //
       
    46 #if defined(__WINS__) && !defined(EKA2)
       
    47 EXPORT_C TInt WinsMain(TDesC* aCmdLine)
       
    48     {
       
    49     return EikStart::RunApplication(NewApplication, aCmdLine);
       
    50     }
       
    51 
       
    52 TInt E32Dll(TDllReason)
       
    53     {
       
    54     return KErrNone;
       
    55     }
       
    56 #endif
       
    57 
       
    58 #else // __UI_FRAMEWORKS_V2__
       
    59 
       
    60 // Create an application, and return a pointer to it
       
    61 EXPORT_C CApaApplication* NewApplication()
       
    62   {
       
    63   return new ChapticstestApplication;
       
    64   }
       
    65 
       
    66 // DLL entry point, return that everything is ok
       
    67 GLDEF_C TInt E32Dll(TDllReason)
       
    68   {
       
    69   return KErrNone;
       
    70   }
       
    71 
       
    72 #endif // __UI_FRAMEWORKS_V2__
       
    73