sl@0: /*
sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: * All rights reserved.
sl@0: * This component and the accompanying materials are made available
sl@0: * under the terms of the License "Eclipse Public License v1.0"
sl@0: * which accompanies this distribution, and is available
sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: *
sl@0: * Initial Contributors:
sl@0: * Nokia Corporation - initial contribution.
sl@0: *
sl@0: * Contributors:
sl@0: *
sl@0: * Description: 
sl@0: * Executable entrypoint and server object factory function.
sl@0: * The latter is supplied to the SCS boilerplate code.
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: /**
sl@0:  @file
sl@0: */
sl@0: 
sl@0: #include "scstestserver.h"
sl@0: 
sl@0: 
sl@0: static CScsServer* NewScsTestServerLC()
sl@0: /**
sl@0: 	This factory function is called by SCS.  It allocates
sl@0: 	the server object and leaves it on the cleanup stack.
sl@0: 
sl@0: 	@return					New initialized instance of CScsTestServer.
sl@0: 							On return this is on the cleanup stack.
sl@0:  */
sl@0: 	{
sl@0: 	return CScsTestServer::NewLC();
sl@0: 	}
sl@0: 
sl@0: TInt E32Main()
sl@0: /**
sl@0: 	Executable entrypoint.
sl@0: 
sl@0: 	@return					Symbian OS error code where KErrNone indicates
sl@0: 							success and any other value indicates failure.
sl@0:  */
sl@0: 	{
sl@0: 	return StartScsServer(NewScsTestServerLC);
sl@0: 	}
sl@0: