PECengine/PresenceServer2/Tools/PEngTransactionServerPanics.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Presence Serve Panics
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __PENGTRANSACTIONSERVERPANICS_H__
       
    20 #define __PENGTRANSACTIONSERVERPANICS_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // DATA TYPES
       
    26 enum TPEngTransServerPanicReason
       
    27     {
       
    28     EReservedProcessAccessCountCorrupted = 1
       
    29     };
       
    30 
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 /**
       
    34  * Transaction Server panic handler.
       
    35  * Panics current user thread with category "PEng TransServer" and
       
    36  * reason number from TPEngTransServerPanicReason.
       
    37  * @param aReason The reason of panic.
       
    38  */
       
    39 GLREF_C inline void Panic( TPEngTransServerPanicReason aReason )
       
    40     {
       
    41     _LIT( KTransServer , "PEng TransServer" );
       
    42     User::Panic( KTransServer, aReason );
       
    43     }
       
    44 
       
    45 #endif  //__PENGTRANSACTIONSERVERPANICS_H__
       
    46 
       
    47 
       
    48 //  End of File
       
    49