startupservices/startupanimation/sanimengine/inc/sanimpanic.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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:  Declaration of SAnimPanic class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SANIMPANIC_H
       
    20 #define SANIMPANIC_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25 *  Static class for issuing panics.
       
    26 *
       
    27 *  @lib None
       
    28 *  @since S60 3.2
       
    29 */
       
    30 class SAnimPanic
       
    31     {
       
    32 
       
    33 public:
       
    34 
       
    35     /** Available panic codes. */
       
    36     enum TPanicCode
       
    37         {
       
    38         EInternalError = 1,
       
    39         ENotInitialized = 2,
       
    40         };
       
    41 
       
    42     /**
       
    43     * Panic the current thread.
       
    44     *
       
    45     * @since S60 3.2
       
    46     *
       
    47     * @param aPanicCode Panic code to identify the reason for the panic.
       
    48     * @param aFileName Identifies the file in which the panic occurred.
       
    49     * @param aLineNum Identifies the line on which the panic occurred.
       
    50     */
       
    51     IMPORT_C static void Panic(
       
    52         const TPanicCode aPanicCode,
       
    53         const TDesC8& aFileName,
       
    54         const TInt aLineNum );
       
    55 
       
    56     };
       
    57 
       
    58 #endif // SANIMPANIC_H