Update contrib.
2 ============================================================================
5 Copyright : Your copyright notice
6 Description : Exe source file
7 ============================================================================
12 #include "t_langutilsserver.h"
13 #include "t_langutils.h"
14 #include "t_langutilsimp.h"
15 #include "t_langutilslang.h"
20 c:\z:\t_TEF\t_TEF_All.script
24 _LIT(KServerName,"T_LangUtilsServer");
26 CT_LangUtilsServer *CT_LangUtilsServer::NewL()
28 @return - Instance of the test server
29 Same code for Secure and non-secure variants
30 Called inside the MainL() function to create and start the
31 CTestServer derived server.
34 CT_LangUtilsServer * server = new (ELeave) CT_LangUtilsServer();
35 CleanupStack::PushL(server);
36 // CServer base class call
37 server->StartL(KServerName);
38 CleanupStack::Pop(server);
46 // Much simpler, uses the new Rendezvous() call to sync with the client
49 #if (defined __DATA_CAGING__)
50 RProcess().DataCaging(RProcess::EDataCagingOn);
51 RProcess().SecureApi(RProcess::ESecureApiOn);
53 CActiveScheduler* sched=NULL;
54 sched=new(ELeave) CActiveScheduler;
55 CActiveScheduler::Install(sched);
56 CT_LangUtilsServer *server = NULL;
57 // Create the CTestServer derived server
58 TRAPD(err,server = CT_LangUtilsServer::NewL());
61 // Sync with the client and enter the active scheduler
62 RProcess::Rendezvous(KErrNone);
69 /** @return - Standard Epoc error code on process exit
71 Process entry point. Called by client using RProcess API
73 GLDEF_C TInt E32Main()
76 CTrapCleanup* cleanup = CTrapCleanup::New();
82 // This if statement is here just to shut up RVCT, which would otherwise warn
83 // that err was set but never used
93 CTestStep *CT_LangUtilsServer::CreateTestStep(const TDesC& aStepName)
95 @return - A CTestStep derived instance
96 Secure and non-secure variants
97 Implementation of CTestServer pure virtual
101 if(aStepName == KTestStep_T_LANGUTILS)
103 return new CT_LANGUTILS();
105 else if(aStepName == KTestStep_T_LANGUTILSIMP)
107 return new CT_LANGUTILSIMP();
109 else if(aStepName == KTestStep_T_LANGUTILSLANG)
111 return new CT_LANGUTILSLANG();