codhandler/codeng/inc/CodPanic.h
changeset 0 dd21522fd290
child 26 cb62a4f66ebe
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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 *      Panic codes for COD Handler.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef COD_PANIC_H
       
    22 #define COD_PANIC_H
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <e32def.h>
       
    27 
       
    28 // TYPES
       
    29 
       
    30 /**
       
    31 * Panic reasons for COD Handler.
       
    32 */
       
    33 enum TCodHandlerPanicReason
       
    34     {
       
    35     /// Attempt to read beyond the end of a buffer.
       
    36     ECodBufferOverread = -300,
       
    37     /// A command / operation is not expected in the current state.
       
    38     ECodOffState,
       
    39     /// Invalid COD data found where only valid is expected.
       
    40     ECodInvalidData,
       
    41     /// Observer already set.
       
    42     ECodObserverAlreadySet,
       
    43     /// Invalid arguments.
       
    44     ECodInvalidArguments,
       
    45     /// Request pending.
       
    46     ECodRequestPending,
       
    47     /// Internal error.
       
    48     ECodInternal
       
    49     };
       
    50 
       
    51 // FUNCTION DECLARATIONS
       
    52 
       
    53 /**
       
    54 * Panic the COD Handler.
       
    55 * @param aReason Reason for the panic.
       
    56 */
       
    57 void CodPanic( TCodHandlerPanicReason aReason );
       
    58 
       
    59 #endif /* def COD_PANIC_H */