diff -r 000000000000 -r b497e44ab2fc omaprovisioning/provisioning/ProvisioningEngine/Src/ProvisioningEngineMain.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omaprovisioning/provisioning/ProvisioningEngine/Src/ProvisioningEngineMain.cpp Thu Dec 17 09:07:52 2009 +0200 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2002-2006 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: DLL entry point +* +*/ + + + +// INCLUDE FILES +#include +#include +#include "CWPEngine.pan" +#include "WPEngineDebug.h" +#include +// CONSTANTS + +/// Name of the ProvisioningEngine +_LIT( KEngineName, "ProvisioningEngine" ); + +#ifdef ENGINEDEBUG +/// Folder where the log resides +_LIT( KLogFolder, "provisioning" ); + +/// The name of the log file +_LIT( KLogFileName, "engine" ); + +/// The format in which the time is formatted in log +_LIT( KLogTimeFormat, "%02d.%02d:%02d:%06d "); + +/// The length of the string produced by KLogTimeFormat +const TInt KLogTimeFormatLength = 16; + +/// How many characters a log line can contain +const TInt KLogLineLength = 256; +#endif + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +/** +* Panic handler +* @param aPanic reason for panic. +*/ +GLDEF_C void Panic(TWPPanic aPanic) + { + User::Panic( KEngineName, aPanic ); + } + +// ----------------------------------------------------------------------------- +// Debug +// ----------------------------------------------------------------------------- +// +#ifdef ENGINEDEBUG +GLDEF_C void Debug( TRefByValue aText, ... ) + { + RDebug::Print(aText); + } +#else +GLDEF_C void Debug( TRefByValue /*aText*/, ... ) + { + } +#endif + +// End of File