diff -r 6ca72c0fe49a -r a941bc465d9f PECengine/PresenceServer2/ServerSrc/ServerEntryPoint.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PECengine/PresenceServer2/ServerSrc/ServerEntryPoint.cpp Wed Sep 01 12:31:13 2010 +0100 @@ -0,0 +1,58 @@ +/* +* Copyright (c) 2002 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: Presence Server +* +*/ + + +#include +// #include "CPEngServer.h" +#include "PresenceDebugPrint.h" +#include "TPEngServerParams.h" +#include "CPEngServer.h" + + +TInt DoMain( TPEngServerParams& aParams ) + { + CTrapCleanup* tc = CTrapCleanup::New(); + if ( !tc ) + { + return KErrNoMemory; + } + TRAPD( err, CPEngServer::ExecuteServerL( aParams ) ); + delete tc; + +#if _BullseyeCoverage + cov_write(); +#endif + + return err; + } + +GLDEF_C TInt E32Main() + { + __UHEAP_MARK; + PENG_DP( D_PENG_LIT( "CPEngServer::E32Main() start" ) ); + + + TPEngServerParams params; + params.InitFromCmdLine(); + TInt err = DoMain( params ); + + + PENG_DP( D_PENG_LIT( "CPEngServer - E32Main() end" ) ); + __UHEAP_MARKEND; + return err; + } +