localisation/apparchitecture/tef/TEXE.CPP
author Maciej Seroka <maciejs@symbian.org>
Thu, 21 Jan 2010 12:53:44 +0000
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
permissions -rw-r--r--
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99

// 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 "Symbian Foundation License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.symbianfoundation.org/legal/sfl-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