codhandler/codui/inc/CodUiPanic.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Panic codes.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef COD_UI_PANIC_H
       
    20 #define COD_UI_PANIC_H
       
    21 
       
    22 // TYPES
       
    23 
       
    24 /**
       
    25 * Panic reasons.
       
    26 */
       
    27 enum TCodUiPanicReason
       
    28     {
       
    29     /// Unknown command.
       
    30     ECodUiUnknownCommand,
       
    31     /// Unknown status.
       
    32     ECodUiUnknownStatus,
       
    33     /// Internal error.
       
    34     ECodUiInternal,
       
    35     /// Callback function is invalid (returned unsupported ETrue value).
       
    36     ECodUiInvalidCallback,
       
    37     /// A request is pending.
       
    38     ECodUiRequestPending,
       
    39     /// Bad control id.
       
    40     ECodUiBadControl
       
    41     };
       
    42 
       
    43 // FUNCTION DECLARATIONS
       
    44 
       
    45 /**
       
    46 * Panic.
       
    47 * @param aReason Reason for the panic.
       
    48 */
       
    49 void CodUiPanic( TCodUiPanicReason aReason );
       
    50 
       
    51 #endif /* def COD_UI_PANIC_H */