--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/appfw/apparchitecture/tef/TEXE.CPP Tue Feb 02 10:12:00 2010 +0200
@@ -0,0 +1,92 @@
+// 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 "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>
+#ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
+#include "apainternal.h"
+#endif //SYMBIAN_ENABLE_SPLIT_HEADERS
+
+//const TInt KTexeUidValue=0x10004c6b;
+//const TUid KUidTExe={KTexeUidValue};
+
+// Global functions
+
+
+void DoThings(const TApaCommandLine& aCommandLine)
+ {
+ RTest test(_L("TEXE"));
+ test.Title();
+ test.Start(_L(" @SYMTestCaseID API-APPFWK-APPARC-TEXE-0001 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