browserutilities/favouritesengine/ClientServer/inc/FavouritesPanic.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 *      Panic function and codes for the Favourites Engine.
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef FAVOURITES_PANIC_H
       
    22 #define FAVOURITES_PANIC_H
       
    23 
       
    24 // TYPES
       
    25 
       
    26 /**
       
    27 * Panic reasons for Favourites Engine.
       
    28 */
       
    29 enum TFavouritesPanicReason
       
    30     {
       
    31     /// Attempt to begin operation on closed db.
       
    32     EFavouritesNotReady = -300,
       
    33     /// Nested Begin() calls.
       
    34     EFavouritesNestedTransaction,
       
    35     /// KFavouritesNullUid found in database.
       
    36     EFavouritesNullUidInDatabase,
       
    37     /// Item is neither EItem nor EFolder.
       
    38     EFavouritesBadType,
       
    39     /// No numeric AP value for "Default" or "Null".
       
    40     EFavouritesNoWapApValue,
       
    41     /// Buffer too small (unique name generation).
       
    42     EFavouritesBufferTooSmall,
       
    43     /// Unsupported operation.
       
    44     EFavouritesUnsupported,
       
    45     /// Internal error.
       
    46     EFavouritesInternal,
       
    47     /// Object already open.
       
    48     EFavouritesAlreadyOpen,
       
    49     /// Attempt to Commit when there is no transaction.
       
    50     EFavouritesNoTransaction,
       
    51     /// Bad step value passed to RFavouritesDbIncremental::Next().
       
    52     EFavouritesBadStep,
       
    53     /// Unexpected file found.
       
    54     EFavouritesBadFile
       
    55     };
       
    56 
       
    57 // FUNCTION DECLARATIONS
       
    58 
       
    59 /**
       
    60 * Panic the Favourites Engine.
       
    61 * @param aReason Reason for the panic.
       
    62 */
       
    63 void FavouritesPanic( TFavouritesPanicReason aReason );
       
    64 
       
    65 #endif
       
    66             
       
    67 // End of File