sysstatemgmt/systemstateplugins/localinc/ssmpanic.h
changeset 0 4e1aa6a622a0
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(KPanicCustomCmdSecurityCheck, "CCustomCmdSecurityCheck");
       
    47 _LIT(KPanicCustomCmdCoopSysPerformRfsActions, "CCustomCmdCoopSysPerformRfsActions");
       
    48 _LIT(KPanicSsmUiSpecific, "CSsmUiSpecific");
       
    49 _LIT(KPanicSsmCustCmdRfs, "CSsmCustCmdRfsNotConnected");
       
    50 _LIT(KPanicCLogicalNot, "CLogicalNot");
       
    51 _LIT(KPanicCLogicalOr, "CLogicalOr");
       
    52 _LIT(KPanicCLogicalAnd, "CLogicalAnd");
       
    53 
       
    54 /** Defines all possible panic codes within System State Management component
       
    55 @internalComponent
       
    56 @released
       
    57 */
       
    58 enum TSsmPanicCodes
       
    59 	{
       
    60 	EIllegalMethodCallInClass 	= 1,
       
    61 	ENoCustomCommandObject,
       
    62 	EInvalidRunLAction,
       
    63 	ECmdListBadIdx,
       
    64 	ECmdBadCommand,
       
    65 	ECmdNullPtr,
       
    66 	ENotInitialized,
       
    67 	ENotInitialized2,
       
    68 	ENotInitialized3,
       
    69 	EUnknownError,
       
    70 	EInternalStateError,
       
    71 	ENonNullResourceFileEntries,
       
    72 	ENullResourceFileEntries,
       
    73 	ENoPreparedCommandList,
       
    74 	EInUse1,
       
    75 	EInUse2,
       
    76 	EInUse3,
       
    77 	EPendingRequest,
       
    78 	EPropertyRetrieveError,
       
    79 	EInvalidUid,
       
    80 	EInvalidArgument,
       
    81 	EInvalidSecuritySubState,
       
    82 	EInvalidRFs,
       
    83 	ENullPtr
       
    84 	};
       
    85 
       
    86 /** Global panic function for use within System State Management component
       
    87 @internalComponent
       
    88 @released
       
    89 */
       
    90 extern void PanicNow(const TDesC &aCategory, TInt aReason);
       
    91 
       
    92 #endif // __SSMPANICCODES_H__