PECengine/ListLibrary2/ToolsSrc/PEngListLibraryPanics.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 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 "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:  List Library Panics
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __PENGLISTLIBRARYPANICS_H__
       
    20 #define __PENGLISTLIBRARYPANICS_H__
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 // DATA TYPES
       
    26 enum TPEngListLibraryPanicReason
       
    27     {
       
    28     EWrongViewId,
       
    29 
       
    30     ENoPresenceListForId,
       
    31 
       
    32     ENoAttributeSetForId,
       
    33 
       
    34     EAPIMethodNotSupported,
       
    35 
       
    36     EPresenceListIndexOutOfRange,
       
    37 
       
    38     EAttributesInvalidState,
       
    39 
       
    40     EIndexOverFlow,
       
    41 
       
    42     EWatcherListUsedAsEditable,
       
    43 
       
    44     EStoreOfContactListCorrupted,
       
    45 
       
    46     ERefAccessedObjectDeleted,
       
    47 
       
    48     ERefServerOrderedArrayNotFilled,
       
    49 
       
    50     EReactiveAuthInternalizeMisused,
       
    51 
       
    52     ENullParameter,
       
    53     };
       
    54 
       
    55 
       
    56 // FUNCTION PROTOTYPES
       
    57 /**
       
    58  * List Library panic handler.
       
    59  * Panics current user thread with category "PEngListLib" and
       
    60  * reason number from TPresencetListLibraryPanicReason.
       
    61  * @param aReason The reason of panic.
       
    62  */
       
    63 GLREF_C inline void Panic( TPEngListLibraryPanicReason aReason )
       
    64     {
       
    65     _LIT( KListLib , "PEngListLib" );
       
    66     User::Panic( KListLib, aReason );
       
    67     }
       
    68 
       
    69 #endif  //__PENGLISTLIBRARYPANICS_H__
       
    70 
       
    71 
       
    72 //  End of File
       
    73