sysstatemgmt/systemstatereferenceplugins/localinc/ssmpanic.h
changeset 0 4e1aa6a622a0
child 3 a811597961f0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This header file defines all the possible panic categories and codes within the System State Management component.
       
    15 // When adding panic codes to the System State Management component,
       
    16 // identify the module concerned and create a category if necessary.
       
    17 // The category should contain the name of the class where the panic is occuring.
       
    18 // Try to reuse an existing panic code, otherwise add the new panic code 
       
    19 // to the end of the enum list.
       
    20 // 
       
    21 //
       
    22 
       
    23 #if !defined (__SSMPANICCODES_H__)
       
    24 #define __SSMPANICCODES_H__
       
    25 
       
    26 #include <e32std.h>
       
    27 
       
    28 /** 
       
    29 Defines all the modules (categories) within System State Management component which can throw panics
       
    30 Strings must not be longer than 16 characters or they will be truncated by User::Panic()
       
    31 @internalComponent
       
    32 @released
       
    33 */
       
    34 _LIT(KPanicCmdList, 				"CCmdList");
       
    35 _LIT(KPanicCmdAmastarter, 			"CCmdAmastarter");
       
    36 _LIT(KPanicCmdStarterBase, 			"CCmdStarterBase");
       
    37 _LIT(KPanicCmdStartApp, 			"CCmdStartApp");
       
    38 _LIT(KPanicCmdStartProcess, 		"CCmdStartProcess");
       
    39 _LIT(KPanicDeferredDeleter, 		"CSsmDeferredDeleter");
       
    40 _LIT(KPanicCmdCustomCommand, 		"CCmdCustomCmd");
       
    41 _LIT(KPanicCmdMultipleWait, 		"CCmdMultipleWait");
       
    42 _LIT(KPanicCmdWaitForApparcInit, 	"CCmdApparcInit");
       
    43 _LIT(KPanicCmdResourceReader,		"CmdResourceRead");
       
    44 _LIT(KPanicSsmCommand,				"BadSsmCommand");
       
    45 _LIT(KPanicSusAdaptionServer,		"SusAdaptionSrv");
       
    46 _LIT(KPanicCustomCmdSimSecurityCheck, "CCustomCmdSimSecurityCheck");
       
    47 _LIT(KPanicCustomCmdCoopSysPerformRfsActions, "CCustomCmdCoopSysPerformRfsActions");
       
    48 _LIT(KPanicSsmUiSpecific, "CSsmUiSpecific");
       
    49 _LIT(KPanicCustomCmdDeviceSecurityCheck, "CCustomCmdDeviceSecurityCheck");
       
    50 _LIT(KPanicSecurityCheckNotifier, "CSsmSecurityCheckNotifier");
       
    51 
       
    52 
       
    53 /** Defines all possible panic codes within System State Management component
       
    54 @internalComponent
       
    55 @released
       
    56 */
       
    57 enum TSsmPanicCodes
       
    58 	{
       
    59 	EIllegalMethodCallInClass 	= 1,
       
    60 	ENoCustomCommandObject,
       
    61 	EInvalidRunLAction,
       
    62 	ECmdListBadIdx,
       
    63 	ECmdBadCommand,
       
    64 	ECmdNullPtr,
       
    65 	ENotInitialized,
       
    66 	ENotInitialized2,
       
    67 	ENotInitialized3,
       
    68 	EUnknownError,
       
    69 	EInternalStateError,
       
    70 	ENonNullResourceFileEntries,
       
    71 	ENullResourceFileEntries,
       
    72 	ENoPreparedCommandList,
       
    73 	EInUse1,
       
    74 	EInUse2,
       
    75 	EInUse3,
       
    76 	EPendingRequest,
       
    77 	EPropertyRetrieveError,
       
    78 	EInvalidUid,
       
    79 	EInvalidArgument,
       
    80 	EInvalidSecuritySubState,
       
    81 	EInvalidDeviceSecurityState,
       
    82 	};
       
    83 
       
    84 /** Global panic function for use within System State Management component
       
    85 @internalComponent
       
    86 @released
       
    87 */
       
    88 extern void PanicNow(const TDesC &aCategory, TInt aReason);
       
    89 
       
    90 #endif // __SSMPANICCODES_H__