messagingappbase/mce/logenginc/DllMain.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  
       
    15 *     DLL internal functions and types implementation for Mce Engine
       
    16 *     component.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef     __Logs_Engine_DllMain_H__
       
    23 #define     __Logs_Engine_DllMain_H__
       
    24 
       
    25 
       
    26 //  INCLUDES
       
    27 
       
    28 #include <e32std.h>
       
    29 
       
    30 // MACROS
       
    31 
       
    32 /**
       
    33  * Convert millimetres to twips.
       
    34  */
       
    35 #define MM2TWIPS(mm) ((4000*(mm))/254)
       
    36 
       
    37 // DATA TYPES
       
    38 
       
    39 /// Logs Engine panic codes.
       
    40 enum TLogsEnginePanicCode
       
    41     {
       
    42     ELogsEnginePanicLogic = 1,  // Logical error detected
       
    43     ELogsEnginePanicPreCond,    // Function precondition check failed
       
    44     ELogsEnginePanicPostCond    // Function postcondition check failed
       
    45     };
       
    46 
       
    47 // FUNCTION PROTOTYPES
       
    48 
       
    49 /**
       
    50  * Stop the program execution with module specific text and error code.
       
    51  * Call if an unrecoverable error occurs in this module's code.
       
    52  *
       
    53  * @param aCode     error code
       
    54  *
       
    55  * @see TLogsEnginePanicCode
       
    56  */
       
    57 void LogsEnginePanic(TInt aCode);
       
    58 
       
    59 
       
    60 #endif // __Logs_Engine_DllMain_H__
       
    61 
       
    62 // End of file