phoneuis/easydialing/tsrc/edta/inc/edta.pan
branchRCL_3
changeset 3 8871b09be73b
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Easy dialing test application.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __EDTA_PAN__
       
    19 #define __EDTA_PAN__
       
    20 
       
    21 #include "edta_debugprint.h"
       
    22 
       
    23 /** Edta application panic codes */
       
    24 enum TEdtaPanics
       
    25     {
       
    26     EEdtaUi = 1,
       
    27     EEdtaSkinChangePanic = 2,
       
    28     EEdtaCalculatePanic = 3,
       
    29     EEdtaFieldNotInitialized = 4
       
    30     // add further panics here
       
    31     };
       
    32 
       
    33 _LIT(KEdtaApplicationName,"Edta");
       
    34 
       
    35 inline void Panic(TEdtaPanics aReason)
       
    36     {
       
    37     DebugPrintF(_L("Panic reason: %d"), (TInt) aReason);
       
    38     User::Panic(KEdtaApplicationName, aReason);
       
    39     }
       
    40 
       
    41 inline void Panic(TEdtaPanics aReason, TDesC aText)
       
    42     {
       
    43     DebugPrintF(_L("Panic reason: %d, '%S'"), (TInt) aReason, &aText );
       
    44     User::Panic(KEdtaApplicationName, aReason);
       
    45     }
       
    46 
       
    47 #endif // __EDTA_PAN__