codhandler/roapapp/inc/RoapAppPanic.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: 
       
    15 *      Error and panic codes.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef ROAP_APP_PANIC_H
       
    22 #define ROAP_APP_PANIC_H
       
    23 
       
    24 // TYPES
       
    25 
       
    26 /**
       
    27 * Panic reasons for DD Handler.
       
    28 */
       
    29 enum TRoapAppPanicReason
       
    30     {
       
    31     /// Unknown command.
       
    32     ERoapAppUnknownCommand,
       
    33     /// Unknown status.
       
    34     ERoapAppUnknownStatus,
       
    35     /// Internal error.
       
    36     ERoapAppInternal,
       
    37     /// Callback function is invalid (returned unsupported ETrue value).
       
    38     ERoapAppInvalidCallback,
       
    39     /// A request is pending.
       
    40     ERoapAppRequestPending
       
    41     };
       
    42 
       
    43 // FUNCTION DECLARATIONS
       
    44 
       
    45 /**
       
    46 * Panic the application.
       
    47 * @param aReason Reason for the panic.
       
    48 */
       
    49 void RoapAppPanic( TRoapAppPanicReason aReason );
       
    50 
       
    51 #endif /* def ROAP_APP_PANIC_H */