Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #include "T_ECOMServer.h"
25 CT_ECOMServer* CT_ECOMServer::NewL()
27 * @return - Instance of the test server
28 * Same code for Secure and non-secure variants
29 * Called inside the MainL() function to create and start the
30 * CTestServer derived server.
33 CT_ECOMServer* server = new (ELeave) CT_ECOMServer();
34 CleanupStack::PushL(server);
36 CleanupStack::Pop(server);
43 * Much simpler, uses the new Rendezvous() call to sync with the client
46 #if (defined __DATA_CAGING__)
47 RProcess().DataCaging(RProcess::EDataCagingOn);
48 RProcess().SecureApi(RProcess::ESecureApiOn);
50 CActiveScheduler* sched=NULL;
51 sched=new(ELeave) CActiveScheduler;
52 CActiveScheduler::Install(sched);
53 CT_ECOMServer* server = NULL;
54 TRAPD(err, server = CT_ECOMServer::NewL());
57 RProcess::Rendezvous(KErrNone);
64 GLDEF_C TInt E32Main()
66 * @return - Standard Epoc error code on process exit
68 * Process entry point. Called by client using RProcess API
71 CTrapCleanup* cleanup = CTrapCleanup::New();