omaprovisioning/provisioning/ProvisioningEngine/Src/ProvisioningEngineMain.cpp
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  DLL entry point
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <e32std.h>
       
    22 #include <flogger.h>
       
    23 #include "CWPEngine.pan"
       
    24 #include "WPEngineDebug.h"
       
    25 #include <e32debug.h>
       
    26 // CONSTANTS
       
    27 
       
    28 /// Name of the ProvisioningEngine
       
    29 _LIT( KEngineName, "ProvisioningEngine" );
       
    30 
       
    31 #ifdef ENGINEDEBUG
       
    32 /// Folder where the log resides
       
    33 _LIT( KLogFolder, "provisioning" );
       
    34 
       
    35 /// The name of the log file
       
    36 _LIT( KLogFileName, "engine" );
       
    37 
       
    38 /// The format in which the time is formatted in log
       
    39 _LIT( KLogTimeFormat, "%02d.%02d:%02d:%06d ");
       
    40 
       
    41 /// The length of the string produced by KLogTimeFormat
       
    42 const TInt KLogTimeFormatLength = 16;
       
    43 
       
    44 /// How many characters a log line can contain
       
    45 const TInt KLogLineLength = 256;
       
    46 #endif
       
    47 
       
    48 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    49 
       
    50 /**
       
    51 * Panic handler
       
    52 * @param aPanic reason for panic.
       
    53 */
       
    54 GLDEF_C void Panic(TWPPanic aPanic)
       
    55     {
       
    56     User::Panic( KEngineName, aPanic );
       
    57     }
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // Debug
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 #ifdef ENGINEDEBUG
       
    64 GLDEF_C void Debug( TRefByValue<const TDesC> aText, ... )
       
    65     {
       
    66     RDebug::Print(aText);
       
    67     }
       
    68 #else
       
    69 GLDEF_C void Debug( TRefByValue<const TDesC> /*aText*/, ... )
       
    70     {
       
    71     }
       
    72 #endif
       
    73 
       
    74 //  End of File