sysstatemgmt/systemstarter/src/sysstartpanic.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /**
       
     2 * Copyright (c) 2007-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:
       
    15 * sysstartpaniccodes.h
       
    16 * This header file defines all the possible panic categories and codes within the System Starter component.
       
    17 * When adding panic codes to the System Starter component and related modules,
       
    18 * identify the module concerned and create a category if necessary.
       
    19 * The category should contain the name of the class where the panic is occuring.
       
    20 * Try to reuse an existing panic code otherwise add the new panic code 
       
    21 * to the end of the enum list.
       
    22 * 
       
    23 *
       
    24 */
       
    25 
       
    26 
       
    27 
       
    28 #if !defined (__SYSSTARTPANICCODES_H__)
       
    29 #define __SYSSTARTPANICCODES_H__
       
    30 
       
    31 #include <e32std.h>
       
    32 
       
    33 /** 
       
    34 Defines all the modules (categories) within System Starter which can throw panics
       
    35 Strings must not be longer than 16 characters or they will be truncated by User::Panic()
       
    36 @internalComponent
       
    37 @deprecated
       
    38 */
       
    39 _LIT(KPanicSysStart, "CSystemStarter");
       
    40 _LIT(KPanicRestartSys, "RestartSys");
       
    41 _LIT(KPanicAppStart, "CAppStarter");
       
    42 _LIT(KPanicMultipleWait, "CMultipleWait");
       
    43 _LIT(KPanicDllStarter, "CDllStarter");
       
    44 _LIT(KPanicResourceFileReader, "CResourceReader");
       
    45 _LIT(KPanicStartupState, "CStartupState");
       
    46 _LIT(KPanicStartSafe, "CStartSafe");
       
    47 _LIT(KPanicStartupProperties, "CStartupProperties");
       
    48 _LIT(KPanicMonitor, "CMonitor");
       
    49 _LIT(KPanicDsc, "CDscStore");
       
    50 
       
    51 /** Defines all possible panic codes within System Starter component
       
    52 @internalComponent
       
    53 @deprecated
       
    54 */
       
    55 enum TSysStartPanicCodes
       
    56 	{
       
    57 	ERestartNotSupportedOnEmulator 	= 1,
       
    58 	ENULLPropertiesPassed			= 2,
       
    59 	EInvalidCommandType				= 3,
       
    60 	EInvalidStartMethod				= 4,
       
    61 	EInvalidTimeout					= 5,
       
    62 	EInvalidNoOfRetries				= 6,
       
    63 	EInvalidRecoveryMethod			= 7,
       
    64 	ERestartSystemCallFailed		= 8,
       
    65 	EPropertyRetrieveError			= 9,
       
    66 	EAddDomainHierarchyError		= 10,
       
    67 	EInvalidMultipleWaitFailOnError	= 11,
       
    68 	EInvalidDLLFailOnError			= 12,
       
    69 	EInvalidOrdinal0				= 13,
       
    70 	EInvalidDataLink0				= 14,
       
    71 	EInvalidStateId					= 15,
       
    72 	EInvalidActionOnFailure			= 16,
       
    73 	EExtraMultipleWaitCommand		= 17,
       
    74 	EMissingMultipleWaitCommand		= 18,
       
    75 	EMissingMaxStartupMode			= 19,
       
    76 	EInvalidStartupMode				= 20,
       
    77 	ETimerValueInvalid				= 21,
       
    78 	ESSCProcessFailure				= 22,
       
    79 	ERestartSystemCallWithMode		= 23,
       
    80 	EDomainManagerConnectionFailure = 24,
       
    81 	EIdCannotChange 				= 25
       
    82 	};
       
    83 
       
    84 /** Global panic function for use within System Starter component
       
    85 @internalComponent
       
    86 @deprecated
       
    87 */
       
    88 extern void PanicNow(const TDesC &aCategory, TInt aReason);
       
    89 
       
    90 #endif // __SYSSTARTPANICCODES_H__