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_SfSrvServer.h"
21 CT_SfSrvServer* CT_SfSrvServer::NewL()
23 * @return - Instance of the test server
24 * Same code for Secure and non-secure variants
25 * Called inside the MainL() function to create and start the
26 * CTestServer derived server.
29 CT_SfSrvServer* server = new (ELeave) CT_SfSrvServer();
30 CleanupStack::PushL(server);
32 CleanupStack::Pop(server);
39 * Much simpler, uses the new Rendezvous() call to sync with the client
42 #if (defined __DATA_CAGING__)
43 RProcess().DataCaging(RProcess::EDataCagingOn);
44 RProcess().SecureApi(RProcess::ESecureApiOn);
46 CActiveScheduler* sched=NULL;
47 sched=new(ELeave) CActiveScheduler;
48 CActiveScheduler::Install(sched);
49 CT_SfSrvServer* server = NULL;
50 TRAPD(err, server = CT_SfSrvServer::NewL());
53 RProcess::Rendezvous(KErrNone);
60 GLDEF_C TInt E32Main()
62 * @return - Standard Epoc error code on process exit
64 * Process entry point. Called by client using RProcess API
67 CTrapCleanup* cleanup = CTrapCleanup::New();
72 #if (defined TRAP_IGNORE)