omads/omadsextensions/adapters/mms/inc/mmsdataproviderdefs.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 14:06:02 +0300
changeset 36 9ba7f05d28a5
parent 0 dab8a81a92de
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Part of SyncML Data Synchronization Plug In Adapter
*
*/


#ifndef __MMSDATAPROVIDERDEFS_H__ 
#define __MMSDATAPROVIDERDEFS_H__ 

#include <e32def.h>
#include <e32cmn.h>

// ------------------------------------------------------------------------------------------------
// Databases
// ------------------------------------------------------------------------------------------------
// Database name
_LIT( KNSmlDefaultLocalDbName, "MmsSyncLocalDb" );

// Resource file for CSmlDataStoreFormat in SIS installation
_LIT(KMmsStoreFormatRsc,"mmsdatastore.rsc");

// Must be like below in flash image
_LIT(KMmsStoreFormatRscRom,"z:mmsdatastore.rsc");

// ------------------------------------------------------------------------------------------------
// Constants
// ------------------------------------------------------------------------------------------------
// max foldername
const TInt KMaxFolderNameLength = 50;

// Implementation uid
const TUint KMmsDataProviderImplUid = 0x101FB0E9;

// ------------------------------------------------------------------------------------------------
// Macros
// ------------------------------------------------------------------------------------------------
#define SAFEDELETE(x) {if(x) {delete x; x = NULL;}}
#define SAFEDELETEARRAY(x) {if(x) {delete[] x; x = NULL;}}

#endif // __MMSDATAPROVIDERDEFS_H__