devicediagnosticsfw/diagpluginbase/inc/diagpluginbase.pan
branchRCL_3
changeset 25 b183ec05bd8c
parent 24 13d7c31c74e0
child 26 19bba8228ff0
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
     1 /*
       
     2 * Copyright (c) 2007 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:  Enum definition of Framdwork Panic Codes
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DIAGPLUGINBASE_PAN
       
    20 #define DIAGPLUGINBASE_PAN
       
    21 
       
    22 /**
       
    23 * Panic Codes for Diagnostics PluginBase
       
    24 * 
       
    25 * @since 5.0
       
    26 */
       
    27 enum TDiagPluginBasePanics
       
    28     {
       
    29     EDiagPluginBasePanicConstruction     = 1,   // Failed to construct
       
    30     EDiagPluginBasePanicBadArgument      = 2,   // Invalid input parameter
       
    31     EDiagPluginBasePanicDialogAlreadyUp  = 3,   // Another dialog is already being displayed.
       
    32     EDiagPluginBasePanicInternal         = 4,   // Base class internal error
       
    33     EDiagPluginBasePanicInvalidState     = 5    // Function called in invalid state.
       
    34     };
       
    35 
       
    36 
       
    37 _LIT( KDiagPluginBaseCategory, "Diag Plugin Base" );
       
    38 
       
    39 inline void Panic( TDiagPluginBasePanics aReason )
       
    40     {
       
    41     User::Panic( KDiagPluginBaseCategory, aReason );
       
    42     }
       
    43 
       
    44 #endif // DIAGPLUGINBASE_PAN
       
    45 
       
    46 // End of File
       
    47