common/tools/ats/smoketest/localisation/apparchitecture/tef/TEXE.CPP
author victorp@symbian.org
Wed, 03 Feb 2010 16:06:24 +0000
changeset 872 17498133d9ad
parent 793 0c32c669a39d
permissions -rw-r--r--
adding EPL headers to smoke test

// Copyright (c) 2005-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:
//



/**
 @file
 @internalComponent - Internal Symbian test code 
*/

#include <e32std.h>
#include <e32uid.h>
#include <e32base.h>
#include <e32test.h>
#include <apadef.h>

//const TInt KTexeUidValue=0x10004c6b;
//const TUid KUidTExe={KTexeUidValue};

// Global functions


void DoThings(const TApaCommandLine& aCommandLine)
	{
	RTest test(_L("TEXE"));
	test.Title();
	test.Start(_L("The test dxe has been loaded."));
	test.Printf(_L("\n"));
	test.Printf(aCommandLine);
	test.Printf(_L("\n"));
	test.End();
	test.Close();
	}


// dll/exe bits


/**
#if defined(__WINS__)

EXPORT_C TInt EntryPoint(TAny* aParam)
	{
	__UHEAP_MARK;
    CTrapCleanup *cleanup=CTrapCleanup::New();
	//
	TApaCommandLine& docName=*(TApaCommandLine*)aParam;
    DoThings(docName);
	//
    delete(cleanup);
	__UHEAP_MARKEND;
    return(0);
	}


GLDEF_C TInt E32Dll(TDllReason)
	{
	return(KErrNone);
	}

#else
*/

GLDEF_C TInt E32Main()
	{
	__UHEAP_MARK;
    CTrapCleanup *cleanup=CTrapCleanup::New();
	//
    TApaCommandLine commandline;
		User::CommandLine(commandline);
    	
    DoThings(commandline);
	//
    delete(cleanup);
	__UHEAP_MARKEND;
    return(0);
	}

// #endif