installationservices/swi/test/testexes/testappinuse/HelloWorld_Application.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2000-2009 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 "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 * HelloWorld_CExampleApplication.cpp
       
    16 * Source file for the implementation of the 
       
    17 * application class - CExampleApplication
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #include "HelloWorld.h"
       
    23 
       
    24 // if HELLOWORLD is defined in the MMP file use the appropriate Uid
       
    25 #ifdef HELLOWORLD2
       
    26 const TUid KUidHelloWorld = { 0x90008ACF }; 
       
    27 
       
    28 #else
       
    29 const TUid KUidHelloWorld = { 0X90008ACE }; 
       
    30 #endif
       
    31 
       
    32 //             The function is called by the UI framework to ask for the
       
    33 //             application's UID. The returned value is defined by the
       
    34 //             constant KUidHelloWorlde and must match the second value
       
    35 //             defined in the project definition file.
       
    36 // 
       
    37 TUid CExampleApplication::AppDllUid() const
       
    38 	{
       
    39 	return KUidHelloWorld;
       
    40 	}
       
    41 
       
    42 //             This function is called by the UI framework at
       
    43 //             application start-up. It creates an instance of the
       
    44 //             document class.
       
    45 //
       
    46 CApaDocument* CExampleApplication::CreateDocumentL()
       
    47 	{
       
    48 	return new (ELeave) CExampleDocument(*this);
       
    49 	}