omads/omadsextensions/adapters/sms/inc/smsdataproviderdefs.h
changeset 40 b63e67867dcd
equal deleted inserted replaced
39:9905f7d46607 40:b63e67867dcd
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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:  Constant definitions used by SMS DS Plug-in Adapter
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __SMSDATAPROVIDERDEFS_H__
       
    20 #define __SMSDATAPROVIDERDEFS_H__ 
       
    21 
       
    22 
       
    23 // ------------------------------------------------------------------------------------------------
       
    24 // Databases
       
    25 // ------------------------------------------------------------------------------------------------
       
    26 // Database name
       
    27 _LIT( KNSmlDefaultLocalDbName, "SmsSyncLocalDb" );
       
    28 
       
    29 // Resource file for CSmlDataStoreFormat
       
    30 
       
    31 // The following works with DS plugin added into ROM image 
       
    32 _LIT( KSmsStoreFormatRscRom,"z:smsdatastore.rsc");
       
    33 
       
    34 // The following works with DS plugin installed from SIS
       
    35 _LIT( KSmsStoreFormatRsc,"smsdatastore.rsc");
       
    36 
       
    37 // ------------------------------------------------------------------------------------------------
       
    38 // Constants
       
    39 // ------------------------------------------------------------------------------------------------
       
    40 // max foldername
       
    41 const TInt KMaxFolderNameLength = 50;
       
    42 
       
    43 // Implementation uid
       
    44 const TUint KSmsDataProviderImplUid = 0x10206B5C;
       
    45 
       
    46 // ------------------------------------------------------------------------------------------------
       
    47 // Macros
       
    48 // ------------------------------------------------------------------------------------------------
       
    49 #define SAFEDELETE( x ) {delete x; x = NULL;}
       
    50 #define SAFEDELETEARRAY( x ) {delete[] x; x = NULL;}
       
    51 
       
    52 #endif // __SMSDATAPROVIDERDEFS_H__