mpxplugins/serviceplugins/collectionplugins/inc/mpxdbcommonstd.h
changeset 0 ff3acec5bc43
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2006 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:  This header file contains constants definitions and type
       
    15 *                definition
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MPXDBCOMMONSTD_H
       
    21 #define MPXDBCOMMONSTD_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <f32file.h>
       
    26 
       
    27 // MACROS
       
    28 #define SET_BIT(x,y) (x |= y)
       
    29 #define GET_BIT(x,y) (x & y)
       
    30 #define RESET_BIT(x,y) (x &= ~y)
       
    31 
       
    32 #define MPX_ITEM_CATEGORY(x) static_cast<TMPXGeneralCategory>((x >> 28) & KMCCategoryMask)
       
    33 
       
    34 // CONSTANTS
       
    35 const TInt KMCIntegerLen          = 11; //-2147483648
       
    36 const TInt KMCInt64Len            = 20; //-9223372036854775808
       
    37 
       
    38 const TInt KMCPathStartWithColon  = 1;  // Look for ":\\"
       
    39 const TInt KMCPathStartPos        = 2;  // e.g. "C:\\Path\\Name.Ext"
       
    40 const TInt KMCCategoryMask        = 0x0F;
       
    41 
       
    42 // Maximum number of deleted records kept in DB
       
    43 const TInt KMCMaxSavedDeletedRecords = 2000;
       
    44 
       
    45 // DRM types used
       
    46 enum TMCDrmType
       
    47     {
       
    48     EMCDrmNone,
       
    49     EMCDrmOmaDrm,
       
    50     EMCDrmWmdrm
       
    51     };
       
    52 
       
    53 // Reasons for collection server Panic
       
    54 enum TMCDbPanic
       
    55     {
       
    56     };
       
    57 
       
    58 // FUNCTION PROTOTYPES
       
    59 GLREF_C void MCDbPanic(TMCDbPanic aPanic);
       
    60 
       
    61 #endif // MPXDBCOMMONSTD_H
       
    62 
       
    63 // End Of File