devicediagnostics/devdiagapp/inc/devdiag.pan
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Panic functionality for the Device Diagnostics Application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DD_PAN
       
    20 #define DD_PAN
       
    21 
       
    22 // System Include Files
       
    23 #include <e32std.h>         // User
       
    24 
       
    25 // Data Types
       
    26 
       
    27 /** Application panic codes.  These are used to identify specific reasons why
       
    28  *  the application has panicked.
       
    29  */
       
    30 enum TDevDiagApplicationPanics
       
    31     {
       
    32     EDevDiagApplicationGeneral = 1,
       
    33     EDevDiagApplicationUnhandledCommand,
       
    34     EDevDiagApplicationRuntimeReqs,
       
    35     EDevDiagApplicationInvalidStopMode,
       
    36     EDevDiagApplicationInvalidEngineState,
       
    37     EDevDiagApplicationInvalidResultIndex,
       
    38     EDevDiagApplicationBadType,
       
    39     EDevDiagApplicationNotInitialized,
       
    40     EDevDiagListboxContainerModel,
       
    41     EDevDiagListboxFindPluginFailure,
       
    42     EDevDiagListboxModelNotUpdated,
       
    43     EDevDiagApplicationNoExecutionResults,
       
    44     EDevDiagContainerArrayMismatch,
       
    45     EDevDiagCheckCrashedTest,
       
    46     EDDApplicationUnknownSuite,
       
    47     };
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // This convenience function will cause the application to panic with the
       
    51 // specified error code.  Extended panic notes must be enabled to see this
       
    52 // information in the UI.  This may be done by creating the "c:\resource\ErrRD"
       
    53 // directory (a signed sis file is available on the S60 wiki to do this).
       
    54 // -----------------------------------------------------------------------------
       
    55 //
       
    56 inline void Panic( TDevDiagApplicationPanics aReason )
       
    57     {
       
    58     _LIT( applicationName,"DevDiag" );                 //lint !e1534
       
    59     User::Panic( applicationName, aReason );
       
    60     }
       
    61 
       
    62 #endif // DD_PAN