installationservices/swi/test/testexes/testappinuse/HelloWorld_Application.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:51:10 +0200
changeset 0 ba25891c3a9e
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
* HelloWorld_CExampleApplication.cpp
* Source file for the implementation of the 
* application class - CExampleApplication
*
*/


#include "HelloWorld.h"

// if HELLOWORLD is defined in the MMP file use the appropriate Uid
#ifdef HELLOWORLD2
const TUid KUidHelloWorld = { 0x90008ACF }; 

#else
const TUid KUidHelloWorld = { 0X90008ACE }; 
#endif

//             The function is called by the UI framework to ask for the
//             application's UID. The returned value is defined by the
//             constant KUidHelloWorlde and must match the second value
//             defined in the project definition file.
// 
TUid CExampleApplication::AppDllUid() const
	{
	return KUidHelloWorld;
	}

//             This function is called by the UI framework at
//             application start-up. It creates an instance of the
//             document class.
//
CApaDocument* CExampleApplication::CreateDocumentL()
	{
	return new (ELeave) CExampleDocument(*this);
	}